Multiplayer, the pop-in kind

No lobbies, no friend codes, no accounts. Open a multiplayer game on Open Arcade and you are in. When a friend opens the same page, they pop into your game, live. This page shows exactly how we do it, with the real code from our own games. Steal all of it.

Try it in ten seconds: E2 Pong

E2 Pong is the smallest multiplayer game we have, so it is the one to learn from. On your own, you play the computer, and the game is complete. Send the link to a friend, or open it on your phone, and the moment their page loads they become player two and the computer politely steps aside. First to 5 wins.

E2 Pong cover art
▶
Load the live game

Open Pong full screenRead the full sourceDownload pong.html

How Pong does it

  1. A room is just a WebSocket that repeats everything. Our relay is a tiny Cloudflare Worker. Everyone who opens the game connects to the same room, and every message one player sends is forwarded to everyone else in it. That forwarding loop below is the entire server logic. The whole file is under 60 lines.
// relay-worker.js: the whole server, give or take async webSocketMessage(ws, message) { for (const other of this.state.getWebSockets()) { if (other !== ws) { try { other.send(message); } catch (e) {} } } }
  1. Say hello, then split the jobs. On connect, each player announces themselves. The first player in the room is the host: they run the ball and broadcast the game state. The second player is the guest: they send only their own racket position, and the host folds it into the game. One source of truth, so the two screens can never disagree.
// from pong/index.html, lightly trimmed mq.publish(topic('presence'), JSON.stringify({ cid: cid, role: mode, who: myWho })); // the host broadcasts the game, about 20 times a second mq.publish(topic('state'), JSON.stringify({ cid: cid, bx: ball.x, by: ball.y, ly: you.y, s1: you.score, s2: cpu.score })); // the guest sends only their racket mq.publish(topic('guest'), JSON.stringify({ cid: cid, y: Math.round(cpu.y) }));
  1. Keep the client tiny. The browser side is one small connect function: open the socket, hand messages to the game, republish the game's messages. Pong's is about 30 lines and works for any game, not just Pong. It lives at the top of the source, marked RelayClient.

The rules that keep it simple

The big version: E2 World 2D

Pong has a host. E2 World 2D does not. In the world, every player broadcasts their own state about ten times a second on a shared message feed: position, direction, what they are wearing, what they just said in chat, and which car they are driving or riding in. Hop into a friend's car and they can drive you around town. Same pop-in rule: open the page and you are standing in the world with everyone else.

On December 1, 2026, the dock filled up: eight people playing in the same world at the same time, chatting and driving around. Here is Dave, right after it happened:

Dave
Dave
@dave · LlamaChat
We had like 8 people all playing E2 World today at the same time! That was fun!
A crowd of players together in E2 World See the post on LlamaChat

The trick that makes eight players look smooth instead of teleporty: nobody renders the raw packets. Each client keeps a small buffer of everyone else's recent snapshots and renders them a fraction of a second in the past, interpolating between the two snapshots around that moment. Jitter disappears, because you are always gliding between two known points.

// net.js: sending, about 10 times a second, only on change function sendState(force, full) { const s = currentState(full); if (!s) return; const m = JSON.stringify(s); if (!force && m === lastSentJson) return; lastSentJson = m; for (const c of clients) if (c.connected) c.publish(TOPIC + myId, m); } // net.js: receiving, one snapshot buffer per player p.buf.push({ t: bt, x: p.tx, y: p.ty }); if (p.buf.length > 30) p.buf.shift(); // the renderer samples the buffer a beat in the past and // interpolates, so nobody ever freeze-jumps

net.js also carries the world chat, the player list, and the Points hooks. It is the biggest file of the three, and it is all yours to read below.

You can see who is playing

One of the nicest things about pop-in multiplayer costs almost nothing: the moment a second player joins, the game shows everyone's profile in the top right corner, picture and name, automatically. Play solo and the corner stays empty and out of the way. The second a friend pops in, their face appears up there, and you know exactly who just showed up. Monster Truck Alley does this today. Here is a mockup of its corner in action:

A mockup of the players bar in Monster Truck Alley: profiles appear on their own when friends pop in, and the bar hides itself when you are playing solo.

Building it is nearly free. The hello message already carries each player's name and picture, so the bar is just a row of chips you redraw whenever someone joins or leaves. Small touch, big difference: a game with faces in the corner feels like a place with people in it.

Grab the code

E2 Pong, the whole game

One HTML file, about 29 KB: the game, the relay client, the host and guest logic, the computer opponent. The friendliest place to start.

Read itDownload

The relay server

Under 60 lines of Cloudflare Worker with one Durable Object per room. Deploy your own, or point your game at ours while you experiment.

Read itDownload

E2 World 2D net.js

The grown-up version: presence for a whole world, snapshot interpolation, chat, shared cars. Read it when Pong starts to feel small.

Read itDownload

Build yours

  1. Make the solo game first, with the computer covering the empty seats.
  2. Drop in the relay client, pick a room name, and connect on page load.
  3. Send a hello (presence), then inputs or state, as tiny JSON.
  4. Decide who owns what: a host, or each player owning themselves.
  5. Upload it here and send the link to a friend. The second browser is the whole test suite.

Upload your gamePlay Together shelfAll multiplayer games

Use this code in your own games however you like. A shout-out is nice, never required.