Added game pallete explosions to player and chickens; adjusted parallax

layer speed via speed scale.
This commit is contained in:
Henry 2026-02-14 23:54:54 +00:00
parent 2a7e1a2b6c
commit 1da24eb0e6
8 changed files with 207 additions and 16 deletions

View file

@ -46,12 +46,11 @@ func _process(delta):
func explode():
if exploding: return
exploding = true
print_debug("Enemy explode!")
EventBus.enemy_hit.emit(5)
speed = 0
#$AnimationPlayer.play("explode")
$AnimationPlayer.play("explode")
#set_deferred("monitoring", false)
#await $AnimationPlayer.animation_finished
await $AnimationPlayer.animation_finished
queue_free()
EventBus.enemy_died.emit()