Ajustes de camara

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-20 15:19:40 +02:00
1 parent 00804de7d9
commit 0ff8df6a6b
9 files changed
+42 -42

No files matched your search

+6 -6
View File
@@ -25,7 +25,7 @@ enum AttackState {
@export_category("Movement")
@export var move_speed: float = 21.5
@export var move_speed: float = 78.0
@export var max_fall_speed: float = 800.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 = 63.0
@export var attack_trigger_distance: float = 140.0
## Keeps the Walker from starting a ground attack against a player far above or
## below it.
@export var attack_vertical_tolerance: float = 35.0
@export var attack_vertical_tolerance: float = 80.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.
@@ -61,10 +61,10 @@ enum AttackState {
@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(17.0, 0.0)
@export var attack_start_offset: Vector2 = Vector2(34.0, 0.0)
## Furthest horizontal position reached by the moving hitbox.
@export var attack_reach: float = 53.0
@export var attack_reach: float = 120.0
## A successful player hit briefly interrupts the Walker. This makes attacking
## during its windup useful instead of forcing an unavoidable damage trade.
@@ -72,7 +72,7 @@ enum AttackState {
## Strength of the knockback applied per point of damage. The final push is
## divided by the enemy's max health, so tougher enemies move less.
@export var knockback_strength: float = 250.0
@export var knockback_strength: float = 400.0
## How long the knockback impulse lasts before friction brings the enemy to a halt.
@export var knockback_duration: float = 0.4
+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(17, 31)
size = Vector2(28, 52)
[sub_resource type="RectangleShape2D" id="AttackShape"]
size = Vector2(20, 24)
size = Vector2(32, 40)
[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(10, 14)
target_position = Vector2(0, 14)
position = Vector2(17, 24)
target_position = Vector2(0, 24)
collision_mask = 1
enabled = true
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
rect = Rect2(-13, -19, 26, 38)
rect = Rect2(-17, -25, 34, 50)