Plus de feux rouges et des portes qui vont vivre

Et oui du nouveau encore!
This commit is contained in:
Thomas
2025-02-24 21:44:52 +01:00
parent 725584c477
commit 65a74f0845
14 changed files with 4212 additions and 97 deletions

View File

@@ -34,8 +34,9 @@ func _process(delta: float) -> void:
current_speed = min(current_speed + acceleration, speed)
$ZIndexControler/ShapeCast2D.enabled = !$CollisionHorizontal.disabled
if (targetPosition != null):
velocity = (targetPosition - position) * current_speed * delta;
velocity = (targetPosition - position) * current_speed * delta
move_and_slide()
if velocity: