Commit Graph

16 Commits

Author SHA1 Message Date
0b9c121f73 mejoras de UI, mensajes del sistema y hints 2025-08-11 00:03:15 -06:00
b40e076851 mejoras de UI OfferActions 2025-08-10 21:08:30 -06:00
8a7f97270d mejoras UI OfferControls 2025-08-10 20:30:18 -06:00
bec944af4f mejoras de UI AnimatedNumber 2025-08-10 19:46:41 -06:00
3c3b19b2ce mejoras de UI PlayerStats 2025-08-10 18:14:53 -06:00
e6733cf5e4 sistema de chat implementado 2025-08-10 17:28:46 -06:00
0c0f23c008 arreglados los mermaids 2025-08-10 16:44:48 -06:00
9673c6ce9e fix: prevent multiple P2 actions on same offer and improve UI consistency
- Add server validation to prevent P2 from taking multiple actions on the same offer
- Hide P2 action buttons after an action is taken (using \!state.p2Action condition)
- Add offer details display to G3, G4, and G5 (was missing)
- Fix G2 to show offer details instead of just 'Oferta activa'
- Reset game status to PLAYING when changing variant from FINISHED state
- Ensure P2 can only make one decision per offer in all variants
2025-08-08 00:10:10 -06:00
305f19c7b0 fix: reset game status to playing when changing variant after finished state 2025-08-07 23:54:52 -06:00
f89331a3db feat: implement variable token offers and auto-round advancement
- Add variable offer system where P1 can offer any amount of tokens
- Players start with 10 tokens each (P1: pavos, P2: elotes)
- Implement offer/request mechanism with token validation
- Auto-advance rounds after P2 actions or P1 no-offer
- G2: Force offer by default, disable no-offer button when forced
- G3: Wait for shame decision after snatch before advancing
- G4: Implement inverse sanction (P1 gets requested without giving offered)
- Reset rounds to 1 when changing game variants
- Fix OfferControls responsiveness issues
- Hide offer controls after active offer
- Update all G1-G5 components with proper offer flow
2025-08-07 23:53:18 -06:00
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