Seesaw.tscn 993 B

123456789101112131415161718192021222324252627282930313233343536
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://background/plank.png" type="Texture" id=1]
  3. [ext_resource path="res://background/plankpin.png" type="Texture" id=2]
  4. [sub_resource type="RectangleShape2D" id=1]
  5. extents = Vector2( 64, 4 )
  6. [sub_resource type="RectangleShape2D" id=2]
  7. extents = Vector2( 8, 13.5 )
  8. [node name="Seesaw" type="Node2D"]
  9. [node name="Plank" type="RigidBody2D" parent="."]
  10. mass = 5.10204
  11. [node name="Sprite" type="Sprite" 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="Sprite" type="Sprite" 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 )