harvest/game/tools
Forrest aee60b0ba2 #35: interface scale, safe area, and the mobile test kit
MobilePort: ui_scale() (clampf(4.3 / the screen's shorter side in inches, 1, 1.8) times the
Interface size; 1 on desktop), a size-class fallback (below 500 pt = phone, 1.6) when the
density is 0 or implausible, safe_rect(ci) (the display's safe area mapped into ci's canvas
through the final transform), minimum_target() (44 pt in canvas pixels), and the `forced`
override for tests. The desktop preview (-- --mobile) plays the phone in the window:
--safe-area=l,t,r,b insets it, --dpi=N sets its density, and without --dpi a 16:9-or-wider
window is a 2.7 in phone (about 1.6x) and a squarer one a 6 in iPad (1x).

GameSettings: interface_size (0.8-1.3, saved under [touch]) and apply_scale(), which sets the
window's content_scale_factor (always 1 on desktop). PerfTest shows the screen, density, safe
area, and resulting scale, to check the density on a device.

Test kit: test_mobile (last in SUITES) runs game/tests/mobile/*_test.gd in name order and puts
the root window back between files; mobile/touch.gd sends touches through
Input.parse_input_event; scale_test covers phones, iPads, desktop, the safe rect, and the target;
sticks_test is the 8c81d81 driver's 24 checks. game/tools/capture_mobile.gd takes the phone
screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:40:06 -04:00
..
build_player_animations.gd updates 2026-10-04 12:07:36 -04:00
build_player_animations.gd.uid init 2026-10-03 12:14:28 -04:00
build_prop_collision.gd init 2026-10-03 12:14:28 -04:00
build_prop_collision.gd.uid init 2026-10-03 12:14:28 -04:00
build_ui_theme.gd updates 2026-10-04 12:07:36 -04:00
build_ui_theme.gd.uid updates 2026-10-04 12:07:36 -04:00
capture_intro.gd #33: opening intro cutscene 2026-10-07 22:54:24 -04:00
capture_intro.gd.uid #33: opening intro cutscene 2026-10-07 22:54:24 -04:00
capture_mobile.gd #35: interface scale, safe area, and the mobile test kit 2026-10-14 14:40:06 -04:00
capture_mobile.gd.uid #35: interface scale, safe area, and the mobile test kit 2026-10-14 14:40:06 -04:00
configure_input.gd UI and other changes 2026-10-07 13:41:38 -04:00
configure_input.gd.uid updates 2026-10-04 12:07:36 -04:00
coop_smoke.gd Task #22: the joining player can open the store 2026-10-06 13:47:52 -04:00
coop_smoke.gd.uid updates 2026-10-04 12:07:36 -04:00
make_nights.gd Room for 40 robots; fewer robots and more UFOs in the late nights 2026-10-06 18:06:28 -04:00
make_nights.gd.uid Task #27: the thirty nights 2026-10-06 16:38:07 -04:00
net_budget.gd Co-op voice/session work, config retune, net budget tool, overhaul plan 2026-10-05 13:35:53 -04:00
net_budget.gd.uid Co-op voice/session work, config retune, net budget tool, overhaul plan 2026-10-05 13:35:53 -04:00
render_overview.gd init 2026-10-03 12:14:28 -04:00
render_overview.gd.uid init 2026-10-03 12:14:28 -04:00
soak_night.gd Task #28: thirty-night soak, pool sizes, and a balance report 2026-10-06 17:55:58 -04:00
soak_night.gd.uid updates 2026-10-04 12:07:36 -04:00
synth_audio.gd #30: forced lighting, intro sounds, scarecrow chest glow 2026-10-07 21:51:14 -04:00
synth_audio.gd.uid updates 2026-10-04 12:07:36 -04:00