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

12
scripts/enemy_stunned.gd Normal file
View File

@@ -0,0 +1,12 @@
extends EnemyState
class_name EnemyStunned
@export var stunned_stars : Node
func _Enter():
if stunned_stars:
stunned_stars.visible = true
func _Exit():
if stunned_stars:
stunned_stars.visible = false