81 lines
2.6 KiB
Text
81 lines
2.6 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://c5is82tirrhqf"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bnvm2tlvp0h7j" path="res://assets/takyoin.png" id="1_ii5g4"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ii5g4"]
|
|
size = Vector2(151, 657)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_l5btf"]
|
|
size = Vector2(1288.5, 155.5)
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_ii5g4"]
|
|
bounce = 0.5
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_l5btf"]
|
|
radius = 25.0
|
|
height = 102.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_701xa"]
|
|
radius = 22.0907
|
|
|
|
[node name="TestSceneScholar" type="Node2D"]
|
|
|
|
[node name="Outerwalls" type="StaticBody2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Outerwalls"]
|
|
position = Vector2(-76, 321)
|
|
shape = SubResource("RectangleShape2D_ii5g4")
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Outerwalls"]
|
|
position = Vector2(716, 283)
|
|
shape = SubResource("RectangleShape2D_ii5g4")
|
|
|
|
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Outerwalls"]
|
|
position = Vector2(578.75, -77.25)
|
|
shape = SubResource("RectangleShape2D_l5btf")
|
|
|
|
[node name="CollisionShape2D4" type="CollisionShape2D" parent="Outerwalls"]
|
|
position = Vector2(360, 525)
|
|
shape = SubResource("RectangleShape2D_l5btf")
|
|
|
|
[node name="Body" type="RigidBody2D" parent="."]
|
|
position = Vector2(310, 339)
|
|
physics_material_override = SubResource("PhysicsMaterial_ii5g4")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Body"]
|
|
position = Vector2(0, -52)
|
|
texture = ExtResource("1_ii5g4")
|
|
region_enabled = true
|
|
region_rect = Rect2(0, 56, 82, 103)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Body"]
|
|
position = Vector2(-3, -53)
|
|
shape = SubResource("CapsuleShape2D_l5btf")
|
|
|
|
[node name="Head" type="RigidBody2D" parent="Body"]
|
|
position = Vector2(0, -131)
|
|
physics_material_override = SubResource("PhysicsMaterial_ii5g4")
|
|
linear_velocity = Vector2(50, 0)
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Body/Head"]
|
|
texture = ExtResource("1_ii5g4")
|
|
region_enabled = true
|
|
region_rect = Rect2(0, 0, 82, 56)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Body/Head"]
|
|
position = Vector2(-3, 9)
|
|
shape = SubResource("CircleShape2D_701xa")
|
|
|
|
[node name="NeckJoint" type="PinJoint2D" parent="Body/Head"]
|
|
position = Vector2(-2, 29)
|
|
node_a = NodePath("../..")
|
|
node_b = NodePath("..")
|
|
angular_limit_lower = -0.349066
|
|
angular_limit_upper = 0.349066
|
|
|
|
[node name="RotationLimiter" type="DampedSpringJoint2D" parent="Body/Head"]
|
|
position = Vector2(-3, -21)
|
|
node_a = NodePath("../..")
|
|
node_b = NodePath("..")
|
|
length = 10.0
|
|
rest_length = 1.0
|