feat: Implement core game logic, player script, and the Stop n Go game mode with its dedicated manager.
This commit is contained in:
+5
-1
@@ -759,6 +759,10 @@ func _start_game():
|
||||
if LobbyManager.game_mode == "Tekton Doors" and portal_mode_manager:
|
||||
portal_mode_manager._randomize_connections()
|
||||
|
||||
# STOP N GO: Rotate players to face East BEFORE countdown
|
||||
if LobbyManager.game_mode == "Stop n Go" and stop_n_go_manager:
|
||||
stop_n_go_manager.rotate_players_to_start()
|
||||
|
||||
await _start_pre_game_countdown()
|
||||
|
||||
GameStateManager.start_game()
|
||||
@@ -1507,7 +1511,7 @@ func _deferred_set_player_goals(player_id: int, goals: Array):
|
||||
ui_manager.update_playerboard_ui()
|
||||
|
||||
|
||||
@rpc("any_peer", "call_local")
|
||||
@rpc("any_peer", "call_local", "reliable")
|
||||
func sync_playerboard(player_id: int, new_playerboard: Array):
|
||||
# Find the player and update their playerboard
|
||||
var player = get_node_or_null(str(player_id))
|
||||
|
||||
Reference in New Issue
Block a user