On phones the main menu, pause menu, question box, and settings fit the
scaled canvas inside the safe area, with buttons and rows at least 44 pt
tall (19.5:9 at 1.6x, the iPhone SE at the 1.7 cap, 4:3 iPads). The
pause menu puts its buttons in a column beside the rest.
Phone settings: Audio, Touch (Interface size, Swap sticks, Camera
distance, Haptics, and a short touch-controls guide), Display (3D
resolution scale), and Gameplay. The list scrolls by dragging, and a
slider only moves after a mostly sideways drag. GameSettings saves the
touch settings under [touch] and applies them live (&"touch_controls",
the follow camera on phones). A hit buzzes the phone with Haptics on.
Desktop menus are unchanged. Test: game/tests/mobile/menus_test.gd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Android back: application/config/quit_on_go_back=false; Main.go_back()
(from NOTIFICATION_WM_GO_BACK_REQUEST, phones only) closes the shop or
pouch panel or leaves build mode, else pauses; paused it closes the
question, then settings, then resumes (shared with the pause action);
at the main menu it closes the question or settings, else quits.
- Phones hide the main menu's Quit and the pause menu's Quit the game.
- ScreenLabels.ensure() makes the one ScreenLabels (ToonLook's on
desktop; Main's on phones, which watch()es the tree for Label3Ds).
Label sizes grow with the window's content_scale_factor (1 on desktop).
- FollowCamera starts at PHONE_DISTANCE (12 m) on phones.
- MobilePort.forced for tests; game/tests/mobile/platform_test.gd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>