1 [gd_scene load_steps=13 format=3 uid="uid://bgmpst4q8lyw2"]
3 [ext_resource type="PackedScene" uid="uid://dd5nled5di42i" path="res://skin/the-knight.glb" id="1_mro73"]
4 [ext_resource type="Script" path="res://skin/the_knight.gd" id="2_ofwyo"]
6 [sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_kfgya"]
8 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_a0atl"]
9 animation = &"attack-default"
11 [sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_a6lqo"]
13 filters = ["", "base/rig/Skeleton3D:DEF-forearm.L", "base/rig/Skeleton3D:DEF-forearm.L.001", "base/rig/Skeleton3D:DEF-forearm.R", "base/rig/Skeleton3D:DEF-forearm.R.001", "base/rig/Skeleton3D:DEF-hand.L", "base/rig/Skeleton3D:DEF-hand.R", "base/rig/Skeleton3D:DEF-shoulder.L", "base/rig/Skeleton3D:DEF-shoulder.R", "base/rig/Skeleton3D:DEF-spine", "base/rig/Skeleton3D:DEF-spine.002", "base/rig/Skeleton3D:DEF-spine.003", "base/rig/Skeleton3D:DEF-spine.004", "base/rig/Skeleton3D:DEF-spine.005", "base/rig/Skeleton3D:DEF-spine.006", "base/rig/Skeleton3D:DEF-upper_arm.L", "base/rig/Skeleton3D:DEF-upper_arm.L.001", "base/rig/Skeleton3D:DEF-upper_arm.R", "base/rig/Skeleton3D:DEF-upper_arm.R.001", "base/rig/Skeleton3D:nail-back", "base/rig/Skeleton3D:nail-hand.L", "rig/Skeleton3D:DEF-forearm.L", "rig/Skeleton3D:DEF-forearm.L.001", "rig/Skeleton3D:DEF-forearm.R", "rig/Skeleton3D:DEF-forearm.R.001", "rig/Skeleton3D:DEF-hand.L", "rig/Skeleton3D:DEF-hand.R", "rig/Skeleton3D:DEF-shoulder.L", "rig/Skeleton3D:DEF-shoulder.R", "rig/Skeleton3D:DEF-spine", "rig/Skeleton3D:DEF-spine.002", "rig/Skeleton3D:DEF-spine.003", "rig/Skeleton3D:DEF-spine.004", "rig/Skeleton3D:DEF-spine.005", "rig/Skeleton3D:DEF-spine.006", "rig/Skeleton3D:DEF-upper_arm.L", "rig/Skeleton3D:DEF-upper_arm.L.001", "rig/Skeleton3D:DEF-upper_arm.R", "rig/Skeleton3D:DEF-upper_arm.R.001", "rig/Skeleton3D:nail-back_2", "rig/Skeleton3D:nail-hand.L"]
16 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_pbq7e"]
17 animation = &"move-jump"
19 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ego33"]
20 animation = &"idle-default"
22 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_2l36w"]
23 animation = &"move-walk"
25 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_suq0c"]
26 animation = &"move-run"
28 [sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_446cp"]
29 blend_point_0/node = SubResource("AnimationNodeAnimation_ego33")
30 blend_point_0/pos = 0.0
31 blend_point_1/node = SubResource("AnimationNodeAnimation_2l36w")
32 blend_point_1/pos = 0.5
33 blend_point_2/node = SubResource("AnimationNodeAnimation_suq0c")
34 blend_point_2/pos = 1.0
38 [sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_87yve"]
42 input_0/auto_advance = false
43 input_0/break_loop_at_end = false
46 input_1/auto_advance = false
47 input_1/break_loop_at_end = false
50 [sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_xdiqd"]
51 graph_offset = Vector2(-595.2, -44.16)
52 nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_kfgya")
53 nodes/TimeScale/position = Vector2(80, 300)
54 nodes/attack/node = SubResource("AnimationNodeOneShot_a6lqo")
55 nodes/attack/position = Vector2(300, 120)
56 "nodes/attack 2/node" = SubResource("AnimationNodeAnimation_a0atl")
57 "nodes/attack 2/position" = Vector2(-160, 390)
58 nodes/jump/node = SubResource("AnimationNodeAnimation_pbq7e")
59 nodes/jump/position = Vector2(-540, 240)
60 nodes/move/node = SubResource("AnimationNodeBlendSpace1D_446cp")
61 nodes/move/position = Vector2(-556.457, 77.4483)
62 nodes/movement/node = SubResource("AnimationNodeTransition_87yve")
63 nodes/movement/position = Vector2(-250, 150)
64 nodes/output/position = Vector2(670, 140)
65 node_connections = [&"TimeScale", 0, &"attack 2", &"attack", 0, &"movement", &"attack", 1, &"TimeScale", &"movement", 0, &"move", &"movement", 1, &"jump", &"output", 0, &"attack"]
67 [node name="the-knight" instance=ExtResource("1_mro73")]
68 script = ExtResource("2_ofwyo")
70 [node name="Skeleton3D" parent="rig" index="0"]
71 bones/0/position = Vector3(0, 0.292604, -0.03312)
72 bones/0/rotation = Quaternion(0.149, 1.17879e-07, 1.77622e-08, 0.988837)
73 bones/2/rotation = Quaternion(-0.0924557, 1.18699e-07, -1.10216e-08, 0.995717)
74 bones/3/rotation = Quaternion(0.00901271, -1.19204e-07, 1.07438e-09, 0.999959)
75 bones/3/scale = Vector3(1, 1, 1)
76 bones/4/rotation = Quaternion(0.229497, 1.16028e-07, 2.73582e-08, 0.973309)
77 bones/4/scale = Vector3(1, 1, 1)
78 bones/5/rotation = Quaternion(-0.109628, -1.18491e-07, -1.30686e-08, 0.993973)
79 bones/6/rotation = Quaternion(-0.111466, 1.18466e-07, -1.32878e-08, 0.993768)
80 bones/7/rotation = Quaternion(-0.707107, 7.85046e-17, 7.85046e-17, 0.707107)
81 bones/8/position = Vector3(4.53321e-09, 0.292604, -0.03312)
82 bones/8/rotation = Quaternion(-0.0952461, -0.736157, -0.422428, 0.52015)
83 bones/8/scale = Vector3(1, 1, 1)
84 bones/9/position = Vector3(5.016e-09, 0.292604, -0.03312)
85 bones/9/rotation = Quaternion(-0.0952461, 0.736157, 0.422428, 0.52015)
86 bones/9/scale = Vector3(1, 1, 1)
87 bones/10/position = Vector3(0.0733334, 0.262039, -0.00743999)
88 bones/10/rotation = Quaternion(0.998928, -7.0842e-08, 1.2262e-07, 0.0462933)
89 bones/10/scale = Vector3(1, 1, 1)
90 bones/11/rotation = Quaternion(-1.49011e-08, 1.19352e-07, -7.64426e-08, 1)
91 bones/12/rotation = Quaternion(0.119238, -1.18216e-07, 6.03186e-08, 0.992866)
92 bones/12/scale = Vector3(1, 1, 1)
93 bones/13/rotation = Quaternion(1.11759e-08, 6.38114e-08, -1.74988e-08, 1)
94 bones/14/rotation = Quaternion(-0.547448, -1.07996e-07, -2.47164e-07, 0.83684)
95 bones/14/scale = Vector3(1, 1, 1)
96 bones/15/rotation = Quaternion(-5.94909e-08, 0.961249, -0.275682, 1.41077e-07)
97 bones/15/scale = Vector3(1, 1, 1)
98 bones/16/position = Vector3(-0.0733334, 0.262039, -0.00743998)
99 bones/16/rotation = Quaternion(0.998928, 5.62744e-08, -1.21945e-07, 0.0462933)
100 bones/16/scale = Vector3(1, 1, 1)
101 bones/17/rotation = Quaternion(-1.11759e-08, -1.19575e-07, 6.18592e-08, 1)
102 bones/18/rotation = Quaternion(0.119238, 1.18438e-07, -6.03452e-08, 0.992866)
103 bones/18/scale = Vector3(1, 1, 1)
104 bones/19/rotation = Quaternion(1.86264e-08, -6.38114e-08, 1.74988e-08, 1)
105 bones/20/rotation = Quaternion(-0.547448, 1.07996e-07, 2.47164e-07, 0.83684)
106 bones/20/scale = Vector3(1, 1, 1)
107 bones/21/rotation = Quaternion(5.94909e-08, 0.961249, -0.275682, -1.41077e-07)
108 bones/21/scale = Vector3(1, 1, 1)
109 bones/22/position = Vector3(0.01098, 0.550924, 0.04104)
110 bones/22/rotation = Quaternion(-0.613952, -0.35093, -0.351142, 0.613685)
111 bones/22/scale = Vector3(1, 1, 1)
112 bones/23/position = Vector3(0.11718, 0.540641, 0.0188245)
113 bones/23/rotation = Quaternion(-0.211191, 0.421882, -0.86264, 0.182391)
114 bones/23/scale = Vector3(1.01221, 0.976015, 1.01221)
115 bones/24/rotation = Quaternion(-3.93055e-08, 0.104437, -1.89924e-09, 0.994531)
116 bones/25/rotation = Quaternion(0.798642, 0.105596, -0.144409, 0.574601)
117 bones/25/scale = Vector3(1.00226, 0.963548, 1.03574)
118 bones/26/rotation = Quaternion(2.12587e-07, 0.017527, -7.76764e-08, 0.999846)
119 bones/27/rotation = Quaternion(-0.407427, 0.0163799, -0.0242184, 0.91277)
120 bones/27/scale = Vector3(0.985859, 1.00528, 1.00995)
121 bones/28/position = Vector3(-0.01098, 0.550924, 0.04104)
122 bones/28/rotation = Quaternion(-0.613952, 0.35093, 0.351142, 0.613685)
123 bones/28/scale = Vector3(1, 1, 1)
124 bones/29/position = Vector3(-0.11718, 0.540641, 0.0188245)
125 bones/29/rotation = Quaternion(-0.211191, -0.421882, 0.86264, 0.182391)
126 bones/29/scale = Vector3(1.01221, 0.976015, 1.01221)
127 bones/30/rotation = Quaternion(-1.21486e-08, -0.104437, -2.05754e-08, 0.994532)
128 bones/31/rotation = Quaternion(0.798642, -0.105596, 0.144409, 0.574601)
129 bones/31/scale = Vector3(1.00226, 0.963548, 1.03574)
130 bones/32/rotation = Quaternion(2.2423e-07, -0.017527, 8.04709e-08, 0.999846)
131 bones/33/rotation = Quaternion(-0.407427, -0.0163799, 0.0242184, 0.91277)
132 bones/33/scale = Vector3(0.98586, 1.00528, 1.00995)
133 bones/34/position = Vector3(0.115146, 0.381299, 0.00532452)
134 bones/34/rotation = Quaternion(-0.0012814, 0.0528379, 0.998309, -0.0242099)
135 bones/34/scale = Vector3(0.00802934, 0.00802934, 0.00802934)
137 [node name="AnimationTree" type="AnimationTree" parent="." index="2"]
138 tree_root = SubResource("AnimationNodeBlendTree_xdiqd")
139 anim_player = NodePath("../AnimationPlayer")
140 parameters/TimeScale/scale = 4.0
141 parameters/attack/active = false
142 parameters/attack/internal_active = false
143 parameters/attack/request = 0
144 parameters/move/blend_position = 0.0
145 parameters/movement/current_state = "move"
146 parameters/movement/transition_request = ""
147 parameters/movement/current_index = 0