Repository navigation
Firefox Compatibility & Lives System Fixes
Firefox WebSocket Support
- Fixed connection errors when accessing game from Firefox browsers
- Added WebSocket keepalive with 30-second ping/pong to prevent timeouts
- Implemented proper connection timeout handling (15 seconds)
- Optional origin validation now configurable via
ALLOWED_ORIGINSenvironment variable - Enhanced server-side connection tracking with health monitoring
Lives System Correction
- Fixed premature game-over bug where stats appeared after any player death
- Players now only removed from game when lives reach zero (true elimination)
- Opponent tracking maintains lives count across respawns
- Death messages now display remaining lives: "You destroyed Player2! (Lives: 2)"
- Eliminated players show distinct message: "You eliminated Player3!"
- Game-over screen now only triggers when one player remains alive