summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Objects/Box.gd
diff options
context:
space:
mode:
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)