feat: add Stop n Go game mode with new arena, assets, and manager script.
This commit is contained in:
+5
-2
@@ -33,7 +33,9 @@ var display_name: String:
|
||||
|
||||
# Helper to check network status
|
||||
func can_rpc() -> bool:
|
||||
return multiplayer.has_multiplayer_peer() and multiplayer.multiplayer_peer.get_connection_status() == MultiplayerPeer.CONNECTION_CONNECTED
|
||||
if not multiplayer.has_multiplayer_peer(): return false
|
||||
if multiplayer.multiplayer_peer.get_class() == "OfflineMultiplayerPeer": return false
|
||||
return multiplayer.multiplayer_peer.get_connection_status() == MultiplayerPeer.CONNECTION_CONNECTED
|
||||
|
||||
# Special effect states
|
||||
var is_frozen: bool = false
|
||||
@@ -1131,7 +1133,8 @@ func _physics_process(delta):
|
||||
# Use a slightly larger threshold (0.05) to ignore micro-vibrations
|
||||
if current_world_pos.distance_to(last_sent_pos) > 0.05:
|
||||
set_meta("_last_sent_pos", current_world_pos)
|
||||
rpc("remote_set_position", current_world_pos, Time.get_ticks_msec())
|
||||
if can_rpc():
|
||||
rpc("remote_set_position", current_world_pos, Time.get_ticks_msec())
|
||||
|
||||
# NOTE: Finish line checking removed - game uses cycle-based goals system now
|
||||
|
||||
|
||||
Reference in New Issue
Block a user