Commit Graph

6 Commits

Author SHA1 Message Date
426d4b7ab6 listos los mermaids que explican el juego 2025-08-07 22:47:31 -06:00
5b3efc533f fix(game): avoid duplicate player cards by relying on MapSchema onAdd/onRemove with key and removing manual initial population 2025-08-07 17:16:08 -06:00
1912b3a76f docs: add contributor and Colyseus guides
feat(client): parametrize WS/API via VITE_WS_URL and VITE_API_URL; add .env.example and README env section
2025-08-07 17:10:08 -06:00
5a273766a6 docs: add detailed system architecture documentation
- Document complete connection flow from lobby to game
- Explain room management system (LobbyRoom vs GameRoom)
- Detail state synchronization using Colyseus Schema
- Document communication protocol and message types
- Explain unique name management system with examples
- Add complete game flow sequence diagram
- Document reconnection handling mechanism
- Detail admin dashboard REST API endpoints
2025-08-06 02:59:26 -06:00
1392e5a652 fix: resolve room state synchronization and player display issues
- Fix room.state.players undefined error on component mount
- Wait for initial state sync before accessing room data
- Move message handlers from service to Game component
- Fix player count display in waiting screen (was showing 0/2)
- Prevent lobby component from clearing game room on unmount
- Separate leaveLobby() and leaveGame() methods for proper cleanup
- Ensure player names persist when moving from lobby to game
- Add proper error handling for state initialization
2025-08-06 02:58:29 -06:00
a28bc286a1 feat: implement competitive clicker MVP with Colyseus.js
- Add real-time multiplayer game server with Colyseus
- Implement unique player naming system with auto-increment
- Create lobby system with automatic matchmaking
- Build 10-minute competitive clicking game rooms (max 2 players)
- Add admin dashboard for game management (pause/resume/restart/kick)
- Implement Vue 3 client with professional UI
- Add WebSocket communication with state synchronization
- Include TypeScript throughout with proper typing
- Create REST API for admin operations
- Add reconnection support and error handling
2025-08-06 02:32:18 -06:00