the classic

This commit is contained in:
pennyrigate 2025-12-09 16:40:20 -05:00
parent e39dc97bd3
commit dccc27dd72
2 changed files with 14 additions and 1 deletions

View file

@ -14,6 +14,6 @@ var focused: bool:
func _physics_process(delta: float) -> void:
var input_dir = Input.get_vector(&"move_left", &"move_right", &"move_up", &"move_down").sign()
velocity = input_dir * (move_focused_speed if focused else move_normal_speed)
velocity = input_dir.normalized() * (move_focused_speed if focused else move_normal_speed)
move_and_slide()