ajout d'une gui en 3d, d'un tuto et correction de bug à la pelletée

This commit is contained in:
2026-02-07 00:22:12 +01:00
parent 5722fbb437
commit 3fa84994cd
45 changed files with 885 additions and 321 deletions

View File

@@ -1,5 +1,5 @@
@tool
extends HBoxContainer
extends MarginContainer
class_name EnergyInfo
@export var wanted_energy = 0
@@ -13,7 +13,7 @@ var max_energy := 0
func update(
_energy : int,
_max_energy : int,
with_animation := true,
_with_animation := true,
):
var changed = (energy != _energy or max_energy != _max_energy)
if changed:
@@ -24,4 +24,4 @@ func update(
# if with_animation:
# %EnergyAnimationPlayer.bounce()
%EnergyCount.text = energy_count_text
modulate = Color.WHITE if energy > 0 else Color.RED
%EnergyCount.modulate = Color.WHITE if energy > 0 else Color.RED