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)