File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
2d/physics_platformer/background Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1- [gd_scene load_steps =4 format =2 ]
1+ [gd_scene load_steps =5 format =2 ]
22
33[ext_resource path ="res://background/plank.png" type ="Texture" id =1 ]
44[ext_resource path ="res://background/plankpin.png" type ="Texture" id =2 ]
55
66[sub_resource type ="RectangleShape2D" id =1 ]
77extents = Vector2 ( 128 , 8 )
88
9+ [sub_resource type ="RectangleShape2D" id =2 ]
10+ extents = Vector2 ( 16 , 27 )
11+
912[node name ="Seesaw" type ="Node2D" ]
1013
1114[node name ="Plank" type ="RigidBody2D" parent ="." ]
@@ -18,9 +21,15 @@ texture = ExtResource( 1 )
1821shape = SubResource ( 1 )
1922
2023[node name ="Pin" type ="PinJoint2D" parent ="." ]
21- node_a = NodePath ("../plank" )
24+ node_a = NodePath ("../Plank" )
25+ node_b = NodePath ("../Pillar" )
26+
27+ [node name ="Pillar" type ="StaticBody2D" parent ="." ]
2228
23- [node name ="Sprite" type ="Sprite" parent =". " ]
29+ [node name ="Sprite" type ="Sprite" parent ="Pillar " ]
2430position = Vector2 ( -0.290825 , 20.2425 )
2531texture = ExtResource ( 2 )
2632
33+ [node name ="CollisionShape2D" type ="CollisionShape2D" parent ="Pillar" ]
34+ position = Vector2 ( 0 , 25 )
35+ shape = SubResource ( 2 )
You can’t perform that action at this time.
0 commit comments