same as below

This commit is contained in:
Ultrablob 2025-02-05 14:05:36 -05:00
parent 2164eade29
commit cb0ffac056
1674 changed files with 29651 additions and 93 deletions

View file

@ -13,6 +13,9 @@ func hit(body):
if body.has_method("destroy"):
body.destroy()
else:
var explosion = load("res://explosion.tscn").instantiate()
$"/root/Node2D".add_child(explosion)
explosion.global_position = global_position
body.queue_free()
queue_free()