This commit is contained in:
Ultrablob 2024-04-24 14:57:29 -04:00
parent 6d75dd22a0
commit 3ca455a5b9
18 changed files with 315 additions and 27 deletions

View file

@ -60,3 +60,10 @@ func start_aim():
func can_shoot(yn):
can_damage = yn
func destroy():
var explosion = load("res://explosion.tscn").instantiate()
$"/root/Node2D".add_child(explosion)
explosion.global_position = global_position
await get_tree().create_timer(0.2).timeout
queue_free()