seesaw.tscn 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [gd_scene load_steps=5 format=3 uid="uid://rxbjx7rhfd8k"]
  2. [ext_resource type="Texture2D" uid="uid://c3w6uvr4jjkwa" path="res://background/plank.png" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://ci8y3ieuf3ltc" path="res://background/plankpin.png" id="2"]
  4. [sub_resource type="RectangleShape2D" id="1"]
  5. size = Vector2(128, 8)
  6. [sub_resource type="RectangleShape2D" id="2"]
  7. size = Vector2(16, 27)
  8. [node name="Seesaw" type="Node2D"]
  9. [node name="Plank" type="RigidBody2D" parent="."]
  10. mass = 5.10204
  11. [node name="Sprite2D" type="Sprite2D" parent="Plank"]
  12. texture = ExtResource("1")
  13. [node name="CollisionShape2D" type="CollisionShape2D" parent="Plank"]
  14. shape = SubResource("1")
  15. [node name="Pin" type="PinJoint2D" parent="."]
  16. node_a = NodePath("../Plank")
  17. node_b = NodePath("../Pillar")
  18. [node name="Pillar" type="StaticBody2D" parent="."]
  19. [node name="Sprite2D" type="Sprite2D" parent="Pillar"]
  20. position = Vector2(0, 10)
  21. texture = ExtResource("2")
  22. [node name="CollisionShape2D" type="CollisionShape2D" parent="Pillar"]
  23. position = Vector2(0, 12.5)
  24. shape = SubResource("2")