forked from team-sg/hero-mark-2
11 lines
257 B
GDScript
11 lines
257 B
GDScript
extends Node2D
|
|
|
|
func _ready() -> void:
|
|
Audio.play_sound(Audio.a_small_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()
|