Menus de muerte pausa y personajes renovados

This commit is contained in:
Diego De la Viuda Llorente committed 2026-11-09 14:58:36 +01:00
1 parent 97335c9d21
commit 6a267b2cf4
54 files changed
+14033 -3170

No files matched your search

@@ -0,0 +1,116 @@
[gd_resource type="SpriteFrames" load_steps=18 format=3]
[ext_resource type="Texture2D" path="res://assets/enemies/backstage_guard.svg" id="atlas"]
[sub_resource type="AtlasTexture" id="idle_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="idle_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_2"]
atlas = ExtResource("atlas")
region = Rect2(0, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_3"]
atlas = ExtResource("atlas")
region = Rect2(64, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_4"]
atlas = ExtResource("atlas")
region = Rect2(128, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_5"]
atlas = ExtResource("atlas")
region = Rect2(192, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_2"]
atlas = ExtResource("atlas")
region = Rect2(128, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_0"]
atlas = ExtResource("atlas")
region = Rect2(192, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_1"]
atlas = ExtResource("atlas")
region = Rect2(0, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="hurt_0"]
atlas = ExtResource("atlas")
region = Rect2(64, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 192, 64, 64)
filter_clip = true
[resource]
animations = [{
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
"loop": true,
"name": &"walk",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("attack_0")}, {"duration": 1.0, "texture": SubResource("attack_1")}, {"duration": 1.0, "texture": SubResource("attack_2")}],
"loop": false,
"name": &"attack",
"speed": 12.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
"loop": true,
"name": &"jump",
"speed": 7.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}],
"loop": false,
"name": &"hurt",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 1.0, "texture": SubResource("death_1")}],
"loop": false,
"name": &"death",
"speed": 6.0
}]
@@ -0,0 +1,116 @@
[gd_resource type="SpriteFrames" load_steps=18 format=3]
[ext_resource type="Texture2D" path="res://assets/enemies/feedback_tech.svg" id="atlas"]
[sub_resource type="AtlasTexture" id="idle_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="idle_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_2"]
atlas = ExtResource("atlas")
region = Rect2(0, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_3"]
atlas = ExtResource("atlas")
region = Rect2(64, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_4"]
atlas = ExtResource("atlas")
region = Rect2(128, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_5"]
atlas = ExtResource("atlas")
region = Rect2(192, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_2"]
atlas = ExtResource("atlas")
region = Rect2(128, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_0"]
atlas = ExtResource("atlas")
region = Rect2(192, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_1"]
atlas = ExtResource("atlas")
region = Rect2(0, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="hurt_0"]
atlas = ExtResource("atlas")
region = Rect2(64, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 192, 64, 64)
filter_clip = true
[resource]
animations = [{
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
"loop": true,
"name": &"walk",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("attack_0")}, {"duration": 1.0, "texture": SubResource("attack_1")}, {"duration": 1.0, "texture": SubResource("attack_2")}],
"loop": false,
"name": &"attack",
"speed": 12.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
"loop": true,
"name": &"jump",
"speed": 7.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}],
"loop": false,
"name": &"hurt",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 1.0, "texture": SubResource("death_1")}],
"loop": false,
"name": &"death",
"speed": 6.0
}]
+116
View File
@@ -0,0 +1,116 @@
[gd_resource type="SpriteFrames" load_steps=18 format=3]
[ext_resource type="Texture2D" path="res://assets/enemies/pogo_fan.svg" id="atlas"]
[sub_resource type="AtlasTexture" id="idle_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="idle_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_2"]
atlas = ExtResource("atlas")
region = Rect2(0, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_3"]
atlas = ExtResource("atlas")
region = Rect2(64, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_4"]
atlas = ExtResource("atlas")
region = Rect2(128, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_5"]
atlas = ExtResource("atlas")
region = Rect2(192, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_2"]
atlas = ExtResource("atlas")
region = Rect2(128, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_0"]
atlas = ExtResource("atlas")
region = Rect2(192, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_1"]
atlas = ExtResource("atlas")
region = Rect2(0, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="hurt_0"]
atlas = ExtResource("atlas")
region = Rect2(64, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 192, 64, 64)
filter_clip = true
[resource]
animations = [{
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
"loop": true,
"name": &"walk",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("attack_0")}, {"duration": 1.0, "texture": SubResource("attack_1")}, {"duration": 1.0, "texture": SubResource("attack_2")}],
"loop": false,
"name": &"attack",
"speed": 12.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
"loop": true,
"name": &"jump",
"speed": 7.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}],
"loop": false,
"name": &"hurt",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 1.0, "texture": SubResource("death_1")}],
"loop": false,
"name": &"death",
"speed": 6.0
}]
@@ -0,0 +1,116 @@
[gd_resource type="SpriteFrames" load_steps=18 format=3]
[ext_resource type="Texture2D" path="res://assets/enemies/rival_guitarist.svg" id="atlas"]
[sub_resource type="AtlasTexture" id="idle_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="idle_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_2"]
atlas = ExtResource("atlas")
region = Rect2(0, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_3"]
atlas = ExtResource("atlas")
region = Rect2(64, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_4"]
atlas = ExtResource("atlas")
region = Rect2(128, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_5"]
atlas = ExtResource("atlas")
region = Rect2(192, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_2"]
atlas = ExtResource("atlas")
region = Rect2(128, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_0"]
atlas = ExtResource("atlas")
region = Rect2(192, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_1"]
atlas = ExtResource("atlas")
region = Rect2(0, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="hurt_0"]
atlas = ExtResource("atlas")
region = Rect2(64, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 192, 64, 64)
filter_clip = true
[resource]
animations = [{
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
"loop": true,
"name": &"walk",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("attack_0")}, {"duration": 1.0, "texture": SubResource("attack_1")}, {"duration": 1.0, "texture": SubResource("attack_2")}],
"loop": false,
"name": &"attack",
"speed": 12.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
"loop": true,
"name": &"jump",
"speed": 7.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}],
"loop": false,
"name": &"hurt",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 1.0, "texture": SubResource("death_1")}],
"loop": false,
"name": &"death",
"speed": 6.0
}]
+116
View File
@@ -0,0 +1,116 @@
[gd_resource type="SpriteFrames" load_steps=18 format=3]
[ext_resource type="Texture2D" path="res://assets/enemies/roadie.svg" id="atlas"]
[sub_resource type="AtlasTexture" id="idle_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="idle_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 0, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_2"]
atlas = ExtResource("atlas")
region = Rect2(0, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_3"]
atlas = ExtResource("atlas")
region = Rect2(64, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_4"]
atlas = ExtResource("atlas")
region = Rect2(128, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="walk_5"]
atlas = ExtResource("atlas")
region = Rect2(192, 64, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_0"]
atlas = ExtResource("atlas")
region = Rect2(0, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_1"]
atlas = ExtResource("atlas")
region = Rect2(64, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="attack_2"]
atlas = ExtResource("atlas")
region = Rect2(128, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_0"]
atlas = ExtResource("atlas")
region = Rect2(192, 128, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="jump_1"]
atlas = ExtResource("atlas")
region = Rect2(0, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="hurt_0"]
atlas = ExtResource("atlas")
region = Rect2(64, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_0"]
atlas = ExtResource("atlas")
region = Rect2(128, 192, 64, 64)
filter_clip = true
[sub_resource type="AtlasTexture" id="death_1"]
atlas = ExtResource("atlas")
region = Rect2(192, 192, 64, 64)
filter_clip = true
[resource]
animations = [{
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
"loop": true,
"name": &"walk",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("attack_0")}, {"duration": 1.0, "texture": SubResource("attack_1")}, {"duration": 1.0, "texture": SubResource("attack_2")}],
"loop": false,
"name": &"attack",
"speed": 12.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
"loop": true,
"name": &"jump",
"speed": 7.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}],
"loop": false,
"name": &"hurt",
"speed": 10.0
}, {
"frames": [{"duration": 1.0, "texture": SubResource("death_0")}, {"duration": 1.0, "texture": SubResource("death_1")}],
"loop": false,
"name": &"death",
"speed": 6.0
}]
+2 -2
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="PackedScene" path="res://enemies/walker/walker.tscn" id="1_walker"]
[ext_resource type="Texture2D" path="res://assets/enemies/backstage_guard.svg" id="2_sprite"]
[ext_resource type="SpriteFrames" path="res://enemies/animations/backstage_guard_frames.tres" id="2_sprite"]
[node name="Walker" instance=ExtResource("1_walker")]
enemy_display_name = "Guardia del Camerino"
@@ -25,4 +25,4 @@ respawn_delay = 0.0
show_debug_hitboxes = false
[node name="Visual" parent="." index="0"]
texture = ExtResource("2_sprite")
sprite_frames = ExtResource("2_sprite")
+2 -2
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="PackedScene" path="res://enemies/walker/walker.tscn" id="1_walker"]
[ext_resource type="Texture2D" path="res://assets/enemies/feedback_tech.svg" id="2_sprite"]
[ext_resource type="SpriteFrames" path="res://enemies/animations/feedback_tech_frames.tres" id="2_sprite"]
[node name="Walker" instance=ExtResource("1_walker")]
enemy_display_name = "Tecnico del Feedback"
@@ -24,4 +24,4 @@ respawn_delay = 0.0
show_debug_hitboxes = false
[node name="Visual" parent="." index="0"]
texture = ExtResource("2_sprite")
sprite_frames = ExtResource("2_sprite")
+2 -2
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="PackedScene" path="res://enemies/walker/walker.tscn" id="1_walker"]
[ext_resource type="Texture2D" path="res://assets/enemies/pogo_fan.svg" id="2_sprite"]
[ext_resource type="SpriteFrames" path="res://enemies/animations/pogo_fan_frames.tres" id="2_sprite"]
[node name="Walker" instance=ExtResource("1_walker")]
enemy_display_name = "Fan del Pogo Eterno"
@@ -28,4 +28,4 @@ respawn_delay = 0.0
show_debug_hitboxes = false
[node name="Visual" parent="." index="0"]
texture = ExtResource("2_sprite")
sprite_frames = ExtResource("2_sprite")
+2 -2
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="PackedScene" path="res://enemies/walker/walker.tscn" id="1_walker"]
[ext_resource type="Texture2D" path="res://assets/enemies/rival_guitarist.svg" id="2_sprite"]
[ext_resource type="SpriteFrames" path="res://enemies/animations/rival_guitarist_frames.tres" id="2_sprite"]
[node name="Walker" instance=ExtResource("1_walker")]
enemy_display_name = "Guitarrista Rival"
@@ -28,4 +28,4 @@ respawn_delay = 0.0
show_debug_hitboxes = false
[node name="Visual" parent="." index="0"]
texture = ExtResource("2_sprite")
sprite_frames = ExtResource("2_sprite")
+2 -2
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3]
[ext_resource type="PackedScene" path="res://enemies/walker/walker.tscn" id="1_walker"]
[ext_resource type="Texture2D" path="res://assets/enemies/roadie.svg" id="2_sprite"]
[ext_resource type="SpriteFrames" path="res://enemies/animations/roadie_frames.tres" id="2_sprite"]
[node name="Walker" instance=ExtResource("1_walker")]
enemy_display_name = "Roadie del Mas Alla"
@@ -20,4 +20,4 @@ respawn_delay = 0.0
show_debug_hitboxes = false
[node name="Visual" parent="." index="0"]
texture = ExtResource("2_sprite")
sprite_frames = ExtResource("2_sprite")
+28 -1
View File
@@ -156,7 +156,7 @@ var drops_handled_by_level: bool = false
@onready var attack_collision: CollisionShape2D = $AttackHitbox/CollisionShape2D
@onready var floor_probe: RayCast2D = $FloorProbe
@onready var visibility_notifier: VisibleOnScreenNotifier2D = $VisibleOnScreenNotifier2D
@onready var visual: Sprite2D = $Visual
@onready var visual: AnimatedSprite2D = $Visual
# ============================================================================
@@ -222,6 +222,7 @@ func _ready() -> void:
_update_facing()
_reset_attack_hitbox_position()
visual.play(&"idle")
queue_redraw()
@@ -242,6 +243,7 @@ func _physics_process(delta: float) -> void:
if not is_awake:
velocity.x = 0.0
move_and_slide()
_update_actor_animation()
queue_redraw()
return
@@ -249,6 +251,7 @@ func _physics_process(delta: float) -> void:
if target == null:
velocity.x = 0.0
move_and_slide()
_update_actor_animation()
queue_redraw()
return
@@ -263,6 +266,7 @@ func _physics_process(delta: float) -> void:
velocity.x = move_toward(velocity.x, 0.0, knockback_strength * delta)
move_and_slide()
_update_actor_animation()
queue_redraw()
return
@@ -273,6 +277,7 @@ func _physics_process(delta: float) -> void:
move_and_slide()
_update_jump_visual()
_update_actor_animation()
queue_redraw()
@@ -483,6 +488,27 @@ func _find_jump_landing(destination: Vector2, max_rise: float, gravity_y: float,
return best_landing
## Las piernas de los enemigos se animan segun velocidad y estado de la IA.
## Es puramente visual: ataque, hitboxes, navegacion y tiempos permanecen intactos.
func _update_actor_animation() -> void:
var animation: StringName = &"idle"
if is_dead:
animation = &"death"
elif hit_stun_timer > 0.0:
animation = &"hurt"
elif attack_state != AttackState.IDLE:
animation = &"attack"
elif not is_on_floor():
animation = &"jump"
elif absf(velocity.x) > 7.0:
animation = &"walk"
if visual.sprite_frames == null or not visual.sprite_frames.has_animation(animation):
return
visual.speed_scale = clampf(absf(velocity.x) / maxf(move_speed, 1.0), 0.7, 1.4) if animation == &"walk" else 1.0
if visual.animation != animation:
visual.play(animation)
## Orienta ligeramente el sprite durante el vuelo sin cambiar su colision.
func _update_jump_visual() -> void:
if not _jump_in_progress:
@@ -727,6 +753,7 @@ func _die() -> void:
velocity = Vector2(_last_hit_direction * 150.0, -210.0)
COMBAT_FX.spawn(get_parent(), global_position, &"death", _last_hit_direction)
# La muerte logica y su senal ocurren una sola vez; la animacion no retrasa las recompensas.
_update_actor_animation()
died.emit()
# Los encuentros de laboratorio entregan su objeto asignado; el resto conserva su tabla aleatoria.
+4 -4
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=3]
[ext_resource type="Script" path="res://enemies/walker/walker.gd" id="1_walker"]
[ext_resource type="Texture2D" path="res://assets/enemies/roadie.svg" id="2_sprite"]
[ext_resource type="SpriteFrames" path="res://enemies/animations/roadie_frames.tres" id="2_sprite"]
[sub_resource type="RectangleShape2D" id="BodyShape"]
size = Vector2(28, 52)
@@ -14,10 +14,10 @@ collision_layer = 4
collision_mask = 1
script = ExtResource("1_walker")
[node name="Visual" type="Sprite2D" parent="."]
[node name="Visual" type="AnimatedSprite2D" parent="."]
z_index = -1
texture_filter = 1
texture = ExtResource("2_sprite")
texture_filter = 2
sprite_frames = ExtResource("2_sprite")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 0)