Nivel nuevo de prueba, primera Alpha

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-21 16:46:46 +02:00
1 parent f1363dd6c8
commit 4850d79149
36 files changed
+1609 -26

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"bassist"
display_name = "Bassist"
sprite_frames = ExtResource("2_frames")
max_health = 100
max_health = 50
move_speed = 390.0
jump_velocity = -600.0
basic_attack_damage = 5
+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"drummer"
display_name = "Drummer"
sprite_frames = ExtResource("2_frames")
max_health = 100
max_health = 50
move_speed = 390.0
jump_velocity = -600.0
basic_attack_damage = 5
+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"guitarist"
display_name = "Guitarist"
sprite_frames = ExtResource("2_frames")
max_health = 100
max_health = 50
move_speed = 390.0
jump_velocity = -600.0
basic_attack_damage = 5
+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"singer"
display_name = "Singer"
sprite_frames = ExtResource("2_frames")
max_health = 100
max_health = 50
move_speed = 390.0
jump_velocity = -600.0
basic_attack_damage = 5
+12 -5
View File
@@ -127,10 +127,11 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
@export var ground_pound_radius: float = 54.0
@export var ground_pound_offset: Vector2 = Vector2(0.0, 18.0)
## Damage per pixel of jump height. Higher jumps deal more damage, up to the max.
@export var ground_pound_damage_per_pixel: float = 0.03
@export_range(1, 100, 1) var ground_pound_min_damage: int = 1
@export_range(1, 100, 1) var ground_pound_max_damage: int = 10
## From 7 damage on a small jump to 12 on a high one; always stronger
## than a standard 5-point punch, even without any pickup.
@export var ground_pound_damage_per_pixel: float = 0.065
@export_range(1, 100, 1) var ground_pound_min_damage: int = 7
@export_range(1, 100, 1) var ground_pound_max_damage: int = 12
# ============================================================================
@@ -475,8 +476,14 @@ func _ground_pound_impact() -> void:
var hit_targets: Dictionary = {}
# The final damage is capped too: active buffs make the 12-point ceiling
# easier to reach, rather than turning an alpha attack into a one-shot.
var final_damage: int = mini(
roundi(damage * (1.0 + _damage_boost_multiplier + _air_damage_boost_multiplier)),
ground_pound_max_damage
)
for area in ground_pound_hitbox.get_overlapping_areas():
_damage_target(area, roundi(damage * (1.0 + _damage_boost_multiplier + _air_damage_boost_multiplier)), hit_targets)
_damage_target(area, final_damage, hit_targets)
# ============================================================================