Phones: interface scale capped at 1.7; settings fields for wave 2
The user lowered the cap from 1.8 so the smallest iPhones (SE, 13 mini) keep a canvas about 635 px tall. GameSettings gains swap_sticks, camera_distance (FollowCamera.PHONE_DISTANCE) and haptics, unsaved for now, so #38's apply_settings and #41's settings can be built in parallel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f072bac176
commit
5392ae09af
4 changed files with 16 additions and 9 deletions
|
|
@ -77,8 +77,10 @@ Ads and the remove-ads purchase come in the next plan, once the game plays well
|
|||
|
||||
**Screen**
|
||||
9. **Interface scale.** It's set automatically from the screen's physical size: about 1.6× on
|
||||
phones, 1× on iPads and desktop. An Interface size setting (80–130%) adjusts it. At 1.6× on a
|
||||
19.5:9 phone the canvas is about 1460×675, which every menu and panel must fit.
|
||||
phones, 1× on iPads and desktop, **capped at 1.7×** (the user's call, 2026-10-14). An Interface
|
||||
size setting (80–130%) adjusts it. At 1.6× on a 19.5:9 phone the canvas is about 1460×675; at
|
||||
the 1.7 cap (iPhone SE, 13 mini) it's about 635 tall (SE: about 1130×635). Every menu and panel
|
||||
must fit 635 px tall.
|
||||
10. **Safe area.** Every HUD widget and menu stays inside it, clear of the notch, the rounded
|
||||
corners, and the home indicator.
|
||||
11. **World labels** (Gather, Repair, a structure's name) draw as flat text on phones
|
||||
|
|
@ -176,7 +178,7 @@ side gets Place and Done. The build bar replaces the hotbar.
|
|||
(#46, the sprint change, is in wave 1 too. Its section is after #44.)
|
||||
|
||||
- `MobilePort.ui_scale()`: work out the physical screen height in inches from
|
||||
`DisplayServer.screen_get_size()` and `screen_get_dpi()`. Use `clampf(4.3 / inches, 1.0, 1.8)`,
|
||||
`DisplayServer.screen_get_size()` and `screen_get_dpi()`. Use `clampf(4.3 / inches, 1.0, 1.7)` (the cap was 1.8; the user lowered it after #35),
|
||||
which gives about 1.6 on phones and 1.0 on iPads, times `GameSettings.interface_size` (0.8–1.3,
|
||||
default 1.0). Desktop is always 1.0. **Check `screen_get_dpi()` on an iPhone through the
|
||||
PerfTest overlay before relying on it.** If it's wrong or 0, fall back to the screen's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue