added enemy state machine with idle, stunned, and dead states

This commit is contained in:
derek
2025-04-21 16:41:16 -05:00
parent 423feb8fc3
commit ca81947325
20 changed files with 1289 additions and 539 deletions

View File

@@ -270,7 +270,7 @@ func _physics_process(delta):
crouch_audio.play()
velocity += direction * 20
else:
velocity.y -= 15
velocity.y -= 25
#walking
if is_on_floor() and !is_climbing: