# How to make a 2 player game for the couch or online

Source: https://roam.gg/make/how-to-make-a-2-player-game/. Checked November 5, 2026. Roam is our app, and the Roam team wrote this page.

First decide where the two players sit. On one couch they share a screen or split it. Apart, each plays on their own device and the game needs networking. That one choice sets your controls, your camera and how much work the build is.

## Pick the 2 player setup

- **Same screen**: Both players see one view. The easiest to build, and good for duels in a small arena or co-op puzzles where both stay close.
- **Split screen**: Each player gets half the screen and a camera. GameMaker gives a room 8 viewports, so two players means two cameras on two ports. Hard to read on a phone.
- **Online**: Each player on their own device, which needs networking: see [how to make a multiplayer game](https://roam.gg/make/how-to-make-a-multiplayer-game/). GameMaker has built-in rollback multiplayer, but online play only works on its GX.games target.
- **Take turns**: Pass the phone between turns. No netcode at all, and fine for card, quiz and golf games.

## Two player controls in Scratch and Godot

Scratch: two sprites, WASD for player 1, arrow keys for player 2, and a score variable for each. Online play in Scratch only works through cloud variables, which hold numbers only, allow 10 per project and are closed to New Scratchers. Scratch is designed mainly for ages 8 to 16. Roam is rated 13+ on the App Store.

Godot: add separate actions in the Input Map, like p1_jump and p2_jump, and read them in each player's script. With two controllers, set a device number on each player's actions.

On a shared keyboard, keep the two hands apart and avoid shared keys like the space bar. Give the players two strong colors and spawn them on opposite sides.


## Making a game with one friend

If 2 player means two people building one game, split the work (one codes, one does art and levels), keep the project in Git so you never overwrite each other, and agree on the idea in one page first. Our guide to [making a game with your friends](https://roam.gg/make/how-to-make-a-game-with-your-friends/) covers roles and tools.


## Build it in Roam and send it to one friend

In Roam, describe the duel or co-op game in one sentence, play it, then send it to your friend. Change it between rounds by asking: "smaller court", "best of three", "add a power-up". For ideas, play Mind the Pane, where two players carry one pane of glass through traffic, or BROADSIDE BLITZ, where Versus puts a friend's ship against yours.


## Play it on Roam

- [Mind the Pane](https://roam.gg/play/mind-the-pane/): Two pairs of hands. One pane. A lot of traffic.
- [BROADSIDE BLITZ](https://roam.gg/play/broadside-blitz/): Turn side-on. Fire everything.
- [Read My Head](https://roam.gg/play/read-my-head/): Everyone has a number. Read theirs first.

## Create your 2 player game with Roam

Describe the duel or the co-op challenge, then play it with one friend.

Try: "1v1 on a rooftop at sunset, rubber chickens as weapons, best of five, knock them off to score, my friend is player two"

[Get Roam on the App Store](https://apps.apple.com/app/apple-store/id6745489251?pt=126889634&mt=8&ct=gg-how-to-make-a-2-player-game)

## Questions people ask

**How do you make a 2 player game on Scratch?**
Make two sprites with separate controls, usually WASD for one player and arrow keys for the other, and a score variable for each.

**How do you make a 2 player game on Roblox?**
Build it in Roblox Studio on Windows or Mac. Roblox runs the servers, so you script the teams and a win condition and set the max players to 2.

**Is it hard to make a 2 player game?**
Same-screen games are one of the easiest projects. Online two-player is harder, because both devices have to agree on what happened.

**What are good games to play with two people?**
It Takes Two and Split Fiction are co-op games made only for two players, and 1v1 fighters are the classic versus pick. On Roam, Mind the Pane is a co-op game built for two.

## Sources

- GameMaker allows 8 independent view ports with one active camera each; split-screen is a listed use: https://manual.yoyogames.com/GameMaker_Language/GML_Reference/Cameras_And_Display/Cameras_And_Viewports/Cameras_And_View_Ports.htm
- GameMaker rollback multiplayer: online play only on the GX.games target: https://manual.gamemaker.io/beta/en/GameMaker_Language/GML_Reference/Rollback/Rollback_Multiplayer.htm
- Scratch cloud variables hold only numbers, 10 per project, not available to New Scratchers: https://en.scratch-wiki.info/wiki/Cloud_Data
- Scratch is primarily designed for 8 to 16 year olds: https://scratch.mit.edu/parents/
- Roblox Studio is a free application available on Windows and Mac: https://create.roblox.com/docs/studio/setup
- It Takes Two is a two-player-only co-op game: https://en.wikipedia.org/wiki/It_Takes_Two_(video_game)
- Split Fiction is a two-player co-op game: https://en.wikipedia.org/wiki/Split_Fiction
- Mind the Pane is a co-op glass carrying game for two: https://roam.gg/play/mind-the-pane/
- BROADSIDE BLITZ Versus mode puts a friend against you: https://roam.gg/play/broadside-blitz/

Product names belong to their owners. Roam is not affiliated with them.

## About Roam

Roam ("Roam - Make Games" on the App Store) is an iPhone app where you play games and make your own by describing them or from a photo. It is free to download and play, and making games works without a subscription; optional Spark and Reality plans and credit packs add more creation. Android: pre-register on Google Play. https://roam.gg
