465 lines
33 KiB
Markdown
465 lines
33 KiB
Markdown
# Alien overhaul — task list
|
||
|
||
Recovered from the planning session's Task-tool entries (#1–#15). Narrative, decisions, and open
|
||
assumptions live in `alien-overhaul-plan.md`; where the two disagree, the plan wins (its corrections
|
||
are newer and verified against code — see notes on #9, #11, #12).
|
||
|
||
Tests: `godot --headless --path . --script res://game/tests/run_tests.gd` (exit code = failures;
|
||
`-- --suite=test_x` for one suite). The suite already had ~22–23 failing checks from tuning before
|
||
this overhaul; judge tasks by *new* FAIL lines versus the baseline, not by a zero exit code.
|
||
|
||
## Independent
|
||
|
||
- [x] **#1 Rename Turret/Tar Patch display labels.** *(merged 7fce796)*
|
||
Rename automated_defense->"Turret" and slowing_trap->"Tar Patch" in UI display text only
|
||
(build_hud.gd, structure_system.gd NAMES). Keep internal IDs unchanged for save compatibility.
|
||
*Acceptance:* test_structures.gd/test_targets.gd pass unmodified; only displayed names change.
|
||
|
||
- [x] **#2 Sprint rebalance to spec values.** *(merged 47b860b)*
|
||
Change sprint_speed_mult 1.6->1.8 and sprint_time 3.0->4.0 in game_config.gd (sprint_cooldown
|
||
stays 10.0, already matches). Update upgrade description text in game_config.tres.
|
||
*Acceptance:* test_scarecrow.gd sprint checks pass with new values.
|
||
|
||
- [x] **#3 Pouch capacity rework (8 base, 16 upgraded).** *(merged 5b72e83 — "Bigger pouch",
|
||
10 wood + 8 straw, Scarecrow track)*
|
||
Change base pouch_capacity from 16 to 8 in game_config.gd. Add a new "pouch_upgrade" entry to
|
||
Upgrades (stat: pouch_capacity, target 16) purchasable once via Workbench, following the existing
|
||
stat/mult upgrade pattern.
|
||
*Acceptance:* new test asserting base capacity 8, capacity 16 after purchase, persists across
|
||
retry/save.
|
||
|
||
- [x] **#4 Alien Goop resource + drop-on-kill.** Blocks #5. *(merged 2fa3aa3 — goop is credited
|
||
straight into the pouch on kill, like gathering; cumulative total is
|
||
`state.totals()["gathered_alien_goop"]`)*
|
||
Add "alien_goop" as a 4th material in resource_store.gd alongside wood/scrap/straw. Add a drop
|
||
hook in enemy_system.gd's kill/removal path for the "thief" (soon "Alien") enemy type only:
|
||
config-tunable alien_goop_drop_chance (default 0.33) and alien_goop_drop_qty (default 1) in
|
||
GameConfig. Dropped goop should behave like other gathered materials (pouch/shed storage,
|
||
stealable from shed).
|
||
*Acceptance:* new test killing N thief enemies and asserting goop drop rate roughly matches config
|
||
over many trials, or a deterministic seeded test; goop persists in save/retry.
|
||
|
||
- [x] **#9 Workbench: auto-grant after Night 1 + destructible/repairable.** *(merged 4e3692b —
|
||
`StructureSystem.grant_workbench()` at night 1's end; `workbench_hp` 50; broken at 0 HP until
|
||
repaired; always a fence-breaker goal while unbroken)*
|
||
Gate Workbench visibility/availability to auto-appear after Night 1 completes (campaign
|
||
controller's phase/night-advance signal), not buildable/placeable by the player. Once present,
|
||
give it HP and make it targetable by enemies, repairable via the existing proportional
|
||
repair-cost pattern. Repair-only (no full-destroy-then-rebuild state).
|
||
*Wiring (decided 2026-10-05, plan option (a)):* inject the Workbench into
|
||
`StructureSystem.structures` through a non-purchased, unvalidated variant of `place()` so it
|
||
reuses the existing damage/repair/targeting/save pipeline — no bespoke HP logic in workbench.gd.
|
||
*Acceptance:* new test confirming Workbench is absent/inaccessible before Night 1, appears after,
|
||
can be damaged and repaired, state persists in save/retry.
|
||
|
||
- [x] **#10 Per-instance Turret/Tar Patch leveling (L1–L3).** *(merged 4b78004 — hold interact
|
||
near a full-HP turret/tar patch by day; costs in `GameConfig.structure_level_costs`; save v6;
|
||
co-op PROTOCOL 3)*
|
||
Add a `level` field (1-3) to each placed structure's record in StructureSystem, upgraded
|
||
independently per instance (not account-wide) via a new interaction when the player is near a
|
||
specific turret/tar-patch, charging config-tunable per-level costs. Turret L2: fire rate 3x (same
|
||
multiplier as player's Rapid Fire). Turret L3: 3 projectiles fired simultaneously in a triangle
|
||
spread pattern, retaining L2's 3x fire rate (plan default). Tar Patch L2: footprint size doubles
|
||
vs L1 original. Tar Patch L3: triples vs L1 original (plan default).
|
||
*Acceptance:* new tests per level verifying fire-interval/projectile-count and trap
|
||
footprint/slow-area values, independently for two separately-placed structures of the same type.
|
||
|
||
- [x] **#11 Animal Pen boundary becomes player-built.** Blocks #12. *(merged 43300a1; test helper
|
||
`game/tests/pen_ring.gd` (PenRing) rebuilds the old 24-piece ring through the normal path)*
|
||
*(Task-tool text said "new buildable type in ORDER"; superseded by the plan's corrected
|
||
Decision 4.)* Not a new structure type and no new `ORDER` entry. `FarmZone.Kind.ANIMAL_PEN`
|
||
already exists and drives nav/flow-fields; `AnimalSystem.update_pen_open()` already implements
|
||
"open if there's a way out crossing no structure". Delete the 23 `fence_024` instances under
|
||
`Zones/AnimalPen` in farm.tscn (they are collidable, so today they form a permanent wall) and let
|
||
players build ordinary `fence`/`gate` structures around the existing pen rect.
|
||
*Starting gate (decided 2026-10-05):* remove the `gate` from `GameConfig.start_structures` too —
|
||
the pen is fully player-built.
|
||
*Existing pen tests:* tests that assume the pre-built pen (`test_targets.gd` "the pen's gate shuts
|
||
the pen", `_pen_by_day`, `_breach`; `test_structures.gd` fence-on-pen-edge "Blocked" check,
|
||
`_pen_breach`) must build a fence/gate ring in their setup so they keep covering the same behavior.
|
||
*Acceptance:* new test that builds fence/gate structures around the pen rect (charging normal
|
||
costs, passing normal placement validation) and verifies the pen-open/closed gap check works for
|
||
the player-built boundary — closed when fully enclosed, open with a gap — not for fixed scene
|
||
geometry. Reworked pen tests pass; no new FAIL lines versus baseline.
|
||
|
||
- [x] **#13 Two new crop fields with staged growth (Night 2 / Night 4).** *(merged 930647c — units
|
||
31–40 lettuce, 41–50 corn; `LootSystem.Status.DORMANT`; `crops_total` grows 30→40→50)*
|
||
Add 2 new FarmZone crop fields (lettuce/cabbage field, corn field). *Placement (user,
|
||
2026-10-05):* side by side in the open south-west ground (LAYOUT.md's x −13…14, z −1…15) —
|
||
lettuce/cabbage field x −11…−1, z 2…12; corn field x 2…12, z 2…12 (≈10×10 m each, a 3 m
|
||
walkway between, clear of the Animal Pen rect and the Crop Field). Add
|
||
crop-type field and growth-stage/visibility logic to crop_unit.gd: field A sprouts automatically
|
||
after Night 2 completes, field B after Night 4, triggered off the campaign controller's
|
||
night-advance signal. Wire theft to new fields reusing existing crow/loot_system logic.
|
||
*Acceptance:* new test_farm_layout.gd and test_theft.gd cases confirming fields are
|
||
empty/non-interactable before their night threshold and fully active (stealable, scored) after.
|
||
|
||
- [x] **#14 Enemy roster reskin: Crow / Alien / Alien Robot.** *(merged 814449a)*
|
||
Rename display text/narrative framing only for existing enemy types: crow keeps its name/role
|
||
(add alien-mind-control narrative), thief -> "Alien" (display name), breaker -> "Alien Robot"
|
||
(display name). Zero behavior changes. No 3D model/texture/visual work (placeholders stay).
|
||
*Acceptance:* existing test_roster.gd/test_theft.gd pass unmodified; only UI-facing names/text
|
||
change.
|
||
|
||
- [x] **#15 UFO enemy: new flying-fast attacker type.** *(merged ae89494; night 5 gets 7 UFOs from 140 s)*
|
||
Add a 4th enemy_types entry (flying:true) reusing existing generic flying-nav infrastructure
|
||
(ignores fences/gates/traps, straight-line+altitude nav). Needs new FIGHT-capable flying behavior
|
||
in thief_behavior.gd since crow's land-and-flee logic never fights — default to a
|
||
strafing/diving attack pattern with config-tunable speed/hp/damage/attack-interval. Wire into
|
||
NightPlan/WaveDirector spawn composition. *Scheduling (user, 2026-10-05):* UFOs appear in night 5
|
||
only (one modest group added to night_5.tres; other nights unchanged).
|
||
*Acceptance:* new test_roster.gd case spawning a UFO, confirming it ignores barriers,
|
||
engages/damages the scarecrow or structures per its aggression setting, and stats are read from
|
||
GameConfig.
|
||
|
||
## Dependent
|
||
|
||
- [x] **#5 Hidden/reveal shop item system.** Blocked by #4. Blocks #6. *(merged d68d37b — item key
|
||
`"hidden": true` (+ optional `"reveal_goop": N`), default `GameConfig.hidden_reveal_goop = 5`;
|
||
helpers `Upgrades.revealed(state, cfg, id)`, `Upgrades.goop_collected(state)`)*
|
||
Build a generic "hidden until condition" flag for shop item definitions: shows a "?" icon with no
|
||
name/stats until a reveal condition is met (total Alien Goop collected >= config-tunable
|
||
threshold), then shows full details and becomes purchasable at its defined cost. Used by Alien
|
||
Ray and Radar.
|
||
*Acceptance:* test verifying item is hidden below threshold, revealed+purchasable at/above
|
||
threshold, state persists across save/retry.
|
||
|
||
- [x] **#6 Supply Shed as a real purchase surface.** Blocked by #5. Blocks #7, #8. *(merged
|
||
86755d8 — add a shed item with `"shop": "shed"` in GameConfig.upgrades (+ its costs entry) and
|
||
its id in Upgrades.ORDER; `Upgrades.shop_of(cfg, id)`; ShedCounter at (1, −15.5), daytime only)*
|
||
Build a new shop panel (separate from the Workbench's UpgradePanel) at the Supply Shed zone,
|
||
triggered by player interaction, selling weapons: Corn Shooter, Pumpkin Bombs (moved from
|
||
Workbench), plus new weapons, plus hidden items once revealed. Workbench keeps player/weapon stat
|
||
upgrades and buildable-related upgrades.
|
||
*Acceptance:* new/updated test confirming weapon purchases happen via Supply Shed interaction,
|
||
not Workbench, and existing Workbench upgrade tests still pass for retained upgrades.
|
||
|
||
- [x] **#7 New weapons: Potato Cannon, Shurikens, Propane Torch, Alien Ray.** Blocked by #6.
|
||
*(merged 72e84f1 — all four main-hand, sold at the shed; Alien Ray hidden, costs 6 goop + 10 scrap)*
|
||
Add 4 new weapons to the combat system (scarecrow_combat.gd/weapon enum pattern): Potato Cannon
|
||
(ranged, standard inventory), Shurikens (fast melee/thrown, standard inventory), Propane Torch
|
||
(short-range sustained/DoT, standard inventory), Alien Ray (ranged, hidden/revealed via Alien
|
||
Goop threshold). Costs and damage/fire-rate/cooldown: sensible defaults, all GameConfig-tunable.
|
||
No ammo/consumable system — cooldown-based like existing weapons. Placeholder visuals only.
|
||
*Acceptance:* each weapon purchasable, equippable, deals damage in a new test_weapons.gd case per
|
||
weapon.
|
||
|
||
- [x] **#8 Radar item (minimap reveal).** Blocked by #6. *(merged 94ac350 — hidden shed item
|
||
"radar" (8 scrap + 6 wood); RadarHud top-right, `radar_range` 40 m, `radar_refresh` 0.25 s)*
|
||
Add Radar as a purchasable hidden/revealed item via the Supply Shed. Function (confirmed):
|
||
minimap reveal — adds a minimap/map overlay showing enemy positions once purchased. Config-tunable
|
||
minimap range/refresh rate.
|
||
*Acceptance:* new test/UI check confirming minimap becomes visible after purchase and shows
|
||
active enemy positions, hidden before purchase.
|
||
|
||
- [x] **#12 Animals start loose; herd into the player-built pen.** Blocked by #11. *(merged b2eae67 —
|
||
`LootSystem.Status.LOOSE`, `GameConfig.animal_loose_spots`, `FarmState.penned_animals`, save v5)*
|
||
*(Reworked 2026-10-05: reusing DROPPED as-is doesn't work — DROPPED animals inside the pen rect
|
||
flip straight back to HOME, and outside it they walk to the map edge and are lost in any phase.
|
||
User chose "calm grazing outside".)* Add a new calm loose status (e.g. `LootSystem.Status.LOOSE`):
|
||
animals start scattered in open farmyard outside the pen rect and graze in place (HOME-style
|
||
wandering around their spot, not down `escape_field`) until the player leads them in with the
|
||
existing follow-trail mechanic (start_following/_follow) — entering the pen makes them HOME.
|
||
Aliens can still claim/steal loose animals; an animal an Alien drops stays DROPPED (unchanged:
|
||
runs for the edge). Persist which animals are penned in FarmState (to_dict/from_dict, morning
|
||
snapshot) so `sync_from_state()` restores penned animals HOME and the rest LOOSE each morning,
|
||
instead of resetting everyone into the pen. Handle the "no pen built yet" state for escape/theft
|
||
logic.
|
||
*Acceptance:* new test confirming animals spawn loose at campaign start, can be led into a
|
||
freshly-enclosed pen, and behave per existing containment/escape/theft rules once penned.
|
||
|
||
# Post-overhaul fix batch (2026-10-06)
|
||
|
||
Root causes, approach, files, and decisions live in `docs/plan.md` (#16–#22). Wave 1 runs in
|
||
parallel; wave 2 waits on the task named.
|
||
|
||
## Wave 1
|
||
|
||
- [x] **#16 Per-player pouch in co-op.** [user item 1] Blocks #22. *(merged 2fc09ca — save key
|
||
`partner_pouch` (FarmState v7), PROTOCOL 4; every pouch/pay method takes `slot` (default 0);
|
||
kill attribution `enemies.attacker` / `killer_of(handle)` for goop)*
|
||
Shed stays shared; pouch becomes one per avatar slot (shared `pouch_capacity`, so one
|
||
`pouch_upgrade` grows both). Every gather/deposit/pay path takes the acting slot. HUD shows the
|
||
local pouch. FarmState v7 + migration, CoopSession PROTOCOL 4.
|
||
*Acceptance:* test_coop proves separate pouches, no cross-banking in the shed, own-pouch paying;
|
||
v6 save migrates; solo unchanged; no new FAIL lines.
|
||
|
||
- [x] **#17 Propane Torch sprays a band of fire.** [user item 2] Blocks #18. *(merged 51b553b —
|
||
`_band_hit`, `TorchFlame` CPUParticles3D; reusable `WeaponModels.add_held_effect()` for #18;
|
||
band starts at the scarecrow, not the muzzle, so a thief in melee range still burns)*
|
||
Rectangular band hit test from the muzzle (`torch_width`, longer `torch_range`, drop
|
||
`torch_arc`); particle flame lit while fire is held (also on the partner's screen via the
|
||
existing attack events); own sound.
|
||
*Acceptance:* test_weapons band in/out/behind checks, sustained hold ticks and stops on release,
|
||
flame visible only while held.
|
||
|
||
- [x] **#19 UFO model built from primitives.** [user item 4] *(merged 91b71b5 — `EnemySystem.build_ufo_mesh()`,
|
||
`ufo_renderer` + `game/resources/ufo.gdshader`; UFO arrival cue `ufo_arrive`)*
|
||
Merged primitive saucer ArrayMesh drawn by a second HordeRenderer with its own shader (vertex
|
||
colors, no flap, keeps hit flash/night glow).
|
||
*Acceptance:* test_roster: UFOs render in the UFO renderer, not the bird one; crows unchanged.
|
||
|
||
- [x] **#20 New crop fields on the south soil, with their own plant models.** [user item 5]
|
||
*(merged 11d19d8 — playable `Rect2(-13, -45, 60, 80)`; lettuce x −6…4 / corn x 24…34, z 20…30;
|
||
plant_004/005 cabbages, plant_001 corn; `ThiefBehavior.field_rects`)*
|
||
Lettuce field → SW soil, corn field → SE soil; playable map extends south (z −45…35); SouthFields
|
||
hay points move out; per-field thief rects; lettuce/corn use their own plant prefabs and crop
|
||
tokens; LAYOUT.md updated.
|
||
*Acceptance:* test_farm_layout (fields on soil, inside map, no overlaps, not sunflower models);
|
||
test_theft staged-field cases pass.
|
||
|
||
- [x] **#21 Animals roam the whole farm, never lost on their own.** [user item 6] *(merged 9d26f29;
|
||
integration fix 55ebae4: thieves go straight for loose loot in clear view at any distance)*
|
||
No self-escape to the edge; dropped/leash-broken animals and animals leaving an open pen become
|
||
LOOSE; loose animals roam the playable map day and night; only an Alien carrying one off the
|
||
map loses it.
|
||
*Acceptance:* reworked test_targets loose/drop/breach cases; test_structures pen checks pass.
|
||
|
||
## Wave 2
|
||
|
||
- [x] **#18 Alien Ray fires a beam.** [user item 3] Blocked by #17. *(merged 0012b8c — `AlienBeam`,
|
||
`EnemySystem.path_hits()`; range 20 m, width 0.5 m, 1 dmg / 0.15 s, pierce 4)*
|
||
Held beam, ticked damage, clipped at walls, pierces enemies along it; emissive beam mesh; config
|
||
range/width/tick/pierce replace speed/lifetime.
|
||
*Acceptance:* test_weapons same-step far hit, wall blocks, two-in-line both hit, beam visible
|
||
only while held.
|
||
|
||
- [x] **#22 Joining player can open the store.** [user item 7] Blocked by #16. *(merged 02b990d —
|
||
cause found in a two-process run: no client prompt + the host dropped presses its lagging copy of
|
||
P2 made at the reach's edge; `Interactions.PRESS_WINDOW` 0.3 s, `["bought", slot, id]` event,
|
||
PROTOCOL 5. A menu that never opens at all was not reproduced)*
|
||
Failing test_coop case first (both shops), then fix: client shop prompt (`_gather_node`),
|
||
host keeps a partner's press pending until focus is valid, interact closes the client menu,
|
||
partner purchases equip on the buyer's slot and pay from the buyer's pouch.
|
||
*Acceptance:* new test_coop cases pass for shed and Workbench; two-process smoke opens the shed.
|
||
|
||
# Thirty nights — task list (2026-10-06)
|
||
|
||
Narrative, decisions, defaults, and file pointers are in `docs/plan.md` ("Harvest Season — thirty
|
||
nights"). The user's calls: 30 nights, phase lengths unchanged, permanent losses, upgrade tiers +
|
||
timed shed stock, and no pop-up status lines.
|
||
|
||
## Wave 1
|
||
|
||
- [x] **#23 Remove the zone banner and the message feed.** [user: pop-ups] *(merged 481f195 —
|
||
PROTOCOL stays 5: only the `"toast"`/`"arrived"` events stopped, which old and new builds both
|
||
ignore; `Interactions`/`UpgradePanel` keep `message` for tests; a partner's refused buy now has no
|
||
feedback beyond the shop rows)*
|
||
Delete `ZoneBanner` and `ToastFeed` (nodes, scripts, `.uid` files), every `toasts.push`, the
|
||
`FarmSim.toasts` export, and the co-op `"toast"`/`"arrived"` events (PROTOCOL bump if the wire
|
||
format changes). Docs follow.
|
||
*Acceptance:* no new FAIL lines; `rg "toasts|ToastFeed|ZoneBanner" game` finds no code;
|
||
coop_smoke passes.
|
||
|
||
- [x] **#24 Nights by count, per-night enemy speed and HP.** Blocks #25, #27. *(merged f5bfdc4 —
|
||
`FarmSim.night_plan_path`/`load_night_plans`; `EnemySystem.night_speed_scale`/`night_hp_scale`/
|
||
`full_hp()`, reset each morning; enemies have no HP bars, so no per-enemy max HP and PROTOCOL
|
||
stays 5; F3 = `CampaignDebug.jump_morning` via `CampaignController.load_state`, no autosave;
|
||
Shift+F3 re-dorms fields but `crops_total` never shrinks)*
|
||
`night_plan_path(n)` for 1..`campaign_nights` (stays 5 here); `NightPlan.enemy_speed_scale` /
|
||
`enemy_hp_scale` applied at nightfall (HP floored, never below the type's own); HP bars use each
|
||
enemy's own full HP (host and replica); debug F3 / Shift+F3 jump the morning by a day.
|
||
*Acceptance:* scaling-on-spawn checks (crow 1→1, thief 3→4, breaker 6→9 at 1.6); default plans
|
||
unchanged; F3 keeps the farm; no new FAIL lines.
|
||
|
||
- [x] **#26 Upgrade tiers and timed shed stock.** *(merged 787b36a — 1,388 materials for
|
||
everything (was ~350); `cost()` defaults to level 1, `next_cost()` is the next level; the host
|
||
sends `bought` on every level-up, PROTOCOL stays 5; follow-up 5fcb879 counts levels on the
|
||
workbench/morning/end screens and stops the day-1 text promising pumpkin bombs)*
|
||
`"levels"`, per-level `"mult"`/`"add"`/`"texts"`, `upgrade_cost_growth` 1.8,
|
||
`upgrade_level_days` [1, 8, 16], shed `"from_day"`; nine stat upgrades get 3 levels (level 1 =
|
||
the user's current values); panel shows levels and arrival days; soak buyer buys levels.
|
||
*Acceptance:* tests for cost growth, day gates, stacked effects, hidden stock, save/retry/co-op
|
||
levels, old saves as level 1; no new FAIL lines.
|
||
|
||
## Wave 2
|
||
|
||
- [x] **#25 Arrivals wait for a free character.** Blocked by #24. *(merged 62f4938 —
|
||
`EnemySystem.can_spawn`, `EnemyCharacters.has_free`/`pool_size`; per-type waiting lists in
|
||
`WaveDirector`, `waited`/`dropped`/`waiting()`; `GameConfig.character_pool` 48/20. The night-5
|
||
breaker check still fails: all 20 breakers stay alive until dawn in the headless test, so the
|
||
21st waits and is dropped — a #28 pool-size question)*
|
||
`EnemySystem.can_spawn`; due ground arrivals wait for a free character without holding back
|
||
other types; dropped and counted at sunrise; `GameConfig.character_pool` (48/20 for now).
|
||
*Acceptance:* full-pool wait, crows unaffected, sunrise drop counted; no new FAIL lines.
|
||
|
||
- [x] **#27 The thirty nights.** Blocked by #24. *(merged ddb3cb0 — night 30 is 73 base /
|
||
511 played (strictly the biggest; siege 25 is 72); make_nights.gd only writes 6..29 and keeps uids
|
||
on `--force`; back-to-back test plays 1–5, 10, 30 and F3-jumps the rest. Every played night caps
|
||
at 20 breakers (the pool) in the scarecrow-less test: 3 planned-vs-arrived FAILs, for #28)*
|
||
Old night 5 → `night_30.tres` (enlarged finale, user's title/hint kept); new night 5 "Lights in
|
||
the sky"; `game/tools/make_nights.gd` writes nights 6–29 from the plan's recipe;
|
||
`campaign_nights = 30`; RULES/README/PLAYTEST updated.
|
||
*Acceptance:* 30 valid plans at played scales; roster intro order; night 30 longest; the
|
||
back-to-back test samples nights and still reaches the farmers' return; no new FAIL lines.
|
||
|
||
## Wave 3
|
||
|
||
- [x] **#28 Thirty-night soak, pool sizes, and a balance report.** Blocked by #23–#27. *(merged 8132567 —
|
||
`docs/thirty-night-soak.md`; `_back_to_back` is an accounting check now (24 FAIL lines, from 25);
|
||
the scripted defense falls 17 times over 3 seeds, and crops and animals are gone by night 8 at 7x;
|
||
pools recommended thief 32 / breaker 40 (render cost unchecked); idle characters stopped animating
|
||
in a follow-up. Open for the user: density vs. permanent losses, the breaker share, the wood economy)*
|
||
`soak_night.gd --mode=cycle --cycles=30` × 3 seeds; headless tick cost at pools 48/20 vs 64/28;
|
||
`docs/thirty-night-soak.md`.
|
||
*Acceptance:* the report exists with per-night numbers; no crash, stuck queue, or invalid plan.
|
||
|
||
# Opening intro — task list (2026-10-07)
|
||
|
||
Narrative, storyboard, lines, decisions, defaults, and file pointers are in `docs/plan.md`
|
||
("Harvest Season — opening intro"). The user's calls: dialogue in the talking-head box, the part
|
||
absorbed into the scarecrow (chest glow), an animated splash-art loading screen, and the intro on
|
||
every New vacation (skippable; not on Continue or when hosting co-op). Commit the uncommitted
|
||
dialogue system before starting: worktrees branch from HEAD.
|
||
|
||
## Wave 1
|
||
|
||
- [x] **#29 Cutscene kit and the loaded-up car.** Blocks #33. *(merged c009260 — `CutsceneKit` (all static): `make_car`/`add_engine`, `load_roof`/`sway_luggage`/`Luggage.nudge`/`settle`, `make_farmer`/`anim_of`/`face`, `route_curve`/`reversed`/`place_on_curve`, `make_camera`/`move_camera`/`follow_camera`/`set_hud`, `make_letterbox`; 4 suitcases, hatbox, farm-pack bags and crates, 3 straps, a mattress off the right side; ending unchanged at 21.2 s)*
|
||
Move the car, farmer, camera, and letterbox pieces out of `FarmersReturn` into `CutsceneKit`
|
||
(the ending behaves the same). Add National Lampoon's roof luggage on `car_002`: farm-pack bags
|
||
and boxes, primitive suitcases, and straps, placed from the car's AABB and swaying on turns. The
|
||
ending's car carries it too.
|
||
*Acceptance:* `_ending` passes unchanged; a luggage check; a screenshot of the car; no new FAIL
|
||
lines.
|
||
|
||
- [x] **#30 Hooks: forced lighting, sounds, the chest glow.** Blocks #33. *(merged 4b86f65 — `DayNight.forced` ("morning"/"night"), static `DayNight.morning()`, `lanterns_dark`; cues `door_creak` (kenney creak1/2), `car_door`, `ufo_hum` (4 s loop, play via `stream_of`), `ufo_whine`, `part_fall`, `life_flash`, `ufo_zoom`, all local-only; `PlayerCharacter.set_core_glow`/`core_glow` on the chest bone — subtle from the game camera, the head hides most of it)*
|
||
`DayNight.forced` ("morning" / "night") and a dark-lantern override. Synth sounds `ufo_hum`,
|
||
`ufo_whine`, `part_fall`, `life_flash`, `ufo_zoom`, and `car_door`, plus a door creak, all
|
||
registered in `FarmAudio`. A subtle blue chest glow on every scarecrow (`set_core_glow`).
|
||
*Acceptance:* override and sound-name checks; a night screenshot of the glow; no new FAIL
|
||
lines.
|
||
|
||
- [x] **#31 Speakers and the three conversations.** Blocks #33. *(merged 9224b65 — speakers farmer / farmers_wife / big_green_alien; Sketch icons "farmer" and "farmers_wife" (+ `Sketch._closed`); `dialogue/intro/` departure 3, flight 5, uh_oh 2 lines; the "thief" head is purple, so both "green" aliens are purple)*
|
||
Speakers `farmer`, `farmers_wife`, and `big_green_alien`; Sketch icons `"farmer"` and
|
||
`"farmers_wife"`. `dialogue/intro/departure.tres`, `flight.tres`, and `uh_oh.tres` with the
|
||
plan's lines (the extra bickering lines are drafts). They're set `pause_game`, `auto_advance`
|
||
1.6, and `enabled = false`.
|
||
*Acceptance:* `test_dialogue` loads them; `load_all(DIR)` is still only `morning_day_2`; box
|
||
screenshots; no new FAIL lines.
|
||
|
||
- [x] **#32 The loading screen.** Blocks #33. *(merged a4d6021 — `LoadingScreen`: `play(seconds)`, `finished`, `fade_out(time)` then `hidden`, `stop()`, `step()`; uses splash-screen.png (1687×761, a little soft at 1080p; `ART` switches it))*
|
||
`LoadingScreen`: `splash-screen.png` cover-scaled with a slow pan and zoom, "Harvest Season" in
|
||
the handwritten font, a sketch progress bar with the `"ufo"` icon wobbling along it, and
|
||
"Loading..." under it. It provides `play(seconds)` and `finished`, and runs while the tree is
|
||
paused.
|
||
*Acceptance:* `finished` fires once; a screenshot; no new FAIL lines.
|
||
|
||
## Wave 2
|
||
|
||
- [x] **#33 The opening intro.** Blocked by #29–#32. *(merged c6daf3d — `OpeningIntro` (`sim.intro`): `start`/`skip`/`clear`/`step`, `running` (has the farm) vs `busy()` (until the end); 69.1 s unskipped (leave 12.2, board 2.2, drive 12.0, card 3.6, flight 13.0, wobble 4.0, drop 2.6, flash 5.4, uh_oh 7.1, escape 2.6, loading 4.1); `Main.new_vacation(intro := true)`, hosting passes false; `FarmAudio.set_scene`/`end_scene`/`stop_cue`; the kit's `alive` is false during it; T-pose held; house_009 has no door node; the scarecrow hops off and the post tips; the UFO backs off to (26, 15, −16) for uh_oh, which is the weakest shot (scarecrow cropped at the left edge behind the box); capture: `godot --path . --windowed --disable-vsync --fixed-fps 30 --script res://game/tools/capture_intro.gd -- --out=/tmp/hs-intro --every=2`)*
|
||
`OpeningIntro` (stages `leave` → `board` → `drive` → `card` → `flight` → `wobble` → `drop` →
|
||
`flash` → `uh_oh` → `escape` → `loading` → `end`): the part, the blue flash, and the UFO at
|
||
scale 8. Hold to skip. It plays only on New vacation (not Continue or hosting). It holds the
|
||
morning sign, the dialogue director, the tutorial, the HUD, and the scarecrow's input until it
|
||
ends, then leaves the farm exactly as `new_campaign()` does. Docs: README, LAYOUT, and
|
||
PLAYTEST.
|
||
*Acceptance:* `test_intro.gd` (order, skip at every stage, to_menu, restart, no leftovers,
|
||
lighting, glow, sign focus); per-stage frames for the user; no new FAIL lines.
|
||
|
||
## Wave 3
|
||
|
||
- [ ] **#34 Timing review with the user.** Blocked by #33.
|
||
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.
|
||
|
||
- [x] **#36 Prompts in touch words.** Blocks #40. *(merged 9f4a189 — `Prompts` (all static, one
|
||
function per prompt; `Prompts.tip(id)` picks `TOUCH_TIPS` on phones, `Tutorial.TEXT` stays the
|
||
desktop table; `move_side()`/`attack_side()` from `TouchSticks.MOVE_ON_RIGHT`, #38 points them at
|
||
`move_on_right`); build-bar slots drop their number key on phones; open for the user: keep the
|
||
build help line, "Hold Use" vs "Hold Gather"; left over: the hotbar's number keys
|
||
(`scarecrow_hud.gd`, #39) and `[N] start the night early` (`phase_hud.gd`, off by default))*
|
||
`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.
|
||
|
||
- [x] **#46 Sprint becomes a speed upgrade (all platforms).** The user's call (2026-10-14).
|
||
*(merged 962c7b0 — `PlayerCharacter.speed_factor()` is `sprint_speed_mult` while
|
||
`has_sprint()` (was `can_sprint()`); run 5.0 → 6.25 m/s with it; `sprint_time`/`sprint_cooldown`
|
||
and the stamina bar gone; left over: README.md:129/149, game/RULES.md:315/395, and the `sprint`
|
||
action in project.godot + `configure_input.gd`, which re-adds it)*
|
||
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.
|