Why do some browser games only play sideways?

Updated on

Some browser games only play sideways because they are made for a wide screen, with a stick for the left thumb and buttons for the right, and a web page cannot always turn the phone's screen by itself. When a browser cannot change orientation on its own, the game asks you to turn the phone instead. Boomer Brawl is one: it shows a picture asking to turn the phone sideways, over the game while a phone or tablet is held upright, and held sideways it fills the screen.

A wide game needs a wide screen

A wide game needs a wide screen because a control scheme built for two thumbs requires horizontal space. A game played with two thumbs puts a stick at one lower corner and buttons at the other, which only fits a phone held sideways.

In the game the camera always shows nine tiles of the arena from top to bottom, whatever the screen. Because that vertical span stays the same, a phone held sideways shows more of it from side to side.

Held sideways, a phone or a tablet gives the game its whole screen, edge to edge, with no frame round it.

Why the page cannot just turn itself

A page cannot just turn itself because web browsers restrict how much control a site has over your hardware. MDN Web Docs, the reference for web developers, notes under the ScreenOrientation: lock() method that a page can ask the browser to lock the screen in one orientation, but that locking is typically enabled only on mobile devices and only while the page is fullscreen.

MDN's browser table shows that Chrome on Android supports the lock and Safari on an iPhone does not support it at all.

So a game in a browser cannot count on turning the screen, and asks you to do it. When the browser refuses the lock, the game carries on without it.

What the game does when you hold the phone upright

When you hold the phone upright, the game shows a picture asking to turn the phone sideways, over the game while a phone or tablet is held upright.

The game runs on under it, small, so a round in play goes on while you turn the phone. Only a phone or a tablet shows the picture: a computer never does, whatever its window's shape.

Turn the phone sideways and the picture goes away and the game fills the screen. Turn it upright again and the picture comes back; the round never stops for it.

Fullscreen at the first touch

In the game the first touch on a phone or tablet takes the game fullscreen and turns it sideways where the browser allows.

Chrome on Android does both: the game goes fullscreen and the screen locks sideways. Safari on an iPhone does neither, so there you hold the phone sideways yourself.

The first touch counts wherever it lands: on the game, on the loading screen or on the picture asking you to turn the phone. A laptop with a touchscreen counts as a handheld: it fills its window and goes fullscreen at its first touch, never at a mouse click.

It asks once: leave fullscreen and the game does not ask again.

When the screen will not turn

When the screen will not turn, the device's system settings are usually stopping it. On an iPhone, Apple Support notes in its page on how to Rotate the screen on your iPhone or iPod touch to swipe down from the top right corner to open Control Centre, check that Portrait Orientation Lock is off, close Control Centre and turn the phone sideways.

Apple's page also notes that some apps do not rotate, so try Safari itself if the screen stays upright.

On an Android phone, Android Accessibility Help describes How to make your screen rotate all by itself. Google's help page says to open the Settings app, tap Display and touch, then turn on Auto-rotate screen.

How Boomer Brawl does it

Boomer Brawl is a free top-down arena brawler in the browser that plays sideways on a phone or a tablet, with nothing to install. On a computer it plays in a wide frame in the browser window, whatever its shape: where the window is taller or wider than the frame, a picture of the game's hall fills the space round it.

The move stick sits at the bottom left and the attack and dash buttons at the bottom right; how to play has every control, and what a top-down game is explains the view from above.

A phone that runs the game slowly is a different matter: why a browser game lags on a phone.

Boomer Brawl plays sideways in the browser: turn your phone and play a round.

Common questions

Can you play a landscape-only browser game upright?

No. Held upright the game asks you to turn the phone, and plays small under the message until you do.

Why does my phone not turn the game sideways?

Usually the rotation lock is on: Portrait Orientation Lock in Control Centre on an iPhone, or Auto-rotate screen in an Android phone's settings.

Why can a browser game not lock the screen on an iPhone?

Safari on an iPhone does not support the screen lock web pages can ask for, as MDN's browser table shows.

Does the game play sideways on a computer too?

Yes. On a computer it plays in a wide frame in the window, whatever the window's shape, with nothing to turn.

Does a tablet play sideways too?

Yes. A tablet held upright shows the same request to turn it, and held sideways it plays.

Sources

Keep reading