feat: Introduce PlayerMovementManager to manage player movement, rotation, attack mode push mechanics, and grid-based collision detection.

This commit is contained in:
Yogi Wiguna
2026-02-20 17:54:58 +08:00
parent e90cbfe246
commit 0e4d69f7b9
8 changed files with 193 additions and 61 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ func _ensure_shortcut_label(btn: Button, button_name: String):
btn.add_child(shortcut_lbl)
func _on_joystick_direction(direction: Vector2i):
if local_player and local_player.has_method("simple_move_to"):
if local_player and local_player.movement_manager:
var target_pos = local_player.current_position + direction
local_player.movement_manager.simple_move_to(target_pos)