feat: add player core, movement, and playerboard managers, special tile effects system, and lobby scene.

This commit is contained in:
2025-12-09 21:16:06 +08:00
parent 7db63a2707
commit fe4c3eddb8
6 changed files with 332 additions and 2 deletions
@@ -36,6 +36,10 @@ func rotate_towards_target(target_pos: Vector2i):
func simple_move_to(grid_position: Vector2i) -> bool:
if not player.is_multiplayer_authority() or is_moving:
return false
# Check if player is frozen
if player.get("is_frozen"):
return false
# Check if target is within 1-tile range
var distance: int
@@ -79,6 +83,10 @@ func move_to_clicked_position(grid_position: Vector2i) -> bool:
if not player.is_multiplayer_authority() or is_moving or player.action_points <= 0:
return false
# Check if player is frozen
if player.get("is_frozen"):
return false
# Validate grid position is within bounds
if not enhanced_gridmap.is_position_valid(grid_position):
return false