Skip to Content
The Alchemy Project

src/scene/jupiter_lighthouse_aerie_beacon.c

Jupiter Lighthouse's aerie and its beacon: Karst and Agatio wait (scJupiterLighthouseKarstAndAgatioWait), the party casts the Jupiter Star into the well (scJupiterLighthouseCastTheJupiterStar) and the beacon is lit (scJupiterLighthouseBeaconIsLit); Karst and Agatio are fought three times, Jenna and Sheba coming to help (scJupiterLighthouseJennaJoinsTheFight, scJupiterLighthouseShebaJoinsTheFight), and Alex takes them down on the elevator whether the party wins (scJupiterLighthouseWeBeatThem) or loses (scJupiterLighthouseKarstAndAgatioRetreat).

Macros

NameDescription
#defineOWN_fdMapGridGetMetatileBehaviorThis file declares fdMapGridGetMetatileBehavior its own way, below.
#defineFLAG_KARST_AND_AGATIO_MET_FELIX FLAG_SCENE_TEMP(0x00)Set once Karst and Agatio have met Felix on his way up to the well, so that they do not stop him again.
#defineFLAG_BEACON_PARTICLES_EVERY_TICK FLAG_SCENE_TEMP(0x01)Sends up the column of light's particles every tick rather than every third (scJupiterLighthouseSpawnBeaconParticle); nothing here sets it.
#defineFLAG_BEACON_LIGHT_RISEN FLAG_SCENE_TEMP(0x02)Set once the unused scJupiterLighthouseRaiseBeaconLight has finished.
#defineBEACON_ORB_VIEW_Z_MAX 177The furthest south the view may lie, in pixels, with the lit beacon's light drawn over the well.
#defineDEFEAT_REVIVAL_HP_TAKEN 10The HP the next battle's script takes from Felix when the party lost to Karst and Agatio: more than the 1 HP the defeat revived him with (gmReturnFromEngine), so he goes into it downed.
#defineELEVATOR_RIDERS_END FIELD_TREASURE_ACTOREnds a list of the elevator's riders: the first id past the actors a scene places.
#defineELEVATOR_DOWN_TICKS 228The ticks the elevator takes to sink all the way, the tick of a ride at which the camera sets off after it, and the tick at which a rise and every descent but DESCENT_FELIX stop.
#defineELEVATOR_CAMERA_TICK 40
#defineELEVATOR_RIDE_TICKS 120
#defineELEVATOR_DRAG 16The rising elevator keeps (ELEVATOR_DRAG - 1) / ELEVATOR_DRAG of its speed every fourth tick once it is less than ELEVATOR_SLOWING_TICKS ticks' travel from its level.
#defineELEVATOR_SLOWING_TICKS 30
#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 { ACTOR_WEST_CHAIN, ACTOR_EAST_CHAIN, ACTOR_FLOATING_PLATFORM_ … }The placed actors this file moves by number, besides the angels, the archers and the lid (scene/jupiter_lighthouse_aerie.h).
enumanonymous enum { ANIM_AGATIO_BATTLE_STANCE, ANIM_AGATIO_LIE_BEATEN, ANIM_KARS … }The poses of the battles with Karst and Agatio, by each sheet: facing off, weapons ready (Felix, Piers and Jenna seen from behind), and lying beaten on the ground.
enumanonymous enum { METATILE_WEST_DOORWAY_DOWN, METATILE_EAST_DOORWAY_DOWN, META … }The doorways down to the cracked floor in the west and east walls under the well, metatiles (28, 23) and (35, 23), beside entrances 1 and 2; the metatiles on the way up to the well where Karst and Agatio meet Felix; and the row before the well where he can cast the Jupiter Star.
enumanonymous enum { ENTRANCE_AFTER_FIRST_BATTLE, ENTRANCE_AFTER_SECOND_BATTLE, E … }The entrances the beacon's scripts arrive by after each battle with Karst and Agatio, next after JUPITER_LIGHTHOUSE_AERIE_BEACON_BEACON_LIT, the way back from the World Map's view of the lit beacon.
enumELEVATOR_DESCENT { DESCENT_ALEX_AGATIO_KARST, DESCENT_ISAAC, DESCENT_FELIX, DES … }Whom scJupiterLighthouseLowerElevator carries down, and where the camera goes: Alex, Agatio and Karst with the camera moving south after them; Isaac, the camera after him; Felix, carried all the way down; and Alex, Agatio and Karst with the camera following Isaac.
enumELEVATOR_ASCENT { ASCENT_AT_ONCE, ASCENT_RISING }How scJupiterLighthouseRaiseElevator brings the elevator back: put back at once, or rising with the camera moving after it.

Functions

NameDescription
Sint32scJupiterLighthouseJumpWithoutShadow (ACTOR *actor)An actor-script call: plays the jump sound and drops the actor's shadow as it hops onto the next floating platform.
Sint32scJupiterLighthouseShowShadow (ACTOR *actor)An actor-script call: gives the actor its shadow back once it has landed.
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.
voidscJupiterLighthouseCircleBeacon (ACTOR *self)Turns a particle round the column of light's bottom (ACTOR_BEAM_BOTTOM) by its circleAngle, a thirty-second of a turn a tick, as far across as its speed and two pixels deep.
voidscJupiterLighthouseCircleBeaconWide (ACTOR *self)Turns a spark round the beacon's rising light (ACTOR_BEACON_ORB), wider across than deep, its radius from its speed and its sceneCount.
voidscJupiterLighthouseKarstAndAgatioWait (void)Walking up towards the well in the aerie's center (metatiles (33, 21) and (34, 21)) once Isaac and Ivan have fallen, Felix is met by Karst and Agatio waiting there: "You're late, Felix!" and "Now light the beacon!".
voidscActorStopWhereItStands (ACTOR *actor)Stops an actor where it stands: no movement target, no speed, and its timer back to 0.
voidscCrackedTileCrack (METATILE_TARGET *table, METATILE_TARGET_ENTRY *entry)Cracks the tile under the leader, swapping in its cracked picture.
voidscJupiterLighthouseLowerElevator (Sint32 descent)The elevator, drawn on the map's overhead layer, sinks with the riders of its descent, speeding up a tenth of a pixel every fourth tick.
voidscJupiterLighthouseRaiseElevator (Sint32 ascent)The elevator rises back to where it was before it sank, slowing as it nears it, or with ASCENT_AT_ONCE is only put back.
voidscJupiterLighthousePlaceRaisedActors (void)Puts the aerie's two angels and the well's lid where the archers' arrows left them (FLAG_JUPITER_LIGHTHOUSE_LEFT_ANGEL_SHOT and its right twin): each shot angel and its archer glow, the angel rises and its side of the lid lifts; with both, the angels and the lid float over the well.
Sint32fdMapGridGetMetatileBehavior ()Declared without its parameters, and read back as a whole Sint32, as these rooms call it; the field defines it taking three Sint32 values and returning a Uint8.
voidscJupiterLighthouseRaiseBeaconLight (void)Unused: one tick of the beacon's rise as The Broken Seal's Venus Lighthouse aerie plays it, counted by JupiterLighthouseBeaconRiseTick: the tower shakes and flashes, the orb (ACTOR_BEACON_ORB) climbs from below the map shedding sparks, and the screen fades to white; FLAG_BEACON_LIGHT_RISEN is set once it is done.
voidscJupiterLighthouseSpawnBeaconParticle (void)Every third tick, or every tick with FLAG_BEACON_PARTICLES_EVERY_TICK, sends up a particle from a random height on the first column of light, circling it (scJupiterLighthouseCircleBeacon).
voidscJupiterLighthousePulseBeacon (void)The lit beacon's light (ACTOR_BEACON_ORB) pulses over the well while the view lies no further south than BEACON_ORB_VIEW_Z_MAX: full size on odd ticks, 1.3 times the size and 7 pixels lower on even ones.
voidscJupiterLighthouseCastTheJupiterStar (void)Stepping up to the well in the aerie's center (metatiles (29, 18) to (34, 18)) once Isaac and Ivan have fallen, Felix is asked whether to cast the Elemental Star into its wide hole.
voidscJupiterLighthouseBeaconIsLit (void)Back on the aerie beside the lit beacon, Karst and Agatio turn on Felix and Piers, give back the Mythril Bag, and the first battle with them begins.
voidscJupiterLighthouseJennaJoinsTheFight (void)After the first battle with Karst and Agatio on the aerie, Jenna comes to help, joins Felix, and the second battle begins.
voidscJupiterLighthouseShebaJoinsTheFight (void)After the second battle on the aerie, Sheba comes to help, joins the party, and the last battle with Karst and Agatio begins.
voidscJupiterLighthouseHealActor (Sint32 casterId, Sint32 targetId)The caster's arcs of light reach a fallen actor and it stands up: Mia healing Felix's party, or Alex healing Agatio and Karst.
voidscJupiterLighthouseKarstAndAgatioRetreat (void)When the party loses the last battle on the aerie, Alex arrives and takes Karst and Agatio down on the elevator; Isaac's party comes up, Mia heals Felix's party, and both parties leave on the elevator.
voidscJupiterLighthouseWeBeatThem (void)When the party wins the last battle on the aerie, Alex heals Karst and Agatio and takes them down on the elevator; Isaac's party comes up, and both parties leave on the elevator.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscJupiterLighthouseFindElevatorRiders (Sint32 *out, Sint32 scrollZ)Unused: writes to out the slots of the actors standing on the elevator, which lies in columns 4 to 8 and three rows down from row 72 less scrollZ's row, as The Broken Seal's scMercuryLighthouseAerieFindActorsOnLift finds its lift's.
Sint32scInit (void)Sets up the scene as the party enters: the floating platforms and the lid, the beacon's light, and the script of the entrance taken (JUPITER_LIGHTHOUSE_AERIE_BEACON_BEACON_LIT to ENTRANCE_LAST_BATTLE_LOST).
Sint32scPrepareMap (void)Sets the scene's arrival flags before the map is built.
static inline voidscPaletteCycleSetTick (Sint32 value)Sets how many ticks the palette cycle has run, which picks the place its colours stand at (fdPaletteCycleStep); 0 starts it from the first.
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.
voidscCrackedTileUpdate (void)Clears the current entry once the leader has left its metatile; while the leader stays on it and the mask is shown, draws the mask over the metatile at the height of the ground there, unless it is off screen.
voidsyGameFlagSetByte (Sint32 flag, Sint32 value)Sets the whole byte flags is in.

Variables

NameDescription
Sint32JupiterLighthouseElevatorLevel
Uint8JupiterLighthouseUnusedAfterElevatorLevel [4]Unused: nothing reads these bytes.
Sint32JupiterLighthouseBeaconRiseTick
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 Sint32JupiterLighthouseBeaconOrbBreathesScript []The lit beacon's orb breathes: narrower for four ticks, wider for four, again and again.
extern Sint32JupiterLighthouseBeaconSparkScript []A spark shed by the rising orb (scJupiterLighthouseRaiseBeaconLight): it drops a pixel a tick for 16 ticks and is released.
extern Sint32JupiterLighthouseBeaconParticleScript []A particle of the column of light (scJupiterLighthouseSpawnBeaconParticle): it climbs a pixel a tick for 16 ticks and is released.
extern Sint32JupiterLighthouseBeamOpenScript []The column of light widens by a sixteenth of its picture's width a tick for 32 ticks.
extern Sint32JupiterLighthouseJoinLeaderScript []A party member walks into the leader it was sent to and is released there.
extern Sint32JupiterLighthouseWalkToPlatformsScript []Walks west round the well to the western floating platforms.
extern Sint32JupiterLighthouseHopWestOverPlatformsScript []Hops west over the three western floating platforms.
extern Sint32JupiterLighthouseHopEastOverPlatformsScript []Hops east over the three eastern floating platforms.
extern Sint32JupiterLighthouseFirstElevatorRiders []Who the elevator carries down, by scJupiterLighthouseLowerElevator's descent: Alex, Agatio and Karst; Isaac; Felix; no one.
extern Sint32JupiterLighthouseSecondElevatorRiders []
extern Sint32JupiterLighthouseThirdElevatorRiders []
extern Sint32JupiterLighthouseFourthElevatorRiders []
extern Sint32JupiterLighthouseFloatingPlatforms []The aerie's six floating platforms.
extern Sint32JupiterLighthouseRisingElevatorRiders []Who rides the elevator back up (scJupiterLighthouseRaiseElevator): no one.
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.
LATE_DATA Sint32JupiterLighthouseRockScript []Unused: turns its actor's facing back and forth, 9/128 of a turn at a time, and ends.
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

Jupiter Lighthouse's aerie and its beacon: Karst and Agatio wait (scJupiterLighthouseKarstAndAgatioWait), the party casts the Jupiter Star into the well (scJupiterLighthouseCastTheJupiterStar) and the beacon is lit (scJupiterLighthouseBeaconIsLit); Karst and Agatio are fought three times, Jenna and Sheba coming to help (scJupiterLighthouseJennaJoinsTheFight, scJupiterLighthouseShebaJoinsTheFight), and Alex takes them down on the elevator whether the party wins (scJupiterLighthouseWeBeatThem) or loses (scJupiterLighthouseKarstAndAgatioRetreat).

Macros in detail

OWN_fdMapGridGetMetatileBehavior

#define OWN_fdMapGridGetMetatileBehavior

This file declares fdMapGridGetMetatileBehavior its own way, below.

Definition at line 11 of file jupiter_lighthouse_aerie_beacon.c.

FLAG_KARST_AND_AGATIO_MET_FELIX

#define FLAG_KARST_AND_AGATIO_MET_FELIX FLAG_SCENE_TEMP(0x00)

Set once Karst and Agatio have met Felix on his way up to the well, so that they do not stop him again.

Referenced by SceneCues and scJupiterLighthouseKarstAndAgatioWait().

Definition at line 76 of file jupiter_lighthouse_aerie_beacon.c.

FLAG_BEACON_PARTICLES_EVERY_TICK

#define FLAG_BEACON_PARTICLES_EVERY_TICK FLAG_SCENE_TEMP(0x01)

Sends up the column of light's particles every tick rather than every third (scJupiterLighthouseSpawnBeaconParticle); nothing here sets it.

Referenced by scJupiterLighthouseSpawnBeaconParticle().

Definition at line 79 of file jupiter_lighthouse_aerie_beacon.c.

FLAG_BEACON_LIGHT_RISEN

#define FLAG_BEACON_LIGHT_RISEN FLAG_SCENE_TEMP(0x02)

Set once the unused scJupiterLighthouseRaiseBeaconLight has finished.

Referenced by scJupiterLighthouseRaiseBeaconLight().

Definition at line 81 of file jupiter_lighthouse_aerie_beacon.c.

BEACON_ORB_VIEW_Z_MAX

#define BEACON_ORB_VIEW_Z_MAX 177

The furthest south the view may lie, in pixels, with the lit beacon's light drawn over the well.

Referenced by scJupiterLighthousePulseBeacon().

Definition at line 454 of file jupiter_lighthouse_aerie_beacon.c.

DEFEAT_REVIVAL_HP_TAKEN

#define DEFEAT_REVIVAL_HP_TAKEN 10

The HP the next battle's script takes from Felix when the party lost to Karst and Agatio: more than the 1 HP the defeat revived him with (gmReturnFromEngine), so he goes into it downed.

Referenced by scJupiterLighthouseJennaJoinsTheFight() and scJupiterLighthouseShebaJoinsTheFight().

Definition at line 971 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_RIDERS_END

#define ELEVATOR_RIDERS_END FIELD_TREASURE_ACTOR

Ends a list of the elevator's riders: the first id past the actors a scene places.

Referenced by JupiterLighthouseFirstElevatorRiders, JupiterLighthouseFourthElevatorRiders, JupiterLighthouseRisingElevatorRiders, JupiterLighthouseSecondElevatorRiders, JupiterLighthouseThirdElevatorRiders, scJupiterLighthouseLowerElevator() and scJupiterLighthouseRaiseElevator().

Definition at line 2252 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_DOWN_TICKS

#define ELEVATOR_DOWN_TICKS 228

The ticks the elevator takes to sink all the way, the tick of a ride at which the camera sets off after it, and the tick at which a rise and every descent but DESCENT_FELIX stop.

Referenced by scJupiterLighthouseLowerElevator().

Definition at line 2263 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_CAMERA_TICK

#define ELEVATOR_CAMERA_TICK 40

Referenced by scJupiterLighthouseLowerElevator() and scJupiterLighthouseRaiseElevator().

Definition at line 2264 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_RIDE_TICKS

#define ELEVATOR_RIDE_TICKS 120

Referenced by scJupiterLighthouseLowerElevator() and scJupiterLighthouseRaiseElevator().

Definition at line 2265 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_DRAG

#define ELEVATOR_DRAG 16

The rising elevator keeps (ELEVATOR_DRAG - 1) / ELEVATOR_DRAG of its speed every fourth tick once it is less than ELEVATOR_SLOWING_TICKS ticks' travel from its level.

Referenced by scJupiterLighthouseRaiseElevator().

Definition at line 2368 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_SLOWING_TICKS

#define ELEVATOR_SLOWING_TICKS 30

Referenced by scJupiterLighthouseRaiseElevator().

Definition at line 2369 of file jupiter_lighthouse_aerie_beacon.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 2561 of file jupiter_lighthouse_aerie_beacon.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 2562 of file jupiter_lighthouse_aerie_beacon.c.

METATILE_PUSH_SLOT_ENTRY

#define METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped

Referenced by scCrackedTileUpdate().

Definition at line 2568 of file jupiter_lighthouse_aerie_beacon.c.

FIELD_EFFECT_DURATION_SCRIPT_SECTION

#define FIELD_EFFECT_DURATION_SCRIPT_SECTION LATE_DATA

Referenced by FieldEffectLongScript, FieldEffectMediumScript and FieldEffectShortScript.

Definition at line 2608 of file jupiter_lighthouse_aerie_beacon.c.

SCENE_ENTRANCES_SECTION

#define SCENE_ENTRANCES_SECTION LATE_DATA

Referenced by LATE_DATA and SceneEntrances.

Definition at line 2795 of file jupiter_lighthouse_aerie_beacon.c.

Enumerations in detail

anonymous enum

enum { ACTOR_WEST_CHAIN, ACTOR_EAST_CHAIN, ACTOR_FLOATING_PLATFORM_A, ACTOR_FLOATING_PLATFORM_B, … }

The placed actors this file moves by number, besides the angels, the archers and the lid (scene/jupiter_lighthouse_aerie.h). The party's rows take their characters' numbers; the rest count on from 8.

EnumeratorValueDescription
ACTOR_WEST_CHAIN15The chains hanging down the wall below the well
ACTOR_EAST_CHAIN(fdHangingVinePlace).
ACTOR_FLOATING_PLATFORM_A17The six platforms floating over the shafts either side of the well, west to east.
ACTOR_FLOATING_PLATFORM_B18
ACTOR_FLOATING_PLATFORM_C19
ACTOR_FLOATING_PLATFORM_D20
ACTOR_FLOATING_PLATFORM_E21
ACTOR_FLOATING_PLATFORM_F22
ACTOR_AGATIO27
ACTOR_KARST28
ACTOR_ALEX29
ACTOR_KRADEN30
ACTOR_BEAM_BOTTOM31The bottom and top of the column of light
ACTOR_BEAM_TOP32that rises out of the well once the Jupiter Star is cast in (scJupiterLighthouseCastTheJupiterStar).
ACTOR_BEACON_ORB36The lit beacon, a great swirling orb over the well.
ACTOR_STAR_SHADOW37The Jupiter Star's shadow: an unseen marker whose shadow alone shows, at an eighth of its size, following the star from Felix to the well.

Definition at line 30 of file jupiter_lighthouse_aerie_beacon.c.

anonymous enum

enum { ANIM_AGATIO_BATTLE_STANCE, ANIM_AGATIO_LIE_BEATEN, ANIM_KARST_BATTLE_STANCE, ANIM_KARST_LIE_BEATEN, … }

The poses of the battles with Karst and Agatio, by each sheet: facing off, weapons ready (Felix, Piers and Jenna seen from behind), and lying beaten on the ground. Jenna and Sheba fall as ANIM_COLLAPSE.

EnumeratorValueDescription
ANIM_AGATIO_BATTLE_STANCE9
ANIM_AGATIO_LIE_BEATEN10
ANIM_KARST_BATTLE_STANCE8
ANIM_KARST_LIE_BEATEN9
ANIM_LEADER_BATTLE_STANCE50
ANIM_PIERS_BATTLE_STANCE12
ANIM_PIERS_LIE_BEATEN13
ANIM_JENNA_BATTLE_STANCE27

Definition at line 62 of file jupiter_lighthouse_aerie_beacon.c.

anonymous enum

enum { METATILE_WEST_DOORWAY_DOWN, METATILE_EAST_DOORWAY_DOWN, METATILE_BEFORE_KARST_AND_AGATIO, METATILE_BEFORE_THE_WELL }

The doorways down to the cracked floor in the west and east walls under the well, metatiles (28, 23) and (35, 23), beside entrances 1 and 2; the metatiles on the way up to the well where Karst and Agatio meet Felix; and the row before the well where he can cast the Jupiter Star.

EnumeratorValueDescription
METATILE_WEST_DOORWAY_DOWN1
METATILE_EAST_DOORWAY_DOWN
METATILE_BEFORE_KARST_AND_AGATIO100
METATILE_BEFORE_THE_WELL

Definition at line 87 of file jupiter_lighthouse_aerie_beacon.c.

anonymous enum

enum { ENTRANCE_AFTER_FIRST_BATTLE, ENTRANCE_AFTER_SECOND_BATTLE, ENTRANCE_LAST_BATTLE_WON, ENTRANCE_LAST_BATTLE_LOST }

The entrances the beacon's scripts arrive by after each battle with Karst and Agatio, next after JUPITER_LIGHTHOUSE_AERIE_BEACON_BEACON_LIT, the way back from the World Map's view of the lit beacon.

EnumeratorValueDescription
ENTRANCE_AFTER_FIRST_BATTLEJUPITER_LIGHTHOUSE_AERIE_BEACON_BEACON_LIT + 1
ENTRANCE_AFTER_SECOND_BATTLE
ENTRANCE_LAST_BATTLE_WON
ENTRANCE_LAST_BATTLE_LOST

Definition at line 98 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_DESCENT

enum ELEVATOR_DESCENT

Whom scJupiterLighthouseLowerElevator carries down, and where the camera goes: Alex, Agatio and Karst with the camera moving south after them; Isaac, the camera after him; Felix, carried all the way down; and Alex, Agatio and Karst with the camera following Isaac.

EnumeratorValueDescription
DESCENT_ALEX_AGATIO_KARST
DESCENT_ISAAC
DESCENT_FELIX
DESCENT_ALEX_AGATIO_KARST_FOLLOWING_ISAAC

Definition at line 222 of file jupiter_lighthouse_aerie_beacon.c.

ELEVATOR_ASCENT

enum ELEVATOR_ASCENT

How scJupiterLighthouseRaiseElevator brings the elevator back: put back at once, or rising with the camera moving after it.

EnumeratorValueDescription
ASCENT_AT_ONCE
ASCENT_RISING

Definition at line 232 of file jupiter_lighthouse_aerie_beacon.c.

Functions in detail

scJupiterLighthouseJumpWithoutShadow

Sint32 scJupiterLighthouseJumpWithoutShadow(ACTOR *actor)

An actor-script call: plays the jump sound and drops the actor's shadow as it hops onto the next floating platform.

References fdActorSetSpriteFlags(), fdScriptPlaySound() and Sint32.

Referenced by JupiterLighthouseHopEastOverPlatformsScript and JupiterLighthouseHopWestOverPlatformsScript.

Definition at line 109 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseShowShadow

Sint32 scJupiterLighthouseShowShadow(ACTOR *actor)

An actor-script call: gives the actor its shadow back once it has landed.

References fdActorSetSpriteFlags() and Sint32.

Referenced by JupiterLighthouseHopEastOverPlatformsScript and JupiterLighthouseHopWestOverPlatformsScript.

Definition at line 117 of file jupiter_lighthouse_aerie_beacon.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 123 of file jupiter_lighthouse_aerie_beacon.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 128 of file jupiter_lighthouse_aerie_beacon.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 133 of file jupiter_lighthouse_aerie_beacon.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 138 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseCircleBeacon

void scJupiterLighthouseCircleBeacon(ACTOR *self)

Turns a particle round the column of light's bottom (ACTOR_BEAM_BOTTOM) by its circleAngle, a thirty-second of a turn a tick, as far across as its speed and two pixels deep.

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

Referenced by scJupiterLighthouseSpawnBeaconParticle().

Definition at line 148 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseCircleBeaconWide

void scJupiterLighthouseCircleBeaconWide(ACTOR *self)

Turns a spark round the beacon's rising light (ACTOR_BEACON_ORB), wider across than deep, its radius from its speed and its sceneCount.

References fdActorGet(), Sint32, syCos() and sySin().

Referenced by scJupiterLighthouseRaiseBeaconLight().

Definition at line 169 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseKarstAndAgatioWait

void scJupiterLighthouseKarstAndAgatioWait(void)

Walking up towards the well in the aerie's center (metatiles (33, 21) and (34, 21)) once Isaac and Ivan have fallen, Felix is met by Karst and Agatio waiting there: "You're late, Felix!" and "Now light the beacon!".

References fdActorShowEmote(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by SceneCues.

Definition at lines 189 and 375 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseLowerElevator

void scJupiterLighthouseLowerElevator(Sint32 descent)

The elevator, drawn on the map's overhead layer, sinks with the riders of its descent, speeding up a tenth of a pixel every fourth tick.

References fdActorGet(), fdScriptPlaySound(), JupiterLighthouseElevatorLevel, JupiterLighthouseFirstElevatorRiders, JupiterLighthouseFloatingPlatforms, JupiterLighthouseFourthElevatorRiders, JupiterLighthouseSecondElevatorRiders, JupiterLighthouseThirdElevatorRiders, scFieldActorSetSpritePriority(), scScriptCameraFollowActor(), Sint32 and sySynch().

Referenced by scJupiterLighthouseKarstAndAgatioRetreat() and scJupiterLighthouseWeBeatThem().

Definition at lines 238 and 2269 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseRaiseElevator

void scJupiterLighthouseRaiseElevator(Sint32 ascent)

The elevator rises back to where it was before it sank, slowing as it nears it, or with ASCENT_AT_ONCE is only put back.

References fdActorGet(), fdMapGridCenterOnFollowedPoint(), fdScriptPlaySound(), JupiterLighthouseElevatorLevel, JupiterLighthouseRisingElevatorRiders, Sint32 and sySynch().

Referenced by scJupiterLighthouseKarstAndAgatioRetreat() and scJupiterLighthouseWeBeatThem().

Definition at lines 239 and 2373 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseRaiseBeaconLight

void scJupiterLighthouseRaiseBeaconLight(void)

Unused: one tick of the beacon's rise as The Broken Seal's Venus Lighthouse aerie plays it, counted by JupiterLighthouseBeaconRiseTick: the tower shakes and flashes, the orb (ACTOR_BEACON_ORB) climbs from below the map shedding sparks, and the screen fades to white; FLAG_BEACON_LIGHT_RISEN is set once it is done. No script here starts it.

References fdActorGetById(), fdActorSetScript(), fdActorStartScript(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptPlaySound(), fdScriptSetFlag(), JupiterLighthouseBeaconOrbBreathesScript, JupiterLighthouseBeaconRiseTick, JupiterLighthouseBeaconSparkScript, scActorStopWhereItStands(), scFieldActorCreate(), scFieldActorSetSpriteColor(), scFieldActorStop(), scJupiterLighthouseCircleBeaconWide(), Sint32, syRandom(), sySin() and TickCount.

Definition at line 252 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseSpawnBeaconParticle

void scJupiterLighthouseSpawnBeaconParticle(void)

Every third tick, or every tick with FLAG_BEACON_PARTICLES_EVERY_TICK, sends up a particle from a random height on the first column of light, circling it (scJupiterLighthouseCircleBeacon).

References fdActorGet(), fdActorStartScript(), fdScriptGetFlag(), JupiterLighthouseBeaconParticleScript, scFieldActorCreate(), scFieldActorSetSpriteColor(), scJupiterLighthouseCircleBeacon(), Sint32, syRandom(), sySin() and TickCount.

Referenced by scJupiterLighthouseCastTheJupiterStar().

Definition at line 402 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthousePulseBeacon

void scJupiterLighthousePulseBeacon(void)

The lit beacon's light (ACTOR_BEACON_ORB) pulses over the well while the view lies no further south than BEACON_ORB_VIEW_Z_MAX: full size on odd ticks, 1.3 times the size and 7 pixels lower on even ones. Further south it is put away at the origin.

References fdActorGet(), syRandom() and TickCount.

Referenced by scInit().

Definition at line 460 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseCastTheJupiterStar

void scJupiterLighthouseCastTheJupiterStar(void)

Stepping up to the well in the aerie's center (metatiles (29, 18) to (34, 18)) once Isaac and Ivan have fallen, Felix is asked whether to cast the Elemental Star into its wide hole. Yes, and he throws the Jupiter Star in, its light rises out of the well in two beams and the beacon is lit; the lit beacon is shown from the world map, then the party returns to the aerie beside it. No, and he steps back from the well.

The party returns by JUPITER_LIGHTHOUSE_AERIE_BEACON_BEACON_LIT, where Karst and Agatio turn on it (scJupiterLighthouseBeaconIsLit).

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorPlaceOnActor(), fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptAskYesNoWithActorAnimation(), fdScriptClearFlag(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), gmItemLoadIcon(), gmPartyInventoryRemove(), JupiterLighthouseBeamOpenScript, MainRoutineStateWork, mnMessageShowCentered(), mnVRAMLoad(), scFieldActorCreate(), scFieldActorSetMoveTargetFX(), scFieldActorSetSpriteColor(), scFieldActorSetSpritePriority(), scFieldActorStop(), scFieldActorWaitForMove(), scFieldActorWaitForMoveById(), scFieldCloseEvent(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptWait(), scJupiterLighthouseSpawnBeaconParticle(), Sint32, syGameFlagGet(), syHeapSlotAllocate(), syHeapSlotRelease(), sySetTickEvent() and sySynch().

Referenced by SceneCues.

Definition at lines 509 and 2928 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseBeaconIsLit

void scJupiterLighthouseBeaconIsLit(void)

Back on the aerie beside the lit beacon, Karst and Agatio turn on Felix and Piers, give back the Mythril Bag, and the first battle with them begins. The party arrives by JUPITER_LIGHTHOUSE_AERIE_BEACON_BEACON_LIT.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorWalkBy(), fdActorWalkByAndWait(), fdCameraGetActor(), fdCameraWaitForArrival(), fdMapGridCenterOnFollowedPoint(), fdRequestBattleFromEncounterTable(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetDefeatDestination(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmInventoryEquip(), gmPartyInventoryAdd(), gmUnitGet(), MainRoutineStateWork, mnMessageShowCentered(), SceneIdJupiterLighthouseAerieBeacon, scFieldActorShowEmote(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetAfterBattleDestination(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), Sint32 and sySynch().

Referenced by scInit().

Definition at line 752 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseJennaJoinsTheFight

void scJupiterLighthouseJennaJoinsTheFight(void)

After the first battle with Karst and Agatio on the aerie, Jenna comes to help, joins Felix, and the second battle begins. The party arrives by ENTRANCE_AFTER_FIRST_BATTLE.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkToAndWait(), fdRequestBattleFromEncounterTable(), fdScriptSetDefeatDestination(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, SceneIdJupiterLighthouseAerieBeacon, scFieldActorShowEmote(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetAfterBattleDestination(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scFieldUnitAddHp(), scScriptCameraFollowActor() and Sint32.

Referenced by scInit().

Definition at line 976 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseShebaJoinsTheFight

void scJupiterLighthouseShebaJoinsTheFight(void)

After the second battle on the aerie, Sheba comes to help, joins the party, and the last battle with Karst and Agatio begins. The party arrives by ENTRANCE_AFTER_SECOND_BATTLE.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkToAndWait(), fdRequestBattleFromEncounterTable(), fdScriptClearFlag(), fdScriptSetDefeatDestination(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, SceneIdJupiterLighthouseAerieBeacon, scFieldActorShowEmote(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetAfterBattleDestination(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scFieldUnitAddHp(), scScriptCameraFollowActor() and Sint32.

Referenced by scInit().

Definition at line 1077 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseHealActor

void scJupiterLighthouseHealActor(Sint32 casterId, Sint32 targetId)

The caster's arcs of light reach a fallen actor and it stands up: Mia healing Felix's party, or Alex healing Agatio and Karst.

References fdActorGet(), fdActorSetAnimation(), fdBattleEffectEndArcEffect(), fdBattleEffectSetObjectUpdateMode(), fdBattleEffectStartArcEffect(), fdBattleEffectWaitForArcGroups(), fdScriptPlaySound(), scFieldScriptWait() and Sint32.

Referenced by scJupiterLighthouseKarstAndAgatioRetreat() and scJupiterLighthouseWeBeatThem().

Definition at line 1186 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseKarstAndAgatioRetreat

void scJupiterLighthouseKarstAndAgatioRetreat(void)

When the party loses the last battle on the aerie, Alex arrives and takes Karst and Agatio down on the elevator; Isaac's party comes up, Mia heals Felix's party, and both parties leave on the elevator. The party arrives by ENTRANCE_LAST_BATTLE_LOST.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorShowEmote(), fdActorWalkByAndWait(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmPartyCountMembers(), gmPlayMusic(), gmUnitClampGauge(), gmUnitGet(), JupiterLighthouseHopEastOverPlatformsScript, JupiterLighthouseHopWestOverPlatformsScript, JupiterLighthouseJoinLeaderScript, JupiterLighthouseWalkToPlatformsScript, MainRoutineStateWork, scFieldActorShowEmote(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldActorWaitForScriptEndById(), scFieldActorWatchAndSetScript(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scJupiterLighthouseHealActor(), scJupiterLighthouseLowerElevator(), scJupiterLighthouseRaiseElevator(), scScriptCameraFollowActor() and Sint32.

Referenced by scInit().

Definition at line 1208 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseWeBeatThem

void scJupiterLighthouseWeBeatThem(void)

When the party wins the last battle on the aerie, Alex heals Karst and Agatio and takes them down on the elevator; Isaac's party comes up, and both parties leave on the elevator. The party arrives by ENTRANCE_LAST_BATTLE_WON.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorShowEmote(), fdActorWalkByAndWait(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmPlayMusic(), JupiterLighthouseHopEastOverPlatformsScript, JupiterLighthouseHopWestOverPlatformsScript, JupiterLighthouseJoinLeaderScript, JupiterLighthouseWalkToPlatformsScript, scFieldActorShowEmote(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForScriptEndById(), scFieldActorWatchAndSetScript(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scJupiterLighthouseHealActor(), scJupiterLighthouseLowerElevator(), scJupiterLighthouseRaiseElevator(), scScriptCameraFollowActor() and Sint32.

Referenced by scInit().

Definition at line 1733 of file jupiter_lighthouse_aerie_beacon.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 2220 of file jupiter_lighthouse_aerie_beacon.c.

scJupiterLighthouseFindElevatorRiders

void scJupiterLighthouseFindElevatorRiders(Sint32 *out, Sint32 scrollZ)

Unused: writes to out the slots of the actors standing on the elevator, which lies in columns 4 to 8 and three rows down from row 72 less scrollZ's row, as The Broken Seal's scMercuryLighthouseAerieFindActorsOnLift finds its lift's.

References Sint32.

Definition at line 2228 of file jupiter_lighthouse_aerie_beacon.c.

scInit

Sint32 scInit(void)

Sets up the scene as the party enters: the floating platforms and the lid, the beacon's light, and the script of the entrance taken (JUPITER_LIGHTHOUSE_AERIE_BEACON_BEACON_LIT to ENTRANCE_LAST_BATTLE_LOST).

References Call2(), fdActorGet(), fdActorSetSpriteFlags(), fdHangingVinePlace(), fdScriptGetFlag(), gmPartyAddMember(), MainRoutineStateWork, scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePlaceRaisedActors(), scJupiterLighthousePulseBeacon(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseWeBeatThem(), Sint32 and sySetTickEvent().

Definition at line 2427 of file jupiter_lighthouse_aerie_beacon.c.

scPrepareMap

Sint32 scPrepareMap(void)

Sets the scene's arrival flags before the map is built. Returns 0.

References scSetArrivalFlags() and Sint32.

Definition at line 2502 of file jupiter_lighthouse_aerie_beacon.c.

scPaletteCycleSetTick

static inline void scPaletteCycleSetTick(Sint32 value)

Sets how many ticks the palette cycle has run, which picks the place its colours stand at (fdPaletteCycleStep); 0 starts it from the first.

References PaletteCycleTick and Sint32.

Referenced by scJupiterLighthouseLoadPalettes() and scTrialRoadStartPaletteCycle().

Definition at line 2518 of file jupiter_lighthouse_aerie_beacon.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 2552 of file jupiter_lighthouse_aerie_beacon.c.

Variables in detail

JupiterLighthouseElevatorLevel

Sint32 JupiterLighthouseElevatorLevel

References Sint32.

Referenced by scJupiterLighthouseLowerElevator() and scJupiterLighthouseRaiseElevator().

Definition at line 193 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseUnusedAfterElevatorLevel

Uint8 JupiterLighthouseUnusedAfterElevatorLevel[4]

Unused: nothing reads these bytes.

Definition at line 195 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseBeaconRiseTick

Sint32 JupiterLighthouseBeaconRiseTick

References Sint32.

Referenced by scJupiterLighthouseRaiseBeaconLight().

Definition at line 196 of file jupiter_lighthouse_aerie_beacon.c.

WhirlwindRiding

Sint32 WhirlwindRiding

References Sint32.

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

Definition at line 197 of file jupiter_lighthouse_aerie_beacon.c.

PaletteCycleColors

Uint16 PaletteCycleColors[16]

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

Definition at line 198 of file jupiter_lighthouse_aerie_beacon.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 201 of file jupiter_lighthouse_aerie_beacon.c.

PaletteCycleUnlitColors

Uint16 PaletteCycleUnlitColors[14]

Referenced by scJupiterLighthouseLoadPalettes().

Definition at line 202 of file jupiter_lighthouse_aerie_beacon.c.

LightSpriteTile

Sint16 LightSpriteTile

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

Definition at line 203 of file jupiter_lighthouse_aerie_beacon.c.

LightSpriteCount

Sint16 LightSpriteCount

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

Definition at line 204 of file jupiter_lighthouse_aerie_beacon.c.

LightSpriteOams

LIGHT_OAM LightSpriteOams[16]

Referenced by scLightSpritesDraw().

Definition at line 206 of file jupiter_lighthouse_aerie_beacon.c.

LightSpritesLarge

Sint16 LightSpritesLarge

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

Definition at line 207 of file jupiter_lighthouse_aerie_beacon.c.

LightSpritePriority

Sint16 LightSpritePriority

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

Definition at line 208 of file jupiter_lighthouse_aerie_beacon.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 211 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseBeaconOrbBreathesScript

extern Sint32 JupiterLighthouseBeaconOrbBreathesScript[]

LATE_DATA Sint32 JupiterLighthouseBeaconOrbBreathesScript[]

The lit beacon's orb breathes: narrower for four ticks, wider for four, again and again.

References Sint32.

Referenced by ActorPlacements and scJupiterLighthouseRaiseBeaconLight().

Definition at lines 215 and 2768 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseBeaconSparkScript

extern Sint32 JupiterLighthouseBeaconSparkScript[]

LATE_DATA Sint32 JupiterLighthouseBeaconSparkScript[]

A spark shed by the rising orb (scJupiterLighthouseRaiseBeaconLight): it drops a pixel a tick for 16 ticks and is released.

References Sint32.

Referenced by scJupiterLighthouseRaiseBeaconLight().

Definition at lines 216 and 2782 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseBeaconParticleScript

extern Sint32 JupiterLighthouseBeaconParticleScript[]

LATE_DATA Sint32 JupiterLighthouseBeaconParticleScript[]

A particle of the column of light (scJupiterLighthouseSpawnBeaconParticle): it climbs a pixel a tick for 16 ticks and is released. Past its end are two more, which nothing here runs.

References Sint32.

Referenced by scJupiterLighthouseSpawnBeaconParticle().

Definition at lines 397 and 2900 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseBeamOpenScript

extern Sint32 JupiterLighthouseBeamOpenScript[]

LATE_DATA Sint32 JupiterLighthouseBeamOpenScript[]

The column of light widens by a sixteenth of its picture's width a tick for 32 ticks. Past its end are the scripts that narrow the column and lift it away, which nothing here runs.

References Sint32.

Referenced by scJupiterLighthouseCastTheJupiterStar().

Definition at lines 498 and 2740 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseJoinLeaderScript

extern Sint32 JupiterLighthouseJoinLeaderScript[]

LATE_DATA Sint32 JupiterLighthouseJoinLeaderScript[]

A party member walks into the leader it was sent to and is released there.

References Sint32.

Referenced by scJupiterLighthouseKarstAndAgatioRetreat() and scJupiterLighthouseWeBeatThem().

Definition at lines 1199 and 2634 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseWalkToPlatformsScript

extern Sint32 JupiterLighthouseWalkToPlatformsScript[]

LATE_DATA Sint32 JupiterLighthouseWalkToPlatformsScript[]

Walks west round the well to the western floating platforms.

References Sint32.

Referenced by scJupiterLighthouseKarstAndAgatioRetreat() and scJupiterLighthouseWeBeatThem().

Definition at lines 1200 and 2640 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseHopWestOverPlatformsScript

extern Sint32 JupiterLighthouseHopWestOverPlatformsScript[]

LATE_DATA Sint32 JupiterLighthouseHopWestOverPlatformsScript[]

Hops west over the three western floating platforms.

References scJupiterLighthouseJumpWithoutShadow(), scJupiterLighthouseShowShadow() and Sint32.

Referenced by scJupiterLighthouseKarstAndAgatioRetreat() and scJupiterLighthouseWeBeatThem().

Definition at lines 1201 and 2659 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseHopEastOverPlatformsScript

extern Sint32 JupiterLighthouseHopEastOverPlatformsScript[]

LATE_DATA Sint32 JupiterLighthouseHopEastOverPlatformsScript[]

Hops east over the three eastern floating platforms.

References scJupiterLighthouseJumpWithoutShadow(), scJupiterLighthouseShowShadow() and Sint32.

Referenced by scJupiterLighthouseKarstAndAgatioRetreat() and scJupiterLighthouseWeBeatThem().

Definition at lines 1202 and 2699 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseFirstElevatorRiders

extern Sint32 JupiterLighthouseFirstElevatorRiders[]

Sint32 JupiterLighthouseFirstElevatorRiders[]

Who the elevator carries down, by scJupiterLighthouseLowerElevator's descent: Alex, Agatio and Karst; Isaac; Felix; no one.

References Sint32.

Referenced by scJupiterLighthouseLowerElevator().

Definition at lines 2254 and 2597 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseSecondElevatorRiders

extern Sint32 JupiterLighthouseSecondElevatorRiders[]

Sint32 JupiterLighthouseSecondElevatorRiders[]

References Sint32.

Referenced by scJupiterLighthouseLowerElevator().

Definition at lines 2255 and 2599 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseThirdElevatorRiders

extern Sint32 JupiterLighthouseThirdElevatorRiders[]

Sint32 JupiterLighthouseThirdElevatorRiders[]

References Sint32.

Referenced by scJupiterLighthouseLowerElevator().

Definition at lines 2256 and 2601 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseFourthElevatorRiders

extern Sint32 JupiterLighthouseFourthElevatorRiders[]

Sint32 JupiterLighthouseFourthElevatorRiders[]

References Sint32.

Referenced by scJupiterLighthouseLowerElevator().

Definition at lines 2257 and 2603 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseFloatingPlatforms

extern Sint32 JupiterLighthouseFloatingPlatforms[]

LATE_DATA Sint32 JupiterLighthouseFloatingPlatforms[]

The aerie's six floating platforms.

References Sint32.

Referenced by scJupiterLighthouseLowerElevator().

Definition at lines 2258 and 2956 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseRisingElevatorRiders

extern Sint32 JupiterLighthouseRisingElevatorRiders[]

Sint32 JupiterLighthouseRisingElevatorRiders[]

Who rides the elevator back up (scJupiterLighthouseRaiseElevator): no one.

References Sint32.

Referenced by scJupiterLighthouseRaiseElevator().

Definition at lines 2363 and 2605 of file jupiter_lighthouse_aerie_beacon.c.

WhirlwindEndScript

extern Sint32 WhirlwindEndScript[]

LATE_DATA Sint32 WhirlwindEndScript[]

References Sint32.

Referenced by scWhirlwindUpdate().

Definition at lines 2529 and 2965 of file jupiter_lighthouse_aerie_beacon.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 2560 and 2972 of file jupiter_lighthouse_aerie_beacon.c.

JupiterLighthouseRockScript

LATE_DATA Sint32 JupiterLighthouseRockScript[]

Unused: turns its actor's facing back and forth, 9/128 of a turn at a time, and ends. Nothing starts it.

References Sint32.

Definition at line 2613 of file jupiter_lighthouse_aerie_beacon.c.

SceneExits

LATE_DATA Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 2798 of file jupiter_lighthouse_aerie_beacon.c.

ActorPlacements

LATE_DATA ACTOR_PLACE ActorPlacements[]

References JupiterLighthouseBeaconOrbBreathesScript.

Referenced by scGetActorPlacements().

Definition at line 2819 of file jupiter_lighthouse_aerie_beacon.c.

SceneCues

LATE_DATA CUE SceneCues[]

References scJupiterLighthouseCastTheJupiterStar() and scJupiterLighthouseKarstAndAgatioWait().

Referenced by scGetCues().

Definition at line 2930 of file jupiter_lighthouse_aerie_beacon.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 2961 and 2963 of file jupiter_lighthouse_aerie_beacon.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailOWN_fdMapGridGetMetatileBehaviorFLAG_KARST_AND_AGATIO_MET_FELIXFLAG_BEACON_PARTICLES_EVERY_TICKFLAG_BEACON_LIGHT_RISENBEACON_ORB_VIEW_Z_MAXDEFEAT_REVIVAL_HP_TAKENELEVATOR_RIDERS_ENDELEVATOR_DOWN_TICKSELEVATOR_CAMERA_TICKELEVATOR_RIDE_TICKSELEVATOR_DRAGELEVATOR_SLOWING_TICKSEFFECT_SET_MODEEFFECT_SET_SCRIPTMETATILE_PUSH_SLOT_ENTRYFIELD_EFFECT_DURATION_SCRIPT_SECTIONSCENE_ENTRANCES_SECTIONEnumerations in detailanonymous enumanonymous enumanonymous enumanonymous enumELEVATOR_DESCENTELEVATOR_ASCENTFunctions in detailscJupiterLighthouseJumpWithoutShadowscJupiterLighthouseShowShadowscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscJupiterLighthouseCircleBeaconscJupiterLighthouseCircleBeaconWidescJupiterLighthouseKarstAndAgatioWaitscJupiterLighthouseLowerElevatorscJupiterLighthouseRaiseElevatorscJupiterLighthouseRaiseBeaconLightscJupiterLighthouseSpawnBeaconParticlescJupiterLighthousePulseBeaconscJupiterLighthouseCastTheJupiterStarscJupiterLighthouseBeaconIsLitscJupiterLighthouseJennaJoinsTheFightscJupiterLighthouseShebaJoinsTheFightscJupiterLighthouseHealActorscJupiterLighthouseKarstAndAgatioRetreatscJupiterLighthouseWeBeatThemscGetCuesscJupiterLighthouseFindElevatorRidersscInitscPrepareMapscPaletteCycleSetTickscLightSpritesSetPriorityVariables in detailJupiterLighthouseElevatorLevelJupiterLighthouseUnusedAfterElevatorLevelJupiterLighthouseBeaconRiseTickWhirlwindRidingPaletteCycleColorsPaletteCycleUnlitPalettePaletteCycleUnlitColorsLightSpriteTileLightSpriteCountLightSpriteOamsLightSpritesLargeLightSpritePriorityCrackedTilesJupiterLighthouseBeaconOrbBreathesScriptJupiterLighthouseBeaconSparkScriptJupiterLighthouseBeaconParticleScriptJupiterLighthouseBeamOpenScriptJupiterLighthouseJoinLeaderScriptJupiterLighthouseWalkToPlatformsScriptJupiterLighthouseHopWestOverPlatformsScriptJupiterLighthouseHopEastOverPlatformsScriptJupiterLighthouseFirstElevatorRidersJupiterLighthouseSecondElevatorRidersJupiterLighthouseThirdElevatorRidersJupiterLighthouseFourthElevatorRidersJupiterLighthouseFloatingPlatformsJupiterLighthouseRisingElevatorRidersWhirlwindEndScriptFieldEffectDurationScriptsJupiterLighthouseRockScriptSceneExitsActorPlacementsSceneCuesSint32