#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:
parent
d96ef8b5be
commit
c6daf3d217
19 changed files with 2112 additions and 21 deletions
|
|
@ -25,7 +25,8 @@ extends Node
|
|||
## combat, and interactions are that machine's own scarecrow's (player 2's).
|
||||
## FarmAudio plays every sound, Tutorial shows the first
|
||||
## day's and night's tips, DialogueDirector the talking-head conversations (game/resources/
|
||||
## dialogue/), and FarmersReturn plays the ending. Debug: T / G / H send in a
|
||||
## dialogue/), OpeningIntro the cutscene before a new vacation's first morning (Main starts it),
|
||||
## and FarmersReturn plays the ending. Debug: T / G / H send in a
|
||||
## thief / a crow / a fence breaker at any time.
|
||||
|
||||
const SCARECROW_RADIUS := 0.4
|
||||
|
|
@ -86,6 +87,7 @@ var audio: FarmAudio
|
|||
var tutorial: Tutorial
|
||||
var dialogue: DialogueDirector
|
||||
var ending: FarmersReturn
|
||||
var intro: OpeningIntro
|
||||
## Flow-field rebuild after a structure change: running, and stats of the last one.
|
||||
var rebuilding := false
|
||||
var rebuilds: int = 0
|
||||
|
|
@ -313,6 +315,12 @@ func _ready() -> void:
|
|||
ending.name = "FarmersReturn"
|
||||
add_child(ending)
|
||||
ending.setup(self)
|
||||
intro = OpeningIntro.new()
|
||||
intro.name = "OpeningIntro"
|
||||
add_child(intro)
|
||||
intro.setup(self)
|
||||
if review_panel != null:
|
||||
review_panel.intro = intro
|
||||
if end_panel != null:
|
||||
end_panel.setup(campaign)
|
||||
end_panel.ending = ending
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue