Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GamesNovember 22, 20265 min read

How to Make an .io Style Multiplayer Game

The .io formula is simple: open a link, type a name, play with strangers in seconds. Here is how the server, the growth loop and the bots work, and what to keep small.

Startbase Team
Editorial ink illustration of a petri dish of small cells with one large cell swallowing a smaller one, the large cell in ember orange

Key takeaways

  • No sign-up, one name field, playing within seconds. The .io promise is speed to fun.
  • The server owns the arena and sends 10 to 20 updates a second; clients smooth between them. Send each player only what is near them.
  • Bots fill rooms until real players arrive. An empty arena kills an .io game faster than any bug.

An .io game is a browser multiplayer game where anyone can open a link, type a nickname and join an arena of strangers in seconds, like Agar.io or Slither.io. To make one you need a server that runs the arena and is the authority on what happens, a growth loop simple enough to understand without a tutorial, network updates that stay small as player counts rise, and bots so the arena never feels empty. This guide covers each piece and where to keep your ambitions modest.

The growth loop

Every successful .io game has a loop a new player understands in five seconds of watching:

  1. 01Collect things scattered around the arena (pellets, orbs, resources) to grow.
  2. 02Grow visibly: bigger, longer, more powerful.
  3. 03Hunt and be hunted: bigger players can eliminate smaller ones and take most of their mass.
  4. 04Trade-off for size: bigger is slower, easier to see, or loses mass over time. Without a trade-off, the biggest player wins forever.
  5. 05Die and respawn instantly as a small player, with your best size on the leaderboard.

The trade-off is the design. In Agar.io, big cells move slowly and small ones can escape. In Slither.io, a long snake is a deadly wall but also a huge target. Your twist should be a new trade-off, not just a new skin: a tank that gets more guns but turns slower, a hive that grows but must protect its queen.

A server that owns the arena

With dozens of strangers in one arena, clients cannot be trusted. The server runs the simulation: it receives each player’s input (direction, boost pressed), moves everyone, resolves collisions and eating, and sends out the results. Clients never send “I ate player 7” or “my size is 500”; they send “I am steering left” and the server decides. Realtime features explained covers the basics of live connections if this is new.

  • Simulation tick: the server updates the world at a fixed rate, often 20 to 30 times a second for casual movement.
  • Network updates: it sends state to clients 10 to 20 times a second. More is rarely needed for this kind of game and costs bandwidth.
  • Interpolation: clients draw other players slightly in the past, smoothly blending between the last two updates, so movement looks fluid at 60 fps.
  • Prediction for your own player: the client moves your own character immediately on input and corrects gently when the server disagrees, so controls never feel delayed.

On Startbase, games with a dedicated room server get one isolated server per match. Previews and shared preview links run it on every plan, and on paid plans the server is published with the game and hosted for you; see Multiplayer in the Cloud docs. The multiplayer game guide explains rooms in general.

Keep updates small

Bandwidth grows with players times entities times updates per second. A naive server that sends every player the whole arena 20 times a second stops scaling quickly. Standard techniques:

  • Area of interest: send each player only entities within their view (plus a margin). A player on the left edge does not need the right edge.
  • Spatial grid: divide the arena into cells so the server can find nearby entities and collisions fast, instead of checking every pair.
  • Send changes, not everything: static pellets are sent once when they come into view and removed when eaten.
  • Compact numbers: positions rounded to whole units, ids as small integers. JSON is fine to start; switch to a binary format only if you measure a need.

Rooms, capacity and joining

  • Arena size scales with players. A crowded small arena is chaos; a big empty one is boring. Pick a capacity per room and fill rooms before opening new ones.
  • Matchmaking can be one rule: join the fullest room that has space. Players want company.
  • Instant join: name field (remembered on the device), Play button, in the arena. No accounts, no lobby screen, no loading longer than a few seconds.
  • Party links: a “play with friends” link that puts everyone in the same room is the one social feature worth adding early.

There is no universal number for how many players one room server handles; it depends on how much your simulation does per tick and what you send. Test with bots and a few real devices, watch the server, and choose a room capacity with headroom. Room servers have a running cost, which app hosting costs puts in context.

Bots for empty rooms

Your first players will arrive to an empty arena unless you plan for it. Bots solve the cold start:

  • Fill to a minimum: keep each room at, say, 10 participants, adding bots when humans are few and removing a bot when a human joins.
  • Simple behavior is enough: wander toward nearby food, flee from bigger players within range, chase smaller ones sometimes. A three-state machine (wander, chase, flee) is convincing at a glance.
  • Imperfect on purpose: bots that react instantly and never miss feel like cheating. Add reaction delay and mistakes.
  • Human-looking names, and bots should die and respawn like players.
  • Run bots on the server as just more inputs to the same simulation, so they cost almost nothing extra.

Tip

Whether to label bots is your call. Many .io games do not, but if you add a leaderboard of real achievements, exclude bots from it.

The brief to paste

An .io style multiplayer browser game called Swarm. Each player is a small bee colony that flies around a meadow arena collecting pollen to grow more bees; bigger swarms move slower. A bigger swarm that overlaps a smaller one absorbs most of its bees. Holding boost speeds you up but drops bees as pollen behind you. Join flow: name field remembered on the device, Play, and you are in within seconds; no accounts. A room server runs the arena authoritatively: clients send only steering direction and boost; server ticks at 20 Hz and sends each player only what is in their view plus a margin, 15 times a second; clients interpolate others and predict their own swarm. Rooms hold 30 participants; join the fullest room with space; bots (wander, chase, flee, with reaction delay) keep each room at 12 and leave as humans join. Top 10 leaderboard on screen, instant respawn, and a Play with friends link that targets the same room. Works with mouse on desktop and a floating stick on phones.

What to keep small

  • Not an esports shooter. Fast aiming duels need techniques like lag compensation and rollback that are specialist territory. Growth-and-dodge games tolerate a little latency gracefully.
  • Not a persistent world. Rounds that never save are the genre’s strength. Add accounts later, if at all.
  • Moderation: public nicknames need a length limit and a basic word filter from day one.

Test with two browsers and a phone in the preview, then with a few friends on a published build. Paid plans publish the room server with the game; check pricing for what fits. Crowded arenas need readable screens, and the top-down shooter guide covers that in detail, along with virtual sticks for phones. For smaller multiplayer formats that are easier to ship first, see multiplayer game ideas.

Frequently asked questions

What makes a game an .io game?

A free browser game you join instantly with just a nickname, playing in a shared arena with many strangers, usually with a simple grow-and-compete loop. The name comes from the .io web addresses early hits used.

How many players can an .io game room hold?

It depends on how heavy the simulation and the network updates are. Test with bots and real devices, watch the server load, and choose a capacity with headroom rather than a target number.

Do .io games need bots?

Almost always at launch. Bots keep rooms lively when few people are online and step aside as real players join, so the first visitors do not find an empty arena.

Can I host an .io game on Startbase?

Yes. The room server runs in previews and shared preview links on every plan, and on paid plans publishing the game also publishes the server, hosted by Startbase.

On this page

  • The growth loop
  • A server that owns the arena
  • Keep updates small
  • Rooms, capacity and joining
  • Bots for empty rooms
  • The brief to paste
  • What to keep small

Keep reading

More in Games
Editorial ink illustration of a wooden toy figure jumping between two stone ledges, the coin above the gap in ember orange
GamesNovember 22, 2026

How to Make a Platformer Game with AI

A platformer lives or dies on its jump. Here are the numbers behind a jump that feels fair, how to build levels around it, and how to get an AI agent to build both.

7 min read
Editorial ink illustration of a tin wind-up runner on track pieces laid down ahead of it, the next track piece in ember orange
GamesNovember 22, 2026

How to Make an Endless Runner Game

An endless runner is a level generator with a character on top. Get the chunks, the speed curve and the controls right and the rest is art.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.