A collection of multiplayer game experiments built with SpacetimeDB, featuring different genres and gameplay styles. Each game is developed on its own branch with shared infrastructure.
# Make the agent executable
chmod +x game-planning-agent.js
# Run the planning agent
./game-planning-agent.js-
Fight or Die (
human-war-tacticsbranch)- Turn-based tactical combat
- 5x5 grid with terrain effects
- Status: Playable Phase 1
-
Insect Colony Wars (Planned)
- Real-time strategy MMO
- Resource gathering & warfare
- Status: Design phase
See GAME-DESIGNS.md for all game concepts.
- Interactive CLI for new games
- Generates SpacetimeDB + TypeScript boilerplate
- Supports multiple game types
- Architecture enforcement
- Design validation
- Code quality checks
- Real-time Multiplayer: .io games, battle arenas, real-time strategy
- Turn-based Multiplayer: Chess, card games, board games
- Single Player with Online Features: Leaderboards, achievements, cloud saves
- Node.js 18+
- SpacetimeDB CLI
- Basic knowledge of Rust or C# (for backend)
- TypeScript/JavaScript knowledge (for frontend)
-
Plan Your Game
./game-planning-agent.js # Choose option 1: Create game concept -
Generate Project Structure
./game-planning-agent.js # Choose option 2: Generate project structure -
Start Development
cd your-game-name # Terminal 1: Run SpacetimeDB cd backend && spacetime dev # Terminal 2: Run frontend cd frontend && npm install && npm run dev
Generated projects follow this structure:
your-game/
├── backend/ # SpacetimeDB module (Rust/C#)
│ ├── Cargo.toml
│ └── src/
│ └── lib.rs
├── frontend/ # TypeScript client
│ ├── package.json
│ ├── src/
│ │ ├── main.ts
│ │ ├── services/
│ │ │ └── spacetime.ts
│ │ ├── components/
│ │ └── types/
│ └── index.html
├── package.json
└── README.md
The agent can generate boilerplate for:
- Player authentication
- Real-time movement/position tracking
- Chat systems
- Leaderboards
- Matchmaking
- Inventory systems
- Turn-based game logic
- Start Small: Begin with core mechanics before adding features
- Server Authority: Validate all game logic server-side
- Optimize Early: Use proper indexes and efficient queries
- Test Multiplayer: Test with multiple clients from the start
- Handle Disconnects: Implement reconnection logic
Feel free to extend the agents with:
- Additional game templates
- More sophisticated code generation
- Integration with game engines (Phaser, PixiJS)
- Testing utilities
- Deployment scripts
- Multiplayer Snake: Real-time movement, collision detection, leaderboards
- Chess/Checkers: Turn-based logic, game state validation, matchmaking
- Battle Royale: Spatial queries, real-time combat, shrinking zones
- Trading Card Game: Deck building, turn management, card effects
- Collaborative Drawing: Real-time canvas updates, room management
Happy game building! 🎮✨