Skip to Content
The Alchemy Project

src/scene/vale_prologue.c

Vale on the stormy night (SceneIdValePrologue), the prologue, when Isaac and Garet are children. More…

Macros

NameDescription
#defineFLAG_VALE_ISAACS_DOOR_OPEN FLAG_SCENE_TEMP(0x05)The door of Isaac's house, from which Dora and Isaac came out into the storm, stands open.
#defineFLAG_VALE_SHOVING_MANS_DOOR_OPEN FLAG_SCENE_TEMP(0x06)The stout man has run out of his door and shoved Isaac, leaving the door open.
#defineELDERS_FLASH_TICKS 40How long the elders call up their Psynergy once the camera reaches the Boulder, in ticks.
#defineRINGS_INTERVAL 16Ticks between an elder's rings: RINGS_INTERVAL, and RINGS_INTERVAL_STEP more for each step of BoulderLurch.
#defineRINGS_INTERVAL_STEP 8
#defineSWAPPED_COLOR_MODES (SPRITE_COLOR_BRG + 1)The colour modes an elder or the Boulder cycles through: plain colours and their five swaps, SPRITE_COLOR_NORMAL to SPRITE_COLOR_BRG.
#defineVALE_PROLOGUE_GLANCE_PAUSE ()A random pause of 20 to 39 ticks between the glances of ValePrologueLookAroundScript.
#definePSYNERGY_RINGS_SOUND SE_JUMPThe sound the rings of light play here (psynergy_rings.c).

Enumerations

NameDescription
enumVALE_PROLOGUE_ACTOR_ID { ACTOR_EXHAUSTED_STRONGMAN, ACTOR_DORA, ACTOR_KYLE, ACTOR_FIR … }The placed actors, numbered in the order of ValePrologueActorPlacements.
enumVALE_PROLOGUE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_VALE_STEPS_UP_MT_ALEPH, METATILE_BEHAVIOR_ … }What the night's metatiles do when Isaac steps on them, walks into them or searches them, by the cue rows that answer them.
enumVALE_PROLOGUE_ANIMATION { ANIM_GARET_DRAG, ANIM_CHEST_DRAGGED, ANIM_CHEST_ROPE_DROPPED … }Animations of the night's own sprites beyond ACTOR_ANIMATION, as each sprite's animation table and ticks under graphics/sprite draw them.
enumVALE_PROLOGUE_AREA_FLAG { FLAG_VALE_STORM_STRONGMAN_TRIED_TO_GO, FLAG_VALE_STORM_GARET … }Vale's area flags this scene keeps while the party is in Vale.

Functions

NameDescription
static voidscValePrologueDoraSendsIsaacToThePlaza (void)In Vale on the stormy night, Dora comes out into the storm with Isaac to Kyle, and the two send Isaac on to the plaza while they go to help.
static voidscValePrologueApplyFirstRockCollision (void)Applies the metatile behaviors left by the first rock (ACTOR_FIRST_ROCK).
static voidscValePrologueApplySecondRockCollision (void)Applies the metatile behaviors left by the second rock (ACTOR_FIRST_ROCK + 1).
static voidscValePrologueApplyThirdRockCollision (void)Applies the metatile behaviors left by the third rock (ACTOR_FIRST_ROCK + 2).
static voidscValePrologueApplyFourthRockCollision (void)Applies the metatile behaviors left by the fourth rock (ACTOR_FIRST_ROCK + 3).
static voidscValePrologueBumpIntoShovingMan (void)A stout man runs out of the door of the house north-west of Isaac's and knocks him back.
static voidscValePrologueGaretLeavesHisChest (void)Garet asks the question the caller chose and, on either answer, drops his chest and joins the party.
static voidscValePrologueGaretTalksAboutBlockedPath (Sint32 x, Sint32 z)Garet steps out of Isaac to (x, z), in pixels, beside a fallen rock, says they cannot get around it, and steps back in.
static voidscValePrologueDoraGoesForHelp (void)Dora and Jenna run through the house by the river for help.
static voidscValePrologueShowBoulderSweepingDownriver (void)The Boulder comes down the river and carries Felix, his parents and Kyle away.
static voidscValePrologueFlashLightning (void)A lightning flash that freezes the picture.
static voidscValePrologueUpdateBoulderShadow (void)The event that keeps ACTOR_BOULDER_SHADOW on the Boulder as it comes down the river, drawn on alternate ticks, and shakes the ground as the Boulder's landings count down in its timer.
static voidscValePrologueFlickerBoulderShadow (void)The event that moves ACTOR_BOULDER_SHADOW between two heights on alternate ticks, during the frozen flashes.
static voidscValePrologueGaretFollowsIsaac (void)As Isaac leaves the river to get help, Garet will not let him go alone and goes after him.
static voidscValePrologueRebuildRiverbank (void)Redraws the riverbank as the Boulder left it, pictures and metatile behaviors.
static voidscValePrologueFlashPaletteAndSpawnEffects (ACTOR *actor)An elder calling up Psynergy, for ELDERS_FLASH_TICKS once the camera reaches the Boulder: white two ticks in four, sending up rings.
static voidscSpawnPsynergyRings (ACTOR *parent)Sets off a golden ring around the actor, its two halves (field_effect_vertical.c) drawn from the Psynergy's cached tiles, with the sound the includer names as PSYNERGY_RINGS_SOUND.
static voidscValePrologueUpdateEldersPsynergy (void)Cycles the four elders' palettes and effects while they hold the Boulder.
static voidscValePrologueCycleBoulderPalette (void)The event that cycles the Boulder's palettes while the elders hold it.
static voidscValePrologueCopyLeaderSpritePriority (void)Keeps Garet and the man who came to help (ACTOR_EXHAUSTED_STRONGMAN) at the leader's sprite priority while they stand by the river.
static Sint32scValePrologueLookAround (ACTOR *actor)Turns the actor to a random facing, then waits 20 to 39 ticks before the next glance: the onlookers on the riverbank, wondering what the crashes are (ValePrologueLookAroundScript).
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)Some villagers only turn back after talking once the flood is over or their family has gone home.
const CUE *scGetCues (void)The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen.
static voidscValePrologueStepOntoBridge (void)
static voidscValePrologueStepOffBridge (void)Nothing visible happens as Isaac steps off either end of the rope bridge across the river in the south of the village, a metatile further from the river than scValePrologueStepOntoBridge's metatiles.
static voidscValePrologueUnusedOpenSanctumDoor (void)Unused: on the stormy night, the Sanctum's door opens and the leader goes into a house of Vale.
static voidscValePrologueLeaveNorthwestToValePlaza (void)On the stormy night, climbing the steps up Mt. Aleph in the north-west of the village (metatiles (5..8, 16)) does not take Isaac up the mountain: he comes out in the plaza, outside the door of the house at its top.
static voidscValePrologueLeaveToValeKradensCottageNorth (void)On the stormy night, Isaac leaves the village by the northern of the two paths off its west edge (metatiles (0, 38..41)), toward Kraden's cottage.
static voidscValePrologueLeaveToValeKradensCottageSouth (void)On the stormy night, Isaac leaves the village by the southern of the two paths off its west edge (metatiles (0, 49..50)), toward Kraden's cottage.
static voidscValePrologueLeaveToValePlaza (void)On the stormy night, Isaac leaves by the path off the village's south-east edge (metatiles (29, 86..87)) for the plaza, where the villagers have gathered (SceneIdValePlaza).
static voidscValePrologueEnterGaretsHouse (void)On the stormy night, Isaac opens the door of Garet's house (metatile (25, 46)) and goes in.
static voidscValePrologueEnterNorthwestHouse (void)The first time Isaac walks up to the door of the house north-west of his own (metatile (16, 51)) on the stormy night, a stout man runs out of it and shoves him (scValePrologueBumpIntoShovingMan).
static voidscValePrologueEnterIsaacsHouse (void)On the stormy night, Isaac goes back into his own house by its door (metatile (21, 56)), the one he and Dora came out of.
static voidscValePrologueEnterJennasGrandparentsHouse (void)On the stormy night, Isaac opens the door of Jenna's grandparents' house, on the river's east bank (metatile (20, 71)), and goes in.
static voidscValePrologueEnterSouthHouse (void)On the stormy night, Isaac opens the door of the house south of Jenna's grandparents', on the river's east bank (metatile (23, 78)), and goes in.
static voidscValePrologueUnusedEnterSouthHouseByWreckedHouseDoor (void)Unused: walking into the door of the house the storm wrecked on the river's west bank would have opened it and taken Isaac into the house south of Jenna's grandparents'.
static voidscValePrologueEnterRiversideHouseByWestDoor (void)On the stormy night, Isaac opens the west door of the house on the river's west bank (metatile (6, 75)) and goes in.
static voidscValePrologueEnterRiversideHouseByEastDoor (void)On the stormy night, Isaac opens the east door of the house on the river's west bank, onto the wooden deck by the water (metatile (9, 74)), and goes in.
Sint32scInit (void)Arriving in Vale on the stormy night sets the scene up for its stage of the night.
static voidscValePrologueFirstRockFalls (void)On the stormy night, a huge rock falls across the path just south of Isaac's house as he walks past (metatiles (19, 57..59)), and Garet, once with Isaac, says they cannot get around it.
static voidscValePrologueSecondRockFalls (void)On the stormy night, a huge rock falls down onto the path below the house north-west of Isaac's, by the river, as he walks past (metatiles (12, 52) and (14, 55)).
static voidscValePrologueThirdRockFalls (void)On the stormy night, a huge rock falls down onto the path along the village's west edge, between the two paths to Kraden's cottage, as Isaac walks past (metatiles (2..5, 40..45)).
static voidscValePrologueFourthRockFalls (void)On the stormy night, a huge rock falls down onto the path east of Jenna's grandparents' house, by the river, as Isaac walks past (metatiles (25..28, 68..74)).
static voidscValePrologueHearGaretStruggling (void)On the stormy night, walking up beside Garet, who is dragging his chest of valuables along the path north of his house (metatiles (21, 38..41)), Isaac hears him struggling.
static voidscValePrologueGaretCallsAfterIsaac (void)On the stormy night, if Isaac walks on west past Garet and his chest (metatiles (19, 39..42)), Garet calls after him, asking whether he will just leave him there.
static voidscValePrologueTalkToGaret (void)In Vale on the stormy night, talking to Garet is about whether to leave his things behind, or, after the river, about the Boulder.
static voidscValePrologueUnusedGaretJoinsIsaac (void)Unused: another version of Garet joining Isaac on the stormy night, which the game never plays.
static voidscValePrologueWarnAboutMtAleph (void)On the stormy night, as Isaac walks up to the foot of the steps up to the Sanctum's door, beside the waterfall (metatiles (15..16, 30)), Garet stops him and turns him back.
static voidscValePrologueWatchBoulderFall (void)On the stormy night, walking along the path west of Garet's house (metatiles (4..5, 35)), Isaac and Garet see the elders holding the Boulder up on the mountainside with their Psynergy.
static voidscValePrologueSetActorColorMode (ACTOR *actor, Sint32 mode)Sets the colour mode of every part of a one-sprite actor to mode - 1 (so SPRITE_COLOR_WHITE + 1 draws it white), or with mode 0 flashes it white and plain in turn, two ticks each (ValePrologueFlashColorModes).
static voidscValePrologueUnusedFlashEldersWhite (void)Unused: flashes the four elders white one beat in four, a beat lasting 2 to the power BoulderLurch ticks, as the Boulder slips.
static voidscValePrologueWatchAttemptToSaveFelix (void)On the stormy night, coming down to the river's west bank north of the house by the river (metatiles (8..9, 66..67)), Isaac sees Felix clinging on in the current, and Jenna cries out as her family tries to save him.
static voidscValePrologueTalkAboutSavingFelix (void)Kyle tells Isaac and Garet to find help for Felix.
static voidscValePrologueBoulderSweepsThemAway (void)On the stormy night, back at the river with Jenna and the strongman, as Isaac walks out onto the rope bridge across the river in the south (metatiles (13, 85..86)), the Boulder comes down the river and sweeps Felix, his parents and Kyle away.
static inline voidscValeProloguePlaceActor (ACTOR *actor, FIXED horizontalPos, FIXED groundPos)Places an actor and its targets at once, x doubling as its height.
static inline voidscValeProloguePlayImpactBeat (Sint32 shakeAmplitude, Sint32 ticks)One crash of the Boulder coming down, made of a shake of shakeAmplitude pixels, SE_CRASH and a wait.
static voidscValePrologueStrongmanTriesToGoForHelp (void)An exhausted strongman tries to go for help and can't move.
static voidscValePrologueFightThirdMonster (void)On the stormy night, a monster attacks as Isaac comes to the west end of the rope bridge west of his house (metatiles (3..4, 54)).
static voidscValePrologueFightFourthMonster (void)On the stormy night, a monster attacks as Isaac steps off the east end of the rope bridge across the river in the south of the village (metatiles (21, 85..86)).
static voidscValePrologueCyclePaletteAndSpawnEffects (ACTOR *actor)An elder holding the Boulder.
static voidscValePrologueCycleActorPalettes (ACTOR *actor)Cycles the sprite through the SWAPPED_COLOR_MODES, a step every second tick.
static voidscValePrologueSearchBrokenDoor (void)Once the Boulder has passed, searching the west door of the house on the river's west bank (metatile (6, 74)) finds it will not open.
static voidscValePrologueSearchValuablesChest (void)On the stormy night, searching the chest Garet was trying to save, left on the path north of his house once he joins (metatiles (25..27, 38)).

Variables

NameDescription
extern Uint8ValePrologueFlashColorModes []The colour modes scValePrologueSetActorColorMode's mode 0 steps through, a step every two ticks.
extern Sint32ValePrologueShovingManScript []The stout man runs off toward the plaza after shoving Isaac.
extern Sint32ValePrologueUnusedGaretRunsUpScript []Garet runs up to Isaac (scValePrologueUnusedGaretJoinsIsaac).
extern Sint32ValePrologueUnusedGaretPantingScript []Garet heaves for breath.
extern Sint32ValePrologueBoulderWaits []The Boulder on the mountainside, held in its ANIM_WALK animation until it slips.
extern Sint32ValePrologueBoulderFallLeaderPath []Isaac and Garet run to where they see the elders hold the Boulder (scValePrologueWatchBoulderFall), and face each other.
extern Sint32ValePrologueBoulderFallGaretPath []
extern Sint32ValePrologueDoraRunsIntoRiversideHouse []
extern Sint32ValePrologueJennaRunsIntoRiversideHouse []
extern Sint32ValePrologueDoraComesOutOfRiversideHouse []
extern Sint32ValePrologueJennaComesOutOfRiversideHouse []
extern Sint32ValePrologueDoraHeadsNorth []
extern Sint32ValePrologueJennaHeadsForPlaza []
extern Sint32ValePrologueDoraLeavesForHelp []Dora leaves to the west once she has asked the boys to help.
extern Sint32ValePrologueDoraRunsToRiver []Dora runs down to the river when Jenna comes back (scValePrologueBoulderSweepsThemAway).
extern Sint32ValePrologueToRiverbankPath []The way down to the riverbank that each of the party and the strongman takes in turn as the Boulder comes, then each one's place there.
extern Sint32ValePrologueExhaustedStrongmanGatherPath []
extern Sint32ValePrologueJennaGatherPath []
extern Sint32ValePrologueLeaderGatherPath []
extern Sint32ValePrologueGaretGatherPath []
extern Sint32ValePrologueLookAroundScript []Everyone on the bank looks about (scValePrologueLookAround).
extern Sint32ValePrologueSquashAndStretchScript []A squash and stretch every 60 to 149 ticks (scSquashAndStretch), for the people straining at the river and, after the Boulder, those on the bank.
extern Sint32ValePrologueBoulderRollsDownriver []The Boulder bounds down the river in nine steps.
extern SCENE_ENTRANCEValePrologueEntrances []
extern Uint32ValePrologueExits []
extern ACTOR_PLACEValePrologueActorPlacements []
extern ACTOR_PLACEValePrologueBoulderElders []
extern CUEValePrologueCues []
extern Uint16ValePrologueSanctumDoorOpens []The Sanctum's door (scValePrologueUnusedOpenSanctumDoor).
extern Uint16ValePrologueIsaacsDoorOpens []The door of Isaac's house, and of Garet's and the house by the river.
extern Uint16ValePrologueGrandparentsDoorOpens []The door of the house of Jenna's grandparents, and two more of the kind.
extern Uint16ValePrologueWestHouseDoorOpens []The door VALE_PROLOGUE_TO_COTTAGE_ROOMS_A_WEST goes through.
extern Uint16ValePrologueIsaacsDoorCloses []Shuts a door of ValePrologueIsaacsDoorOpens's kind, with the shut picture of Isaac's door, after Dora and Jenna come out of the house by the river.
extern Uint16ValePrologueGrandparentsDoorCloses []Shuts a door of ValePrologueGrandparentsDoorOpens's kind behind Dora and Jenna as they go into the house by the river.
static Sint32FarWestElderLetGo0 while the westernmost elder strains at the Boulder, 1 once he lets go.
static Sint32BoulderLurchHow hard the Boulder lurches, 0 to 2, raised and lowered as it slips and settles: each step puts RINGS_INTERVAL_STEP more ticks between the elders' rings.

Description

Vale on the stormy night (SceneIdValePrologue), the prologue, when Isaac and Garet are children.

It is a scene of its own that stands in for SceneIdVale while FLAG_VALE_STORM is set, so that the doors that lead to Vale by day lead here. scInit sets the flag on every arrival, and vale_plaza.c clears it when the night ends.

The night is a chain of story flags. Each is set by one script and read by scInit, which rebuilds the scene at that stage on the next arrival:

Every way out goes through scValeRequestBackdropExit (shared/vale.c), which stops the lightning first, and each door plays its opening metatiles before it. ValePrologueExits gives each exit's destination.

Two monsters attack once each, at the west end of the rope bridge west of Isaac's house and past the east end of the bridge in the south (slots 2 and 3 of ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT).

Macros in detail

FLAG_VALE_ISAACS_DOOR_OPEN

#define FLAG_VALE_ISAACS_DOOR_OPEN FLAG_SCENE_TEMP(0x05)

The door of Isaac's house, from which Dora and Isaac came out into the storm, stands open.

Referenced by scInit(), scValePrologueDoraSendsIsaacToThePlaza() and scValePrologueEnterIsaacsHouse().

Definition at line 366 of file vale_prologue.c.

FLAG_VALE_SHOVING_MANS_DOOR_OPEN

#define FLAG_VALE_SHOVING_MANS_DOOR_OPEN FLAG_SCENE_TEMP(0x06)

The stout man has run out of his door and shoved Isaac, leaving the door open.

Referenced by scInit() and scValePrologueEnterNorthwestHouse().

Definition at line 369 of file vale_prologue.c.

ELDERS_FLASH_TICKS

#define ELDERS_FLASH_TICKS 40

How long the elders call up their Psynergy once the camera reaches the Boulder, in ticks.

Referenced by scValePrologueWatchBoulderFall().

Definition at line 380 of file vale_prologue.c.

RINGS_INTERVAL

#define RINGS_INTERVAL 16

Ticks between an elder's rings: RINGS_INTERVAL, and RINGS_INTERVAL_STEP more for each step of BoulderLurch.

Referenced by scValePrologueCyclePaletteAndSpawnEffects() and scValePrologueFlashPaletteAndSpawnEffects().

Definition at line 383 of file vale_prologue.c.

RINGS_INTERVAL_STEP

#define RINGS_INTERVAL_STEP 8

Referenced by scValePrologueCyclePaletteAndSpawnEffects() and scValePrologueFlashPaletteAndSpawnEffects().

Definition at line 384 of file vale_prologue.c.

SWAPPED_COLOR_MODES

#define SWAPPED_COLOR_MODES (SPRITE_COLOR_BRG + 1)

The colour modes an elder or the Boulder cycles through: plain colours and their five swaps, SPRITE_COLOR_NORMAL to SPRITE_COLOR_BRG.

Referenced by scValePrologueCycleActorPalettes() and scValePrologueCyclePaletteAndSpawnEffects().

Definition at line 387 of file vale_prologue.c.

VALE_PROLOGUE_GLANCE_PAUSE

#define VALE_PROLOGUE_GLANCE_PAUSE()

A random pause of 20 to 39 ticks between the glances of ValePrologueLookAroundScript.

Referenced by scValePrologueLookAround() and scValePrologueShowBoulderSweepingDownriver().

Definition at line 391 of file vale_prologue.c.

PSYNERGY_RINGS_SOUND

#define PSYNERGY_RINGS_SOUND SE_JUMP

The sound the rings of light play here (psynergy_rings.c).

Referenced by scSpawnPsynergyRings().

Definition at line 3163 of file vale_prologue.c.

Enumerations in detail

VALE_PROLOGUE_ACTOR_ID

enum VALE_PROLOGUE_ACTOR_ID

The placed actors, numbered in the order of ValePrologueActorPlacements. The elders holding back the Boulder (ValePrologueBoulderElders) follow them.

EnumeratorValueDescription
ACTOR_EXHAUSTED_STRONGMANACTOR_FIRST_PLACEDThe strongman who comes back to the river with Jenna, his Psynergy restored at the Psynergy Stone (vale_plaza.c). After the Boulder has passed he tries to go for help and cannot. "I... I'll go!", then "It's no use. I can't move..."
ACTOR_DORA
ACTOR_KYLE
ACTOR_FIRST_ROCKEight huge rocks that Isaac "can't even budge". ACTOR_FIRST_ROCK to ACTOR_FIRST_ROCK + 3 fall across the paths (scValePrologueFirstRockFalls to scValePrologueFourthRockFalls, FLAG_VALE_STORM_FIRST_ROCK_FELL on). ACTOR_FIRST_ROCK + 4 and + 5 already lie there. ACTOR_FIRST_ROCK + 6 and + 7 lie there only once the Boulder has passed down the river (scValePrologueShowBoulderSweepingDownriver).
ACTOR_BOULDERACTOR_FIRST_PLACED + 11Drawn at twice its size.
ACTOR_SHOVING_MANA stout man who runs out of his house and shoves Isaac. "Huh? Isaac?"
ACTOR_GARETS_CHESTThe things Garet struggles to
ACTOR_GARET_CHILDsave. "If a rock hits me now, I'll lose both my chest and my life."
ACTOR_FELIX_CHILDIn the river.
ACTOR_JENNAS_FATHERJenna's father, a man with brown hair in a green shirt. Jenna calls him and her mother "Mom! Dad!". "Hang on, Felix! Help is on the way!"
ACTOR_JENNAS_MOTHERJenna's mother, a woman with
ACTOR_JENNA_CHILDpink hair in a white apron. "Don't let go, Felix!"
ACTOR_BOULDER_SHADOWThe Boulder's shadow (SPRITE_BLANK_LARGE, a black blob). It is drawn on alternate ticks under the Boulder as it comes down the river, swelling and shrinking with its bounds (scValePrologueUpdateBoulderShadow). During the frozen flashes it is twice its size (scValePrologueFlickerBoulderShadow). The elders holding back the Boulder with their Psynergy ("Go aid the elders!", vale_plaza.c), from ValePrologueBoulderElders, which scValePrologueWatchBoulderFall places after the scene's own actors and removes. Two invisible actors stand on the spots of ACTOR_ELDER_EAST and ACTOR_ELDER_WEST, and some of the elders' lines come from them.
ACTOR_ELDER_EAST_STAND_INThis first one stands on ACTOR_ELDER_EAST's spot and speaks the elders' first and third lines. "Ahhh! The Boulder! It's falling!", then "If our Psynergy runs out, Vale will be destroyed!"
ACTOR_ELDER_FAR_WESTThe westernmost elder, drawn with the sprite of the young man with brown hair (as is ACTOR_ELDER_FAR_EAST), tells the boys to run. "Hurry, boys! Run!!! It's just a little farther!"
ACTOR_ELDER_FAR_EASTThe easternmost elder, the same sprite drawn mirrored. "We have to hold on until the villagers are safe!"
ACTOR_ELDER_WEST_STAND_INThe invisible actor on ACTOR_ELDER_WEST's spot that speaks for that elder, the elders' second line. "It's too heavy! We can't hold it for long!"
ACTOR_ELDER_EASTThe elders between the two are men with long
ACTOR_ELDER_WESTbrown hair and beards in long robes. East of ACTOR_ELDER_WEST, and drawn as that elder is.

Definition at line 126 of file vale_prologue.c.

VALE_PROLOGUE_METATILE_BEHAVIOR

enum VALE_PROLOGUE_METATILE_BEHAVIOR

What the night's metatiles do when Isaac steps on them, walks into them or searches them, by the cue rows that answer them. The day's Vale (vale.c) numbers the same metatiles the same way.

EnumeratorValueDescription
METATILE_BEHAVIOR_VALE_STEPS_UP_MT_ALEPH2The steps up Mt. Aleph in the north-west: metatiles (5, 16) to (8, 16).
METATILE_BEHAVIOR_VALE_NORTH_WAY_TO_KRADENThe northern way west to Kraden's cottage: metatiles (0, 38) to (0, 41).
METATILE_BEHAVIOR_VALE_SOUTH_WAY_TO_KRADENThe southern way west: metatiles (0, 49) and (0, 50).
METATILE_BEHAVIOR_VALE_WAY_TO_THE_PLAZAThe way east to the plaza, in the south: metatiles (29, 86) and (29, 87).
METATILE_BEHAVIOR_VALE_GARETS_DOORThe door of Garet's house: metatile (25, 46).
METATILE_BEHAVIOR_VALE_NORTHWEST_HOUSE_DOORThe door of the house north-west of Isaac's: metatile (16, 51).
METATILE_BEHAVIOR_VALE_ISAACS_DOORThe door of Isaac's house: metatile (21, 56).
METATILE_BEHAVIOR_VALE_GRANDPARENTS_DOORThe door of Jenna's grandparents' house: metatile (20, 71).
METATILE_BEHAVIOR_VALE_SOUTH_HOUSE_DOORThe door of the house south of theirs: metatile (23, 78).
METATILE_BEHAVIOR_VALE_UNUSED_WRECKED_HOUSE_DOORUnused: no metatile carries it.
METATILE_BEHAVIOR_VALE_RIVERSIDE_HOUSE_WEST_DOORThe west door of the house by the river, on its west bank: metatile (6, 75).
METATILE_BEHAVIOR_VALE_RIVERSIDE_HOUSE_EAST_DOORIts east door, onto the wooden deck: metatile (9, 74).
METATILE_BEHAVIOR_VALE_OFF_BRIDGEA metatile beyond each end of the rope bridges, a step from the river.
METATILE_BEHAVIOR_VALE_ONTO_BRIDGEThe metatiles at each end of the rope bridges.
METATILE_BEHAVIOR_VALE_THIRD_MONSTERWhere the night's two
METATILE_BEHAVIOR_VALE_FOURTH_MONSTERmonsters attack: the west end of the rope bridge west of Isaac's house, metatiles (3, 54) and (4, 54), and past the east end of the bridge in the south, metatiles (21, 85) and (21, 86).
METATILE_BEHAVIOR_VALE_GARETS_CHEST19Garet's chest of valuables, left on the path: metatiles (25, 38) to (27, 38).
METATILE_BEHAVIOR_VALE_WRECKED_HOUSE_DOOR24The wrecked house's stuck door, once the Boulder has passed: metatile (6, 74).
METATILE_BEHAVIOR_VALE_BESIDE_GARET30Beside Garet on the path north of his house: metatiles (21, 38) to (21, 41).
METATILE_BEHAVIOR_VALE_PAST_GARETWest of Garet, walking on past him: metatiles (19, 39) to (19, 42).
METATILE_BEHAVIOR_VALE_UNUSED_GARET_JOINSAround the foot of the steps up to the Sanctum, metatiles (15, 29) to (16, 29) and (15, 35) to (16, 35), where Garet would run up to Isaac (scValePrologueUnusedGaretJoinsIsaac).
METATILE_BEHAVIOR_VALE_FOOT_OF_SANCTUM_STEPSThe foot of the steps up to the Sanctum's door: metatiles (15, 30) and (16, 30).
METATILE_BEHAVIOR_VALE_BOULDER_IN_VIEWWhere the Boulder comes into view: metatiles (4, 35) and (5, 35).
METATILE_BEHAVIOR_VALE_FELIX_IN_VIEWThe river's west bank where Felix is seen: metatiles (9, 66), (8, 67) and (9, 67).
METATILE_BEHAVIOR_VALE_MIDDLE_OF_BRIDGEThe middle of the rope bridge in the south, once its planks are laid: metatiles (13, 85) and (13, 86).
METATILE_BEHAVIOR_VALE_FIRST_ROCK41Where each rock falls as Isaac walks past (scValePrologueFirstRockFalls to scValePrologueFourthRockFalls).
METATILE_BEHAVIOR_VALE_SECOND_ROCK
METATILE_BEHAVIOR_VALE_THIRD_ROCK
METATILE_BEHAVIOR_VALE_FOURTH_ROCK

Definition at line 204 of file vale_prologue.c.

VALE_PROLOGUE_ANIMATION

enum VALE_PROLOGUE_ANIMATION

Animations of the night's own sprites beyond ACTOR_ANIMATION, as each sprite's animation table and ticks under graphics/sprite draw them.

EnumeratorValueDescription
ANIM_GARET_DRAG5Garet leaning into his chest to drag it (garet_child.png).
ANIM_CHEST_DRAGGED2Garet's chest, its rope pulled taut as he drags it (chest_of_valuables.png).
ANIM_CHEST_ROPE_DROPPED3Its rope let fall on the ground.
ANIM_KYLE_REACH_OUT5Kyle crouched at the bank, reaching out to Felix (kyle.png).
ANIM_PARENT_REACH_OUT6Jenna's father and mother crouched at the bank, reaching out (man_in_green_shirt.png, woman_with_pink_hair.png).
ANIM_FELIX_UNDER_WATER6Only Felix's hands above the water as he goes under (felix_child.png).
ANIM_FELIX_CLING7Felix clinging on in the river, one arm reaching out (felix_child.png).
ANIM_BEARDED_ELDER_HOLD_BACK5A bearded elder seen from behind, both arms raised against the Boulder (bearded_man_in_long_robe.png).
ANIM_JENNA_RUN5In mid-stride (jenna_child.png).
ANIM_PARENT_RECOIL5Seen from behind, arms flung out.
ANIM_FELIX_CLING_STILL8ANIM_FELIX_CLING's first frame held.

Definition at line 310 of file vale_prologue.c.

VALE_PROLOGUE_AREA_FLAG

enum VALE_PROLOGUE_AREA_FLAG

Vale's area flags this scene keeps while the party is in Vale.

EnumeratorValueDescription
FLAG_VALE_STORM_STRONGMAN_TRIED_TO_GOFLAG_AREA_TEMP(0x05)The strongman at the
FLAG_VALE_STORM_GARET_SAW_BLOCKED_PATHFLAG_AREA_TEMP(0x0c)river tried to go for help and could not. Garet has said once that they cannot get around
FLAG_VALE_STORM_KYLE_GREETED_ISAACFLAG_AREA_TEMP(0x0d)a fallen rock. Kyle has greeted Isaac at the river.
FLAG_VALE_STORM_FIRST_ROCK_PASSEDFLAG_AREA_TEMP(0x10)The party has passed each rock's spot since coming to Vale, so its script does not play again.
FLAG_VALE_STORM_SECOND_ROCK_PASSEDFLAG_AREA_TEMP(0x11)
FLAG_VALE_STORM_THIRD_ROCK_PASSEDFLAG_AREA_TEMP(0x12)
FLAG_VALE_STORM_FOURTH_ROCK_PASSEDFLAG_AREA_TEMP(0x13)

Definition at line 341 of file vale_prologue.c.

Functions in detail

scValePrologueDoraSendsIsaacToThePlaza

static void scValePrologueDoraSendsIsaacToThePlaza(void)

In Vale on the stormy night, Dora comes out into the storm with Isaac to Kyle, and the two send Isaac on to the plaza while they go to help.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridAnimateMetatiles(), fdPlayQueuedMusic(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWeatherLastLightning(), fdWeatherResumeLightning(), fdWeatherStartLightning(), fdWeatherStartRain(), gmFlagClear(), gmFlagSet(), Sint32, sySoundPlay(), sySynch() and ValePrologueIsaacsDoorOpens.

Referenced by scInit().

Definition at lines 103 and 895 of file vale_prologue.c.

scValePrologueApplyFirstRockCollision

static void scValePrologueApplyFirstRockCollision(void)

Applies the metatile behaviors left by the first rock (ACTOR_FIRST_ROCK).

References fdMapGridCopyMetatileAttributes().

Referenced by scInit() and scValePrologueFirstRockFalls().

Definition at lines 104 and 1078 of file vale_prologue.c.

scValePrologueApplySecondRockCollision

static void scValePrologueApplySecondRockCollision(void)

Applies the metatile behaviors left by the second rock (ACTOR_FIRST_ROCK + 1).

References fdMapGridCopyMetatileAttributes().

Referenced by scInit() and scValePrologueSecondRockFalls().

Definition at lines 105 and 1156 of file vale_prologue.c.

scValePrologueApplyThirdRockCollision

static void scValePrologueApplyThirdRockCollision(void)

Applies the metatile behaviors left by the third rock (ACTOR_FIRST_ROCK + 2).

References fdMapGridCopyMetatileAttributes().

Referenced by scInit() and scValePrologueThirdRockFalls().

Definition at lines 106 and 1240 of file vale_prologue.c.

scValePrologueApplyFourthRockCollision

static void scValePrologueApplyFourthRockCollision(void)

Applies the metatile behaviors left by the fourth rock (ACTOR_FIRST_ROCK + 3).

References fdMapGridCopyMetatileAttributes().

Referenced by scInit() and scValePrologueFourthRockFalls().

Definition at lines 107 and 1313 of file vale_prologue.c.

scValePrologueBumpIntoShovingMan

static void scValePrologueBumpIntoShovingMan(void)

A stout man runs out of the door of the house north-west of Isaac's and knocks him back. "Huh? Isaac? Did you come to get me?" He says sorry, says they had better get to the plaza before the Boulder hits, and runs off.

References fdActorFaceEachOther(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorShowEmote(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPlayQueuedMusic(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), Sint32 and ValePrologueShovingManScript.

Referenced by scValePrologueEnterNorthwestHouse().

Definition at lines 108 and 1325 of file vale_prologue.c.

scValePrologueGaretLeavesHisChest

static void scValePrologueGaretLeavesHisChest(void)

Garet asks the question the caller chose and, on either answer, drops his chest and joins the party.

References fdActorFaceActor(), fdActorFaceEachOther(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdScriptAddPartyMember(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptWait(), gmFlagSet(), scWalkIntoLeader() and Sint32.

Referenced by scValePrologueGaretCallsAfterIsaac() and scValePrologueTalkToGaret().

Definition at lines 109 and 1435 of file vale_prologue.c.

scValePrologueGaretTalksAboutBlockedPath

static void scValePrologueGaretTalksAboutBlockedPath(Sint32 x, Sint32 z)

Garet steps out of Isaac to (x, z), in pixels, beside a fallen rock, says they cannot get around it, and steps back in. The four rock scripts play it once between them.

References fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetSpeedFX(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), scWalkIntoLeader() and Sint32.

Referenced by scValePrologueFirstRockFalls(), scValePrologueFourthRockFalls(), scValePrologueSecondRockFalls() and scValePrologueThirdRockFalls().

Definition at lines 110 and 1574 of file vale_prologue.c.

scValePrologueDoraGoesForHelp

static void scValePrologueDoraGoesForHelp(void)

Dora and Jenna run through the house by the river for help. Dora finds Isaac and Garet, asks whether they saw what happened and whether they will help, and sends them on to Jenna at the plaza.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetScript(), fdActorShowEmote(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdMapGridAnimateMetatiles(), fdPlayQueuedMusic(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptWait(), scWalkIntoLeader(), Sint32, sySoundPlay(), ValePrologueDoraComesOutOfRiversideHouse, ValePrologueDoraHeadsNorth, ValePrologueDoraLeavesForHelp, ValePrologueDoraRunsIntoRiversideHouse, ValePrologueGrandparentsDoorCloses, ValePrologueGrandparentsDoorOpens, ValePrologueIsaacsDoorCloses, ValePrologueIsaacsDoorOpens, ValePrologueJennaComesOutOfRiversideHouse, ValePrologueJennaHeadsForPlaza, ValePrologueJennaRunsIntoRiversideHouse and ValePrologueSquashAndStretchScript.

Referenced by scValePrologueWatchAttemptToSaveFelix().

Definition at lines 111 and 2127 of file vale_prologue.c.

scValePrologueShowBoulderSweepingDownriver

static void scValePrologueShowBoulderSweepingDownriver(void)

The Boulder comes down the river and carries Felix, his parents and Kyle away.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStop(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdCameraGetActor(), fdMapGridCenterOnFollowedPoint(), fdMapGridWaitForShakeToSettle(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdPartyRemoveMemberRestored(), fdPlayQueuedMusic(), fdScriptSetFlag(), fdScriptWait(), fdTilesetAnimationPause(), fdTilesetAnimationResume(), fdWeatherLastLightning(), fdWeatherResumeLightning(), fdWeatherStopLightning(), gmFlagClear(), scValePrologueCopyLeaderSpritePriority(), scValePrologueFlashLightning(), scValePrologueFlickerBoulderShadow(), scValeProloguePlaceActor(), scValeProloguePlayImpactBeat(), scValePrologueRebuildRiverbank(), scValePrologueStepOffBridge(), scValePrologueUpdateBoulderShadow(), Sint32, syCloseEvent(), sySetTickEvent(), sySoundPlay(), sySynch(), ValePrologueBoulderRollsDownriver, ValePrologueExhaustedStrongmanGatherPath, ValePrologueGaretGatherPath, ValePrologueJennaGatherPath, ValePrologueLeaderGatherPath, ValePrologueLookAroundScript, ValePrologueSquashAndStretchScript and ValePrologueToRiverbankPath.

Referenced by scValePrologueBoulderSweepsThemAway().

Definition at lines 112 and 2474 of file vale_prologue.c.

scValePrologueFlashLightning

static void scValePrologueFlashLightning(void)

A lightning flash that freezes the picture.

References fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptSetFlag(), fdTilesetAnimationPause(), fdTilesetAnimationResume(), gmFlagClear() and sySynch().

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 113 and 2801 of file vale_prologue.c.

scValePrologueUpdateBoulderShadow

static void scValePrologueUpdateBoulderShadow(void)

The event that keeps ACTOR_BOULDER_SHADOW on the Boulder as it comes down the river, drawn on alternate ticks, and shakes the ground as the Boulder's landings count down in its timer.

References fdActorGet() and TickCount.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 114 and 2830 of file vale_prologue.c.

scValePrologueFlickerBoulderShadow

static void scValePrologueFlickerBoulderShadow(void)

The event that moves ACTOR_BOULDER_SHADOW between two heights on alternate ticks, during the frozen flashes.

References fdActorGet() and TickCount.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 115 and 2901 of file vale_prologue.c.

scValePrologueGaretFollowsIsaac

static void scValePrologueGaretFollowsIsaac(void)

As Isaac leaves the river to get help, Garet will not let him go alone and goes after him. "I can't let him go alone..."

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorStop(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scFieldScriptShowMessageThenWait(), scValePrologueCopyLeaderSpritePriority(), syCloseEvent() and sySynch().

Referenced by scValePrologueLeaveToValePlaza().

Definition at lines 116 and 3006 of file vale_prologue.c.

scValePrologueRebuildRiverbank

static void scValePrologueRebuildRiverbank(void)

Redraws the riverbank as the Boulder left it, pictures and metatile behaviors.

References fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().

Referenced by scInit() and scValePrologueShowBoulderSweepingDownriver().

Definition at lines 117 and 3046 of file vale_prologue.c.

scValePrologueFlashPaletteAndSpawnEffects

static void scValePrologueFlashPaletteAndSpawnEffects(ACTOR *actor)

An elder calling up Psynergy, for ELDERS_FLASH_TICKS once the camera reaches the Boulder: white two ticks in four, sending up rings.

References BoulderLurch, fdActorSetColorMode(), scSpawnPsynergyRings(), Sint32, syMathRemainderUnsigned() and TickCount.

Referenced by scValePrologueWatchBoulderFall().

Definition at lines 118 and 3104 of file vale_prologue.c.

scValePrologueUpdateEldersPsynergy

static void scValePrologueUpdateEldersPsynergy(void)

Cycles the four elders' palettes and effects while they hold the Boulder. The westernmost elder's stop once that elder lets go (FarWestElderLetGo).

References FarWestElderLetGo, fdActorGet() and scValePrologueCyclePaletteAndSpawnEffects().

Referenced by scValePrologueWatchBoulderFall().

Definition at lines 120 and 3170 of file vale_prologue.c.

scValePrologueCycleBoulderPalette

static void scValePrologueCycleBoulderPalette(void)

The event that cycles the Boulder's palettes while the elders hold it.

References fdActorGet() and scValePrologueCycleActorPalettes().

Referenced by scValePrologueWatchBoulderFall().

Definition at lines 121 and 3183 of file vale_prologue.c.

scValePrologueCopyLeaderSpritePriority

static void scValePrologueCopyLeaderSpritePriority(void)

Keeps Garet and the man who came to help (ACTOR_EXHAUSTED_STRONGMAN) at the leader's sprite priority while they stand by the river.

References fdActorGet() and fdActorSetSpritePriority().

Referenced by scInit(), scValePrologueGaretFollowsIsaac() and scValePrologueShowBoulderSweepingDownriver().

Definition at lines 122 and 3190 of file vale_prologue.c.

scValePrologueLookAround

static Sint32 scValePrologueLookAround(ACTOR *actor)

Turns the actor to a random facing, then waits 20 to 39 ticks before the next glance: the onlookers on the riverbank, wondering what the crashes are (ValePrologueLookAroundScript).

References Sint32 and syRandomNext().

Referenced by ValePrologueLookAroundScript.

Definition at line 397 of file vale_prologue.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References ValePrologueEntrances.

Definition at line 414 of file vale_prologue.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 419 of file vale_prologue.c.

scGetExits

const Uint32 *scGetExits(void)

References ValePrologueExits.

Definition at line 424 of file vale_prologue.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ValePrologueActorPlacements.

Definition at line 429 of file vale_prologue.c.

scGetCues

const CUE *scGetCues(void)

References ValePrologueCues.

Definition at line 434 of file vale_prologue.c.

scValePrologueStepOntoBridge

static void scValePrologueStepOntoBridge(void)

Nothing visible happens as Isaac steps up to either end of the rope bridge
across the river in the south of the village, at metatiles (8, 85) to (8, 88)
on the west bank or (18, 84) to (18,
87) on the east. The game lays the bridge's planks into the metatiles over
    the river, so that he
can walk across.

As by day (scValeStepOntoBridge in vale.c), the planks are copied from the bridge's own layer, metatiles (40, 84) to (46, 87) of the map, onto metatiles (10, 84) to (16, 87), and FLAG_VALE_ON_BRIDGE keeps them there after a battle. The ends of the rope bridge west of Isaac's house, metatiles (5, 56) to (5, 57) and (13, 56) to (14, 57), run this too, though that bridge is always open.

References fdMapGridCopyMetatileAttributes() and gmFlagSet().

Referenced by scInit() and ValePrologueCues.

Definition at line 452 of file vale_prologue.c.

scValePrologueStepOffBridge

static void scValePrologueStepOffBridge(void)

Nothing visible happens as Isaac steps off either end of the rope bridge across the river in the south of the village, a metatile further from the river than scValePrologueStepOntoBridge's metatiles. The game puts the river's metatiles back under the bridge.

The river's metatiles are kept below the bridge's own, at metatiles (40, 89) to (46, 92) of the map. The ends of the bridge west of Isaac's house run this too.

References fdMapGridCopyMetatileAttributes() and gmFlagClear().

Referenced by scValePrologueShowBoulderSweepingDownriver() and ValePrologueCues.

Definition at line 466 of file vale_prologue.c.

scValePrologueUnusedOpenSanctumDoor

static void scValePrologueUnusedOpenSanctumDoor(void)

Unused: on the stormy night, the Sanctum's door opens and the leader goes into a house of Vale.

It takes VALE_PROLOGUE_TO_COTTAGE_ROOMS_A_WEST_SANCTUM_DOOR (SceneIdCottageRoomsA, at COTTAGE_ROOMS_A_VALE_WEST, the house VALE_PROLOGUE_TO_COTTAGE_ROOMS_A_WEST and VALE_PROLOGUE_TO_COTTAGE_ROOMS_A_WEST_BY_WEST_BANK_DOOR lead to as well). No cue names it, and nothing else takes that exit.

References fdActorWalkTo(), fdMapGridPlayMapEdit(), fdScriptWait(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueSanctumDoorOpens.

Definition at line 482 of file vale_prologue.c.

scValePrologueLeaveNorthwestToValePlaza

static void scValePrologueLeaveNorthwestToValePlaza(void)

On the stormy night, climbing the steps up Mt. Aleph in the north-west of the village (metatiles (5..8, 16)) does not take Isaac up the mountain: he comes out in the plaza, outside the door of the house at its top.

By day the steps lead to Sol Sanctum by exit 1 (VALE_TO_SOL_ENTRANCE). The script asks for the same exit 1, which ValePrologueExits does not list, and the running game brings Isaac out at the plaza's first entrance, VALE_PLAZA_COTTAGE_ROOMS_A_NORTH, instead.

References scValeRequestBackdropExit() and sySoundPlay().

Referenced by ValePrologueCues.

Definition at line 500 of file vale_prologue.c.

scValePrologueLeaveToValeKradensCottageNorth

static void scValePrologueLeaveToValeKradensCottageNorth(void)

On the stormy night, Isaac leaves the village by the northern of the two paths off its west edge (metatiles (0, 38..41)), toward Kraden's cottage.

References scValeRequestBackdropExit() and sySoundPlay().

Referenced by ValePrologueCues.

Definition at line 508 of file vale_prologue.c.

scValePrologueLeaveToValeKradensCottageSouth

static void scValePrologueLeaveToValeKradensCottageSouth(void)

On the stormy night, Isaac leaves the village by the southern of the two paths off its west edge (metatiles (0, 49..50)), toward Kraden's cottage.

References scValeRequestBackdropExit() and sySoundPlay().

Referenced by ValePrologueCues.

Definition at line 516 of file vale_prologue.c.

scValePrologueLeaveToValePlaza

static void scValePrologueLeaveToValePlaza(void)

On the stormy night, Isaac leaves by the path off the village's south-east edge (metatiles (29, 86..87)) for the plaza, where the villagers have gathered (SceneIdValePlaza).

Once the Boulder has swept Felix and the others away, Garet goes after him first (scValePrologueGaretFollowsIsaac).

References gmFlagGet(), scValePrologueGaretFollowsIsaac(), scValeRequestBackdropExit() and sySoundPlay().

Referenced by ValePrologueCues.

Definition at line 528 of file vale_prologue.c.

scValePrologueEnterGaretsHouse

static void scValePrologueEnterGaretsHouse(void)

On the stormy night, Isaac opens the door of Garet's house (metatile (25, 46)) and goes in.

References fdActorWalkTo(), fdMapGridPlayMapEdit(), fdScriptWait(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueIsaacsDoorOpens.

Referenced by ValePrologueCues.

Definition at line 541 of file vale_prologue.c.

scValePrologueEnterNorthwestHouse

static void scValePrologueEnterNorthwestHouse(void)

The first time Isaac walks up to the door of the house north-west of his own (metatile (16, 51)) on the stormy night, a stout man runs out of it and shoves him (scValePrologueBumpIntoShovingMan). After that, or once the second rock has fallen, Isaac goes in.

References fdActorWalkTo(), fdMapGridAnimateMetatiles(), fdScriptGetFlag(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scValePrologueBumpIntoShovingMan(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueGrandparentsDoorOpens.

Referenced by ValePrologueCues.

Definition at line 554 of file vale_prologue.c.

scValePrologueEnterIsaacsHouse

static void scValePrologueEnterIsaacsHouse(void)

On the stormy night, Isaac goes back into his own house by its door (metatile (21, 56)), the one he and Dora came out of. It opens unless they left it open.

References fdActorWalkTo(), fdMapGridPlayMapEdit(), fdScriptWait(), gmFlagGet(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueIsaacsDoorOpens.

Referenced by ValePrologueCues.

Definition at line 578 of file vale_prologue.c.

scValePrologueEnterJennasGrandparentsHouse

static void scValePrologueEnterJennasGrandparentsHouse(void)

On the stormy night, Isaac opens the door of Jenna's grandparents' house, on the river's east bank (metatile (20, 71)), and goes in.

References fdActorWalkTo(), fdMapGridPlayMapEdit(), fdScriptWait(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueGrandparentsDoorOpens.

Referenced by ValePrologueCues.

Definition at line 592 of file vale_prologue.c.

scValePrologueEnterSouthHouse

static void scValePrologueEnterSouthHouse(void)

On the stormy night, Isaac opens the door of the house south of Jenna's grandparents', on the river's east bank (metatile (23, 78)), and goes in.

References fdActorWalkTo(), fdMapGridPlayMapEdit(), fdScriptWait(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueWestHouseDoorOpens.

Referenced by ValePrologueCues.

Definition at line 603 of file vale_prologue.c.

scValePrologueUnusedEnterSouthHouseByWreckedHouseDoor

static void scValePrologueUnusedEnterSouthHouseByWreckedHouseDoor(void)

Unused: walking into the door of the house the storm wrecked on the river's west bank would have opened it and taken Isaac into the house south of Jenna's grandparents'. No metatile of the stormy night's map carries METATILE_BEHAVIOR_VALE_UNUSED_WRECKED_HOUSE_DOOR, so it never opens. vale.c keeps the same door by day (scValeUnusedEnterJennasGrandparentsHouseByWestBankDoor).

References fdActorWalkTo(), fdMapGridAnimateMetatiles(), fdScriptWait(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueIsaacsDoorOpens.

Referenced by ValePrologueCues.

Definition at line 618 of file vale_prologue.c.

scValePrologueEnterRiversideHouseByWestDoor

static void scValePrologueEnterRiversideHouseByWestDoor(void)

On the stormy night, Isaac opens the west door of the house on the river's west bank (metatile (6, 75)) and goes in.

References fdActorWalkTo(), fdMapGridAnimateMetatiles(), fdScriptWait(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueIsaacsDoorOpens.

Referenced by ValePrologueCues.

Definition at line 630 of file vale_prologue.c.

scValePrologueEnterRiversideHouseByEastDoor

static void scValePrologueEnterRiversideHouseByEastDoor(void)

On the stormy night, Isaac opens the east door of the house on the river's west bank, onto the wooden deck by the water (metatile (9, 74)), and goes in.

References fdActorWalkTo(), fdMapGridAnimateMetatiles(), fdScriptWait(), scValeRequestBackdropExit(), sySoundPlay() and ValePrologueGrandparentsDoorOpens.

Referenced by ValePrologueCues.

Definition at line 641 of file vale_prologue.c.

scInit

Sint32 scInit(void)

Arriving in Vale on the stormy night sets the scene up for its stage of the night.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridCopyMetatileAttributes(), fdQueueMusic(), fdScriptEnd(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), fdWeatherResumeLightning(), fdWeatherStartLightning(), fdWeatherStartRain(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scValePrologueApplyFirstRockCollision(), scValePrologueApplyFourthRockCollision(), scValePrologueApplySecondRockCollision(), scValePrologueApplyThirdRockCollision(), scValePrologueCopyLeaderSpritePriority(), scValePrologueDoraSendsIsaacToThePlaza(), scValePrologueRebuildRiverbank(), scValePrologueStepOntoBridge(), Sint32, sySetTickEvent(), sySynch(), ValePrologueBoulderWaits and ValePrologueSquashAndStretchScript.

Definition at line 652 of file vale_prologue.c.

scValePrologueFirstRockFalls

static void scValePrologueFirstRockFalls(void)

On the stormy night, a huge rock falls across the path just south of Isaac's house as he walks past (metatiles (19, 57..59)), and Garet, once with Isaac, says they cannot get around it.

References fdActorGet(), fdActorWalkToAndWait(), fdMapGridWaitForShakeToSettle(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scValePrologueApplyFirstRockCollision(), scValePrologueGaretTalksAboutBlockedPath(), sySoundPlay() and sySynch().

Referenced by ValePrologueCues.

Definition at line 1011 of file vale_prologue.c.

scValePrologueSecondRockFalls

static void scValePrologueSecondRockFalls(void)

On the stormy night, a huge rock falls down onto the path below the house north-west of Isaac's, by the river, as he walks past (metatiles (12, 52) and (14, 55)).

References fdActorGet(), fdActorSetSpritePriority(), fdActorWalkToAndWait(), fdMapGridWaitForShakeToSettle(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scValePrologueApplySecondRockCollision(), scValePrologueGaretTalksAboutBlockedPath(), sySoundPlay() and sySynch().

Referenced by ValePrologueCues.

Definition at line 1090 of file vale_prologue.c.

scValePrologueThirdRockFalls

static void scValePrologueThirdRockFalls(void)

On the stormy night, a huge rock falls down onto the path along the village's west edge, between the two paths to Kraden's cottage, as Isaac walks past (metatiles (2..5, 40..45)).

References fdActorGet(), fdActorSetSpritePriority(), fdActorWalkToAndWait(), fdMapGridWaitForShakeToSettle(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scValePrologueApplyThirdRockCollision(), scValePrologueGaretTalksAboutBlockedPath(), sySoundPlay() and sySynch().

Referenced by ValePrologueCues.

Definition at line 1171 of file vale_prologue.c.

scValePrologueFourthRockFalls

static void scValePrologueFourthRockFalls(void)

On the stormy night, a huge rock falls down onto the path east of Jenna's grandparents' house, by the river, as Isaac walks past (metatiles (25..28, 68..74)).

References fdActorGet(), fdActorWalkToAndWait(), fdMapGridWaitForShakeToSettle(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scValePrologueApplyFourthRockCollision(), scValePrologueGaretTalksAboutBlockedPath(), sySoundPlay() and sySynch().

Referenced by ValePrologueCues.

Definition at line 1251 of file vale_prologue.c.

scValePrologueHearGaretStruggling

static void scValePrologueHearGaretStruggling(void)

On the stormy night, walking up beside Garet, who is dragging his chest of valuables along the path north of his house (metatiles (21, 38..41)), Isaac hears him struggling. "Ugh... Hrnghhh..."

References fdActorFaceActor(), fdActorRunRepeatedMotion(), fdActorShowEmote(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet() and gmFlagSet().

Referenced by ValePrologueCues.

Definition at line 1363 of file vale_prologue.c.

scValePrologueGaretCallsAfterIsaac

static void scValePrologueGaretCallsAfterIsaac(void)

On the stormy night, if Isaac walks on west past Garet and his chest (metatiles (19, 39..42)), Garet calls after him, asking whether he will just leave him there.

References fdActorRunRepeatedMotion(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), gmFlagGet() and scValePrologueGaretLeavesHisChest().

Referenced by ValePrologueCues.

Definition at line 1390 of file vale_prologue.c.

scValePrologueTalkToGaret

static void scValePrologueTalkToGaret(void)

In Vale on the stormy night, talking to Garet is about whether to leave his things behind, or, after the river, about the Boulder.

References fdActorFaceActor(), fdActorFaceDirection(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet() and scValePrologueGaretLeavesHisChest().

Referenced by ValePrologueCues.

Definition at line 1407 of file vale_prologue.c.

scValePrologueUnusedGaretJoinsIsaac

static void scValePrologueUnusedGaretJoinsIsaac(void)

Unused: another version of Garet joining Isaac on the stormy night, which the game never plays.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdScriptAddPartyMember(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scWalkIntoLeader(), Sint32, ValePrologueUnusedGaretPantingScript and ValePrologueUnusedGaretRunsUpScript.

Referenced by ValePrologueCues.

Definition at line 1481 of file vale_prologue.c.

scValePrologueWarnAboutMtAleph

static void scValePrologueWarnAboutMtAleph(void)

On the stormy night, as Isaac walks up to the foot of the steps up to the Sanctum's door, beside the waterfall (metatiles (15..16, 30)), Garet stops him and turns him back. "We shouldn't go north... that'll take us toward Mt. Aleph."

Garet steps out from behind Isaac, faces him, then turns south: "The plaza is over that way. We need to head south." He falls back in behind, and Isaac walks back from the steps.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetPosFX(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait() and scWalkIntoLeader().

Referenced by ValePrologueCues.

Definition at line 1542 of file vale_prologue.c.

scValePrologueWatchBoulderFall

static void scValePrologueWatchBoulderFall(void)

On the stormy night, walking along the path west of Garet's house (metatiles (4..5, 35)), Isaac and Garet see the elders holding the Boulder up on the mountainside with their Psynergy. It slips toward the village, and the elders tell the boys to run.

References BoulderLurch, FarWestElderLetGo, fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorReleaseById(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorWaitForScriptEndById(), fdCameraWaitForMove(), fdPlayQueuedMusic(), fdScriptAppendActorPlacements(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scEndScriptPsynergy(), scStartScriptPsynergy(), scValePrologueCycleBoulderPalette(), scValePrologueFlashPaletteAndSpawnEffects(), scValePrologueUpdateEldersPsynergy(), scWalkIntoLeader(), syCloseEvent(), sySetOrUpdateTickEvent(), sySetTickEvent(), sySoundPlay(), sySynch(), ValePrologueBoulderElders, ValePrologueBoulderFallGaretPath and ValePrologueBoulderFallLeaderPath.

Referenced by ValePrologueCues.

Definition at line 1606 of file vale_prologue.c.

scValePrologueSetActorColorMode

static void scValePrologueSetActorColorMode(ACTOR *actor, Sint32 mode)

Sets the colour mode of every part of a one-sprite actor to mode - 1 (so SPRITE_COLOR_WHITE + 1 draws it white), or with mode 0 flashes it white and plain in turn, two ticks each (ValePrologueFlashColorModes).

References Sint32, TickCount and ValePrologueFlashColorModes.

Referenced by scValePrologueUnusedFlashEldersWhite().

Definition at line 1802 of file vale_prologue.c.

scValePrologueUnusedFlashEldersWhite

static void scValePrologueUnusedFlashEldersWhite(void)

Unused: flashes the four elders white one beat in four, a beat lasting 2 to the power BoulderLurch ticks, as the Boulder slips.

References BoulderLurch, fdActorGet(), scValePrologueSetActorColorMode() and TickCount.

Definition at line 1837 of file vale_prologue.c.

scValePrologueWatchAttemptToSaveFelix

static void scValePrologueWatchAttemptToSaveFelix(void)

On the stormy night, coming down to the river's west bank north of the house by the river (metatiles (8..9, 66..67)), Isaac sees Felix clinging on in the current, and Jenna cries out as her family tries to save him.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetPosFX(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scFieldScriptShowMessageThenWait(), scValePrologueDoraGoesForHelp(), Sint32, sySoundPlay(), sySynch() and ValePrologueSquashAndStretchScript.

Referenced by ValePrologueCues.

Definition at line 1866 of file vale_prologue.c.

scValePrologueTalkAboutSavingFelix

static void scValePrologueTalkAboutSavingFelix(void)

Kyle tells Isaac and Garet to find help for Felix.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorSetAnimation(), fdActorSetScript(), fdActorStartRepeatedMotion(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), Sint32 and ValePrologueSquashAndStretchScript.

Referenced by ValePrologueCues.

Definition at line 2276 of file vale_prologue.c.

scValePrologueBoulderSweepsThemAway

static void scValePrologueBoulderSweepsThemAway(void)

On the stormy night, back at the river with Jenna and the strongman, as Isaac walks out onto the rope bridge across the river in the south (metatiles (13, 85..86)), the Boulder comes down the river and sweeps Felix, his parents and Kyle away.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorSetScript(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scValePrologueShowBoulderSweepingDownriver() and ValePrologueDoraRunsToRiver.

Referenced by ValePrologueCues.

Definition at line 2321 of file vale_prologue.c.

scValeProloguePlaceActor

static inline void scValeProloguePlaceActor(ACTOR *actor, FIXED horizontalPos, FIXED groundPos)

Places an actor and its targets at once, x doubling as its height.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at line 2450 of file vale_prologue.c.

scValeProloguePlayImpactBeat

static inline void scValeProloguePlayImpactBeat(Sint32 shakeAmplitude, Sint32 ticks)

One crash of the Boulder coming down, made of a shake of shakeAmplitude pixels, SE_CRASH and a wait.

References fdMapGridSetShakeFX(), fdScriptWait(), Sint32 and sySoundPlay().

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at line 2463 of file vale_prologue.c.

scValePrologueStrongmanTriesToGoForHelp

static void scValePrologueStrongmanTriesToGoForHelp(void)

An exhausted strongman tries to go for help and can't move.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetScript(), fdActorStop(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet() and ValePrologueSquashAndStretchScript.

Referenced by ValePrologueCues.

Definition at line 2918 of file vale_prologue.c.

scValePrologueFightThirdMonster

static void scValePrologueFightThirdMonster(void)

On the stormy night, a monster attacks as Isaac comes to the west end of the rope bridge west of his house (metatiles (3..4, 54)). It attacks once (slot 2 of ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT).

References fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptStart(), gmFlagSet() and state.

Referenced by ValePrologueCues.

Definition at line 3069 of file vale_prologue.c.

scValePrologueFightFourthMonster

static void scValePrologueFightFourthMonster(void)

On the stormy night, a monster attacks as Isaac steps off the east end of the rope bridge across the river in the south of the village (metatiles (21, 85..86)). It attacks once (slot 3 of ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT).

References fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptStart(), gmFlagSet() and state.

Referenced by ValePrologueCues.

Definition at line 3087 of file vale_prologue.c.

scValePrologueCyclePaletteAndSpawnEffects

static void scValePrologueCyclePaletteAndSpawnEffects(ACTOR *actor)

An elder holding the Boulder. The sprite cycles through the SWAPPED_COLOR_MODES, and rings rise and fall as in scValePrologueFlashPaletteAndSpawnEffects.

References BoulderLurch, fdActorSetColorMode(), scSpawnPsynergyRings(), Sint32, syMathRemainderUnsigned() and TickCount.

Referenced by scValePrologueUpdateEldersPsynergy().

Definition at line 3131 of file vale_prologue.c.

scValePrologueCycleActorPalettes

static void scValePrologueCycleActorPalettes(ACTOR *actor)

Cycles the sprite through the SWAPPED_COLOR_MODES, a step every second tick.

References fdActorSetColorMode(), Sint32, syMathRemainderUnsigned() and TickCount.

Referenced by scValePrologueCycleBoulderPalette().

Definition at line 3150 of file vale_prologue.c.

scValePrologueSearchBrokenDoor

static void scValePrologueSearchBrokenDoor(void)

Once the Boulder has passed, searching the west door of the house on the river's west bank (metatile (6, 74)) finds it will not open. "The force of the impact must have knocked it off its hinges."

References fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().

Referenced by ValePrologueCues.

Definition at line 3214 of file vale_prologue.c.

scValePrologueSearchValuablesChest

static void scValePrologueSearchValuablesChest(void)

On the stormy night, searching the chest Garet was trying to save, left on the path north of his house once he joins (metatiles (25..27, 38)). "It's Garet's chest of valuables."

References fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().

Referenced by ValePrologueCues.

Definition at line 3224 of file vale_prologue.c.

Variables in detail

ValePrologueFlashColorModes

extern Uint8 ValePrologueFlashColorModes[]

Uint8 ValePrologueFlashColorModes[]

The colour modes scValePrologueSetActorColorMode's mode 0 steps through, a step every two ticks.

Referenced by scValePrologueSetActorColorMode().

Definition at lines 68 and 3233 of file vale_prologue.c.

ValePrologueShovingManScript

extern Sint32 ValePrologueShovingManScript[]

Sint32 ValePrologueShovingManScript[]

The stout man runs off toward the plaza after shoving Isaac.

References Sint32.

Referenced by scValePrologueBumpIntoShovingMan().

Definition at lines 69 and 3241 of file vale_prologue.c.

ValePrologueUnusedGaretRunsUpScript

extern Sint32 ValePrologueUnusedGaretRunsUpScript[]

Sint32 ValePrologueUnusedGaretRunsUpScript[]

Garet runs up to Isaac (scValePrologueUnusedGaretJoinsIsaac).

References Sint32.

Referenced by scValePrologueUnusedGaretJoinsIsaac().

Definition at lines 70 and 3257 of file vale_prologue.c.

ValePrologueUnusedGaretPantingScript

extern Sint32 ValePrologueUnusedGaretPantingScript[]

Sint32 ValePrologueUnusedGaretPantingScript[]

Garet heaves for breath. His sprite stretches over 24 ticks and settles over 12, for ever.

References Sint32.

Referenced by scValePrologueUnusedGaretJoinsIsaac().

Definition at lines 71 and 3271 of file vale_prologue.c.

ValePrologueBoulderWaits

extern Sint32 ValePrologueBoulderWaits[]

Sint32 ValePrologueBoulderWaits[]

The Boulder on the mountainside, held in its ANIM_WALK animation until it slips.

References Sint32.

Referenced by scInit().

Definition at lines 72 and 3288 of file vale_prologue.c.

ValePrologueBoulderFallLeaderPath

extern Sint32 ValePrologueBoulderFallLeaderPath[]

Sint32 ValePrologueBoulderFallLeaderPath[]

Isaac and Garet run to where they see the elders hold the Boulder (scValePrologueWatchBoulderFall), and face each other.

References Sint32.

Referenced by scValePrologueWatchBoulderFall().

Definition at lines 73 and 3295 of file vale_prologue.c.

ValePrologueBoulderFallGaretPath

extern Sint32 ValePrologueBoulderFallGaretPath[]

Sint32 ValePrologueBoulderFallGaretPath[]

References Sint32.

Referenced by scValePrologueWatchBoulderFall().

Definition at lines 74 and 3305 of file vale_prologue.c.

ValePrologueDoraRunsIntoRiversideHouse

extern Sint32 ValePrologueDoraRunsIntoRiversideHouse[]

Sint32 ValePrologueDoraRunsIntoRiversideHouse[]

References Sint32.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 75 and 3319 of file vale_prologue.c.

ValePrologueJennaRunsIntoRiversideHouse

extern Sint32 ValePrologueJennaRunsIntoRiversideHouse[]

Sint32 ValePrologueJennaRunsIntoRiversideHouse[]

References Sint32.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 76 and 3329 of file vale_prologue.c.

ValePrologueDoraComesOutOfRiversideHouse

extern Sint32 ValePrologueDoraComesOutOfRiversideHouse[]

Sint32 ValePrologueDoraComesOutOfRiversideHouse[]

References Sint32.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 77 and 3344 of file vale_prologue.c.

ValePrologueJennaComesOutOfRiversideHouse

extern Sint32 ValePrologueJennaComesOutOfRiversideHouse[]

Sint32 ValePrologueJennaComesOutOfRiversideHouse[]

References Sint32.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 78 and 3359 of file vale_prologue.c.

ValePrologueDoraHeadsNorth

extern Sint32 ValePrologueDoraHeadsNorth[]

Sint32 ValePrologueDoraHeadsNorth[]

References Sint32.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 79 and 3374 of file vale_prologue.c.

ValePrologueJennaHeadsForPlaza

extern Sint32 ValePrologueJennaHeadsForPlaza[]

Sint32 ValePrologueJennaHeadsForPlaza[]

References Sint32.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 80 and 3386 of file vale_prologue.c.

ValePrologueDoraLeavesForHelp

extern Sint32 ValePrologueDoraLeavesForHelp[]

Sint32 ValePrologueDoraLeavesForHelp[]

Dora leaves to the west once she has asked the boys to help.

References Sint32.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 81 and 3398 of file vale_prologue.c.

ValePrologueDoraRunsToRiver

extern Sint32 ValePrologueDoraRunsToRiver[]

Sint32 ValePrologueDoraRunsToRiver[]

Dora runs down to the river when Jenna comes back (scValePrologueBoulderSweepsThemAway).

References Sint32.

Referenced by scValePrologueBoulderSweepsThemAway().

Definition at lines 82 and 3415 of file vale_prologue.c.

ValePrologueToRiverbankPath

extern Sint32 ValePrologueToRiverbankPath[]

Sint32 ValePrologueToRiverbankPath[]

The way down to the riverbank that each of the party and the strongman takes in turn as the Boulder comes, then each one's place there.

References Sint32.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 83 and 3429 of file vale_prologue.c.

ValePrologueExhaustedStrongmanGatherPath

extern Sint32 ValePrologueExhaustedStrongmanGatherPath[]

Sint32 ValePrologueExhaustedStrongmanGatherPath[]

References Sint32.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 84 and 3450 of file vale_prologue.c.

ValePrologueJennaGatherPath

extern Sint32 ValePrologueJennaGatherPath[]

Sint32 ValePrologueJennaGatherPath[]

References Sint32.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 85 and 3458 of file vale_prologue.c.

ValePrologueLeaderGatherPath

extern Sint32 ValePrologueLeaderGatherPath[]

Sint32 ValePrologueLeaderGatherPath[]

References Sint32.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 86 and 3466 of file vale_prologue.c.

ValePrologueGaretGatherPath

extern Sint32 ValePrologueGaretGatherPath[]

Sint32 ValePrologueGaretGatherPath[]

References Sint32.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 87 and 3474 of file vale_prologue.c.

ValePrologueLookAroundScript

extern Sint32 ValePrologueLookAroundScript[]

Sint32 ValePrologueLookAroundScript[]

Everyone on the bank looks about (scValePrologueLookAround).

References scValePrologueLookAround() and Sint32.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 88 and 3483 of file vale_prologue.c.

ValePrologueSquashAndStretchScript

extern Sint32 ValePrologueSquashAndStretchScript[]

Sint32 ValePrologueSquashAndStretchScript[]

A squash and stretch every 60 to 149 ticks (scSquashAndStretch), for the people straining at the river and, after the Boulder, those on the bank.

References scSquashAndStretch() and Sint32.

Referenced by scInit(), scValePrologueDoraGoesForHelp(), scValePrologueShowBoulderSweepingDownriver(), scValePrologueStrongmanTriesToGoForHelp(), scValePrologueTalkAboutSavingFelix() and scValePrologueWatchAttemptToSaveFelix().

Definition at lines 89 and 3490 of file vale_prologue.c.

ValePrologueBoulderRollsDownriver

extern Sint32 ValePrologueBoulderRollsDownriver[]

Sint32 ValePrologueBoulderRollsDownriver[]

The Boulder bounds down the river in nine steps. Each sets its step in SW_USER_VALUE, which scValePrologueUpdateBoulderShadow reads and scValePrologueShowBoulderSweepingDownriver waits on, and two of its landings start a shake countdown in SW_TIMER.

References Sint32.

Referenced by scValePrologueShowBoulderSweepingDownriver().

Definition at lines 90 and 3499 of file vale_prologue.c.

ValePrologueEntrances

extern SCENE_ENTRANCE ValePrologueEntrances[]

SCENE_ENTRANCE ValePrologueEntrances[]

Referenced by scGetEntrances().

Definition at lines 91 and 3551 of file vale_prologue.c.

ValePrologueExits

extern Uint32 ValePrologueExits[]

Uint32 ValePrologueExits[]

Referenced by scGetExits().

Definition at lines 92 and 3586 of file vale_prologue.c.

ValePrologueActorPlacements

extern ACTOR_PLACE ValePrologueActorPlacements[]

ACTOR_PLACE ValePrologueActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 93 and 3626 of file vale_prologue.c.

ValePrologueBoulderElders

extern ACTOR_PLACE ValePrologueBoulderElders[]

ACTOR_PLACE ValePrologueBoulderElders[]

Referenced by scValePrologueWatchBoulderFall().

Definition at lines 94 and 3670 of file vale_prologue.c.

ValePrologueCues

extern CUE ValePrologueCues[]

CUE ValePrologueCues[]

References scValePrologueBoulderSweepsThemAway(), scValePrologueEnterGaretsHouse(), scValePrologueEnterIsaacsHouse(), scValePrologueEnterJennasGrandparentsHouse(), scValePrologueEnterNorthwestHouse(), scValePrologueEnterRiversideHouseByEastDoor(), scValePrologueEnterRiversideHouseByWestDoor(), scValePrologueEnterSouthHouse(), scValePrologueFightFourthMonster(), scValePrologueFightThirdMonster(), scValePrologueFirstRockFalls(), scValePrologueFourthRockFalls(), scValePrologueGaretCallsAfterIsaac(), scValePrologueHearGaretStruggling(), scValePrologueLeaveNorthwestToValePlaza(), scValePrologueLeaveToValeKradensCottageNorth(), scValePrologueLeaveToValeKradensCottageSouth(), scValePrologueLeaveToValePlaza(), scValePrologueSearchBrokenDoor(), scValePrologueSearchValuablesChest(), scValePrologueSecondRockFalls(), scValePrologueStepOffBridge(), scValePrologueStepOntoBridge(), scValePrologueStrongmanTriesToGoForHelp(), scValePrologueTalkAboutSavingFelix(), scValePrologueTalkToGaret(), scValePrologueThirdRockFalls(), scValePrologueUnusedEnterSouthHouseByWreckedHouseDoor(), scValePrologueUnusedGaretJoinsIsaac(), scValePrologueWarnAboutMtAleph(), scValePrologueWatchAttemptToSaveFelix() and scValePrologueWatchBoulderFall().

Referenced by scGetCues().

Definition at lines 95 and 3686 of file vale_prologue.c.

ValePrologueSanctumDoorOpens

extern Uint16 ValePrologueSanctumDoorOpens[]

Uint16 ValePrologueSanctumDoorOpens[]

The Sanctum's door (scValePrologueUnusedOpenSanctumDoor).

Referenced by scValePrologueUnusedOpenSanctumDoor().

Definition at lines 96 and 3771 of file vale_prologue.c.

ValePrologueIsaacsDoorOpens

extern Uint16 ValePrologueIsaacsDoorOpens[]

Uint16 ValePrologueIsaacsDoorOpens[]

The door of Isaac's house, and of Garet's and the house by the river.

Referenced by scValePrologueDoraGoesForHelp(), scValePrologueDoraSendsIsaacToThePlaza(), scValePrologueEnterGaretsHouse(), scValePrologueEnterIsaacsHouse(), scValePrologueEnterRiversideHouseByWestDoor() and scValePrologueUnusedEnterSouthHouseByWreckedHouseDoor().

Definition at lines 97 and 3778 of file vale_prologue.c.

ValePrologueGrandparentsDoorOpens

extern Uint16 ValePrologueGrandparentsDoorOpens[]

Uint16 ValePrologueGrandparentsDoorOpens[]

The door of the house of Jenna's grandparents, and two more of the kind.

Referenced by scValePrologueDoraGoesForHelp(), scValePrologueEnterJennasGrandparentsHouse(), scValePrologueEnterNorthwestHouse() and scValePrologueEnterRiversideHouseByEastDoor().

Definition at lines 98 and 3785 of file vale_prologue.c.

ValePrologueWestHouseDoorOpens

extern Uint16 ValePrologueWestHouseDoorOpens[]

Uint16 ValePrologueWestHouseDoorOpens[]

The door VALE_PROLOGUE_TO_COTTAGE_ROOMS_A_WEST goes through.

Referenced by scValePrologueEnterSouthHouse().

Definition at lines 99 and 3792 of file vale_prologue.c.

ValePrologueIsaacsDoorCloses

extern Uint16 ValePrologueIsaacsDoorCloses[]

Uint16 ValePrologueIsaacsDoorCloses[]

Shuts a door of ValePrologueIsaacsDoorOpens's kind, with the shut picture of Isaac's door, after Dora and Jenna come out of the house by the river.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 100 and 3800 of file vale_prologue.c.

ValePrologueGrandparentsDoorCloses

extern Uint16 ValePrologueGrandparentsDoorCloses[]

Uint16 ValePrologueGrandparentsDoorCloses[]

Shuts a door of ValePrologueGrandparentsDoorOpens's kind behind Dora and Jenna as they go into the house by the river.

Referenced by scValePrologueDoraGoesForHelp().

Definition at lines 101 and 3808 of file vale_prologue.c.

FarWestElderLetGo

static Sint32 FarWestElderLetGo

0 while the westernmost elder strains at the Boulder, 1 once he lets go.

References Sint32.

Referenced by scValePrologueUpdateEldersPsynergy() and scValePrologueWatchBoulderFall().

Definition at line 372 of file vale_prologue.c.

BoulderLurch

static Sint32 BoulderLurch

How hard the Boulder lurches, 0 to 2, raised and lowered as it slips and settles: each step puts RINGS_INTERVAL_STEP more ticks between the elders' rings.

References Sint32.

Referenced by scValePrologueCyclePaletteAndSpawnEffects(), scValePrologueFlashPaletteAndSpawnEffects(), scValePrologueUnusedFlashEldersWhite() and scValePrologueWatchBoulderFall().

Definition at line 376 of file vale_prologue.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_VALE_ISAACS_DOOR_OPENFLAG_VALE_SHOVING_MANS_DOOR_OPENELDERS_FLASH_TICKSRINGS_INTERVALRINGS_INTERVAL_STEPSWAPPED_COLOR_MODESVALE_PROLOGUE_GLANCE_PAUSEPSYNERGY_RINGS_SOUNDEnumerations in detailVALE_PROLOGUE_ACTOR_IDVALE_PROLOGUE_METATILE_BEHAVIORVALE_PROLOGUE_ANIMATIONVALE_PROLOGUE_AREA_FLAGFunctions in detailscValePrologueDoraSendsIsaacToThePlazascValePrologueApplyFirstRockCollisionscValePrologueApplySecondRockCollisionscValePrologueApplyThirdRockCollisionscValePrologueApplyFourthRockCollisionscValePrologueBumpIntoShovingManscValePrologueGaretLeavesHisChestscValePrologueGaretTalksAboutBlockedPathscValePrologueDoraGoesForHelpscValePrologueShowBoulderSweepingDownriverscValePrologueFlashLightningscValePrologueUpdateBoulderShadowscValePrologueFlickerBoulderShadowscValePrologueGaretFollowsIsaacscValePrologueRebuildRiverbankscValePrologueFlashPaletteAndSpawnEffectsscValePrologueUpdateEldersPsynergyscValePrologueCycleBoulderPalettescValePrologueCopyLeaderSpritePriorityscValePrologueLookAroundscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscGetCuesscValePrologueStepOntoBridgescValePrologueStepOffBridgescValePrologueUnusedOpenSanctumDoorscValePrologueLeaveNorthwestToValePlazascValePrologueLeaveToValeKradensCottageNorthscValePrologueLeaveToValeKradensCottageSouthscValePrologueLeaveToValePlazascValePrologueEnterGaretsHousescValePrologueEnterNorthwestHousescValePrologueEnterIsaacsHousescValePrologueEnterJennasGrandparentsHousescValePrologueEnterSouthHousescValePrologueUnusedEnterSouthHouseByWreckedHouseDoorscValePrologueEnterRiversideHouseByWestDoorscValePrologueEnterRiversideHouseByEastDoorscInitscValePrologueFirstRockFallsscValePrologueSecondRockFallsscValePrologueThirdRockFallsscValePrologueFourthRockFallsscValePrologueHearGaretStrugglingscValePrologueGaretCallsAfterIsaacscValePrologueTalkToGaretscValePrologueUnusedGaretJoinsIsaacscValePrologueWarnAboutMtAlephscValePrologueWatchBoulderFallscValePrologueSetActorColorModescValePrologueUnusedFlashEldersWhitescValePrologueWatchAttemptToSaveFelixscValePrologueTalkAboutSavingFelixscValePrologueBoulderSweepsThemAwayscValeProloguePlaceActorscValeProloguePlayImpactBeatscValePrologueStrongmanTriesToGoForHelpscValePrologueFightThirdMonsterscValePrologueFightFourthMonsterscValePrologueCyclePaletteAndSpawnEffectsscValePrologueCycleActorPalettesscValePrologueSearchBrokenDoorscValePrologueSearchValuablesChestVariables in detailValePrologueFlashColorModesValePrologueShovingManScriptValePrologueUnusedGaretRunsUpScriptValePrologueUnusedGaretPantingScriptValePrologueBoulderWaitsValePrologueBoulderFallLeaderPathValePrologueBoulderFallGaretPathValePrologueDoraRunsIntoRiversideHouseValePrologueJennaRunsIntoRiversideHouseValePrologueDoraComesOutOfRiversideHouseValePrologueJennaComesOutOfRiversideHouseValePrologueDoraHeadsNorthValePrologueJennaHeadsForPlazaValePrologueDoraLeavesForHelpValePrologueDoraRunsToRiverValePrologueToRiverbankPathValePrologueExhaustedStrongmanGatherPathValePrologueJennaGatherPathValePrologueLeaderGatherPathValePrologueGaretGatherPathValePrologueLookAroundScriptValePrologueSquashAndStretchScriptValePrologueBoulderRollsDownriverValePrologueEntrancesValePrologueExitsValePrologueActorPlacementsValePrologueBoulderEldersValePrologueCuesValePrologueSanctumDoorOpensValePrologueIsaacsDoorOpensValePrologueGrandparentsDoorOpensValePrologueWestHouseDoorOpensValePrologueIsaacsDoorClosesValePrologueGrandparentsDoorClosesFarWestElderLetGoBoulderLurch