feat: Implement core game managers for power-ups, UI, goals, and player actions, and establish initial game scene and player.

This commit is contained in:
2025-12-17 03:51:15 +08:00
parent e41ffcfb67
commit 75eb398649
8 changed files with 216 additions and 56 deletions
+5 -1
View File
@@ -2,7 +2,7 @@ extends Node
# GoalsCycleManager - Handles 60-second goal cycles, scoring, and goal regeneration
const CYCLE_DURATION: float = 60.0
const CYCLE_DURATION: float = 30.0
const BASE_SCORE: int = 100
const TIME_BONUS_MULTIPLIER: float = 2.0
@@ -126,6 +126,10 @@ func on_goal_completed(player: Node, time_remaining: float):
# Sync score to all clients
rpc("sync_player_score", peer_id, player_scores[peer_id])
# Clear playerboard tiles (they convert to powerup bar reward)
player.playerboard.fill(-1)
player.rpc("sync_playerboard", player.playerboard)
# Regenerate goals for this player
regenerate_goals_for_player(player)