godot-demo-projects/2d/physics_platformer/background/seesaw.tscn

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-02-25 19:27:21 +01:00
[gd_scene load_steps=5 format=3 uid="uid://rxbjx7rhfd8k"]
[ext_resource type="Texture2D" uid="uid://c3w6uvr4jjkwa" path="res://background/plank.png" id="1"]
[ext_resource type="Texture2D" uid="uid://ci8y3ieuf3ltc" path="res://background/plankpin.png" id="2"]
[sub_resource type="RectangleShape2D" id="1"]
size = Vector2(128, 8)
[sub_resource type="RectangleShape2D" id="2"]
size = Vector2(16, 27)
[node name="Seesaw" type="Node2D"]
[node name="Plank" type="RigidBody2D" parent="."]
mass = 5.10204
[node name="Sprite2D" type="Sprite2D" parent="Plank"]
texture = ExtResource("1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Plank"]
shape = SubResource("1")
[node name="Pin" type="PinJoint2D" parent="."]
node_a = NodePath("../Plank")
node_b = NodePath("../Pillar")
[node name="Pillar" type="StaticBody2D" parent="."]
[node name="Sprite2D" type="Sprite2D" parent="Pillar"]
position = Vector2(0, 10)
texture = ExtResource("2")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pillar"]
position = Vector2(0, 12.5)
shape = SubResource("2")