Daño aumentado, tamaño de los personajes disminuid

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-20 13:42:46 +02:00
1 parent 6d0948022a
commit 79a7621a42
4 files changed
+18 -18

No files matched your search

+6 -6
View File
@@ -25,7 +25,7 @@ enum AttackState {
@export_category("Movement")
@export var move_speed: float = 85.0
@export var move_speed: float = 43.0
@export var max_fall_speed: float = 1200.0
@@ -44,11 +44,11 @@ enum AttackState {
## Horizontal distance at which the Walker stops chasing and prepares a hit.
## This is intentionally wider than the final hitbox so entering range does not
## mean taking unavoidable damage.
@export var attack_trigger_distance: float = 125.0
@export var attack_trigger_distance: float = 63.0
## Keeps the Walker from starting a ground attack against a player far above or
## below it.
@export var attack_vertical_tolerance: float = 70.0
@export var attack_vertical_tolerance: float = 35.0
## Readable pause before the dangerous part of the attack starts. During this
## time the direction is locked, so moving behind the enemy is a valid dodge.
@@ -57,14 +57,14 @@ enum AttackState {
## Duration of the actual hit. The hitbox sweeps forward during this window.
@export var attack_duration: float = 0.22
## Small recovery after the hit before the enemy can move again.
## Small recovery after the hit before the enemy can hitbox again.
@export var attack_recovery_duration: float = 0.30
## Where the hitbox starts, relative to the enemy while facing right.
@export var attack_start_offset: Vector2 = Vector2(34.0, 0.0)
@export var attack_start_offset: Vector2 = Vector2(17.0, 0.0)
## Furthest horizontal position reached by the moving hitbox.
@export var attack_reach: float = 105.0
@export var attack_reach: float = 53.0
## A successful player hit briefly interrupts the Walker. This makes attacking
## during its windup useful instead of forcing an unavoidable damage trade.
+5 -5
View File
@@ -3,10 +3,10 @@
[ext_resource type="Script" path="res://enemies/walker/walker.gd" id="1_walker"]
[sub_resource type="RectangleShape2D" id="BodyShape"]
size = Vector2(34, 62)
size = Vector2(17, 31)
[sub_resource type="RectangleShape2D" id="AttackShape"]
size = Vector2(40, 48)
size = Vector2(20, 24)
[node name="Walker" type="CharacterBody2D" groups=["enemy"]]
collision_layer = 4
@@ -36,10 +36,10 @@ monitorable = false
shape = SubResource("AttackShape")
[node name="FloorProbe" type="RayCast2D" parent="."]
position = Vector2(19, 27)
target_position = Vector2(0, 27)
position = Vector2(10, 14)
target_position = Vector2(0, 14)
collision_mask = 1
enabled = true
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
rect = Rect2(-26, -38, 52, 76)
rect = Rect2(-13, -19, 26, 38)
+4 -4
View File
@@ -102,8 +102,8 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
@export var punch_duration: float = 0.13
@export var punch_cooldown: float = 0.28
@export var punch_hitbox_size: Vector2 = Vector2(55.0, 38.0)
@export var punch_offset: Vector2 = Vector2(48.0, 0.0)
@export var punch_hitbox_size: Vector2 = Vector2(28.0, 19.0)
@export var punch_offset: Vector2 = Vector2(24.0, 0.0)
# ============================================================================
@@ -121,8 +121,8 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
## Small amount of steering kept during the fall.
@export_range(0.0, 1.0) var ground_pound_horizontal_control: float = 0.25
@export var ground_pound_radius: float = 85.0
@export var ground_pound_offset: Vector2 = Vector2(0.0, 28.0)
@export var ground_pound_radius: float = 43.0
@export var ground_pound_offset: Vector2 = Vector2(0.0, 14.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
+3 -3
View File
@@ -8,7 +8,7 @@
[ext_resource type="PackedScene" path="res://ui/hud/special_charge_hud.tscn" id="6_special_charge_hud"]
[sub_resource type="RectangleShape2D" id="PlayerShape"]
size = Vector2(52, 92)
size = Vector2(26, 46)
[node name="Player" type="CharacterBody2D" groups=["player"]]
z_index = 1
@@ -49,14 +49,14 @@ monitorable = false
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
z_index = -1
scale = Vector2(0.64201, 0.64201)
scale = Vector2(0.321005, 0.321005)
sprite_frames = ExtResource("2_frames")
animation = &"idle"
speed_scale = 2.0
[node name="Camera2D" type="Camera2D" parent="."]
scale = Vector2(0.5, 0.5)
zoom = Vector2(2.4, 2.4)
zoom = Vector2(3.0, 3.0)
script = ExtResource("3_camera")
[node name="PlayerHealthHUD" parent="." instance=ExtResource("5_health_hud")]