Skip to Content
The Alchemy Project

include/scene/mars_lighthouse_aerie.h

Mars Lighthouse's aerie, where the Doom Dragon is fought and the beacon lit: its event functions, its actor scripts, and a byte view of a field sprite that the beacon's lighting reads.

Included by scene.h.

Structures

NameDescription
structMARS_LIGHTHOUSE_AERIE_SPRA field sprite (FIELD_SPR) read a byte at a time, as the aerie's flames take the beacon fire's priority and the Mars Star's sprite its colours and the star's icon.

Functions

NameDescription
voidscMarsLighthouseAerieTalkToKyle (void)Felix talks to Kyle, Isaac's father, as he lies dying: "*Koff!
voidscMarsLighthouseAerieFindWhoTheDragonWas (void)The Doom Dragon falls, and the party finds who it was: Felix and Jenna's parents and Isaac's father, Kyle, freed.
voidscMarsLighthouseAerieUrgeOnToBeacon (void)At the beacon, before it is lit: Piers and Mia can heal the three no longer, Kraden tells Jenna they spent their last strength as the dragon, the party turns on the Wise One, and Kraden urges Felix to light the beacon.
voidscMarsLighthouseAerieLightBeacon (void)The Mars Star is cast into the beacon: the beam rises, the fire climbs up into it and the beacon is lit.
voidscMarsLighthouseAerieWatchGoldenSunRise (void)All look up as the beam widens and the Golden Sun begins to rise.
voidscMarsLighthouseAerieEndRisingRings (struct ACTOR *actor)Lets an actor's rings climb out.
voidscOrbUpdateRising (struct ACTOR *self)An orb circles the beacon's beam as it rises.
voidscOrbSpawnRising (void)Every third tick, starts a particle circling the beam of light, up to 63 pixels over a point 28 below the beam's foot; with FLAG_SCENE_TEMP(0x01), which nothing in the hall sets, every tick and up to 255 pixels.
voidscTeleportArriveWhirling (void)The party arrives by Teleport on the circle: the room fades in grey while the circle shimmers and the whirl plays, then its colours come back.
voidscMarsLighthouseAerieUpdateRisingRings (struct ACTOR *actor)Each tick of an actor's rings: a ring climbs RING_CLIMB pixels up the actor, swelling and shrinking as it goes, and the next starts with a chime RING_INTERVAL ticks later, two at a time, while the actor's colours cycle.
voidscMarsLighthouseAerieHoldBackFromParents (void)Before the beacon is lit, Felix walks away south from the three as they lie dying and reaches the head of the broad stairway down from the beacon's platform on its west half (metatiles (29, 23) and (30, 23), whose behaviour scMarsLighthouseAerieUrgeOnToBeacon copies there from the map's spare block at (45, 53) and (46, 53)).
voidscMarsLighthouseAerieHoldBackFromParentsAgain (void)The same at the head of the stairway's east half (metatiles (33, 23) and (34, 23), from the spare block's (49, 53) and (50, 53)): Kraden turns to him, "Do not let your sadness overwhelm you, Felix!
voidscMarsLighthouseAerieOfferToCastMarsStar (void)Felix steps up to the beacon, and the voice asks: "Will you cast in the Mars Star?" Yes lights the beacon (scMarsLighthouseAerieLightBeacon); no leaves it to be asked again once he steps back.
voidscMarsLighthouseAerieClearCastOffer (void)Felix has stepped back from the beacon without casting in the Mars Star: the voice will ask again when he steps up to it.
voidscMarsLighthouseAerieTalkToIvan (void)Felix talks to Ivan, who stands by the three: "Felix, I understand your loss..." In every edition but the Japanese, if Halt holds him, he speaks haltingly.
voidscMarsLighthouseAerieTalkToJennasMother (void)Felix talks to Jenna's mother as she lies dying: "Uhhhhnnn...
voidscMarsLighthouseAerieTalkToJennasFather (void)Felix talks to Jenna's father as he lies dying: "Unnnn...
voidscMarsLighthouseAerieHaltJennasMother (void)In every edition but the Japanese: Jenna's mother is held where she lies while she talks.
voidscMarsLighthouseAerieHaltJennasFather (void)In every edition but the Japanese: Jenna's father is held where he lies while he talks.

Variables

NameDescription
extern Uint32OrbRisingScript []A rising orb's script, which the Jupiter and Mars Lighthouses keep a copy of for the particles that rise in their beams: at 0.8 of its size, it rises a pixel a tick for 16 ticks and is gone.
extern Sint32MarsLighthouseAerieBeaconSparkScript []
extern Sint32MarsLighthouseAerieBeamWidenScript []
extern Uint32MarsLighthouseAerieBeamShootUpScript []
extern Uint32MarsLighthouseAerieBeamRiseScript []
extern Sint32MarsLighthouseAerieWatchGoldenSunRiseScript []
extern Sint32MarsLighthouseAerieRisingRingTiles []The rings' tiles: half a ring of light, 32 by 16 pixels of 16 colours, which scMarsLighthouseAerieUpdateRisingRings draws twice, the second flipped, for the whole ring; only the first 8 tiles are loaded.

Description

Mars Lighthouse's aerie, where the Doom Dragon is fought and the beacon lit: its event functions, its actor scripts, and a byte view of a field sprite that the beacon's lighting reads.