Playing an RTS with your thumbs
Real-time strategy is the genre most obviously built for a mouse. Box-select is a drag. Attack-move is a keyboard letter. Queueing orders is Shift. Right-click is the entire command vocabulary: move here, attack that, enter this. Take the mouse away and you have removed the interface, not just the hardware.
The usual response is emulation: a virtual trackpad, an on-screen cursor, a floating right-click button. It never feels right, because a finger is not a bad mouse. It is a different device with different properties, and it deserves a different command model.
Here is the one Steel Tide uses, and why each piece is shaped the way it is.
What a finger actually cannot do
Four constraints, and every touch decision follows from them:
- There is no second button. Selection and commanding have to share one gesture.
- There is no hover. Anything that a mouse would explain by hovering has to be explained some other way, or not need explaining.
- There are no modifier keys. Shift-queue, Ctrl-group and box-select all lose their trigger.
- A finger covers what it is touching. You cannot see the tile you are pressing, which quietly breaks anything that commits on release.
Replace, don't emulate
The core model is that a tap means "the obvious thing", and what is obvious depends on what is currently selected.
| gesture | result |
|---|---|
| tap your own unit | select it; tap again to take every unit of that type on screen |
| tap the map with something selected | move, attack or interact, whichever the target implies |
| double-tap empty ground | attack-move there; with nothing selected, take every unit of yours in view |
| tap an enemy with nothing selected | inspect it |
| long press (420 ms) | force fire at whatever is under the finger, friend or foe, or at the point itself |
| one-finger drag | pan the camera |
| two fingers | pinch to zoom, drag to pan |
| two fingers planted and held still | a selection box between them; lift one to select what is inside |
| minimap tap or drag | jump the camera there |
| minimap long press | open the battle map, where a long press orders the selection there |
That covers the great majority of what a player does in a match, with no buttons at all. Tapping a unit a second time to take all of its type replaces the mouse's double-click and does the job of a drag-select most of the time, which is exactly why it is worth the gesture. Attack-move was the long press when this was first written; since October it has been the double tap on empty ground, and the long press became force fire.
The few things that still need a button
What is left gets a button on the edges of the screen, and the buttons carry only what has nowhere else to live:
- ✕ Deselect, at the bottom right, clears the selection. Touch has no Escape key, and while units are selected every tap on the map is an order. Without this there is no way to stop commanding and simply look at the map.
- ⇧ stands in for holding Shift: queue orders, add to the selection.
- 1–4, down the right edge, are the army groups. With units selected a tap adds them to that group; with nothing selected it takes the group. A hold shows what is in it.
- Engineers, at the bottom left, selects your engineers; a hold offers all of them or only the idle ones.
- ✓ / ✕ confirm or cancel a building placement, and appear only while placing.
Box-select had a latched button of its own at first, which switched the drag from panning to a box. Two fingers held still do it now, so the button went.
Orders themselves sit in one bracketed row in the tray at the bottom of the screen, and only the ones a finger has no other way to give: Protect, Hold position, an ability, Direct control, a transport's Unload. Move, attack-move and stop are not buttons there at all, because a tap, a double tap and a tap where the unit stands already say them. A bar that grows to hold everything is a bar nobody reads.
Placing a building is two steps, on purpose
On a mouse, you place a building by clicking the tile. On a phone, your finger is on top of the tile, so committing on release means committing blind.
So placement is: drag or tap to aim the ghost, then confirm with ✓, or tap the already-aimed tile a second time, for players who would rather not travel to the button. It is one extra action, and it is the difference between placing a factory and placing a factory somewhere near where you meant.
After a confirm the same ghost stands up again beside the one just laid, so a row of turrets or a wall is a row of confirms, and ✕ ends the run. Each blueprint joins the engineers' queue behind what they are already building, so laying one never interrupts a job.
The HUD folds, it does not shrink
Scaling a desktop layout down produces a layout that is correct and unusable. A phone HUD has to be reorganised.
On a touch screen the sidebar goes altogether. The minimap stands at the top left with the menu beside it, the economy is a line of figures along the top of the map, and the activity feed is shadowed text under the minimap rather than a panel. What you have selected comes up in a tray at the bottom centre: its name, its row of orders and, for a factory or an engineer, the build choices in one row that scrolls sideways under the thumb. With nothing selected, the tray shows the units you have in view by type and count, and a tap on a picture takes that type. Holding the name opens the full details in a popover above it, without moving the name or the buttons under your thumb.
A building's orders are not in the tray. Selecting one pans the camera to it, and its upgrade, with the price under it, and Sell float beside it on the battlefield, in the same brackets. Pan it off the screen and they hide.
Two details that only show up on real hardware: tooltips must ignore touch pointers entirely, because a tap fires the mouse compatibility events too and a tooltip raised by a finger has no "leave" to dismiss it. And the canvas backing store runs at up to twice CSS pixels, by the Render sharpness setting, so the battlefield is not resampled into mush by a 3× phone panel.
It installs, and then it works offline
Because the whole thing is a web app, adding it to a home screen is the install. It launches fullscreen with no browser chrome, under the notch, with safe areas padded back out by the HUD.
A service worker precaches the shell (index, scripts, styles, icons, fonts) and versions it by fingerprint, so a new build never mixes with an old one. Sprites and music are tens of megabytes, so they are cached lazily as they are used rather than downloaded before the menu appears. Anything the dedicated server has to answer live is never cached at all.
The result is a genuine RTS you can install on a phone from a link, play offline against the AI on a plane, and pick up on a desktop afterwards at the same address.
What was missing
Two things, when this was first written. Portrait was only a rotate prompt: an RTS wants the horizontal space, and a portrait HUD would be a different design rather than the same one turned. It is still not the default, but it is now a choice (Settings ▸ Controls ▸ Portrait play, or Keep portrait on the prompt itself), with the panels along the bottom of the screen. The other was native packaging, with the assets shipped inside an app rather than through the media cache. That is done: the iPhone, iPad and Android apps carry the sprites and the music inside, so a first run does not have to fetch them.
Everything else is already there. Open it on your phone and see how far the tap, the double tap and the long press get you.