Skip to reading
Mobile Game Setup & Testing

Size the controls for a thumb

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

PHONE AND TABLET DESIGN

Choose one intended orientation for the first release. A wide adventure room often works in landscape, while a dialogue-heavy design may fit portrait. Decide where the controls go when the shape changes. A tablet has more room in the middle, but its center can be harder to reach while holding both sides.

Source table from Size the controls for a thumb, page 9
Layout decisionHow to check it
Game canvasSet the starting resolution in the PCA Project settings. The inspected source uses canvas_items with keep aspect. A 16:9 game may show unused bands on a wider phone or a squarer tablet. Check taps at the edges of the actual game image.
Touch targetAndroid recommends at least 48 × 48 dp. Apple’s usual minimum is 44 × 44 pt. These are device-independent sizes. A 44-pixel texture on your game canvas can be physically much smaller after scaling. Enlarge the clickable control around the artwork.
Safe areaKeep Back, Inventory, skip, dialogue choices and both pads clear of cutouts, rounded corners, status bars and the home indicator. Leave generous margins. In editable Godot source, DisplayServer.get_display_safe_area() can supply the display rectangle; convert it to your GUI coordinate space.
OrientationFor a maintained Godot export, set Display Window Handheld Orientation in Project Settings. Check the supported orientations in the Apple export/Xcode target. Rotate at launch, during dialogue and with the keyboard open if rotation is supported.

What the empty bands mean#

For a 1280 × 720 game on a 1024 × 768 tablet area, keeping 16:9 fits the game into 1024 × 576. That leaves 96 pixels above and below when centered. A custom touch picker using the full 768-pixel height would select progressively wrong positions. Use the game viewport’s coordinate conversion and repeat taps near all four corners.

Test one narrow phone and one 4:3-style tablet in the same scene. Use the longest item name and dialogue line you ship. Check with the largest font scale you support. Let backgrounds reach the edges while essential controls stay reachable.

Page 9 of 22Permalink
Go to page