Commit Graph

88 Commits

Author SHA1 Message Date
08f398c9e1 Corregir ruta del servidor compilado en start.sh
All checks were successful
build-and-deploy / build (push) Successful in 19s
build-and-deploy / deploy (push) Successful in 11s
2025-08-15 12:36:59 -06:00
05c3fbf06d Corregir ruta del servidor compilado en start.sh 2025-08-15 12:36:59 -06:00
7adc342ffa Usar node:lts-slim y configurar puertos 8089:8090 con red principal
All checks were successful
build-and-deploy / build (push) Successful in 59s
build-and-deploy / deploy (push) Successful in 0s
2025-08-15 12:28:20 -06:00
c70d40f1ac Usar node:lts-slim y configurar puertos 8089:8090 con red principal 2025-08-15 12:28:20 -06:00
05e6467158 Usar node:lts para resolver problema de crypto en build
Some checks failed
build-and-deploy / build (push) Successful in 2m5s
build-and-deploy / deploy (push) Failing after 1s
2025-08-15 12:24:45 -06:00
04281808a8 Usar node:lts para resolver problema de crypto en build 2025-08-15 12:24:45 -06:00
84fa2b86d3 Corregir errores de TypeScript y optimizar build para Docker
Some checks failed
build-and-deploy / build (push) Failing after 48s
build-and-deploy / deploy (push) Has been skipped
2025-08-15 12:22:46 -06:00
9f148fbb4e Corregir errores de TypeScript y optimizar build para Docker 2025-08-15 12:22:46 -06:00
84aef0774d Simplificar Docker a imagen única y actualizar workflow CI/CD
Some checks failed
build-and-deploy / build (push) Failing after 47s
build-and-deploy / deploy (push) Has been skipped
2025-08-15 12:18:42 -06:00
c0fa1e4e70 Simplificar Docker a imagen única y actualizar workflow CI/CD 2025-08-15 12:18:42 -06:00
3385636129 cambiado el gitea
Some checks failed
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 5s
build-and-deploy / deploy (push) Failing after 1s
2025-08-15 12:09:03 -06:00
46e746940d Agregar workflow de Gitea Actions para CI/CD
Some checks failed
build-and-deploy / filter (push) Successful in 3s
build-and-deploy / build (push) Failing after 11s
build-and-deploy / deploy (push) Has been skipped
2025-08-15 12:06:55 -06:00
232c159baf Actualizar sistema de admin y mejoras en lobby 2025-08-15 12:04:12 -06:00
e14bdddc62 Implementar controles globales de admin en dashboard
- Agregados botones de control global: pausar, reanudar, reiniciar, cambiar variante, enviar al lobby
- Implementados endpoints API para operaciones masivas en todas las game rooms
- Agregado método executeAdminCommand en GameRoom para manejo unificado de comandos admin
- Mejorado manejo de desconexión automática al lobby cuando admin cierra rooms
- Interfaz responsiva con confirmaciones de usuario y estados de carga
- Sistema robusto de limpieza de rooms con fallback de forzado
2025-08-12 18:13:53 -06:00
b754ec043a Implementar sistema UUID para nombres únicos globales
- Agregado UUID persistente en base de datos local (LokiJS)
- Nombres únicos por UUID en lugar de sessionId
- Nombres persisten entre reconexiones mientras el servidor esté activo
- Migración automática de perfiles existentes
- Registrados handlers para evitar warnings de mensajes no encontrados
2025-08-12 17:35:57 -06:00
75b114d66d se animan desde el primer momento 2025-08-12 10:50:47 -06:00
93661a8e8b mejora diseño responsive del lobby 2025-08-12 10:22:04 -06:00
32f69805f0 Dashboard real-time updates con SSE y tabla de rooms
- Implementación de Server-Sent Events (SSE) para actualizaciones en tiempo real
- Nuevo componente RoomsTable para vista de águila con animaciones de tokens
- Componente RoomCard extraído para reutilización
- Modal para ver detalles de rooms
- SystemMessageDisplay usando AnimatedNumber creativamente
- Indicador de conexión SSE con fallback a polling
- Colores dinámicos de texto basados en brillo del fondo
- Backend: broadcast de actualizaciones del dashboard
- Backend: mensajes del sistema (excepto cambios de ronda) visibles en dashboard
- Configuración de Vite para acceso desde red local
2025-08-11 23:07:09 -06:00
deb63d4e38 juego pausado al irse un jugador 2025-08-11 18:47:59 -06:00
ee0243d456 arreglado chatsystem para funcionar junto a la reconexion 2025-08-11 18:40:34 -06:00
9a44afc81a reconexion establecida 2025-08-11 18:36:24 -06:00
e5e5ad452a nombre persitente por navegador 2025-08-11 14:59:37 -06:00
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