feat: update some visual and fixing the bug
This commit is contained in:
+4
-4
@@ -720,6 +720,10 @@ func _auto_start_from_lobby():
|
||||
|
||||
func _start_game():
|
||||
if multiplayer.is_server():
|
||||
# NOW assign spawn positions for EVERYONE (Host, Client, Bots)
|
||||
# We do this BEFORE the stabilization delay so players are moved away from (0,0) immediately.
|
||||
_assign_random_spawn_positions()
|
||||
|
||||
# Wait for Nakama websocket to actually be open, up to 5 seconds
|
||||
# SKIP THIS FOR LAN MODE
|
||||
if not LobbyManager.is_lan_mode:
|
||||
@@ -735,10 +739,6 @@ func _start_game():
|
||||
# before the countdown starts.
|
||||
await get_tree().create_timer(1.5).timeout
|
||||
|
||||
# NOW assign spawn positions for EVERYONE (Host, Client, Bots)
|
||||
# This safely sends RPCs over the completed socket connection
|
||||
_assign_random_spawn_positions()
|
||||
|
||||
# PRE-GAME COUNTDOWN (3s)
|
||||
# Spawn static obstacles before countdown starts (Stop n Go only)
|
||||
if obstacle_manager and LobbyManager.game_mode == "Stop n Go":
|
||||
|
||||
Reference in New Issue
Block a user