Ajout du sprite du robot

This commit is contained in:
2024-09-01 17:27:22 +02:00
parent ebf0952dec
commit dfade2fc63
101 changed files with 1837 additions and 10 deletions

View File

@@ -35,7 +35,11 @@ func _process(delta: float) -> void:
planting.start(PLANTING_TIME)
MoveState.PLANTING:
wanderer.move = false
if target_pos.x > position.x:
$AnimatedSprite2D.flip_h = false
else :
$AnimatedSprite2D.flip_h = true
func go_to(new_target_pos: Vector2):
state = MoveState.MOVING