feat: introduce Stop N Go game mode with phase management, dynamic arena setup, and goal tracking.
This commit is contained in:
+7
-2
@@ -249,8 +249,8 @@ func broadcast_message(player_name: String, message: String):
|
||||
|
||||
func _setup_global_match_timer_ui():
|
||||
"""Create the global match timer display at the top of the screen."""
|
||||
# Check if timer check is enabled in lobby settings
|
||||
if not LobbyManager.enable_cycle_timer:
|
||||
# Check if timer check is enabled in lobby settings OR if in Stop n Go mode
|
||||
if not LobbyManager.enable_cycle_timer and LobbyManager.game_mode != "Stop n Go":
|
||||
var existing = get_node_or_null("GlobalMatchTimer")
|
||||
if existing:
|
||||
existing.visible = false
|
||||
@@ -563,6 +563,11 @@ func _start_game():
|
||||
# Only Server starts the mode logic (arena setup, missions, etc)
|
||||
if stop_n_go_manager:
|
||||
stop_n_go_manager.start_game_mode()
|
||||
|
||||
# Also start global match timer for Stop n Go
|
||||
if goals_cycle_manager:
|
||||
var match_duration = LobbyManager.get_match_duration()
|
||||
goals_cycle_manager.start_match(float(match_duration), false) # No cycles for Stop n Go
|
||||
elif goals_cycle_manager:
|
||||
var match_duration = LobbyManager.get_match_duration()
|
||||
goals_cycle_manager.start_match(float(match_duration))
|
||||
|
||||
Reference in New Issue
Block a user