plan: playable on phones (#35-#46)
Touch controls for every action, an interface scaled for phones inside the safe area, prompts in touch words, platform details, and an Android build; the intro plan this replaces is at 5dbad4c. #46: Sprint becomes a permanent speed upgrade on every platform (the user's call).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8c81d815eb
commit
f0291133fd
2 changed files with 439 additions and 276 deletions
|
|
@ -362,3 +362,95 @@ dialogue system before starting: worktrees branch from HEAD.
|
|||
Captured shots, then the user's notes on timing, framing against the box, the UFO's feel, the
|
||||
flash, the luggage, the loading length, and the draft lines.
|
||||
*Acceptance:* the user signs off.
|
||||
|
||||
# Playable on phones — task list
|
||||
|
||||
Plan, decisions, defaults, the touch layout, and file overlap: `docs/plan.md` (2026-10-14). The
|
||||
desktop build must not change; phone behaviour stays behind `MobilePort.active()`. Mobile tests go
|
||||
in `game/tests/mobile/` (one file per task) and run with `-- --suite=test_mobile` after #35.
|
||||
|
||||
## Wave 1 (parallel)
|
||||
|
||||
- [ ] **#35 Interface scale, safe area, and the mobile test kit.** Blocks #38–#43.
|
||||
`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,
|
||||
`mobile/touch.gd` helper, and the sticks checks ported to `mobile/sticks_test.gd`.
|
||||
*Acceptance:* scale and safe-rect checks; desktop factor 1; screenshots at 2340×1080 with an
|
||||
inset and at 4:3; no new FAIL lines.
|
||||
|
||||
- [ ] **#36 Prompts in touch words.** Blocks #40.
|
||||
`Prompts` returns touch wording on phones and today's strings elsewhere: world labels, build
|
||||
ghost and bar, cutscene hints, tip footer, tutorial tips, first morning sign.
|
||||
*Acceptance:* phone strings checked; desktop strings byte for byte unchanged; the user sees the
|
||||
rewritten tips; no new FAIL lines.
|
||||
|
||||
- [ ] **#37 Platform: back button, no Quit, flat labels, camera.**
|
||||
Android back = pause / close the top menu / quit from the main menu; no Quit buttons on phones;
|
||||
`ScreenLabels` on phones without `ToonLook`; camera 12 m on phones.
|
||||
*Acceptance:* back-request sequence, Quit hidden only on phones, labels and camera checked; no
|
||||
new FAIL lines.
|
||||
|
||||
- [ ] **#46 Sprint becomes a speed upgrade (all platforms).** The user's call (2026-10-14).
|
||||
Owning Sprint multiplies base speed by `sprint_speed_mult` (1.25, tunable) all the time; the
|
||||
hold-to-sprint burst, its time limit and cooldown, and the stamina bar go. Upgrade id `"sprint"`
|
||||
and costs unchanged; text "Run 25% faster, always".
|
||||
*Acceptance:* sprint checks in test_scarecrow, test_economy, and test_nights rewritten (speed
|
||||
×1 without, ×1.25 with, no limit, survives save and retry); no other new FAIL lines.
|
||||
|
||||
## Wave 2 (parallel, after wave 1)
|
||||
|
||||
- [ ] **#38 Touch action buttons.** Blocked by #35. Blocks #40.
|
||||
`TouchButtons`: Pause, Fear, Bomb, Patch, Use (contextual word from a new `Interactions.focus()`),
|
||||
Build; `move_on_right` variable; `&"touch_controls"` group (no sprint control: see #46).
|
||||
*Acceptance:* each button driven by touch does what its key does; buttons take their touches,
|
||||
hidden ones don't block; screenshot; no new FAIL lines.
|
||||
|
||||
- [ ] **#39 Tappable HUD.** Blocked by #35. Blocks #43.
|
||||
Tap hotbar slots to switch weapons, the backpack for the pouch (panel fits the scaled canvas),
|
||||
× on the tip box, a Skip button on pausing conversations.
|
||||
*Acceptance:* each tap works and touches beside each widget still start a stick; no new FAIL
|
||||
lines.
|
||||
|
||||
- [ ] **#41 Menus and settings at phone scale.** Blocked by #35, #37.
|
||||
Main menu, pause, confirm, and settings fitted to the scaled canvas and safe rect; phone settings
|
||||
(Interface size, Swap sticks, Camera distance, Haptics, touch guide; no Fullscreen/VSync/
|
||||
bindings); haptic buzz on a hit.
|
||||
*Acceptance:* every menu inside the safe rect at 19.5:9 and 4:3 with targets ≥ 44 pt; settings
|
||||
round trip; swap moves the sticks; desktop settings unchanged; no new FAIL lines.
|
||||
|
||||
- [ ] **#42 Panels at phone scale.** Blocked by #35.
|
||||
Morning sign (scroll or two columns, Start the day visible), end panel (wrap), workbench and shed
|
||||
(scroll list, Close visible).
|
||||
*Acceptance:* each panel inside the safe rect at both aspects with targets ≥ 44 pt; desktop
|
||||
layout unchanged; no new FAIL lines.
|
||||
|
||||
## Wave 3 (parallel, after wave 2)
|
||||
|
||||
- [ ] **#40 Build mode by touch.** Blocked by #36, #38.
|
||||
No fire from the attack stick in build mode; a finger on the attack half places the ghost;
|
||||
Place, Rotate ⟲ ⟳, Dismantle, Done; tappable build-bar slots; `BuildMode.confirm()`,
|
||||
`dismantle()`, `cursor_screen`.
|
||||
*Acceptance:* enter, pick, place, rotate, pay, dismantle, refund, leave, all by touch; night
|
||||
refusal; `test_structures` has no new FAIL lines.
|
||||
|
||||
- [ ] **#43 HUD and cutscenes at phone scale.** Blocked by #39.
|
||||
Every HUD widget inside the safe rect (hotbar above the home indicator), dialogue box and tips
|
||||
fit about 640 px, letterbox hints, loading screen, alert arrows avoid the real widget rects.
|
||||
*Acceptance:* every widget inside the safe rect at both aspects, none overlapping; desktop
|
||||
unchanged; screenshots; no new FAIL lines.
|
||||
|
||||
## Independent
|
||||
|
||||
- [ ] **#44 Android build.** Best once iOS plays well.
|
||||
Android preset (Gradle, arm64, current target SDK, adaptive icon, `perf_test` on the test
|
||||
build) and an `android-perf-test` Codemagic workflow. Needs the user's Play account and
|
||||
keystore.
|
||||
*Acceptance:* the build installs on an Android phone; back, sticks, buttons, and safe area work.
|
||||
|
||||
## Last
|
||||
|
||||
- [ ] **#45 Device playtest and docs (with the user).** Blocked by #35–#43, #46.
|
||||
A whole vacation by touch on iPhone (and iPad); README, LAYOUT, PLAYTEST, and the iOS doc
|
||||
updated; notes to `docs/followups.md`.
|
||||
*Acceptance:* the user signs off that a vacation plays by touch alone.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue