summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Objects/Box.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-04-27 20:06:49 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-04-27 20:06:49 +0200
commit81cc6f1d22677dd4a60aa9377c91b291bf10e523 (patch)
tree9c22712a9746ed0598a44be6e88727d021436860 /Scenes/Entities/Objects/Box.gd
parentc8a316e4b8987dad963656a34665fa0e23dedcb1 (diff)
update
Diffstat (limited to 'Scenes/Entities/Objects/Box.gd')
-rw-r--r--Scenes/Entities/Objects/Box.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/Scenes/Entities/Objects/Box.gd b/Scenes/Entities/Objects/Box.gd
index c7b7d4e..8d1d40b 100644
--- a/Scenes/Entities/Objects/Box.gd
+++ b/Scenes/Entities/Objects/Box.gd
@@ -2,6 +2,8 @@ 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)