Playing with friends

Games friends play together online, each on their own phone: rooms, turns, competitions, and challenges.

Try each example, then copy the words under it and paste them to your AI. You can also send your AI the link to an example.

Rooms and turns

The multiplayer module lets two to eight people play one game together, each on their own phone or computer. It is part of Minimo Games Pro.

Take turns from your own phones

One player creates a room and shares its code or its link; friends join it and wait in a ready-made lobby until the host starts. Then each takes their turn, and everyone sees every move. The lobby, the turns, and the results come with the module, so asking for them costs your AI almost nothing.

Create a room. Here a computer player, Robo, joins it, as a friend would with the room's code.

Ask your AI

Make it a game for friends on their own phones: they take turns adding 1, 2, or 3, and whoever reaches 21 wins.

View code
const mp = new Multiplayer(game, { mode: "turns", maxPlayers: 4 });
const room = await mp.lobby();
await room.update({ state: { total: 21 }, turn: "next" });

Rooms, names, and who can play

Players need no account, and you see your game's open rooms on its page in My games.

A player without a Minimo Games account types a name once, the same name leaderboards show, and plays as a guest; a signed-in player plays under their account's name. The game must run on Minimo Games, and its creator must be on Minimo Games Pro; players pay nothing. Rooms are private: a player joins only with its code or its link. Nothing moves in real time, so it suits card games, board games, word games, and races against the clock, not games where players see each other run and jump. Open My games, then your game, then Multiplayer rooms, under More on a phone, to see the rooms open now and close one.

Ask your AI

Make the card game multiplayer for up to 4 friends, each with their own hand on their own phone.

Other ways to play

Not every game is played by turns.

Competitions and challenges

Instead of turns, everyone can play the same round at once and compare their scores at the end.

In a competition every player gets the same level, the same deck, or the same pieces, plays it on their own, and the results show who did best, by the highest score or the fastest time. A round can have a time limit. A challenge works the same way without meeting at once: share its link, and friends play it whenever they like, for up to a week, while the results fill in.

Ask your AI

Add a challenge mode: I share a link, my friends play the same level within a day, and we compare our times.

Playing at the same time

Turns are the simplest way to play together, but players can also act whenever they are ready.

Each player sends their move the moment they make it, and the host's phone applies the rules and updates the room, so everyone sees the move a moment later. Mirror Front, a duel between two armies made on Minimo Games, plays this way in its Simultaneous mode, with a reload time between shots. A move takes a moment to reach the others, so it suits shots, orders, and answers, not jumping and dodging.

Ask your AI

Add a mode where both players fire whenever they are ready, without waiting for turns, with a short reload between shots.

Making it work for everyone

What to ask for besides the online game, and how to try it yourself.

Practice alone, and try it before you share

A game for friends plays better with a mode for one, and you can test it yourself before anyone joins.

Ask for a practice mode against the computer too, so a player whose friends are away still has a game, as Mirror Front does. To try the online mode yourself, open your game's preview link in two browser tabs: each tab is a different player, and the preview's rooms never reach the players of your published game.

Ask your AI

Besides playing online with a friend, add a practice mode against the computer.