diff options
Diffstat (limited to 'Scenes/Entities/Enemies/Balloon.gd')
-rw-r--r-- | Scenes/Entities/Enemies/Balloon.gd | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Scenes/Entities/Enemies/Balloon.gd b/Scenes/Entities/Enemies/Balloon.gd index bc79f24..7c4b402 100644 --- a/Scenes/Entities/Enemies/Balloon.gd +++ b/Scenes/Entities/Enemies/Balloon.gd @@ -1,9 +1,6 @@ extends CharacterBody2D -@export var health: int - - func _ready(): add_to_group("enemies") @@ -22,19 +19,6 @@ func _ready(): $AnimatedSprite2D.play("right") $AnimatedSprite2D.set_frame_and_progress(frame, progress) ) - - get_node("Collision").connect("collided", func(area): - if area.is_in_group("explosions"): - health -= 1 - if health <= 0: - set_physics_process(false) - remove_child(get_node("Movement")) - - $AnimatedSprite2D.play("death") - await $AnimatedSprite2D.animation_finished - # todo shrink to 0 - queue_free() - ) func _physics_process(delta): |