tasks: check off #35 (interface scale, safe area, mobile test kit); graph update

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-14 14:45:16 -04:00
parent ad08f83389
commit f072bac176
10 changed files with 128 additions and 117 deletions

View file

@ -371,7 +371,17 @@ in `game/tests/mobile/` (one file per task) and run with `-- --suite=test_mobile
## Wave 1 (parallel)
- [ ] **#35 Interface scale, safe area, and the mobile test kit.** Blocks #38–#43.
- [x] **#35 Interface scale, safe area, and the mobile test kit.** Blocks #38–#43. *(merged
aee60b0 — `MobilePort.ui_scale(interface_size)`, `scale_for(px, dpi, px_per_pt)` (size-class
fallback for an implausible DPI), `safe_rect(ci)`, `minimum_target(ci)`, `forced`, preview
`--safe-area=l,t,r,b` / `--dpi=N` (else a ≥1.7:1 window is a phone, ~1.59×); `interface_size`
is saved (`[touch]`), #41 adds the slider; `GameSettings.apply_scale`; PerfTest shows
`MobilePort.describe()` — read the DPI line on the next TestFlight build; test kit: each
`mobile/*_test.gd` has `run(t)`, `test_mobile` resets `forced`/root size/factor between files,
headless root is 64×64 (counts as an iPad: set `t.root.size = Vector2i(2340, 1080)` for a
phone); `Touch` = `preload("res://game/tests/mobile/touch.gd")`; capture:
`game/tools/capture_mobile.gd`; the 1.8 cap gives a 600 px canvas on SE / 13 mini (open for the
user); the scale isn't re-applied on resize)*
`MobilePort.ui_scale()` (physical screen height → about 1.6× on phones, 1× on tablets, times an
Interface size setting) applied as the window's `content_scale_factor`; `safe_rect()`;
`--safe-area` simulator; `forced` override; `minimum_target()` (44 pt). `test_mobile.gd` runner,