fix: wire match-live into Chess and Ludo — enables reconnect on refresh
Chess game scene:
- Imports and calls matchLive.start(matchId, 'chess', callbacks)
- Creates localStorage entry → browser refresh auto-resumes
- matchLive.session.destroy() on endGame → clears recovery
Ludo game scene:
- Same pattern: matchLive.start(matchId, 'ludo', callbacks)
- Clears session on endGame
Now the flow works:
1. Player enters live game → matchLive.start() saves to localStorage
2. Player refreshes browser → engine boot finds recovery → verifies server → auto-rejoins
3. Game ends normally → matchLive.session.destroy() clears localStorage
4. Player goes to homepage after game → no recovery popup (correct)
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
ludo-playtest/02-menu.png
0 → 100644
125 KB
ludo-playtest/03-board.png
0 → 100644
27.1 KB
ludo-playtest/04-roll1.png
0 → 100644
28.1 KB
ludo-playtest/04-roll2.png
0 → 100644
28.8 KB
ludo-playtest/debug-page.png
0 → 100644
101 KB
102 KB