2024-07-22 15:56:58 +00:00
|
|
|
[gd_scene load_steps=19 format=3 uid="uid://0m1hk2nu4bps"]
|
2024-07-19 23:01:49 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://player.gd" id="1_0pgv8"]
|
2024-07-22 14:48:39 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://5pmqr3y62guu" path="res://player/currentCloth.tres" id="2_45h8h"]
|
2024-07-22 15:35:46 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://5qixrbrclydr" path="res://player/currentHat.tres" id="3_qyf3b"]
|
2024-07-19 23:01:49 +00:00
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kapu3"]
|
2024-07-22 14:48:39 +00:00
|
|
|
size = Vector2(192, 256)
|
2024-07-19 23:01:49 +00:00
|
|
|
|
2024-07-22 15:56:58 +00:00
|
|
|
[sub_resource type="Animation" id="Animation_y7jp1"]
|
|
|
|
resource_name = "idle"
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Skeleton2D/root/Hips:position")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(),
|
|
|
|
"transitions": PackedFloat32Array(),
|
|
|
|
"update": 0,
|
|
|
|
"values": []
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4k813"]
|
|
|
|
_data = {
|
|
|
|
"idle": SubResource("Animation_y7jp1")
|
|
|
|
}
|
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_hn1cf"]
|
2024-07-19 23:01:49 +00:00
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_1x8ew"]
|
2024-07-20 22:30:39 +00:00
|
|
|
animation = &"idle"
|
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vrcgu"]
|
2024-07-20 22:30:39 +00:00
|
|
|
animation = &"player_WalkLeft"
|
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_giw8e"]
|
2024-07-20 22:30:39 +00:00
|
|
|
animation = &"player_WalkRight"
|
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ylw4m"]
|
2024-07-20 22:30:39 +00:00
|
|
|
advance_mode = 2
|
2024-07-22 14:48:39 +00:00
|
|
|
advance_condition = &"WalkLeft"
|
2024-07-20 22:30:39 +00:00
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_tx8bg"]
|
2024-07-20 22:30:39 +00:00
|
|
|
advance_mode = 2
|
2024-07-22 14:48:39 +00:00
|
|
|
advance_condition = &"Idle"
|
2024-07-20 22:30:39 +00:00
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_flw2n"]
|
2024-07-20 22:30:39 +00:00
|
|
|
advance_mode = 2
|
2024-07-22 14:48:39 +00:00
|
|
|
advance_condition = &"Idle"
|
2024-07-20 22:30:39 +00:00
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_um8f6"]
|
2024-07-20 22:30:39 +00:00
|
|
|
advance_mode = 2
|
2024-07-22 14:48:39 +00:00
|
|
|
advance_condition = &"WalkRight"
|
2024-07-20 22:30:39 +00:00
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ks6oc"]
|
2024-07-20 22:30:39 +00:00
|
|
|
advance_mode = 2
|
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_x16w7"]
|
|
|
|
states/BlendTree/node = SubResource("AnimationNodeBlendTree_hn1cf")
|
|
|
|
states/BlendTree/position = Vector2(668, 238)
|
|
|
|
states/End/position = Vector2(328, 289)
|
|
|
|
states/Start/position = Vector2(585, 52)
|
|
|
|
states/idle/node = SubResource("AnimationNodeAnimation_1x8ew")
|
|
|
|
states/idle/position = Vector2(343, 98)
|
|
|
|
states/player_WalkLeft/node = SubResource("AnimationNodeAnimation_vrcgu")
|
|
|
|
states/player_WalkLeft/position = Vector2(224, 185)
|
|
|
|
states/player_WalkRight/node = SubResource("AnimationNodeAnimation_giw8e")
|
|
|
|
states/player_WalkRight/position = Vector2(451, 185)
|
|
|
|
transitions = ["idle", "player_WalkLeft", SubResource("AnimationNodeStateMachineTransition_ylw4m"), "player_WalkLeft", "idle", SubResource("AnimationNodeStateMachineTransition_tx8bg"), "player_WalkRight", "idle", SubResource("AnimationNodeStateMachineTransition_flw2n"), "idle", "player_WalkRight", SubResource("AnimationNodeStateMachineTransition_um8f6"), "Start", "player_WalkRight", SubResource("AnimationNodeStateMachineTransition_ks6oc")]
|
|
|
|
graph_offset = Vector2(-101, 1)
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_wgp38"]
|
|
|
|
graph_offset = Vector2(-281.833, 96.4845)
|
|
|
|
nodes/Locomotion/node = SubResource("AnimationNodeStateMachine_x16w7")
|
|
|
|
nodes/Locomotion/position = Vector2(120, 140)
|
|
|
|
nodes/output/position = Vector2(340, 140)
|
|
|
|
node_connections = [&"output", 0, &"Locomotion"]
|
|
|
|
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_dgcsv"]
|
|
|
|
font_size = 50
|
2024-07-20 22:30:39 +00:00
|
|
|
|
2024-07-19 23:01:49 +00:00
|
|
|
[node name="Node2D" type="CharacterBody2D"]
|
|
|
|
script = ExtResource("1_0pgv8")
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2024-07-22 14:48:39 +00:00
|
|
|
position = Vector2(0, -129)
|
2024-07-19 23:01:49 +00:00
|
|
|
shape = SubResource("RectangleShape2D_kapu3")
|
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
|
|
position = Vector2(0, -129)
|
|
|
|
zoom = Vector2(0.13, 0.13)
|
|
|
|
position_smoothing_enabled = true
|
|
|
|
position_smoothing_speed = 2.0
|
|
|
|
drag_horizontal_enabled = true
|
|
|
|
drag_vertical_enabled = true
|
|
|
|
editor_draw_limits = true
|
2024-07-19 23:01:49 +00:00
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." groups=["Animation"]]
|
2024-07-22 15:56:58 +00:00
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_4k813")
|
|
|
|
}
|
2024-07-20 22:30:39 +00:00
|
|
|
autoplay = "player_WalkLeft"
|
|
|
|
playback_default_blend_time = 0.3
|
|
|
|
|
2024-07-22 14:48:39 +00:00
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="." groups=["Animation"]]
|
|
|
|
tree_root = SubResource("AnimationNodeBlendTree_wgp38")
|
|
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
|
|
parameters/Locomotion/conditions/Idle = false
|
|
|
|
parameters/Locomotion/conditions/WalkLeft = false
|
|
|
|
parameters/Locomotion/conditions/WalkRight = false
|
|
|
|
|
|
|
|
[node name="debug" type="Label" parent="."]
|
|
|
|
anchors_preset = 7
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_left = -188.5
|
|
|
|
offset_top = -801.0
|
|
|
|
offset_right = 188.5
|
|
|
|
offset_bottom = -680.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 0
|
|
|
|
auto_translate = false
|
|
|
|
localize_numeral_system = false
|
|
|
|
text = "debug"
|
|
|
|
label_settings = SubResource("LabelSettings_dgcsv")
|
|
|
|
horizontal_alignment = 1
|
|
|
|
vertical_alignment = 1
|
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="Skeleton2D" type="Skeleton2D" parent="."]
|
|
|
|
|
|
|
|
[node name="BootL" type="Sprite2D" parent="Skeleton2D"]
|
2024-07-22 14:48:39 +00:00
|
|
|
position = Vector2(44, -43)
|
|
|
|
texture = ExtResource("2_45h8h")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(896, 768, 128, 128)
|
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="BootR" type="Sprite2D" parent="Skeleton2D"]
|
2024-07-22 14:48:39 +00:00
|
|
|
position = Vector2(-64, -50)
|
|
|
|
texture = ExtResource("2_45h8h")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(896, 768, 128, 128)
|
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="Body" type="Sprite2D" parent="Skeleton2D"]
|
2024-07-22 14:48:39 +00:00
|
|
|
position = Vector2(35, -207)
|
|
|
|
texture = ExtResource("2_45h8h")
|
|
|
|
offset = Vector2(-15, 0)
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(0, 640, 384, 384)
|
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="HandL" type="Sprite2D" parent="Skeleton2D/Body"]
|
2024-07-22 14:48:39 +00:00
|
|
|
position = Vector2(38, 55)
|
|
|
|
texture = ExtResource("2_45h8h")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(768, 768, 128, 128)
|
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="HandR" type="Sprite2D" parent="Skeleton2D/Body"]
|
2024-07-22 14:48:39 +00:00
|
|
|
show_behind_parent = true
|
|
|
|
position = Vector2(-144, 29)
|
|
|
|
texture = ExtResource("2_45h8h")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(768, 768, 128, 128)
|
2024-07-19 23:01:49 +00:00
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="Tail" type="Sprite2D" parent="Skeleton2D/Body"]
|
2024-07-22 14:48:39 +00:00
|
|
|
show_behind_parent = true
|
2024-07-22 15:37:15 +00:00
|
|
|
position = Vector2(48, 90)
|
2024-07-22 14:48:39 +00:00
|
|
|
texture = ExtResource("2_45h8h")
|
2024-07-22 15:37:15 +00:00
|
|
|
offset = Vector2(70, 0)
|
2024-07-22 14:48:39 +00:00
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(768, 640, 256, 128)
|
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="Head" type="Sprite2D" parent="Skeleton2D"]
|
2024-07-22 15:39:05 +00:00
|
|
|
position = Vector2(0, -423)
|
2024-07-22 14:48:39 +00:00
|
|
|
texture = ExtResource("2_45h8h")
|
2024-07-22 15:39:05 +00:00
|
|
|
offset = Vector2(0, -168)
|
2024-07-22 14:48:39 +00:00
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(0, 0, 512, 640)
|
|
|
|
|
2024-07-22 15:37:15 +00:00
|
|
|
[node name="Hat" type="Sprite2D" parent="Skeleton2D/Head"]
|
2024-07-22 15:39:05 +00:00
|
|
|
position = Vector2(66, -102)
|
2024-07-22 15:35:46 +00:00
|
|
|
scale = Vector2(0.6, 0.6)
|
|
|
|
texture = ExtResource("3_qyf3b")
|
2024-07-22 14:48:39 +00:00
|
|
|
region_enabled = true
|
2024-07-22 15:35:46 +00:00
|
|
|
region_rect = Rect2(0, 0, 1152, 1136)
|
2024-07-22 15:56:58 +00:00
|
|
|
|
|
|
|
[node name="root" type="Bone2D" parent="Skeleton2D"]
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 0, 0)
|
|
|
|
|
|
|
|
[node name="Hips" type="Bone2D" parent="Skeleton2D/root"]
|
|
|
|
position = Vector2(0, -130)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 0, -130)
|
|
|
|
|
|
|
|
[node name="LegLeft" type="Bone2D" parent="Skeleton2D/root/Hips"]
|
|
|
|
position = Vector2(41, 91)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 41, 91)
|
|
|
|
|
|
|
|
[node name="LegRight" type="Bone2D" parent="Skeleton2D/root/Hips"]
|
|
|
|
position = Vector2(-66, 91)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, -66, 91)
|
|
|
|
|
|
|
|
[node name="Spine" type="Bone2D" parent="Skeleton2D/root/Hips"]
|
|
|
|
position = Vector2(0, -86)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 0, -86)
|
|
|
|
|
|
|
|
[node name="Head" type="Bone2D" parent="Skeleton2D/root/Hips/Spine"]
|
|
|
|
position = Vector2(0, -107)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 0, -107)
|
|
|
|
|
|
|
|
[node name="Hat" type="Bone2D" parent="Skeleton2D/root/Hips/Spine/Head"]
|
|
|
|
position = Vector2(0, -201)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 0, -201)
|
|
|
|
|
|
|
|
[node name="ArmLeft" type="Bone2D" parent="Skeleton2D/root/Hips/Spine"]
|
|
|
|
position = Vector2(72, 69)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 72, 69)
|
|
|
|
|
|
|
|
[node name="ArmRight" type="Bone2D" parent="Skeleton2D/root/Hips/Spine"]
|
|
|
|
position = Vector2(-111, 35)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, -111, 35)
|
|
|
|
|
|
|
|
[node name="Tail" type="Bone2D" parent="Skeleton2D/root/Hips"]
|
|
|
|
position = Vector2(92, 42)
|
|
|
|
rest = Transform2D(1, 0, 0, 1, 92, 42)
|