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
623
docs/plan.md
623
docs/plan.md
|
|
@ -1,317 +1,388 @@
|
|||
# Harvest Season — opening intro (2026-10-07)
|
||||
# Harvest Season — playable on phones (2026-10-14)
|
||||
|
||||
Status: planned, not started. The user asked for a cutscene at the start of every new vacation:
|
||||
the farmers leave for the Bon Jovi concert, and that night a bickering UFO crew drops a part that
|
||||
brings the scarecrow to life. Then a loading screen, then the first morning's instructions. Tasks
|
||||
continue the numbering at **#29–#34** (#1–#28 are merged; the thirty-nights plan this file
|
||||
replaced is in git at 6a9575d). Line numbers point at bbd8012 plus the uncommitted dialogue work,
|
||||
so re-check them before editing.
|
||||
Status: planned, not started. The iOS test port showed the game runs well on an iPhone: night 20
|
||||
with every enemy on the farm held 60 FPS (worst frame 19.7 ms, worst physics 0.8 ms). Floating
|
||||
thumbsticks are in (`TouchSticks`, 8c81d81): the right half moves and the left half attacks. This
|
||||
plan covers everything else a phone player needs to play a whole vacation with touch alone:
|
||||
controls for every action, an interface sized for a 6" screen that stays clear of the notch,
|
||||
prompts in touch words, and the platform details. Tasks continue at **#35–#46**. The opening-intro
|
||||
plan this file replaces is in git at 5dbad4c; its #34 (timing review) is still open.
|
||||
|
||||
**Before any worker starts:** the talking-head dialogue system is still uncommitted in the user's
|
||||
tree. That covers `conversation.gd`, `dialogue_*.gd`, `game/resources/dialogue/`,
|
||||
`test_dialogue.gd`, and the edits to `campaign_controller.gd`, `farm_sim.gd`, `main.gd`,
|
||||
`tutorial.gd`, `campaign_debug.gd`, `run_tests.gd`, and `farm.tscn`. Worktrees branch from HEAD,
|
||||
so it must be committed first, or the workers won't have it.
|
||||
Ads and the remove-ads purchase come in the next plan, once the game plays well by touch.
|
||||
|
||||
## Ground rules for workers
|
||||
|
||||
- **Godot binary:** `godot` is not on PATH here. Use `~/Downloads/Godot_v4.7.2-stable_linux.x86_64`
|
||||
everywhere these docs say `godot`. Exit code 127 means the binary wasn't found, not a pass.
|
||||
- **Godot binary:** `godot` is not on PATH. Use `~/Downloads/Godot_v4.7.2-stable_linux.x86_64`
|
||||
wherever these docs say `godot`. Exit code 127 means the binary wasn't found, not a pass.
|
||||
- **Tests:** `godot --headless --path . --script res://game/tests/run_tests.gd`. The exit code is
|
||||
the failure count and is never 0 here: about 25 checks fail because of tuning, and the
|
||||
test_roster "All three" check is flaky. Run the suite before editing, diff the FAIL lines
|
||||
afterwards, and judge your task by new FAIL lines only. One suite: `-- --suite=test_x`.
|
||||
- **Parallel worktrees:** give each headless run its own `XDG_DATA_HOME` so `user://` saves don't
|
||||
collide.
|
||||
- **`farm.tscn` and `.tres` files:** edit them as text. A headless `ResourceSaver.save()` drops
|
||||
the `uid=` lines; if you must save from a script, restore them the way
|
||||
`game/tools/build_prop_collision.gd` does.
|
||||
- **Co-op is untouched:** the intro is local, solo-only, and runs before any partner can join.
|
||||
Nothing here changes the save format, `state.to_dict()`, or the wire format.
|
||||
- **No new HUD text:** gameplay feedback still goes through menus, sound, and world visuals. The
|
||||
intro's own captions ("Later that night....", the skip hint) are cutscene chrome the user asked
|
||||
for, like the ending's caption, and appear only while it plays.
|
||||
- **Look:** the user named the luggage, the UFO's flight, the part, the blue flash, the chest
|
||||
glow, and the loading screen, so those are in scope. The farmers stay the tinted mannequins
|
||||
from the ending. Talking heads are sketch placeholders (real portraits go in the speaker
|
||||
`.tres` later). New lit `StandardMaterial3D`s get the toon look from `ToonLook` automatically;
|
||||
a custom `ShaderMaterial` must `#include "res://game/resources/toon_light.gdshaderinc"`.
|
||||
the failure count and is never 0 here, because tuning breaks a few dozen checks. Run the suites
|
||||
you touch before editing, diff the FAIL lines afterwards, and judge your task by new FAIL lines
|
||||
only. One suite: `-- --suite=test_x`.
|
||||
- **Mobile tests** go in `game/tests/mobile/`, one file per task (see #35). `test_mobile`
|
||||
(`-- --suite=test_mobile`) runs them all, so no task edits `run_tests.gd`'s list after #35.
|
||||
Force phone mode with `MobilePort.forced = 1` and send touches with
|
||||
`game/tests/mobile/touch.gd`, which goes through `Input.parse_input_event` so Godot's
|
||||
touch-to-click emulation runs as it does on a phone.
|
||||
- **Parallel worktrees:** give each headless run its own `XDG_DATA_HOME`.
|
||||
- **Phone-only behaviour stays behind `MobilePort.active()`.** The desktop build must not change:
|
||||
same strings, same layout, same input. Each task checks a sample of desktop strings or values
|
||||
unchanged.
|
||||
- **Seeing the phone build on desktop:**
|
||||
`godot --path . --rendering-method mobile --windowed --resolution 2340x1080 -- --mobile --safe-area=140,0,140,60`
|
||||
(from #35: `--safe-area=left,top,right,bottom` in window pixels simulates a notch and home
|
||||
indicator). Also try a 4:3 window (`--resolution 1600x1200`) for iPads. Headless runs draw
|
||||
nothing, so take screenshots from a windowed run and show them to the user.
|
||||
- **No new HUD text.** The user had the pop-up text removed. The touch buttons below are controls
|
||||
the user asked for: icons with at most one short word. Prompts change their wording on phones,
|
||||
not their number. Ask before adding any other text.
|
||||
- **`farm.tscn` and `.tres` files:** edit them as text. A headless `ResourceSaver.save()` drops the
|
||||
`uid=` lines.
|
||||
- **Co-op is off on phones.** Don't touch co-op code. Desktop co-op must keep working.
|
||||
- **Graph:** after modifying code, run `graphify update .`.
|
||||
|
||||
## Decisions (the user's, 2026-10-07)
|
||||
## Decisions (the user's)
|
||||
|
||||
1. **Dialogue in the talking-head box** (`DialogueBox`, the morning sign's paper with portraits).
|
||||
Lines go on by themselves in time with the action; a tap hurries them.
|
||||
2. **The part is absorbed into the scarecrow.** A faint blue glow stays in its chest all game.
|
||||
It sets up the day-2 alien's "You have something of ours" (`morning_day_2.tres`).
|
||||
3. **Loading screen:** `assets/pictures/screens/splash-screen.png` with a slow pan, the title in
|
||||
the handwritten font, and a sketch UFO wobbling along a hand-drawn progress bar, about 3 s.
|
||||
4. **It plays on every New vacation, and can be skipped.** Continue never plays it. Hosting co-op
|
||||
skips it.
|
||||
1. **Move on the right, attack on the left** (2026-10-14). This is the mirror of most twin-stick
|
||||
games. `TouchSticks.MOVE_ON_RIGHT` holds it, and a Swap setting flips it (#41).
|
||||
2. **Phones drop the toon and pixel look** (standard materials, Mobile renderer) **and co-op**.
|
||||
3. **Floating sticks:** a stick starts where the finger lands and is drawn only while held.
|
||||
4. **iOS first** through Codemagic and TestFlight. Android follows (#44).
|
||||
5. **Sprint becomes a speed upgrade, on every platform** (2026-10-14). Owning the Sprint upgrade
|
||||
raises the scarecrow's base speed for good. There's no more hold-to-sprint, time limit,
|
||||
cooldown, or stamina bar (#46), so phones need no sprint control.
|
||||
|
||||
## Defaults (assumed; flip any of these on request)
|
||||
|
||||
**Controls.**
|
||||
- A tap (Space / Enter / E / A / click) is the box's own input and goes to the next line.
|
||||
- Holding Space / Enter / A for 1 s skips the whole intro. The hint is "Hold [Space / Enter / A]
|
||||
to skip", bottom right, with a ring that fills while held.
|
||||
- The intro polls `Input` for the hold, because the box takes the press.
|
||||
**Controls**
|
||||
1. **Contextual buttons.** A button shows only when it can do something: Use near something
|
||||
usable, Patch when hurt and carrying straw, Bomb once owned, Build by day. This keeps the
|
||||
screen clear.
|
||||
2. **Placement.** The attack side has a column of Fear, Bomb, and Patch along its outer edge,
|
||||
above where the thumb rests. The move side has Use and Build. Pause sits at the top edge beside
|
||||
the day widget. Tap a hotbar slot to switch weapons and tap the backpack for the pouch. See the
|
||||
diagram below.
|
||||
3. **Sprint's boost: +25% base speed** (`sprint_speed_mult` 1.25). The old burst was +80% for
|
||||
4 s, too fast to keep on all the time. Tune it in `game_config.tres`.
|
||||
4. **Bomb.** A tap throws along the attack stick's direction, or the last one, 7 m out, the same
|
||||
as on a gamepad. The orange landing ring already shows where it will land.
|
||||
5. **Use.** It works like E. Hold it to gather, repair, or upgrade a structure. Tap it to open the
|
||||
workbench or the shed. Its word follows what's in reach: Gather, Repair, Upgrade, Workbench, or
|
||||
Shop.
|
||||
6. **Build mode.** The attack half becomes the placing finger: the ghost sits on the ground under
|
||||
the finger, within build range. Buttons are Place, Rotate left and right, Dismantle (over a
|
||||
structure), and Done. Tap a build-bar slot to pick what to build. The move stick still walks.
|
||||
7. **Dialogue and tips.** A tap advances a conversation, as now. A Skip button skips a
|
||||
conversation, and an × on the tip box hides tips.
|
||||
8. **Haptics.** A short buzz when the scarecrow is hit, on by default, with a setting.
|
||||
|
||||
**Skipping, pausing, and quitting.**
|
||||
- A skip fades straight to the first morning sign, without the loading screen.
|
||||
- Escape opens the pause menu as usual: the tree pauses, so the intro freezes, and the box waits
|
||||
(`blocked`).
|
||||
- "Restart the night" during the intro acts as a skip.
|
||||
- "Save & quit to menu" clears the intro. The save is night 1's morning (`new_campaign` autosaves),
|
||||
so Continue from there plays no intro.
|
||||
**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.
|
||||
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
|
||||
(`ScreenLabels`), so they're sharp and scale with the interface.
|
||||
12. **Camera.** 12 m on phones (16 on desktop), adjustable in settings. No pinch zoom yet.
|
||||
13. **Settings on phones.** No Fullscreen, VSync, mouse note, or bindings table. It adds Interface
|
||||
size, Swap sticks, Camera distance, and Haptics, plus a short touch-controls guide.
|
||||
14. **Minimum touch target.** 44 pt (Apple's guideline), worked out from the scale (#35).
|
||||
|
||||
**Names and lines.**
|
||||
- Speakers: **Farmer**, **Farmer's Wife**, **Little Green Alien** (the existing speaker, who comes
|
||||
back on day 2), and **Big Green Alien**. They're editable in `speakers/*.tres`.
|
||||
- The user wrote "etc." for the bickering. The extra lines below marked *(draft)* are
|
||||
placeholders to rewrite freely in the `.tres`.
|
||||
**Platform**
|
||||
15. **No Quit buttons on phones.** Android's back button pauses, closes the top menu, or quits
|
||||
from the main menu.
|
||||
16. **iPad supported.** Layouts must fit 4:3 too. If iPad isn't wanted for v1, switch
|
||||
`targeted_device_family` to iPhone only and drop the 4:3 checks.
|
||||
17. **Android** is in this plan (#44) but can wait until iOS plays well.
|
||||
|
||||
**Staging.**
|
||||
- The car waits parked nose-out (facing north) for the departure, so it drives straight off.
|
||||
- The same luggage rides on the ending's car (one shared kit), so the farmers come home loaded.
|
||||
- If the house model's front door is a separate node, it swings open. Otherwise the farmers appear
|
||||
on the porch with a door creak.
|
||||
- The scarecrow stands on a wooden post at its start spot (3, −13) in its rest pose, arms out
|
||||
(check that the mannequin's rest pose is a T-pose; if it isn't, ask).
|
||||
- Its lantern stays dark until the flash. Only player 1's scarecrow exists during the intro.
|
||||
- The chest glow is on every scarecrow (the co-op partner's too) from then on. It's a fixed part
|
||||
of the look, so nothing is saved for it.
|
||||
## The touch layout (19.5:9 phone, defaults)
|
||||
|
||||
## The storyboard
|
||||
```
|
||||
┌──────────────────────────────────────────────────────────────────────────┐
|
||||
│ (portrait) HP ▬▬▬▬▬ [ ‖ ] ┌ Day 3 of 30 ┐ │
|
||||
│ │ 2:58 to Dusk│ │
|
||||
│ └─────────────┘ │
|
||||
│ [Fear] [Use] │
|
||||
│ [Bomb] attack half: a finger is the move half: a [Build] │
|
||||
│ [Patch] attack stick (aim + attack) finger is the │
|
||||
│ move stick │
|
||||
│ (backpack) [1][2][3][4] [bomb] hotbar │
|
||||
└──────────────────────────────────────────────────────────────────────────┘
|
||||
notch side ←→ safe-area inset home indicator ↓ inset
|
||||
```
|
||||
|
||||
About 75 s if nothing is skipped or hurried. Stage names are `OpeningIntro.stage` values.
|
||||
|
||||
| # | Stage | Light | Camera | What happens | Sound |
|
||||
|---|---|---|---|---|---|
|
||||
| 1 | `leave` | morning (forced) | Wide from the yard's north-east, looking south-west at the porch and the parked car | The farmers come out of the door (19.6, −29.8) and walk to the car's doors. The **departure** conversation starts as they step off the porch, and they wait at the doors until it ends. ~18 s | door creak, day ambience |
|
||||
| 2 | `board` | | same | The farmer gets in on the left and the wife on the right; each disappears with a door slam. The engine starts and the luggage jiggles. ~2 s | car door ×2, engine |
|
||||
| 3 | `drive` | | Follows behind the car (the ending's follow camera), then stops at GapDriveway and watches it shrink down the road | The car drives the ending's route backwards: north along the yard road, east out GapDriveway (a horn toot), then south down the road at x 52 and away. The luggage sways on the turns. ~12 s | engine, horn |
|
||||
| 4 | `card` | night (forced, snapped while black) | — | Fade to black. "Later that night...." is written letter by letter in the handwritten font, centered. ~3.5 s | night ambience fades in |
|
||||
| 5 | `flight` | night | Low on the farm, looking up at the night sky; it pans to track the UFO | A big UFO (`EnemySystem.build_ufo_mesh` at scale ~8, `ufo.gdshader`, lights pulsing) crosses from the far north-east toward the farm. Its path jerks and banks with each line of the **flight** conversation (a tug-of-war on the controls). ~18 s | UFO hum (loop) |
|
||||
| 6 | `wobble` | | Holds on the UFO above the farm | It stops over the scarecrow at about (3, 20, −13). It sways side to side (±3 m, ±20° tilt) faster and faster, then spins up hard. ~4 s | rising whine |
|
||||
| 7 | `drop` | | Cuts to the scarecrow on its post as the part comes into frame | A part flies off the rim and tumbles down with a blue trail. It lands about 0.8 m in front of the scarecrow with a thud and a puff of dust. ~2.5 s | falling whistle, thud |
|
||||
| 8 | `flash` | | Close on the scarecrow | The part pulses three times, then a **blue flash**: a light spike, a full-screen blue-white flash fading out, and a ring across the ground. The part streaks into the scarecrow's chest and the chest glow comes on. The scarecrow drops off its post (`Hit_A`), lands, its lantern lights, and it looks around (`Idle_B`), then up. ~5 s | shimmer zap |
|
||||
| 9 | `uh_oh` | | Low behind the scarecrow, looking up at the hovering UFO | The **uh-oh** conversation. The UFO shifts guiltily. ~7 s | hum |
|
||||
| 10 | `escape` | | Holds on the scarecrow looking up | The UFO tilts and zooms off up and away, its lights streaking. ~2.5 s | whoosh |
|
||||
| 11 | `loading` | morning (released, snapped) | — | Fade to black, then the loading screen, about 3 s. Under it the farm is put back: post and part gone, the scarecrow idle at its start, HUD and input back, the light snapped to the morning look. ~4.5 s | |
|
||||
| 12 | `end` | | the game camera | Fade into the first morning sign ("The farmers are away", `review_panel.gd:164-170`). `finished` is emitted. | |
|
||||
|
||||
## The lines
|
||||
|
||||
**`intro/departure.tres`**
|
||||
- Farmer: "Well, I sure hope the farm will be okay."
|
||||
- Farmer's Wife: "Well then, you should have paid someone to come watch it for you instead of
|
||||
buying those front row tickets to the Bon Jovi concert."
|
||||
- Farmer: "Ah, it'll be alright. What's the worst that could happen?"
|
||||
|
||||
**`intro/flight.tres`**
|
||||
- Little Green Alien: "I want to fly the ship!"
|
||||
- Big Green Alien: "You flew it all the way from the Andromeda galaxy! It's my turn!"
|
||||
- Little Green Alien: "Your tentacles don't even reach the pedals!" *(draft)*
|
||||
- Big Green Alien: "Mother said we take turns! Give me the stick!" *(draft)*
|
||||
- Little Green Alien: "Hands off! [shake]HANDS OFF![/shake]" *(draft; the wobble starts on this line)*
|
||||
|
||||
**`intro/uh_oh.tres`**
|
||||
- Big Green Alien: "Uh oh.... we should go tell mother."
|
||||
- Little Green Alien: "Are you crazy!!! Let's just get out of here, maybe no one will notice!"
|
||||
Build mode swaps the button columns: the attack side gets Rotate ⟲ ⟳ and Dismantle, and the move
|
||||
side gets Place and Done. The build bar replaces the hotbar.
|
||||
|
||||
## How it fits together
|
||||
|
||||
**`OpeningIntro`** (`game/scripts/opening_intro.gd`)
|
||||
- A `Node3D` under `FarmSim`, built and wired in `_ready` like `FarmersReturn` (`farm_sim.gd:312`).
|
||||
- Everything is built in `start()` and freed in `clear()`, so nothing exists during play.
|
||||
- `step(delta)` drives the stage machine, so tests can step it headless the way
|
||||
`test_flow.gd:_ending` steps the ending.
|
||||
- Its API is `start()`, `skip()`, `clear()`, `running`, `done`, `stage`, and `signal finished`.
|
||||
|
||||
**`CutsceneKit`** (`game/scripts/cutscene_kit.gd`): static helpers shared with `FarmersReturn`.
|
||||
- The car with its roof luggage.
|
||||
- The tinted farmer mannequins with straw hats, and their `AnimationPlayer`s.
|
||||
- Camera easing (`_move_camera`) and the follow-behind camera.
|
||||
- The letterbox overlay with its caption label and the skip hint.
|
||||
|
||||
**Its own `DialogueBox`** sits in the intro's overlay `CanvasLayer`, because the HUD layer is
|
||||
hidden.
|
||||
- Its conversations live in `game/resources/dialogue/intro/`. `DialogueDirector.load_all` skips
|
||||
subfolders, so they never play by themselves.
|
||||
- They use `pause_game = true` (the box takes input) with `auto_advance` ≈ 1.6 s, so lines go on
|
||||
by themselves and a tap hurries them. The intro plays them with `box.play()`, never through
|
||||
`DialogueDirector.play()`, so the tree isn't paused.
|
||||
- Main sets the box's `blocked` the same way as `sim.dialogue.box.blocked` (`main.gd:66`).
|
||||
- **Framing:** the paper is 1360×350, 118 px above the bottom, and the heads stand above it. Keep
|
||||
the action in the upper half of the frame while a line is up. If that isn't enough, give
|
||||
`DialogueBox` a size scale at the timing review (#34).
|
||||
|
||||
**Hooks it needs:**
|
||||
- **`DayNight.forced`** (empty = normal): `target()` returns the named look ("morning" = the
|
||||
MORNING mix, "night" = `NIGHT`). A way to keep a lantern dark.
|
||||
- **The morning sign:**
|
||||
- `ReviewPanel.refresh()` keeps the sign hidden while `sim.intro` is running.
|
||||
- `DialogueDirector` doesn't start morning conversations or call `_sign(true)` while the intro
|
||||
runs.
|
||||
- When the intro ends, it hands over: night 1's morning conversations (none today), then the
|
||||
sign.
|
||||
- **`Tutorial`** hides while the intro runs.
|
||||
- **Freezing and focus:** `sim.freeze_local(true)` stops the scarecrow's input (morning input
|
||||
isn't otherwise gated). Audio focus goes to the cutscene's subject (`sim.audio.focus`), and the
|
||||
HUD layer is hidden (`FarmersReturn._set_hud`).
|
||||
- **`Main.new_vacation()`** (`main.gd:162`): after `new_campaign()`, call `sim.intro.start()`
|
||||
unless hosting. `_host_coop` must not start it. `to_menu()` clears it.
|
||||
|
||||
**`LoadingScreen`** (`game/scripts/loading_screen.gd`) is a self-contained `Control` with
|
||||
`play(seconds)` and `signal finished`, so it can be reused later.
|
||||
- **`MobilePort`** (exists) gains `ui_scale()`, `safe_rect(canvas_item)`, the `--safe-area`
|
||||
simulator, and a `forced` override for tests (#35). `GameSettings.apply` sets the window's
|
||||
`content_scale_factor` on phones. That scales every CanvasLayer (HUD, menus, sticks) and leaves
|
||||
the 3D view alone.
|
||||
- **`Prompts`** (new, #36) returns touch wording on phones and today's exact strings elsewhere.
|
||||
Every key-naming string goes through it. The touch words name the buttons of #38–#40.
|
||||
- **`TouchSticks`** (exists) gets `move_on_right` as a variable (#38). It stops pressing fire in
|
||||
build mode and hands the attack half to placing (#40).
|
||||
- **`TouchButtons`** (new, #38) is a HUD Control with the contextual buttons, drawn in the
|
||||
`Sketch` style. Its buttons press the existing actions with `Input.action_press` and
|
||||
`action_release` (hold while the finger is down, and held for at least one physics tick), so
|
||||
game code and `ActionEdges` don't change. Buttons are Controls with STOP, so they take their
|
||||
touches before the sticks. Everything else stays IGNORE so the sticks keep the screen.
|
||||
- **Settings contract** (#38 and #41): `TouchSticks` and `TouchButtons` join group
|
||||
`&"touch_controls"` and implement `apply_settings(s: GameSettings)`. `GameSettings.apply` calls
|
||||
`get_tree().call_group(&"touch_controls", &"apply_settings", self)` and sets the camera's
|
||||
distance. This way #41 doesn't need `main.gd`.
|
||||
- **HUD hit targets** (#39): the hotbar slots, the backpack, the tip ×, and the dialogue Skip
|
||||
button are small STOP Controls over today's drawn widgets.
|
||||
- **`BuildMode`** (#40) gets a screen-point cursor hook (the mouse ray path, fed by a finger),
|
||||
plus public `confirm()` and `dismantle()` that the buttons call. The key and gamepad paths stay
|
||||
the same.
|
||||
- **Layout passes** (#41–#43) fit every screen to the scaled canvas inside `safe_rect`. They use
|
||||
scroll lists where a panel is taller than about 640 px, wrapping, and anchors instead of
|
||||
1920×1080 absolutes.
|
||||
|
||||
## File overlap and order
|
||||
|
||||
| File | Tasks |
|
||||
|---|---|
|
||||
| `farmers_return.gd` | #29 (moves pieces into the kit) |
|
||||
| `cutscene_kit.gd` (new) | #29, used by #33 |
|
||||
| `day_night.gd` | #30 |
|
||||
| `farm_audio.gd`, `game/tools/synth_audio.gd`, `assets/audio/synth/` | #30 |
|
||||
| `player_character.gd` (or wherever the scarecrow's model is built) | #30 (chest glow) |
|
||||
| `sketch.gd` | #31 (two icons) |
|
||||
| `game/resources/dialogue/` | #31 |
|
||||
| `loading_screen.gd` (new) | #32 |
|
||||
| `opening_intro.gd` (new), `farm_sim.gd`, `main.gd`, `review_panel.gd`, `dialogue_director.gd`, `tutorial.gd` | #33 |
|
||||
| `test_flow.gd` | #29 (ending still passes), #33 (new-vacation flow) |
|
||||
| `README.md`, `game/LAYOUT.md`, `game/PLAYTEST.md`, `RULES.md` | #33 |
|
||||
| `mobile_port.gd`, `game_settings.gd` | #35, then #41 (`game_settings.gd`: new settings) |
|
||||
| `run_tests.gd`, `test_mobile.gd` (new), `game/tests/mobile/` | #35 creates them; later tasks add their own files only |
|
||||
| `prompts.gd` (new); key strings in `tutorial.gd`, `review_panel.gd`, `interactions.gd`, `workbench.gd`, `shed_counter.gd`, `build_mode.gd`, `build_hud.gd`, `opening_intro.gd`, `farmers_return.gd` | #36 |
|
||||
| `project.godot`, `main.gd`, `main_menu.gd`, `pause_menu.gd`, `toon_look.gd`, `screen_labels.gd`, `follow_camera.gd` | #37 (wave 1). `main.gd` again in #38; `main_menu.gd` and `pause_menu.gd` again in #41 |
|
||||
| `touch_buttons.gd` (new), `touch_sticks.gd`, `interactions.gd` (query only), `main.gd`, `sketch.gd` (icons) | #38, then #40 (`touch_sticks.gd`, `touch_buttons.gd`) |
|
||||
| `player_character.gd`, `game_config.gd`, `game_config.tres`, `upgrades.gd` (docs), `test_scarecrow.gd`, `test_economy.gd`, `test_nights.gd` | #46 |
|
||||
| `scarecrow_hud.gd` | #46 (stamina bar out, wave 1), then #39, then #43 |
|
||||
| `scarecrow_hud.gd`, `resource_hud.gd`, `tutorial.gd`, `dialogue_box.gd` | #39, then #43 (all but `resource_hud.gd`) |
|
||||
| `main_menu.gd`, `pause_menu.gd`, `confirm_box.gd`, `settings_menu.gd`, `game_settings.gd`, `scarecrow.gd` (haptics) | #41 |
|
||||
| `review_panel.gd`, `end_panel.gd`, `upgrade_panel.gd` | #42 |
|
||||
| `build_mode.gd`, `build_hud.gd` | #40 (after #36's string edits) |
|
||||
| `phase_hud.gd`, `radar_hud.gd`, `alert_manager.gd`, `cutscene_kit.gd`, `loading_screen.gd` | #43 |
|
||||
| `export_presets.cfg`, `codemagic.yaml`, adaptive icon layers | #44 |
|
||||
| `README.md`, `game/LAYOUT.md`, `game/PLAYTEST.md`, `docs/ios-test-port.md` | #45 |
|
||||
|
||||
- **Wave 1 (parallel):** #29, #30, #31, #32. They touch different files.
|
||||
- **Wave 2:** #33, after all of wave 1.
|
||||
- **Wave 3:** #34, the timing review with the user.
|
||||
| Wave | Tasks (parallel within a wave) | Size |
|
||||
|---|---|---|
|
||||
| 1 | #35 scale and safe area · #36 prompts · #37 platform · #46 sprint as a speed upgrade | M · M · S · S |
|
||||
| 2 | #38 action buttons · #39 tappable HUD · #41 menus and settings · #42 panels | L · M · M · M |
|
||||
| 3 | #40 build mode · #43 HUD and cutscene layout | L · M |
|
||||
| any | #44 Android (independent; best once iOS plays well) | M |
|
||||
| last | #45 device playtest and docs (with the user) | — |
|
||||
|
||||
## Tasks
|
||||
|
||||
### #29 [intro] Cutscene kit and the loaded-up car
|
||||
### #35 [mobile] Interface scale, safe area, and the mobile test kit
|
||||
|
||||
- **Extract from `FarmersReturn`:** the car instancing (collision layers off, engine player), the
|
||||
farmer building (tinted mannequins, straw hats, `AnimationPlayer` with
|
||||
`player_animations.res`), `_move_camera` / `_follow_camera` / `_face`, and `_build_overlay`. Put
|
||||
them in `CutsceneKit` as static functions or small helper classes. `FarmersReturn` keeps its
|
||||
behavior exactly.
|
||||
- **Roof luggage** (`CutsceneKit.load_roof(car)`), National Lampoon's style:
|
||||
- A tall, slightly crooked stack on `car_002`'s roof rack, as children of the car so it rides
|
||||
along.
|
||||
- Use the farm pack's `bag_001..003` and `box_004/005` props, scaled, plus 3–4 primitive
|
||||
suitcases in different colors. Add 2–3 thin dark straps over the top, tied down, and one item
|
||||
hanging off the side (a rolled mattress or a bike, primitives are fine).
|
||||
- Find the roof height from the car mesh's AABB, not a hard-coded number.
|
||||
- A small sway, driven by the car's turning and braking (`CutsceneKit.sway_luggage(delta, turn,
|
||||
accel)`).
|
||||
- The ending's car gets the luggage too.
|
||||
- **Verify:** `test_flow.gd`'s `_ending` passes unchanged. A new check confirms the car has its
|
||||
luggage and the luggage sits above the roof's AABB top. No new FAIL lines. Take a screenshot of
|
||||
the parked car (headless can't render, so use the editor binary with a window, as in
|
||||
`render_overview.gd`) and show it to the user.
|
||||
(#46, the sprint change, is in wave 1 too. Its section is after #44.)
|
||||
|
||||
### #30 [intro] Hooks: forced lighting, sounds, the chest glow
|
||||
- `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)`,
|
||||
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
|
||||
shorter-side size class (phone below 500 pt, else tablet).
|
||||
- Apply it in `GameSettings.apply` on phones as `get_window().content_scale_factor`.
|
||||
- `MobilePort.safe_rect(ci: CanvasItem) -> Rect2`: `DisplayServer.get_display_safe_area()`
|
||||
mapped into the canvas through the viewport's final transform, so it includes the scale. On
|
||||
desktop it's the full visible rect. A `--safe-area=l,t,r,b` user argument (window pixels)
|
||||
simulates an inset.
|
||||
- `static var forced := -1` (−1 = detect, 0 = desktop, 1 = phone) for tests. `active()` honours
|
||||
it.
|
||||
- `minimum_target()`: 44 pt in canvas pixels at the current scale.
|
||||
- Test kit: `game/tests/test_mobile.gd`, added once to `run_tests.gd`'s SUITES, which runs every
|
||||
`game/tests/mobile/*_test.gd` in name order with the runner's `check()`. `mobile/touch.gd` has
|
||||
static `touch(i, canvas_pos, pressed)` and `drag(i, from, to)`.
|
||||
- Port the sticks checks (the 24 from 8c81d81's driver) into `mobile/sticks_test.gd`.
|
||||
- **Verify:** `scale_test.gd` covers the scale for phone, tablet, and desktop sizes, the safe
|
||||
rect with a simulated inset, and desktop untouched (factor 1). `sticks_test.gd` passes. Take
|
||||
screenshots of the day HUD at 2340×1080 with an inset and at 4:3 (layouts will overflow; #41–#43
|
||||
fix that). No new FAIL lines.
|
||||
|
||||
- **`DayNight.forced: String`** (`""`, `"morning"`, `"night"`): `target()` returns that look while
|
||||
it's set, and `snap()` still works. Add a lantern override (`lanterns_dark := false`) so the
|
||||
intro can keep the scarecrow's lantern off until the flash.
|
||||
- **Sounds** (`synth_audio.gd`, written to `assets/audio/synth/`, registered in `FarmAudio`):
|
||||
- `ufo_hum`: a loop, a low wobbling drone.
|
||||
- `ufo_whine`: a rising spin-up, ~2 s.
|
||||
- `part_fall`: a falling whistle, ~1.5 s.
|
||||
- `life_flash`: a bright shimmer-zap.
|
||||
- `ufo_zoom`: a doppler whoosh away.
|
||||
- `car_door`: a dull metal thunk.
|
||||
- `door_creak`: try `kenney/rpg/creak*` first (already used for `thief_arrive`).
|
||||
- Reuse `fall`, `horn`, `truck_engine`, and the ambiences.
|
||||
- **Chest glow:**
|
||||
- A small emissive blue core on each scarecrow's model at chest height, with a faint pulse and a
|
||||
weak `OmniLight3D`. Keep it subtle in daylight and visible at night.
|
||||
- It's on by default, and `set_core_glow(on)` lets the intro hide it until the flash.
|
||||
- It must not break the hit-flash material swap or the toon look.
|
||||
- **Verify:** unit checks that `forced` overrides `target()` and clears back, and that the new
|
||||
sound names resolve to streams. No new FAIL lines. Take a screenshot of the scarecrow at night
|
||||
showing the glow.
|
||||
### #36 [mobile] Prompts in touch words
|
||||
|
||||
### #31 [intro] Speakers and the three conversations
|
||||
- `Prompts` (`prompts.gd`): `Prompts.touch()` returns `MobilePort.active()`, and one function or
|
||||
constant per prompt returns the touch wording or today's string.
|
||||
- Touch wordings (the button names come from #38–#40):
|
||||
- World labels: "[E / X] Gather" becomes "Gather". Repair, Upgrade, Upgrades, and Shop likewise
|
||||
lose the key.
|
||||
- Build ghost: "[LMB / RT] Build" becomes "Place", and "[RMB / B] Dismantle" becomes
|
||||
"Dismantle (+refund)".
|
||||
- Build bar help line: "Place · Rotate · Dismantle · Done" (or none, if the buttons make it
|
||||
redundant; show the user).
|
||||
- Cutscenes: "Hold to skip" (intro) and "Tap to skip" (farmers' return).
|
||||
- Tip footer: "Tip · × hides tips".
|
||||
- The tutorial tips and the first morning sign's lines, rewritten for touch. Examples: "Move
|
||||
with your right thumb…", "Hold Use at a dead tree…", "Tap the backpack…", "Build (by day):
|
||||
tap Build, pick a fence, put your finger where it goes, then Place…", "Your left thumb aims
|
||||
and attacks… tap the hotbar to switch… Bomb throws one…", "Crowded? Fear…", "Hurt? Hold
|
||||
Patch…". Show the user the full set.
|
||||
- **Verify:** `prompts_test.gd` checks the phone strings for each prompt and that a sample of
|
||||
desktop strings is byte for byte what it was. No new FAIL lines.
|
||||
|
||||
- **Speakers** in `game/resources/dialogue/speakers/`:
|
||||
- `farmer.tres` (left side, low voice pitch).
|
||||
- `farmers_wife.tres` (right side, higher pitch).
|
||||
- `big_green_alien.tres` (icon `"thief"`, right side, `portrait_height` ~380 so it's literally
|
||||
bigger than the Little Green Alien's 300, lower pitch).
|
||||
- The existing `little_green_alien.tres` stays as it is, on the left.
|
||||
- **Two new `Sketch.ICONS`:** `"farmer"` (a round face, a straw hat, a moustache) and
|
||||
`"farmers_wife"` (a straw hat with a flower, curls), drawn the way the existing icons are.
|
||||
- **Conversations** in `game/resources/dialogue/intro/` (`departure.tres`, `flight.tres`,
|
||||
`uh_oh.tres`), with the lines from "The lines" above:
|
||||
- `pause_game = true`, `auto_advance` 1.6, `enabled = false`.
|
||||
- Being in a subfolder already keeps them from playing by themselves; `enabled = false` is a
|
||||
second guard.
|
||||
- Write them as text, with uids.
|
||||
- **Verify:** `test_dialogue.gd` loads each one and checks the speakers and line counts.
|
||||
`DialogueDirector.load_all(DIR)` still returns only `morning_day_2`. No new FAIL lines. Take a
|
||||
screenshot of the box with each new speaker up.
|
||||
### #37 [mobile] Platform: back button, no Quit, flat labels, camera
|
||||
|
||||
### #32 [intro] The loading screen
|
||||
- **Android back:** set `application/config/quit_on_go_back=false`. Main handles
|
||||
`NOTIFICATION_WM_GO_BACK_REQUEST` like the pause action: playing pauses; paused closes the
|
||||
confirm box, then settings, then resumes; at the main menu it quits (Android convention).
|
||||
- **Quit:** hide the main menu's Quit and the pause menu's "Quit the game" on phones.
|
||||
- **World labels on phones:** `ScreenLabels` without `ToonLook`. Main adds `ScreenLabels` on its
|
||||
own on phones, so the Label3D prompts draw flat and scale with the interface. `ToonLook` keeps
|
||||
creating it on desktop.
|
||||
- **Camera:** default distance 12 m on phones (`FollowCamera.distance`). The setting comes in #41.
|
||||
- **Verify:** `platform_test.gd` covers the back-request sequence (play, pause, settings, back,
|
||||
back, resume; main menu quits), no Quit on phones (Quit still there on desktop), ScreenLabels
|
||||
present on phones, and the camera distance. A screenshot of world labels at 1.6×. No new FAIL
|
||||
lines.
|
||||
|
||||
- **`LoadingScreen extends Control`:** full-rect, on its own `CanvasLayer` (the caller adds it).
|
||||
- **Splash art:** `splash-screen.png`, scaled to cover (crop, never letterbox), with a slow
|
||||
Ken-Burns pan and zoom over the screen's time.
|
||||
- **Title:** "Harvest Season" in `Sketch.font()` with the outline style (there's no logo image
|
||||
yet; `assets/pictures/logo/` is empty).
|
||||
- **Progress:** a hand-drawn progress bar (`Sketch.box` / `Sketch.line`) fills over `seconds`. The
|
||||
sketch `"ufo"` icon bobs and wobbles along its leading edge. "Loading..." is written under it,
|
||||
with the dots cycling.
|
||||
- **API:** `play(seconds := 3.0)` fades in from black, runs, and emits `finished` at full
|
||||
progress. The caller fades it out.
|
||||
- It works while the tree is paused (`PROCESS_MODE_ALWAYS`).
|
||||
- **Verify:** a unit check that `finished` fires once after `seconds` of steps. Take a screenshot
|
||||
mid-way.
|
||||
### #38 [mobile] Touch action buttons
|
||||
|
||||
### #33 [intro] The opening intro
|
||||
- `TouchButtons` (`touch_buttons.gd`) is a HUD Control (Main adds it beside TouchSticks). It
|
||||
lays out inside `MobilePort.safe_rect`, with each button at least `MobilePort.minimum_target()`.
|
||||
Buttons are round, in the `Sketch` style, with an icon and at most one word. The set:
|
||||
- **Pause:** opens the pause menu. Top edge, beside the phase widget. Always shown while
|
||||
playing.
|
||||
- **Fear:** a tap. Shows the cooldown as a ring, like the portrait's.
|
||||
- **Bomb:** shown once pumpkin bombs are owned. A tap throws (offhand: press, then release).
|
||||
Shows a ring while it recharges.
|
||||
- **Patch:** shown when hurt and carrying straw. Hold it, with a 2 s progress ring.
|
||||
- **Use:** shown when something is in reach. Its word comes from `Interactions` (a new
|
||||
read-only `focus()` that returns kind and label; no behaviour change). Hold or tap as E does.
|
||||
- **Build:** by day. Toggles build mode (#40 adds the build-mode set).
|
||||
- No sprint control: after #46, Sprint is a passive speed upgrade.
|
||||
- `TouchSticks.move_on_right` becomes a variable (default `MOVE_ON_RIGHT`). The button columns
|
||||
follow it. Both nodes join `&"touch_controls"` with `apply_settings()`, a stub until #41.
|
||||
- A button keeps its action pressed for at least one physics tick, so a quick tap still counts.
|
||||
Pause, freeze, and hiding let everything go, as the sticks do.
|
||||
- Icons go in `Sketch` as needed (pause, bomb, patch, use, build).
|
||||
- **Verify:** `buttons_test.gd` drives each button by touch:
|
||||
- Fear starts its cooldown.
|
||||
- Holding Patch heals after 2 s.
|
||||
- Holding Use gathers at a node; tapping Use by day opens the workbench.
|
||||
- Bomb throws.
|
||||
- Pause opens the menu.
|
||||
- A touch on a button starts no stick; hidden buttons don't block the sticks.
|
||||
|
||||
Blocked by #29–#32.
|
||||
Take a screenshot of the day HUD at 2340×1080 with an inset. No new FAIL lines.
|
||||
|
||||
- Build `OpeningIntro` per "How it fits together" and the storyboard. That means stages 1–12, the
|
||||
hold-to-skip, its own `DialogueBox`, and the hooks into `ReviewPanel`, `DialogueDirector`,
|
||||
`Tutorial`, `freeze_local`, the HUD layer, audio focus, and `DayNight.forced`.
|
||||
- **The part:** a primitive-built gizmo, about 0.5 m: a dark metal cylinder and a torus, a glowing
|
||||
blue core (emission plus an `OmniLight3D`), and a blue trail while it falls (a `GPUParticles3D`
|
||||
or a few fading quads).
|
||||
- **The flash:** an `OmniLight3D` energy spike, a full-screen `ColorRect` in the overlay going
|
||||
blue-white and fading, and a ground ring (reuse `fear_burst.gdshader` if it fits).
|
||||
- **The UFO:** a `MeshInstance3D` with `build_ufo_mesh(8.0)` and a `ufo.gdshader` material, set up
|
||||
as `FarmSim` does for the enemy UFOs (`farm_sim.gd:201`) but its own instance. Spin it with the
|
||||
shader's spin plus node rotation for the fast spin. Give it night glow.
|
||||
- **Wiring:**
|
||||
- `FarmSim` builds `intro` next to `ending`.
|
||||
- `Main.new_vacation()` starts it, except from `_host_coop`. `to_menu()` clears it.
|
||||
- "Restart the night" skips it.
|
||||
- Main sets the intro box's `blocked`.
|
||||
- **Ends cleanly:** after `finished` (or a skip), the farm must be exactly what `new_campaign()`
|
||||
leaves:
|
||||
- the scarecrow at its start, input back, HUD back, the lighting un-forced and snapped;
|
||||
- the post, the part, the UFO, the car, and the farmers freed;
|
||||
- the morning sign up with focus on its Start button.
|
||||
- **Docs:** README (what happens on New vacation; the skip), `game/LAYOUT.md` (the intro's staging
|
||||
points, next to "The car's route"), `game/PLAYTEST.md` (a line to watch it once and try a skip),
|
||||
and RULES.md if it describes starting a vacation.
|
||||
- **Verify:**
|
||||
- A new `test_intro.gd` (registered in `run_tests.gd`) covers these:
|
||||
- New vacation starts it, and Continue doesn't.
|
||||
- Hosting doesn't start it.
|
||||
- Stepping to the end visits every stage in order, ends with `done`, and the sign is visible.
|
||||
- During the intro the sign is hidden, the HUD layer is hidden, and the scarecrow can't move.
|
||||
- A skip at each stage ends clean.
|
||||
- `to_menu` mid-intro leaves no intro nodes. Restart mid-intro ends clean.
|
||||
- The lighting is back to the MORNING target, and the chest glow is on after.
|
||||
- No new FAIL lines.
|
||||
- A windowed run with frames captured at every stage, to show the user.
|
||||
### #39 [mobile] Tappable HUD
|
||||
|
||||
### #34 [intro] Timing review with the user
|
||||
- **Hotbar:** tap a slot to equip that weapon (only when combat allows switching, as with Tab).
|
||||
- **Backpack:** a tap toggles the pouch panel, and a tap outside closes it. The pouch panel
|
||||
fits the scaled canvas.
|
||||
- **Tips:** an × on the tip box hides tips (as `hide_tips`).
|
||||
- **Dialogue:** a Skip button on conversations that pause the game skips the conversation (as
|
||||
Backspace). A tap still advances.
|
||||
- Each hit target is a STOP Control over its drawn widget only. The rest of each widget stays
|
||||
IGNORE.
|
||||
- **Verify:** `hud_taps_test.gd` covers each tap and checks that a touch beside each widget still
|
||||
starts a stick. Screenshots. No new FAIL lines.
|
||||
|
||||
Run the intro in a window and capture each shot. Then go through the user's notes: line timing
|
||||
(`auto_advance`, letters/s), shot framing against the dialogue box (add a box size scale if
|
||||
needed), UFO sway and spin feel, flash strength, the luggage's look, the loading screen's length,
|
||||
and rewrites of the *(draft)* lines. No acceptance beyond the user's sign-off.
|
||||
### #40 [mobile] Build mode by touch (after #36 and #38)
|
||||
|
||||
- In build mode, TouchSticks never presses `fire`. This fixes placing on every tilt. A finger on
|
||||
the attack half sets `BuildMode`'s screen-point cursor, so the ghost goes under the finger,
|
||||
clamped to `build_range`, and stays put when the finger lifts.
|
||||
- The TouchButtons build set: Place (greyed when invalid; the ghost label still says why),
|
||||
Rotate ⟲ and ⟳, Dismantle (when the cursor is over a structure), and Done. Build-bar slots are
|
||||
tappable to pick. The build bar sits above the home indicator.
|
||||
- `BuildMode`: add `cursor_screen` (null means use the existing mouse or gamepad path), plus
|
||||
public `confirm()` and `dismantle()` taken from `step`. Keyboard and gamepad behave the same.
|
||||
- **Verify:** `build_test.gd`, all by touch: enter, pick a gate, put the ghost down, rotate,
|
||||
place (costs paid), dismantle (refund), and Done. At night Place refuses with "Building is for
|
||||
daytime". `test_structures` has no new FAIL lines. Screenshot.
|
||||
|
||||
### #41 [mobile] Menus and settings at phone scale
|
||||
|
||||
- **Main menu:** anchored and fitted to the scaled canvas and the safe rect.
|
||||
- **Pause and confirm:** buttons at least `minimum_target()` tall.
|
||||
- **Settings on phones:**
|
||||
- Audio, unchanged.
|
||||
- Touch: Interface size, Swap sticks, Camera distance (8–20 m), Haptics.
|
||||
- Gameplay: tips.
|
||||
- Display: 3D resolution scale only.
|
||||
- A short touch-controls guide in place of the bindings table.
|
||||
- Fullscreen, VSync, and the mouse note are hidden. Reset leaves hidden settings alone.
|
||||
- Drag-scrolling mustn't fight the sliders: tall rows, and a slider only grabs after a
|
||||
horizontal move. Check on a device.
|
||||
- **`GameSettings`:** `interface_size` (from #35), `swap_sticks`, `camera_distance`, and `haptics`,
|
||||
saved and loaded with fallbacks. They're applied live: the call to `&"touch_controls"` and the
|
||||
camera's `distance`.
|
||||
- **Haptics:** `Input.vibrate_handheld(30)` when the scarecrow takes a hit (`scarecrow.gd`), on
|
||||
phones with the setting on.
|
||||
- **Verify:** `menus_test.gd` checks every menu's buttons inside the safe rect at 19.5:9 and 4:3
|
||||
(1.6× and 1.0×) and at least the minimum target, the settings round trip, and the swap moving
|
||||
the sticks. Desktop settings are unchanged. Screenshots. No new FAIL lines.
|
||||
|
||||
### #42 [mobile] Panels at phone scale
|
||||
|
||||
- **Morning sign** (about 850 tall today): fits about 640 px by scrolling or splitting into two
|
||||
columns, and Start the day stays visible.
|
||||
- **End panel:** stats wrap.
|
||||
- **Workbench and shed panels:** a scroll list with rows at least the minimum target, and Close
|
||||
always visible.
|
||||
- **Verify:** `panels_test.gd` checks each panel's rect inside the safe rect at 19.5:9 and 4:3,
|
||||
and that rows and buttons are at least the minimum target. The desktop layout is the same at
|
||||
1920×1080. Screenshots. No new FAIL lines.
|
||||
|
||||
### #43 [mobile] HUD and cutscenes at phone scale (after #39)
|
||||
|
||||
- Every HUD widget sits inside `safe_rect`: the portrait and HP, the phase widget and radar, the
|
||||
hotbar above the home indicator, the backpack, the banner, the dusk hint, the tutorial box, and
|
||||
the dialogue box (paper and heads fit about 640 px).
|
||||
- Letterbox bars and skip hints, and the loading screen.
|
||||
- Alert edge arrows keep out of the real widget rects instead of today's constants.
|
||||
- **Verify:** `hud_layout_test.gd` checks every widget's rect inside the safe rect at 19.5:9 with
|
||||
an inset and at 4:3, and no two overlapping. The desktop layout is unchanged. Screenshots of a
|
||||
day, a night, a conversation, and the intro's skip hint. No new FAIL lines.
|
||||
|
||||
### #44 [mobile] Android build
|
||||
|
||||
- An Android preset:
|
||||
- Gradle build, arm64.
|
||||
- The target SDK Play currently requires.
|
||||
- Sensor landscape, ETC2/ASTC (already on).
|
||||
- An adaptive icon (foreground and background layers from `app_icon.png`).
|
||||
- The `perf_test` feature on the test build.
|
||||
- An `android-perf-test` workflow in `codemagic.yaml`: a Linux instance, the keystore from
|
||||
Codemagic's code-signing identities, AAB and APK artifacts, and optionally Play's internal
|
||||
track.
|
||||
- **Needs from the user:** a Google Play developer account, a keystore (Codemagic can generate
|
||||
one), and for a personal account, 12 testers in a closed test for 14 days before production.
|
||||
- **Verify:** the Codemagic build installs on an Android phone. Back behaves as in #37, the
|
||||
sticks and buttons work, and the safe area holds on a hole-punch camera.
|
||||
|
||||
### #46 [gameplay] Sprint becomes a speed upgrade (all platforms)
|
||||
|
||||
- When the Sprint upgrade is owned (`Upgrades.owned(state, "sprint")`), the scarecrow's base speed
|
||||
is multiplied by `config.sprint_speed_mult` (now 1.25) all the time, walking and running alike.
|
||||
Without it, the speed is unchanged.
|
||||
- Remove the burst: hold-to-sprint, `sprint_time`, `sprint_cooldown`, the stamina state in
|
||||
`PlayerCharacter` (`step_sprint` and friends), and the HUD's stamina bar (`scarecrow_hud.gd`).
|
||||
The `sprint` input action stays in `project.godot` (unused). Removing it is a follow-up, since
|
||||
#37 owns that file.
|
||||
- The upgrade's id stays `"sprint"` (saves and costs are unchanged). Its text becomes "Run 25%
|
||||
faster, always" in `game_config.gd`'s defaults and in `game_config.tres`, which overrides it.
|
||||
- Update the sprint checks in `test_scarecrow.gd`, `test_economy.gd`, and `test_nights.gd`
|
||||
rather than deleting them. Check that the speed is the same without the upgrade, ×1.25 with it,
|
||||
with no time limit, and that it survives save and retry.
|
||||
- **Verify:** no new FAIL lines beyond the sprint checks this task rewrites (list any that change
|
||||
and why). Desktop and phone both get the boost.
|
||||
|
||||
### #45 [mobile] Device playtest and docs (with the user)
|
||||
|
||||
- A TestFlight build on iPhone (and iPad, if supported). Play a whole new vacation by touch: the
|
||||
intro skip, the day-1 tutorial, gathering, building, a night fight, the workbench and shed, the
|
||||
pouch, a conversation, settings, sending the app to the background and back, game over, retry,
|
||||
and the farmers' return.
|
||||
- Docs: a mobile section in `README.md`, the new scripts in `game/LAYOUT.md`, a touch checklist
|
||||
in `game/PLAYTEST.md`, and `docs/ios-test-port.md` brought up to date.
|
||||
- The user's notes go to `docs/followups.md`.
|
||||
- **Done when:** the user signs off that a vacation plays by touch alone.
|
||||
|
||||
## Not in this plan
|
||||
|
||||
- **Ads and the remove-ads purchase:** the next plan. It will need a spot for "Remove ads" in the
|
||||
pause menu and an interstitial at dawn.
|
||||
- **Pinch zoom:** it needs gesture arbitration with the sticks.
|
||||
- **Co-op on phones, cloud saves, localization, and controller remapping.**
|
||||
- **Release cleanup:** removing the `perf_test` feature, a real icon, and the store listing.
|
||||
|
|
|
|||
|
|
@ -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