feat: Implement a new portal door game mode with arena partitioning, dynamic connections, and multiplayer synchronization.
This commit is contained in:
@@ -58,6 +58,14 @@ func _ready():
|
||||
if multiplayer.is_server():
|
||||
randomize_game_grid()
|
||||
|
||||
@rpc("any_peer", "call_local", "reliable")
|
||||
func sync_portal_configs(configs: Array):
|
||||
if portal_mode_manager:
|
||||
# Temporarily store the configs and trigger spawn
|
||||
# Note: We use a custom property in manager to pass this
|
||||
portal_mode_manager.set_meta("door_configs", configs)
|
||||
portal_mode_manager._spawn_portal_doors()
|
||||
|
||||
# Force gridmap cell size to match player logic (1, 0.05, 1) - >0.001 to avoid errors
|
||||
var em = $EnhancedGridMap
|
||||
if em:
|
||||
|
||||
Reference in New Issue
Block a user