summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Bombs/Explosion.gd
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-10 11:48:05 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-10 11:48:05 +0200
commit46556d864b9685c3b09a0038f5de83966fe7ff94 (patch)
treec68082eacd35559e14565d1598dd694972fb8e0e /Scenes/Entities/Bombs/Explosion.gd
Initial commit
Diffstat (limited to 'Scenes/Entities/Bombs/Explosion.gd')
-rw-r--r--Scenes/Entities/Bombs/Explosion.gd11
1 files changed, 11 insertions, 0 deletions
diff --git a/Scenes/Entities/Bombs/Explosion.gd b/Scenes/Entities/Bombs/Explosion.gd
new file mode 100644
index 0000000..eba8b29
--- /dev/null
+++ b/Scenes/Entities/Bombs/Explosion.gd
@@ -0,0 +1,11 @@
+extends Area2D
+
+
+func _ready():
+ add_to_group("explosions")
+
+ $AnimatedSprite2D.play()
+
+
+func _on_AnimatedSprite_animation_finished():
+ queue_free()