feat: implement modular state-based player movement system with chain mechanics

This commit is contained in:
DottsGit
2026-06-04 10:26:18 -04:00
parent cb04df1df3
commit a86ef53622
6 changed files with 2 additions and 11 deletions
+1 -3
View File
@@ -57,10 +57,8 @@ func _process(delta: float) -> void:
var hspeed := Vector2(player.velocity.x, player.velocity.z).length()
# Dash FOV (highest priority)
if hspeed > params.dash_speed * 0.8:
if hspeed > params.walk_speed * 1.5:
_target_fov = params.dash_fov
elif hspeed > params.sprint_speed * 0.8:
_target_fov = params.sprint_fov
camera.fov = lerpf(camera.fov, _target_fov, 1.0 - exp(-params.fov_lerp_speed * delta))