feat: Implement player movement, rotation, and advanced push mechanics with new PlayerMovementManager, StopNGoManager, and player scene script.
This commit is contained in:
@@ -62,14 +62,6 @@ func simple_move_to(grid_position: Vector2i) -> bool:
|
||||
print("[Move] Failed: Player is frozen")
|
||||
return false
|
||||
|
||||
# Stop n Go Mode Violation Check
|
||||
var main = player.get_tree().root.get_node_or_null("Main")
|
||||
if main:
|
||||
var manager = main.get_node_or_null("StopNGoManager")
|
||||
if manager and manager.has_method("check_movement_violation"):
|
||||
if manager.check_movement_violation(player.name.to_int(), player.current_position, grid_position):
|
||||
print("[Move] Failed: Stop N Go Violation")
|
||||
return false
|
||||
|
||||
var distance: int
|
||||
if use_diagonal_movement:
|
||||
|
||||
Reference in New Issue
Block a user