Menu de inicio, nuevo nivel y ajustes en objetos

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-29 16:39:46 +01:00
1 parent cd9f31c8c1
commit 827e16cf50
61 files changed
+2685 -3553

No files matched your search

+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.91764706, 0.77254902, 0.54901961, 1.0)
effect_type = "air_damage_boost"
value = 0.5
duration = 10.0
duration = 0.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.72549020, 0.60392157, 0.98039216, 1.0)
effect_type = "speed_boost"
value = 0.35
duration = 8.0
duration = 30.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.60784314, 0.38431373, 0.26274510, 1.0)
effect_type = "speed_boost"
value = 0.25
duration = 12.0
duration = 30.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.89803922, 0.90196078, 0.98823529, 1.0)
effect_type = "damage_boost"
value = 0.2
duration = 20.0
duration = 0.0
-14
View File
@@ -1,14 +0,0 @@
[gd_resource type="Resource" script_class="PickupData" load_steps=3 format=3]
[ext_resource type="Script" path="res://pickups/pickup_data.gd" id="1_data"]
[ext_resource type="Texture2D" path="res://assets/pickups/cinta_americana.svg" id="2_icon"]
[resource]
script = ExtResource("1_data")
id = &"lab_control"
display_name = "Testigo del Laboratorio"
description = "Un objeto de control para comprobar los pickups sin combatir."
icon = ExtResource("2_icon")
color = Color(0.63137255, 0.75686275, 0.80000000, 1.0)
effect_type = "shield"
value = 1.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.96078431, 0.35686275, 0.47058824, 1.0)
effect_type = "speed_boost"
value = 0.15
duration = 20.0
duration = 45.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.50980392, 0.84705882, 0.95294118, 1.0)
effect_type = "jump_boost"
value = 0.2
duration = 12.0
duration = 30.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.46274510, 0.74117647, 0.86274510, 1.0)
effect_type = "damage_boost"
value = 0.5
duration = 7.0
duration = 0.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.86274510, 0.47058824, 0.97254902, 1.0)
effect_type = "damage_boost"
value = 0.3
duration = 12.0
duration = 0.0
+1 -1
View File
@@ -12,4 +12,4 @@ icon = ExtResource("2_icon")
color = Color(0.76078431, 0.92156863, 0.49411765, 1.0)
effect_type = "damage_reduction"
value = 0.25
duration = 12.0
duration = 30.0
+2
View File
@@ -125,6 +125,8 @@ func _on_body_entered(body: Node2D) -> void:
if body.collect_pickup(pickup_data):
picked_up.emit(self, pickup_data)
queue_free()
elif pickup_data.effect_type in ["damage_boost", "air_damage_boost"]:
label.text = "%s\n(NO MEJORA TU DANO)" % pickup_data.display_name
elif pickup_data.effect_type == "heal":
# No es un fallo de colision: el jugador ya tiene la vida completa.
label.text = "%s\n(HP LLENO)" % pickup_data.display_name
+4 -2
View File
@@ -21,8 +21,10 @@ class_name PickupData
emit_changed()
@export_category("Effect")
## heal y special_charge son instantaneos; shield absorbe golpes; las demas mejoras caducan.
## Value expresa cantidad absoluta para vida/carga y fraccion adicional para mejoras temporales.
## heal y special_charge son instantaneos; shield absorbe golpes.
## damage_boost y air_damage_boost duran hasta recibir un golpe; los otros buffs caducan.
## Value expresa cantidad absoluta para vida/carga y fraccion adicional para mejoras.
@export_enum("heal", "speed_boost", "damage_boost", "special_charge", "shield", "damage_reduction", "jump_boost", "air_damage_boost") var effect_type: String = "heal"
@export var value: float = 0.0
## Segundos solo para speed_boost, jump_boost y damage_reduction. Dano ignora este campo.
@export var duration: float = 0.0