added breakable blocks
This commit is contained in:
parent
886c7a7233
commit
1c540be7c3
3 changed files with 44 additions and 6 deletions
18
gmtk_2024/objects/BreakableBlock.tscn
Normal file
18
gmtk_2024/objects/BreakableBlock.tscn
Normal file
|
@ -0,0 +1,18 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bnvyaxh2kotd3"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/crumble.gd" id="1_5jikw"]
|
||||
[ext_resource type="Texture2D" uid="uid://buqgl7x10et1f" path="res://temp_assets/img.png" id="1_d52wv"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_246ea"]
|
||||
size = Vector2(31, 31)
|
||||
|
||||
[node name="BreakableBlock" type="CharacterBody2D"]
|
||||
collision_mask = 22
|
||||
script = ExtResource("1_5jikw")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_d52wv")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-0.5, -0.5)
|
||||
shape = SubResource("RectangleShape2D_246ea")
|
Loading…
Add table
Add a link
Reference in a new issue