More work on combat

This commit is contained in:
2025-10-09 14:52:47 -04:00
parent 7563e99059
commit 9a216d3285
44 changed files with 547 additions and 103 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=13 format=3 uid="uid://cdtpyg5ohniax"]
[gd_scene load_steps=15 format=3 uid="uid://cdtpyg5ohniax"]
[ext_resource type="Script" uid="uid://ce0vugvrwvppb" path="res://scripts/questor_sprite.gd" id="1_0ev5i"]
[ext_resource type="Texture2D" uid="uid://bu0e077vc8qo1" path="res://graphics/questview/lvlup-circle.png" id="2_nqdtq"]
@@ -124,11 +124,60 @@ tracks/3/keys = {
"values": [Vector2(0, -45), Vector2(0, -40), Vector2(0, -45), Vector2(0, -40), Vector2(0, -45)]
}
[sub_resource type="Animation" id="Animation_cr46e"]
resource_name = "spear attack"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.033333335, 0.06666667, 0.10000001, 0.13333334, 0.16666667, 0.20000002, 0.23333335, 0.26666668),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [11, 11, 12, 13, 14, 15, 16, 17, 18]
}
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.16666667, 0.5),
"transitions": PackedFloat32Array(1, 1),
"values": [{
"args": [],
"method": &"trigger_hit"
}, {
"args": [true, "spear idle"],
"method": &"complete_action"
}]
}
[sub_resource type="Animation" id="Animation_nqdtq"]
resource_name = "spear idle"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [18]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_pylgq"]
_data = {
&"RESET": SubResource("Animation_7jhts"),
&"idle": SubResource("Animation_gy3gd"),
&"running": SubResource("Animation_5om5g")
&"running": SubResource("Animation_5om5g"),
&"spear attack": SubResource("Animation_cr46e"),
&"spear idle": SubResource("Animation_nqdtq")
}
[sub_resource type="Gradient" id="Gradient_nqdtq"]
@@ -155,6 +204,11 @@ offset_top = 274.0
offset_right = 89.0
offset_bottom = 274.0
script = ExtResource("1_0ev5i")
life = null
max_life = null
energy = null
max_energy = null
exp = null
[node name="GroundFX" type="Node2D" parent="."]
position = Vector2(0, -30)
@@ -175,7 +229,7 @@ texture = ExtResource("3_cr46e")
position = Vector2(0, -53)
texture = ExtResource("2_w1b7t")
hframes = 4
vframes = 3
vframes = 5
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
@@ -187,6 +241,7 @@ autoplay = "running"
position = Vector2(0, -94)
[node name="LifeBar" type="TextureProgressBar" parent="."]
visible = false
layout_mode = 0
offset_left = -37.0
offset_top = 16.0