feat: Introduce a new modular bot AI system for decision-making, movement, and actions.
This commit is contained in:
@@ -94,6 +94,13 @@ func _activate_hud():
|
||||
hud_layer.visible = true
|
||||
_update_hud_visuals()
|
||||
|
||||
func activate_client_side():
|
||||
"""Called on clients to show HUD and prepare local state."""
|
||||
print("[PortalModeManager] Activating client-side HUD")
|
||||
_activate_hud()
|
||||
# Initial update to catch any missed goal counts
|
||||
_update_hud_visuals()
|
||||
|
||||
func setup_arena_locally():
|
||||
"""Sets up GridMap size and walls. Called on host and clients."""
|
||||
if arena_setup_done:
|
||||
@@ -405,6 +412,7 @@ func _on_global_goal_count_updated(_peer_id: int, _count: int):
|
||||
pass
|
||||
|
||||
func _on_goal_count_updated(peer_id: int, _count: int):
|
||||
# Update HUD if relevant (always check if it's the local player whose count changed)
|
||||
if peer_id == multiplayer.get_unique_id():
|
||||
_update_hud_visuals()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user