Phone first, built on a desktop: how we keep the mobile version from being an afterthought
Beetle Arena is meant to be a phone app. Players pick up their phones on the commute, in a queue or before bed to train a beetle for a bit or fight a match.
But while we build it, we spend every day staring at a big desktop screen. The prototype is a web page first, because that's fastest to change: refresh and you see it. After a while, without noticing, you start to treat "looks right on the desktop" as "done."
💡 We build on a desktop because it's fast, not because the desktop is the standard. Players hold phones. It only counts if it's right on a phone.
A real example: the bars shrank to a sliver
A beetle's stats are shown as bars: the name on the left, the bar in the middle, and a column of numbers on the right. On a desktop, that right column has a fixed width that fits just right, and everything lines up neatly.
On a phone it was a different story. The screen got narrower, but the number column stayed just as wide. It ended up taking nearly a third of the width, leaving only a sliver of bar in the middle. The whole point of a bar is to show at a glance which beetle is stronger. Squeezed like that, you could barely see any difference.
The fix is simple: on narrow screens, make that column narrower too. The hard part is noticing, because on a desktop everything looks fine.
Four questions we ask every time we change a screen
Since then, we've turned "what happens on a phone?" into four fixed questions that we go through every time we touch a screen:
- Is something fixed-width squeezing out something that's meant to stretch? That's the example above. A column that fits on a desktop can take over on a phone. Anything with a fixed width needs a narrower version for phones.
- Does anything overflow sideways? If players have to scroll left and right to see everything, the layout is broken.
- Can you tap it? A mouse is precise; a finger isn't. Buttons, menus and checkboxes need to be big enough that nobody has to tap three times to hit them.
- Is one row trying to hold too much? Six little tags that fit in one row on a desktop can wrap onto two or three rows on a phone, or spill off the screen.
None of these questions are hard. The hard part is remembering to ask them every single time. So we wrote them into the project's rules: whenever we change a screen, we think about narrow screens from the start, not after it's done.
Don't eyeball "it's probably fine"
Even with the four questions written down, things slip through. When people look at a screen, their brains fill in the gaps: close enough, probably fine. So we hand the checking to a machine:
- After every change, the game is opened in a real browser and run through at both desktop and phone width.
- On every page, it measures a few things: is the page wider than the screen, are buttons big enough, is any label wider than its column.
- It runs in all three languages. English is usually the longest and the most likely to overflow (more on that in the previous post, Three languages, one small team).
There's one thing we only understood after tripping over it: checking "what's on the screen" can't verify layout.
One kind of check confirms that every element that should be on the screen is there and that the proportions add up. It's fast and genuinely useful. But it never actually lays out the screen. Is the bar there? Yes. Is its width ratio right? Yes. And yet in reality that bar might be squeezed down to almost nothing, or have no height at all, and this check can't see it.
💡 Layout problems can only be measured by a browser that actually did the layout. So any change to how things look or where they sit has to pass the real-browser check.
A few habits while building
- Sketch the phone version first. A new screen gets drawn at phone width first, and we only start building once everyone has seen it and agreed. Design from narrow and wide screens usually take care of themselves. The other way round often goes wrong.
- Keep the browser at phone width. During development the browser stays at phone width, rather than switching over once in a while to check.
- Actually pick up a phone and play. Automated checks catch "broken," but not "awkward." Whether your thumb can reach, whether the text is readable outdoors: for that you have to pick it up and play.
What we learned
- Where you build isn't where people play. Where you develop is about convenience. Where players play is the standard.
- Fixed widths are the most dangerous thing on the screen. They fit nicely on a big screen and grab all the space on a small one.
- Turn "remember to check" into "it checks itself." Writing the rules down isn't enough. Having a machine run them every time is what stops things slipping through.
- Measure layout in a real browser. Right structure doesn't mean it looks right.
When you play browser games on your phone, what's the screen that tells you instantly "this is the desktop version crammed in"?
Previous post: Three languages, one small team: how our beetle game keeps Chinese, Japanese and English in step
Open it on your phone and play: Beetle Arena (free, right in your browser).