All Things Open stage · Phaser 4 + Colyseus + Auth0 FGA
Phones are controllers.
The laptop is the arena.
A reusable multiplayer tag game: one host screen shows the map, every
phone joins with a QR code, and the Colyseus server decides who is
it. Every tag is an Auth0 FGA check, and the
host flips the rules mid-round (shields, tagging off, no tag-backs)
by writing tuples.
How it works
-
Host opens
/host on a laptop and
creates a room. Everyone signs in with Auth0
(Google or email + password).
-
Players scan the QR code, pick a nickname, and
drive a virtual joystick.
-
One random player starts as it. Touching someone passes the
tag (with 1.5s tag-back immunity). 90 seconds. Least time as
it wins.
Rules (server-authoritative)
- Positions, collisions, tags, and the clock live on the server.
- Clients only send joystick input.
- If it disconnects, the room reassigns immediately.
- Reconnects rejoin the same player slot by guest id or Auth0
sub.