Skip to content

Commit 0d110f3

Browse files
authored
Merge pull request #51 from endlessm/platform-dont-share-collision-shapes
Don't share collision shapes between instances of platforms
2 parents 2397ffd + 6a00fff commit 0d110f3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

components/platform/platform.tscn

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
[ext_resource type="Script" uid="uid://dilh5jyuklov6" path="res://components/platform/platform.gd" id="1_dpc6h"]
44

55
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i4vtk"]
6-
size = Vector2(384, 40)
6+
resource_local_to_scene = true
7+
size = Vector2(256, 40)
78

89
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o2vn2"]
9-
size = Vector2(384, 128)
10+
resource_local_to_scene = true
11+
size = Vector2(256, 128)
1012

1113
[sub_resource type="Animation" id="Animation_6232f"]
1214
resource_name = "shake"
@@ -58,7 +60,7 @@ texture_filter = 3
5860
unique_name_in_owner = true
5961
root_node = NodePath("../Sprites")
6062
libraries = {
61-
"": SubResource("AnimationLibrary_cwxfq")
63+
&"": SubResource("AnimationLibrary_cwxfq")
6264
}
6365

6466
[connection signal="body_entered" from="RigidBody2D" to="." method="_on_rigid_body_2d_body_entered"]

0 commit comments

Comments
 (0)