diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-04-27 20:06:49 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-04-27 20:06:49 +0200 |
commit | 81cc6f1d22677dd4a60aa9377c91b291bf10e523 (patch) | |
tree | 9c22712a9746ed0598a44be6e88727d021436860 /Scenes/Entities/Objects/MountainWall.gd | |
parent | c8a316e4b8987dad963656a34665fa0e23dedcb1 (diff) |
update
Diffstat (limited to 'Scenes/Entities/Objects/MountainWall.gd')
-rw-r--r-- | Scenes/Entities/Objects/MountainWall.gd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Scenes/Entities/Objects/MountainWall.gd b/Scenes/Entities/Objects/MountainWall.gd new file mode 100644 index 0000000..f740ce2 --- /dev/null +++ b/Scenes/Entities/Objects/MountainWall.gd @@ -0,0 +1,16 @@ +extends StaticBody2D + + +func _ready(): + add_to_group("breakables") + + var collision_area = Utilities.Collision.Area.new(self, $CollisionShape2D, false) + collision_area.connect("collided", Callable(self, "_collide")) + add_child(collision_area) + + +func hit_by_explosion(): + #$AnimationPlayer.play("breaking") + #await $AnimationPlayer.animation_finished + + queue_free() |