最终整理版
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
[gd_scene format=3 uid="uid://dy3gyhmlew12g"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djkvk5b85leb3" path="res://data/graphics/sprites/npcs/chest-small.png" id="1_6jne0"]
|
||||
[ext_resource type="PackedScene" uid="uid://btojurpsnh3pq" path="res://presets/entities/sprites/animations/1Direction.tscn" id="2_dex3v"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_38rnv"]
|
||||
resource_name = "Attack"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".: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_kbkln"]
|
||||
resource_name = "Death"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".: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_8svaw"]
|
||||
resource_name = "From Trigger"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [3, 2, 1, 0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_x1wls"]
|
||||
resource_name = "Idle"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".: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_tli2y"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [3]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_5moda"]
|
||||
resource_name = "Sit"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".: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_2ge8q"]
|
||||
resource_name = "To Trigger"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_v53m3"]
|
||||
resource_name = "Trigger"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [3]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_yp2cr"]
|
||||
resource_name = "Walk"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".: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="AnimationLibrary" id="AnimationLibrary_gf7hs"]
|
||||
_data = {
|
||||
&"Attack": SubResource("Animation_38rnv"),
|
||||
&"Death": SubResource("Animation_kbkln"),
|
||||
&"From Trigger": SubResource("Animation_8svaw"),
|
||||
&"Idle": SubResource("Animation_x1wls"),
|
||||
&"RESET": SubResource("Animation_tli2y"),
|
||||
&"Sit": SubResource("Animation_5moda"),
|
||||
&"To Trigger": SubResource("Animation_2ge8q"),
|
||||
&"Trigger": SubResource("Animation_v53m3"),
|
||||
&"Walk": SubResource("Animation_yp2cr")
|
||||
}
|
||||
|
||||
[node name="Chest" type="Node2D" unique_id=736036800]
|
||||
|
||||
[node name="Body" type="Sprite2D" parent="." unique_id=1965116628]
|
||||
position = Vector2(0, -4)
|
||||
texture = ExtResource("1_6jne0")
|
||||
offset = Vector2(0, -16)
|
||||
hframes = 4
|
||||
frame = 3
|
||||
|
||||
[node name="Animation" type="AnimationPlayer" parent="." unique_id=1756113725]
|
||||
root_node = NodePath("../Body")
|
||||
libraries/ = SubResource("AnimationLibrary_gf7hs")
|
||||
|
||||
[node name="AnimationTree" parent="Animation" unique_id=1984405014 instance=ExtResource("2_dex3v")]
|
||||
root_node = NodePath("../../Body")
|
||||
Reference in New Issue
Block a user