feat: Introduce a new modular bot AI system for decision-making, movement, and actions.

This commit is contained in:
Yogi Wiguna
2026-03-02 15:32:50 +08:00
parent 78634d6421
commit c16a0043bc
3 changed files with 13 additions and 17 deletions
+8
View File
@@ -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()