Skip to Content
The Alchemy Project

src/scene/jupiter_lighthouse_locked_doors.c

The level of Jupiter Lighthouse above its central room, with the red and blue locked doors that lead out to the two towers. More…

Macros

NameDescription
#defineOWN_fdMapGridGetMetatileBehaviorThis file declares fdMapGridGetMetatileBehavior its own way, below.
#defineFLAG_RED_DOOR_OPENED 0xa07Set as each locked door opens to its key.
#defineFLAG_BLUE_DOOR_OPENED 0xa08
#defineFLAG_BRIDGE_BLOCK_RAISED 0xa06Set once Move has set the bridge block on its metatile, where it rises to bridge the gap.
#defineBEAM_RISE_MAX_STEPS 90The most steps the beam lifts the party, 3 pixels each; the floor stops it first.
#defineBEAM_LIGHT_FADE_STEP 38The step at which a beam light starts to fade, 6 pixels below the floor.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineMETATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped

Enumerations

NameDescription
enumanonymous enum { BRIDGE_BLOCK_METATILE_X, BRIDGE_BLOCK_METATILE_Z }The bridge block's metatile, at the west end of the row of hovering blocks round the beam, where it rises into line with them.
enumJUPITER_LIGHTHOUSE_LOCKED_DOORS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_RED_DOOR, METATILE_BEHAVIOR_BLUE_DOOR, MET … }The level's own metatile behaviors.
enumJUPITER_LIGHTHOUSE_LOCKED_DOORS_WAY { WAY_STAIRS_ROOM_WEST_TO_RED_DOOR, WAY_RED_DOOR_TO_STAIRS_ROO … }The ways between the level's rooms.
enumJUPITER_LIGHTHOUSE_LOCKED_DOORS_ACTOR_ID { ACTOR_FIRST_BACK_ROOM_BLOCK, ACTOR_HIDDEN_BLOCK, ACTOR_BRIDG … }The level's blocks, numbering the rows of ActorPlacements.
enumanonymous enum { BEAM_X, BEAM_Z, BEAM_DEPTH }The beam of light from the room below: where it stands, and how far below the floor its lights, and the party it carries up, start rising.

Functions

NameDescription
voidscActorRaiseFromMetatile (Sint32 id)Lifts an actor 32 pixels over its ground as a platform others may stand on, and raises the map metatile under it six height steps to match.
voidscJupiterLighthouseHideThePassage (void)As Reveal wears off, and on entering the level: the hidden floor and the hidden block vanish again.
voidscJupiterLighthouseLeaveByRedDoorCyclone (void)Felix casts Cyclone on the purple teleporter pad in front of the red door, metatile (9, 22): the party goes back down to the south hall below, by its west side.
voidscJupiterLighthouseLeaveByBlueDoorCyclone (void)Felix casts Cyclone on the purple teleporter pad in front of the blue door, metatile (41, 22): the party goes back down to the south hall below, by its east side.
voidscJupiterLighthouseTryLockedDoor (void)Felix checks the red or the blue door before it is open: "The door's locked."
voidscLightSpritesInitChannelPieces (void)Unused: loads Gabomba Statue's channel pieces (FieldChannelPieceTiles) into VRAM as the glow pictures and starts drawing the lit actors (none yet), small, each at its own priority.
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.
voidscJupiterLighthouseRevealThePassage (void)Felix casts Reveal in the room at the back: a hidden stretch of floor shows at metatile (19, 10), and he can jump across the gap there.
voidscJupiterLighthouseStartMovingBlock (Sint32 unused, Sint32 id)Nothing visible happens as Move takes hold of the grey block in the pit west of the beam's row; its sprite's drawing order is set (fdActorSetSpritePriority) for the slide.
voidscJupiterLighthouseFinishMovingBlock (Sint32 unused, Sint32 id)The grey block in the pit west of the beam's row, Moved one metatile east to metatile (10, 32), rises out of the pit and hovers there for good in line with the others, a step for Felix on the way to the Potion's chest.
voidscJupiterLighthouseOpenRedDoor (void)Shows the red door at metatile (10, 20) open and lets the party through it.
voidscJupiterLighthouseOpenBlueDoor (void)Shows the blue door at metatile (40, 20) open and lets the party through it.
voidscJupiterLighthouseUseRedKey (Sint32 item)Felix uses the Red Key at the red door, metatile (10, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone.
voidscJupiterLighthouseUseBlueKey (Sint32 item)Felix uses the Blue Key at the blue door, metatile (40, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscJupiterLighthouseCircleUpTheBeam (ACTOR *actor)A light's step up the beam: it circles the beam at its angle (beamAngle) and radius and rises 3 pixels with each step (beamClimb), twinkling from its first step and fading near the floor, and starts over once above it; drawn in front of the beam while the sine is negative and behind it otherwise.
voidscJupiterLighthouseSendUpBeamLights (void)Sends seven lights circling up the beam, each at its own radius, speed and angle and five steps of rise apart.
Sint32scInit (void)Sets up the level as the party enters: the hidden floor hidden, each opened door open, the lights sent up the beam, and Felix, come from the central room, carried spinning up the beam to land among the hovering blocks, or, come by Cyclone from the south hall, arriving in a ring.
Sint32scPrepareMap (void)Sets the scene's arrival flags and loads the lighthouse's palettes; lets Felix walk onto the blocks, raises them once the lighthouse is activated, and puts the bridge block back in line.
voidsyGameFlagSetByte (Sint32 flag, Sint32 value)Sets the whole byte flags is in.
static inline voidscPaletteCycleSetTick (Sint32 value)Restarts the palette cycle at the given tick.
Sint32fdMapGridGetMetatileBehavior (Sint32 x, Sint32 z, Sint32 layer)These rooms read the metatile behavior back as a whole Sint32; the field defines it returning a Uint8.
voidscFieldEffectSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options)Spawns a field effect at x, y, z moving at the velocity given, its type, scale, palette, priority, script, rotation, spin and update chosen by the EFFECT_USE_ flags from the options.
voidscLightSpritesSetPriority (Sint32 value)Sets the priority the lit actors' sprites are drawn at.
voidscLeaderCenterInMetatile (void)Walks the leader to the middle of the metatile he stands on, as he does before dropping through a cracked tile, sets him there and lowers the camera's point 8 pixels.
voidscCrackedTileCrack (METATILE_TARGET *table, METATILE_TARGET_ENTRY *entry)Cracks the tile under the leader, swapping in its cracked picture.

Variables

NameDescription
Sint32WhirlwindRidingThe state of the code every Jupiter Lighthouse room's overlay keeps its own copy of: a whirlwind's ride (shared/whirlwind_*.c), the palette cycle (shared/palette_cycle_step.c), the lit actors' sprites (shared/light_sprites_*.c) and the cracked tiles (shared/cracked_tile_*.c).
Uint16PaletteCycleColors [16]A copy of the room's cycling palette, BG palette CYCLE_PALETTE, which the cycle takes its colours from (scJupiterLighthouseLoadPalettes).
Uint16PaletteCycleUnlitPalette [2]Palette 13's first two colors; it is copied whole, with the unlit colors after them.
Uint16PaletteCycleUnlitColors [14]
Sint16LightSpriteTileThe glows drawn over the symbol blocks (scLightSpritesDraw): the VRAM cache entry of their tiles, how many actors carry one and which, their sprites, the large mode, the priority (-1 for each actor's own) and the picture row.
Sint16LightSpriteCount
LIGHT_OAMLightSpriteOams [16]
Sint16LightSpritesLarge
Sint16LightSpritePriority
METATILE_TARGETCrackedTilesThe metatiles scCrackedTileStep watches, and the metatile it copies over the one the leader steps on.
extern Sint32PaletteCyclePausesInScripts
extern Sint32PaletteCycleTickThe palette cycle's tick, -1 before it starts, and whether scripts hold it (fdPaletteCycleStep).
extern Sint32WhirlwindEndScript []
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
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.
const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.

Description

The level of Jupiter Lighthouse above its central room, with the red and blue locked doors that lead out to the two towers. Felix first comes up here by the Cyclone teleporter in front of the red door, at metatile (9, 22), and the Red Key opens it (scJupiterLighthouseUseRedKey); the teleporter in front of the blue door, at metatile (41, 22), only takes him back down (scJupiterLighthouseLeaveByRedDoorCyclone, scJupiterLighthouseLeaveByBlueDoorCyclone), and the Blue Key opens that door (scJupiterLighthouseUseBlueKey). In the room at the back, Reveal shows the hidden floor across to the jumping puzzle room, and once the lighthouse is activated a hidden block among six hovering ones, the way to the Psy Crystal (scJupiterLighthouseRevealThePassage). Further south, the beam of light from the central room rises through the floor, lights circling up it (scJupiterLighthouseSendUpBeamLights), and brings Felix up among a row of hovering blocks; the grey block in the pit west of them, Moved one metatile east, rises into line with the row, the way to the Potion's chest (scJupiterLighthouseFinishMovingBlock).

Macros in detail

OWN_fdMapGridGetMetatileBehavior

#define OWN_fdMapGridGetMetatileBehavior

This file declares fdMapGridGetMetatileBehavior its own way, below.

Definition at line 19 of file jupiter_lighthouse_locked_doors.c.

FLAG_RED_DOOR_OPENED

#define FLAG_RED_DOOR_OPENED 0xa07

Set as each locked door opens to its key.

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

Definition at line 36 of file jupiter_lighthouse_locked_doors.c.

FLAG_BLUE_DOOR_OPENED

#define FLAG_BLUE_DOOR_OPENED 0xa08

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

Definition at line 37 of file jupiter_lighthouse_locked_doors.c.

FLAG_BRIDGE_BLOCK_RAISED

#define FLAG_BRIDGE_BLOCK_RAISED 0xa06

Set once Move has set the bridge block on its metatile, where it rises to bridge the gap.

Referenced by scJupiterLighthouseFinishMovingBlock() and scPrepareMap().

Definition at line 40 of file jupiter_lighthouse_locked_doors.c.

BEAM_RISE_MAX_STEPS

#define BEAM_RISE_MAX_STEPS 90

The most steps the beam lifts the party, 3 pixels each; the floor stops it first.

Referenced by scInit().

Definition at line 119 of file jupiter_lighthouse_locked_doors.c.

BEAM_LIGHT_FADE_STEP

#define BEAM_LIGHT_FADE_STEP 38

The step at which a beam light starts to fade, 6 pixels below the floor.

Referenced by scJupiterLighthouseCircleUpTheBeam().

Definition at line 121 of file jupiter_lighthouse_locked_doors.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 673 of file jupiter_lighthouse_locked_doors.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 674 of file jupiter_lighthouse_locked_doors.c.

METATILE_PUSH_SLOT_ENTRY

#define METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped

Referenced by scCrackedTileUpdate().

Definition at line 677 of file jupiter_lighthouse_locked_doors.c.

Enumerations in detail

anonymous enum

enum { BRIDGE_BLOCK_METATILE_X, BRIDGE_BLOCK_METATILE_Z }

The bridge block's metatile, at the west end of the row of hovering blocks round the beam, where it rises into line with them.

EnumeratorValueDescription
BRIDGE_BLOCK_METATILE_X10
BRIDGE_BLOCK_METATILE_Z32

Definition at line 44 of file jupiter_lighthouse_locked_doors.c.

JUPITER_LIGHTHOUSE_LOCKED_DOORS_METATILE_BEHAVIOR

enum JUPITER_LIGHTHOUSE_LOCKED_DOORS_METATILE_BEHAVIOR

The level's own metatile behaviors.

EnumeratorValueDescription
METATILE_BEHAVIOR_RED_DOOR20metatile (10, 20)
METATILE_BEHAVIOR_BLUE_DOOR21metatile (40, 20)
METATILE_BEHAVIOR_RED_DOOR_TELEPORTER40pad in front of the red door, metatile (9, 22)
METATILE_BEHAVIOR_BLUE_DOOR_TELEPORTERpad in front of the blue door, metatile (41, 22)

Definition at line 51 of file jupiter_lighthouse_locked_doors.c.

JUPITER_LIGHTHOUSE_LOCKED_DOORS_WAY

enum JUPITER_LIGHTHOUSE_LOCKED_DOORS_WAY

The ways between the level's rooms. The room the stairs up from the side halls reach has three arched doorways in its north wall: the west one leads into the hall of the locked doors south of the red door, the east one south of the blue door, and the middle one into the beam's room, at its south-east corner. A way's exit, the metatile that takes it and the entrance at its mouth share its number, so the way back is the entrance the exit leads to.

EnumeratorValueDescription
WAY_STAIRS_ROOM_WEST_TO_RED_DOOR3
WAY_RED_DOOR_TO_STAIRS_ROOM_WEST
WAY_STAIRS_ROOM_TO_BEAM_ROOM
WAY_BEAM_ROOM_TO_STAIRS_ROOM
WAY_STAIRS_ROOM_EAST_TO_BLUE_DOOR
WAY_BLUE_DOOR_TO_STAIRS_ROOM_EAST
WAY_ONTO_BEAM_TOP11Unused: onto the top of the beam, where riding it up from the central room lands (its entrance, JUPITER_LIGHTHOUSE_LOCKED_DOORS_FROM_JUPITER_LIGHTHOUSE_CENTRAL_ROOM). No metatile of the map takes this exit and no script asks for it.

Definition at line 67 of file jupiter_lighthouse_locked_doors.c.

JUPITER_LIGHTHOUSE_LOCKED_DOORS_ACTOR_ID

enum JUPITER_LIGHTHOUSE_LOCKED_DOORS_ACTOR_ID

The level's blocks, numbering the rows of ActorPlacements.

EnumeratorValueDescription
ACTOR_FIRST_BACK_ROOM_BLOCKACTOR_FIRST_PLACEDThe first of the six blocks in the room at the back that rise once the lighthouse is activated.
ACTOR_HIDDEN_BLOCKACTOR_FIRST_PLACED + 6The block Reveal shows on the hidden passage.
ACTOR_BRIDGE_BLOCKThe block in the pit west of the beam's row, which Move sets on its metatile to bridge the gap.
ACTOR_FIRST_BEAM_ROW_BLOCKThe first of the three in the row round the beam that rise once the lighthouse is activated.
ACTOR_BEAM_TOP_BLOCKACTOR_FIRST_BEAM_ROW_BLOCK + 3The unseen block at the top of the beam of light, (232, 520), in the row of hovering blocks: once the lighthouse is activated, Felix carried up the beam stands on it, nothing drawn under him.

Definition at line 83 of file jupiter_lighthouse_locked_doors.c.

anonymous enum

enum { BEAM_X, BEAM_Z, BEAM_DEPTH }

The beam of light from the room below: where it stands, and how far below the floor its lights, and the party it carries up, start rising.

EnumeratorValueDescription
BEAM_X232
BEAM_Z520
BEAM_DEPTH120

Definition at line 110 of file jupiter_lighthouse_locked_doors.c.

Functions in detail

scJupiterLighthouseHideThePassage

void scJupiterLighthouseHideThePassage(void)

As Reveal wears off, and on entering the level: the hidden floor and the hidden block vanish again.

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesLayered().

Referenced by SceneCues and scInit().

Definition at lines 139 and 187 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseLeaveByRedDoorCyclone

void scJupiterLighthouseLeaveByRedDoorCyclone(void)

Felix casts Cyclone on the purple teleporter pad in front of the red door, metatile (9, 22): the party goes back down to the south hall below, by its west side.

References syImportScriptSetExitRequest().

Referenced by SceneCues.

Definition at lines 140 and 230 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseLeaveByBlueDoorCyclone

void scJupiterLighthouseLeaveByBlueDoorCyclone(void)

Felix casts Cyclone on the purple teleporter pad in front of the blue door, metatile (41, 22): the party goes back down to the south hall below, by its east side.

References syImportScriptSetExitRequest().

Referenced by SceneCues.

Definition at lines 141 and 239 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseTryLockedDoor

void scJupiterLighthouseTryLockedDoor(void)

Felix checks the red or the blue door before it is open: "The door's locked."

References mnMessageShowCentered().

Referenced by SceneCues.

Definition at lines 142 and 280 of file jupiter_lighthouse_locked_doors.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 145 of file jupiter_lighthouse_locked_doors.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 150 of file jupiter_lighthouse_locked_doors.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 155 of file jupiter_lighthouse_locked_doors.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 160 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseRevealThePassage

void scJupiterLighthouseRevealThePassage(void)

Felix casts Reveal in the room at the back: a hidden stretch of floor shows at metatile (19, 10), and he can jump across the gap there. Once the lighthouse is activated, Reveal also shows a hidden block hovering at metatile (31, 10), in the middle of the six hovering blocks, which he can jump across too.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptGetFlag(), scActorRaiseFromMetatile() and scFieldMapGridSetMetatileBehavior().

Referenced by SceneCues.

Definition at line 170 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseStartMovingBlock

void scJupiterLighthouseStartMovingBlock(Sint32 unused, Sint32 id)

Nothing visible happens as Move takes hold of the grey block in the pit west of the beam's row; its sprite's drawing order is set (fdActorSetSpritePriority) for the slide.

References fdActorSetSpritePriority() and Sint32.

Referenced by SceneCues.

Definition at line 198 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseFinishMovingBlock

void scJupiterLighthouseFinishMovingBlock(Sint32 unused, Sint32 id)

The grey block in the pit west of the beam's row, Moved one metatile east to metatile (10, 32), rises out of the pit and hovers there for good in line with the others, a step for Felix on the way to the Potion's chest. Moved anywhere else, it stays in the pit.

References fdActorGet(), fdScriptSetFlag(), scActorRaiseFromMetatile(), Sint32 and sySynch().

Referenced by SceneCues.

Definition at line 207 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseOpenRedDoor

void scJupiterLighthouseOpenRedDoor(void)

Shows the red door at metatile (10, 20) open and lets the party through it.

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesLayered().

Referenced by scInit() and scJupiterLighthouseUseRedKey().

Definition at line 246 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseOpenBlueDoor

void scJupiterLighthouseOpenBlueDoor(void)

Shows the blue door at metatile (40, 20) open and lets the party through it.

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesLayered().

Referenced by scInit() and scJupiterLighthouseUseBlueKey().

Definition at line 253 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseUseRedKey

void scJupiterLighthouseUseRedKey(Sint32 item)

Felix uses the Red Key at the red door, metatile (10, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone.

References fdScriptPlaySound(), fdScriptSetFlag(), gmPartyInventoryRemove(), scJupiterLighthouseOpenRedDoor() and Sint32.

Referenced by SceneCues.

Definition at line 261 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseUseBlueKey

void scJupiterLighthouseUseBlueKey(Sint32 item)

Felix uses the Blue Key at the blue door, metatile (40, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone.

References fdScriptPlaySound(), fdScriptSetFlag(), gmPartyInventoryRemove(), scJupiterLighthouseOpenBlueDoor() and Sint32.

Referenced by SceneCues.

Definition at line 271 of file jupiter_lighthouse_locked_doors.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 289 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseCircleUpTheBeam

void scJupiterLighthouseCircleUpTheBeam(ACTOR *actor)

A light's step up the beam: it circles the beam at its angle (beamAngle) and radius and rises 3 pixels with each step (beamClimb), twinkling from its first step and fading near the floor, and starts over once above it; drawn in front of the beam while the sine is negative and behind it otherwise.

References fdActorSelectAnimation(), syCos() and sySin().

Referenced by scJupiterLighthouseSendUpBeamLights().

Definition at line 298 of file jupiter_lighthouse_locked_doors.c.

scJupiterLighthouseSendUpBeamLights

void scJupiterLighthouseSendUpBeamLights(void)

Sends seven lights circling up the beam, each at its own radius, speed and angle and five steps of rise apart.

References fdActorSetSpriteFlags(), scFieldActorCreate(), scFieldActorSetSpriteColor(), scJupiterLighthouseCircleUpTheBeam(), Sint32 and syRandom().

Referenced by scInit().

Definition at line 324 of file jupiter_lighthouse_locked_doors.c.

scInit

Sint32 scInit(void)

Sets up the level as the party enters: the hidden floor hidden, each opened door open, the lights sent up the beam, and Felix, come from the central room, carried spinning up the beam to land among the hovering blocks, or, come by Cyclone from the south hall, arriving in a ring. Returns 0.

References fdActorAppearInWhirlwind(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationSpeed(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scJupiterLighthouseHideThePassage(), scJupiterLighthouseOpenBlueDoor(), scJupiterLighthouseOpenRedDoor(), scJupiterLighthouseSendUpBeamLights(), Sint32 and sySynch().

Definition at line 352 of file jupiter_lighthouse_locked_doors.c.

scPrepareMap

Sint32 scPrepareMap(void)

Sets the scene's arrival flags and loads the lighthouse's palettes; lets Felix walk onto the blocks, raises them once the lighthouse is activated, and puts the bridge block back in line. Returns 0.

References fdActorGet(), fdActorSetSpriteFlags(), fdScriptGetFlag(), MainRoutineStateWork, scActorRaiseFromMetatile(), scJupiterLighthouseLoadPalettes(), scSetArrivalFlags() and Sint32.

Definition at line 412 of file jupiter_lighthouse_locked_doors.c.

scPaletteCycleSetTick

static inline void scPaletteCycleSetTick(Sint32 value)

Restarts the palette cycle at the given tick.

References PaletteCycleTick and Sint32.

Referenced by scJupiterLighthouseLoadPalettes() and scTrialRoadStartPaletteCycle().

Definition at line 452 of file jupiter_lighthouse_locked_doors.c.

scLightSpritesSetPriority

void scLightSpritesSetPriority(Sint32 value)

Sets the priority the lit actors' sprites are drawn at.

References LightSpritePriority and Sint32.

Referenced by scInit().

Definition at line 493 of file jupiter_lighthouse_locked_doors.c.

Variables in detail

WhirlwindRiding

Sint32 WhirlwindRiding

References Sint32.

Referenced by scInit(), scJupiterLighthouseRaiseUpperWhirlwind(), scJupiterLighthouseRaiseWhirlwind(), scJupiterLighthouseRideUpperWhirlwind(), scJupiterLighthouseRideWhirlwind() and scWhirlwindUpdate().

Definition at line 124 of file jupiter_lighthouse_locked_doors.c.

PaletteCycleColors

Uint16 PaletteCycleColors[16]

Referenced by fdPaletteCycleFade(), fdPaletteCycleStep(), scJupiterLighthouseLoadPalettes() and scPaletteSetColorsFade().

Definition at line 125 of file jupiter_lighthouse_locked_doors.c.

PaletteCycleUnlitPalette

Uint16 PaletteCycleUnlitPalette[2]

Palette 13's first two colors; it is copied whole, with the unlit colors after them.

Referenced by scJupiterLighthouseLoadPalettes().

Definition at line 128 of file jupiter_lighthouse_locked_doors.c.

PaletteCycleUnlitColors

Uint16 PaletteCycleUnlitColors[14]

Referenced by scJupiterLighthouseLoadPalettes().

Definition at line 129 of file jupiter_lighthouse_locked_doors.c.

LightSpriteTile

Sint16 LightSpriteTile

Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().

Definition at line 130 of file jupiter_lighthouse_locked_doors.c.

LightSpriteCount

Sint16 LightSpriteCount

Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesAdd(), scLightSpritesAddCounted(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().

Definition at line 131 of file jupiter_lighthouse_locked_doors.c.

LightSpriteOams

LIGHT_OAM LightSpriteOams[16]

Referenced by scLightSpritesDraw().

Definition at line 133 of file jupiter_lighthouse_locked_doors.c.

LightSpritesLarge

Sint16 LightSpritesLarge

Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().

Definition at line 134 of file jupiter_lighthouse_locked_doors.c.

LightSpritePriority

Sint16 LightSpritePriority

Referenced by scAnemosInnerSanctumDullahanSetLightPriority(), scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow(), scLightSpritesInitPathGlows() and scLightSpritesSetPriority().

Definition at line 135 of file jupiter_lighthouse_locked_doors.c.

CrackedTiles

METATILE_TARGET CrackedTiles

The metatiles scCrackedTileStep watches, and the metatile it copies over the one the leader steps on.

Referenced by scCrackedTileFind(), scCrackedTilePlaceLanding(), scCrackedTileStep() and scCrackedTileUpdate().

Definition at line 138 of file jupiter_lighthouse_locked_doors.c.

PaletteCyclePausesInScripts

extern Sint32 PaletteCyclePausesInScripts

Sint32 PaletteCyclePausesInScripts

References Sint32.

Referenced by fdPaletteCycleStep(), scJupiterLighthouseLoadPalettes() and scPaletteCycleSetPausesInScripts().

Definition at lines 445 and 647 of file jupiter_lighthouse_locked_doors.c.

PaletteCycleTick

extern Sint32 PaletteCycleTick

Sint32 PaletteCycleTick

References Sint32.

Referenced by fdPaletteCycleStep() and scPaletteCycleSetTick().

Definition at lines 449 and 645 of file jupiter_lighthouse_locked_doors.c.

WhirlwindEndScript

extern Sint32 WhirlwindEndScript[]

Sint32 WhirlwindEndScript[]

References Sint32.

Referenced by scWhirlwindUpdate().

Definition at lines 463 and 649 of file jupiter_lighthouse_locked_doors.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 508 of file jupiter_lighthouse_locked_doors.c.

ActorPlacements

ACTOR_PLACE ActorPlacements[]

Referenced by scGetActorPlacements().

Definition at line 546 of file jupiter_lighthouse_locked_doors.c.

SceneCues

CUE SceneCues[]

References scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseHideThePassage(), scJupiterLighthouseLeaveByBlueDoorCyclone(), scJupiterLighthouseLeaveByRedDoorCyclone(), scJupiterLighthouseRevealThePassage(), scJupiterLighthouseStartMovingBlock(), scJupiterLighthouseTryLockedDoor(), scJupiterLighthouseUseBlueKey() and scJupiterLighthouseUseRedKey().

Referenced by scGetCues().

Definition at line 583 of file jupiter_lighthouse_locked_doors.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

extern const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at lines 656 and 671 of file jupiter_lighthouse_locked_doors.c.