Vibe coding a multiplayer game
Updated 2026-11-23
Short answer: make the single-player game first, then paste Joinable's prompt into the same AI tool. The AI reads Joinable's instructions, adds one script and a few hooks, and leaves the servers to Joinable: you don't set any up. Friends then join from a link, or strangers through quick match, and they get a waiting room, a 3-2-1, live standings, results and a rematch button. It's free while you build. It works for games that run in a web browser.
Before you start
- Make the game fun alone first. Multiplayer is much easier to add to a game that already works. Get one level, one track or one round playing well.
- It has to be a web game. If you open it in a browser, it counts. Native phone apps, desktop downloads and console games don't work with Joinable.
- Pick a game that suits it. Races, anything with a score or a time, board and card games, puzzles, builders and party games all fit. Fighting games and competitive shooters don't yet.
What to paste
Use your coding tool (Claude Code, Cursor, Codex, Copilot, Windsurf or similar), opened on your game's folder, and paste this:
Make this web game multiplayer using Joinable. Read
https://getjoinable.com/AGENTS.md first and follow it exactly: it says how
to pick the right pattern for this game's genre, what to change, and how to test
with two browser tabs. Start with the smallest change that works (usually one
script tag), test it with two tabs, and only go further if the doc's checks fail
for this game. Don't write any server code: Joinable's hosted relay does all of
that. No key is needed on localhost. If the doc's self-test applies (full rounds),
run it with `npx getjoinable test <the game's local URL>` until it passes. When
you're done, tell me which pattern you used, what you changed, and anything that
doesn't sync.
You don't need an account for this step. Using Lovable, Bolt, Replit or v0 instead? Read the app builders guide first: those need a free key from the start.
Steps for each tool: Claude Code, Cursor, Codex, GitHub Copilot.
What to expect
- It takes a while. For a simple shared-world game (a board game, a drawing game) it can be one line. For a race or a score game, the AI wires a few hooks, which usually takes longer: our own estimate for full matches is about an hour.
- The AI will ask to run commands. It needs to start your game and run Joinable's test, which opens two invisible browsers and plays a round. Say yes.
- It reports back. The prompt asks it to tell you which kind of multiplayer it chose, what it changed, and anything that doesn't sync. Read that bit.
- Your game changes very little. No new server, no login system, no lobby screens to design. Joinable draws the invite button, waiting room, countdown, standings and results in your game's colours.
- Solo still works. If Joinable can't load (offline, blocked network), the game is single player as before, and the Play online button just doesn't appear.
Check it yourself
Don't take the AI's word for it. Two checks, in order:
- Two windows on your computer. Open the game in two browser windows side by side (not two tabs). In one, press Play online and Invite. Open the invite link in the other window. Press Ready in both. You should see each other move, and both windows should show the same results.
- A friend somewhere else, on a phone. Once the game is online (next section), send a friend the invite link. They don't need an account: they open it and they're in, with a made-up name like "Lucky Gecko" that they can change. A phone on mobile data and a laptop on wifi is the real test.
If something's off, tell the AI exactly what you saw ("the other car doesn't move", "we get different tracks", "the results differ"). Those three map to real problems it can fix: the other players aren't drawn, the level isn't built from the shared seed, or the game doesn't tell Joinable when someone finishes.
Putting it online
When the game is on a real website, it needs a key. It's free:
- Sign up at getjoinable.com/app with your email.
- Add your game, and add the website address where people will play it.
- Give the AI your key (
pk_…) and ask it to put it in Joinable's script tag. The key isn't a password: it's fine for it to be in your game's code.
If the game shows "Offline: key not allowed here" in the corner, the address you play on isn't the one you added. Add it in the dashboard.
What it costs
- Building and testing: free. On your own computer there's no account, no key, and rooms of up to 8 players.
- Live, on the free plan: 100 player-hours a month in rooms of up to 4. A player-hour is one person playing online for an hour: two friends racing for 30 minutes is one.
- When more people play: Starter is $9.99 a month for 3,000 player-hours and rooms of 8. Beyond that you top up credit in advance, so there are no surprise bills. If you run out, new online games pause; nobody is cut off mid-game, and solo play always works.
Full details on the pricing page.
Where it stops working
- Fighting games and competitive shooters need technology Joinable doesn't have yet.
- Players' own devices report their scores, so a determined cheater could fake one. Fine for friends and casual leaderboards; not for prizes.
- Web games only.
Three games run on Joinable today: Turbo Rally and Sky Isle Karts, both racers, and Firestorm, a 4v4 strategy game. Play one with a friend to see what your players will get.
FAQ
Can I make a multiplayer game without coding?
Yes, if your AI tool does the coding. Make the game work alone, then paste Joinable's prompt: the AI adds the multiplayer and tests it, and Joinable runs the servers. You check the result by playing it in two windows and with a friend.
Do I need to set up a server for vibe-coded multiplayer?
No. Joinable's hosted relay runs the rooms, invites and matchmaking. If your AI starts writing a server, ask it to follow Joinable's instructions instead.
How much does it cost to add multiplayer?
Nothing while you build and test on your own computer. A live game on the free plan gets 100 player-hours a month; paid plans start at $9.99 a month.
Do my players need an account?
No. A friend opens your invite link and they're in, with a made-up name they can change.
What kinds of games work?
Games that run in a web browser: racers, score games, puzzles, board and card games, builders, party games and strategy games. Fighting games and competitive shooters don't work yet.