137 lines
4.6 KiB
Plaintext
137 lines
4.6 KiB
Plaintext
[gd_scene load_steps=18 format=3 uid="uid://dbhiwig4potyb"]
|
|
|
|
[ext_resource type="Script" uid="uid://csqcsepu2r0ts" path="res://Entities/Character/character.gd" id="1_a1h5o"]
|
|
[ext_resource type="Texture2D" uid="uid://dasxw18q3mppl" path="res://icon.svg" id="1_bmc7m"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bmc7m"]
|
|
size = Vector2(14.8999, 28.4489)
|
|
|
|
[sub_resource type="Animation" id="Animation_xasj2"]
|
|
length = 0.5
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.01),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [5]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_6vsl0"]
|
|
resource_name = "idle"
|
|
length = 0.333337
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_a1h5o"]
|
|
resource_name = "new_animation"
|
|
length = 2.00005
|
|
loop_mode = 1
|
|
step = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.01, 0.303333, 0.59, 0.86, 1.15, 1.44, 1.74),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [2, 1, 3, 4, 5, 6, 7]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xasj2"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_xasj2"),
|
|
&"idle": SubResource("Animation_6vsl0"),
|
|
&"new_animation": SubResource("Animation_a1h5o")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_a1h5o"]
|
|
animation = &"idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_xasj2"]
|
|
animation = &"new_animation"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6vsl0"]
|
|
animation = &"new_animation"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_k05qf"]
|
|
animation = &"idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4th1x"]
|
|
animation = &"idle"
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_roimm"]
|
|
blend_point_0/node = SubResource("AnimationNodeAnimation_xasj2")
|
|
blend_point_0/pos = Vector2(-1, 0)
|
|
blend_point_1/node = SubResource("AnimationNodeAnimation_6vsl0")
|
|
blend_point_1/pos = Vector2(0, -0.9)
|
|
blend_point_2/node = SubResource("AnimationNodeAnimation_k05qf")
|
|
blend_point_2/pos = Vector2(0, 1)
|
|
blend_point_3/node = SubResource("AnimationNodeAnimation_4th1x")
|
|
blend_point_3/pos = Vector2(1, 0)
|
|
blend_mode = 1
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_a1h5o"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xasj2"]
|
|
advance_mode = 2
|
|
advance_condition = &"moving"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6vsl0"]
|
|
advance_mode = 2
|
|
advance_condition = &"not_moving"
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_roimm"]
|
|
states/idle/node = SubResource("AnimationNodeAnimation_a1h5o")
|
|
states/idle/position = Vector2(490, 105)
|
|
states/walk/node = SubResource("AnimationNodeBlendSpace2D_roimm")
|
|
states/walk/position = Vector2(490, 199)
|
|
transitions = ["Start", "idle", SubResource("AnimationNodeStateMachineTransition_a1h5o"), "idle", "walk", SubResource("AnimationNodeStateMachineTransition_xasj2"), "walk", "idle", SubResource("AnimationNodeStateMachineTransition_6vsl0")]
|
|
|
|
[node name="Node2D" type="CharacterBody2D"]
|
|
scale = Vector2(1.00672, 0.989311)
|
|
script = ExtResource("1_a1h5o")
|
|
|
|
[node name="Icon" type="Sprite2D" parent="."]
|
|
position = Vector2(0.566751, -15.3349)
|
|
texture = ExtResource("1_bmc7m")
|
|
hframes = 6
|
|
vframes = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0.496663, -14.0781)
|
|
scale = Vector2(0.999999, 1)
|
|
shape = SubResource("RectangleShape2D_bmc7m")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_xasj2")
|
|
}
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
tree_root = SubResource("AnimationNodeStateMachine_roimm")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
parameters/conditions/moving = false
|
|
parameters/conditions/not_moving = false
|
|
parameters/walk/blend_position = Vector2(-0.819838, -0.497758)
|