DocsShare and export3 min read
Multiplayer rooms
Ask for online multiplayer, publish, send a room code or invite link, and friends join the same game.
Ask for online multiplayer
Ask for online multiplayer in your prompt, for example "an online 4 player co-op shooter" or "an online party game for 8". The agent then builds for separate devices instead of players on one keyboard.
Say how many players you want and the room holds that many, up to 16. If you do not say, the agent picks a size that suits the game: 4 for co-op and versus, 8 for party and social games, 16 for a battle royale, 2 for a duel. The plan shows the number before you build.
It adds a small room file to the project, .oddshed/multiplayer.json, and connects the game to OddShedNet, the room service OddShed runs. There is no server to set up, and no server address or key ends up in your code.
Play with friends
- Publish the game.
- Open it and sign in. Press Play online or Play with someone to be matched into a room with other players of the same game, in the order they arrive. A room fills up, then the next player starts a new one.
- To play with specific friends, create a private match instead. It shows a room code. Send the code, or press the copy button beside it to copy an invite link.
- Your friends open the invite link (or type the code into the game's code box), sign in, and land in your room.
Nothing to install. A room that is full, closed or has the wrong code tells the player so, and they can start again.
What a room does
- Up to the room's player count share one live game, each on their own device. The most one room holds is 16.
- Each device runs the game and reports its own player. The room passes every player's state and short events to the others, so you see each other live. The first player in decides shared outcomes such as the end of a round.
- Each player sees who is in the room, and when someone joins or leaves.
- A player who drops has about a minute to reconnect and carry on.
- A room stays open for up to 30 minutes.
Limits
- Up to 16 players per room. Asking for more gives you a 16 player room.
- One style of play: a live room where every player moves at the same time.
- Everyone needs an OddShed account.
- In the editor, the preview opens a room for you alone. Play with friends on the published game.