Skip to Content
The Alchemy Project

src/scene/mercury_lighthouse_entrance.c

Mercury Lighthouse (SceneIdMercuryLighthouseEntrance), the lighthouse's ground floor inside its door, which leads up to its floors (mercury_lighthouse.c). More…

Macros

NameDescription
#defineMIA_WATCH_LAST_HALF_METATILE 22The last row of half metatiles, north of 184 pixels, in which Mia watches Isaac.
#definePLY_GLINTS 15The glints that rise from the heart tile below the goddess's hands once Ply has worked.
#defineLANDING_PUFFS 17The puffs that burst round Isaac landing from the hole above.

Enumerations

NameDescription
enumMERCURY_LIGHTHOUSE_ENTRANCE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_HEART_INSCRIPTION, METATILE_BEHAVIOR_UNUSE … }The metatile behaviors this floor's own cues answer.
enumMERCURY_LIGHTHOUSE_ENTRANCE_ACTOR_ID { ACTOR_LIZARD_MAN, ACTOR_FIRST_STATUE, ACTOR_FIRST_EAST_STATU … }This floor's actors, numbering its actor placement rows from ACTOR_FIRST_PLACED.
enumanonymous enum { FLAG_MIA_GOES_IN_SEEN, FLAG_DROP_FROM_ABOVE_SEEN, FLAG_LIZAR … }Scene flags, kept while the party stays here.

Functions

NameDescription
static voidscMercuryLighthouseEntranceLizardManBlocksMia (void)Mia tries twice to dodge past the Lizard Man in the doorway at the north end of the hall of six statues, east and then west, and each time he sidesteps to block her.
static voidscMercuryLighthouseEntranceMiaEntersLighthouse (void)Back from the battle with the Lizard Man, Mia stands in the doorway, nods to Isaac and goes on into the lighthouse.
static Sint32scMercuryLighthouseEntrancePlayStepSound (ACTOR *actor)The sound of the Lizard Man's sidestep, played by all three step scripts as he lands.
static UNREAD_RESULTscMercuryLighthouseEntranceMiaWatchesLeader (ACTOR *actor)Mia's update while she waits by the Lizard Man: she turns to watch Isaac while he is near her, north of 184 pixels, and looks back north at the doorway otherwise.
static voidscMercuryLighthouseEntranceRippleAroundLeader (void)Standing out on the water of one of the pools, held up by a light, Isaac sends blue ripples spreading round him.
static voidscMercuryLighthouseEntranceLoseLights (void)Stepping back onto the edge of a pool takes away the lights Isaac carries: the column of light over him swells and fades.
static voidscMercuryLighthouseEntranceHopAcrossPool (void)Pushing towards the water from a tile of one of the pools hops Isaac two metatiles to the next tile, once Ply has worked; a hop out onto open water spends one of his lights, which holds him up where he lands.
static voidscMercuryLighthouseEntranceChargeLights (void)Standing on the heart tile of a pool, such as the one below the goddess's hands at metatile (12, 34), gives Isaac lights, up to three, shown as a column of light over him.
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)Returns Mia, the Lizard Man, the six statues and the two invisible actors in the goddess's room.
static voidscMercuryLighthouseEntranceReadHeartInscription (void)Searching the white stone post at the south edge of the goddess's pool, metatile (12, 38), reads He who honors the heart of the goddess shall stand at the center of all, like a swan in the center of a rippling pond.
static voidscMercuryLighthouseEntranceWaterfallToDryFountain (void)Walking north into the waterfall at metatile (14, 54), in the west room of waterfalls, carries Isaac to the room of the dry fountain.
static voidscMercuryLighthouseEntranceWaterfallToTwinFountains (void)Walking north into the waterfall at metatile (35, 54), the left one of the east room of waterfalls, carries Isaac back to the east end of the twin fountains.
static voidscMercuryLighthouseEntranceWaterfallToChestFountain (void)Walking north into the waterfall at metatile (43, 54), the right one of the east room of waterfalls, beside the Mimic's chest, carries Isaac to the room whose chest holds Psynergy Armor across its pool.
const CUE *scGetCues (void)Returns the floor's step, search, talk and Psynergy cues.
static voidscMercuryLighthouseEntranceActivateWithPly (void)Casting Ply on the goddess while standing on her hands, metatile (12, 32), wakes the pools: the room glows pale, glints rise from the tile below her hands, and the colours start to shimmer.
static voidscMercuryLighthouseEntranceUnusedReturnToSixStatues (void)Never seen: no metatile of this floor answers its cue row, so nothing sends Isaac back to the Lizard Man's doorway this way.
static voidscMercuryLighthouseEntranceLizardManReturnsToCenter (void)Stepping back to the middle in front of the Lizard Man, metatile (8, 10), or one metatile back from beside him, metatile (7, 11) or (9, 11), makes him step back into the middle of the doorway.
static voidscMercuryLighthouseEntranceLizardManBlocksLeader (void)Walking up beside the Lizard Man, metatile (7, 10) or (9, 10), makes him sidestep in front of Isaac with a footstep.
static voidscMercuryLighthouseEntranceFightLizardMan (void)Talking to the Lizard Man, Mind Read on him, or walking north into him from the metatiles in front of the doorway, (7, 10) to (9, 10), starts the battle with him.
Sint32scInit (void)Sets up Mercury Lighthouse's ground floor, then plays the script of the entrance taken.
static voidscMercuryLighthouseSpawnRipple (ACTOR *src)Spreads one blue ripple (SPRITE_RIPPLE) from an actor, for 30 ticks.

Variables

NameDescription
extern Sint32MercuryLighthouseEntranceRippleScript []
extern Sint32MercuryLighthouseEntranceLizardManStepCenter []
extern Sint32MercuryLighthouseEntranceLizardManStepWest []
extern Sint32MercuryLighthouseEntranceLizardManStepEast []
extern SCENE_ENTRANCEMercuryLighthouseEntranceEntrances []
extern Uint32MercuryLighthouseEntranceExits []
extern ACTOR_PLACEMercuryLighthouseEntranceActorPlacements []
extern CUEMercuryLighthouseEntranceCues []
extern Sint32GlintTwinkleScript []A SPRITE_GLINT's life: it shrinks from full size to a quarter and back, four times over 24 ticks each, then is released.
Sint32MercuryLighthouseSparkScript []The scripts the pool's lights and sparks run, which each scene defines or includes (shared/mercury_lighthouse_column_tables.c), and the d-pad's headings.
Sint32MercuryLighthouseGrowLightScript []
Sint32MercuryLighthouseLightOutScript []
const Sint32 *FieldEffectDurationScripts []The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION.
Sint32PaletteCycleRedUnused, with PaletteCycleGreen and PaletteCycleBlue: nothing reads them or changes them.
Sint32PaletteCycleGreen
Sint32PaletteCycleBlue

Description

Mercury Lighthouse (SceneIdMercuryLighthouseEntrance), the lighthouse's ground floor inside its door, which leads up to its floors (mercury_lighthouse.c).

Mia is Imil's healer and the last of the Mercury Clan who guard the lighthouse. She has sensed someone inside, where none but she and Alex, her apprentice who disappeared, can enter. She has hurried in ahead of the party to find out who.

The floor is several rooms, joined by doorways, waterfalls and the floors above, in the order the party meets them:

  • The hall of six statues inside the door. The first time in, the party finds Mia trying again and again to get past a monster, the Lizard Man, who steps across the doorway at the north end to block her (scMercuryLighthouseEntranceLizardManBlocksMia). Spoken to, she says A monster inside Mercury Lighthouse? How could this be!? He sidesteps in front of Isaac too. Talking to him, Mind Read on him or walking north into him starts the battle. Back from it, Mia nods to Isaac and goes on through the doorway (scMercuryLighthouseEntranceMiaEntersLighthouse, FLAG_MERCURY_LIGHTHOUSE_ENTERED_BY_MIA). Until then, coming in by the door always plays the Lizard Man's scene.
  • The goddess's room, beyond the doorway: a great statue of a goddess above a pool. A white stone post at the pool's south edge reads He who honors the heart of the goddess shall stand at the center of all, like a swan in the center of a rippling pond. Jumping onto the goddess's hands and casting Ply on her wakes the pools of the whole floor (FLAG_MERCURY_LIGHTHOUSE_HEART_HONORED) and sets their colours shimmering. From then on the tile in the water below her hands gives Isaac up to three lights, each hop out onto open water spends one, and a light holds him up where he lands (the helpers of shared/mercury_lighthouse_column.c). Dropping into this room through the hole upstairs, the first time, Isaac lands on that tile in a burst, and until Ply has worked the post's words appear.
  • The twin fountains, north of the goddess's room, two pools under dragon-head spouts, whose tiles answer only once Ply has worked.
  • Two rooms of waterfalls, west and east. Walking into some waterfalls carries Isaac to another room: the west room's to the room of the dry fountain, the east room's left one back to the twin fountains, and its right one, beside the chest that is a Mimic, to the room whose chest holds Psynergy Armor across its pool.
  • The dry fountain's room, which fills with water once the channels upstairs run (FLAG_MERCURY_LIGHTHOUSE_CHANNELS_OPEN).

Four doors lead up to SceneIdMercuryLighthouseLower (MERCURY_LIGHTHOUSE_ENTRANCE_TO_MERCURY_LIGHTHOUSE_LOWER_WEST, MERCURY_LIGHTHOUSE_ENTRANCE_TO_MERCURY_LIGHTHOUSE_LOWER_WEST_NORTHWEST, MERCURY_LIGHTHOUSE_ENTRANCE_TO_MERCURY_LIGHTHOUSE_LOWER_SOUTHWEST and MERCURY_LIGHTHOUSE_ENTRANCE_TO_MERCURY_LIGHTHOUSE_LOWER_EAST_NORTHEAST). So does the rise from the channels (MERCURY_LIGHTHOUSE_ENTRANCE_FROM_MERCURY_LIGHTHOUSE_LOWER_PIPE, then MERCURY_LIGHTHOUSE_ENTRANCE_TO_MERCURY_LIGHTHOUSE_LOWER_PIPE). MERCURY_LIGHTHOUSE_ENTRANCE_MERCURY_LIGHTHOUSE_EXTERIOR leads back out through the door to the ground before it, Mercury Lighthouse's SceneIdMercuryLighthouseExterior (mercury_lighthouse.c).

Every entry sets FLAG_IN_MERCURY_LIGHTHOUSE, under which Mercury Adepts regain PP faster. It also makes SceneIdMercuryLighthouseExterior's MERCURY_LIGHTHOUSE_EXTERIOR_FROM_WORLD_MAP the Retreat point.

The shimmering colours (scMercuryLighthouseCyclePalette) run once Ply has worked. In the goddess's room they always run (MERCURY_LIGHTHOUSE_ENTRANCE_GODDESS_SIX_STATUES and the two from the twin fountains, and MERCURY_LIGHTHOUSE_ENTRANCE_FROM_MERCURY_LIGHTHOUSE_LOWER_HOLE). Elsewhere they are black until then.

The lights Isaac carries come back from their heap slot (shared/mercury_lighthouse_lights.c) on a return after a battle.

Three entrances each have two rows, chosen by whether the channels upstairs run (FLAG_MERCURY_LIGHTHOUSE_CHANNELS_OPEN). They are MERCURY_LIGHTHOUSE_ENTRANCE_DRY_FOUNTAIN_FROM_WEST_WATERFALLS, MERCURY_LIGHTHOUSE_ENTRANCE_FROM_MERCURY_LIGHTHOUSE_LOWER_NORTHEAST and MERCURY_LIGHTHOUSE_ENTRANCE_FROM_MERCURY_LIGHTHOUSE_LOWER_EAST_NORTHEAST.

Macros in detail

MIA_WATCH_LAST_HALF_METATILE

#define MIA_WATCH_LAST_HALF_METATILE 22

The last row of half metatiles, north of 184 pixels, in which Mia watches Isaac.

Referenced by scMercuryLighthouseEntranceMiaWatchesLeader().

Definition at line 193 of file mercury_lighthouse_entrance.c.

PLY_GLINTS

#define PLY_GLINTS 15

The glints that rise from the heart tile below the goddess's hands once Ply has worked.

Referenced by scMercuryLighthouseEntranceActivateWithPly().

Definition at line 343 of file mercury_lighthouse_entrance.c.

LANDING_PUFFS

#define LANDING_PUFFS 17

The puffs that burst round Isaac landing from the hole above.

Referenced by scInit().

Definition at line 345 of file mercury_lighthouse_entrance.c.

Enumerations in detail

MERCURY_LIGHTHOUSE_ENTRANCE_METATILE_BEHAVIOR

enum MERCURY_LIGHTHOUSE_ENTRANCE_METATILE_BEHAVIOR

The metatile behaviors this floor's own cues answer. The pools' tiles take the shared ones of MERCURY_LIGHTHOUSE_POOL_BEHAVIOR, and each doorway's metatiles carry its exit's number past EXIT_METATILE_BEHAVIOR_OFFSET.

EnumeratorValueDescription
METATILE_BEHAVIOR_HEART_INSCRIPTION1The white stone post at the
METATILE_BEHAVIOR_UNUSED_RETURN_TO_SIX_STATUES10south edge of the goddess's pool, metatile (12, 38). Answered by
METATILE_BEHAVIOR_BEFORE_LIZARD_MAN40scMercuryLighthouseEntranceUnusedReturnToSixStatues, but no metatile of the floor has it. Straight in front of the Lizard Man's doorway, metatile (8, 10).
METATILE_BEHAVIOR_BESIDE_LIZARD_MAN41Beside him in front of the doorway, metatiles (7, 10) and (9, 10).
METATILE_BEHAVIOR_BEHIND_BESIDE_LIZARD_MAN42One metatile back from beside him, metatiles (7, 11) and (9, 11).
METATILE_BEHAVIOR_WATERFALL_TO_DRY_FOUNTAIN67The waterfall at metatile (14, 54) in the west room of waterfalls.
METATILE_BEHAVIOR_WATERFALL_TO_TWIN_FOUNTAINS68The left waterfall of the east room of waterfalls, metatile (35, 54).
METATILE_BEHAVIOR_WATERFALL_TO_CHEST_FOUNTAIN69The right waterfall of the east room of waterfalls, metatile (43, 54).
METATILE_BEHAVIOR_PSYNERGY_ARMOR_CHEST100The chest across the pool in its room, metatile (57, 19).
METATILE_BEHAVIOR_MIMIC_CHEST101The chest in the east room of waterfalls that is a Mimic, metatile (47, 54).

Definition at line 93 of file mercury_lighthouse_entrance.c.

MERCURY_LIGHTHOUSE_ENTRANCE_ACTOR_ID

enum MERCURY_LIGHTHOUSE_ENTRANCE_ACTOR_ID

This floor's actors, numbering its actor placement rows from ACTOR_FIRST_PLACED.

Mia stands in her own party slot. The Lizard Man is the monster she cannot get past (his scripted battle fights him as "Lizard Man"). The Ply target is the invisible actor on the goddess's hands that Ply is cast on.

EnumeratorValueDescription
ACTOR_LIZARD_MANACTOR_FIRST_PLACED
ACTOR_FIRST_STATUESix statues line the way to the doorway, three on its west side (x 88), then three on its east (x 184).
ACTOR_FIRST_EAST_STATUEACTOR_FIRST_STATUE + 3The east side's three
ACTOR_PLY_TARGETACTOR_FIRST_PLACED + 8statues, which the doorway's scripts draw mirrored.

Definition at line 151 of file mercury_lighthouse_entrance.c.

anonymous enum

enum { FLAG_MIA_GOES_IN_SEEN, FLAG_DROP_FROM_ABOVE_SEEN, FLAG_LIZARD_MAN_STEPPED_ASIDE }

Scene flags, kept while the party stays here.

EnumeratorValueDescription
FLAG_MIA_GOES_IN_SEENFLAG_SCENE_TEMP(0x50)
FLAG_DROP_FROM_ABOVE_SEENFLAG_SCENE_TEMP(0x51)
FLAG_LIZARD_MAN_STEPPED_ASIDEFLAG_SCENE_TEMP(0x05)The Lizard Man has stepped into the leader's column.

Definition at line 167 of file mercury_lighthouse_entrance.c.

Functions in detail

scMercuryLighthouseEntranceLizardManBlocksMia

static void scMercuryLighthouseEntranceLizardManBlocksMia(void)

Mia tries twice to dodge past the Lizard Man in the doorway at the north end of the hall of six statues, east and then west, and each time he sidesteps to block her. She winces, and Isaac walks up behind her.

It plays at MERCURY_LIGHTHOUSE_ENTRANCE_SIX_STATUES_BEFORE_LIZARD_MAN, unless the party returns there after a battle. Then the metatiles before the doorway take the behaviours that make the Lizard Man block Isaac and fight him.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetScript(), fdActorShowEmote(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MercuryLighthouseEntranceLizardManStepCenter, MercuryLighthouseEntranceLizardManStepEast, MercuryLighthouseEntranceLizardManStepWest, scMercuryLighthouseEntranceMiaWatchesLeader() and Sint32.

Referenced by scInit().

Definition at lines 175 and 676 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceMiaEntersLighthouse

static void scMercuryLighthouseEntranceMiaEntersLighthouse(void)

Back from the battle with the Lizard Man, Mia stands in the doorway, nods to Isaac and goes on into the lighthouse.

It plays once, at MERCURY_LIGHTHOUSE_ENTRANCE_SIX_STATUES_AFTER_LIZARD_MAN.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorWaitForMoveById(), fdActorWalkTo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks() and gmFlagSet().

Referenced by scInit().

Definition at lines 176 and 756 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntrancePlayStepSound

static Sint32 scMercuryLighthouseEntrancePlayStepSound(ACTOR *actor)

The sound of the Lizard Man's sidestep, played by all three step scripts as he lands.

References Sint32 and sySoundPlay().

Referenced by MercuryLighthouseEntranceLizardManStepCenter, MercuryLighthouseEntranceLizardManStepEast and MercuryLighthouseEntranceLizardManStepWest.

Definition at line 185 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceMiaWatchesLeader

static UNREAD_RESULT scMercuryLighthouseEntranceMiaWatchesLeader(ACTOR *actor)

Mia's update while she waits by the Lizard Man: she turns to watch Isaac while he is near her, north of 184 pixels, and looks back north at the doorway otherwise.

References fdActorFaceDirection(), fdActorGet() and syAtan().

Referenced by scMercuryLighthouseEntranceLizardManBlocksMia().

Definition at line 198 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceRippleAroundLeader

static void scMercuryLighthouseEntranceRippleAroundLeader(void)

Standing out on the water of one of the pools, held up by a light, Isaac sends blue ripples spreading round him.

It answers the open-water tiles of every pool on this floor (METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_WATER), such as metatiles (8, 34) to (16, 36) in the goddess's pool, once Ply has worked.

References scMercuryLighthouseRippleAroundLeader().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 224 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceLoseLights

static void scMercuryLighthouseEntranceLoseLights(void)

Stepping back onto the edge of a pool takes away the lights Isaac carries: the column of light over him swells and fades.

It answers the edge tiles of every pool on this floor (METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_STEP), the goddess's hands at metatile (12, 32) among them, once Ply has worked.

References scMercuryLighthouseLoseLights().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 235 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceHopAcrossPool

static void scMercuryLighthouseEntranceHopAcrossPool(void)

Pushing towards the water from a tile of one of the pools hops Isaac two metatiles to the next tile, once Ply has worked; a hop out onto open water spends one of his lights, which holds him up where he lands.

It answers the pools' heart, open-water and edge tiles alike (METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_HEART, METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_WATER and METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_STEP), laid two metatiles apart with water that cannot be walked between them.

References scMercuryLighthouseHopAcrossPool().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 249 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceChargeLights

static void scMercuryLighthouseEntranceChargeLights(void)

Standing on the heart tile of a pool, such as the one below the goddess's hands at metatile (12, 34), gives Isaac lights, up to three, shown as a column of light over him.

It answers METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_HEART once Ply has worked.

References scMercuryLighthouseChargeLights().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 260 of file mercury_lighthouse_entrance.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References MercuryLighthouseEntranceEntrances.

Definition at line 265 of file mercury_lighthouse_entrance.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 270 of file mercury_lighthouse_entrance.c.

scGetExits

const Uint32 *scGetExits(void)

References MercuryLighthouseEntranceExits.

Definition at line 275 of file mercury_lighthouse_entrance.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Returns Mia, the Lizard Man, the six statues and the two invisible actors in the goddess's room.

References MercuryLighthouseEntranceActorPlacements.

Definition at line 282 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceReadHeartInscription

static void scMercuryLighthouseEntranceReadHeartInscription(void)

Searching the white stone post at the south edge of the goddess's pool, metatile (12, 38), reads He who honors the heart of the goddess shall stand at the center of all, like a swan in the center of a rippling pond.

References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 290 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceWaterfallToDryFountain

static void scMercuryLighthouseEntranceWaterfallToDryFountain(void)

Walking north into the waterfall at metatile (14, 54), in the west room of waterfalls, carries Isaac to the room of the dry fountain.

He walks on into the falling water, vanishes in a trail of sparkles, and the screen fades (MERCURY_LIGHTHOUSE_ENTRANCE_WEST_WATERFALLS_TO_DRY_FOUNTAIN).

References scMercuryLighthouseWalkIntoWaterfall().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 305 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceWaterfallToTwinFountains

static void scMercuryLighthouseEntranceWaterfallToTwinFountains(void)

Walking north into the waterfall at metatile (35, 54), the left one of the east room of waterfalls, carries Isaac back to the east end of the twin fountains.

He walks on into the falling water, vanishes in a trail of sparkles, and the screen fades (MERCURY_LIGHTHOUSE_ENTRANCE_EAST_WATERFALLS_TO_TWIN_FOUNTAINS).

References scMercuryLighthouseWalkIntoWaterfall().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 317 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceWaterfallToChestFountain

static void scMercuryLighthouseEntranceWaterfallToChestFountain(void)

Walking north into the waterfall at metatile (43, 54), the right one of the east room of waterfalls, beside the Mimic's chest, carries Isaac to the room whose chest holds Psynergy Armor across its pool.

He walks on into the falling water, vanishes in a trail of sparkles, and the screen fades (MERCURY_LIGHTHOUSE_ENTRANCE_EAST_WATERFALLS_TO_CHEST_FOUNTAIN).

References scMercuryLighthouseWalkIntoWaterfall().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 329 of file mercury_lighthouse_entrance.c.

scGetCues

const CUE *scGetCues(void)

Returns the floor's step, search, talk and Psynergy cues.

References MercuryLighthouseEntranceCues.

Definition at line 336 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceActivateWithPly

static void scMercuryLighthouseEntranceActivateWithPly(void)

Casting Ply on the goddess while standing on her hands, metatile (12, 32), wakes the pools: the room glows pale, glints rise from the tile below her hands, and the colours start to shimmer.

That is the center of all the post by the pool speaks of; cast from anywhere else, the script does nothing. The flag it sets (FLAG_MERCURY_LIGHTHOUSE_HEART_HONORED) lets every pool's tiles answer, and the goddess's pool takes its tiles' behaviours from the copy kept beside the map.

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), GlintTwinkleScript, gmFlagSet(), scMercuryLighthouseCyclePalette(), Sint32, syMathDivide(), sySetTickEvent() and sySoundPlay().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 356 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceUnusedReturnToSixStatues

static void scMercuryLighthouseEntranceUnusedReturnToSixStatues(void)

Never seen: no metatile of this floor answers its cue row, so nothing sends Isaac back to the Lizard Man's doorway this way.

It would start the hall of six statues again at MERCURY_LIGHTHOUSE_ENTRANCE_SIX_STATUES_AFTER_LIZARD_MAN, where Mia goes in if she has not yet.

References syImportScriptSetExitRequest().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 421 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceLizardManReturnsToCenter

static void scMercuryLighthouseEntranceLizardManReturnsToCenter(void)

Stepping back to the middle in front of the Lizard Man, metatile (8, 10), or one metatile back from beside him, metatile (7, 11) or (9, 11), makes him step back into the middle of the doorway.

It plays only while he stands aside (FLAG_LIZARD_MAN_STEPPED_ASIDE).

References fdActorSetScript(), gmFlagClear() and MercuryLighthouseEntranceLizardManStepCenter.

Referenced by MercuryLighthouseEntranceCues.

Definition at line 432 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceLizardManBlocksLeader

static void scMercuryLighthouseEntranceLizardManBlocksLeader(void)

Walking up beside the Lizard Man, metatile (7, 10) or (9, 10), makes him sidestep in front of Isaac with a footstep.

He steps west or east to match Isaac, as he did to Mia.

References fdActorGet(), fdActorSetScript(), gmFlagSet(), MercuryLighthouseEntranceLizardManStepEast, MercuryLighthouseEntranceLizardManStepWest and Sint32.

Referenced by MercuryLighthouseEntranceCues.

Definition at line 443 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseEntranceFightLizardMan

static void scMercuryLighthouseEntranceFightLizardMan(void)

Talking to the Lizard Man, Mind Read on him, or walking north into him from the metatiles in front of the doorway, (7, 10) to (9, 10), starts the battle with him.

Back from the battle the party stands in the hall without him (MERCURY_LIGHTHOUSE_ENTRANCE_SIX_STATUES_AFTER_LIZARD_MAN).

References fdActorRunRepeatedMotion(), fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptSetAfterBattleDestination(), fdScriptStart() and fdScriptWait().

Referenced by MercuryLighthouseEntranceCues.

Definition at line 469 of file mercury_lighthouse_entrance.c.

scInit

Sint32 scInit(void)

Sets up Mercury Lighthouse's ground floor, then plays the script of the entrance taken.

References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdEffectStartGroundMask(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridWaitForShakeToSettle(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdQueueMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, mnFieldMessageShowCentered(), SceneLocalState, scMercuryLighthouseArriveWithSparks(), scMercuryLighthouseClearPalette(), scMercuryLighthouseCyclePalette(), scMercuryLighthouseEntranceLizardManBlocksMia(), scMercuryLighthouseEntranceMiaEntersLighthouse(), scMercuryLighthouseRestoreLights(), Sint32, syCos(), syImportScriptSetExitRequest(), sySetTickEvent(), sySin(), sySoundPlay() and sySynch().

Definition at line 490 of file mercury_lighthouse_entrance.c.

scMercuryLighthouseSpawnRipple

static void scMercuryLighthouseSpawnRipple(ACTOR *src)

Spreads one blue ripple (SPRITE_RIPPLE) from an actor, for 30 ticks.

References fdActorStartScript(), fdSpriteStartAnimation(), MercuryLighthouseEntranceRippleScript and scFieldActorCreate().

Referenced by scMercuryLighthouseHopAcrossPool() and scMercuryLighthouseRippleAroundLeader().

Definition at line 790 of file mercury_lighthouse_entrance.c.

Variables in detail

MercuryLighthouseEntranceRippleScript

extern Sint32 MercuryLighthouseEntranceRippleScript[]

Sint32 MercuryLighthouseEntranceRippleScript[]

References Sint32.

Referenced by scMercuryLighthouseSpawnRipple().

Definition at lines 135 and 819 of file mercury_lighthouse_entrance.c.

MercuryLighthouseEntranceLizardManStepCenter

extern Sint32 MercuryLighthouseEntranceLizardManStepCenter[]

Sint32 MercuryLighthouseEntranceLizardManStepCenter[]

References scMercuryLighthouseEntrancePlayStepSound() and Sint32.

Referenced by scMercuryLighthouseEntranceLizardManBlocksMia() and scMercuryLighthouseEntranceLizardManReturnsToCenter().

Definition at lines 136 and 847 of file mercury_lighthouse_entrance.c.

MercuryLighthouseEntranceLizardManStepWest

extern Sint32 MercuryLighthouseEntranceLizardManStepWest[]

Sint32 MercuryLighthouseEntranceLizardManStepWest[]

References scMercuryLighthouseEntrancePlayStepSound() and Sint32.

Referenced by scMercuryLighthouseEntranceLizardManBlocksLeader() and scMercuryLighthouseEntranceLizardManBlocksMia().

Definition at lines 137 and 859 of file mercury_lighthouse_entrance.c.

MercuryLighthouseEntranceLizardManStepEast

extern Sint32 MercuryLighthouseEntranceLizardManStepEast[]

Sint32 MercuryLighthouseEntranceLizardManStepEast[]

References scMercuryLighthouseEntrancePlayStepSound() and Sint32.

Referenced by scMercuryLighthouseEntranceLizardManBlocksLeader() and scMercuryLighthouseEntranceLizardManBlocksMia().

Definition at lines 138 and 871 of file mercury_lighthouse_entrance.c.

MercuryLighthouseEntranceEntrances

extern SCENE_ENTRANCE MercuryLighthouseEntranceEntrances[]

SCENE_ENTRANCE MercuryLighthouseEntranceEntrances[]

Referenced by scGetEntrances().

Definition at lines 139 and 889 of file mercury_lighthouse_entrance.c.

MercuryLighthouseEntranceExits

extern Uint32 MercuryLighthouseEntranceExits[]

Uint32 MercuryLighthouseEntranceExits[]

Referenced by scGetExits().

Definition at lines 140 and 951 of file mercury_lighthouse_entrance.c.

MercuryLighthouseEntranceActorPlacements

extern ACTOR_PLACE MercuryLighthouseEntranceActorPlacements[]

ACTOR_PLACE MercuryLighthouseEntranceActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 141 and 1018 of file mercury_lighthouse_entrance.c.

MercuryLighthouseEntranceCues

extern CUE MercuryLighthouseEntranceCues[]

CUE MercuryLighthouseEntranceCues[]

References scMercuryLighthouseEntranceActivateWithPly(), scMercuryLighthouseEntranceChargeLights(), scMercuryLighthouseEntranceFightLizardMan(), scMercuryLighthouseEntranceHopAcrossPool(), scMercuryLighthouseEntranceLizardManBlocksLeader(), scMercuryLighthouseEntranceLizardManReturnsToCenter(), scMercuryLighthouseEntranceLoseLights(), scMercuryLighthouseEntranceReadHeartInscription(), scMercuryLighthouseEntranceRippleAroundLeader(), scMercuryLighthouseEntranceUnusedReturnToSixStatues(), scMercuryLighthouseEntranceWaterfallToChestFountain(), scMercuryLighthouseEntranceWaterfallToDryFountain(), scMercuryLighthouseEntranceWaterfallToTwinFountains() and scMercuryLighthouseRemoveColumnOnRetreat().

Referenced by scGetCues().

Definition at lines 142 and 1042 of file mercury_lighthouse_entrance.c.

MercuryLighthouseSparkScript

Sint32 MercuryLighthouseSparkScript[]

References scMercuryLighthouseRiseSpark() and Sint32.

Referenced by scMercuryLighthouseSpawnSparkPair().

Definition at line 824 of file mercury_lighthouse_entrance.c.

MercuryLighthouseGrowLightScript

Sint32 MercuryLighthouseGrowLightScript[]

References scMercuryLighthouseGrowLight() and Sint32.

Referenced by scMercuryLighthouseHopAcrossPool() and scMercuryLighthouseRestoreLights().

Definition at line 829 of file mercury_lighthouse_entrance.c.

MercuryLighthouseLightOutScript

Sint32 MercuryLighthouseLightOutScript[]

References scMercuryLighthouseSwellLightOut() and Sint32.

Referenced by scMercuryLighthouseHopAcrossPool() and scMercuryLighthouseLoseLights().

Definition at line 834 of file mercury_lighthouse_entrance.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Definition at line 841 of file mercury_lighthouse_entrance.c.

PaletteCycleRed

Sint32 PaletteCycleRed

References Sint32.

Referenced by scMercuryLighthouseCyclePalette().

Definition at line 883 of file mercury_lighthouse_entrance.c.

PaletteCycleGreen

Sint32 PaletteCycleGreen

References Sint32.

Referenced by scMercuryLighthouseCyclePalette().

Definition at line 885 of file mercury_lighthouse_entrance.c.

PaletteCycleBlue

Sint32 PaletteCycleBlue

References Sint32.

Referenced by scMercuryLighthouseCyclePalette().

Definition at line 887 of file mercury_lighthouse_entrance.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailMIA_WATCH_LAST_HALF_METATILEPLY_GLINTSLANDING_PUFFSEnumerations in detailMERCURY_LIGHTHOUSE_ENTRANCE_METATILE_BEHAVIORMERCURY_LIGHTHOUSE_ENTRANCE_ACTOR_IDanonymous enumFunctions in detailscMercuryLighthouseEntranceLizardManBlocksMiascMercuryLighthouseEntranceMiaEntersLighthousescMercuryLighthouseEntrancePlayStepSoundscMercuryLighthouseEntranceMiaWatchesLeaderscMercuryLighthouseEntranceRippleAroundLeaderscMercuryLighthouseEntranceLoseLightsscMercuryLighthouseEntranceHopAcrossPoolscMercuryLighthouseEntranceChargeLightsscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscMercuryLighthouseEntranceReadHeartInscriptionscMercuryLighthouseEntranceWaterfallToDryFountainscMercuryLighthouseEntranceWaterfallToTwinFountainsscMercuryLighthouseEntranceWaterfallToChestFountainscGetCuesscMercuryLighthouseEntranceActivateWithPlyscMercuryLighthouseEntranceUnusedReturnToSixStatuesscMercuryLighthouseEntranceLizardManReturnsToCenterscMercuryLighthouseEntranceLizardManBlocksLeaderscMercuryLighthouseEntranceFightLizardManscInitscMercuryLighthouseSpawnRippleVariables in detailMercuryLighthouseEntranceRippleScriptMercuryLighthouseEntranceLizardManStepCenterMercuryLighthouseEntranceLizardManStepWestMercuryLighthouseEntranceLizardManStepEastMercuryLighthouseEntranceEntrancesMercuryLighthouseEntranceExitsMercuryLighthouseEntranceActorPlacementsMercuryLighthouseEntranceCuesMercuryLighthouseSparkScriptMercuryLighthouseGrowLightScriptMercuryLighthouseLightOutScriptFieldEffectDurationScriptsPaletteCycleRedPaletteCycleGreenPaletteCycleBlue