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
This commit is contained in:
2025-08-06 02:32:18 -06:00
commit a28bc286a1
30 changed files with 7053 additions and 0 deletions

25
server/package.json Normal file
View File

@@ -0,0 +1,25 @@
{
"name": "snatchgame-server",
"version": "1.0.0",
"description": "Competitive clicker game server",
"main": "dist/index.js",
"scripts": {
"dev": "npx ts-node-dev --respawn --transpile-only src/index.ts",
"build": "tsc",
"start": "node dist/index.js"
},
"dependencies": {
"@colyseus/monitor": "latest",
"@colyseus/schema": "latest",
"colyseus": "latest",
"cors": "latest",
"express": "latest"
},
"devDependencies": {
"@types/cors": "latest",
"@types/express": "latest",
"@types/node": "latest",
"ts-node-dev": "^2.0.0",
"typescript": "latest"
}
}