src/scene/mercury_lighthouse.c
Mercury Lighthouse, the lighthouse of water north of Imil that Mia and the Mercury Clan guard: the ground outside its door (SceneIdMercuryLighthouseExterior) and three of its upper scenes (SceneIdMercuryLighthouseLower, SceneIdMercuryLighthouseMiddle and SceneIdMercuryLighthouseUpper). More…
#include "scene/mercury_lighthouse.h"#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "battle/battle.h"#include "field/facing.h"#include "field/field_psynergy_state.h"#include "field/ground_mask.h"#include "field/map_grid.h"#include "graphics/graphics.h"#include "scene/mercury_lighthouse_lights.h"#include "scene/mercury_lighthouse_column.h"#include "scene/walk_into_leader.h"#include "game/system_call.h"#include "text/msg_ids.h"#include "shared/field_effect_create.c"#include "shared/field_effect_spawn.c"#include "shared/pushed_actor.c"#include "shared/mercury_lighthouse_sparks.c"#include "shared/mercury_lighthouse_palette_cycle.c"#include "shared/mercury_lighthouse_waterfall.c"#include "shared/mercury_lighthouse_arrive.c"#include "shared/hermes_water_bottle.c"#include "shared/mercury_lighthouse_lights.c"#include "shared/mercury_lighthouse_column.c"#include "shared/field_effect_duration_scripts.c"#include "shared/pushed_actor_tables.c"#include "shared/mercury_lighthouse_column_tables.c"#include "shared/glint_twinkle_script.c"
Macros
| Name | Description | |
|---|---|---|
#define | MERCURY_LIGHTHOUSE_CARRY_LEADER_BACK (actorId, x, z) | |
#define | MERCURY_LIGHTHOUSE_ANIMATE_ACTOR_AND_WAIT fdActorSetAnimationAndWait | |
#define | MERCURY_LIGHTHOUSE_OFFSET_FIXED (value) ((value) * toFIXED(1)) | |
#define | UNMASKED_FIRST_ROW 13 | The rows of MercuryLighthouseMiddle's gate room where the ground mask lets go of the leader walking on the ground layer. |
#define | UNMASKED_LAST_ROW 18 | |
#define | FIRST_PIPE_JOINED_ROW 8 | Where each channel pipe joins its channel: the first two along their rows, the third along its column. |
#define | SECOND_PIPE_JOINED_ROW 12 | |
#define | THIRD_PIPE_JOINED_COLUMN 40 | |
#define | SPOUT_PIPE_JOINED_COLUMN 11 | The spout pipe joins the pipes above and below its pool at this column, and the spouts run; anywhere else they stop. |
#define | NORTH_JET_PIPE_RUNNING_ROW 40 | The pipe in the room with the Nut chest joins the pipes either side of its pool at the first row, and the jet runs; at the second it stops. |
#define | NORTH_JET_PIPE_STOPPED_ROW 42 | |
#define | SWITCH_PIPE_WESTWARD_JET_COLUMN 47 | Where the switch pipe stops along its pool, in metatiles: at the first column the water runs to JET_WESTWARD, at the second to JET_EASTWARD, at the third no jet runs, and anywhere else, as at the last, where it starts, the water falls as JET_SOUTHWARD. |
#define | SWITCH_PIPE_EASTWARD_JET_COLUMN 48 | |
#define | SWITCH_PIPE_NO_JET_COLUMN 53 | |
#define | SWITCH_PIPE_SOUTHWARD_JET_COLUMN 54 | |
#define | WEST_EAST_PIPE_PUSHED_ROW 38 | The row of the pipe lying west to east once it has been pushed south into the pool (FLAG_WEST_EAST_PIPE_PUSHED). |
#define | SLIDING_STATUE_UNDER_JET_ROW 44 | The blue statue's first row, along which JET_WESTWARD pushes it under the pipe end of JET_SOUTHWARD. |
#define | WATERFALL_BURST_SPARKS 16 | The sparks of each of the two bursts over the waterfall, and the spray thrown up from each row of it as it parts. |
#define | WATERFALL_ROW_SPRAY 32 | |
#define | BURST_SPARKLES 6 | The sparkles of a burst, one every four ticks. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { ANIM_MIA_KNEEL } | Mia kneeling with her hands together, as she senses someone inside the lighthouse (mia.png's frame 76). |
enum | anonymous enum { METATILE_BEHAVIOR_SLEEP_BOMB_LEDGE, METATILE_BEHAVIOR_BY_CRY … } | The metatiles the four scenes' cues answer, named for where they are. |
enum | MERCURY_LIGHTHOUSE_LOWER_ACTOR_ID { ACTOR_STATUE_BLOCKING_MIA, ACTOR_FIRST_PIPE, ACTOR_SECOND_PI … } | MercuryLighthouseLower: the statue in Mia's way, and the pipe room's pipe sections and pipe end. |
enum | MERCURY_LIGHTHOUSE_MIDDLE_ACTOR_ID { ACTOR_SPOUT_PIPE, ACTOR_SPOUT_PIPE_END, ACTOR_NORTH_JET_PIPE … } | MercuryLighthouseMiddle: the spout pipe of the big pipe room, the pipe in the room with the Nut chest, the statue for the gate's floor switch and Sleet, a Mercury Djinni. |
enum | MERCURY_LIGHTHOUSE_UPPER_ACTOR_ID { ACTOR_FALLEN_STATUE, ACTOR_SLIDING_STATUE, ACTOR_WEST_EAST_P … } | MercuryLighthouseUpper: the blue statue of the room of jets and where it lands below, that room's two pipes and pipe ends, the five stone statues along the wall and the stone statue of the room of vines. |
enum | MERCURY_LIGHTHOUSE_EXTERIOR_ACTOR_ID { ACTOR_WEST_APPROACH_STATUE, ACTOR_EAST_APPROACH_STATUE, ACTO … } | MercuryLighthouseExterior: Garet, Ivan and Mia in their own party slots, the statues by the way in, the statue at the door, the Ply target, the statue by the waterfall, the statue on the lift and the people at the fountain. |
enum | anonymous enum { FLAG_SPOUTS_RUNNING, FLAG_NORTH_JET_RUNNING, FLAG_NORTH_JET_ … } | Puzzle states kept until the party leaves the lighthouse. |
enum | anonymous enum { FLAG_HERMES_WATER_TAKEN, FLAG_LEADER_ON_FLOOR_SWITCH } | Scene flags, kept while the party stays in the scene. |
enum | anonymous enum { FLAG_CHEST_SLEEP_BOMB, FLAG_CHEST_PSY_CRYSTAL, FLAG_CHEST_NU … } | The chests: a Sleep Bomb, a Psy Crystal and a Nut. |
enum | anonymous enum { JET_SOUTHWARD, JET_EASTWARD, JET_WESTWARD } | The three jets of the room of jets, named for the way each pushes the blue statue: JET_SOUTHWARD falls from the pipe end north of the statue's first place, JET_EASTWARD shoots along the row of the square hole from the pipe end at its west, and JET_WESTWARD shoots along the statue's first row from the pipe end at its east. |
Functions
| Name | Description | |
|---|---|---|
static void | scMercuryLighthouseOpenGateWithMovedStatue (void) | Once the gate room's blue statue stands on the floor switch at the west end of the terrace (metatile (5, 13)), whether moved by Move or pushed, the switch sinks under it and the sealed arch at the top of the ladder on the dais opens for good. |
static void | scMercuryLighthouseOpenUpperGateWithMovedStatue (void) | Once the fallen blue statue stands on the floor switch in the middle of the upper gate room (metatile (10, 23)), whether moved by Move or pushed, the switch sinks under it and the sealed middle arch of the three in the north wall opens for good. |
static void | scMercuryLighthouseRecordRowStatues (void) | Move on one of the stone statues along the north wall of the room of statues, or a push, moves it a step along the wall. |
static void | scMercuryLighthouseStartSpoutsWithSparkles (void) | Starts the tall spout in the west of the big pipe room: the water rises from its pointed pipe end a metatile at a time, two metatiles, sparkles rising along its edge. |
static void | scMercuryLighthouseStopSpoutsWithSparkles (void) | Stops the spouts as the spout pipe moves away (the push's callback): the tall spout and the one shooting east draw back a metatile at a time, each in a scatter of sparkles. |
static void | scMercuryLighthouseSparkleAroundLeader (void) | Event: a sparkle from the leader every fourth tick, as a spout carries him back. |
static void | scMercuryLighthouseSparkleAt (Sint32 x, Sint32 y, Sint32 z) | A sparkle at a point every fourth tick, from an event. |
static void | scMercuryLighthouseSparkleNear (Sint32 x, Sint32 y, Sint32 z) | One still sparkle near a point, up to 8 pixels either side and 4 north or south. |
static void | scMercuryLighthouseSparkleBurst (Sint32 x, Sint32 y, Sint32 z, Sint32 angle) | BURST_SPARKLES sparkles, spraying the way angle points and slowing one by one, as the water runs through a joined pipe. |
static void | scMercuryLighthouseRideLift (void) | Coming down from the Lighthouse Aerie (MERCURY_LIGHTHOUSE_EXTERIOR_FROM_MERCURY_LIGHTHOUSE_AERIE), Isaac rides the lift down beside its blue statue, slowing as it nears the bottom, hops off, and the lift goes back up without him. |
static void | scMercuryLighthouseMiaCastsPlyOnEntrance (void) | Mia casts Ply on the Ply target, moved onto the door. |
static void | scInventoryReplaceItem (Sint32 oldItem, Sint32 newItem) | Replaces the first held oldItem with newItem in the same party member's slot, so the bottle stays where it was in the items. |
static void | scMercuryLighthouseStartDjinnBattle (void) | Talking to Sleet, the Mercury Djinni in the small room that the third waterfall from the west of the first room of six waterfalls leads to, starts a battle with it. |
static void | scMercuryLighthouseUnmaskLeaderOnTerrace (void) | Event: the ground mask stops following the leader while he crosses the rows from UNMASKED_FIRST_ROW to UNMASKED_LAST_ROW on MAPGRID_LAYER_GROUND. |
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) | The four scenes share one exit table. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Each scene's people, statues and pipes; the empty table is for no scene. |
static void | scMercuryLighthouseRippleWhileInPool (void) | Ripples spread round Isaac while he stands out on the open water of the great pool room, held up by one of his lights. |
static void | scMercuryLighthouseLoseLightsOnLower (void) | Stepping onto a plain stepping square or the floor at the edge of the great pool room puts out the golden rings of light over Isaac's head, which swell and fade away. |
static void | scMercuryLighthouseHopAcrossPoolOnLower (void) | In the great pool room, pushing against the water from a stepping square, the floor's edge or the open water, Isaac hops two metatiles the way he faces, to the next square or out onto the water. |
static void | scMercuryLighthouseChargeLightsOnLower (void) | Stepping onto one of the great pool room's stepping squares marked with a cross puts golden rings of light over Isaac's head, one more every half second up to three. |
static void | scMercuryLighthouseInspectSealedDoor (void) | Searching the lighthouse door before Mia has opened it, metatile (52, 36), shows "Strange forces are at work... |
const CUE * | scGetCues (void) | Each scene's cues, the exterior's last. |
static void | scMercuryLighthouseWaterfallToSleetsRoom (void) | Walking north into the third of the six waterfalls from the west, in the first room of waterfalls (metatile (16, 7)), Isaac vanishes in a trail of sparkles and comes out in Sleet's small room. |
static void | scMercuryLighthouseWaterfallToGapRoom (void) | Walking north into the easternmost of the six waterfalls of the second room of waterfalls (metatile (28, 37)), Isaac vanishes in a trail of sparkles and comes out at the foot of the room of vines, through MERCURY_LIGHTHOUSE_UPPER_WATERFALLS_GAP. |
static void | scMercuryLighthouseWaterfallToUpperPath (void) | Walking north into the waterfall under the rainbow (metatile (49, 13)), Isaac vanishes in a trail of sparkles and comes out again on the path that led there, through MERCURY_LIGHTHOUSE_EXTERIOR_WATERFALL_TO_UPPER_PATH. |
static void | scMercuryLighthouseExitWhenChannelsOpen (void) | Once all three pipe sections of the pipe room are joined, the floor rumbles and shakes and the screen fades out. |
static void | scMercuryLighthousePushChannelPipes (void) | Walking into one of the pipe room's three pipe sections, Isaac pushes it across its grated pool. |
static void | scMercuryLighthousePushLeaderOutOfSpout (void) | Walking into one of the spouts of water that shoot from the pipe ends of the big pipe room while its spout pipe is joined, Isaac is carried back out to the spout's tip, standing, in a trail of sparkles: the spouts bar the way. |
static void | scMercuryLighthousePushGateSwitchStatue (void) | In the gate room, walking into the blue statue on the terrace pushes it a step while the sealed arch on the dais is shut, until it rests on the floor switch at the terrace's west end (scMercuryLighthouseOpenGateWithMovedStatue). |
static void | scMercuryLighthousePressGateFloorSwitch (void) | Standing on the gate room's floor switch, at the west end of the terrace (metatile (5, 13)), sinks it under Isaac and opens the sealed arch at the top of the ladder on the dais, for as long as he stays on it. |
static void | scMercuryLighthouseReleaseGateFloorSwitch (void) | Stepping off the gate room's floor switch lets it rise again, and the arch at the top of the ladder seals itself. |
static void | scMercuryLighthouseDrawNorthJetTiles (Sint32 delayTicks, Sint32 firstStep, Sint32 endStep) | Draws the jet along the north wall of the room with the Nut chest a step at a time, the floor shaking at each step when delayTicks is not 0, and copies in the doorway that opens in the wall above it, MERCURY_LIGHTHOUSE_MIDDLE_TO_MERCURY_LIGHTHOUSE_UPPER_NORTH_NORTHEAST, with its metatiles. |
static void | scMercuryLighthouseRestoreNorthJetTiles (Sint32 delayTicks) | Takes the jet and its doorway away again a step at a time, the floor shaking, as the pipe is pushed back. |
static void | scMercuryLighthouseSparkleOnNorthJet (void) | Event: sparkles on the jet while it runs. |
static void | scMercuryLighthouseStartNorthJet (Sint32 delayTicks) | Starts the jet along the north wall of the room with the Nut chest, its leading edge throwing up spray and sparkles, and keeps it sparkling. |
static void | scMercuryLighthouseStopNorthJet (void) | As the pipe moves away (the push's callback): spray drifts off the jet and its sparkles stop. |
static void | scMercuryLighthousePushSpoutAndNorthJetPipes (void) | Walking into a pipe section, Isaac pushes it across its grated pool. |
static void | scMercuryLighthousePushUpperGateSwitchStatue (void) | In the upper gate room, walking into the blue statue that fell from the room of jets pushes it a step while the middle arch is shut, until it rests on the floor switch in the middle of the room (scMercuryLighthouseOpenUpperGateWithMovedStatue). |
static void | scMercuryLighthousePressUpperGateFloorSwitch (void) | Standing on the floor switch in the middle of the upper gate room, metatile (10, 23), sinks it under Isaac and opens the sealed middle arch of the three in the north wall, for as long as he stays on it. |
static void | scMercuryLighthouseReleaseUpperGateFloorSwitch (void) | Stepping off the upper gate room's floor switch lets it rise again, and the middle arch seals itself. |
static inline Sint32 | scMercuryLighthouseRandomSpraySpeed (void) | A random speed for the spray a jet throws up. |
static void | scMercuryLighthouseStartJet (Sint32 jet) | Starts one jet of the room of jets: the water reaches out from its pipe end a metatile at a time, throwing up spray. |
static void | scMercuryLighthouseStopJet (Sint32 jet) | Stops a jet: the water draws back into its pipe end a metatile at a time, spray drifting from it. |
static Bool | scMercuryLighthouseStartStatueSlide (void) | The camera turns to the blue statue of the room of jets, and the jet just started pushes it a step if the statue stands where that jet hits it: JET_WESTWARD from its first place, then JET_SOUTHWARD from under the falling jet's pipe end, then JET_EASTWARD from the row of the hole, into the hole. |
static void | scMercuryLighthouseSparkleAboveStatue (void) | Sparkles rise from the sliding statue as it moves. |
static Sint32 | scMercuryLighthouseStartStatueSparkles (ACTOR *actor) | The slide scripts start the sparkles as the statue sets off. |
static Sint32 | scMercuryLighthouseStopStatueSparkles (void) | |
static void | scMercuryLighthousePushJetRoomPipes (void) | In the room of jets, walking into a pipe section, Isaac pushes it along its pool. |
static void | scMercuryLighthousePushRowStatue (void) | Walking into one of the five stone statues along the north wall of the room of statues pushes it a step along the wall. |
static void | scMercuryLighthouseMoveGapStatueOffDoorway (void) | Move on the stone statue standing in the doorway at the head of the room of vines: pushed one step west, to column 28, it stays there for good (FLAG_PASSAGE_STATUE_MOVED), and the doorway, which leads up to the paths outside, can be reached. |
static inline void | scMercuryLighthouseRotatePaletteRange (Uint16 *colors, Uint32 colorCount) | Rotates the selected palette range once every eight ticks. |
static void | scMercuryLighthouseCycleEntrancePalette (void) | While the lighthouse door is sealed its light shimmers: background palette 2, colors 8 to 15, rotates every eight ticks. |
static void | scMercuryLighthouseMiaSensesSomeoneInside (void) | Talking to Mia, kneeling before the lighthouse door, or Mind Read on her, the first time: "Somebody...is here." She is sure it can only be Alex, the one other than her who can enter, and turns to the door to find the stone statue in her way: "But this statue is blocking my way..." |
static void | scMercuryLighthouseMiaDiscussesBlockedEntrance (void) | Talking to Mia again while the statue still blocks the door: she shakes her head. |
static void | scMercuryLighthouseFadePaletteToWhite (void) | The door's light brightens to white as it opens. |
static void | scMercuryLighthouseMiaOpensEntranceWithPly (void) | Move on the stone statue in front of the lighthouse door while Mia waits there: once it has slid aside, to column 51, Mia turns and asks "Did you do that?" She saw the force that pushed it, Garet and Ivan tell her of Psynergy, and she opens the door with Ply in a flash of light, then jumps up and goes in alone. |
static void | scMercuryLighthouseCycleWaterfallPalette (void) | The rainbow over the waterfall shimmers: background palette 6, colors 1 to 7, rotates every eight ticks. |
static void | scMercuryLighthouseFadePaletteToBlack (void) | The rainbow's colours fade to black, so it vanishes, as Ply takes effect. |
static void | scMercuryLighthouseRaiseActorWithSparks (Sint32 actorId) | Raises one of the party up the reversed waterfall in a shower of sparks, faster and faster, for 96 ticks. |
static void | scMercuryLighthousePlyOpensWaterfallPassage (void) | Ply on the blue statue beside the waterfall under the rainbow: the rainbow fades, sparks gather over the water, the floor rumbles and the waterfall turns to stream upward. |
static void | scMercuryLighthouseReadHermesFountainSign (void) | Searching the sign in front of the Fountain of Healing, at the top of the causeway (metatile (52, 50)), shows "Fountain of Healing" and "Water of Hermes: It brings rejuvenation to all that lives." |
static void | scMercuryLighthouseInspectLockedDoor (void) | Searching the sealed arch of either gate room while it is shut, the one at the top of the ladder on the dais or the middle one of three: "The door is tightly locked." |
static void | scMercuryLighthouseInspectHealingFountain (void) | Searching the Fountain of Healing at the top of the causeway, metatile (52, 47), until its water has been taken this visit: "The fountain seems dry." before Saturos is beaten, "The fountain is flowing with water." after. |
static void | scMercuryLighthouseFillHermesWaterBottle (void) | Using the Empty Bottle at the Fountain of Healing once Saturos is beaten fills it: the bottle becomes Hermes' Water, once a visit. |
static void | scMercuryLighthouseJumpDownPastCrystal (void) | Walking south into the hole behind the blue crystal of the crystal room (metatile (29, 37)), Isaac drops through the floor and lands in the goddess's pool on the ground floor (MERCURY_LIGHTHOUSE_LOWER_TO_MERCURY_LIGHTHOUSE_ENTRANCE_HOLE). |
Sint32 | scInit (void) | Restores each lighthouse scene's puzzle state and plays its entrance's script. |
static void | scMercuryLighthouseMiaJoinsAfterRescue (void) | Move on the blue statue in Mia's way, on the ledge up the stairs from the great pool room: once it has dropped into the gap at her feet, at column 48, Mia thanks the party ("You've saved me again, haven't you!"), asks their business in the lighthouse until they own to it, and joins them, bringing Fizz, a Mercury Djinni, already set. |
static void | scMercuryLighthouseSpawnRipple (ACTOR *src) | Spreads one blue ripple (SPRITE_RIPPLE) from an actor, for 30 ticks. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | MercuryLighthouseRippleScript [] | |
extern Sint32 | GlintTwinkleScript [] | A SPRITE_GLINT's life: it shrinks from full size to a quarter and back, four times over 24 ticks each, then is released. |
extern Sint32 | MercuryLighthouseStatueSlideWest [] | The blue statue's slides in the room of jets, each three quarters of a second or a second after the jet starts: JET_WESTWARD pushes it west under the falling jet's pipe end, JET_SOUTHWARD south to the row of the hole, and JET_EASTWARD east into the hole. |
extern Sint32 | MercuryLighthouseStatueSlideSouth [] | |
extern Sint32 | MercuryLighthouseStatueSlideIntoHole [] | |
extern Sint32 | MercuryLighthouseStatueStaysPut [] | JET_WESTWARD again once the statue is under the falling jet's pipe end: the sparkles start, but the statue stays where it is. |
extern Uint16 | MercuryLighthouseGateMetatiles [] | The gate room's sealed arch on the dais opening a column at a time, and closing; then the upper gate room's middle arch, the same. |
extern Uint16 | MercuryLighthouseGateCloseMetatiles [] | |
extern Uint16 | MercuryLighthouseUpperGateMetatiles [] | |
extern Uint16 | MercuryLighthouseUpperGateCloseMetatiles [] | |
extern Uint16 | MercuryLighthouseDoorOpenMetatiles [] | The lighthouse door opening in five steps as Mia casts Ply on it. |
extern SCENE_ENTRANCE | MercuryLighthouseLowerEntrances [] | |
extern SCENE_ENTRANCE | MercuryLighthouseMiddleEntrances [] | |
extern SCENE_ENTRANCE | MercuryLighthouseUpperEntrances [] | |
extern SCENE_ENTRANCE | MercuryLighthouseExteriorEntrances [] | |
extern Uint32 | MercuryLighthouseExits [] | |
extern ACTOR_PLACE | MercuryLighthouseNoActorPlacements [] | |
extern ACTOR_PLACE | MercuryLighthouseLowerActorPlacements [] | |
extern ACTOR_PLACE | MercuryLighthouseMiddleActorPlacements [] | |
extern ACTOR_PLACE | MercuryLighthouseUpperActorPlacements [] | |
extern ACTOR_PLACE | MercuryLighthouseExteriorActorPlacements [] | |
extern CUE | MercuryLighthouseLowerCues [] | |
extern CUE | MercuryLighthouseMiddleCues [] | |
extern CUE | MercuryLighthouseUpperCues [] | |
extern CUE | MercuryLighthouseExteriorCues [] | |
Sint32 | MercuryLighthouseSparkScript [] | 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. |
Sint32 | MercuryLighthouseGrowLightScript [] | |
Sint32 | MercuryLighthouseLightOutScript [] | |
const Sint32 * | FieldEffectDurationScripts [] | The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION. |
Sint32 | PaletteCycleRed | Unused, with PaletteCycleGreen and PaletteCycleBlue: nothing reads them or changes them. |
Sint32 | PaletteCycleGreen | |
Sint32 | PaletteCycleBlue |
Description
Mercury Lighthouse, the lighthouse of water north of Imil that Mia and the
Mercury Clan guard: the ground outside its door
(SceneIdMercuryLighthouseExterior) and three of its upper scenes
(SceneIdMercuryLighthouseLower, SceneIdMercuryLighthouseMiddle and
SceneIdMercuryLighthouseUpper). The ground floor inside the door, with the
Lizard Man and the goddess's pool, is mercury_lighthouse_entrance.c, and the
beacon at the top, the Lighthouse Aerie, is mercury_lighthouse_aerie.c. The
four scenes here share one exit table, and every arrival sets
FLAG_IN_MERCURY_LIGHTHOUSE, under which Mercury Adepts regain PP faster.
Retreat leads out to the foot of the causeway
(MERCURY_LIGHTHOUSE_EXTERIOR_FROM_WORLD_MAP).
In the order the party meets them:
- Outside. The party comes from the World Map up a causeway between two blue
statues standing in the water, past the dry Fountain of Healing and its
sign, to the lighthouse door. Until the party has met Mia in Imil
(
FLAG_IMIL_MET_MIA) the door glows and searching it shows "Strange forces are at work...". Then Mia kneels before it, and a stone statue stands in her way. Spoken to, she senses someone inside; Move pushes the statue aside, she asks whether Isaac did that, learns the word Psynergy from Garet and Ivan, and opens the door with Ply before going in alone (FLAG_MERCURY_LIGHTHOUSE_OPENED_BY_MIA). SceneIdMercuryLighthouseLower: the floor above the goddess's pool. Its great pool room is set with stepping squares, some marked with a cross. Stairs from the platform in its middle lead to a ledge where Mia is stuck again, before a blue statue that was not there before; Move drops it into the gap at her feet and she joins the party with Fizz, a Mercury Djinni (FLAG_MIA_JOINED_PARTY). In the pipe room three pipe sections pushed across their grated pools join the channels (FLAG_PIPE_1_JOINEDtoFLAG_PIPE_3_JOINED), and the water runs on into the rooms below (FLAG_MERCURY_LIGHTHOUSE_CHANNELS_OPEN). In a small room a hole behind a blue crystal drops to the goddess's pool. Once Ply has woken that pool (FLAG_MERCURY_LIGHTHOUSE_HEART_HONORED), the cross-marked squares here give Isaac golden rings of light, each of which holds him up on the water for one hop (shared/mercury_lighthouse_column.c). That is the way across the great pool room, whose chest holds a Sleep Bomb.SceneIdMercuryLighthouseMiddle. In the big pipe room one pipe section, joined, sets water spouting from four pipe ends (FLAG_SPOUTS_RUNNING): a tall spout rising in the room's west, and three shooting across the floor that bar the way. A chest there holds a Psy Crystal. In the gate room a blue statue moved onto the floor switch holds the sealed arch on the dais open for good (FLAG_MERCURY_LIGHTHOUSE_GATE_HELD_OPEN), where Isaac standing on the switch holds it only while he stays; past it is the crystal room. In the room with the Nut chest a pipe joined across its pool sends a jet along the north wall and opens a doorway up to the room of six waterfalls (FLAG_NORTH_JET_RUNNING). Sleet, a Mercury Djinni, waits in a room of its own and fights when spoken to.SceneIdMercuryLighthouseUpper. Walking into the third waterfall from the west of the first room of six waterfalls leads down to Sleet. In the room of jets a pipe pushed along its pool turns the water from one pipe end to another, and each jet pushes a blue statue a step, until it slides into a square hole and falls to the gate room below (FLAG_MERCURY_LIGHTHOUSE_STATUE_FELL). There Move sets it on the floor switch, which holds the middle arch open (FLAG_MERCURY_LIGHTHOUSE_UPPER_GATE_HELD_OPEN). Past it, five stone statues stand along the wall; the third and the fifth hide doorways down to the room with the Nut chest. In the second room of six waterfalls the easternmost leads to a room of vines, where Move pushes a stone statue off the doorway to the paths outside.- Outside again, high up. The paths end at a waterfall under a rainbow, whose
riddle appears on arrival: "He who honors the goddess of rainbows shall be
guided to the heavens upon wings of fluid grace." Ply on the blue statue
beside it reverses the waterfall, and Mia, Isaac, Garet and Ivan rise up
the water one by one to the Lighthouse Aerie, where Saturos waits
(
mercury_lighthouse_aerie.c). Once he is beaten (FLAG_SATUROS_BEATEN_AT_MERCURY) the lift brings the party down from the aerie to the fountain, which flows again. People come to drink from it, and an Empty Bottle used there becomes Hermes' Water, once a visit (FLAG_HERMES_WATER_TAKEN). The waterfall still carries the leader up, alone.
Macros in detail
MERCURY_LIGHTHOUSE_CARRY_LEADER_BACK
#define MERCURY_LIGHTHOUSE_CARRY_LEADER_BACK(actorId, x, z)
Referenced by scMercuryLighthousePushLeaderOutOfSpout().
Definition at lines 118 and 121 of file mercury_lighthouse.c.
MERCURY_LIGHTHOUSE_ANIMATE_ACTOR_AND_WAIT
#define MERCURY_LIGHTHOUSE_ANIMATE_ACTOR_AND_WAIT fdActorSetAnimationAndWait
#define MERCURY_LIGHTHOUSE_ANIMATE_ACTOR_AND_WAIT
Referenced by scMercuryLighthouseMiaJoinsAfterRescue().
Definition at lines 128 and 130 of file mercury_lighthouse.c.
MERCURY_LIGHTHOUSE_OFFSET_FIXED
#define MERCURY_LIGHTHOUSE_OFFSET_FIXED(value) ((value) * toFIXED(1))
#define MERCURY_LIGHTHOUSE_OFFSET_FIXED(value) toFIXED(value)
Referenced by scMercuryLighthouseStartNorthJet().
Definition at lines 397 and 399 of file mercury_lighthouse.c.
UNMASKED_FIRST_ROW
#define UNMASKED_FIRST_ROW 13
The rows of MercuryLighthouseMiddle's gate room where the ground mask lets go
of the leader walking on the ground layer.
Referenced by scMercuryLighthouseUnmaskLeaderOnTerrace().
Definition at line 417 of file mercury_lighthouse.c.
UNMASKED_LAST_ROW
#define UNMASKED_LAST_ROW 18
Referenced by scMercuryLighthouseUnmaskLeaderOnTerrace().
Definition at line 418 of file mercury_lighthouse.c.
FIRST_PIPE_JOINED_ROW
#define FIRST_PIPE_JOINED_ROW 8
Where each channel pipe joins its channel: the first two along their rows, the third along its column.
Referenced by scMercuryLighthousePushChannelPipes().
Definition at line 644 of file mercury_lighthouse.c.
SECOND_PIPE_JOINED_ROW
#define SECOND_PIPE_JOINED_ROW 12
Referenced by scMercuryLighthousePushChannelPipes().
Definition at line 645 of file mercury_lighthouse.c.
THIRD_PIPE_JOINED_COLUMN
#define THIRD_PIPE_JOINED_COLUMN 40
Referenced by scMercuryLighthousePushChannelPipes().
Definition at line 646 of file mercury_lighthouse.c.
SPOUT_PIPE_JOINED_COLUMN
#define SPOUT_PIPE_JOINED_COLUMN 11
The spout pipe joins the pipes above and below its pool at this column, and the spouts run; anywhere else they stop.
Referenced by scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at line 1071 of file mercury_lighthouse.c.
NORTH_JET_PIPE_RUNNING_ROW
#define NORTH_JET_PIPE_RUNNING_ROW 40
The pipe in the room with the Nut chest joins the pipes either side of its pool at the first row, and the jet runs; at the second it stops.
Referenced by scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at line 1074 of file mercury_lighthouse.c.
NORTH_JET_PIPE_STOPPED_ROW
#define NORTH_JET_PIPE_STOPPED_ROW 42
Referenced by scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at line 1075 of file mercury_lighthouse.c.
SWITCH_PIPE_WESTWARD_JET_COLUMN
#define SWITCH_PIPE_WESTWARD_JET_COLUMN 47
Where the switch pipe stops along its pool, in metatiles: at the first column
the water runs to JET_WESTWARD, at the second to JET_EASTWARD, at the third
no jet runs, and anywhere else, as at the last, where it starts, the water
falls as JET_SOUTHWARD.
Referenced by scMercuryLighthousePushJetRoomPipes().
Definition at line 1267 of file mercury_lighthouse.c.
SWITCH_PIPE_EASTWARD_JET_COLUMN
#define SWITCH_PIPE_EASTWARD_JET_COLUMN 48
Referenced by scMercuryLighthousePushJetRoomPipes().
Definition at line 1268 of file mercury_lighthouse.c.
SWITCH_PIPE_NO_JET_COLUMN
#define SWITCH_PIPE_NO_JET_COLUMN 53
Referenced by scMercuryLighthousePushJetRoomPipes().
Definition at line 1269 of file mercury_lighthouse.c.
SWITCH_PIPE_SOUTHWARD_JET_COLUMN
#define SWITCH_PIPE_SOUTHWARD_JET_COLUMN 54
Referenced by scMercuryLighthousePushJetRoomPipes().
Definition at line 1270 of file mercury_lighthouse.c.
WEST_EAST_PIPE_PUSHED_ROW
#define WEST_EAST_PIPE_PUSHED_ROW 38
The row of the pipe lying west to east once it has been pushed south into the
pool (FLAG_WEST_EAST_PIPE_PUSHED).
Referenced by scMercuryLighthousePushJetRoomPipes().
Definition at line 1273 of file mercury_lighthouse.c.
SLIDING_STATUE_UNDER_JET_ROW
#define SLIDING_STATUE_UNDER_JET_ROW 44
The blue statue's first row, along which JET_WESTWARD pushes it under the
pipe end of JET_SOUTHWARD.
Referenced by scInit() and scMercuryLighthouseStartStatueSlide().
Definition at line 1443 of file mercury_lighthouse.c.
WATERFALL_BURST_SPARKS
#define WATERFALL_BURST_SPARKS 16
The sparks of each of the two bursts over the waterfall, and the spray thrown up from each row of it as it parts.
Referenced by scMercuryLighthousePlyOpensWaterfallPassage().
Definition at line 2186 of file mercury_lighthouse.c.
WATERFALL_ROW_SPRAY
#define WATERFALL_ROW_SPRAY 32
Referenced by scMercuryLighthousePlyOpensWaterfallPassage().
Definition at line 2187 of file mercury_lighthouse.c.
BURST_SPARKLES
#define BURST_SPARKLES 6
The sparkles of a burst, one every four ticks.
Referenced by scMercuryLighthouseSparkleBurst().
Definition at line 2710 of file mercury_lighthouse.c.
Enumerations in detail
anonymous enum
enum { ANIM_MIA_KNEEL }
Mia kneeling with her hands together, as she senses someone inside the
lighthouse (mia.png's frame 76).
| Enumerator | Value | Description |
|---|---|---|
ANIM_MIA_KNEEL | 16 |
Definition at line 150 of file mercury_lighthouse.c.
anonymous enum
enum { METATILE_BEHAVIOR_SLEEP_BOMB_LEDGE, METATILE_BEHAVIOR_BY_CRYSTAL, METATILE_BEHAVIOR_CHANNEL_PIPE_PUSH, METATILE_BEHAVIOR_SPOUT_PIPE_PUSH, … }
The metatiles the four scenes' cues answer, named for where they are. Exit
metatiles are their exits' numbers past EXIT_METATILE_BEHAVIOR_OFFSET.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_SLEEP_BOMB_LEDGE | 32 | The great pool room: two metatiles of the floor beside the Sleep Bomb chest, (7, 15) and (9, 15), which put out Isaac's lights like the pool's plain squares but are no place to hop from. |
METATILE_BEHAVIOR_BY_CRYSTAL | 15 | The crystal room's hole behind its blue crystal, (29, 37), and the edge of the gate room's terrace above another blue crystal, (13, 19). |
METATILE_BEHAVIOR_CHANNEL_PIPE_PUSH | 25 | Beside the three pipe sections of the pipe room. |
METATILE_BEHAVIOR_SPOUT_PIPE_PUSH | 1 | Beside the spout pipe of the big pipe room. |
METATILE_BEHAVIOR_EAST_SPOUT | 2 | The three spouts of the big pipe room once they run: the one shooting east from (10, 38), the one shooting south from (22, 41) and the one shooting west at (16, 49) to (18, 49). |
METATILE_BEHAVIOR_SOUTH_SPOUT | 3 | |
METATILE_BEHAVIOR_WEST_SPOUT | 4 | |
METATILE_BEHAVIOR_NORTH_JET_PIPE_PUSH | 45 | Beside the pipe across the pool in the room with the Nut chest. |
METATILE_BEHAVIOR_NORTH_JET | 46 | The jet along that room's north wall once it runs, (43, 36) to (45, 36), copied there from (43, 55) to (45, 55). |
METATILE_BEHAVIOR_GATE_ROOM_FLOOR | 10 | Both gate rooms: the floor round the floor switch, which is also where the gate statue is pushed from. |
METATILE_BEHAVIOR_GATE_FLOOR_SWITCH | 12 | The floor switch of the gate room in the middle scene, (5, 13), and of the one in the upper scene, (10, 23). |
METATILE_BEHAVIOR_BESIDE_GATE_FLOOR_SWITCH | 13 | The three metatiles round the middle scene's floor switch, (5, 12), (4, 13) and (6, 13). |
METATILE_BEHAVIOR_SEALED_GATE | 20 | The sealed arch of either gate room, searched from in front. |
METATILE_BEHAVIOR_JET_ROOM_PIPE_PUSH | 40 | Beside the two pipes of the room of jets. |
METATILE_BEHAVIOR_ROW_STATUE_PUSH | 47 | Beside the stone statues along the wall, (39, 5) to (53, 5), (57, 5) and (59, 5). |
METATILE_BEHAVIOR_SEALED_DOOR | 10 | Outside: the lighthouse door while it is sealed, (52, 36). |
METATILE_BEHAVIOR_LIGHTHOUSE_DOOR | 44 | Outside: the open door, |
METATILE_BEHAVIOR_CAUSEWAY_FOOT | 43 | (52, 36) once Mia has opened it, and the way back to the World Map at the foot of the causeway, (51, 54) to (53, 54). |
METATILE_BEHAVIOR_HEALING_FOUNTAIN | 5 | Outside: the Fountain of |
METATILE_BEHAVIOR_FOUNTAIN_SIGN | 42 | Healing, (52, 47), and its sign, (52, 50). |
Definition at line 157 of file mercury_lighthouse.c.
MERCURY_LIGHTHOUSE_LOWER_ACTOR_ID
enum MERCURY_LIGHTHOUSE_LOWER_ACTOR_ID
MercuryLighthouseLower: the statue in Mia's way, and the pipe room's pipe
sections and pipe end.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_STATUE_BLOCKING_MIA | ACTOR_FIRST_PLACED | |
ACTOR_FIRST_PIPE | Isaac pushes these pipe sections, by walking into them, across their grated pools until each joins the pipes on either side (SPRITE_PIPE_WEST_EAST for the first two, SPRITE_PIPE_NORTH_SOUTH for the third). | |
ACTOR_SECOND_PIPE | ||
ACTOR_THIRD_PIPE | ||
ACTOR_PIPE_END | The rim of the fixed pipe the third section joins. It is SPRITE_PIPE_END, one still frame, 59 pixels south of where ACTOR_THIRD_PIPE comes to rest. Pushing it does nothing, and nothing else moves it. |
Definition at line 236 of file mercury_lighthouse.c.
MERCURY_LIGHTHOUSE_MIDDLE_ACTOR_ID
enum MERCURY_LIGHTHOUSE_MIDDLE_ACTOR_ID
MercuryLighthouseMiddle: the spout pipe of the big pipe room, the pipe in the
room with the Nut chest, the statue for the gate's floor switch and Sleet, a
Mercury Djinni.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SPOUT_PIPE | ACTOR_FIRST_PLACED | |
ACTOR_SPOUT_PIPE_END | It stands 59 pixels south of where ACTOR_SPOUT_PIPE rests once it is joined. Nothing moves it. | |
ACTOR_NORTH_JET_PIPE | ||
ACTOR_GATE_STATUE | ||
ACTOR_SLEET |
Definition at line 255 of file mercury_lighthouse.c.
MERCURY_LIGHTHOUSE_UPPER_ACTOR_ID
enum MERCURY_LIGHTHOUSE_UPPER_ACTOR_ID
MercuryLighthouseUpper: the blue statue of the room of jets and where it
lands below, that room's two pipes and pipe ends, the five stone statues
along the wall and the stone statue of the room of vines.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FALLEN_STATUE | ACTOR_FIRST_PLACED | The statue of ACTOR_SLIDING_STATUE once it has fallen to the gate room below. |
ACTOR_SLIDING_STATUE | At rest beside the jet that falls from the pipe end north of it. Each jet that hits it pushes it a step, and the last slides it east over the floor to the square hole at (840, 744), whose ground lies below the floor's, and it falls through. | |
ACTOR_WEST_EAST_PIPE | The pipe section lying west to east, which only stands in the way. | |
ACTOR_JET_SWITCH_PIPE | The pipe section lying north to south that turns the water from one jet to another. | |
ACTOR_FIRST_JET_ROOM_PIPE_END | Three in a row south of the pool the switch pipe slides along. Nothing moves them. | |
ACTOR_FIRST_ROW_STATUE | ACTOR_FIRST_JET_ROOM_PIPE_END + 3 | Five in a row along the north wall. |
ACTOR_LAST_ROW_STATUE | ACTOR_FIRST_ROW_STATUE + 4 | |
ACTOR_GAP_STATUE |
Definition at line 269 of file mercury_lighthouse.c.
MERCURY_LIGHTHOUSE_EXTERIOR_ACTOR_ID
enum MERCURY_LIGHTHOUSE_EXTERIOR_ACTOR_ID
MercuryLighthouseExterior: Garet, Ivan and Mia in their own party slots, the
statues by the way in, the statue at the door, the Ply target, the statue by
the waterfall, the statue on the lift and the people at the fountain.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WEST_APPROACH_STATUE | ACTOR_FIRST_PLACED | A pair of statues either side of the way in from the World Map (MERCURY_LIGHTHOUSE_EXTERIOR_FROM_WORLD_MAP). The east one is drawn mirrored. |
ACTOR_EAST_APPROACH_STATUE | ||
ACTOR_DOOR_STATUE | ||
ACTOR_PLY_TARGET | ||
ACTOR_WATERFALL_STATUE | ||
ACTOR_LIFT_STATUE | ||
ACTOR_FIRST_VISITOR | The first of four people at the Fountain of Healing once Saturos is beaten. In order they are a young man, a woman with fair hair, an old man with a cane and an old woman. |
Definition at line 302 of file mercury_lighthouse.c.
anonymous enum
enum { FLAG_SPOUTS_RUNNING, FLAG_NORTH_JET_RUNNING, FLAG_NORTH_JET_SHOWN, FLAG_PIPE_1_JOINED, … }
Puzzle states kept until the party leaves the lighthouse.
| Enumerator | Value | Description |
|---|---|---|
FLAG_SPOUTS_RUNNING | FLAG_AREA_TEMP(0x02) | The big pipe room's spout pipe is joined and its spouts run. |
FLAG_NORTH_JET_RUNNING | FLAG_AREA_TEMP(0x06) | The pipe across the pool in the room with the Nut chest is joined, and the jet along the room's north wall runs. |
FLAG_NORTH_JET_SHOWN | FLAG_AREA_TEMP(0x07) | The camera has turned to show the jet start, which it does only the first time. |
FLAG_PIPE_1_JOINED | FLAG_AREA_TEMP(0x10) | The pipe room's first pipe section has been pushed into place, joining the water pipes. With all three joined the water runs on below. |
FLAG_PIPE_2_JOINED | FLAG_AREA_TEMP(0x11) | |
FLAG_PIPE_3_JOINED | FLAG_AREA_TEMP(0x12) | |
FLAG_UNUSED_PIPE_4_JOINED | FLAG_AREA_TEMP(0x13) | Unused: cleared with |
FLAG_WEST_EAST_PIPE_PUSHED | FLAG_AREA_TEMP(0x18) | the three, but nothing sets or tests it. |
FLAG_SWITCH_PIPE_STARTS_WESTWARD_JET | FLAG_AREA_TEMP(0x19) | Where the switch pipe rests in the room of jets, and so which jet runs |
FLAG_SWITCH_PIPE_STARTS_EASTWARD_JET | FLAG_AREA_TEMP(0x1a) | (scMercuryLighthousePushJetRoomPipes). At column 47 it is JET_WESTWARD, along the sliding statue's row. At column 48 it is JET_EASTWARD, which slides the statue into the hole. |
FLAG_SWITCH_PIPE_STOPS_JETS | FLAG_AREA_TEMP(0x1b) | At column 53 no jet runs. With none of the three set JET_SOUTHWARD runs. |
FLAG_FIRST_ROW_STATUE | FLAG_AREA_TEMP(0x30) | Two flags per stone statue of the row along the north wall, one for each column it can be pushed to, then the last statue's. |
FLAG_LAST_ROW_STATUE_WEST | FLAG_AREA_TEMP(0x38) | |
FLAG_LAST_ROW_STATUE_EAST | FLAG_AREA_TEMP(0x39) | |
FLAG_PASSAGE_STATUE_MOVED | FLAG_AREA_TEMP(0x48) | The stone statue of the room of vines has been moved west off the doorway out to the paths, for good. |
Definition at line 320 of file mercury_lighthouse.c.
anonymous enum
enum { FLAG_HERMES_WATER_TAKEN, FLAG_LEADER_ON_FLOOR_SWITCH }
Scene flags, kept while the party stays in the scene.
| Enumerator | Value | Description |
|---|---|---|
FLAG_HERMES_WATER_TAKEN | FLAG_SCENE_TEMP(0x00) | The Empty Bottle has |
FLAG_LEADER_ON_FLOOR_SWITCH | FLAG_SCENE_TEMP(0x56) | been filled at the Fountain of Healing this visit. |
Definition at line 377 of file mercury_lighthouse.c.
anonymous enum
enum { FLAG_CHEST_SLEEP_BOMB, FLAG_CHEST_PSY_CRYSTAL, FLAG_CHEST_NUT }
The chests: a Sleep Bomb, a Psy Crystal and a Nut.
| Enumerator | Value | Description |
|---|---|---|
FLAG_CHEST_SLEEP_BOMB | 0xf64 | |
FLAG_CHEST_PSY_CRYSTAL | 0xf66 | |
FLAG_CHEST_NUT | 0xf67 |
Definition at line 387 of file mercury_lighthouse.c.
anonymous enum
enum { JET_SOUTHWARD, JET_EASTWARD, JET_WESTWARD }
The three jets of the room of jets, named for the way each pushes the blue
statue: JET_SOUTHWARD falls from the pipe end north of the statue's first
place, JET_EASTWARD shoots along the row of the square hole from the pipe end
at its west, and JET_WESTWARD shoots along the statue's first row from the
pipe end at its east.
| Enumerator | Value | Description |
|---|---|---|
JET_SOUTHWARD | 0 | |
JET_EASTWARD | 1 | |
JET_WESTWARD | 2 |
Definition at line 1256 of file mercury_lighthouse.c.
Functions in detail
scMercuryLighthouseOpenGateWithMovedStatue
static void scMercuryLighthouseOpenGateWithMovedStatue(void)
Once the gate room's blue statue stands on the floor switch at the west end of the terrace (metatile (5, 13)), whether moved by Move or pushed, the switch sinks under it and the sealed arch at the top of the ladder on the dais opens for good.
The statue is lowered 2 pixels onto the sunken switch, and the arch's metatile (9, 10) takes the open doorway's behaviour from (9, 5).
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridPlayMapEdit(), fdScriptEnd(), fdScriptStart(), gmFlagSet(), MercuryLighthouseGateMetatiles, Sint32 and sySoundPlay().
Referenced by MercuryLighthouseMiddleCues and scMercuryLighthousePushGateSwitchStatue().
Definition at lines 134 and 796 of file mercury_lighthouse.c.
scMercuryLighthouseOpenUpperGateWithMovedStatue
static void scMercuryLighthouseOpenUpperGateWithMovedStatue(void)
Once the fallen blue statue stands on the floor switch in the middle of the upper gate room (metatile (10, 23)), whether moved by Move or pushed, the switch sinks under it and the sealed middle arch of the three in the north wall opens for good.
The statue is lowered 2 pixels onto the sunken switch, and the arch's metatile (10, 19) takes the open doorway's behaviour from (10, 16).
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridPlayMapEdit(), fdScriptEnd(), fdScriptStart(), gmFlagSet(), MercuryLighthouseUpperGateMetatiles, Sint32 and sySoundPlay().
Referenced by MercuryLighthouseUpperCues and scMercuryLighthousePushUpperGateSwitchStatue().
Definition at lines 135 and 1181 of file mercury_lighthouse.c.
scMercuryLighthouseRecordRowStatues
static void scMercuryLighthouseRecordRowStatues(void)
Move on one of the stone statues along the north wall of the room of statues, or a push, moves it a step along the wall. Where each stands is kept until the party leaves the lighthouse, so the statues stay where they were pushed when Isaac comes back, and the fifth, pushed off its doorway, lets him jump the gap in front of its alcove.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), gmFlagClear(), gmFlagSet() and Sint32.
Referenced by MercuryLighthouseUpperCues and scMercuryLighthousePushRowStatue().
Definition at lines 136 and 1675 of file mercury_lighthouse.c.
scMercuryLighthouseStartSpoutsWithSparkles
static void scMercuryLighthouseStartSpoutsWithSparkles(void)
Starts the tall spout in the west of the big pipe room: the water rises from its pointed pipe end a metatile at a time, two metatiles, sparkles rising along its edge.
References fdMapGridCopyMetatilesTo() and fdScriptWait().
Referenced by scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at lines 137 and 2528 of file mercury_lighthouse.c.
scMercuryLighthouseStopSpoutsWithSparkles
static void scMercuryLighthouseStopSpoutsWithSparkles(void)
Stops the spouts as the spout pipe moves away (the push's callback): the tall spout and the one shooting east draw back a metatile at a time, each in a scatter of sparkles.
References fdMapGridCopyMetatilesTo() and fdScriptWait().
Referenced by scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at lines 138 and 2568 of file mercury_lighthouse.c.
scMercuryLighthouseSparkleAroundLeader
static void scMercuryLighthouseSparkleAroundLeader(void)
Event: a sparkle from the leader every fourth tick, as a spout carries him back.
References fdActorGet(), Sint32 and TickCount.
Referenced by scMercuryLighthousePushLeaderOutOfSpout().
Definition at lines 139 and 2620 of file mercury_lighthouse.c.
scMercuryLighthouseSparkleAt
static void scMercuryLighthouseSparkleAt(Sint32 x, Sint32 y, Sint32 z)
A sparkle at a point every fourth tick, from an event.
References Sint32 and TickCount.
Referenced by scMercuryLighthouseSparkleAboveStatue(), scMercuryLighthouseSparkleOnNorthJet() and scMercuryLighthouseStartNorthJet().
Definition at lines 140 and 2653 of file mercury_lighthouse.c.
scMercuryLighthouseSparkleNear
static void scMercuryLighthouseSparkleNear(Sint32 x, Sint32 y, Sint32 z)
One still sparkle near a point, up to 8 pixels either side and 4 north or south.
References Sint32.
Referenced by scMercuryLighthouseRaiseActorWithSparks().
Definition at lines 141 and 2685 of file mercury_lighthouse.c.
scMercuryLighthouseSparkleBurst
static void scMercuryLighthouseSparkleBurst(Sint32 x, Sint32 y, Sint32 z, Sint32 angle)
BURST_SPARKLES sparkles, spraying the way angle points and slowing one by
one, as the water runs through a joined pipe.
References Sint32, sySoundPlay(), sySynch() and syVectorAddPolarOffset().
Referenced by scMercuryLighthousePushChannelPipes().
Definition at lines 142 and 2714 of file mercury_lighthouse.c.
scMercuryLighthouseRideLift
static void scMercuryLighthouseRideLift(void)
Coming down from the Lighthouse Aerie
(MERCURY_LIGHTHOUSE_EXTERIOR_FROM_MERCURY_LIGHTHOUSE_AERIE), Isaac rides the
lift down beside its blue statue, slowing as it nears the bottom, hops off,
and the lift goes back up without him.
The lift is drawn on the overhead layer, scrolled with both riders over 137 pixels.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetSpriteFlags(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdBlendScriptSuspend(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), sySoundPlay(), sySynch() and TickCount.
Referenced by scInit().
Definition at lines 144 and 3369 of file mercury_lighthouse.c.
scMercuryLighthouseMiaCastsPlyOnEntrance
static void scMercuryLighthouseMiaCastsPlyOnEntrance(void)
Mia casts Ply on the Ply target, moved onto the door.
References fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdPsynergyStartCast() and fdPsynergyStopCasterUpdate().
Referenced by scMercuryLighthouseMiaOpensEntranceWithPly().
Definition at lines 145 and 3466 of file mercury_lighthouse.c.
scMercuryLighthouseStartDjinnBattle
static void scMercuryLighthouseStartDjinnBattle(void)
Talking to Sleet, the Mercury Djinni in the small room that the third waterfall from the west of the first room of six waterfalls leads to, starts a battle with it.
References fdRequestDjinnBattle().
Referenced by MercuryLighthouseMiddleCues.
Definition at line 409 of file mercury_lighthouse.c.
scMercuryLighthouseUnmaskLeaderOnTerrace
static void scMercuryLighthouseUnmaskLeaderOnTerrace(void)
Event: the ground mask stops following the leader while he crosses the rows
from UNMASKED_FIRST_ROW to UNMASKED_LAST_ROW on MAPGRID_LAYER_GROUND.
References fdActorGet().
Referenced by scInit().
Definition at line 422 of file mercury_lighthouse.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References MainRoutineStateWork, MercuryLighthouseExteriorEntrances, MercuryLighthouseLowerEntrances, MercuryLighthouseMiddleEntrances and MercuryLighthouseUpperEntrances.
Definition at line 439 of file mercury_lighthouse.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 458 of file mercury_lighthouse.c.
scGetExits
const Uint32 *scGetExits(void)
The four scenes share one exit table.
References MercuryLighthouseExits.
Definition at line 464 of file mercury_lighthouse.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
Each scene's people, statues and pipes; the empty table is for no scene.
References MainRoutineStateWork, MercuryLighthouseExteriorActorPlacements, MercuryLighthouseLowerActorPlacements, MercuryLighthouseMiddleActorPlacements, MercuryLighthouseNoActorPlacements and MercuryLighthouseUpperActorPlacements.
Definition at line 470 of file mercury_lighthouse.c.
scMercuryLighthouseRippleWhileInPool
static void scMercuryLighthouseRippleWhileInPool(void)
Ripples spread round Isaac while he stands out on the open water of the great pool room, held up by one of his lights.
The open water's metatiles are
METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_WATER only once Ply has woken the
goddess's pool below (FLAG_MERCURY_LIGHTHOUSE_HEART_HONORED), when scInit
copies the pool's metatiles in.
References scMercuryLighthouseRippleAroundLeader().
Referenced by MercuryLighthouseLowerCues.
Definition at line 500 of file mercury_lighthouse.c.
scMercuryLighthouseLoseLightsOnLower
static void scMercuryLighthouseLoseLightsOnLower(void)
Stepping onto a plain stepping square or the floor at the edge of the great pool room puts out the golden rings of light over Isaac's head, which swell and fade away.
The squares and the floor's edge are
METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_STEP. Two metatiles beside the
Sleep Bomb chest, METATILE_BEHAVIOR_SLEEP_BOMB_LEDGE, do the same but are no
place to hop from.
References scMercuryLighthouseLoseLights().
Referenced by MercuryLighthouseLowerCues.
Definition at line 513 of file mercury_lighthouse.c.
scMercuryLighthouseHopAcrossPoolOnLower
static void scMercuryLighthouseHopAcrossPoolOnLower(void)
In the great pool room, pushing against the water from a stepping square, the floor's edge or the open water, Isaac hops two metatiles the way he faces, to the next square or out onto the water.
A hop onto open water spends one of the golden rings over his head, which
flies ahead to hold him up where he lands; with none left he does not hop out
onto it (shared/mercury_lighthouse_column.c).
References scMercuryLighthouseHopAcrossPool().
Referenced by MercuryLighthouseLowerCues.
Definition at line 525 of file mercury_lighthouse.c.
scMercuryLighthouseChargeLightsOnLower
static void scMercuryLighthouseChargeLightsOnLower(void)
Stepping onto one of the great pool room's stepping squares marked with a cross puts golden rings of light over Isaac's head, one more every half second up to three. Each lets him hop once onto the open water.
The cross-marked squares are METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_HEART
once Ply has woken the goddess's pool below.
References scMercuryLighthouseChargeLights().
Referenced by MercuryLighthouseLowerCues.
Definition at line 536 of file mercury_lighthouse.c.
scMercuryLighthouseInspectSealedDoor
static void scMercuryLighthouseInspectSealedDoor(void)
Searching the lighthouse door before Mia has opened it, metatile (52, 36), shows "Strange forces are at work... It seems impossible to proceed."
The door glows until then (scMercuryLighthouseCycleEntrancePalette). Once Mia
opens it, the metatile becomes the door's exit,
METATILE_BEHAVIOR_LIGHTHOUSE_DOOR.
References fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 547 of file mercury_lighthouse.c.
scGetCues
const CUE *scGetCues(void)
Each scene's cues, the exterior's last.
References MainRoutineStateWork, MercuryLighthouseExteriorCues, MercuryLighthouseLowerCues, MercuryLighthouseMiddleCues and MercuryLighthouseUpperCues.
Definition at line 555 of file mercury_lighthouse.c.
scMercuryLighthouseWaterfallToSleetsRoom
static void scMercuryLighthouseWaterfallToSleetsRoom(void)
Walking north into the third of the six waterfalls from the west, in the first room of waterfalls (metatile (16, 7)), Isaac vanishes in a trail of sparkles and comes out in Sleet's small room.
Its metatile's behaviour is its exit's number,
MERCURY_LIGHTHOUSE_UPPER_MERCURY_LIGHTHOUSE_MIDDLE_NORTHWEST, past
EXIT_METATILE_BEHAVIOR_OFFSET.
References scMercuryLighthouseWalkIntoWaterfall().
Referenced by MercuryLighthouseUpperCues.
Definition at line 583 of file mercury_lighthouse.c.
scMercuryLighthouseWaterfallToGapRoom
static void scMercuryLighthouseWaterfallToGapRoom(void)
Walking north into the easternmost of the six waterfalls of the second room
of waterfalls (metatile (28, 37)), Isaac vanishes in a trail of sparkles and
comes out at the foot of the room of vines, through
MERCURY_LIGHTHOUSE_UPPER_WATERFALLS_GAP.
References scMercuryLighthouseWalkIntoWaterfall().
Referenced by MercuryLighthouseUpperCues.
Definition at line 593 of file mercury_lighthouse.c.
scMercuryLighthouseWaterfallToUpperPath
static void scMercuryLighthouseWaterfallToUpperPath(void)
Walking north into the waterfall under the rainbow (metatile (49, 13)), Isaac
vanishes in a trail of sparkles and comes out again on the path that led
there, through MERCURY_LIGHTHOUSE_EXTERIOR_WATERFALL_TO_UPPER_PATH.
References scMercuryLighthouseWalkIntoWaterfall().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 602 of file mercury_lighthouse.c.
scMercuryLighthouseExitWhenChannelsOpen
static void scMercuryLighthouseExitWhenChannelsOpen(void)
Once all three pipe sections of the pipe room are joined, the floor rumbles
and shakes and the screen fades out. It shows the ground floor's room that
the channels feed for two seconds
(MERCURY_LIGHTHOUSE_LOWER_TO_MERCURY_LIGHTHOUSE_ENTRANCE_PIPE), with Isaac
hidden, and then the party is back in the pipe room.
From then on FLAG_MERCURY_LIGHTHOUSE_CHANNELS_OPEN chooses the running
channels' entrances in mercury_lighthouse_entrance.c.
References fdMapGridWaitForShakeToSettle(), fdScriptFinishScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagGet(), gmFlagSet(), syImportScriptSetExitRequest() and sySoundPlay().
Referenced by scMercuryLighthousePushChannelPipes().
Definition at line 616 of file mercury_lighthouse.c.
scMercuryLighthousePushChannelPipes
static void scMercuryLighthousePushChannelPipes(void)
Walking into one of the pipe room's three pipe sections, Isaac pushes it
across its grated pool. Where it joins the pipes on either side, water bursts
from the next pipe end in a spray of sparkles; pushed away again, it breaks
the channel. With all three joined the water runs on below
(scMercuryLighthouseExitWhenChannelsOpen).
The metatiles copied redraw the water in the joined pipes. The second pipe's spray shows only once the first is joined, as the water reaches it through the first.
References fdMapGridCopyMetatilesTo(), fdScriptClearFlag(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), fdScriptWait(), gmFlagClear(), gmFlagGet(), gmFlagSet(), scMercuryLighthouseExitWhenChannelsOpen(), scMercuryLighthouseSparkleBurst(), scPushedActorFindClearPos(), scPushedActorRoll() and Sint32.
Referenced by MercuryLighthouseLowerCues.
Definition at line 657 of file mercury_lighthouse.c.
scMercuryLighthousePushLeaderOutOfSpout
static void scMercuryLighthousePushLeaderOutOfSpout(void)
Walking into one of the spouts of water that shoot from the pipe ends of the big pipe room while its spout pipe is joined, Isaac is carried back out to the spout's tip, standing, in a trail of sparkles: the spouts bar the way. The jet along the north wall of the room with the Nut chest does the same while it runs.
Each spout's metatile behaviour picks the tip he is carried to. Every edition
but the Japanese carries him a step further back from the jet in the Nut
chest's room and pauses half a second (MERCURY_LIGHTHOUSE_CARRY_LEADER_BACK
and NUT_ROOM_JET_CARRIES_FURTHER).
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), scMercuryLighthouseSparkleAroundLeader(), state, syCloseEvent(), sySetTickEvent() and sySoundPlay().
Referenced by MercuryLighthouseMiddleCues.
Definition at line 740 of file mercury_lighthouse.c.
scMercuryLighthousePushGateSwitchStatue
static void scMercuryLighthousePushGateSwitchStatue(void)
In the gate room, walking into the blue statue on the terrace pushes it a
step while the sealed arch on the dais is shut, until it rests on the floor
switch at the terrace's west end
(scMercuryLighthouseOpenGateWithMovedStatue).
References fdScriptEnd(), fdScriptStart(), scMercuryLighthouseOpenGateWithMovedStatue() and scPushedActorAdvancePair().
Referenced by MercuryLighthouseMiddleCues.
Definition at line 781 of file mercury_lighthouse.c.
scMercuryLighthousePressGateFloorSwitch
static void scMercuryLighthousePressGateFloorSwitch(void)
Standing on the gate room's floor switch, at the west end of the terrace (metatile (5, 13)), sinks it under Isaac and opens the sealed arch at the top of the ladder on the dais, for as long as he stays on it.
The switch answers only once Isaac stands near its middle, x 84 to 91 and z 212 to 219.
References fdActorGet(), fdMapGridCopyMetatilesTo(), fdMapGridPlayMapEdit(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagSet(), MercuryLighthouseGateMetatiles, Sint32 and sySoundPlay().
Referenced by MercuryLighthouseMiddleCues.
Definition at line 824 of file mercury_lighthouse.c.
scMercuryLighthouseReleaseGateFloorSwitch
static void scMercuryLighthouseReleaseGateFloorSwitch(void)
Stepping off the gate room's floor switch lets it rise again, and the arch at the top of the ladder seals itself.
References fdActorGet(), fdMapGridAnimateMetatiles(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagClear(), MercuryLighthouseGateCloseMetatiles and sySoundPlay().
Referenced by MercuryLighthouseMiddleCues.
Definition at line 851 of file mercury_lighthouse.c.
scMercuryLighthouseDrawNorthJetTiles
static void scMercuryLighthouseDrawNorthJetTiles(Sint32 delayTicks, Sint32 firstStep, Sint32 endStep)
Draws the jet along the north wall of the room with the Nut chest a step at a
time, the floor shaking at each step when delayTicks is not 0, and copies in
the doorway that opens in the wall above it,
MERCURY_LIGHTHOUSE_MIDDLE_TO_MERCURY_LIGHTHOUSE_UPPER_NORTH_NORTHEAST, with
its metatiles.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptWait(), Sint32 and sySoundPlay().
Referenced by scMercuryLighthouseStartNorthJet().
Definition at line 873 of file mercury_lighthouse.c.
scMercuryLighthouseRestoreNorthJetTiles
static void scMercuryLighthouseRestoreNorthJetTiles(Sint32 delayTicks)
Takes the jet and its doorway away again a step at a time, the floor shaking, as the pipe is pushed back.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridCopyMetatileTilesRect(), fdMapGridWaitForShakeToSettle(), fdScriptWait(), Sint32, sySoundPlay() and width.
Referenced by scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at line 904 of file mercury_lighthouse.c.
scMercuryLighthouseSparkleOnNorthJet
static void scMercuryLighthouseSparkleOnNorthJet(void)
Event: sparkles on the jet while it runs.
References scMercuryLighthouseSparkleAt().
Referenced by scMercuryLighthouseStartNorthJet() and scMercuryLighthouseStopNorthJet().
Definition at line 952 of file mercury_lighthouse.c.
scMercuryLighthouseStartNorthJet
static void scMercuryLighthouseStartNorthJet(Sint32 delayTicks)
Starts the jet along the north wall of the room with the Nut chest, its leading edge throwing up spray and sparkles, and keeps it sparkling.
References fdMapGridCopyMetatilesTo(), fdMapGridWaitForShakeToSettle(), fdScriptWait(), scMercuryLighthouseDrawNorthJetTiles(), scMercuryLighthouseSparkleAt(), scMercuryLighthouseSparkleOnNorthJet(), Sint32, sySetTickEvent() and sySoundPlay().
Referenced by scInit() and scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at line 959 of file mercury_lighthouse.c.
scMercuryLighthouseStopNorthJet
static void scMercuryLighthouseStopNorthJet(void)
As the pipe moves away (the push's callback): spray drifts off the jet and its sparkles stop.
References fdMapGridCopyMetatilesTo(), fdScriptWait(), scMercuryLighthouseSparkleOnNorthJet() and syCloseEvent().
Referenced by scMercuryLighthousePushSpoutAndNorthJetPipes().
Definition at line 1030 of file mercury_lighthouse.c.
scMercuryLighthousePushSpoutAndNorthJetPipes
static void scMercuryLighthousePushSpoutAndNorthJetPipes(void)
Walking into a pipe section, Isaac pushes it across its grated pool. In the big pipe room the spout pipe, joined to the pipes above and below it, sets water spouting from four pipe ends, one of them a tall spout in the room's west; in the room with the Nut chest the pipe joined across its pool sends a jet along the north wall and opens a doorway in the wall above it, the camera turning to show it the first time. Pushed away again, each stops its water.
Three of the spouts bar the way (scMercuryLighthousePushLeaderOutOfSpout),
and so does the jet.
References fdCameraWaitForArrival(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagClear(), gmFlagSet(), scMercuryLighthouseRestoreNorthJetTiles(), scMercuryLighthouseStartNorthJet(), scMercuryLighthouseStartSpoutsWithSparkles(), scMercuryLighthouseStopNorthJet(), scMercuryLighthouseStopSpoutsWithSparkles(), scPushedActorFindClearPos(), scPushedActorRoll(), Sint32 and sySoundPlay().
Referenced by MercuryLighthouseMiddleCues.
Definition at line 1086 of file mercury_lighthouse.c.
scMercuryLighthousePushUpperGateSwitchStatue
static void scMercuryLighthousePushUpperGateSwitchStatue(void)
In the upper gate room, walking into the blue statue that fell from the room
of jets pushes it a step while the middle arch is shut, until it rests on the
floor switch in the middle of the room
(scMercuryLighthouseOpenUpperGateWithMovedStatue).
References fdScriptEnd(), fdScriptStart(), scMercuryLighthouseOpenUpperGateWithMovedStatue() and scPushedActorAdvancePair().
Referenced by MercuryLighthouseUpperCues.
Definition at line 1166 of file mercury_lighthouse.c.
scMercuryLighthousePressUpperGateFloorSwitch
static void scMercuryLighthousePressUpperGateFloorSwitch(void)
Standing on the floor switch in the middle of the upper gate room, metatile (10, 23), sinks it under Isaac and opens the sealed middle arch of the three in the north wall, for as long as he stays on it.
References fdActorGet(), fdMapGridCopyMetatilesTo(), fdMapGridPlayMapEdit(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagSet(), MercuryLighthouseUpperGateMetatiles, Sint32 and sySoundPlay().
Referenced by MercuryLighthouseUpperCues.
Definition at line 1204 of file mercury_lighthouse.c.
scMercuryLighthouseReleaseUpperGateFloorSwitch
static void scMercuryLighthouseReleaseUpperGateFloorSwitch(void)
Stepping off the upper gate room's floor switch lets it rise again, and the middle arch seals itself.
References fdActorGet(), fdMapGridAnimateMetatiles(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagClear(), MercuryLighthouseUpperGateCloseMetatiles and sySoundPlay().
Referenced by MercuryLighthouseUpperCues.
Definition at line 1233 of file mercury_lighthouse.c.
scMercuryLighthouseRandomSpraySpeed
static inline Sint32 scMercuryLighthouseRandomSpraySpeed(void)
A random speed for the spray a jet throws up.
References Sint32.
Referenced by scMercuryLighthouseStartJet().
Definition at line 1276 of file mercury_lighthouse.c.
scMercuryLighthouseStartJet
static void scMercuryLighthouseStartJet(Sint32 jet)
Starts one jet of the room of jets: the water reaches out from its pipe end a metatile at a time, throwing up spray.
References fdMapGridCopyMetatilesTo(), fdScriptWait(), scMercuryLighthouseRandomSpraySpeed(), Sint32 and sySoundPlay().
Referenced by scInit() and scMercuryLighthousePushJetRoomPipes().
Definition at line 1283 of file mercury_lighthouse.c.
scMercuryLighthouseStopJet
static void scMercuryLighthouseStopJet(Sint32 jet)
Stops a jet: the water draws back into its pipe end a metatile at a time, spray drifting from it. The first metatile of all three jets is put back as it starts.
References fdMapGridCopyMetatilesTo(), fdScriptWait(), Sint32 and sySoundPlay().
Referenced by scInit() and scMercuryLighthousePushJetRoomPipes().
Definition at line 1375 of file mercury_lighthouse.c.
scMercuryLighthouseStartStatueSlide
static Bool scMercuryLighthouseStartStatueSlide(void)
The camera turns to the blue statue of the room of jets, and the jet just
started pushes it a step if the statue stands where that jet hits it:
JET_WESTWARD from its first place, then JET_SOUTHWARD from under the falling
jet's pipe end, then JET_EASTWARD from the row of the hole, into the hole.
Returns TRUE when the slide is that last one.
The flags read are the switch pipe's new place, set before this is called.
References fdActorGet(), fdActorSetScript(), fdCameraWaitForArrival(), fdScriptWait(), gmFlagGet(), MercuryLighthouseStatueSlideIntoHole, MercuryLighthouseStatueSlideSouth, MercuryLighthouseStatueSlideWest, MercuryLighthouseStatueStaysPut and Sint32.
Referenced by scMercuryLighthousePushJetRoomPipes().
Definition at line 1452 of file mercury_lighthouse.c.
scMercuryLighthouseSparkleAboveStatue
static void scMercuryLighthouseSparkleAboveStatue(void)
Sparkles rise from the sliding statue as it moves.
References fdActorGet() and scMercuryLighthouseSparkleAt().
Referenced by scInit(), scMercuryLighthouseStartStatueSparkles() and scMercuryLighthouseStopStatueSparkles().
Definition at line 1501 of file mercury_lighthouse.c.
scMercuryLighthouseStartStatueSparkles
static Sint32 scMercuryLighthouseStartStatueSparkles(ACTOR *actor)
The slide scripts start the sparkles as the statue sets off.
References scMercuryLighthouseSparkleAboveStatue(), Sint32 and sySetTickEvent().
Referenced by MercuryLighthouseStatueSlideIntoHole, MercuryLighthouseStatueSlideSouth, MercuryLighthouseStatueSlideWest and MercuryLighthouseStatueStaysPut.
Definition at line 1511 of file mercury_lighthouse.c.
scMercuryLighthouseStopStatueSparkles
static Sint32 scMercuryLighthouseStopStatueSparkles(void)
References scMercuryLighthouseSparkleAboveStatue(), Sint32 and syCloseEvent().
Referenced by MercuryLighthouseStatueSlideIntoHole, MercuryLighthouseStatueSlideSouth and scMercuryLighthousePushJetRoomPipes().
Definition at line 1524 of file mercury_lighthouse.c.
scMercuryLighthousePushJetRoomPipes
static void scMercuryLighthousePushJetRoomPipes(void)
In the room of jets, walking into a pipe section, Isaac pushes it along its
pool. The pipe lying north to south turns the water to another pipe end where
it stops: the old jet stops, the new one starts, and the camera turns to the
blue statue, which the new jet may push a step. When JET_EASTWARD slides the
statue into the square hole, it falls through, and the view cuts to the gate
room below as it lands (MERCURY_LIGHTHOUSE_UPPER_JETS_TO_GATE_STATUE_FALLS).
The pipe lying west to east only moves.
References fdActorGet(), fdActorSetDestination(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdPaletteFadeApplySource(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagSet(), scMercuryLighthouseStartJet(), scMercuryLighthouseStartStatueSlide(), scMercuryLighthouseStopJet(), scMercuryLighthouseStopStatueSparkles(), scPlaceTranslucentBlackActorFX(), scPushedActorFindClearPos(), scPushedActorRoll(), Sint32, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by MercuryLighthouseUpperCues.
Definition at line 1538 of file mercury_lighthouse.c.
scMercuryLighthousePushRowStatue
static void scMercuryLighthousePushRowStatue(void)
Walking into one of the five stone statues along the north wall of the room
of statues pushes it a step along the wall. The third from the west and the
fifth, alone in its alcove to the east, stand in front of doorways to the
room with the Nut chest, which open when they are pushed aside
(scMercuryLighthouseRecordRowStatues).
References fdScriptEnd(), fdScriptStart(), scMercuryLighthouseRecordRowStatues() and scPushedActorAdvancePair().
Referenced by MercuryLighthouseUpperCues.
Definition at line 1662 of file mercury_lighthouse.c.
scMercuryLighthouseMoveGapStatueOffDoorway
static void scMercuryLighthouseMoveGapStatueOffDoorway(void)
Move on the stone statue standing in the doorway at the head of the room of
vines: pushed one step west, to column 28, it stays there for good
(FLAG_PASSAGE_STATUE_MOVED), and the doorway, which leads up to the paths
outside, can be reached.
The doorway's foot, metatile (29, 20), is a jump square on the strip of floor
along the north wall, with a gap at (30, 20) east of it. Metatile (31, 20)
takes the same behaviour, METATILE_BEHAVIOR_JUMP_FORWARD, so that Isaac,
walking west along the strip from the room's east side, leaps the gap onto
the doorway's foot.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart() and gmFlagSet().
Referenced by MercuryLighthouseUpperCues.
Definition at line 1741 of file mercury_lighthouse.c.
scMercuryLighthouseRotatePaletteRange
static inline void scMercuryLighthouseRotatePaletteRange(Uint16 *colors, Uint32 colorCount)
Rotates the selected palette range once every eight ticks.
References TickCount.
Referenced by scMercuryLighthouseCycleEntrancePalette() and scMercuryLighthouseCycleWaterfallPalette().
Definition at line 1753 of file mercury_lighthouse.c.
scMercuryLighthouseCycleEntrancePalette
static void scMercuryLighthouseCycleEntrancePalette(void)
While the lighthouse door is sealed its light shimmers: background palette 2, colors 8 to 15, rotates every eight ticks.
References scMercuryLighthouseRotatePaletteRange().
Referenced by scInit() and scMercuryLighthouseMiaOpensEntranceWithPly().
Definition at line 1781 of file mercury_lighthouse.c.
scMercuryLighthouseMiaSensesSomeoneInside
static void scMercuryLighthouseMiaSensesSomeoneInside(void)
Talking to Mia, kneeling before the lighthouse door, or Mind Read on her, the first time: "Somebody...is here." She is sure it can only be Alex, the one other than her who can enter, and turns to the door to find the stone statue in her way: "But this statue is blocking my way..."
References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait() and gmFlagSet().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 1790 of file mercury_lighthouse.c.
scMercuryLighthouseMiaDiscussesBlockedEntrance
static void scMercuryLighthouseMiaDiscussesBlockedEntrance(void)
Talking to Mia again while the statue still blocks the door: she shakes her head. "This statue is blocking the entrance."
References fdActorSetAnimationAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart() and fdScriptWait().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 1847 of file mercury_lighthouse.c.
scMercuryLighthouseFadePaletteToWhite
static void scMercuryLighthouseFadePaletteToWhite(void)
The door's light brightens to white as it opens.
References Sint32 and sySynch().
Referenced by scMercuryLighthouseMiaOpensEntranceWithPly().
Definition at line 1859 of file mercury_lighthouse.c.
scMercuryLighthouseMiaOpensEntranceWithPly
static void scMercuryLighthouseMiaOpensEntranceWithPly(void)
Move on the stone statue in front of the lighthouse door while Mia waits there: once it has slid aside, to column 51, Mia turns and asks "Did you do that?" She saw the force that pushed it, Garet and Ivan tell her of Psynergy, and she opens the door with Ply in a flash of light, then jumps up and goes in alone.
Garet and Ivan appear beside the leader for the talk and walk back into him at the end.
References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorShowEmote(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridPlayMapEdit(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), MercuryLighthouseDoorOpenMetatiles, scMercuryLighthouseCycleEntrancePalette(), scMercuryLighthouseFadePaletteToWhite(), scMercuryLighthouseMiaCastsPlyOnEntrance(), scSetActorSpritePriority(), Sint32, syCloseEvent(), sySoundPlay() and sySynch().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 1906 of file mercury_lighthouse.c.
scMercuryLighthouseCycleWaterfallPalette
static void scMercuryLighthouseCycleWaterfallPalette(void)
The rainbow over the waterfall shimmers: background palette 6, colors 1 to 7, rotates every eight ticks.
References scMercuryLighthouseRotatePaletteRange().
Referenced by scInit() and scMercuryLighthousePlyOpensWaterfallPassage().
Definition at line 2096 of file mercury_lighthouse.c.
scMercuryLighthouseFadePaletteToBlack
static void scMercuryLighthouseFadePaletteToBlack(void)
The rainbow's colours fade to black, so it vanishes, as Ply takes effect.
References Sint32 and sySynch().
Referenced by scMercuryLighthousePlyOpensWaterfallPassage().
Definition at line 2102 of file mercury_lighthouse.c.
scMercuryLighthouseRaiseActorWithSparks
static void scMercuryLighthouseRaiseActorWithSparks(Sint32 actorId)
Raises one of the party up the reversed waterfall in a shower of sparks, faster and faster, for 96 ticks.
References fdActorGet(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), GlintTwinkleScript, scMercuryLighthouseSparkleNear(), Sint32, sySoundPlay() and sySynch().
Referenced by scMercuryLighthousePlyOpensWaterfallPassage().
Definition at line 2137 of file mercury_lighthouse.c.
scMercuryLighthousePlyOpensWaterfallPassage
static void scMercuryLighthousePlyOpensWaterfallPassage(void)
Ply on the blue statue beside the waterfall under the rainbow: the rainbow fades, sparks gather over the water, the floor rumbles and the waterfall turns to stream upward. The first time Mia steps in and rises with it, and Isaac, Garet and Ivan follow her one by one; the screen turns white and the party is shown the lighthouse's beacon from outside before landing at the Lighthouse Aerie. Once Saturos is beaten, Isaac rises alone.
The first time the exit is
MERCURY_LIGHTHOUSE_EXTERIOR_TO_WORLD_MAP_LIGHTHOUSE_LIT, whose World Map view
ends at the aerie; later it is
MERCURY_LIGHTHOUSE_EXTERIOR_TO_MERCURY_LIGHTHOUSE_AERIE.
References fdActorFaceDirection(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorTurnToFaceEachOther(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridCopyMetatilesTo(), fdMapGridWaitForShakeToSettle(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), GlintTwinkleScript, gmFlagGet(), scMercuryLighthouseCycleWaterfallPalette(), scMercuryLighthouseFadePaletteToBlack(), scMercuryLighthouseRaiseActorWithSparks(), Sint32, syCloseEvent(), syImportScriptSetExitRequest() and sySoundPlay().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 2200 of file mercury_lighthouse.c.
scMercuryLighthouseReadHermesFountainSign
static void scMercuryLighthouseReadHermesFountainSign(void)
Searching the sign in front of the Fountain of Healing, at the top of the causeway (metatile (52, 50)), shows "Fountain of Healing" and "Water of Hermes: It brings rejuvenation to all that lives."
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 2422 of file mercury_lighthouse.c.
scMercuryLighthouseInspectLockedDoor
static void scMercuryLighthouseInspectLockedDoor(void)
Searching the sealed arch of either gate room while it is shut, the one at the top of the ladder on the dais or the middle one of three: "The door is tightly locked."
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by MercuryLighthouseMiddleCues and MercuryLighthouseUpperCues.
Definition at line 2435 of file mercury_lighthouse.c.
scMercuryLighthouseInspectHealingFountain
static void scMercuryLighthouseInspectHealingFountain(void)
Searching the Fountain of Healing at the top of the causeway, metatile (52, 47), until its water has been taken this visit: "The fountain seems dry." before Saturos is beaten, "The fountain is flowing with water." after.
With an Empty Bottle in the party it then asks for the field menu
(FieldStateWork->fieldMenu), so the bottle can be used there.
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), gmFlagGet(), gmPartyInventoryFindMember() and mnFieldMessageShow().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 2449 of file mercury_lighthouse.c.
scMercuryLighthouseFillHermesWaterBottle
static void scMercuryLighthouseFillHermesWaterBottle(void)
Using the Empty Bottle at the Fountain of Healing once Saturos is beaten fills it: the bottle becomes Hermes' Water, once a visit.
References fdItemDisplayShowItem(), fdScriptEnd(), fdScriptStart(), gmFlagSet(), gmPartyInventoryFindMember(), mnFieldMessageShow(), mnMessageArgumentPush(), scInventoryReplaceItem() and sySoundPlay().
Referenced by MercuryLighthouseExteriorCues.
Definition at line 2468 of file mercury_lighthouse.c.
scMercuryLighthouseJumpDownPastCrystal
static void scMercuryLighthouseJumpDownPastCrystal(void)
Walking south into the hole behind the blue crystal of the crystal room
(metatile (29, 37)), Isaac drops through the floor and lands in the goddess's
pool on the ground floor
(MERCURY_LIGHTHOUSE_LOWER_TO_MERCURY_LIGHTHOUSE_ENTRANCE_HOLE).
In the gate room the same metatile, at the terrace's edge above another blue crystal (metatile (13, 19)), only jumps him down to the floor below.
References fdActorFaceDirection(), fdActorGet(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorWalkToAndWait(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorJumpDownLedge(), scPlaceTranslucentBlackActorFX() and syImportScriptSetExitRequest().
Referenced by MercuryLighthouseLowerCues and MercuryLighthouseMiddleCues.
Definition at line 2490 of file mercury_lighthouse.c.
scInit
Sint32 scInit(void)
Restores each lighthouse scene's puzzle state and plays its entrance's script.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetPosFX(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdBlendScriptResume(), fdBlendScriptSuspend(), fdCameraGetActor(), fdEffectStartGroundMask(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridWaitForShakeToSettle(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdQueueMusic(), fdScriptEnd(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, mnFieldMessageShowCentered(), SceneLocalState, scMercuryLighthouseArriveWithSparks(), scMercuryLighthouseClearPalette(), scMercuryLighthouseCycleEntrancePalette(), scMercuryLighthouseCyclePalette(), scMercuryLighthouseCycleWaterfallPalette(), scMercuryLighthouseRestoreLights(), scMercuryLighthouseRideLift(), scMercuryLighthouseSparkleAboveStatue(), scMercuryLighthouseStartJet(), scMercuryLighthouseStartNorthJet(), scMercuryLighthouseStopJet(), scMercuryLighthouseUnmaskLeaderOnTerrace(), scPushedActorBlockFootprint(), scSetActorSpritePriority(), Sint32, syImportScriptSetExitRequest(), sySetTickEvent(), sySoundPlay() and sySynch().
Definition at line 2756 of file mercury_lighthouse.c.
scMercuryLighthouseMiaJoinsAfterRescue
static void scMercuryLighthouseMiaJoinsAfterRescue(void)
Move on the blue statue in Mia's way, on the ledge up the stairs from the great pool room: once it has dropped into the gap at her feet, at column 48, Mia thanks the party ("You've saved me again, haven't you!"), asks their business in the lighthouse until they own to it, and joins them, bringing Fizz, a Mercury Djinni, already set.
The gap's row (46, 39) to (50, 39) takes the walkable metatiles of (110, 39) to (114, 39).
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkToAndWait(), fdMapGridCopyMetatileAttributes(), fdScriptAddPartyMember(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmDjinnGive(), gmDjinnSet(), gmFlagSet(), gmUnitCalculate(), scWalkIntoLeader() and Sint32.
Referenced by MercuryLighthouseLowerCues.
Definition at line 3260 of file mercury_lighthouse.c.
scMercuryLighthouseSpawnRipple
static void scMercuryLighthouseSpawnRipple(ACTOR *src)
Spreads one blue ripple (SPRITE_RIPPLE) from an actor, for 30 ticks.
References fdActorStartScript(), fdSpriteStartAnimation(), MercuryLighthouseRippleScript and scFieldActorCreate().
Referenced by scMercuryLighthouseHopAcrossPool() and scMercuryLighthouseRippleAroundLeader().
Definition at line 3487 of file mercury_lighthouse.c.
Variables in detail
MercuryLighthouseRippleScript
extern Sint32 MercuryLighthouseRippleScript[]
Sint32 MercuryLighthouseRippleScript[]
References Sint32.
Referenced by scMercuryLighthouseSpawnRipple().
Definition at lines 89 and 3521 of file mercury_lighthouse.c.
MercuryLighthouseStatueSlideWest
extern Sint32 MercuryLighthouseStatueSlideWest[]
Sint32 MercuryLighthouseStatueSlideWest[]
The blue statue's slides in the room of jets, each three quarters of a second or a second after
the jet starts: JET_WESTWARD pushes it west under the falling jet's pipe end, JET_SOUTHWARD south
to the row of the hole, and JET_EASTWARD east into the hole.
References scMercuryLighthouseStartStatueSparkles() and Sint32.
Referenced by scMercuryLighthouseStartStatueSlide().
Definition at lines 91 and 3554 of file mercury_lighthouse.c.
MercuryLighthouseStatueSlideSouth
extern Sint32 MercuryLighthouseStatueSlideSouth[]
Sint32 MercuryLighthouseStatueSlideSouth[]
References scMercuryLighthouseStartStatueSparkles(), scMercuryLighthouseStopStatueSparkles() and Sint32.
Referenced by scMercuryLighthouseStartStatueSlide().
Definition at lines 92 and 3564 of file mercury_lighthouse.c.
MercuryLighthouseStatueSlideIntoHole
extern Sint32 MercuryLighthouseStatueSlideIntoHole[]
Sint32 MercuryLighthouseStatueSlideIntoHole[]
References scMercuryLighthouseStartStatueSparkles(), scMercuryLighthouseStopStatueSparkles() and Sint32.
Referenced by scMercuryLighthouseStartStatueSlide().
Definition at lines 93 and 3575 of file mercury_lighthouse.c.
MercuryLighthouseStatueStaysPut
extern Sint32 MercuryLighthouseStatueStaysPut[]
Sint32 MercuryLighthouseStatueStaysPut[]
JET_WESTWARD again once the statue is under the falling jet's pipe end: the sparkles start, but
the statue stays where it is.
References scMercuryLighthouseStartStatueSparkles() and Sint32.
Referenced by scMercuryLighthouseStartStatueSlide().
Definition at lines 94 and 3588 of file mercury_lighthouse.c.
MercuryLighthouseGateMetatiles
extern Uint16 MercuryLighthouseGateMetatiles[]
Uint16 MercuryLighthouseGateMetatiles[]
The gate room's sealed arch on the dais opening a column at a time, and closing; then the upper gate room's middle arch, the same.
Referenced by scMercuryLighthouseOpenGateWithMovedStatue() and scMercuryLighthousePressGateFloorSwitch().
Definition at lines 95 and 3601 of file mercury_lighthouse.c.
MercuryLighthouseGateCloseMetatiles
extern Uint16 MercuryLighthouseGateCloseMetatiles[]
Uint16 MercuryLighthouseGateCloseMetatiles[]
Referenced by scMercuryLighthouseReleaseGateFloorSwitch().
Definition at lines 96 and 3606 of file mercury_lighthouse.c.
MercuryLighthouseUpperGateMetatiles
extern Uint16 MercuryLighthouseUpperGateMetatiles[]
Uint16 MercuryLighthouseUpperGateMetatiles[]
Referenced by scMercuryLighthouseOpenUpperGateWithMovedStatue() and scMercuryLighthousePressUpperGateFloorSwitch().
Definition at lines 97 and 3611 of file mercury_lighthouse.c.
MercuryLighthouseUpperGateCloseMetatiles
extern Uint16 MercuryLighthouseUpperGateCloseMetatiles[]
Uint16 MercuryLighthouseUpperGateCloseMetatiles[]
Referenced by scMercuryLighthouseReleaseUpperGateFloorSwitch().
Definition at lines 98 and 3616 of file mercury_lighthouse.c.
MercuryLighthouseDoorOpenMetatiles
extern Uint16 MercuryLighthouseDoorOpenMetatiles[]
Uint16 MercuryLighthouseDoorOpenMetatiles[]
The lighthouse door opening in five steps as Mia casts Ply on it.
Referenced by scMercuryLighthouseMiaOpensEntranceWithPly().
Definition at lines 99 and 3623 of file mercury_lighthouse.c.
MercuryLighthouseLowerEntrances
extern SCENE_ENTRANCE MercuryLighthouseLowerEntrances[]
SCENE_ENTRANCE MercuryLighthouseLowerEntrances[]
Referenced by scGetEntrances().
Definition at lines 100 and 3629 of file mercury_lighthouse.c.
MercuryLighthouseMiddleEntrances
extern SCENE_ENTRANCE MercuryLighthouseMiddleEntrances[]
SCENE_ENTRANCE MercuryLighthouseMiddleEntrances[]
Referenced by scGetEntrances().
Definition at lines 101 and 3658 of file mercury_lighthouse.c.
MercuryLighthouseUpperEntrances
extern SCENE_ENTRANCE MercuryLighthouseUpperEntrances[]
SCENE_ENTRANCE MercuryLighthouseUpperEntrances[]
Referenced by scGetEntrances().
Definition at lines 102 and 3683 of file mercury_lighthouse.c.
MercuryLighthouseExteriorEntrances
extern SCENE_ENTRANCE MercuryLighthouseExteriorEntrances[]
SCENE_ENTRANCE MercuryLighthouseExteriorEntrances[]
Referenced by scGetEntrances().
Definition at lines 103 and 3720 of file mercury_lighthouse.c.
MercuryLighthouseExits
extern Uint32 MercuryLighthouseExits[]
Uint32 MercuryLighthouseExits[]
Referenced by scGetExits().
Definition at lines 104 and 3743 of file mercury_lighthouse.c.
MercuryLighthouseNoActorPlacements
extern ACTOR_PLACE MercuryLighthouseNoActorPlacements[]
ACTOR_PLACE MercuryLighthouseNoActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 105 and 3866 of file mercury_lighthouse.c.
MercuryLighthouseLowerActorPlacements
extern ACTOR_PLACE MercuryLighthouseLowerActorPlacements[]
ACTOR_PLACE MercuryLighthouseLowerActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 106 and 3870 of file mercury_lighthouse.c.
MercuryLighthouseMiddleActorPlacements
extern ACTOR_PLACE MercuryLighthouseMiddleActorPlacements[]
ACTOR_PLACE MercuryLighthouseMiddleActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 107 and 3886 of file mercury_lighthouse.c.
MercuryLighthouseUpperActorPlacements
extern ACTOR_PLACE MercuryLighthouseUpperActorPlacements[]
ACTOR_PLACE MercuryLighthouseUpperActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 108 and 3900 of file mercury_lighthouse.c.
MercuryLighthouseExteriorActorPlacements
extern ACTOR_PLACE MercuryLighthouseExteriorActorPlacements[]
ACTOR_PLACE MercuryLighthouseExteriorActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 109 and 3931 of file mercury_lighthouse.c.
MercuryLighthouseLowerCues
extern CUE MercuryLighthouseLowerCues[]
CUE MercuryLighthouseLowerCues[]
References scMercuryLighthouseChargeLightsOnLower(), scMercuryLighthouseHopAcrossPoolOnLower(), scMercuryLighthouseJumpDownPastCrystal(), scMercuryLighthouseLoseLightsOnLower(), scMercuryLighthouseMiaJoinsAfterRescue(), scMercuryLighthousePushChannelPipes(), scMercuryLighthouseRemoveColumnOnRetreat() and scMercuryLighthouseRippleWhileInPool().
Referenced by scGetCues().
Definition at lines 110 and 3966 of file mercury_lighthouse.c.
MercuryLighthouseMiddleCues
extern CUE MercuryLighthouseMiddleCues[]
CUE MercuryLighthouseMiddleCues[]
References scMercuryLighthouseInspectLockedDoor(), scMercuryLighthouseJumpDownPastCrystal(), scMercuryLighthouseOpenGateWithMovedStatue(), scMercuryLighthousePressGateFloorSwitch(), scMercuryLighthousePushGateSwitchStatue(), scMercuryLighthousePushLeaderOutOfSpout(), scMercuryLighthousePushSpoutAndNorthJetPipes(), scMercuryLighthouseReleaseGateFloorSwitch(), scMercuryLighthouseRemoveColumnOnRetreat() and scMercuryLighthouseStartDjinnBattle().
Referenced by scGetCues().
Definition at lines 111 and 4041 of file mercury_lighthouse.c.
MercuryLighthouseUpperCues
extern CUE MercuryLighthouseUpperCues[]
CUE MercuryLighthouseUpperCues[]
References scMercuryLighthouseInspectLockedDoor(), scMercuryLighthouseMoveGapStatueOffDoorway(), scMercuryLighthouseOpenUpperGateWithMovedStatue(), scMercuryLighthousePressUpperGateFloorSwitch(), scMercuryLighthousePushJetRoomPipes(), scMercuryLighthousePushRowStatue(), scMercuryLighthousePushUpperGateSwitchStatue(), scMercuryLighthouseRecordRowStatues(), scMercuryLighthouseReleaseUpperGateFloorSwitch(), scMercuryLighthouseRemoveColumnOnRetreat(), scMercuryLighthouseWaterfallToGapRoom() and scMercuryLighthouseWaterfallToSleetsRoom().
Referenced by scGetCues().
Definition at lines 112 and 4117 of file mercury_lighthouse.c.
MercuryLighthouseExteriorCues
extern CUE MercuryLighthouseExteriorCues[]
CUE MercuryLighthouseExteriorCues[]
References scMercuryLighthouseFillHermesWaterBottle(), scMercuryLighthouseInspectHealingFountain(), scMercuryLighthouseInspectSealedDoor(), scMercuryLighthouseMiaDiscussesBlockedEntrance(), scMercuryLighthouseMiaOpensEntranceWithPly(), scMercuryLighthouseMiaSensesSomeoneInside(), scMercuryLighthousePlyOpensWaterfallPassage(), scMercuryLighthouseReadHermesFountainSign(), scMercuryLighthouseRemoveColumnOnRetreat() and scMercuryLighthouseWaterfallToUpperPath().
Referenced by scGetCues().
Definition at lines 113 and 4205 of file mercury_lighthouse.c.
MercuryLighthouseSparkScript
Sint32 MercuryLighthouseSparkScript[]
References scMercuryLighthouseRiseSpark() and Sint32.
Referenced by scMercuryLighthouseSpawnSparkPair().
Definition at line 3526 of file mercury_lighthouse.c.
MercuryLighthouseGrowLightScript
Sint32 MercuryLighthouseGrowLightScript[]
References scMercuryLighthouseGrowLight() and Sint32.
Referenced by scMercuryLighthouseHopAcrossPool() and scMercuryLighthouseRestoreLights().
Definition at line 3531 of file mercury_lighthouse.c.
MercuryLighthouseLightOutScript
Sint32 MercuryLighthouseLightOutScript[]
References scMercuryLighthouseSwellLightOut() and Sint32.
Referenced by scMercuryLighthouseHopAcrossPool() and scMercuryLighthouseLoseLights().
Definition at line 3536 of file mercury_lighthouse.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Definition at line 3543 of file mercury_lighthouse.c.
PaletteCycleRed
Sint32 PaletteCycleRed
Unused, with PaletteCycleGreen and PaletteCycleBlue: nothing reads them or changes them.
References Sint32.
Referenced by scMercuryLighthouseCyclePalette().
Definition at line 3595 of file mercury_lighthouse.c.
PaletteCycleGreen
Sint32 PaletteCycleGreen
References Sint32.
Referenced by scMercuryLighthouseCyclePalette().
Definition at line 3596 of file mercury_lighthouse.c.
PaletteCycleBlue
Sint32 PaletteCycleBlue
References Sint32.
Referenced by scMercuryLighthouseCyclePalette().
Definition at line 3597 of file mercury_lighthouse.c.