Skip to Content
The Alchemy Project

src/scene/venus_lighthouse_entrance.c

Outside the Venus Lighthouse, where the prologue hands the story to Jenna. More…

Structures

NameDescription
structDUST_PUFF_STATEThe dust puffs' state, kept in RamHeapSlots' menu runtime while they play: their pictures, the puffs each with its place and sprite, and the next to emit.
structBLAST_COLUMN_STATEThe rising column's state, kept in RamHeapSlots' menu runtime while it plays: its pictures, its pieces of water, the soldier it lifts and the puddle left under him.

Macros

NameDescription
#defineFLAG_VENUS_LIGHTHOUSE_AMBUSH_SEEN 0x890Set as Tolbi's soldiers ambush the party; the soldiers and workmen are gone from then on.
#defineFLAG_VENUS_LIGHTHOUSE_BIRDS_LANDED 0x891Set as the birds land the first time the party comes out of the lighthouse.
#defineFLAG_VENUS_LIGHTHOUSE_BIRDS_FLEW_OFF 0x892Set as the birds fly off; they are gone from then on.
#defineFLAG_VENUS_LIGHTHOUSE_RUFFIAN_BEATEN 0x893Set as the party comes back from beating the Ruffian who waited for backup; he then lies beaten by the road.
#defineDUST_PUFFS 96The dust puffs kept at once, each emitted in turn over the oldest, and the ticks a puff lasts.
#defineDUST_PUFF_TICKS 16
#defineBLAST_COLUMN_PIECES 16The column: its pieces, 16 pixels each, and its 16x16 pictures in 256 colours, four for its top and then four for the column below, each shown for four ticks in turn.
#defineBLAST_ANIMATION_PICTURES 4
#defineBLAST_PICTURE_TILES SPRITE_TILES_8BPP(16, 16)

Enumerations

NameDescription
enumVENUS_LIGHTHOUSE_ENTRANCE_ENTRANCE { ENTRANCE_LIGHTHOUSE_DOOR, ENTRANCE_PLAZA_PATH, ENTRANCE_BY_W … }The ways into the scene that its set-up answers, besides scene_exits.h's.
enumVENUS_LIGHTHOUSE_ENTRANCE_METATILE { METATILE_BESIDE_DOOR, METATILE_BELOW_DOOR, METATILE_ROAD_WES … }The map metatiles the step cues answer, by the behaviour the map gives them: the row before the lighthouse door, either side of it (metatiles (17, 7) to (29, 7)), where the birds take off; the path below the door, metatiles (21, 15) to (25, 15), where the soldiers close in; the road west, metatiles (5, 14) to (5, 18), where the Ruffian waits; and the way east, metatiles (28, 24) to (28, 29), where Kraden turns Jenna back.
enumanonymous enum { ANIM_ALEX_RAISE_HAND, ANIM_ALEX_LOWER_HAND }Alex's own animations (alex.tsv) as he casts: raising a hand, then lowering it.
enumVENUS_LIGHTHOUSE_ENTRANCE_ACTOR_ID { ACTOR_KRADEN, ACTOR_ALEX, ACTOR_WEST_BIRD, ACTOR_EAST_BIRD, … }The scene's placed actors, in the rows of ActorPlacements.
enumanonymous enum { ANIM_BIRD_LAND, ANIM_BIRD_TAKE_OFF, ANIM_BIRD_FLY, ANIM_BIRD … }The birds' animations (seagull.tsv).
enumanonymous enum { ANIM_RUFFIAN_FRET, ANIM_RUFFIAN_BEG, ANIM_WORKMAN_RUN, ANIM_ … }The Ruffian's and the workmen's own animations (ruffian.tsv, strongman.tsv and bald_muscular_man.tsv).
enumBLAST_STAGE { BLAST_START, BLAST_RISE, BLAST_HOLD, BLAST_HURL, BLAST_SOLDI … }The column of water's stages, each run by scVenusLighthouseEntranceUpdateBlastColumn for the ticks it takes.

Functions

NameDescription
voidscVenusLighthouseEntranceBlastActorSkyward (Sint32 id)A column of water rises under a soldier, holds him up, then hurls him off the top of the screen, and the ground shakes as the column sinks.
voidscVenusLighthouseEntranceEmitDust (ACTOR *actor, Sint32 x, Sint32 y, Sint32 z)Starts the next dust puff at a random place near the given point, rising and drifting outwards.
voidscVenusLighthouseEntranceStartDust (void)Loads the dust puffs' pictures and starts drawing them each tick.
voidscVenusLighthouseEntranceStopDust (void)Stops the dust puffs and frees their pictures and state.
voidscVenusLighthouseEntranceUpdateBlastColumn (void)Each tick of the column of water: it rises, holds, hurls the soldier off the top of the screen, sinks, and its puddle dries away as the ground shakes.
voidscVenusLighthouseEntranceUpdateDust (void)Each tick, draws and moves the dust puffs still playing.
voidscVenusLighthouseEntranceBirdsFlyOff (void)Walking past the lighthouse door, metatiles (17, 7) to (29, 7), the birds take off and fly away.
voidscVenusLighthouseEntranceSoldiersAmbushParty (void)Walking down the path below the lighthouse door, metatiles (21, 15) to (25, 15): Tolbi's soldiers and the workmen of Lalivero close in on Jenna and Kraden.
voidscVenusLighthouseEntranceRuffianWaitsForBackup (void)On the road west, metatiles (5, 14) to (5, 18), the Ruffian left to wait for backup sees that Alex is not with Jenna and Kraden, and fights them.
voidscVenusLighthouseEntrancePointToMeetingSpot (void)Heading east, metatiles (28, 24) to (28, 29), Kraden jumps out from behind Jenna: "Not that way, Jenna!
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscVenusLighthouseEntranceBlastActorWithPsynergy (Sint32 soldierId)Talking to the soldier in front of the three in a row, before the ambush: the screen turns blue, a column of water rises under him and throws him up off the top of the screen, as Alex's Psynergy does in the ambush, and the colours come back.
voidscVenusLighthouseEntranceKickUpDust (ACTOR *actor)The update of a soldier or workman running off: dust kicks up at his feet, with a scuff every eighth tick.
voidscVenusLighthouseEntranceRunAndKickUpDust (Sint32 actorId)Talking to the soldier captain, before the ambush: he dashes off north-east a few steps and back again, kicking up a trail of dust with a scuffing sound.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscVenusLighthouseEntranceBirdsLand (void)As Jenna and Kraden first come out of the lighthouse, two birds fly down and land below the door.
voidscVenusLighthouseEntranceWakeUp (void)After a lost battle in the prologue, Jenna wakes by the door with Kraden and Alex beside her; Alex leaves again for Lalivero.
Sint32scInit (void)Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
extern Sint32VenusLighthouseEntranceBirdLands []
extern Sint32VenusLighthouseEntranceBirdFlies []
SCENE_ENTRANCESceneEntrances []Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole.
Uint32SceneExits []The room has no exits of its own.
ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.
CUESceneCues []The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers.

Description

Outside the Venus Lighthouse, where the prologue hands the story to Jenna. Felix has left the group, and Jenna and Kraden come out of the lighthouse alone:

Macros in detail

FLAG_VENUS_LIGHTHOUSE_AMBUSH_SEEN

#define FLAG_VENUS_LIGHTHOUSE_AMBUSH_SEEN 0x890

Set as Tolbi's soldiers ambush the party; the soldiers and workmen are gone from then on.

Referenced by SceneCues, scInit() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at line 28 of file venus_lighthouse_entrance.c.

FLAG_VENUS_LIGHTHOUSE_BIRDS_LANDED

#define FLAG_VENUS_LIGHTHOUSE_BIRDS_LANDED 0x891

Set as the birds land the first time the party comes out of the lighthouse.

Referenced by scInit() and scVenusLighthouseEntranceBirdsLand().

Definition at line 30 of file venus_lighthouse_entrance.c.

FLAG_VENUS_LIGHTHOUSE_BIRDS_FLEW_OFF

#define FLAG_VENUS_LIGHTHOUSE_BIRDS_FLEW_OFF 0x892

Set as the birds fly off; they are gone from then on.

Referenced by SceneCues, scInit() and scVenusLighthouseEntranceBirdsFlyOff().

Definition at line 32 of file venus_lighthouse_entrance.c.

FLAG_VENUS_LIGHTHOUSE_RUFFIAN_BEATEN

#define FLAG_VENUS_LIGHTHOUSE_RUFFIAN_BEATEN 0x893

Set as the party comes back from beating the Ruffian who waited for backup; he then lies beaten by the road.

Referenced by SceneCues and scInit().

Definition at line 35 of file venus_lighthouse_entrance.c.

DUST_PUFFS

#define DUST_PUFFS 96

The dust puffs kept at once, each emitted in turn over the oldest, and the ticks a puff lasts.

Referenced by scVenusLighthouseEntranceEmitDust(), scVenusLighthouseEntranceStartDust() and scVenusLighthouseEntranceUpdateDust().

Definition at line 149 of file venus_lighthouse_entrance.c.

DUST_PUFF_TICKS

#define DUST_PUFF_TICKS 16

Referenced by scVenusLighthouseEntranceUpdateDust().

Definition at line 150 of file venus_lighthouse_entrance.c.

BLAST_COLUMN_PIECES

#define BLAST_COLUMN_PIECES 16

The column: its pieces, 16 pixels each, and its 16x16 pictures in 256 colours, four for its top and then four for the column below, each shown for four ticks in turn.

Referenced by scVenusLighthouseEntranceBlastActorSkyward() and scVenusLighthouseEntranceUpdateBlastColumn().

Definition at line 1336 of file venus_lighthouse_entrance.c.

BLAST_ANIMATION_PICTURES

#define BLAST_ANIMATION_PICTURES 4

Referenced by scVenusLighthouseEntranceBlastActorSkyward() and scVenusLighthouseEntranceUpdateBlastColumn().

Definition at line 1337 of file venus_lighthouse_entrance.c.

BLAST_PICTURE_TILES

#define BLAST_PICTURE_TILES SPRITE_TILES_8BPP(16, 16)

Referenced by scVenusLighthouseEntranceBlastActorSkyward() and scVenusLighthouseEntranceUpdateBlastColumn().

Definition at line 1338 of file venus_lighthouse_entrance.c.

Enumerations in detail

VENUS_LIGHTHOUSE_ENTRANCE_ENTRANCE

enum VENUS_LIGHTHOUSE_ENTRANCE_ENTRANCE

The ways into the scene that its set-up answers, besides scene_exits.h's.

EnumeratorValueDescription
ENTRANCE_LIGHTHOUSE_DOOR1The map's own way in, in the lighthouse's doorway at the top of its stairs: the party goes on to it once Jenna takes over, and wakes there after a defeat.
ENTRANCE_PLAZA_PATH10On the path south of the plaza, between the bushes: where the debug menu's Venus Lighthouse start puts the party (gmMainRoutineRun).
ENTRANCE_BY_WORKMEN11Further south, between the workmen and the soldiers.
ENTRANCE_WEST_ROAD12On the west road, beside the Ruffian who waits for backup.
ENTRANCE_JENNA_TAKES_OVER90Where the prologue hands the party to Jenna: Felix, Sheba and Piers leave it.
ENTRANCE_AFTER_RUFFIAN_BATTLE99Back from the battle with the Ruffian who waited for backup.

Definition at line 38 of file venus_lighthouse_entrance.c.

VENUS_LIGHTHOUSE_ENTRANCE_METATILE

enum VENUS_LIGHTHOUSE_ENTRANCE_METATILE

The map metatiles the step cues answer, by the behaviour the map gives them: the row before the lighthouse door, either side of it (metatiles (17, 7) to (29, 7)), where the birds take off; the path below the door, metatiles (21, 15) to (25, 15), where the soldiers close in; the road west, metatiles (5, 14) to (5, 18), where the Ruffian waits; and the way east, metatiles (28, 24) to (28, 29), where Kraden turns Jenna back.

EnumeratorValueDescription
METATILE_BESIDE_DOOR9
METATILE_BELOW_DOOR10
METATILE_ROAD_WEST11
METATILE_WAY_EAST12

Definition at line 66 of file venus_lighthouse_entrance.c.

anonymous enum

enum { ANIM_ALEX_RAISE_HAND, ANIM_ALEX_LOWER_HAND }

Alex's own animations (alex.tsv) as he casts: raising a hand, then lowering it.

EnumeratorValueDescription
ANIM_ALEX_RAISE_HAND8
ANIM_ALEX_LOWER_HAND9

Definition at line 76 of file venus_lighthouse_entrance.c.

VENUS_LIGHTHOUSE_ENTRANCE_ACTOR_ID

enum VENUS_LIGHTHOUSE_ENTRANCE_ACTOR_ID

The scene's placed actors, in the rows of ActorPlacements.

EnumeratorValueDescription
ACTOR_KRADENACTOR_FIRST_PLACED
ACTOR_ALEX
ACTOR_WEST_BIRDThe two birds that land by the door and fly off.
ACTOR_EAST_BIRD
ACTOR_SHOUTING_SOLDIERTolbi's soldiers: the two Alex hurls skyward, the two who flee before him and the one sent to Lalivero for backup.
ACTOR_SURPRISED_SOLDIER
ACTOR_DOUBTING_SOLDIER
ACTOR_SOLDIER_CAPTAIN
ACTOR_SOLDIER_SENT_FOR_BACKUP
ACTOR_SCOLDING_WORKMANThe workmen of Lalivero who come looking for Sheba: four who run from Alex, and the one their boss sends to the caves.
ACTOR_INDIGNANT_WORKMAN
ACTOR_EAGER_WORKMAN
ACTOR_WORKMAN_BOSS
ACTOR_WORKMAN_SENT_TO_CAVES
ACTOR_WAITING_RUFFIANThe Ruffian left on the road west to wait for backup.

Definition at line 83 of file venus_lighthouse_entrance.c.

anonymous enum

enum { ANIM_BIRD_LAND, ANIM_BIRD_TAKE_OFF, ANIM_BIRD_FLY, ANIM_BIRD_PERCH }

The birds' animations (seagull.tsv).

EnumeratorValueDescription
ANIM_BIRD_LAND2Two flaps, settling with the wings folded.
ANIM_BIRD_TAKE_OFF3Spreading the wings to take off.
ANIM_BIRD_FLY4
ANIM_BIRD_PERCH5Perched, the wings folded.

Definition at line 122 of file venus_lighthouse_entrance.c.

anonymous enum

enum { ANIM_RUFFIAN_FRET, ANIM_RUFFIAN_BEG, ANIM_WORKMAN_RUN, ANIM_WORKMAN_SHAKE_OFF_DAZE }

The Ruffian's and the workmen's own animations (ruffian.tsv, strongman.tsv and bald_muscular_man.tsv).

EnumeratorValueDescription
ANIM_RUFFIAN_FRET5Shaking his head quickly, over and over, as he grumbles at being left to wait.
ANIM_RUFFIAN_BEG12As he begs to be let go: past the last of ruffian.tsv (6), so he holds still in his standing picture.
ANIM_WORKMAN_RUN10The walk at twice the pace.
ANIM_WORKMAN_SHAKE_OFF_DAZE11A person's head shake, fast and eight times over, as he picks himself up dazed.

Definition at line 133 of file venus_lighthouse_entrance.c.

BLAST_STAGE

enum BLAST_STAGE

The column of water's stages, each run by scVenusLighthouseEntranceUpdateBlastColumn for the ticks it takes.

EnumeratorValueDescription
BLAST_START
BLAST_RISEIt rises under the soldier, 4 pixels a tick.
BLAST_HOLDIt holds him up for a second and a half.
BLAST_HURLIt shoots up and hurls him off the top of the screen.
BLAST_SOLDIER_GONEOut of sight, he is taken off the stage.
BLAST_SINK
BLAST_PUDDLE_DRIESThe puddle dries away, with the sound of a fall.
BLAST_GROUND_SHAKESA clatter, and the ground shakes for half a second.
BLAST_FINISHED999All over: scVenusLighthouseEntranceBlastActorSkyward waits for this.

Definition at line 1318 of file venus_lighthouse_entrance.c.

Functions in detail

scVenusLighthouseEntranceBlastActorSkyward

void scVenusLighthouseEntranceBlastActorSkyward(Sint32 id)

A column of water rises under a soldier, holds him up, then hurls him off the top of the screen, and the ground shakes as the column sinks.

References fdActorGet(), fdActorGetSpriteDepth(), fdActorGetSpritePriority(), fdActorRelease(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdEffectSpriteInit(), fdScriptPlaySound(), FieldGeyserTiles, mnVRAMLoad(), scFieldActorCreate(), scFieldCloseEvent(), scVenusLighthouseEntranceUpdateBlastColumn(), Sint32, syDecompressTaggedLZ(), syHeapSlotAllocate(), syHeapSlotRelease(), sySetTickEvent(), sySynch(), syVRAMCacheFindFreeEntry() and syVRAMCacheFreeEntry().

Referenced by scVenusLighthouseEntranceBlastActorWithPsynergy() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at lines 24 and 1532 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceEmitDust

void scVenusLighthouseEntranceEmitDust(ACTOR *actor, Sint32 x, Sint32 y, Sint32 z)

Starts the next dust puff at a random place near the given point, rising and drifting outwards.

References fdActorGetSpriteDepth(), fdActorGetSpritePriority(), scFieldVectorAddPolarOffsetFX(), Sint32 and syRandom().

Referenced by scVenusLighthouseEntranceKickUpDust().

Definition at lines 107 and 1617 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceStartDust

void scVenusLighthouseEntranceStartDust(void)

Loads the dust puffs' pictures and starts drawing them each tick.

References fdEffectSpriteInit(), mnVRAMLoad(), scVenusLighthouseEntranceUpdateDust(), Sint32, syDecompressTaggedLZ(), syHeapSlotAllocate(), syResourceGetTableEntry(), sySetTickEvent() and syVRAMCacheFindFreeEntry().

Referenced by scVenusLighthouseEntranceRunAndKickUpDust() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at lines 111 and 1645 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceStopDust

void scVenusLighthouseEntranceStopDust(void)

Stops the dust puffs and frees their pictures and state.

References scFieldCloseEvent(), scVenusLighthouseEntranceUpdateDust(), syHeapSlotRelease() and syVRAMCacheFreeEntry().

Referenced by scVenusLighthouseEntranceRunAndKickUpDust() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at lines 112 and 1678 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceUpdateBlastColumn

void scVenusLighthouseEntranceUpdateBlastColumn(void)

Each tick of the column of water: it rises, holds, hurls the soldier off the top of the screen, sinks, and its puddle dries away as the ground shakes.

References fdEffectSpriteDrawAtWorldPos(), Sint32, syMathMulFX(), sySin() and sySoundPlay().

Referenced by scVenusLighthouseEntranceBlastActorSkyward().

Definition at lines 113 and 1366 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceUpdateDust

void scVenusLighthouseEntranceUpdateDust(void)

Each tick, draws and moves the dust puffs still playing.

References fdBattleEffectStepVector3(), fdEffectSpriteDrawAtWorldPos() and Sint32.

Referenced by scVenusLighthouseEntranceStartDust() and scVenusLighthouseEntranceStopDust().

Definition at lines 114 and 1593 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceBirdsFlyOff

void scVenusLighthouseEntranceBirdsFlyOff(void)

Walking past the lighthouse door, metatiles (17, 7) to (29, 7), the birds take off and fly away.

References fdActorGet(), fdActorSetAnimation(), fdActorStartScript(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scFieldActorSetAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and VenusLighthouseEntranceBirdFlies.

Referenced by SceneCues.

Definition at lines 115 and 381 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceSoldiersAmbushParty

void scVenusLighthouseEntranceSoldiersAmbushParty(void)

Walking down the path below the lighthouse door, metatiles (21, 15) to (25, 15): Tolbi's soldiers and the workmen of Lalivero close in on Jenna and Kraden. Alex arrives, tells them to meet him at Idejima, throws two soldiers skyward on columns of water and sends the workmen running, then follows the last soldiers to Lalivero.

References fdActorFaceDirection(), fdActorGet(), fdActorGetById(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorShowEmote(), fdActorWalkByAndWait(), fdActorWalkTo(), fdActorWalkToAndWait(), fdBattleEffectEndArcEffect(), fdBattleEffectSetObjectUpdateMode(), fdBattleEffectStartArcEffect(), fdBattleEffectWaitForArcGroups(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdMessageShowAtActor(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdStartColorTransition(), fdStartPaletteTransition(), scFieldActorJump(), scFieldActorLaunchFromLeader(), scFieldActorSetSpritePriority(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scScriptCameraFollowActor(), scVenusLighthouseEntranceBlastActorSkyward(), scVenusLighthouseEntranceKickUpDust(), scVenusLighthouseEntranceStartDust(), scVenusLighthouseEntranceStopDust() and Sint32.

Referenced by SceneCues.

Definition at lines 116 and 415 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceRuffianWaitsForBackup

void scVenusLighthouseEntranceRuffianWaitsForBackup(void)

On the road west, metatiles (5, 14) to (5, 18), the Ruffian left to wait for backup sees that Alex is not with Jenna and Kraden, and fights them.

References fdActorFaceDirection(), fdActorSetAnimation(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptSetDefeatDestination(), fdScriptStart(), scFieldActorJump(), scFieldActorSetAnimation(), scFieldActorSetAnimationAndWait(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetAfterBattleDestination(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and Sint32.

Referenced by SceneCues.

Definition at lines 117 and 1109 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntrancePointToMeetingSpot

void scVenusLighthouseEntrancePointToMeetingSpot(void)

Heading east, metatiles (28, 24) to (28, 29), Kraden jumps out from behind Jenna: "Not that way, Jenna! The meeting spot is west of here." She steps back.

References fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorWalkByAndWait(), fdScriptEnd(), fdScriptStart(), scFieldActorLaunchFromLeader(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and Sint32.

Referenced by SceneCues.

Definition at lines 118 and 1167 of file venus_lighthouse_entrance.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 165 of file venus_lighthouse_entrance.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 170 of file venus_lighthouse_entrance.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 175 of file venus_lighthouse_entrance.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 180 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceBlastActorWithPsynergy

void scVenusLighthouseEntranceBlastActorWithPsynergy(Sint32 soldierId)

Talking to the soldier in front of the three in a row, before the ambush: the screen turns blue, a column of water rises under him and throws him up off the top of the screen, as Alex's Psynergy does in the ambush, and the colours come back. The player never gets to talk to him: the soldiers stand south of the plaza, and the only way down to them is the path between the bushes, which the metatiles below the door, (21, 15) to (25, 15), span from side to side; stepping there starts the ambush, after which they are gone. Walking Jenna down either side stair from the lighthouse door reaches the plaza without starting it, and the bushes stop her there.

References fdActorGet(), fdBattleEffectEndArcEffect(), fdBattleEffectSetObjectUpdateMode(), fdBattleEffectStartArcEffect(), fdBattleEffectWaitForArcGroups(), fdStartColorTransition(), fdStartPaletteTransition(), scFieldScriptWait(), scVenusLighthouseEntranceBlastActorSkyward() and Sint32.

Referenced by SceneCues.

Definition at line 194 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceKickUpDust

void scVenusLighthouseEntranceKickUpDust(ACTOR *actor)

The update of a soldier or workman running off: dust kicks up at his feet, with a scuff every eighth tick.

References fdScriptPlaySound() and scVenusLighthouseEntranceEmitDust().

Referenced by scVenusLighthouseEntranceRunAndKickUpDust() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at line 211 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceRunAndKickUpDust

void scVenusLighthouseEntranceRunAndKickUpDust(Sint32 actorId)

Talking to the soldier captain, before the ambush: he dashes off north-east a few steps and back again, kicking up a trail of dust with a scuffing sound. The player never gets to talk to him, for the reason given at scVenusLighthouseEntranceBlastActorWithPsynergy.

References fdActorGet(), fdActorWalkByAndWait(), scFieldScriptWait(), scVenusLighthouseEntranceKickUpDust(), scVenusLighthouseEntranceStartDust(), scVenusLighthouseEntranceStopDust() and Sint32.

Referenced by SceneCues.

Definition at line 223 of file venus_lighthouse_entrance.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 238 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceBirdsLand

void scVenusLighthouseEntranceBirdsLand(void)

As Jenna and Kraden first come out of the lighthouse, two birds fly down and land below the door.

References fdActorGet(), fdActorSetAnimation(), fdActorStartScript(), fdCameraWaitForArrival(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), scFieldActorSetPosAndResetMotion(), scFieldActorWaitForMoveById(), scFieldScriptWait() and VenusLighthouseEntranceBirdLands.

Referenced by scInit().

Definition at lines 243 and 335 of file venus_lighthouse_entrance.c.

scVenusLighthouseEntranceWakeUp

void scVenusLighthouseEntranceWakeUp(void)

After a lost battle in the prologue, Jenna wakes by the door with Kraden and Alex beside her; Alex leaves again for Lalivero.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetSpriteFlags(), fdActorSetSpriteRotationById(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkByAndWait(), fdCameraMoveToActorById(), fdScriptEnd(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), scFieldActorJump(), scFieldActorSetSpritePriority(), scFieldActorWaitForMoveById(), scFieldActorWatchAndSetScript(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and Sint32.

Referenced by scInit().

Definition at lines 244 and 1195 of file venus_lighthouse_entrance.c.

scInit

Sint32 scInit(void)

References fdActorFallOverWithAnimationById(), fdActorGet(), fdActorSetAnimation(), fdActorSetMovementType(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetDestination(), fdScriptSetFlag(), fdScriptStart(), gmPartyRemoveMember(), gmPartyRestoreHpPp(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldScriptEndLastingPsynergy(), scVenusLighthouseEntranceBirdsLand(), scVenusLighthouseEntranceWakeUp() and Sint32.

Definition at line 246 of file venus_lighthouse_entrance.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 328 of file venus_lighthouse_entrance.c.

Variables in detail

VenusLighthouseEntranceBirdLands

extern Sint32 VenusLighthouseEntranceBirdLands[]

Sint32 VenusLighthouseEntranceBirdLands[]

References Sint32.

Referenced by scVenusLighthouseEntranceBirdsLand().

Definition at lines 119 and 1935 of file venus_lighthouse_entrance.c.

VenusLighthouseEntranceBirdFlies

extern Sint32 VenusLighthouseEntranceBirdFlies[]

Sint32 VenusLighthouseEntranceBirdFlies[]

References Sint32.

Referenced by scVenusLighthouseEntranceBirdsFlyOff().

Definition at lines 377 and 1946 of file venus_lighthouse_entrance.c.

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 1687 of file venus_lighthouse_entrance.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 1755 of file venus_lighthouse_entrance.c.

ActorPlacements

ACTOR_PLACE ActorPlacements[]

Referenced by scGetActorPlacements().

Definition at line 1766 of file venus_lighthouse_entrance.c.

SceneCues

CUE SceneCues[]

References scVenusLighthouseEntranceBirdsFlyOff(), scVenusLighthouseEntranceBlastActorWithPsynergy(), scVenusLighthouseEntrancePointToMeetingSpot(), scVenusLighthouseEntranceRuffianWaitsForBackup(), scVenusLighthouseEntranceRunAndKickUpDust() and scVenusLighthouseEntranceSoldiersAmbushParty().

Referenced by scGetCues().

Definition at line 1905 of file venus_lighthouse_entrance.c.