Your rules.
The same room.
Make a new browser game and reuse hosting, invites, connections and host handover.
Start with something playable
In the essays-site repository, run:
pnpm games:new arena-duel "Arena Duel"This creates a registered game with working hosting, a board renderer and turn-based rules. Change its module and client to make it your own.
Keep three pieces separate
- Rules: create state, handle commands, simulate and produce player views.
- Client: draw the game, read controls and call the shared room API.
- Catalog: name, player limit, version and module location.
Use Banjoball for a real-time example and Four in a Row for a turn-based example. The room service does not need a new endpoint for each game.
Full contracts and deployment instructions live in game-hub/GAME-API.md and game-hub/DEPLOYMENT.md in the repository.
This platform runs browser games. Games that require a native executable need a separate server adapter.