A digital multiplayer adaptation of the card game Munchkin, built with Godot 4.6 and C#.
- Players: 3–6 players per game session
- Rules: Based on official Steve Jackson Games rules (base game only, no expansions)
- Architecture: Client-server with authoritative server model
- Networking: HTTP REST API + WebSocket for real-time gameplay
- Technology: Godot 4.6 with C# (.NET), using custom networking (not Godot MultiplayerAPI)
MVP Development Phase - Implementing the first gameplay loop following the 7-step plan in MVP_PLAN.md.
- Authentication & JWT-based login
- Lobby management (HTTP API)
- WebSocket client with reconnection handling
- Complete card data system (168 card definitions)
- Game state machine with all Munchkin phases
- 3D equipment panel with drag-and-drop
- Card3D plugin integration for 3D card visuals
- Step 1: MunchkinCard3D visual system
- Step 2: MockServer for client-side game logic simulation
- Step 3: Main GameBoard scene with turn flow
- HTTP: Lobby creation/joining, authentication, matchmaking
- WebSocket: Real-time gameplay (turn progression, combat, card plays)
- Authoritative server: All game logic validated server-side
- Message protocol: JSON-based with typed messages (see
PROTOCOL.md)
- Login → Lobby → Start Game
- Turn phases: Open Door → Combat/Look for Trouble/Loot Room → Charity → End Turn
- Combat system with force calculation, flee mechanics, and rewards
res://
├── Scenes/ # Godot scenes
├── Scripts/ # C# game logic
│ ├── Networking/ # HTTP, WebSocket, message protocol
│ ├── GameState/ # State machine, player management
│ ├── Cards/ # Card data, factory, visuals
│ ├── Systems/ # Equipment, combat, economy logic
│ └── UI/ # Interface controllers
├── Resources/ # Card definitions, assets
└── addons/card_3d/ # 3D card visualization plugin
- Godot 4.6+ with .NET 8 support
- Git
- CSharpier for code formatting
- Always check
MVP_PLAN.mdfor current implementation status - Follow test-first methodology from
AGENTS.md - Run
dotnet csharpier format .before committing - Verify compilation before logic testing
AGENTS.md- System prompt with game rules, architecture, and development methodologyMVP_PLAN.md- 7-step implementation plan for the first gameplay loopPROTOCOL.md- Complete WebSocket message protocol specificationTESTING.md- Testing strategy and procedures
The implementation follows the official Munchkin rules document (AGENTS.md) which includes:
- Turn state machine (§7)
- Combat algorithm (§8)
- Equipment slot rules (§9)
- Victory conditions (§2)
- Edge cases (§14)
- Complete 7-step implementation plan
- First playable turn cycle with mock server
- Basic combat system
- Multi-turn bot auto-play
- Real server integration
- Full combat interaction window
- Negotiation and alliance system
- Equipment drag-and-drop between collections
- Polish UI/UX
- Sound effects and animations
- Spectator mode
- Statistics and leaderboards
Apache-2.0 - See LICENSE file for details.
Currently in active development. The project follows strict test-first methodology and game rule compliance as specified in AGENTS.md.
Munchkin is a trademark of Steve Jackson Games. This project is a fan-made digital adaptation for educational purposes.