a horse, constructed

This commit is contained in:
Haze Weathers 2025-07-23 17:52:56 -06:00
parent 195778a1c4
commit 30f12832b5
2 changed files with 199 additions and 52 deletions

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=7 format=3 uid="uid://c5is82tirrhqf"]
[gd_scene load_steps=4 format=3 uid="uid://c5is82tirrhqf"]
[ext_resource type="Texture2D" uid="uid://bnvm2tlvp0h7j" path="res://assets/takyoin.png" id="1_ii5g4"]
[ext_resource type="PackedScene" uid="uid://bgo5hhh00twsn" path="res://objects/horse/test_horse.tscn" id="1_ii5g4"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ii5g4"]
size = Vector2(151, 657)
@ -8,16 +8,6 @@ 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="."]
@ -38,44 +28,5 @@ shape = SubResource("RectangleShape2D_l5btf")
position = Vector2(360, 525)
shape = SubResource("RectangleShape2D_l5btf")
[node name="Body" type="RigidBody2D" parent="."]
[node name="Body" parent="." instance=ExtResource("1_ii5g4")]
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