Devlog
Devlog

Playing with friends: how our room codes work

10 October 2026 · Hasan Raja · Updated 20 October 2026

We wanted playing with a friend to be as simple as sending a number on WhatsApp.

Six digits, no accounts

None of our games need an account. To play together, one player creates a room and gets a six-digit code. The other player types it in. That is the whole process.

A small relay

Our server does not run the game for you. It pairs players by room code and passes their messages along. In two-player games, one device runs the match and the other follows it. In Dusk Ridge's 5v5 arena the server keeps the room, the score and the bots.

Rooms clean themselves up

Empty rooms expire, and a room closes when both players leave. We do not keep a history of matches.

From a number to a shared match

  1. The host creates a room in a game that supports online rooms.
  2. The host shares the displayed code with the intended players.
  3. A joining player enters that code in the same game.
  4. The relay pairs the connections with the active room, allowing game messages to reach the other participants.
  5. When the room is no longer active, players must create or join a new one.

The code locates a live session. It is not an account, a progress backup, or an invitation that stays valid forever. A code from Lunch Siege should not be entered into Dusk Ridge: the games have different match structures even though the invitation pattern looks familiar.

Room discovery is different from simulation

Finding the other player answers who should receive a message. It does not determine how a flying tomato collides with a block or how an arena bot moves. In Lunch Siege, the active player's device runs the turn and sends its result through the relay. The receiving device follows that state instead of independently guessing a different throw. Dusk Ridge has a different workload because its arena includes teams, scores and bots.

QuestionRole
Which session am I joining?The room code identifies it.
Where should a game message go?The relay routes it to the room's participants.
What happens during a turn?The game's simulation rules decide.
What if the room has expired?Create a new session and share its new code.

Why a small relay is a tradeoff

Passing game messages keeps room entry simple, but a relay does not make unreliable connections disappear. A paused host tab, disconnected device or delayed message can still interrupt a match. Separating pairing from simulation makes it easier to describe the failure: did the second player fail to enter the room, or did an already-started match stop updating?

Neither a short code nor an account-free design is a substitute for authentication when sensitive information is involved. Treat a room code as something to share with the players you intend to invite, and do not put personal details in a display name. The privacy policy explains the site's technical logs and usage counting separately from room cleanup.

A useful connection bug report

Tell us the game, whether you created or joined the room, the two device/browser combinations, and whether failure happened before or after the match began. Note if either player switched tabs or lost connectivity. Those details help distinguish room discovery from a simulation or connection problem. Send the report through Contact.

For a concrete example of turn data passing through the relay, read Lunch Siege physics and online turns.

Pick a game