STG-2600 death animation.
This commit is contained in:
parent
f61dbb3d32
commit
46578f033f
6 changed files with 703 additions and 18 deletions
11
objects/enemy/boss/2600_small_explosion.gd
Normal file
11
objects/enemy/boss/2600_small_explosion.gd
Normal file
|
@ -0,0 +1,11 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready() -> void:
|
||||
Audio.play_sound(Audio.a_explosion,Audio.ac_die)
|
||||
var sprite: AnimatedSprite = get_child(randi() % get_child_count())
|
||||
sprite.visible = true
|
||||
sprite.play()
|
||||
|
||||
|
||||
func _on_animation_finished() -> void:
|
||||
queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue