Added game pallete explosions to player and chickens; adjusted parallax
layer speed via speed scale.
This commit is contained in:
parent
2a7e1a2b6c
commit
1da24eb0e6
8 changed files with 207 additions and 16 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue