feat: wire multiplayer module into Chess and Ludo UI
Chess (live mode):
- Fetches opponent profile, shows real name in opponent bar
- Emotes sync to opponent via game_state (send + receive)
- Connection status monitored (green/yellow/red dot)
- Incoming emotes shown as floating animation
- mp.cleanup() on game end
Ludo (live mode):
- Emotes sync to opponent via ludo-match.php
- Connection status monitored
- Incoming emotes received and displayed
- Polling starts if not player's turn at game start
Both games:
- Fixed emoteWrap variable reference (was using wrong 'wrap')
- Shared multiplayer.js handles all common features
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment