Skip to Content
The Alchemy Project

src/scene/jupiter_lighthouse_terraces.c

The terraces high outside Jupiter Lighthouse, over the clouds, which link its main tower, by the red and blue doors, with its left and right towers. More…

Macros

NameDescription
#defineOWN_fdMapGridGetMetatileBehaviorThis unit declares its own form of fdMapGridGetMetatileBehavior, below.
#defineFLAG_ENERGY_BLOCK_IN_GAP 0xa0cThe energy block pushed into its gap: lightning has struck it, and the path's grooves light up to the Hover pad beyond.
#defineFLAG_GRAY_BLOCK_DROPPED 0xa0dThe grey block pushed over the trapdoor has dropped through it, a shortcut to the rooms below.
#defineFLAG_JUPITER_LIGHTHOUSE_ROPE_TIED FLAG_SCENE_TEMP(0x00)For this visit: Lash has tied the rope between the two tightrope posts.
#defineFLAG_TRAPDOOR_OPEN FLAG_SCENE_TEMP(0x02)Set while Felix stands on the button by the upper doorway, which holds the trapdoor open.
#definescJupiterLighthouseLightPathToHoverPad ()The path from the energy block's gap lit, and the Hover pad at its end.
#definescJupiterLighthouseLeaveTrapdoorOpen ()The trapdoor shown open, and its metatiles left open to fall through.
#defineLIGHTNING_MAP_TILE_BASE_MASK 0x300The bits of a lightning map entry that number the map's tiles from 512; cleared, the map draws the tiles at the start of character block 0.
#defineGARET_SWING_DIVISOR 128Garet's sprite's rotation swings by the sine over this: up to a 128th of a turn either way.
#definePLACE (id, x, z, facing)Places an actor at (x, z), in pixels, facing a direction.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineMETATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped
#defineFIELD_EFFECT_DURATION_SCRIPT_SECTION LATE_DATA
#defineSCENE_ENTRANCES_SECTION LATE_DATA

Enumerations

NameDescription
enumanonymous enum { ENTRANCE_AFTER_THE_FIGHT, ENTRANCE_ISAAC_AND_IVAN_FALL }Where the battle this room starts returns the party, won or lost; and an entrance no exit or battle leads to, which plays Isaac and Ivan's fall again without its flags.
enumanonymous enum { ANIM_ISAAC_STAGGER, ANIM_ISAAC_LIE_BEATEN, ANIM_IVAN_KNEEL, … }The poses of the fight on the terrace, by each sheet: Isaac hunched and battered, then on his back; Ivan on one knee, then down; Mia kneeling; Agatio bent over, catching his breath; Garet seen from behind, hanging by his hands from the ledge.
enumanonymous enum { ENERGY_BLOCK_GAP_METATILE_X, ENERGY_BLOCK_GAP_METATILE_Z }The energy block's gap: the metatile it drops into and lights the path from.
enumanonymous enum { TRAPDOOR_WEST_COLUMN }The trapdoor's four columns in front of the upper doorway, west to east.
enumJUPITER_LIGHTHOUSE_TERRACES_METATILE_BEHAVIOR { METATILE_BEHAVIOR_WEST_WHIRLWIND_PATH, METATILE_BEHAVIOR_EAS … }The terraces' own metatile behaviors.
enumanonymous enum { ALL_HP_OR_PP, ISAAC_HP_IN_THE_FIGHT }More HP or PP than anyone has, so that taking it away leaves none; and the HP Isaac is left with for the fight that cannot be won.
enumanonymous enum { ACTOR_ENERGY_BLOCK, ACTOR_EAST_ROPE_POST, ACTOR_WEST_ROPE_PO … }The actors this file moves by number: what the placements put where, and the people at the fight (ActorPlacements's last rows).

Functions

NameDescription
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.
voidscPaletteCycleSetPausesInScripts (Sint32 value)Whether the palette cycle stops while a script holds the field.
voidscJupiterLighthouseRideUpperWhirlwind (void)Felix walks into the west whirlwind's path, on the walkway towards the left tower at metatiles (13, 9) to (20, 9): a whirlwind blows out at him, catches him and carries him spinning back east along the walkway, over the clouds, to the doorway (fdWhirlwindCarryLeader).
voidscJupiterLighthouseRideWhirlwind (void)Felix casts Hover on the pad the energy block lights, at metatile (65, 42), and rises in its glow: the east whirlwind catches him and carries him, still in Hover's rings, east along the chained walkway over the clouds to the right tower, and sets him down on the walkway's east end by the tower wall, beside the eye-shaped switch by its door (fdWhirlwindCarryLeader).
voidscJupiterLighthouseOpenFloor (void)Felix steps onto the purple button in front of the upper doorway, metatile (41, 39): the camera turns to the trapdoor of two green panels nearby, which swing open.
voidscJupiterLighthouseCloseFloor (void)Felix steps off the purple button in front of the upper doorway: the camera turns to the trapdoor, which swings shut with a thud.
voidscCrackedTileCrack (METATILE_TARGET *table, METATILE_TARGET_ENTRY *entry)Cracks the tile under the leader, swapping in its cracked picture.
voidscCrackedTileFall (METATILE_TARGET *table, METATILE_TARGET_ENTRY *entry)A cracked tile gives way under Felix, who drops through it.
Sint32fdMapGridGetMetatileBehavior (Sint32 x, Sint32 z, Sint32 layer)The ROM's callers here are compiled against this form, which returns an Sint32 where the definition returns a Uint8.
Sint32scJupiterLighthouseClearScriptedActorSpriteFlags (Sint32 object)An action script's call: clears the actor's sprite flags.
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.
ACTOR *scWhirlwindSpawn (ACTOR *src)A whirlwind blows out of the stone face at src.
Sint32scActorEmitSmoke (ACTOR *actor)Smoke rising from an actor: every eighth tick a black puff at 0.7 of its size rises from within 4 pixels of it, 13 to 32 pixels up, at half a pixel to 0.9 a tick.
voidscJupiterLighthouseFlashSky (void)Lightning strikes the energy block in a white flash, the ground shakes, Felix jumps back, sparks rise from the block, and the path lights up to the Hover pad beyond the gap, at metatile (65, 10).
voidscJupiterLighthouseStartMovingBlock (Sint32 unused, Sint32 id)Nothing visible happens as Felix starts to push the energy block, by walking into it or with Move.
static __inline__ voidscJupiterLighthouseSetMetatileHeight (Sint32 x, Sint32 z, Sint32 layer, Sint32 height)fdMapGridSetMetatileHeight, as the block's landing calls it.
voidscJupiterLighthouseFinishMovingBlock (Sint32 unused, Sint32 id)The energy block, pushed or Moved three metatiles east into the gap at metatile (63, 15), drops in with a heavy thud.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscJupiterLighthouseTalkAfterTheFight (Sint32 actor)Talking to Isaac, Ivan, Kraden, Jenna or Sheba once Isaac and Ivan have fallen: each answers with a line of their own.
Sint32scJupiterLighthouseKeepGaretHanging (void)A tick event while Garet hangs from the ledge: his sprite, pivoting on his hand, swings on a sine about a tilt of a 32nd of a turn, and every 128 ticks his grip strains.
Sint32scJupiterLighthousePlayRandomBlowSound (void)An action script's call during the fight: the sound of one of five blows, at random.
Sint32scJupiterLighthouseStopFacingMotion (ACTOR *actor)An action script's call: stops the actor turning to face where it moves.
voidscJupiterLighthouseStartTheFight (void)Sets four actors' speeds, places them and starts their action scripts.
voidscJupiterLighthousePlaceForTheFight (void)Places Isaac, Ivan and Mia where the fight is, and Garet hanging from the ledge by his grip, swaying.
voidscJupiterLighthousePartyArrivesAtTheFight (Sint32 west)Felix comes out by the aerie to find Jenna, Sheba, Piers and Kraden watching the fight, and the party is placed to watch with them.
static inline Sint32scFieldUnitAddPp (Sint32 owner, Sint32 delta)gmUnitAddPp as a script calls it, beside system_call.h's scFieldUnitAddHp.
voidscJupiterLighthouseIsaacAndIvanAreHurt (void)The fight goes against Isaac and Ivan: Ivan can take no more, Agatio mocks Isaac's concern for him, and the battle that cannot be won begins, the two the whole party, Ivan with no HP, Isaac with ISAAC_HP_IN_THE_FIGHT, and neither with PP.
voidscJupiterLighthousePlaceTheHurt (void)Places Isaac and Ivan lying hurt after the fight, with Jenna, Sheba and Kraden beside them.
voidscJupiterLighthouseIsaacAndIvanFall (void)After the battle with Karst and Agatio: the two stand over the fallen Isaac and Ivan until Felix and the others step in, Felix promises to light the beacon, and the Mythril Bag holding the Jupiter Star is swapped for a plain one (ITEM_MYTHRIL_BAG_B) that Felix equips.
Sint32scInit (void)Sets up the terraces: the eight hanging chains (the first placed actors) and the rope, the trapdoor as it was left open, and once the lid is off the reunion as far as it has gone: the fight to watch, the fight itself, Isaac and Ivan fallen, or the hurt left behind once they have gone up to the aerie.
voidscLightSpritesInitEnergyBlockGlow ()Loads the energy block's glow (FieldEnergyBlockGlowTiles) into VRAM and starts drawing the lit actors (none yet), large, each at its own priority.
voidscLightSpritesAdd ()Gives actor id a glow: glow is its tick, with LIGHT_SPRITE_MIRRORED to draw it mirrored.
Sint32scPrepareMap (void)Loads the lighthouse's palettes and the energy block's light; once the block is in its gap, sets it there with the lit path and the Hover pad beyond.
static inline voidscPaletteCycleSetTick (Sint32 value)Sets the palette cycle's tick counter.
voidscWhirlwindUpdate (ACTOR *self)A whirlwind's update: it travels forward, catches the leader it reaches and ends off screen or at a wall.
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.
voidsyGameFlagSetByte (Sint32 flag, Sint32 value)Sets the whole byte flags is in.

Variables

NameDescription
extern Uint32JupiterLighthouseGaretHangsScript []Garet hangs from the ledge: in his hanging pose, raised 12 pixels, or after the Japanese edition set at a height of 12 pixels.
extern Uint32JupiterLighthouseMiaScript []
extern Uint32JupiterLighthouseFelixLooksAroundScript []
extern Uint32JupiterLighthouseKradenArrivesWestScript []
extern Uint32JupiterLighthouseKradenArrivesEastScript []
extern Uint32JupiterLighthousePiersArrivesWestScript []
extern Uint32JupiterLighthouseJennaArrivesEastScript []
extern Uint32JupiterLighthouseShebaArrivesWestScript []
extern Uint32JupiterLighthouseAgatioStepsUpScript []
extern Uint32JupiterLighthouseKarstTurnsScript []
extern Uint32JupiterLighthouseKarstFacesSouthScript []
extern Uint32JupiterLighthouseAgatioFacesEastScript []
extern Uint32JupiterLighthouseIsaacFacesWestScript []
extern Uint32JupiterLighthouseIvanFacesNorthScript []
extern Uint32JupiterLighthouseGatherAtFelixScript []Each walks to where Felix stood when the script started.
extern Uint32JupiterLighthouseFelixWaitsScript []
extern Uint32JupiterLighthouseKradenWaitsScript []
extern Uint32JupiterLighthousePiersStepsUpScript []
extern Uint32JupiterLighthouseShebaStepsUpScript []
extern Uint32JupiterLighthouseJennaStepsUpScript []
extern Uint32JupiterLighthouseWalkToAerieScript []
extern Uint32JupiterLighthouseLeaveForAerieScript []
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
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 colours; it is copied whole, with the unlit colours 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 Uint32JupiterLighthouseIsaacFightsScript []
extern Uint32JupiterLighthouseAgatioFightsScript []
extern Uint32JupiterLighthouseIvanFightsScript []
extern Uint32JupiterLighthouseKarstFightsScript []
extern Uint32JupiterLighthouseFelixArrivesWestScript []
extern Uint32JupiterLighthouseFelixArrivesEastScript []
extern Uint32JupiterLighthousePiersArrivesEastScript []
extern Uint32JupiterLighthouseJennaArrivesWestScript []
extern Uint32JupiterLighthouseShebaArrivesEastScript []
extern Uint32JupiterLighthouseKarstStepsUpScript []
extern Sint32PaletteCyclePausesInScripts
extern Sint32PaletteCycleTickThe palette cycle's tick, -1 before it starts, and whether scripts hold it (fdPaletteCycleStep).
extern Sint32WhirlwindEndScript []
extern const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
extern Uint32FieldEffectLongScript []
extern Sint32JupiterLighthouseShowGustScript []
LATE_DATA Uint32SceneExits []The room has no exits of its own.
LATE_DATA ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.
LATE_DATA CUESceneCues []The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers.
LATE_DATASint32The tick counts of the four red moai's streams' cycles (scAquaRockTimeStreams).

Description

The terraces high outside Jupiter Lighthouse, over the clouds, which link its main tower, by the red and blue doors, with its left and right towers. On the walkway west to the left tower, a whirlwind blows Felix back east if he walks into its path (scJupiterLighthouseRideUpperWhirlwind). Outside the upper doorway, the grey block pushed one metatile east onto a trapdoor and the purple button in front of the doorway make a shortcut: standing on the button opens the trapdoor and the block drops through (scJupiterLighthouseOpenFloor). Pushed into its gap, the energy block draws a bolt of lightning that lights the path to a Hover pad (scJupiterLighthouseFinishMovingBlock); Hovering from it, Felix is caught by a whirlwind that takes him on towards the right tower (scJupiterLighthouseRideWhirlwind). Once both halves of the well's lid are lifted, on the way back to the aerie the party finds Isaac's party: Garet hangs from the ledge, Mia unable to pull him up, while Isaac and Ivan fight Karst and Agatio (scJupiterLighthouseStartTheFight); the party arrives to watch (scJupiterLighthousePartyArrivesAtTheFight), and Isaac and Ivan are hurt (scJupiterLighthouseIsaacAndIvanAreHurt) and fall (scJupiterLighthouseIsaacAndIvanFall).

Macros in detail

OWN_fdMapGridGetMetatileBehavior

#define OWN_fdMapGridGetMetatileBehavior

This unit declares its own form of fdMapGridGetMetatileBehavior, below.

Definition at line 21 of file jupiter_lighthouse_terraces.c.

FLAG_ENERGY_BLOCK_IN_GAP

#define FLAG_ENERGY_BLOCK_IN_GAP 0xa0c

The energy block pushed into its gap: lightning has struck it, and the path's grooves light up to the Hover pad beyond.

Referenced by scJupiterLighthouseFinishMovingBlock() and scPrepareMap().

Definition at line 41 of file jupiter_lighthouse_terraces.c.

FLAG_GRAY_BLOCK_DROPPED

#define FLAG_GRAY_BLOCK_DROPPED 0xa0d

The grey block pushed over the trapdoor has dropped through it, a shortcut to the rooms below.

Referenced by scInit() and scJupiterLighthouseOpenFloor().

Definition at line 44 of file jupiter_lighthouse_terraces.c.

FLAG_JUPITER_LIGHTHOUSE_ROPE_TIED

#define FLAG_JUPITER_LIGHTHOUSE_ROPE_TIED FLAG_SCENE_TEMP(0x00)

For this visit: Lash has tied the rope between the two tightrope posts.

Referenced by SceneCues and scInit().

Definition at line 46 of file jupiter_lighthouse_terraces.c.

FLAG_TRAPDOOR_OPEN

#define FLAG_TRAPDOOR_OPEN FLAG_SCENE_TEMP(0x02)

Set while Felix stands on the button by the upper doorway, which holds the trapdoor open.

Referenced by SceneCues, scInit(), scJupiterLighthouseCloseFloor() and scJupiterLighthouseOpenFloor().

Definition at line 49 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseLightPathToHoverPad

#define scJupiterLighthouseLightPathToHoverPad()

The path from the energy block's gap lit, and the Hover pad at its end.

Referenced by scJupiterLighthouseFlashSky() and scPrepareMap().

Definition at line 174 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseLeaveTrapdoorOpen

#define scJupiterLighthouseLeaveTrapdoorOpen()

The trapdoor shown open, and its metatiles left open to fall through.

Referenced by scInit().

Definition at line 189 of file jupiter_lighthouse_terraces.c.

LIGHTNING_MAP_TILE_BASE_MASK

#define LIGHTNING_MAP_TILE_BASE_MASK 0x300

The bits of a lightning map entry that number the map's tiles from 512; cleared, the map draws the tiles at the start of character block 0.

Referenced by scJupiterLighthouseFlashSky().

Definition at line 212 of file jupiter_lighthouse_terraces.c.

GARET_SWING_DIVISOR

#define GARET_SWING_DIVISOR 128

Garet's sprite's rotation swings by the sine over this: up to a 128th of a turn either way.

Referenced by scJupiterLighthouseKeepGaretHanging().

Definition at line 693 of file jupiter_lighthouse_terraces.c.

PLACE

#define PLACE(id, x, z, facing)

Places an actor at (x, z), in pixels, facing a direction.

Referenced by scJupiterLighthouseIsaacAndIvanAreHurt(), scJupiterLighthousePlaceForTheFight(), scJupiterLighthousePlaceTheHurt() and scJupiterLighthouseStartTheFight().

Definition at line 755 of file jupiter_lighthouse_terraces.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 2022 of file jupiter_lighthouse_terraces.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 2023 of file jupiter_lighthouse_terraces.c.

METATILE_PUSH_SLOT_ENTRY

#define METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped

Referenced by scCrackedTileUpdate().

Definition at line 2026 of file jupiter_lighthouse_terraces.c.

FIELD_EFFECT_DURATION_SCRIPT_SECTION

#define FIELD_EFFECT_DURATION_SCRIPT_SECTION LATE_DATA

Referenced by FieldEffectLongScript, FieldEffectMediumScript and FieldEffectShortScript.

Definition at line 2144 of file jupiter_lighthouse_terraces.c.

SCENE_ENTRANCES_SECTION

#define SCENE_ENTRANCES_SECTION LATE_DATA

Referenced by LATE_DATA and SceneEntrances.

Definition at line 2152 of file jupiter_lighthouse_terraces.c.

Enumerations in detail

anonymous enum

enum { ENTRANCE_AFTER_THE_FIGHT, ENTRANCE_ISAAC_AND_IVAN_FALL }

Where the battle this room starts returns the party, won or lost; and an entrance no exit or battle leads to, which plays Isaac and Ivan's fall again without its flags.

EnumeratorValueDescription
ENTRANCE_AFTER_THE_FIGHT77
ENTRANCE_ISAAC_AND_IVAN_FALL99

Definition at line 145 of file jupiter_lighthouse_terraces.c.

anonymous enum

enum { ANIM_ISAAC_STAGGER, ANIM_ISAAC_LIE_BEATEN, ANIM_IVAN_KNEEL, ANIM_IVAN_LIE_BEATEN, … }

The poses of the fight on the terrace, by each sheet: Isaac hunched and battered, then on his back; Ivan on one knee, then down; Mia kneeling; Agatio bent over, catching his breath; Garet seen from behind, hanging by his hands from the ledge.

EnumeratorValueDescription
ANIM_ISAAC_STAGGER38
ANIM_ISAAC_LIE_BEATEN39
ANIM_IVAN_KNEEL31
ANIM_IVAN_LIE_BEATEN32
ANIM_MIA_KNEEL9
ANIM_AGATIO_CATCH_BREATH8
ANIM_GARET_HANG14

Definition at line 155 of file jupiter_lighthouse_terraces.c.

anonymous enum

enum { ENERGY_BLOCK_GAP_METATILE_X, ENERGY_BLOCK_GAP_METATILE_Z }

The energy block's gap: the metatile it drops into and lights the path from.

EnumeratorValueDescription
ENERGY_BLOCK_GAP_METATILE_X63
ENERGY_BLOCK_GAP_METATILE_Z15

Definition at line 167 of file jupiter_lighthouse_terraces.c.

anonymous enum

enum { TRAPDOOR_WEST_COLUMN }

The trapdoor's four columns in front of the upper doorway, west to east.

EnumeratorValueDescription
TRAPDOOR_WEST_COLUMN49

Definition at line 183 of file jupiter_lighthouse_terraces.c.

JUPITER_LIGHTHOUSE_TERRACES_METATILE_BEHAVIOR

enum JUPITER_LIGHTHOUSE_TERRACES_METATILE_BEHAVIOR

The terraces' own metatile behaviors.

EnumeratorValueDescription
METATILE_BEHAVIOR_WEST_WHIRLWIND_PATH30The west walkway's metatiles (13, 9) to (20, 9), in the west whirlwind's path.
METATILE_BEHAVIOR_EAST_WHIRLWIND_PATHMetatile (65, 42), past the Hover pad the energy block lights, in the east whirlwind's path.
METATILE_BEHAVIOR_TRAPDOOR_BUTTONThe purple button in front of
METATILE_BEHAVIOR_OFF_TRAPDOOR_BUTTONthe upper doorway, metatile (41, 39), and the eight metatiles round it.

Definition at line 194 of file jupiter_lighthouse_terraces.c.

anonymous enum

enum { ALL_HP_OR_PP, ISAAC_HP_IN_THE_FIGHT }

More HP or PP than anyone has, so that taking it away leaves none; and the HP Isaac is left with for the fight that cannot be won.

EnumeratorValueDescription
ALL_HP_OR_PP10000
ISAAC_HP_IN_THE_FIGHT173

Definition at line 216 of file jupiter_lighthouse_terraces.c.

anonymous enum

enum { ACTOR_ENERGY_BLOCK, ACTOR_EAST_ROPE_POST, ACTOR_WEST_ROPE_POST, ACTOR_GRAY_BLOCK, … }

The actors this file moves by number: what the placements put where, and the people at the fight (ActorPlacements's last rows).

EnumeratorValueDescription
ACTOR_ENERGY_BLOCK20The stone block Move pushes into its gap, which the lightning strikes (scJupiterLighthouseFlashSky).
ACTOR_EAST_ROPE_POST21The two tightrope posts Lash ties the rope
ACTOR_WEST_ROPE_POST22between.
ACTOR_GRAY_BLOCK23The grey block pushed onto the trapdoor (scJupiterLighthouseOpenFloor).
ACTOR_WEST_UPPER_GUST24The unseen points the west and east
ACTOR_EAST_UPPER_GUST25whirlwinds blow out from.
ACTOR_AGATIO26"And I'm Agatio."
ACTOR_KARST27"Me? Why, I'm Karst."
ACTOR_KRADEN28
ACTOR_GARETS_GRIP29The point by Garet's hand on the ledge, where he strains every 128 ticks (scJupiterLighthouseKeepGaretHanging).

Definition at line 224 of file jupiter_lighthouse_terraces.c.

Functions in detail

scJupiterLighthouseRideUpperWhirlwind

void scJupiterLighthouseRideUpperWhirlwind(void)

Felix walks into the west whirlwind's path, on the walkway towards the left tower at metatiles (13, 9) to (20, 9): a whirlwind blows out at him, catches him and carries him spinning back east along the walkway, over the clouds, to the doorway (fdWhirlwindCarryLeader). Nothing happens while a whirlwind is already carrying him.

References fdActorGet(), scWhirlwindSpawn() and WhirlwindRiding.

Referenced by SceneCues.

Definition at lines 83 and 257 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseRideWhirlwind

void scJupiterLighthouseRideWhirlwind(void)

Felix casts Hover on the pad the energy block lights, at metatile (65, 42), and rises in its glow: the east whirlwind catches him and carries him, still in Hover's rings, east along the chained walkway over the clouds to the right tower, and sets him down on the walkway's east end by the tower wall, beside the eye-shaped switch by its door (fdWhirlwindCarryLeader). His Hover's movement ends as he is caught. Walking there without Hover does nothing.

References fdActorGet(), MainRoutineStateWork, scWhirlwindSpawn() and WhirlwindRiding.

Referenced by SceneCues.

Definition at lines 85 and 272 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseOpenFloor

void scJupiterLighthouseOpenFloor(void)

Felix steps onto the purple button in front of the upper doorway, metatile (41, 39): the camera turns to the trapdoor of two green panels nearby, which swing open. If the grey block has been pushed one metatile east onto it, it falls through, the first time only, a few levels down to the rooms below with a crash and a shake: over the trapdoor's middle it first lands on a ledge with a shake and slides off sideways. Once the well's lid is lifted the button does nothing.

References fdActorGetById(), fdActorSetDestinationOffset(), fdCameraWaitForArrival(), fdMapGridCopyMetatilesLayered(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scScriptCameraFollowActor(), Sint32, syGameFlagSet(), sySoundPlay() and sySynch().

Referenced by SceneCues.

Definition at lines 87 and 517 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseCloseFloor

void scJupiterLighthouseCloseFloor(void)

Felix steps off the purple button in front of the upper doorway: the camera turns to the trapdoor, which swings shut with a thud. Once the well's lid is lifted the trapdoor stays as it is.

References fdCameraWaitForArrival(), fdMapGridCopyMetatilesLayered(), fdScriptClearFlag(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and scScriptCameraFollowActor().

Referenced by SceneCues.

Definition at lines 89 and 622 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseClearScriptedActorSpriteFlags

Sint32 scJupiterLighthouseClearScriptedActorSpriteFlags(Sint32 object)

An action script's call: clears the actor's sprite flags.

References fdActorSetSpriteFlags() and Sint32.

Referenced by JupiterLighthouseShowGustScript.

Definition at line 121 of file jupiter_lighthouse_terraces.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 127 of file jupiter_lighthouse_terraces.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 132 of file jupiter_lighthouse_terraces.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 137 of file jupiter_lighthouse_terraces.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 245 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseFlashSky

void scJupiterLighthouseFlashSky(void)

Lightning strikes the energy block in a white flash, the ground shakes, Felix jumps back, sparks rise from the block, and the path lights up to the Hover pad beyond the gap, at metatile (65, 10). The bolt is a picture drawn on the first background layer, faded out over the scene.

References BgScrollWork, CpuLoadDisplayEnabled, fdActorGet(), fdActorWalkBy(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptPlaySound(), MainRoutineStateWork, scActorEmitSmoke(), scFieldActorJump(), scFieldWindowColorApply(), syDecompressTaggedLZ(), syDMAXCopy(), syHeapAllocate(), syHeapRelease(), syPrintClear(), syResourceGetTableEntry(), sySynch() and syWindowLoadGraphics().

Referenced by scJupiterLighthouseFinishMovingBlock().

Definition at line 297 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseStartMovingBlock

void scJupiterLighthouseStartMovingBlock(Sint32 unused, Sint32 id)

Nothing visible happens as Felix starts to push the energy block, by walking into it or with Move. The metatile the block stands on is kept at its top, 48 pixels down, a step above the walkway 64 pixels down (metatile (60, 15) as the room is entered); as the push starts the game sets that metatile back to the walkway's 64 pixels down, so the metatile the block leaves is plain walkway again. Where the block stops, scJupiterLighthouseFinishMovingBlock raises its new metatile to 48 pixels down.

References Call4(), fdActorGet(), fdMapGridSetMetatileHeight() and Sint32.

Referenced by SceneCues.

Definition at line 388 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseSetMetatileHeight

static __inline__ void scJupiterLighthouseSetMetatileHeight(Sint32 x, Sint32 z, Sint32 layer, Sint32 height)

fdMapGridSetMetatileHeight, as the block's landing calls it.

References fdMapGridSetMetatileHeight() and Sint32.

Referenced by scJupiterLighthouseFinishMovingBlock().

Definition at line 396 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseFinishMovingBlock

void scJupiterLighthouseFinishMovingBlock(Sint32 unused, Sint32 id)

The energy block, pushed or Moved three metatiles east into the gap at metatile (63, 15), drops in with a heavy thud. Felix steps back west of the gap, the light turns warm, he looks about with a question mark and leans back, and lightning strikes the block (scJupiterLighthouseFlashSky); the camera then follows the lit path to the Hover pad as the puzzle-solved jingle plays. Anywhere else, the block simply stands where it is put.

References fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, mnSoundWaitForJingle(), scFieldActorShowEmote(), scFieldActorStartRepeatedMotion(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scJupiterLighthouseFlashSky(), scJupiterLighthouseSetMetatileHeight(), scPaletteCycleSetPausesInScripts(), Sint32 and sySynch().

Referenced by SceneCues.

Definition at line 410 of file jupiter_lighthouse_terraces.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 643 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseTalkAfterTheFight

void scJupiterLighthouseTalkAfterTheFight(Sint32 actor)

Talking to Isaac, Ivan, Kraden, Jenna or Sheba once Isaac and Ivan have fallen: each answers with a line of their own.

References fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.

Referenced by SceneCues.

Definition at line 650 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseKeepGaretHanging

Sint32 scJupiterLighthouseKeepGaretHanging(void)

A tick event while Garet hangs from the ledge: his sprite, pivoting on his hand, swings on a sine about a tilt of a 32nd of a turn, and every 128 ticks his grip strains.

References fdActorGet(), fdActorSetAttachedEffect(), Sint32, sySin() and TickCount.

Referenced by scJupiterLighthousePlaceForTheFight().

Definition at line 698 of file jupiter_lighthouse_terraces.c.

scJupiterLighthousePlayRandomBlowSound

Sint32 scJupiterLighthousePlayRandomBlowSound(void)

An action script's call during the fight: the sound of one of five blows, at random.

References fdScriptPlaySound(), Sint32 and syRandom().

Referenced by JupiterLighthouseIsaacFightsScript and JupiterLighthouseIvanFightsScript.

Definition at line 725 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseStopFacingMotion

Sint32 scJupiterLighthouseStopFacingMotion(ACTOR *actor)

An action script's call: stops the actor turning to face where it moves.

References Sint32.

Referenced by JupiterLighthouseAgatioFightsScript, JupiterLighthouseIsaacFightsScript, JupiterLighthouseIvanFightsScript and JupiterLighthouseKarstFightsScript.

Definition at line 743 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseStartTheFight

void scJupiterLighthouseStartTheFight(void)

Sets four actors' speeds, places them and starts their action scripts.

References fdActorSetScript(), JupiterLighthouseAgatioFightsScript, JupiterLighthouseIsaacFightsScript, JupiterLighthouseIvanFightsScript, JupiterLighthouseKarstFightsScript and JupiterLighthouseMiaScript.

Referenced by scInit() and scJupiterLighthousePartyArrivesAtTheFight().

Definition at line 762 of file jupiter_lighthouse_terraces.c.

scJupiterLighthousePlaceForTheFight

void scJupiterLighthousePlaceForTheFight(void)

Places Isaac, Ivan and Mia where the fight is, and Garet hanging from the ledge by his grip, swaying.

References fdActorGet(), fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteFlags(), JupiterLighthouseGaretHangsScript, scFieldSetTickEvent(), scJupiterLighthouseKeepGaretHanging() and Sint32.

Referenced by scInit().

Definition at line 781 of file jupiter_lighthouse_terraces.c.

scJupiterLighthousePartyArrivesAtTheFight

void scJupiterLighthousePartyArrivesAtTheFight(Sint32 west)

Felix comes out by the aerie to find Jenna, Sheba, Piers and Kraden watching the fight, and the party is placed to watch with them. west brings them out on the west side of the terrace; the scene only ever passes it set, so the east side's scripts go unused.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorSetSpeedFX(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkTo(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), JupiterLighthouseAgatioFacesEastScript, JupiterLighthouseAgatioStepsUpScript, JupiterLighthouseFelixArrivesEastScript, JupiterLighthouseFelixArrivesWestScript, JupiterLighthouseFelixLooksAroundScript, JupiterLighthouseGatherAtFelixScript, JupiterLighthouseIsaacFacesWestScript, JupiterLighthouseIvanFacesNorthScript, JupiterLighthouseJennaArrivesEastScript, JupiterLighthouseJennaArrivesWestScript, JupiterLighthouseKarstFacesSouthScript, JupiterLighthouseKarstStepsUpScript, JupiterLighthouseKarstTurnsScript, JupiterLighthouseKradenArrivesEastScript, JupiterLighthouseKradenArrivesWestScript, JupiterLighthouseMiaScript, JupiterLighthousePiersArrivesEastScript, JupiterLighthousePiersArrivesWestScript, JupiterLighthouseShebaArrivesEastScript, JupiterLighthouseShebaArrivesWestScript, scFieldActorLaunchFromLeader(), scFieldActorStartRepeatedMotion(), scFieldActorStop(), scFieldActorWaitForMoveById(), scFieldActorWaitForScriptEndById(), scFieldScriptAskYesNoWithActorAnimation() and 8 more.

Referenced by scInit().

Definition at line 812 of file jupiter_lighthouse_terraces.c.

scFieldUnitAddPp

static inline Sint32 scFieldUnitAddPp(Sint32 owner, Sint32 delta)

gmUnitAddPp as a script calls it, beside system_call.h's scFieldUnitAddHp.

References gmUnitAddPp() and Sint32.

Referenced by scJupiterLighthouseIsaacAndIvanAreHurt().

Definition at line 1328 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseIsaacAndIvanAreHurt

void scJupiterLighthouseIsaacAndIvanAreHurt(void)

The fight goes against Isaac and Ivan: Ivan can take no more, Agatio mocks Isaac's concern for him, and the battle that cannot be won begins, the two the whole party, Ivan with no HP, Isaac with ISAAC_HP_IN_THE_FIGHT, and neither with PP.

References fdActorFaceDirectionAndWait(), fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWalkBy(), fdCameraWaitForArrival(), fdRequestBattleFromEncounterTable(), fdScriptSetDefeatDestination(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmPartyAddMember(), gmPartyRemoveMember(), gmUnitAddPp(), gmUnitCalculate(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetAfterBattleDestination(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scFieldUnitAddHp() and scFieldUnitAddPp().

Referenced by scInit().

Definition at line 1337 of file jupiter_lighthouse_terraces.c.

scJupiterLighthousePlaceTheHurt

void scJupiterLighthousePlaceTheHurt(void)

Places Isaac and Ivan lying hurt after the fight, with Jenna, Sheba and Kraden beside them.

References fdActorGet(), fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteFlags() and JupiterLighthouseMiaScript.

Referenced by scInit().

Definition at line 1397 of file jupiter_lighthouse_terraces.c.

scJupiterLighthouseIsaacAndIvanFall

void scJupiterLighthouseIsaacAndIvanFall(void)

After the battle with Karst and Agatio: the two stand over the fallen Isaac and Ivan until Felix and the others step in, Felix promises to light the beacon, and the Mythril Bag holding the Jupiter Star is swapped for a plain one (ITEM_MYTHRIL_BAG_B) that Felix equips.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdPartyClearUnusableShortcuts(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmInventoryEquip(), gmPartyAddMember(), gmPartyInventoryAdd(), gmPartyInventoryRemove(), gmPartyRemoveMember(), gmUnitGet(), JupiterLighthouseFelixWaitsScript, JupiterLighthouseJennaStepsUpScript, JupiterLighthouseKradenWaitsScript, JupiterLighthouseLeaveForAerieScript, JupiterLighthouseMiaScript, JupiterLighthousePiersStepsUpScript, JupiterLighthouseShebaStepsUpScript, JupiterLighthouseWalkToAerieScript, MainRoutineStateWork, mnMessageShowCentered(), scFieldActorLaunchFromLeader(), scFieldActorShowEmote(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldActorWaitForScriptEndById(), scFieldActorWatchAndSetScript(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and 3 more.

Referenced by scInit().

Definition at line 1415 of file jupiter_lighthouse_terraces.c.

scInit

Sint32 scInit(void)

Sets up the terraces: the eight hanging chains (the first placed actors) and the rope, the trapdoor as it was left open, and once the lid is off the reunion as far as it has gone: the fight to watch, the fight itself, Isaac and Ivan fallen, or the hurt left behind once they have gone up to the aerie.

References fdActorGet(), fdHangingVinePlace(), fdRopeInit(), fdRopePlace(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scJupiterLighthouseIsaacAndIvanAreHurt(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthousePlaceForTheFight(), scJupiterLighthousePlaceTheHurt(), scJupiterLighthouseStartTheFight(), Sint32 and WhirlwindRiding.

Definition at line 1859 of file jupiter_lighthouse_terraces.c.

scPrepareMap

Sint32 scPrepareMap(void)

Loads the lighthouse's palettes and the energy block's light; once the block is in its gap, sets it there with the lit path and the Hover pad beyond.

References Call4(), fdActorGet(), fdMapGridSetMetatileHeight(), fdScriptGetFlag(), scJupiterLighthouseLoadPalettes(), scLightSpritesAdd(), scLightSpritesInitEnergyBlockGlow(), scSetArrivalFlags() and Sint32.

Definition at line 1948 of file jupiter_lighthouse_terraces.c.

scPaletteCycleSetTick

static inline void scPaletteCycleSetTick(Sint32 value)

Sets the palette cycle's tick counter.

References PaletteCycleTick and Sint32.

Referenced by scJupiterLighthouseLoadPalettes() and scTrialRoadStartPaletteCycle().

Definition at line 1976 of file jupiter_lighthouse_terraces.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 2011 of file jupiter_lighthouse_terraces.c.

Variables in detail

JupiterLighthouseGaretHangsScript

extern Uint32 JupiterLighthouseGaretHangsScript[]

LATE_DATA Uint32 JupiterLighthouseGaretHangsScript[]

Garet hangs from the ledge: in his hanging pose, raised 12 pixels, or after the Japanese edition set at a height of 12 pixels.

Referenced by scJupiterLighthousePlaceForTheFight().

Definition at lines 56 and 2311 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseMiaScript

extern Uint32 JupiterLighthouseMiaScript[]

LATE_DATA Uint32 JupiterLighthouseMiaScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthousePlaceTheHurt() and scJupiterLighthouseStartTheFight().

Definition at lines 57 and 2324 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseFelixLooksAroundScript

extern Uint32 JupiterLighthouseFelixLooksAroundScript[]

LATE_DATA Uint32 JupiterLighthouseFelixLooksAroundScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 58 and 2386 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseKradenArrivesWestScript

extern Uint32 JupiterLighthouseKradenArrivesWestScript[]

LATE_DATA Uint32 JupiterLighthouseKradenArrivesWestScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 59 and 2420 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseKradenArrivesEastScript

extern Uint32 JupiterLighthouseKradenArrivesEastScript[]

LATE_DATA Uint32 JupiterLighthouseKradenArrivesEastScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 60 and 2429 of file jupiter_lighthouse_terraces.c.

JupiterLighthousePiersArrivesWestScript

extern Uint32 JupiterLighthousePiersArrivesWestScript[]

LATE_DATA Uint32 JupiterLighthousePiersArrivesWestScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 61 and 2438 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseJennaArrivesEastScript

extern Uint32 JupiterLighthouseJennaArrivesEastScript[]

LATE_DATA Uint32 JupiterLighthouseJennaArrivesEastScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 62 and 2468 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseShebaArrivesWestScript

extern Uint32 JupiterLighthouseShebaArrivesWestScript[]

LATE_DATA Uint32 JupiterLighthouseShebaArrivesWestScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 63 and 2480 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseAgatioStepsUpScript

extern Uint32 JupiterLighthouseAgatioStepsUpScript[]

Uint32 JupiterLighthouseAgatioStepsUpScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 65 and 2047 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseKarstTurnsScript

extern Uint32 JupiterLighthouseKarstTurnsScript[]

Uint32 JupiterLighthouseKarstTurnsScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 66 and 2059 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseKarstFacesSouthScript

extern Uint32 JupiterLighthouseKarstFacesSouthScript[]

Uint32 JupiterLighthouseKarstFacesSouthScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 67 and 2065 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseAgatioFacesEastScript

extern Uint32 JupiterLighthouseAgatioFacesEastScript[]

Uint32 JupiterLighthouseAgatioFacesEastScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 68 and 2072 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseIsaacFacesWestScript

extern Uint32 JupiterLighthouseIsaacFacesWestScript[]

Uint32 JupiterLighthouseIsaacFacesWestScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 69 and 2079 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseIvanFacesNorthScript

extern Uint32 JupiterLighthouseIvanFacesNorthScript[]

Uint32 JupiterLighthouseIvanFacesNorthScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 70 and 2086 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseGatherAtFelixScript

extern Uint32 JupiterLighthouseGatherAtFelixScript[]

LATE_DATA Uint32 JupiterLighthouseGatherAtFelixScript[]

Each walks to where Felix stood when the script started.

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 72 and 2502 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseFelixWaitsScript

extern Uint32 JupiterLighthouseFelixWaitsScript[]

Uint32 JupiterLighthouseFelixWaitsScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall().

Definition at lines 74 and 2093 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseKradenWaitsScript

extern Uint32 JupiterLighthouseKradenWaitsScript[]

Uint32 JupiterLighthouseKradenWaitsScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall().

Definition at lines 75 and 2101 of file jupiter_lighthouse_terraces.c.

JupiterLighthousePiersStepsUpScript

extern Uint32 JupiterLighthousePiersStepsUpScript[]

Uint32 JupiterLighthousePiersStepsUpScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall().

Definition at lines 76 and 2109 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseShebaStepsUpScript

extern Uint32 JupiterLighthouseShebaStepsUpScript[]

Uint32 JupiterLighthouseShebaStepsUpScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall().

Definition at lines 77 and 2119 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseJennaStepsUpScript

extern Uint32 JupiterLighthouseJennaStepsUpScript[]

Uint32 JupiterLighthouseJennaStepsUpScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall().

Definition at lines 78 and 2129 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseWalkToAerieScript

extern Uint32 JupiterLighthouseWalkToAerieScript[]

LATE_DATA Uint32 JupiterLighthouseWalkToAerieScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall().

Definition at lines 80 and 2507 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseLeaveForAerieScript

extern Uint32 JupiterLighthouseLeaveForAerieScript[]

LATE_DATA Uint32 JupiterLighthouseLeaveForAerieScript[]

Referenced by scJupiterLighthouseIsaacAndIvanFall().

Definition at lines 81 and 2522 of file jupiter_lighthouse_terraces.c.

WhirlwindRiding

Sint32 WhirlwindRiding

References Sint32.

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

Definition at line 94 of file jupiter_lighthouse_terraces.c.

PaletteCycleColors

Uint16 PaletteCycleColors[16]

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

Definition at line 95 of file jupiter_lighthouse_terraces.c.

PaletteCycleUnlitPalette

Uint16 PaletteCycleUnlitPalette[2]

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

Referenced by scJupiterLighthouseLoadPalettes().

Definition at line 98 of file jupiter_lighthouse_terraces.c.

PaletteCycleUnlitColors

Uint16 PaletteCycleUnlitColors[14]

Referenced by scJupiterLighthouseLoadPalettes().

Definition at line 99 of file jupiter_lighthouse_terraces.c.

LightSpriteTile

Sint16 LightSpriteTile

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

Definition at line 100 of file jupiter_lighthouse_terraces.c.

LightSpriteCount

Sint16 LightSpriteCount

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

Definition at line 101 of file jupiter_lighthouse_terraces.c.

LightSpriteOams

LIGHT_OAM LightSpriteOams[16]

Referenced by scLightSpritesDraw().

Definition at line 103 of file jupiter_lighthouse_terraces.c.

LightSpritesLarge

Sint16 LightSpritesLarge

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

Definition at line 104 of file jupiter_lighthouse_terraces.c.

LightSpritePriority

Sint16 LightSpritePriority

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

Definition at line 105 of file jupiter_lighthouse_terraces.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 108 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseIsaacFightsScript

extern Uint32 JupiterLighthouseIsaacFightsScript[]

LATE_DATA Uint32 JupiterLighthouseIsaacFightsScript[]

References scJupiterLighthousePlayRandomBlowSound() and scJupiterLighthouseStopFacingMotion().

Referenced by scJupiterLighthouseStartTheFight().

Definition at lines 749 and 2334 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseAgatioFightsScript

extern Uint32 JupiterLighthouseAgatioFightsScript[]

LATE_DATA Uint32 JupiterLighthouseAgatioFightsScript[]

References scJupiterLighthouseStopFacingMotion().

Referenced by scJupiterLighthouseStartTheFight().

Definition at lines 750 and 2348 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseIvanFightsScript

extern Uint32 JupiterLighthouseIvanFightsScript[]

LATE_DATA Uint32 JupiterLighthouseIvanFightsScript[]

References scJupiterLighthousePlayRandomBlowSound() and scJupiterLighthouseStopFacingMotion().

Referenced by scJupiterLighthouseStartTheFight().

Definition at lines 751 and 2361 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseKarstFightsScript

extern Uint32 JupiterLighthouseKarstFightsScript[]

LATE_DATA Uint32 JupiterLighthouseKarstFightsScript[]

References scJupiterLighthouseStopFacingMotion().

Referenced by scJupiterLighthouseStartTheFight().

Definition at lines 752 and 2374 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseFelixArrivesWestScript

extern Uint32 JupiterLighthouseFelixArrivesWestScript[]

LATE_DATA Uint32 JupiterLighthouseFelixArrivesWestScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 801 and 2398 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseFelixArrivesEastScript

extern Uint32 JupiterLighthouseFelixArrivesEastScript[]

LATE_DATA Uint32 JupiterLighthouseFelixArrivesEastScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 802 and 2409 of file jupiter_lighthouse_terraces.c.

JupiterLighthousePiersArrivesEastScript

extern Uint32 JupiterLighthousePiersArrivesEastScript[]

LATE_DATA Uint32 JupiterLighthousePiersArrivesEastScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 803 and 2447 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseJennaArrivesWestScript

extern Uint32 JupiterLighthouseJennaArrivesWestScript[]

LATE_DATA Uint32 JupiterLighthouseJennaArrivesWestScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 804 and 2456 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseShebaArrivesEastScript

extern Uint32 JupiterLighthouseShebaArrivesEastScript[]

LATE_DATA Uint32 JupiterLighthouseShebaArrivesEastScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 805 and 2489 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseKarstStepsUpScript

extern Uint32 JupiterLighthouseKarstStepsUpScript[]

Uint32 JupiterLighthouseKarstStepsUpScript[]

Referenced by scJupiterLighthousePartyArrivesAtTheFight().

Definition at lines 806 and 2053 of file jupiter_lighthouse_terraces.c.

WhirlwindEndScript

extern Sint32 WhirlwindEndScript[]

LATE_DATA Sint32 WhirlwindEndScript[]

References Sint32.

Referenced by scWhirlwindUpdate().

Definition at lines 1987 and 2532 of file jupiter_lighthouse_terraces.c.

FieldEffectDurationScripts

extern const Sint32 *FieldEffectDurationScripts[]

LATE_DATA const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

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

Definition at lines 2020 and 2539 of file jupiter_lighthouse_terraces.c.

JupiterLighthouseShowGustScript

extern Sint32 JupiterLighthouseShowGustScript[]

LATE_DATA Sint32 JupiterLighthouseShowGustScript[]

References scJupiterLighthouseClearScriptedActorSpriteFlags() and Sint32.

Referenced by ActorPlacements.

Definition at lines 2141 and 2147 of file jupiter_lighthouse_terraces.c.

SceneExits

LATE_DATA Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 2155 of file jupiter_lighthouse_terraces.c.

ActorPlacements

LATE_DATA ACTOR_PLACE ActorPlacements[]

References JupiterLighthouseShowGustScript and Sint32.

Referenced by scGetActorPlacements().

Definition at line 2187 of file jupiter_lighthouse_terraces.c.

SceneCues

LATE_DATA CUE SceneCues[]

References fdWhirlwindCarryLeader(), scJupiterLighthouseCloseFloor(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseOpenFloor(), scJupiterLighthouseRideUpperWhirlwind(), scJupiterLighthouseRideWhirlwind(), scJupiterLighthouseStartMovingBlock() and scJupiterLighthouseTalkAfterTheFight().

Referenced by scGetCues().

Definition at line 2257 of file jupiter_lighthouse_terraces.c.

Sint32

LATE_DATA Sint32

Referenced by ActorApproachWatchedScript, ActorCameraScript, ActorFaceWatchedScript, ActorFlyScript, ActorFootprintScript, ActorHoverScript, ActorIdleScript, ActorKeyCheckScript, ActorKeysScript, ActorLaunchScript, ActorOffsetScript, ActorPlacements, ActorPlayerScript, ActorRippleScript, ActorRopeScript, ActorSailOnMapScript, ActorSailScript, ActorSandOnWorldMapScript, ActorSandPuffScript, ActorSandScript, ActorScriptCycleTable, ActorScriptEndScript, ActorScriptIdleScript, ActorSplashScript, ActorStepAngleScript, ActorTightropeScript, ActorWaitScript, ActorWalkingScript, ActorWorldMapScript, AirsRockEntrancePlacements, AirsRockInsideFaceVentsPlacements, AirsRockInsideLeaderLevel, AirsRockInsideOrbitingSparkScript, AirsRockInsidePairedStakesPlacements, AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockInsideWindStonePlacements, AirsRockLeaderLevel, AirsRockRubbleScript, AirsRockWindStoneScript, AlhafraActorPlacementsOnceTheMastIsCleared, AlhafraAlhafranLeadsBehindFelixScript, AlhafraElderStepsBackScript, AlhafranCaveGuardStepsAsideScript, AlhafranCaveIdleEventTick and 4596 more.

Definition at lines 2528 and 2530 of file jupiter_lighthouse_terraces.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailOWN_fdMapGridGetMetatileBehaviorFLAG_ENERGY_BLOCK_IN_GAPFLAG_GRAY_BLOCK_DROPPEDFLAG_JUPITER_LIGHTHOUSE_ROPE_TIEDFLAG_TRAPDOOR_OPENscJupiterLighthouseLightPathToHoverPadscJupiterLighthouseLeaveTrapdoorOpenLIGHTNING_MAP_TILE_BASE_MASKGARET_SWING_DIVISORPLACEEFFECT_SET_MODEEFFECT_SET_SCRIPTMETATILE_PUSH_SLOT_ENTRYFIELD_EFFECT_DURATION_SCRIPT_SECTIONSCENE_ENTRANCES_SECTIONEnumerations in detailanonymous enumanonymous enumanonymous enumanonymous enumJUPITER_LIGHTHOUSE_TERRACES_METATILE_BEHAVIORanonymous enumanonymous enumFunctions in detailscJupiterLighthouseRideUpperWhirlwindscJupiterLighthouseRideWhirlwindscJupiterLighthouseOpenFloorscJupiterLighthouseCloseFloorscJupiterLighthouseClearScriptedActorSpriteFlagsscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscJupiterLighthouseFlashSkyscJupiterLighthouseStartMovingBlockscJupiterLighthouseSetMetatileHeightscJupiterLighthouseFinishMovingBlockscGetCuesscJupiterLighthouseTalkAfterTheFightscJupiterLighthouseKeepGaretHangingscJupiterLighthousePlayRandomBlowSoundscJupiterLighthouseStopFacingMotionscJupiterLighthouseStartTheFightscJupiterLighthousePlaceForTheFightscJupiterLighthousePartyArrivesAtTheFightscFieldUnitAddPpscJupiterLighthouseIsaacAndIvanAreHurtscJupiterLighthousePlaceTheHurtscJupiterLighthouseIsaacAndIvanFallscInitscPrepareMapscPaletteCycleSetTickscLightSpritesSetPriorityVariables in detailJupiterLighthouseGaretHangsScriptJupiterLighthouseMiaScriptJupiterLighthouseFelixLooksAroundScriptJupiterLighthouseKradenArrivesWestScriptJupiterLighthouseKradenArrivesEastScriptJupiterLighthousePiersArrivesWestScriptJupiterLighthouseJennaArrivesEastScriptJupiterLighthouseShebaArrivesWestScriptJupiterLighthouseAgatioStepsUpScriptJupiterLighthouseKarstTurnsScriptJupiterLighthouseKarstFacesSouthScriptJupiterLighthouseAgatioFacesEastScriptJupiterLighthouseIsaacFacesWestScriptJupiterLighthouseIvanFacesNorthScriptJupiterLighthouseGatherAtFelixScriptJupiterLighthouseFelixWaitsScriptJupiterLighthouseKradenWaitsScriptJupiterLighthousePiersStepsUpScriptJupiterLighthouseShebaStepsUpScriptJupiterLighthouseJennaStepsUpScriptJupiterLighthouseWalkToAerieScriptJupiterLighthouseLeaveForAerieScriptWhirlwindRidingPaletteCycleColorsPaletteCycleUnlitPalettePaletteCycleUnlitColorsLightSpriteTileLightSpriteCountLightSpriteOamsLightSpritesLargeLightSpritePriorityCrackedTilesJupiterLighthouseIsaacFightsScriptJupiterLighthouseAgatioFightsScriptJupiterLighthouseIvanFightsScriptJupiterLighthouseKarstFightsScriptJupiterLighthouseFelixArrivesWestScriptJupiterLighthouseFelixArrivesEastScriptJupiterLighthousePiersArrivesEastScriptJupiterLighthouseJennaArrivesWestScriptJupiterLighthouseShebaArrivesEastScriptJupiterLighthouseKarstStepsUpScriptWhirlwindEndScriptFieldEffectDurationScriptsJupiterLighthouseShowGustScriptSceneExitsActorPlacementsSceneCuesSint32