All guides

How to make an .io game with Claude Code

Ask Claude Code for a Slither.io style game and about ten minutes later you can play it, bots and leaderboard included. Make it your own one prompt at a time, then install the Multiplayer Agent plugin with two commands, and one more prompt makes it multiplayer and hands you a link.

The whole build: one prompt to a playable game, then guns, body health, roguelike pickups and multiplayer on Multiplayer Agent.

01Start with one prompt

Nate opens Claude Code in VS Code on a new, empty folder. The model is Opus 5.5 on high effort. Extra high is there, but a game this simple doesn't need it, and medium would probably do.

The first prompt is five words: make a Slither.io style game. The goal is a minimum viable game as fast as possible, then iterate on it until it's yours.

About 10 minutes later Claude Code is back with a playable game, and it ran with the idea. Nobody asked for bots, a leaderboard or skins, and it made all three. Nate's reaction on first play: "I did not expect it to look this good."

Claude Code's first reply. The bots were its idea.
The first build in the browser: Nate's snake among bot snakes on a dark hex arena, with a top 10 leaderboard of bot names in the corner
One prompt in: a Slither.io clone with bots and a leaderboard.
  • Controls, mobile included, so it plays on a phone too
  • The Slither rules: hit another snake and you die, eat orbs to grow
  • Bots, a leaderboard, kill messages, a death screen and skins
  • Hit the edge of the arena and you're dead; running into your own body does nothing
make a Slither.io style game

02Add guns

A clone is a start. The next prompts make it a game nobody has played before, and the worst case is you throw a change out. With AI you can throw ideas at the wall, play them and see how they act.

The first twist is guns, with rules: fire from the middle of the head, free bullets for snakes under length 100, faster fire for smaller snakes, and a headshot that drains health, separate from length, as the way to kill.

Claude Code put the gun on left click and moved boost to right click, and gave the bots a rule: shoot when a snake is lined up in front of them. Shooting a snake's body cuts it apart. Then the bots start shooting back, and one gets Nate in the head.

One thing he didn't want: a snake sliced in half by one shot. That's the next prompt.

Shoot a body and it comes apart.
Let's add guns to the game. The firing should come from the middle of the head, and bullets don't cost anything for snakes under 100 length. And the guns should fire faster for smaller snakes. You can use guns to chop snakes in half, but if you shoot them in the head and deplete their health, this is separate from their length, they can be killed that way.

The prompt as Nate reads it out in the video.

03Give the body health, then make the damage visible

Next, every circle of the snake gets its own health, so a body can't be sliced in half right away, and bigger snakes get more of it. Nate didn't spell out every detail: "AI is smart enough to figure that out."

A few minutes later it's in. On a really big snake it takes 14 direct hits to slice. Damaged circles turn red, then redder. And because the circles slide along the snake's path, firing at one spot hits a new circle each time: to slice a moving snake you have to follow one red patch.

The playtest found the problem right away. Red damage on a red snake doesn't show. So the next prompt asks for a different damage color and particles when a shot lands, and in the same message, bots that attack each other and safer spawns. Nate splits requests like these with a short separator line.

The damage came back black. "That looks just so dirty. It's so gross." He loved it, and says it could use another pass. New snakes now spawn in clear space, facing the center and away from the edge, and the bots fight each other.

Claude Code explains the health rules, then the game shows them.
A green snake named Linguine covered in black cracks where it was shot, with gray rings and green particles at its head
The fix for invisible damage came back black.

04Turn it into a roguelike without pausing anyone

Then Nate turns it on its head: a roguelike, where you pick up power-ups that help you for that life. Not the classic pick one of three screen, though. This is a real-time multiplayer game, and you can't freeze it for everybody. So the upgrades are things you pick up on the map.

He asked for pickups that change the snake: health, guns and gun types, shield, speed, length, fire rate, a magnet for dots, and anything else Claude could think of. Each gets its own icon and a drop rate. When a snake dies, its power-ups drop among its dots. Kills, score, pickups and length go on a leaderboard that rotates every five seconds.

Is it bonkers? "Yeah, maybe." You can always take it out, and that's what game design is about.

It came back with a drop table, different guns, different leaderboards and a power-ups guide. Upgrades stack and last until you die, and when a snake dies you can power up fast. "This is actually pretty fun."

His notes after playing: the bodies feel too strong, and the self heal is too quick. The health pickups are the point, so one prompt took the self heal out. Claude Code found the cause: each circle's maximum health grew as the snake got longer, which quietly healed damaged circles. Now only the Nanobots and Medkit pickups repair a body.

The roguelike build: Nate's snake near glowing pickup icons on the arena floor, with the Blaster weapon shown at the bottom of the screen
Pickups on the map, not a menu that stops the game.
When a snake dies, its power-ups drop with its dots.
Claude Code's reply: damaged body parts no longer heal on their own, and only the Nanobots and Medkit pickups repair them
The self heal fix, with the cause Claude Code found.
  • Shield, hair trigger and nitro
  • Different guns, including a rapid fire, low damage one
  • A magnet for dots
  • Full heal and body repair
  • One-time pickups next to the upgrades that stack
Remove the self heal on the body parts, unless it's a pick up or ability that you get.

05Install the Multiplayer Agent plugin

Now it's something you'd want to send to friends. Multiplayer Agent wires up the backend for a game and hosts it, and in Claude Code it's a plugin you add with two commands. Nate pastes them into the chat and asks Claude Code to run them.

The first command adds the marketplace, which is a GitHub repo. The second installs the plugin: a skill that makes the game multiplayer, plus the code that talks to Multiplayer Agent. It hosts the game too, so you don't have to work out where or how. You get a link.

Within a minute both are installed at user scope, so they work in every project. Then reload plugins or start a new chat. Nate forgot that step, and Claude Code prefers a new chat once plugins are involved.

Claude Code confirming both commands ran: the multiplayer-agent marketplace added from github.com/multiplayeragent/multiplayer-agent and the plugin installed at user scope, with the multiplayer prompt being typed underneath
Both commands ran. Next, reload plugins or open a new chat.
run these commands for me: claude plugin marketplace add multiplayeragent/multiplayer-agent
claude plugin install multiplayer-agent@multiplayer-agent

06Make it multiplayer with one prompt

In the new chat, one prompt asks for the whole backend: multiplayer, leaderboards, player login, saved player data, bots that leave as real players join, no cheating, and a hosted link. After the separator Nate says what cheating means for this game: the dots and power-ups, and snakes teleporting around the map.

Claude Code then asks which email to save the games under, because server-authoritative logic needs a Multiplayer Agent account. You can stay unclaimed and claim the game with your email within 72 hours, but the server logic isn't available until you do. Nate picks his account, gets a code, presses Connect, and it gets back to building.

Claude Code asking for an account: server-authoritative dots and power-ups need a Multiplayer Agent account, with options to use your Claude account email or stay unclaimed with a 72 hour claim link
Unclaimed works for 72 hours, minus the server logic.
Make this game multiplayer! Give me leaderboards, player login, save player data, remove bots as players join, make it so people can't cheat!  then give me a hosted URL so I can play this with my friends! --- For cheating its more about the dots and power ups are server authoritive and so the snakes can teleport around the map.

As typed, typos and all.

07What Multiplayer Agent built

It took a little while, and the build came back with a URL. The server now runs the whole game: movement, dots, power-ups, bullets, damage, kills, score and the bots. The browser only sends steering, boost and fire.

Claude Code tested that by attacking it from a hacked client. Setting its own mass to 99999, faking eaten dots and power-ups, and sending garbage inputs were all ignored, and the snake still moved at normal speed, so it can't teleport. It also tested the live site with two players at once.

Claude Code's summary: ChompChomp.io is multiplayer and hosted at chompchompio.play.multiplayeragent.com, with the anti-cheat results, login, saved stats, global leaderboards and the bot rules
Anti-cheat on movement, dots, bullets, damage and kills, from one prompt.
Real players in, bots out.
  • Login: everyone starts as a guest, signing up keeps their progress, and logging in works on other devices. Nickname and skin are saved to the account.
  • Saved stats and global leaderboards for best score, total kills and longest snake. Only the server writes them, so they can't be faked.
  • Bots fill the arena: 24 when nobody is on, 3 fewer for each player who connects.
  • One arena of up to 40 players.
  • A link anyone can open: chompchompio.play.multiplayeragent.com

08What's still rough

The online build twitches a little. That's the trade for a server-authoritative game: the server is involved in movement, dot pickups, everything, so people can't just come in and start hacking. Nate calls it the first try.

There's also a frozen worm bug still to fix. And the bots do something you don't see in other Slither.io games: circle one to trap it and it tries to shoot its way out.

Trap a snake and it shoots its way out.

09Get the code and make it your own

The whole game is free and public on GitHub at https://github.com/multiplayeragent/chompchomp-io, and you can play it at https://chompchompio.play.multiplayeragent.com/ with no sign-in. Download it, make it your own, and host your version on Multiplayer Agent.

From there it's iteration: play it, keep what's fun, and take out what isn't.

  • Clone the repo and open the folder in Claude Code.
  • Add the plugin with the two install commands above, then reload plugins or start a new chat.
  • Ask for your change, refresh the page and play it.
  • Ask Claude Code for a hosted URL, and it hands you your own link.

Get the code

The whole game is on GitHub, free. Play it first, then have Claude Code remix it into your own copy with your own key.

Common questions

Do I need to know how to code?

Not to follow this build. Every change in the video is a prompt to Claude Code, and Nate never edits the code by hand. You play it, decide what you don't like, and ask for the change.

Do I need a Multiplayer Agent account?

Not to start. You can build and play unclaimed and claim the game with your email within 72 hours. Server-authoritative logic, like the dots and power-ups here, needs the account, so Claude Code asks for your email when a prompt needs it.

How long does it take?

The first playable build took about 10 minutes from one prompt. Most changes after that came back in a few minutes, and the multiplayer build took a little longer. The whole build is in the video at the top.

Why does the online version twitch a little?

Because the server decides movement, dot pickups and everything else, instead of each player's browser. That's what stops people from hacking it. The twitch is the first try's rough edge, and the next thing to tune.

Can I play it with friends?

Yes. Send them https://chompchompio.play.multiplayeragent.com/ and you all join the same arena. Players start as guests; their names show on the global leaderboards once they sign up.

Try it on your own game

The free tier does not expire and asks for no card. Add one script tag and have two people playing in about a minute.