add-multiplayer
Add real-time or turn-based multiplayer to an existing browser game using PartyKit (Cloudflare Durable Objects). Scaffolds a room-based server, a NetworkManager client, EventBus events, GameState fields, and Constants. Use when the user says "add multiplayer", "make this multiplayer", "add real-time co-op", "add online play", "scaffold multiplayer", or "add netcode". Do NOT use for single-player AI opponents (use add-feature) or peer-to-peer/WebRTC games.
- Version
- 0.1.0
- License
- MIT
- Compatibility
- Requires an existing Phaser 3 or Three.js game with game-creator architecture (EventBus, GameState, Constants) under `app/<route>/game/`. Requires a Cloudflare account for `npx partykit deploy` (free tier is sufficient).
Pinned to revision 20e5c670ed76, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/add-multiplayer/SKILL.md
- skills/add-multiplayer/architecture.md
- skills/add-multiplayer/client-integration.md
- skills/add-multiplayer/partykit-server.md
Every link opens the file at its source, pinned to the revision this page describes.