feat: implement player movement controller and movement state machine system

This commit is contained in:
DottsGit
2026-06-06 21:16:48 -04:00
parent 30dbf7a4cd
commit 1a989f3586
2 changed files with 18 additions and 7 deletions
+7 -4
View File
@@ -94,11 +94,14 @@ func _physics_process(delta: float) -> void:
_try_start_grapple()
if is_grapple_shooting:
grapple_shoot_time += delta
if grapple_shoot_time >= grapple_travel_time:
if not input_grapple:
is_grapple_shooting = false
movement_event.emit("grapple_latch", {})
switch_to("grapple")
else:
grapple_shoot_time += delta
if grapple_shoot_time >= grapple_travel_time:
is_grapple_shooting = false
movement_event.emit("grapple_latch", {})
switch_to("grapple")
# Manage global crouch state
var want_crouch = input_crouch