updates
This commit is contained in:
parent
276d43613d
commit
4298caf5cb
552 changed files with 42990 additions and 776 deletions
|
|
@ -18,7 +18,7 @@ Inspected 2026-10-03.
|
|||
| `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** | Asset gap: needed from Step 4, required by Step 11 |
|
||||
| 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`:
|
||||
|
||||
|
|
@ -221,6 +221,12 @@ alerts can refer to them later.
|
|||
|
||||
### 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`.
|
||||
|
|
@ -278,6 +284,24 @@ 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.
|
||||
|
|
@ -337,6 +361,18 @@ uses both shooting (to intercept) and fear (for breathing room), and losing feel
|
|||
|
||||
### 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:
|
||||
|
|
@ -377,6 +413,29 @@ 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:
|
||||
|
|
@ -440,6 +499,22 @@ 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
|
||||
|
|
@ -482,6 +557,44 @@ 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
|
||||
|
|
@ -522,6 +635,33 @@ flow fields for the pen and shed goals.
|
|||
|
||||
### 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,
|
||||
|
|
@ -555,6 +695,29 @@ 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,
|
||||
|
|
@ -593,6 +756,41 @@ 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.
|
||||
|
||||
|
|
@ -642,6 +840,21 @@ a stats summary.
|
|||
**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.
|
||||
|
|
@ -679,7 +892,8 @@ 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, and large technology trees. Also excluded: processing chains
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue