Multiplayer game (Colyseus)
An online multiplayer game in the browser: a Colyseus server that owns the rules, a Phaser client that predicts and draws, rooms with matchmaking, input checked on the server, and tests that run the real server with simulated players and a hostile client.
What you build
- Two or more players in one room, moving in sync
- A server that decides the game state and rejects bad input
- Room matchmaking with reconnection after a dropped connection
- Tests with simulated players and a hostile client
What you need
| Stack | Colyseus · Phaser · TypeScript · Vite · mocha |
|---|---|
| Level | Advanced |
| Platform | Browser, Server |
| Plan | Pro |
| Needs on your computer | Node.js 22 or newer |
| Setup questions | About 7 minutes |
Start a project from one of these templates
Free plan on macOS. Pro is $10 a month or $96 a year.