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

StackColyseus · Phaser · TypeScript · Vite · mocha
LevelAdvanced
PlatformBrowser, Server
PlanPro
Needs on your computerNode.js 22 or newer
Setup questionsAbout 7 minutes

Start a project from one of these templates

Free plan on macOS. Pro is $10 a month or $96 a year.