96 lines
2.9 KiB
Plaintext
96 lines
2.9 KiB
Plaintext
[gd_scene load_steps=9 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_8xegc"]
|
|
size = Vector2(22, 20)
|
|
|
|
[sub_resource type="Animation" id="Animation_ue5sa"]
|
|
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_o87wd"]
|
|
resource_name = "walk"
|
|
length = 2.5
|
|
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, 2.1),
|
|
"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="Animation" id="Animation_6p4h5"]
|
|
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="AnimationLibrary" id="AnimationLibrary_0a2an"]
|
|
_data = {
|
|
"attack": SubResource("Animation_6p4h5"),
|
|
"idle": SubResource("Animation_ue5sa"),
|
|
"walk": SubResource("Animation_o87wd")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_h4jmi"]
|
|
nodes/output/position = Vector2(900, 140)
|
|
|
|
[node name="test_player" type="CharacterBody2D"]
|
|
script = ExtResource("1_6aci1")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(1, 2)
|
|
shape = SubResource("RectangleShape2D_8xegc")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
z_index = 1
|
|
texture = ExtResource("1_8pmbp")
|
|
hframes = 6
|
|
vframes = 6
|
|
frame = 33
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_0a2an")
|
|
}
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
tree_root = SubResource("AnimationNodeBlendTree_h4jmi")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
|
|
[node name="player_cam" type="Camera2D" parent="."]
|
|
current = true
|
|
|
|
[node name="InvulnerableTimer" type="Timer" parent="."]
|