180 lines
7.2 KiB
Plaintext
180 lines
7.2 KiB
Plaintext
[gd_scene load_steps=20 format=3 uid="uid://c1gncjamuavvs"]
|
|
|
|
[ext_resource type="Script" path="res://Characters/test_player/test_player.gd" id="1_6aci1"]
|
|
[ext_resource type="Texture2D" uid="uid://cs5o8bykug82q" path="res://Characters/test_player/WARRIOR SKELETON SS 2.png" id="1_8pmbp"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_a08cb"]
|
|
size = Vector2(22, 20)
|
|
|
|
[sub_resource type="Animation" id="Animation_1103t"]
|
|
resource_name = "attack"
|
|
length = 0.65
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 5), Vector2i(1, 5), Vector2i(2, 5), Vector2i(3, 5)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_vnyb5"]
|
|
resource_name = "damage"
|
|
step = 0.01
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:self_modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.0001, 0.05, 0.1, 0.14, 0.18, 0.23, 0.28, 0.32, 0.36, 0.41, 0.46, 0.5, 0.54, 0.59, 0.64, 0.68, 0.72, 0.77, 0.82, 0.86, 0.9, 0.95, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Color(0.792157, 0.0901961, 0.0901961, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(0.792157, 0.0901961, 0.0901961, 1), Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_gq32v"]
|
|
resource_name = "die"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.9),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 4), Vector2i(1, 4), Vector2i(2, 4), Vector2i(3, 4), Vector2i(4, 4)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_r2lqp"]
|
|
resource_name = "idle"
|
|
length = 2.0
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.4, 0.8, 1.2, 1.6),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 0), Vector2i(1, 0), Vector2i(2, 0), Vector2i(3, 0), Vector2i(4, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_psmw8"]
|
|
resource_name = "walk"
|
|
loop_mode = 1
|
|
step = 0.01
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.17, 0.34, 0.51, 0.74, 0.96),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 1), Vector2i(1, 1), Vector2i(2, 1), Vector2i(3, 1), Vector2i(4, 1), Vector2i(5, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rx5pu"]
|
|
_data = {
|
|
"attack": SubResource("Animation_1103t"),
|
|
"damage": SubResource("Animation_vnyb5"),
|
|
"die": SubResource("Animation_gq32v"),
|
|
"idle": SubResource("Animation_r2lqp"),
|
|
"walk": SubResource("Animation_psmw8")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_7kx25"]
|
|
|
|
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_gm2dr"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_cl8pn"]
|
|
animation = &"attack"
|
|
|
|
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_tyu0k"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_f5cnp"]
|
|
animation = &"damage"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4qn65"]
|
|
animation = &"die"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_kqkvd"]
|
|
animation = &"idle"
|
|
|
|
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_66hu3"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_jxg51"]
|
|
animation = &"walk"
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_6ake6"]
|
|
graph_offset = Vector2(-1059.2, -82.3198)
|
|
nodes/AttackOneShot/node = SubResource("AnimationNodeOneShot_7kx25")
|
|
nodes/AttackOneShot/position = Vector2(-320, 60)
|
|
nodes/DieOneShot/node = SubResource("AnimationNodeOneShot_gm2dr")
|
|
nodes/DieOneShot/position = Vector2(-120, 180)
|
|
nodes/attack_anim/node = SubResource("AnimationNodeAnimation_cl8pn")
|
|
nodes/attack_anim/position = Vector2(-560, 200)
|
|
nodes/damageOneShot/node = SubResource("AnimationNodeOneShot_tyu0k")
|
|
nodes/damageOneShot/position = Vector2(100, 320)
|
|
nodes/damage_anim/node = SubResource("AnimationNodeAnimation_f5cnp")
|
|
nodes/damage_anim/position = Vector2(-200, 460)
|
|
nodes/die_anim/node = SubResource("AnimationNodeAnimation_4qn65")
|
|
nodes/die_anim/position = Vector2(-440, 340)
|
|
nodes/idle_anim/node = SubResource("AnimationNodeAnimation_kqkvd")
|
|
nodes/idle_anim/position = Vector2(-940, 60)
|
|
nodes/output/position = Vector2(400, 340)
|
|
nodes/walkIdleBlend/node = SubResource("AnimationNodeBlend2_66hu3")
|
|
nodes/walkIdleBlend/position = Vector2(-660, -40)
|
|
nodes/walk_anim/node = SubResource("AnimationNodeAnimation_jxg51")
|
|
nodes/walk_anim/position = Vector2(-920, -80)
|
|
node_connections = [&"output", 0, &"damageOneShot", &"AttackOneShot", 0, &"walkIdleBlend", &"AttackOneShot", 1, &"attack_anim", &"DieOneShot", 0, &"AttackOneShot", &"DieOneShot", 1, &"die_anim", &"damageOneShot", 0, &"DieOneShot", &"damageOneShot", 1, &"damage_anim", &"walkIdleBlend", 0, &"walk_anim", &"walkIdleBlend", 1, &"idle_anim"]
|
|
|
|
[node name="test_player" type="CharacterBody2D" groups=["player"]]
|
|
script = ExtResource("1_6aci1")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(1, 2)
|
|
shape = SubResource("RectangleShape2D_a08cb")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
z_index = 1
|
|
texture = ExtResource("1_8pmbp")
|
|
hframes = 6
|
|
vframes = 6
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_rx5pu")
|
|
}
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
tree_root = SubResource("AnimationNodeBlendTree_6ake6")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
active = true
|
|
parameters/AttackOneShot/active = false
|
|
parameters/AttackOneShot/request = 0
|
|
parameters/DieOneShot/active = false
|
|
parameters/DieOneShot/request = 0
|
|
parameters/damageOneShot/active = false
|
|
parameters/damageOneShot/request = 0
|
|
parameters/walkIdleBlend/blend_amount = 1.0
|
|
|
|
[node name="player_cam" type="Camera2D" parent="."]
|
|
modulate = Color(0, 0, 0, 1)
|
|
current = true
|
|
|
|
[node name="InvulnerableTimer" type="Timer" parent="."]
|