#33: opening intro cutscene

OpeningIntro (game/scripts/opening_intro.gd) plays on every New vacation
(not Continue, not when hosting co-op): the farmers leave in their loaded
station wagon, "Later that night....", a bickering UFO crew drops a part
whose blue flash brings the scarecrow (hung on a post in its T-pose) to life,
the UFO zooms off, then the loading screen and the first morning's sign.
Hold Space / Enter / A (or E, or the mouse button) 1 s to skip from any
stage; Escape pauses it; Restart the night skips it; Save & quit clears it.
It ends with the farm exactly as new_campaign() leaves it.

Hooks: ReviewPanel keeps the sign down while the intro has the farm (and
only focuses Start when the sign is up); DialogueDirector holds its
conversations and the sign, then intro_over() plays night 1's morning
conversations before the sign; Tutorial hides; FarmAudio gets set_scene /
end_scene (ambience and music held by a cutscene) and stop_cue (the morning
stinger plays with the sign instead); Main wires new_vacation(intro),
blocked, resume's freeze, restart and to_menu.

Tests: test_intro (45 checks); test_flow skips the new intro. Tool:
game/tools/capture_intro.gd saves a frame per stage for the timing review.
Docs: README, RULES, LAYOUT (staging points), PLAYTEST.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-07 22:54:24 -04:00
parent d96ef8b5be
commit c6daf3d217
19 changed files with 2112 additions and 21 deletions

View file

@ -221,6 +221,21 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
(`example_morning_day_2.tres`, the Scarecrow and a Little Green Alien) uses the HUD's painted
icons as placeholder portraits (`DialogueSpeaker.icon`) until real pictures are set.
* **The opening intro** — every New vacation opens with a cutscene, about 70 s (`OpeningIntro`,
`game/scripts/opening_intro.gd`): on a summer morning the farmers load up their station wagon
and drive off to the Bon Jovi concert; that night a bickering UFO crew loses control over the
farm, a glowing part falls off, and its blue flash brings the scarecrow to life (the faint blue
glow in its chest from then on); then a loading screen (`LoadingScreen`) and the first
morning's sign. Hold Space / Enter / A (or E, or the mouse button) for a second to skip it
(straight to the sign); Escape pauses it, and Restart the night skips it. Continue never plays
it, and hosting co-op skips it. Its lines are talking-head conversations in
`game/resources/dialogue/intro/` (`departure.tres`, `flight.tres`, `uh_oh.tres`; edit the lines
and speakers there: that folder never plays by itself), shown in the intro's own box, where
they go on by themselves and a tap hurries them. It shares the car, the farmers, and the camera
moves with the ending (`CutsceneKit`). Its staging points are in
[`game/LAYOUT.md`](game/LAYOUT.md). To review it shot by shot, `game/tools/capture_intro.gd`
saves a frame at every stage (its header has the command).
* **Menus and saving** — `Main` (`game/scripts/main.gd`, `game/scenes/main.tscn`) hosts the farm
under the menus. `MainMenu` is the title screen (Continue, New vacation, Settings, Quit) over
the paused farm, with a camera circling it. `PauseMenu` (Escape / Start) pauses the whole tree
@ -316,6 +331,7 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
| Pause / resume | Escape | Start |
| Hide the tips | Backspace | Back |
| Mute / unmute your microphone (co-op) | M | - |
| Skip the opening intro (hold 1 s) | Space, Enter, E, or left mouse | A, X, or right trigger |
| Skip the farmers' return | Space, Enter, E, or click | A or X |
| Menus and end screens | Click, arrows + Enter, Escape to go back | D-pad + A, B to go back |
@ -610,8 +626,8 @@ damaged, rule-breaking, non-morning, newer, and too-old saves refused with a rea
save upgraded, the autosave every morning, retry restoring the saved morning, the save deleted
when the vacation is finished, settings saved, loaded, clamped, and applied (bus volumes, dead
zones), and the final assessment's score, tiers, and renormalized weights. The flow suite plays
the game through `main.tscn`: the title screen over the paused farm, New vacation and Continue
(and their questions), pausing freezing the simulation tick, settings applying and saving from
the game through `main.tscn`: the title screen over the paused farm, New vacation (its intro
skipped) and Continue (and their questions), pausing freezing the simulation tick, settings applying and saving from
the pause menu, Restart the night and Save & quit leaving the save untouched, a damaged save
refused, the failure screens and Retry, the farmers' return to the final assessment (and
skipping it), the first day's and night's tips, and the sounds hooked to the game. The co-op suite
@ -619,6 +635,12 @@ runs a host and a partner in one process (the partner's farm in its own world, o
link): the join, the partner's requests, moves, gathering, and shots, enemies, loot, and shots
arriving, the fall rule and Retry, a crowd with dropped packets and message sizes, and either side
leaving. `game/tools/coop_smoke.gd` plays the same over real GD-Sync between two processes.
The intro suite plays the opening intro through `main.tscn`: New vacation starts it, and Continue
and hosting don't; stepped through, it visits every stage in order with the farm held (no sign,
no HUD, the scarecrow frozen on its post) and ends on the focused morning sign; and a skip from
every stage, holding to skip, Restart the night, and Save & quit during it each leave the farm
exactly as a new vacation's first morning (the scarecrow at its start with input and glow, the
light and sounds given back, the game camera, nothing of the intro left).
Prototype: 107 checks, ~1.5 s. Covers pool acquire/release/exhaustion and swap identities, slot reuse
hygiene and stale handles, U-shape routing, corner cutting, unreachable spawns, octile costs,