add attacks and death

This commit is contained in:
2025-02-26 16:17:14 +09:00
parent 151a757e3e
commit 3f1f4b1811
9 changed files with 83 additions and 14 deletions
+1
View File
@@ -6,6 +6,7 @@ func process_physics(delta: float) -> State:
subject.apply_input_velocity(delta, Vector2.ZERO, 0.0, subject.air_deceleration)
if not subject.is_on_floor(): return
if has_node("%Dead") and subject.dead: return %Dead
if %Input.direction.length() < 0.05: return %Idle
if has_node("%Walk") and %Input.walk: return %Walk
return %Run