2.4 KiB
2.4 KiB
[ ADT's Report ]
Date: 2025-12-16
✅ main.tscn - Changes
- Added PowerUpBar GUI panel (center-top, 4 battery segments)
- Added LeaderboardPanel GUI panel (right side, 4 player entries)
- Added GoalsTimer GUI panel (top-left, standalone timer with background)
✅ main.gd - Changes
- Updated
_on_timer_updated()to use standalone GoalsTimer - Added
_deferred_init_leaderboard()for delayed leaderboard initialization - Added
request_leaderboard_sync()RPC for client-server leaderboard sync - Added
sync_leaderboard_data()RPC to receive leaderboard from server - Updated
_on_leaderboard_updated()to broadcast leaderboard to all clients - Updated
sync_game_start()to call deferred leaderboard init - Added
initialize_leaderboard_with_players()call in_start_game()
✅ ui_manager.gd - Changes
- Changed
setup_powerup_bar_ui()to get node reference instead of creating - Changed
setup_leaderboard_ui()to get node reference instead of creating - Added
_connect_powerup_manager_deferred()with 0.3s delay for signal connection - Updated
setup_timer_labels()to style standalone GoalsTimer - Fixed
powerup_barvariable type fromHBoxContainertoPanelContainer
✅ playerboard_manager.gd - Changes
- Added
_normalize_tile()helper (converts holo tiles 11-14 → 7-10) - Applied normalization to
find_best_goal_slot_for_item() - Applied normalization to
auto_put_item()for junk detection
✅ player_race_manager.gd - Changes
- Added
_normalize_tile()helper for holo tile equivalence - Applied normalization to
check_3x3_section()for goal completion detection
✅ goals_cycle_manager.gd - Changes
- Added
_initialize_player_scores()to init all players with score 0 at cycle start
Summary of Features
1. Power-up Bar & Leaderboard GUI
- Moved from script-instantiated to scene-based nodes
- Power-up bar displays 4 battery segments (12 points max)
- Leaderboard shows 4 player entries with rank, name, score
2. Standalone Timer
- Timer moved from PlayerGoals panels to top-left corner
- Styled with gold border and large font
3. Holo Tile Equivalence
- Holo tiles (11-14) now treated same as normal tiles (7-10)
- Works for auto-grab, auto-put, and goal completion
4. Leaderboard Client Sync Fix
- Server now broadcasts leaderboard data via RPC
- Clients request and receive authoritative player list from server