Skip to content

reforma-ai/games

unversioned · 20e5c670ed76

Create a browser games — 2D with Phaser or 3D with Three.js

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).
Read SKILL.md at the source

Pinned to revision 20e5c670ed76, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.