# Harvest Season — first game development plan Derived from `first-game.md` (12 build steps). This document turns each step into ordered implementation tasks with tests and an exit gate. No implementation work has started. Every number below (timings, costs, HP, radii) is a starting default that lives in config and gets tuned in Step 12. ## 0. Starting point Inspected 2026-10-03. | Area | Current state | Role in the game | |---|---|---| | `game/scenes/farm.tscn` (main scene) | Fenced farm about 88 × 122 m (fence x −28…60, z −60…62). 1,527 individual crop plant nodes (x −24…44, z −17…43), 7 hangars, 4 houses, apiaries, hay, roads, trees. Prop collision comes from `build_prop_collision.gd`; crops have none. No animals placed. | Campaign map | | `game/scenes/player.tscn` | Farmer mannequin with camera-relative movement and idle/walk/run. `player_animations.res` also has interact, pick-up, use-item, dig, chop, hammer. No combat. | Becomes the scarecrow | | `FollowCamera` | Perspective follow camera with zoom | Kept | | `prototype/` | Tested combat stack: `PlayerInput` (mouse/gamepad aim), `WeaponController`, `ProjectileSystem` (pooled swept bullets), `HordeSystem` (pooled ground birds, one-target flow field, circle-vs-footprint collision, melee), `RoundController`, HUD, 107 headless tests, benchmarks | Source of combat and enemy systems | | Farm pack (ithappy) | Static, unanimated animals (chicken, pig, sheep, cow, goat, horse), coop, fences, stone fences, hay, firewood, dry wood, barrels, boxes, bags, trucks, tractor | Pen, animals, gathering nodes, supply piles | | KayKit | Rig_Medium and Rig_Large animation sets (general, movement, melee, tools) | Ground-enemy animation | | Audio | **None in the project** (Step 11 added Kenney CC0 packs and synthesized sounds) | Asset gap: needed from Step 4, required by Step 11 | What's missing compared with `first-game.md`: - no scarecrow identity and no combat in the farm scene - navigation only handles a single target (the player) on an authored arena - no flying enemies and no dynamic obstacles - no theft or carrying - no resources or building - no day/night cycle, saving, menus, or audio ## 1. Architecture decisions Lock these in before Step 3. Changing them later is expensive. 1. **Game code goes in `game/`, and `prototype/` stays frozen.** Prototype classes that need no changes (`PlayerInput`, `SpatialGrid`, `PerfStats`, and `ProjectileSystem` if its API is enough) are used directly. Classes that need generalizing (`HordeSystem`, `ArenaNavigation`, `ChaseBehavior`, `RoundController`, `PrototypeHUD`) get forked into `game/scripts/` under new names. That way the prototype's tests and benchmarks remain valid as a regression and performance reference. 2. **One authoritative `FarmState`.** All persistent facts live in one plain data object: - each crop unit, animal, and the supply stock - each structure (type, cell, rotation, HP) - resources, scarecrow HP, night number, upgrades - nightly stats Scene nodes only display this state. With that in place, persistence between nights (Step 7), nightly results, and save/continue (Step 11) are mostly serialization rather than a retrofit. 3. **One `GameConfig` resource** (`game/resources/game_config.tres`), modeled on `PrototypeConfig`. It holds phase lengths, enemy stats, costs, cooldowns, and references to the wave data. 4. **One fixed-order simulation tick**, owned by a `CampaignController` that generalizes `RoundController`. Order: input → scarecrow → structures → navigation slice → enemies → projectiles → theft/recovery → deferred removals → render → outcome check. Scarecrow death is evaluated before any other outcome, which is the prototype's tie policy. 5. **Gameplay is 2-D on the XZ plane.** "Flying" only means the enemy ignores ground occupancy and structures. Altitude is visual only, and flyers' hit proxies stay within reach of shots fired at combat height (1.1 m). 6. **Navigation uses a farm occupancy grid with one flow field per goal set.** Goal sets are crop plots, pen, shed, escape points, and the scarecrow. - Static occupancy is rasterized from the farm's existing collision shapes. - Structures write to a separate dynamic layer. - **Structures are expensive-to-cross cells, not walls.** If a target is fully walled in, the route still exists and ends at the cheapest barrier, which the enemy then attacks. This is how the plan satisfies "avoid layouts that make protected assets permanently unreachable." 7. **Rendering.** Crows keep the prototype's MultiMesh and wing-flap shader. Ground enemies need skeletal animation, so they use a small pool of KayKit character scenes created during loading and driven by enemy state. Nothing is instantiated or freed during play, which matches the rules in `plan.md`. 8. **Existing tooling constraints still apply.** - Close the editor before headless runs or `project.godot` edits. - Tools that re-save scenes must restore UIDs, using `build_prop_collision.gd::_restore_uids`. - Performance numbers come from the editor binary and are labeled "not a release build" (no export templates, by choice). ## 2. Rule decisions Each decision is a config flag or constant, so changing it later is cheap. D1, D2, D3, D10, and the 60 × 60 m map size were confirmed on 2026-10-03; the rest are plan defaults. | # | Topic | `first-game.md` says | Decision | |---|---|---|---| | D1 | Starting the night early | Step 1: **no**. Step 7: "add … an option to start the night early." | **Confirmed:** build the option (Step 7) behind `allow_early_night`, **off by default**. Revisit in Step 12 if the day drags. | | D2 | Early campaign end | "Scarecrow death, all resources stolen" | **Confirmed:** scarecrow at 0 HP is an immediate Game Over. "All resources stolen" means crops, animals, **and** stored supplies are all at zero, not any single type. Until Step 8 adds the other targets, crops alone count. | | D3 | Phase lengths | "not sure" | **Confirmed for now:** morning review is untimed (dismiss to start the day). Day 180 s, dusk 30 s, night 150 s, dawn grace 20 s. That's about 6–7 min per cycle and about 35 min per campaign. | | D4 | Sunrise | Forces enemies to retreat: yes | At sunrise, spawning stops and every enemy heads for its nearest exit. The player can still intercept carriers during the 20 s dawn grace. Any that escape count as losses, and remaining enemies are then removed. | | D5 | Stopping a thief | "Stopping the enemy drops the crop" | Killing a carrier drops its loot. Fear also forces a drop, so fear helps against theft and isn't only crowd control. Flag: `fear_drops_loot`. | | D6 | Recovery | "The player can recover it" | **Crops and supplies:** touch to recover; they go straight home. **Animals:** touch one and it follows the scarecrow (max 3) until it's back in the pen. Another thief can grab dropped loot again. Loot still on the ground when dawn ends returns automatically. | | D7 | Scarecrow health | Game Over at 0; "a way to patch up" | HP **carries over between nights**. Patching costs straw, takes a 2 s channel, is cancelled by damage, and is allowed in any phase. | | D8 | What's allowed at night | "Daytime is safe for gathering, building, and repairs" | Gathering and new construction: day and dusk only. Repairs, dismantling, and patching: any phase. Night repairs are the core test of Night 3. | | D9 | Retry after failure | "Clear failure screen and retry behavior" | Retry restarts from the morning of the failed night (the autosave point). New Vacation restarts the whole campaign. | | D10 | Ground enemy before Step 9 | Step 6 needs ground enemies to test fences, but the roster arrives in Step 9 | **Confirmed:** add ground enemies wherever a step needs them. Step 3's thief uses ground navigation from the start, which tests the riskiest system early. Step 9 turns it into the flying crow and adds the ground thief and fence breaker as separate types. | ## 3. Milestones | Milestone | After step | Playable result | |---|---|---| | M0 Rules and map | 2 | Walkable farm with readable areas; rules written down | | M1 Theft core | 4 | A thief steals crops; the scarecrow shoots, uses fear, and patches up; Game Over works | | M2 Preparation | 6 | Gather, then build; defenses change attack outcomes | | **M3 First loop** (first major milestone) | 7 | One full day/night cycle into the next, with state preserved. **Iterate here before Step 8.** | | M4 Content | 9 | Three targets, three enemies, mixed attacks | | M5 Campaign | 10 | Five consecutive nights with upgrades | | M6 Version 1 | 11–12 | Menus, save/continue, ending, settings, audio, balance | ## 4. Stepped plan Each step lists ordered tasks, tests, and an exit gate. The gate is `first-game.md`'s "Complete when" plus checks you can measure. Don't start a step until the previous gate passes. Headless tests go in `game/tests/` and follow the runner pattern in `prototype/tests/run_tests.gd`. ### Step 1 — Rules of the vacation **Status: done (2026-10-03).** All five deliverables are in place, and 84 headless checks pass. **Goal:** a written, testable rule set, plus the skeleton that enforces it. 1.1 Write `game/RULES.md` from section 2 (D1–D10). It covers: - the phases and their order - the theft lifecycle: targeted → being stolen → carried → dropped, recovered, or lost - how losses persist - win and failure conditions, and the tie policy 1.2 Create `GameConfig` (`game/scripts/game_config.gd` and `game/resources/game_config.tres`). It holds phase lengths, campaign length (5 nights), and the D flags. 1.3 Create `FarmState` (`game/scripts/farm_state.gd`) with typed fields for asset counts, scarecrow HP, night index, phase, and stats. Add `to_dict()` / `from_dict()` now. They're cheap to write at this point, and Step 11 depends on them. 1.4 Create the `CampaignController` phase state machine: MORNING → DAY → DUSK → NIGHT → DAWN, then back to MORNING or on to FARMERS_RETURN. Any phase can go to GAME_OVER. Transitions are signals. There's no content yet, so drive it with debug keys and time scale. 1.5 Add an outcome evaluator: `check_outcome(state)` returns `CONTINUE`, `GAME_OVER_SCARECROW`, `GAME_OVER_STRIPPED`, or `VACATION_COMPLETE`. **Tests:** - phase order and timers - completing five nights - each failure condition, and the tie policy - no early night while the flag is off **Exit gate:** victory, failure, theft, recovery, and phase transitions each have a written rule, and the state-machine and outcome tests pass headless. ### Step 2 — Organize the map into a playable farm **Status: done (2026-10-03).** See `game/LAYOUT.md`. Deviations from the tasks below: - There are 30 crop units, not about 40: one row segment per unit (`start_crops` = 30). - Zones are rectangles looked up by position, not `Area3D`s. - There are 6 gaps; the driveway is the sixth. **Goal:** every area has a purpose, and travel times are measured. 2.1 Define the playable map: **60 × 60 m (confirmed)**. - The current fenced farm is about 88 × 122 m. At the scarecrow's 5 m/s, its long axis takes about 24 s to cross. The 60 × 60 m map takes 12 s along an edge and about 17 s corner to corner. - The map's edge is the farm perimeter: entry and escape points sit on it. Everything outside is out-of-bounds scenery (enemies spawn just beyond it). - Target: neighboring key areas 4–6 s apart, and no key area more than about 12 s from any other. 2.2 Add a `Zones/` node to `farm.tscn`, with an `Area3D` and label metadata for each zone: - CropField, AnimalPen, SupplyShed, WorkArea - Gathering (Wood, Scrap, Straw) - Perimeter markers: entry points, escape points, and separate crow approach directions 2.3 Crop field. - Group plants into about 6 plots of about 6–8 **stealable units** each (about 40 units in total). - Each unit is a visual cluster of plants with one ID in `FarmState`. - The current field is 68 × 60 m on its own, so it has to shrink to fit the 60 × 60 m map alongside the other areas. - Measure what 1,527 separate MeshInstance nodes cost. Convert plots to MultiMesh only if the cost matters. 2.4 Animal pen: a fence ring with a gate opening and a coop near the core, using farm-pack fences and the static animals. This is placement only; behavior comes in Step 8. 2.5 Supply shed: pick a hangar near the core and add visible stock piles (boxes, bags, barrels). Later these piles will scale with the stored amounts. 2.6 Work area: table and stall props next to the shed, for repairs and upgrades. 2.7 Gathering areas, each node with a marker (mechanics come in Step 5): - wood: dry wood and firewood near the tree line - scrap: junk around the truck and tractor - straw: hay bales 2.8 Perimeter: fence the 60 × 60 m boundary (reusing or moving the existing perimeter fence) and leave 4–6 gaps as ground entry and escape points. Mark them visibly (lanterns or signs) so alerts can refer to them later. 2.9 Navigation. - Generate collision for any new prefab types with `build_prop_collision.gd` (editor closed). - Build the farm navigation grid in a forked `FarmNavigation` by rasterizing the static collision shapes into occupancy at 0.5 m cells. For 60 × 60 m that's 14,400 cells (plus a small margin outside the perimeter for spawns). Measure it, and fall back to 1 m cells if rebuilds cost too much. - Validate that every entry point reaches every target zone, and every target reaches an exit. 2.10 Readability. - Show the zone name on the HUD when the player enters a zone. - Give each zone distinct props or ground tint. - Keep the current follow-camera framing, and check that every area is readable at the default zoom. 2.11 Record a zone-to-zone travel-time table (at run speed) in `game/LAYOUT.md`. **Tests:** - navigation reachability: every entry → every target → an exit - zone lookup by position **Exit gate:** - The player can walk between all zones and recognize each one. - Travel times meet the 2.1 targets. - The navigation reachability tests pass. ### Step 3 — Make one farm asset stealable **Status: done (2026-10-03).** Deviations from the tasks below: - All 30 crop units are stealable, not a single one, since the mechanism is the same. - The flow fields are built once at load. Sliced rebuilds move to Step 6, the first time occupancy changes. - The sunrise retreat and the end-of-dawn rules (D4, D6) are already in, in their simple form. - 3.7 is the full port of the prototype's aim and gun (Step 4.2), at a 1.8 m combat height. **Goal:** the full theft-and-recovery loop with one crop plot and one enemy, during normal play. 3.1 Fork `HordeSystem` into `EnemySystem`. - Keep pooled dense slots, generation counters, swap-removal, and deferred kills. - Add per-slot `type`, `behavior_state`, `target_id`, `carry_id`, and `state_timer`. 3.2 Replace `ChaseBehavior` with a `ThiefBehavior` policy. | State | What the thief does | |---|---| | ENTER | Comes in from an entry point | | SEEK | Follows the flow field to the target plot | | STEAL | Runs a timer (`steal_time`, 2.5 s) | | CARRY | Follows the flow field to the nearest escape point at 0.7× speed | | ESCAPED | Reached the exit with the loot | Taking damage during STEAL resets the timer. 3.3 Multi-goal flow fields in `FarmNavigation`. - Add a crop-plot field and an escape field. - Goals are static, so build each field once and rebuild only when occupancy changes. - Keep the prototype's sliced (spread-over-ticks) rebuild. 3.4 `LootSystem`. - A carried unit is attached to its carrier. - When the carrier dies, the unit becomes a ground pickup at that spot. - Touching the pickup returns it to its plot. - If the carrier reaches an exit, the unit is marked LOST in `FarmState`. - Recoveries and losses go into the night stats. 3.5 Spawner: a debug command that spawns one thief at an entry point. Real waves come in Step 7. 3.6 Feedback for each state: | State | Feedback | |---|---| | Targeted | Marker over the crop unit, plus an arrow at the screen edge when it's off screen | | Being stolen | Progress ring that fills over the steal time | | Carried | The crop shown above the enemy, outlined | | Dropped | Pickup glow and bob | | Recovered / Lost | Toast text, crop-count update, placeholder sound hook | 3.7 Temporary combat: put the prototype weapon on the farmer so the thief can be stopped. Step 4 replaces this properly. **Tests:** - the steal timer completes, and resets on damage - a carrier's death drops its loot exactly once - a pickup returns the unit; an escape marks it lost - after slot reuse, a stale handle can't drop or recover twice - counts in `FarmState` stay consistent **Exit gate:** during normal play, the whole loop works (targeted, stolen, carried, then dropped, recovered, or lost) and every state is easy to read on screen. ### Step 4 — The scarecrow's defensive tools **Status: done (2026-10-03), apart from the look.** Notes against the tasks below: - **4.1 / 4.2 visuals deferred by request:** the reskin and the seed-shooter look come later. Aiming, the gun, and shooting were already ported in Step 3. - **Fear input:** fear counts a press from its input event or from the action turning pressed since the last tick, so a tap between two ticks still registers. - **Exit gate:** the gate is a human playtest. Supporting evidence from `game/tools/soak_night.gd` (four 150 s nights with a scripted scarecrow): | Scarecrow | Thieves at once | Crops lost | Crops recovered | Fear used | |---|---|---|---|---| | Idle | 1 | 20 | 0 | 0 | | Guarding | 1 | 0 | 0 | 0 | | Guarding | 2 | 8 | 7 | 9 | | Guarding | 3 | 12 | 11 | 7 | Thieves only fight on contact, so across these runs the scarecrow took one hit. Its health matters once fence breakers arrive (Step 9). **Goal:** protecting crops with the scarecrow alone is fun. 4.1 Scarecrow identity and controls. - Reskin `player.tscn` with placeholder art over the mannequin: straw hat, sack-cloth tint, and stick arms built from primitives. - Combine `PlayerCharacter` movement with the prototype's `PlayerInput` aiming. - Mouse aim projects onto the combat-height plane through the perspective `FollowCamera`. Gamepad aim uses the right stick. 4.2 One dependable weapon. - Port `WeaponController` and `ProjectileSystem` to the farm: the bullet pool, plus swept hits against farm collision and enemies. - Reskin it as something that fits the setting, such as a corn or seed shooter. - Tune its damage against enemy HP. 4.3 Health. - `GameConfig.scarecrow_max_hp`, starting at 10. - HUD health bar, hit flash and screen tint (reusing `hit_flash.gdshader`). - Brief invulnerability after a hit (the prototype's rule). 4.4 Enemy aggression rule. Thieves attack the scarecrow only when it's within reach and blocking or fighting them. This is opportunistic melee with the prototype's line-of-sight check. Health then matters without thieves turning into chasers. 4.5 Fear ability. - Radial burst, 6 m radius, 12 s cooldown. - Affected enemies FLEE directly away for 2 s. - Carriers drop their loot (D5), and enemies mid-steal reset their timers. - Ring visual effect and a sound hook. 4.6 Cooldown feedback: a HUD icon with a radial fill and a flash when ready, plus a small ring under the scarecrow while fear is ready. 4.7 Patch up. - Hold Patch for a 2 s channel (the `Use_Item` clip) to restore 3 HP. - Damage cancels it. - It's free until Step 5 adds the straw cost. 4.8 Defeat. - At 0 HP, play `Death_A` (add it to the `CLIPS` table in `build_player_animations.gd`). - Show a placeholder Game Over overlay with Retry. Step 11 builds the full screen. - Retry resets `FarmState` to the morning snapshot. 4.9 Input actions. Add `interact`, `fear`, `patch`, `build_mode`, `rotate_*`, `cancel`, and `pause` through a game configure tool (editor closed). Every action works on keyboard/mouse and gamepad. **Tests:** - fear affects only enemies in radius, and forces drops - the cooldown blocks reuse - damage cancels patching - death triggers Game Over ahead of any other outcome - invulnerability rules **Exit gate:** in a 10-minute playtest against repeating thief waves on the crop field, the player uses both shooting (to intercept) and fear (for breathing room), and losing feels fair. ### Step 5 — Gathering and a small resource economy **Status: done (2026-10-03).** Notes against the tasks below: - **Gather points:** 4 per material, made of the zones' existing props. Charges come back fully overnight, at the end of the dawn grace, so the morning retry snapshot includes the regrowth. - **Full yields only:** a gather needs room for its whole yield, so no charge is half wasted. - **Focus:** when two points are in reach, a point with charges left wins over a used-up one. - **5.3 measured** (`soak_night.gd --mode=gather`): everything (18 wood, 18 scrap, 20 straw) is gathered and stored in about 106 s of the 180 s day, with 4 trips. Step 12 checks whether that covers a bad night's repairs. - **Exit gate:** gather → store → spend is covered by `test_economy`. The spends are patching (straw) and Straw Stuffing (+2 max HP), and both help against the next attack. The fuller "spending decision" arrives with building in Step 6. **Goal:** the player gathers three materials and spends them on a useful preparation choice. 5.1 `ResourceStore` in `FarmState`: wood, scrap, and straw. Storage uses a pouch plus the shed: - Gathered materials go into the scarecrow's pouch (capacity 15). - The pouch empties into storage automatically when the scarecrow enters the SupplyShed zone. - Costs are paid from the shed and pouch combined. - Only shed stock can be stolen (Step 8). 5.2 `GatherNode` scene. - Fields: type, charges, yield per action. - Hold interact for 1.5 s to gather, using the existing `Chopping` and `PickUp` clips. - The node looks depleted when its charges run out. - Place 3–5 nodes per material. 5.3 Replenishment: nodes restore charges every morning (`node_regen_per_day`). Size it so one full day of gathering covers the repairs after a bad night; Step 12 checks this. 5.4 Costs table in `GameConfig`: patching (2 straw), plus placeholders for the Step 6 buildables and repairs. 5.5 First spend: a straw patch, plus one scarecrow improvement at the WorkArea (for example, Straw Stuffing for +2 max HP). This proves the gather-to-spend loop before construction exists. 5.6 HUD: resource counters (shed and pouch), "+3 Wood" popups, and "Not enough straw" feedback. 5.7 Daytime-only gathering (D8): nodes are inactive at night and show it. No processing chains at this stage. **Tests:** - deposit math - cost checks when paying from both pouch and shed - regeneration each morning - gathering blocked at night **Exit gate:** a player gathers, deposits, and makes a spending decision that helps against the next attack. ### Step 6 — Construction and repairs **Status: done (2026-10-03).** Notes against the tasks below: - **Instant building, by day:** no build channel. Dismantling is cancel (RMB / B) over a structure in build mode, refunding 50% into the shed. - **Gates:** they swing open as the scarecrow nears and have no collision for it. For enemies they are barrier cells. - **Crop route targets the rows:** the thieves' route now targets the crop rows rather than the whole crop-field zone, so a fence ring really encloses the crops. - **Flow fields:** Dial's algorithm with 256 circular buckets, needed because barrier costs go far beyond the old 8-bucket queue. Slices of 2,000 cells: about 40 ms in total over 18 ticks per rebuild, at most 2.5 ms in one tick. There are 2 goal fields today; Step 8 adds the pen and the shed. - **Exit gate:** `test_structures` A/B night (2 thieves at a time, scarecrow away): | Layout | Crops lost | |---|---| | Open field | 9 | | Fence ring | 7 (3 fences broken) | | Ring + 4 automated defenses | 3 | - **Saves (for Step 11):** JSON must use full float precision (`JSON.stringify(d, "", true, true)`). - **Flying rule:** written into `RULES.md` now, enforced from Step 9. **Goal:** the player's defense layout visibly changes how an attack turns out. 6.1 `BuildMode`, working with both mouse and gamepad: - toggle it on, then pick a buildable from a hotbar or radial menu - a ghost preview snaps to a 0.5 m grid; fences place in 2 m segments - rotate in 90° or 45° steps - green or red validity tint, with the reason shown: blocked, not enough resources, forbidden zone, or night - confirm or cancel 6.2 Placement rules. Structures can't go: - on crop units - in the shed doorway - on entry or escape points - overlapping the scarecrow or enemies - outside the farm boundary 6.3 `StructureSystem`. - Structures are stored in `FarmState` (type, cell, rotation, HP); scene nodes only display them. - Placing or removing one writes the navigation dynamic layer and queues a sliced flow-field rebuild. - Measure rebuild cost with about 5 goal fields on the farm grid. If it's over budget, lower the grid resolution or limit rebuilds to the affected region. 6.4 Buildables, added in this order. Each one is playable before the next is added. | Order | Buildable | Cost | HP / uses | Effect | |---|---|---|---|---| | 1 | Fence | 2 wood | 20 HP | Blocks ground movement | | 2 | Gate | 4 wood + 1 scrap | 30 HP | Lets the scarecrow through (and returning animals, from Step 8). Enemies treat it as a barrier. Uses a separate physics layer for enemy blocking. | | 3 | Slowing trap | 3 scrap + 1 wood | 10 triggers | Ground enemies crossing it move at half speed for 2 s | | 4 | Automated defense | 6 scrap + 2 wood + 2 straw | 25 HP | Fires from the shared bullet pool at enemies within 7 m, 1 shot/s, including flyers | 6.5 Blocked routes (architecture decision 6). Structures are high-cost cells in the ground flow field. An enemy whose route reaches a structure attacks it until it breaks, then carries on. No layout can make a target unreachable without the enemies responding. 6.6 Flying rule, written down now and active from Step 9: fences, gates, and traps don't affect flyers; the automated defense and the scarecrow do. 6.7 Damage, repair, and dismantling. - Damaged structures show an HP bar plus a damage tint and wobble. - A destroyed structure leaves debris and raises a "Breach" event. - Repair: hold interact. Cost scales with missing HP. Allowed in any phase. - Dismantle: refunds 50%. 6.8 HUD: costs on the hotbar, and a structure count. **Tests:** - placement validation cases - occupancy and the flow field update after placing or removing a structure - a walled-in target still gets a route, which ends at a barrier, and the enemy attacks it - the gate lets only the scarecrow through - traps slow ground enemies but not flyers - repair and dismantle math - A/B outcome test (headless, scripted): with the same seed and wave, a fenced and trapped crop field loses clearly fewer crops than an undefended one. Record the numbers. **Exit gate:** changing the defenses visibly, and measurably, changes the outcome of the same attack. ### Step 7 — Connect one complete day and night (milestone M3) **Status: done (2026-10-03).** Notes against the tasks below: - **Night plans are data:** `NightPlan` resources in `game/resources/nights/`, with groups of {time, count, spacing, gap, target}. Night 1, "Crop thieves", sends 9 thieves through 4 gaps. Every night uses it until Step 10. - **Rim light:** done as a faint night glow in the thief shader. The lighting also uses the Environment's brightness and saturation adjustments, which leave the HUD alone. - **Dusk:** a banner, the HUD line, and pulsing rings with "Thieves tonight" labels and red edge arrows at tonight's gaps, which stay up for the first 12 s of the night. The sound hook waits for the audio pass in Step 12. - **Debug readout:** `CampaignDebug` is hidden behind F1, and Enter no longer begins the day (the review's button does). - **7.8:** played as scripted cycles (`soak_night.gd --mode=cycle`), 3–4 cycles per variant, plus `test_cycle`. Results and tuning notes are in `game/PLAYTEST.md`. With the scarecrow guarding or a few automated defenses, night 1 loses nothing; undefended it loses 9 a night; materials pile up. The human playtest checklist is in the same file. **Goal:** one complete cycle that carries over into the next. 7.1 Hook the Step 1 state machine up to real content: phase timers from `GameConfig`, and per-phase gathering and building permissions (D8). 7.2 Lighting. - Tween the existing `Sun` angle and color, the sky, and ambient light (`WorldEnvironment`) for each phase. - Keep night readable: moonlight, a scarecrow lantern, and rim light on enemies. 7.3 `WaveDirector`. - Spawns a small scripted night attack from data: entry point, time offset, count, target. - Stops at sunrise and applies the D4 retreat and dawn grace window. 7.4 Morning review panel: last night's stolen, recovered, and lost assets; damaged structures (also highlighted in the world); resources. Dismissing it starts the day. 7.5 Dusk: a banner, a sound hook, and hints at tonight's entry points. Final preparation is still allowed. 7.6 HUD: a phase indicator (sun/moon dial with time remaining) and "Night 1/5". The start-night- early button exists but is controlled by D1. 7.7 Persistence: `FarmState` carries everything over. Take a snapshot each MORNING as the retry point (D9). 7.8 Harden the loop before adding content, as `first-game.md` asks. - Play at least 3 cycles. - Fix pacing, readability, and any bugs in carrying state over. - Record what to tune in `game/PLAYTEST.md` before starting Step 8. **Tests:** - An accelerated full cycle (time scale plus scripted input) confirms that structures, resources, losses, and scarecrow HP all survive into the next morning. - Retry restores the snapshot exactly. - The dawn retreat removes every enemy and records loot that escaped. **Exit gate:** a player finishes one cycle and starts the next with structures, resources, and losses preserved. ### Step 8 — All three farm targets **Status: done (2026-10-03), apart from the human playtest for the exit gate.** Notes against the tasks below: - **8.1:** `LootSystem` keeps every stealable item in one id space: crop units, then animals, then 6 sacks for supply bundles. A bundle is up to `supply_bundle` (5) units of the material the shed holds most of, taken when the sack is filled, so it never exceeds the stock. - **8.2:** - The pen's 8 animals (4 chickens, 2 pigs, 2 sheep) were already placed in Step 2. - **The breach is the pen's gate:** its swung-open panel prop is gone, and a normal gate structure stands in the opening from the start (`GameConfig.start_structures`). Animal thieves have to break it. - While the pen is open, one animal wanders out every 10 s, at night only. - Loose animals head for the nearest gap. - Followers walk the scarecrow's trail, which takes them through gates. Back in the pen they stay calm for 30 s. - **8.3:** sacks drop on death or fear; touching one puts its contents back in the shed. `ShedStock` grows and shrinks piles of logs, crates, and hay. A pile's props all collide at load, so navigation never changes; hidden ones stop colliding for the scarecrow. - **8.4:** - Plan groups have `target` (crops, animals, supplies, any); a thief whose category is empty falls back by `target_weights`. - Each shed pile has its own flow field, because a single shed field led thieves to the nearest pile, where they couldn't see the one they wanted. - Six fields now rebuild in about 120 ms over 49 ticks, at most 2.8 ms in one tick. - **8.5:** - `AssetHud` (top center) flashes red or green. - Carried loot and animals are outlined in their category's color (crops gold, animals pink, supplies blue), and badges are filled in it. - Edge arrows are ringed in it, and the dusk warning and beacons name each gap's target. - Toasts and the morning review cover every category; the review and a toast say when the pen is open. - **8.6:** the D2 open item is decided: spent supplies don't strip the farm, only a shed emptied by thieves does (`FarmState.shed_raided`). `FarmState` is now version 2, with per-animal lost ids. - **Night 1's plan** now threatens all three: 11 thieves. At 60 s an animal thief and a crop thief arrive on opposite sides of the farm. - **Exit gate:** scripted cycles are in `game/PLAYTEST.md`. Whether two simultaneous threats force a choice needs the human playtest: the scripted guard aims perfectly and loses nothing. **Goal:** the player has to choose between valuable targets. 8.1 Split loot into categories: CROP (one unit), ANIMAL (one entity), SUPPLY (a bundle of K materials taken from shed stock). 8.2 Animals. - 6–8 animals in the pen, with a simple wander and a procedural waddle (the meshes are static). - There are two ways to lose one: - A thief captures it and carries it off, visibly. - A pen breach lets animals wander out. Any that cross the farm boundary are lost. - Rescue: touch an animal and it follows the scarecrow (max 3). It counts as returned once it's inside the pen. Gates let following animals through. 8.3 Supplies. - A thief takes a bundle from the shed (for example, 5 units of whichever material is most stocked), shown as a sack. - It drops on the thief's death; touching it returns it to the shed. - The shed's stock piles visibly scale with the amount stored. 8.4 Generalized thief targeting: each spawn gets a target category or a weighted preference. Add flow fields for the pen and shed goals. 8.5 HUD. - Remaining counts, for example "Crops 38/40 · Animals 7/8 · Supplies 112", flashing when they change. - A distinct outline color per category on carried loot and captured animals. 8.6 Extend the D2 outcome rule to all three categories. **Tests:** - stealing, dropping, recovering, and losing work for every category - a breach releases animals - following animals pass through gates - a supply bundle can never exceed the stock - the D2 outcome with all three categories **Exit gate:** in playtests, threats to two targets at the same time force the player to choose. ### Step 9 — The first enemy roster **Status: done (2026-10-03), apart from the human playtest for the exit gate.** Notes against the tasks below: - **9.1:** `GameConfig.enemy_types` holds one row per type: speed, acceleration, HP, flying, targets, steal time, carry speed, structure damage, damage and hit interval, aggression, hit radius, and aggro range. The old single-thief settings are gone. - **9.2:** - **Crops are the crows' alone.** Ground thieves take animals and supplies only, so a fence around the crops no longer does anything. - **Crows** steer straight with separation from other crows, cruise at 3.2 m (visual only), and land on the crop. They arrive from and leave toward the crow approach markers. - **Ground enemies** are drawn by a fixed pool of KayKit characters: 14 thieves and 6 breakers. A corpse is taken over at once if the pool is full. - **Fence breakers** target barriers within 6 m of the crop field, the pen, or the shed, through a breaker flow field. "Fights the scarecrow" became: turns on it within 4 m or when shot, and hunts it along a field toward it (rebuilt in slices only while something hunts) once nothing is left to break. - **9.3:** `AlertManager` replaces the Step 3–8 threat arrows. - Kinds in priority order: escape, breach, theft, loose or dropped, incoming. - Alerts are grouped by kind, type, loot, and zone. - Escapes escalate by distance to the exit (the escape field on foot, the fence for crows). - At most 5 show. Labels stack and keep clear of the HUD panels. - **9.4:** six debug scenarios in `game/resources/scenarios/`, cycled with F2: each type alone, two pairs, and all three. T / G / H spawn one of each. - **Night 1** (until Step 10): 10 crows, 4 thieves, and a fence breaker. - **Exit gate:** scripted cycles and A/B nights are in `game/PLAYTEST.md`. Whether each enemy's best response feels different to people is the human playtest's question. **Goal:** three enemies that each need a different response. 9.1 Enemy type table in `GameConfig`: speed, HP, flying, targets, steal time, carry speed, structure damage, aggression. 9.2 The three enemies. | Enemy | Built from | HP | Targets | Behavior | |---|---|---|---|---| | Crow | The Step 3 thief, now flying. MultiMesh and wing-flap shader. | 1 hit | Crops only | Fast. Ignores ground occupancy and structures. Steers in a straight line with separation. Cruises at a visual altitude and lands on the crop. | | Ground thief | KayKit Rig_Medium character, from the pre-created pool | 3 | Supplies or animals | Prefers routing around barriers (low weight on attacking structures). Slowed by traps. | | Fence breaker | KayKit Rig_Large character with a club built from primitives | 6 | Structures guarding valuables | Slow, steals nothing, heavy structure damage. After a breach it moves to the next barrier or fights the scarecrow. | 9.3 Alert manager. - Alerts for theft, breaches, and escaping enemies, with arrows at the screen edge for off-screen events. - Priority ordering and a cap on how many indicators show at once. - Grouped alerts, for example "3 crows — Crop field". - Escape alerts escalate as a carrier nears an exit. 9.4 Introduce enemies one at a time: a debug scenario for each type, then pairs, then all three. **Tests:** - crows ignore fences and traps, but not turrets - the ground thief goes only for its own categories - the fence breaker targets structures and opens gaps that other ground enemies use - the alert cap and grouping **Exit gate:** each enemy has a different best response, and mixed attacks create real priorities. ### Step 10 — The five-night progression **Status: done (2026-10-03), apart from the human playtest for the exit gate.** Notes against the tasks below: - **10.1:** the existing `NightPlan` resource is the NightDefinition. It gained `dusk_hint` and a `night_length` override; the last night uses 180 s. Target bias is the group's `target` (or "any", by `target_weights`). `NightPlan.problems()` validates a plan against the farm. - **10.2:** five plans, `night_1..5.tres`, one main test each, as in the table. Night 5's three waves are spelled out in its dusk hint, and every group appears in the dusk warning, so nothing arrives unannounced. - **10.3:** - **Eight upgrades** in four tracks: - Weapon: rapid fire, heavy seeds. - Fear: wide, quick. - Scarecrow: straw stuffing. - Defenses: reinforced fences, long-range defenses, sticky tar. - **Buying:** once each, from a menu at the workbench (`UpgradePanel`). - **Prices:** priced so that one run can't buy them all. Measured: the scripted scarecrow affords 6 of 8 alongside its build plan, held back by scrap. - **10.4:** `test_nights` plays all five nights back to back. It checks each night's arrivals against its plan, that each morning is its night's snapshot, and that the farm carries over to the farmers' return. - **Exit gate:** scripted five-night runs are in `game/PLAYTEST.md`. Whether the decisions between nights feel useful is the human playtest's question. **Goal:** five distinct nights played back to back, with preparation choices between them. 10.1 `NightDefinition` resources (`game/resources/nights/night_1..5.tres`): spawn groups (type, count, entry point, time offset, target bias), dusk hint text, and an optional duration override. 10.2 Night design, one main test per night: | Night | Main test | Content | |---|---|---| | 1 | Learn to intercept crop thieves | Crows only, at the crop field | | 2 | Protect a second target | Crows plus ground thieves at the shed or pen | | 3 | Respond to damage and breaches | Fence breakers plus thieves | | 4 | Divide attention | Coordinated attacks from opposite sides at once | | 5 | Test the full farm layout | All types in staged waves, announced at dusk, with no unannounced difficulty spike | 10.3 Upgrades. - 6–8 upgrades across tracks: - reinforced fences (+50% HP) - weapon damage or fire rate - fear radius (+30%) or cooldown (−20%) - max HP - turret range - trap duration - Bought with resources at the WorkArea during the day. - They compete with building for the same resources, so one run can't buy them all. 10.4 Verify carryover across the full chain of nights, with a morning snapshot for each night. **Tests:** - all five nights complete in an accelerated scripted run with no errors - upgrades apply and persist - wave data validation: entry points exist and enemy types are valid **Exit gate:** all five nights play consecutively, with useful preparation decisions between them. ### Step 11 — The complete campaign experience **Status: done (2026-10-03), apart from the hallway test for the exit gate.** Notes against the tasks below: - **11.1:** `game/scenes/main.tscn` is the main scene: the farm under the menus. The title screen shows over the paused farm. Pause stops the whole tree, so the tick freezes. Labels: "Save & quit to menu" and "Quit the game", because the only save point is the morning (11.2). - **11.2:** `SaveGame` writes the morning to `user://savegame.json`. FarmState is now version 3: the nightly record counts more (11.4), and `SaveGame.migrate` upgrades version 2. There is no mid-day save: quitting keeps the morning, and the pause menu says so. - **11.3:** `Tutorial`: nine contextual tips on night 1. Hide them with a new `hide_tips` action (Backspace / Back) or in Settings. - **11.4:** the results are the top half of the morning screen rather than a screen of their own: one click from dawn to the day. Every purchase now goes through `FarmState.pay`, so spending is counted. - **11.5:** `EndPanel`'s failure mode. - **11.6:** `FarmersReturn`. Deviation: the existing trucks are semi-trailers parked out of bounds, so the farmers come home in the ithappy station wagon (`car_002`, roof rack and all). It drives in at GapDriveway and parks east of the house; the farmers walk to the north porch. Tinted mannequins, straw hats from primitives, `Waving` and the new `Cheering` clip. - **11.7:** `Assessment`: the weights and tiers are in `GameConfig`. Supplies are scored by theft, since spending them is fine. - **11.8:** `GameSettings` / `SettingsMenu`. There's no mouse sensitivity because mouse aim is the cursor itself. Instead there are move and aim stick dead zones, and a tips toggle. - **11.9:** Kenney CC0 packs (impact, interface, RPG, UI, digital, music jingles), approved by the user. Ambience, crows, and the car are synthesized by `game/tools/synth_audio.gd`. Animal sounds and music tracks aren't covered: there's nothing suitable in the packs, and music was optional. `FarmAudio` routes everything through the Master, Music, SFX, and Ambience buses. - **UI theme:** `UiTheme` is the project's default theme (asset table: UI theme). There's no sourced font yet. - **Tests:** `test_save` (save/load field for field, bad and old versions, autosave, retry, settings) and `test_flow` (the whole game through `main.tscn`: menus, pause, settings, restart, save & quit, continue, failure, the ending, tips, sounds). - **Exit gate:** the hallway test is open (checklist in `game/PLAYTEST.md`). The tasks as planned: **Goal:** a new player can start, understand the game, quit and resume, and reach an ending without help. 11.1 Menus. - Main menu: New Vacation, Continue, Settings, Quit. - Pause menu: Resume, Restart Night, Settings, Save & Quit, Quit. - Pausing freezes the simulation tick. 11.2 Save and continue. - Write `FarmState.to_dict()` to `user://savegame.json` with a schema version. - Autosave every MORNING; Continue resumes at that morning. - Handle missing, corrupt, and old-version saves gracefully. 11.3 Intro guidance: short, skippable contextual prompts on Day 1 (move, gather, build a fence, use fear, recover loot), plus hints on Night 1. 11.4 Nightly results screen, shown between dawn and morning: losses, recoveries, and damage per category; enemies defeated; resources gathered and spent. 11.5 Failure screen: the cause (scarecrow destroyed, or farm stripped bare), the night reached, stats, Retry Night (D9), and Main Menu. 11.6 Farmers' return. After Night 5's dawn, the farmers' truck (the existing truck prop) drives in, the farmers (tinted mannequins) walk to the house, and the camera follows. 11.7 Final assessment: the percentage preserved per category, a weighted score, rating tiers, and a stats summary. 11.8 Settings, saved to `user://settings.cfg`: - Audio: master, music, and SFX buses. - Controls: mouse aim sensitivity, gamepad dead zone, and a bindings display (remapping is optional). - Display: fullscreen or windowed, VSync, resolution scale. 11.9 Audio. - Source a CC0 sound set; there's none in the project yet. - Cover gathering, building, hits, fear, theft/breach/escape alerts, dusk and dawn stingers, and day and night ambience. - Route everything through the audio buses. **Tests:** - saving then loading reproduces the original `FarmState`, field for field - version-mismatch handling - settings persistence and menu flow - retry restores the morning state **Exit gate:** in a hallway test, an unfamiliar player starts the game, understands it, quits and resumes, and reaches an ending without help. ### After Step 11 — requests from the user (2026-10-03) - **No arrival markers:** the dusk rings, their labels, and the edge arrows toward tonight's gaps are gone. The phase HUD still lists where enemies come from. - **Five times the enemies, more often:** `GameConfig.wave_count_scale` 5 and `wave_spacing_scale` 0.4 scale every plan's groups. `enemy_capacity` is 160, and the character pool is 48 thieves and 20 breakers. The 30-night campaign is still to come. - **Gathering outside the fence:** the scarecrow roams out to the old farm's outer fences. Four outside areas yield 3 per charge (`game/LAYOUT.md`). - **Co-op for two** over GD-Sync: LAN, LAN by address, or online with API keys; tags, a partner panel and arrow, voice chat, and the fall rule (out until morning; both down is Game Over). This moves multiplayer (section 5) into scope, for two players. Everything is in `game/COOP.md`. - **Music:** "On the Farm" (title, morning, day) and "Purgatory" (night). ### Step 12 — Balance and polish the full run **Goal:** the five-night run is reliable, understandable, and enjoyable. 12.1 Per-night telemetry written to `user://telemetry/*.json`: - phase durations and idle time during the day - resources gathered and spent - thefts and recoveries per category - response times (alert to arrival) - scarecrow damage and structures lost - a frame-time summary 12.2 Playtest protocol. - At least 3 full runs per strategy: heavy fencing, turret-focused, and minimal building with active play. - Also deliberately play one bad night to test whether the player can recover. 12.3 Answer each of the `first-game.md` checks with data: day pacing, reach times, how readable losses are, which layouts are viable, recovery after a bad night, how useful the scarecrow stays, Night 5's difficulty curve, and responsiveness during the largest attack. 12.4 Performance. - Measure Night 5's peak with `PerfStats` (editor binary, labeled). - Fix measured bottlenecks first: flow-field rebuilds, the number of animated enemies, crop rendering. 12.5 Polish priorities: sound cues, readable attacks, satisfying building and repair feedback, and visible changes on the farm (damage, empty plots, a sparse shed). 12.6 Revisit D1 (starting night early) and D3 (phase lengths) using the telemetry. **Exit gate:** the five-night campaign is reliable, understandable, and enjoyable from start to finish, and the 12.3 answers are recorded in `game/PLAYTEST.md`. ## 5. Out of scope for version 1 From `first-game.md`: farming simulation, hunger and thirst, power networks, automation, procedural maps, multiplayer (except the co-op for two added after Step 11), and large technology trees. Also excluded: processing chains (Step 5). ## 6. Risks to watch - **Navigation cost.** The 60 × 60 m map at 0.5 m cells is about 14k cells. The prototype measured about 9 ms for a full rebuild of 18k cells in GDScript, spread over ticks. One field is fine, but about 5 goal fields rebuilt after every structure change may still need sliced rebuilds of only the affected fields, or 1 m cells. Measure in Steps 2 and 6. - **Reworking the map.** Fitting crops, pen, shed, work area, and gathering spots into 60 × 60 m means moving or removing much of the current farm layout (the crop field alone is 68 × 60 m). Because tools that re-save scenes lose UIDs, back up `farm.tscn` and diff it after any scripted edit. - **Readability at night.** Darkness works against clear attacks; budget lighting effort in Step 7. - **Animated enemy count on Night 5.** Ground enemies aren't MultiMesh, so cap how many are active at once, and measure. - **Missing assets.** There's no audio, and the scarecrow and enemy art are placeholders built from the existing kits. ## 7. Asset needs Inventory checked 2026-10-03. **Have** = in the project, use as is. **Build** = made in-engine from existing assets, primitives, shaders, particles, or Godot UI. **Source** = needs to be found (CC0/OFL) or modeled. ### Characters | Asset | Step | Status | Notes | |---|---|---|---| | Scarecrow (player) | 4 | Source | Every needed clip exists on Rig_Medium (movement, `Use_Item` for patching, `Death_A`, `Chopping`/`PickUp` for gathering, `Hammering` for repairs). Missing is the look. Placeholder: hat, sack-cloth tint, and straw primitives on the mannequin. Proper: a scarecrow mesh skinned to the Rig_Medium skeleton so it uses the same clips. | | Crow | 3, 9 | Have | `Bird_01.obj` plus the wing-flap shader | | Ground thief | 3 (placeholder), 9 | Source | Mannequin_Medium with `Sneaking`, `Running_A`, `PickUp`, `Melee_Unarmed_Attack_Punch_A`, `Hit_A`, `Death_A`. Missing a distinct look. There's no carrying clip, so loot is attached to the back or hand while walking. | | Fence breaker | 9 | Source | Mannequin_Large with Rig_Large melee clips and a club built from primitives. Missing a distinct look. | | Farmers (ending) | 11 | Build | Tinted mannequins with `Waving` / `Cheering` | | Animals | 8 | Have | Chicken ×3, pig ×5, sheep ×3, cow ×4, goat ×2, horse ×4. Static meshes, so movement is a procedural waddle or hop. | ### Map and farm areas | Asset | Step | Status | Notes | |---|---|---|---| | Terrain, roads, trees, rocks, grass | 2 | Have | ithappy and Nature MegaKit | | Crop units, including the empty-plot look | 2, 3 | Have | Plant ×11, field ×3, garden bed ×7 | | Pen fencing and coop | 2 | Have | Fence ×29, stone fence ×7, coop ×2 | | Gate (pen and player-built) | 2, 6 | Unconfirmed | No clear gate model. `fence_007` / `fence_012` are 5.25 m wide and may be gates; check in the editor. Otherwise build one from a fence segment on a hinge. | | Supply shed | 2 | Have | Hangar ×34 | | Supply piles that scale with stock | 2, 8 | Have | Box, bag, case, barrel, firewood, hay | | Work area | 2 | Have | Table, stall, chair, bucket | | Wood and straw gathering nodes | 5 | Have | Dry wood ×11, firewood ×13, hay | | Scrap gathering node and scrap pile | 5 | Source / Build | No scrap or junk mesh. Use old vehicles, lawn mower, and barrels as the junk corner, but scrap itself needs a mesh. Primitives tinted to look like metal work as a placeholder. | | Entry-point markers | 2 | Build | Pointer signpost ×2 exists. No lantern model, so build one from primitives plus a light. | ### Buildables | Asset | Step | Status | Notes | |---|---|---|---| | Fence | 6 | Have | Farm fence segments, about 2.3 m | | Slowing trap | 6 | Source | Nothing in the farm style. The prototype kit's spikes are grey-box style. Ideas: tar or mud patch, nail board. | | Automated defense | 6 | Source | Nothing suitable. Needs a readable farm-built turret, such as a seed-spitting post or tin-can cannon. A placeholder can be assembled from barrel, bucket, and pole props. | | Damage states, debris, placement ghost | 6 | Build | Tint and wobble shader, HP bar, particle debris, green/red ghost shader | ### Combat, effects, and lighting | Asset | Step | Status | Notes | |---|---|---|---| | Weapon and projectile | 4 | Build | Prototype's primitive gun and tracer, reskinned as a seed or corn launcher | | Fear burst | 4 | Build | Ring shockwave shader plus straw particles | | Hit flash | 4 | Have | `hit_flash.gdshader` | | Particle textures (feathers, straw bits, dust, sparks, smoke) | 4–12 | Source | None in the project | | Steal-progress ring, pickup glow, target marker | 3 | Build | World-space shader or UI | | Day/night sky and lighting, scarecrow lantern | 7 | Build | Existing `WorldEnvironment` and `Sun`; lantern from primitives plus a light | ### UI | Asset | Step | Status | Notes | |---|---|---|---| | Font | 3, themed by 11 | Source | Only Godot's default font is available | | Icons, about 25 | 3–11 | Source | Resources (3), targets (3), abilities (2), buildables (4), alerts (3), sun/moon phase dial, upgrades (6–8) | | Input prompt glyphs (keyboard/mouse and gamepad) | 11 | Source | For the tutorial and hotbar | | Off-screen arrows, bars, cooldown radial | 3–4 | Build | Godot UI with simple generated textures | | UI theme (panels, buttons) | 11 | Build | Godot `Theme` resource | | Title logo, menu background | 11 | Source / Build | Text logo and an in-game camera shot as placeholders | ### Audio (none in the project) About 40 sound effects, 2 ambience loops, and optionally up to 5 music tracks. All Source. | Group | Sounds | |---|---| | Scarecrow | Footsteps, hurt, death, patch, fear burst, fear ready | | Weapon | Fire, hit on enemy, hit on world | | Enemies | Crow caw, wing flaps, crow death; thief grunt, hit, death; fence breaker swing and smash | | Theft and alerts | Target alert, loot grabbed, loot dropped, recovered, lost, breach alarm, escape warning | | Building | Place, invalid placement, repair, dismantle, structure hit, structure destroyed, trap trigger, turret fire | | Gathering | Chop wood, rustle straw, clank scrap, deposit at shed | | Animals | Cluck, oink, baa (calm and distressed) | | Phases | Dusk bell, night start, rooster at dawn, farmers' truck | | UI and outcomes | Hover, confirm, back, error, victory, game over | | Ambience | Day loop, night loop | | Music (optional) | Menu, day, night, final night, ending | ### Data resources Authored during implementation; no art needed: `GameConfig`, five `NightDefinition` files, upgrade definitions, enemy type table, input map, audio bus layout, and UI theme.