Skip to Content
The Alchemy Project

src/scene/sol_sanctum_luna_sol_rooms.c

Sol Sanctum (SceneIdSolSanctumLunaSolRooms), the room of Sol and the room of Luna at the heart of the sanctum. More…

Macros

NameDescription
#defineFLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_NO_TINT FLAG_SCENE_TEMP(0x00)The rooms of Sol and Luna show their plain colours (PALETTE_TINT_NONE), so a return after a battle keeps them.
#defineFLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_BLUE_TINTED FLAG_SCENE_TEMP(0x01)The rooms of Sol and Luna show SOL_SANCTUM_BLUE_TINT, so a return after a battle keeps it.
#defineFLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_WARM_TINTED FLAG_SCENE_TEMP(0x02)The rooms of Sol and Luna show SOL_SANCTUM_WARM_TINT, so a return after a battle keeps it.
#defineFLAG_SOL_SANCTUM_RESCUE_ARRIVAL_SEEN FLAG_AREA_TEMP(0x09)Set once Isaac and Garet's arrival after the Wise One's rescue has played.
#defineSOL_SANCTUM_BLUE_TINT (PALETTE_TINT_CUSTOM | RGB(12, 14, 20))The blue the room of Luna is bathed in.
#defineSOL_SANCTUM_WARM_TINT (PALETTE_TINT_CUSTOM | RGB(17, 13, 11))The warm brown the passage between the rooms is dimmed to.
#defineDRAW_LIGHT (staging, column, row)A falling light in the Luna room is a column of five metatiles kept in a staging column on row 59, with the ten metatiles it falls through, unlit, ten rows above it on row 49.
#defineMOVE_LIGHT_DOWN (staging, column, row)Moves a light a row down to (column, row).
#defineCLEAR_LIGHT_PATH (staging, column, row)Puts back the ten unlit metatiles a light falls through, from (column, row).
#defineSTATUE_LIGHTS_LIT_ROW 28The first of the two layout rows holding the Luna room's picture with its quarters lit, the picture of Sol, which fdMapGridCopyMetatilesTo draws into the room.
#defineSTATUE_LIGHTS_DARK_ROW 30The first of the two layout rows holding the same picture unlit, the picture of Luna.
#defineMIDDLE_LAYER_ROW (row) (32 + (row))The beam of light from the symbol in the room of Sol up to its north wall, and the portal that opens on the wall, are drawn on the middle layer, which starts at the map's row 32, in metatile columns 17 and 18.
#defineBEAM_COLUMN 17
#defineDRAW_PORTAL (picture)Draws one of the portal's four pictures, from a small oval (0) to the open portal (3), kept side by side from the map's (36, 62), on the wall at the middle layer's rows 4 to 6.
#defineDRAW_BEAM (row, rows)Draws the beam's top rows rows, from its sparkling tip down, from the beam's picture at the map's (44, 59), with the tip on the middle layer's row.
#defineCLEAR_BEAM (row, rows)Clears rows rows of the beam from the middle layer's row with the layer's blank metatile, its (0, 0).
#definePORTAL_ANIMATION_A 9The first of the map's two tileset animations, the portal's shimmer, which stay paused until the portal opens.
#definePORTAL_ANIMATION_B 10The second of them.
#defineSTEP_FALLING_LIGHT (timer, staging, column, top, cleared, restart)One tick of a falling light in the Luna room, counted on timer.
#defineSOL_SANCTUM_FALLING_LIGHT (Defines name, the event of one more falling light in the Luna room, with its own timer and random restart delay (STEP_FALLING_LIGHT).

Enumerations

NameDescription
enumSOL_SANCTUM_LUNA_SOL_ROOMS_ACTOR_ID { ACTOR_FIRST_STATUE, ACTOR_KRADEN }The placed actors, numbered in the order of SolSanctumLunaSolRoomsActorPlacements; Jenna and Garet, its last rows, keep their characters' ids.
enumSOL_SANCTUM_LUNA_SOL_ROOMS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_LUNA_DOORWAY, M … }The metatile behaviors of the floor metatiles the scripts answer.

Functions

NameDescription
BSS_DATAALIGNED (4)Data aligned as the ROM places it, where its own type would not.
static voidscSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms (void)The first time the party steps into the room of Luna, Kraden finds the picture of Luna on its floor, "a moon in the center", wonders how the two rooms are connected, and asks Isaac to look farther up the passage.
static voidscSolSanctumLunaSolRoomsDiscussFloorSymbolChangingToLuna (void)Kraden comes out beside Isaac in the room of Sol once all four quarters are lit: "Look!
static Sint32scSolSanctumLunaSolRoomsAreAllStatueLightsLit (void)Returns 1 when all four quarters are lit.
static voidscSolSanctumLunaSolRoomsShowMessageAndWait (Sint32 speaker, Sint32 waitTicks)Shows the next message of the script, then waits.
static voidscSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue (void)Sol Sanctum after the eruption: Isaac and Garet appear here in a white flash.
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)Returns the eight statues, four in each room, Kraden, Jenna and Garet, all always placed.
const CUE *scGetCues (void)Returns the floor's metatile behaviors that tint the rooms, Kraden's talk and scripts, the floor symbol and the Herb's chest.
static voidscSolSanctumLunaSolRoomsTintSolRoom (void)Isaac steps into the room of Sol, from the passage at its east (metatiles (24, 10) and (24, 11)) or through its south doorway (metatiles (17, 16) and (18, 16)), and the colours fade back from blue to plain.
static voidscSolSanctumLunaSolRoomsRestorePlainTint (void)Isaac walks south out of the room of Sol or of Luna into the corridor below (metatiles (17, 18) to (18, 18) or (35, 17) to (36, 17)), and the colours fade back to plain if they were tinted.
static voidscSolSanctumLunaSolRoomsTintLunaRoom (void)Isaac steps into the room of Luna, from the passage at its west (metatiles (29, 10) and (29, 11)) or through its south doorway (metatiles (35, 15) and (36, 15)), and everything fades to blue.
static voidscSolSanctumLunaSolRoomsTintPassageBetweenRooms (void)Isaac walks along the short passage between the rooms of Sol and Luna (metatiles (25, 10) to (28, 11)), and the colours dim to a warm brown (SOL_SANCTUM_WARM_TINT).
static voidscSolSanctumLunaSolRoomsClearBackdropColor (void)
static inline voidscSolSanctumLunaSolRoomsDrawStatueLightTiles (Sint32 firstFlag, Sint32 srcRow)Draws the light of each lit quarter of the Luna room's picture, from four consecutive flags, with the tiles of the given source row.
static voidscSolSanctumLunaSolRoomsDrawCurrentStatueLights (void)Draws the lights of the quarters lit now (the _SEAL_OPEN flags).
static voidscSolSanctumLunaSolRoomsDrawSavedStatueLights (void)Draws the lights the room last showed (the _LIGHT_SHOWN flags).
static voidscSolSanctumLunaSolRoomsDarkenCurrentStatueLights (void)Draws the quarters lit now unlit again.
static voidscSolSanctumLunaSolRoomsDarkenSavedStatueLights (void)Draws the quarters the room last showed lit unlit again.
static inline voidscSolSanctumLunaSolRoomsFlashCurrentStatueLights (Sint32 ticks)Flashes the lit quarters' lights on and off at this pace.
static inline voidscSolSanctumLunaSolRoomsFlashSavedStatueLights (Sint32 ticks)Flashes the lights last shown on and off at this pace.
static voidscSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum (void)The first time Isaac walks into the room of Sol (metatiles (17, 15) and (18, 15)), the music changes and Kraden hurries past him to the sun on the floor: "This is it!
static voidscSolSanctumLunaSolRoomsKradenStopsPartyLeaving (void)Isaac walks south out of the room of Sol (metatiles (17, 17) and (18, 17)) after Kraden has found the heart of the sanctum, and Kraden hurries over: "That way leads out of the sanctum.
static voidscSolSanctumLunaSolRoomsUpdateFirstFallingLight (void)The first light falling through the Luna room, which also shakes the rooms as any of the four lands.
static voidscSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom (void)Opens on Kraden in the Luna room in SOL_SANCTUM_BLUE_TINT, as a flash crosses it.
static voidscSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed (void)The scene cuts to Kraden by the picture of Luna when Isaac sets the first statue on its seal after the sun-disc statue has dropped into the floor.
static voidscSolSanctumLunaSolRoomsSpringTrap (void)The scene cuts to Kraden by the picture of Luna when Isaac first sets a statue on its seal, before the trap is disarmed.
static voidscSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights (void)Unused: the only way here is a branch of scSolSanctumStatueOpenSeal that cannot run (SOL_SANCTUM_STATUE_SOL_SANCTUM_LUNA_SOL_ROOMS_LIGHTS_SHOWN).
static voidscSolSanctumLunaSolRoomsKradenSeesLunaPictureChange (void)Isaac comes back through the room of Luna's south doorway (metatiles (35, 16) and (36, 16)) once all four quarters are lit, and Kraden, by the picture, calls to him: "Look, Isaac!
static voidscSolSanctumLunaSolRoomsRiseToElementalStarRoom (void)Isaac searches the north wall of the room of Sol, behind the symbol (metatiles (17, 6) and (18, 6)), once Kraden has seen the symbol change.
Sint32scInit (void)Sets up Sol Sanctum's rooms of Sol and Luna and plays the script this entrance calls for.
static voidscSolSanctumLunaSolRoomsTalkToKraden (void)Isaac talks to Kraden by the picture of Luna: "Let me know what you find" if Isaac agreed to look farther up the passage, or "Just wait over there."

Variables

NameDescription
Uint16SolSanctumLunaSolRoomsSecondLightTimerEach falling light's step, advanced three ticks in four: 0 to 4 as it falls, then on until it starts again (STEP_FALLING_LIGHT).
Uint16SolSanctumLunaSolRoomsThirdLightTimer
Uint16SolSanctumLunaSolRoomsFirstLightTimer
Sint32SolSanctumLunaSolRoomsLandingShakeSet to 2 as a falling light lands: the rooms shake for a tick, then settle.
Uint16SolSanctumLunaSolRoomsFourthLightTimer
extern SCENE_ENTRANCESolSanctumLunaSolRoomsEntrances []
extern Uint32SolSanctumLunaSolRoomsExits []
extern ACTOR_PLACESolSanctumLunaSolRoomsActorPlacements []
extern CUESolSanctumLunaSolRoomsCues []

Description

Sol Sanctum (SceneIdSolSanctumLunaSolRooms), the room of Sol and the room of Luna at the heart of the sanctum.

The rooms lie between SceneIdSolSanctumReliefs (sol_sanctum_entrance.c), the statue room (SceneIdSolSanctumStatue, sol_sanctum_statue.c) and the way up to SceneIdSolSanctumElementalStarRoom.

The way in from the second relief room is at the south-west (metatile (3, 31)). Its left branch leads to a chest with a Herb (metatile (3, 15)); the middle one runs north into the room of Sol, four winged statues round a golden sun on a purple and gold checkered floor, entered by its south doorway (metatiles (17, 15) to (18, 18)). A short passage east (metatiles (25, 10) to (28, 11)) joins it to the room of Luna, the same room bathed in blue, with a moon on its floor. South of the room of Luna a corridor leads to the arched stairs up to the statue room (metatile (40, 19)).

Kraden's scripts here follow the story flags in order:

The rooms' colours follow the party. Stepping into the room of Luna fades everything to blue, stepping back into the room of Sol or out into the corridors fades it back, and the passage between them is dimmed brown. Once all four quarters are lit the two rooms swap: the room of Sol turns blue and the room of Luna plain. Metatiles in the doorways do this (enum SOL_SANCTUM_LUNA_SOL_ROOMS_METATILE_BEHAVIOR), and one of three scene flags remembers which colours show, so a return after a battle keeps them.

On entry scInit copies each lit quarter into its FLAG_SOL_SANCTUM_*_LIGHT_SHOWN. It redraws the pictures, the floor and the open way up from the story flags, unless the entrance's own script draws them.

The falling lights are four events, each with a random timer of its own, that the trap adds and removes.

A third statue-room script is never reached. In it the quarters lit since the room last showed them flash for Kraden (scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights).

Macros in detail

FLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_NO_TINT

#define FLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_NO_TINT FLAG_SCENE_TEMP(0x00)

The rooms of Sol and Luna show their plain colours (PALETTE_TINT_NONE), so a return after a battle keeps them.

Referenced by scInit(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsRestorePlainTint(), scSolSanctumLunaSolRoomsTintLunaRoom(), scSolSanctumLunaSolRoomsTintPassageBetweenRooms() and scSolSanctumLunaSolRoomsTintSolRoom().

Definition at line 108 of file sol_sanctum_luna_sol_rooms.c.

FLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_BLUE_TINTED

#define FLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_BLUE_TINTED FLAG_SCENE_TEMP(0x01)

The rooms of Sol and Luna show SOL_SANCTUM_BLUE_TINT, so a return after a battle keeps it.

Referenced by scInit(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsRestorePlainTint(), scSolSanctumLunaSolRoomsTintLunaRoom(), scSolSanctumLunaSolRoomsTintPassageBetweenRooms() and scSolSanctumLunaSolRoomsTintSolRoom().

Definition at line 111 of file sol_sanctum_luna_sol_rooms.c.

FLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_WARM_TINTED

#define FLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_WARM_TINTED FLAG_SCENE_TEMP(0x02)

The rooms of Sol and Luna show SOL_SANCTUM_WARM_TINT, so a return after a battle keeps it.

Referenced by scInit(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsRestorePlainTint(), scSolSanctumLunaSolRoomsTintLunaRoom(), scSolSanctumLunaSolRoomsTintPassageBetweenRooms() and scSolSanctumLunaSolRoomsTintSolRoom().

Definition at line 114 of file sol_sanctum_luna_sol_rooms.c.

FLAG_SOL_SANCTUM_RESCUE_ARRIVAL_SEEN

#define FLAG_SOL_SANCTUM_RESCUE_ARRIVAL_SEEN FLAG_AREA_TEMP(0x09)

Set once Isaac and Garet's arrival after the Wise One's rescue has played. An area flag, cleared when the party enters another area.

Referenced by scInit().

Definition at line 118 of file sol_sanctum_luna_sol_rooms.c.

SOL_SANCTUM_BLUE_TINT

#define SOL_SANCTUM_BLUE_TINT (PALETTE_TINT_CUSTOM | RGB(12, 14, 20))

The blue the room of Luna is bathed in.

Referenced by scInit(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsTintLunaRoom() and scSolSanctumLunaSolRoomsTintSolRoom().

Definition at line 121 of file sol_sanctum_luna_sol_rooms.c.

SOL_SANCTUM_WARM_TINT

#define SOL_SANCTUM_WARM_TINT (PALETTE_TINT_CUSTOM | RGB(17, 13, 11))

The warm brown the passage between the rooms is dimmed to.

Referenced by scInit() and scSolSanctumLunaSolRoomsTintPassageBetweenRooms().

Definition at line 123 of file sol_sanctum_luna_sol_rooms.c.

DRAW_LIGHT

#define DRAW_LIGHT(staging, column, row)

A falling light in the Luna room is a column of five metatiles kept in a staging column on row 59, with the ten metatiles it falls through, unlit, ten rows above it on row 49. Draws a light with its top at (column, row).

Definition at line 128 of file sol_sanctum_luna_sol_rooms.c.

MOVE_LIGHT_DOWN

#define MOVE_LIGHT_DOWN(staging, column, row)

Moves a light a row down to (column, row). Its first metatile is copied over the row it leaves, then it is drawn again.

Definition at line 132 of file sol_sanctum_luna_sol_rooms.c.

CLEAR_LIGHT_PATH

#define CLEAR_LIGHT_PATH(staging, column, row)

Puts back the ten unlit metatiles a light falls through, from (column, row).

Definition at line 136 of file sol_sanctum_luna_sol_rooms.c.

STATUE_LIGHTS_LIT_ROW

#define STATUE_LIGHTS_LIT_ROW 28

The first of the two layout rows holding the Luna room's picture with its quarters lit, the picture of Sol, which fdMapGridCopyMetatilesTo draws into the room.

Referenced by scInit(), scSolSanctumLunaSolRoomsDrawCurrentStatueLights(), scSolSanctumLunaSolRoomsDrawSavedStatueLights() and scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights().

Definition at line 142 of file sol_sanctum_luna_sol_rooms.c.

STATUE_LIGHTS_DARK_ROW

#define STATUE_LIGHTS_DARK_ROW 30

The first of the two layout rows holding the same picture unlit, the picture of Luna.

Referenced by scInit(), scSolSanctumLunaSolRoomsDarkenCurrentStatueLights(), scSolSanctumLunaSolRoomsDarkenSavedStatueLights() and scSolSanctumLunaSolRoomsSpringTrap().

Definition at line 145 of file sol_sanctum_luna_sol_rooms.c.

MIDDLE_LAYER_ROW

#define MIDDLE_LAYER_ROW(row) (32 + (row))

The beam of light from the symbol in the room of Sol up to its north wall, and the portal that opens on the wall, are drawn on the middle layer, which starts at the map's row 32, in metatile columns 17 and 18.

Referenced by scSolSanctumEntranceRestoreInteriorState(), scSolSanctumEntranceSetFirstSmallJewel() and scSolSanctumEntranceSetSecondSmallJewel().

Definition at line 150 of file sol_sanctum_luna_sol_rooms.c.

BEAM_COLUMN

#define BEAM_COLUMN 17

Definition at line 151 of file sol_sanctum_luna_sol_rooms.c.

DRAW_PORTAL

#define DRAW_PORTAL(picture)

Draws one of the portal's four pictures, from a small oval (0) to the open portal (3), kept side by side from the map's (36, 62), on the wall at the middle layer's rows 4 to 6.

Referenced by scInit() and scSolSanctumLunaSolRoomsRiseToElementalStarRoom().

Definition at line 155 of file sol_sanctum_luna_sol_rooms.c.

DRAW_BEAM

#define DRAW_BEAM(row, rows)

Draws the beam's top rows rows, from its sparkling tip down, from the beam's picture at the map's (44, 59), with the tip on the middle layer's row.

Referenced by scInit() and scSolSanctumLunaSolRoomsRiseToElementalStarRoom().

Definition at line 161 of file sol_sanctum_luna_sol_rooms.c.

CLEAR_BEAM

#define CLEAR_BEAM(row, rows)

Clears rows rows of the beam from the middle layer's row with the layer's blank metatile, its (0, 0).

Referenced by scInit() and scSolSanctumLunaSolRoomsRiseToElementalStarRoom().

Definition at line 166 of file sol_sanctum_luna_sol_rooms.c.

PORTAL_ANIMATION_A

#define PORTAL_ANIMATION_A 9

The first of the map's two tileset animations, the portal's shimmer, which stay paused until the portal opens.

Referenced by scInit() and scSolSanctumLunaSolRoomsRiseToElementalStarRoom().

Definition at line 172 of file sol_sanctum_luna_sol_rooms.c.

PORTAL_ANIMATION_B

#define PORTAL_ANIMATION_B 10

The second of them.

Referenced by scInit() and scSolSanctumLunaSolRoomsRiseToElementalStarRoom().

Definition at line 174 of file sol_sanctum_luna_sol_rooms.c.

STEP_FALLING_LIGHT

#define STEP_FALLING_LIGHT(timer, staging, column, top, cleared, restart)

One tick of a falling light in the Luna room, counted on timer.

Three ticks in four it advances its timer: the light appears at (column, top) from its staging column, falls four rows and flashes, and on tick cleared its path is put back. It starts again after restart ticks and up to 40 more.

Referenced by scSolSanctumLunaSolRoomsUpdateFirstFallingLight().

Definition at line 837 of file sol_sanctum_luna_sol_rooms.c.

SOL_SANCTUM_FALLING_LIGHT

#define SOL_SANCTUM_FALLING_LIGHT(

Defines name, the event of one more falling light in the Luna room, with its own timer and random restart delay (STEP_FALLING_LIGHT).

Definition at line 884 of file sol_sanctum_luna_sol_rooms.c.

Enumerations in detail

SOL_SANCTUM_LUNA_SOL_ROOMS_ACTOR_ID

enum SOL_SANCTUM_LUNA_SOL_ROOMS_ACTOR_ID

The placed actors, numbered in the order of SolSanctumLunaSolRoomsActorPlacements; Jenna and Garet, its last rows, keep their characters' ids.

EnumeratorValueDescription
ACTOR_FIRST_STATUEACTOR_FIRST_PLACEDEight statues, four in each
ACTOR_KRADENACTOR_FIRST_STATUE + 8room, with the sprite of SceneIdSolSanctumStatue's statues (sol_sanctum_statue.c).

Definition at line 97 of file sol_sanctum_luna_sol_rooms.c.

SOL_SANCTUM_LUNA_SOL_ROOMS_METATILE_BEHAVIOR

enum SOL_SANCTUM_LUNA_SOL_ROOMS_METATILE_BEHAVIOR

The metatile behaviors of the floor metatiles the scripts answer.

Behaviors 1 and 2 are the exits.

EnumeratorValueDescription
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_LUNA_DOORWAY8The room
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_WAY_OUT9of Luna's south doorway, where Kraden calls Isaac over once the picture has changed. The way back out to SceneIdSolSanctumReliefs.
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_SOL_DOORWAY11The room
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_WARM_TINT12of Sol's south doorway, where Kraden first finds the heart of the sanctum. Fades to
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_TINT13SOL_SANCTUM_WARM_TINT. Fades to plain
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_TINT_INVERSE14colours, or to SOL_SANCTUM_BLUE_TINT once all four quarters are lit. Fades to SOL_SANCTUM_BLUE_TINT, or to plain colours once all four quarters are lit.
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_PLAIN15Fades to plain
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_BLACK_BACKDROP19colours. Turns the backdrop black
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_BEAM_WALL20(scSolSanctumLunaSolRoomsClearBackdropColor). The north
METATILE_BEHAVIOR_SOL_SANCTUM_LUNA_SOL_ROOMS_CHEST100wall where the symbol's beam of light meets it, searched to open the portal.

Definition at line 179 of file sol_sanctum_luna_sol_rooms.c.

Functions in detail

scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms

static void scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms(void)

The first time the party steps into the room of Luna, Kraden finds the picture of Luna on its floor, "a moon in the center", wonders how the two rooms are connected, and asks Isaac to look farther up the passage. He stays by the picture from then on.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptWait(), gmFlagSet(), scSolSanctumLunaSolRoomsShowMessageAndWait() and Sint32.

Referenced by scSolSanctumLunaSolRoomsTintLunaRoom() and scSolSanctumLunaSolRoomsTintSolRoom().

Definition at lines 234 and 673 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsDiscussFloorSymbolChangingToLuna

static void scSolSanctumLunaSolRoomsDiscussFloorSymbolChangingToLuna(void)

Kraden comes out beside Isaac in the room of Sol once all four quarters are lit: "Look! The symbol on the floor! It changed from Sol to Luna!" Surely there must be something in this room.

References fdActorFaceDirection(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptWait(), gmFlagSet(), scSolSanctumLunaSolRoomsShowMessageAndWait() and sySoundPlay().

Referenced by scSolSanctumLunaSolRoomsTintSolRoom().

Definition at lines 235 and 1267 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsAreAllStatueLightsLit

static Sint32 scSolSanctumLunaSolRoomsAreAllStatueLightsLit(void)

Returns 1 when all four quarters are lit.

References gmFlagGet() and Sint32.

Referenced by scInit(), scSolSanctumLunaSolRoomsKradenSeesLunaPictureChange(), scSolSanctumLunaSolRoomsTintLunaRoom() and scSolSanctumLunaSolRoomsTintSolRoom().

Definition at lines 236 and 1664 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsShowMessageAndWait

static void scSolSanctumLunaSolRoomsShowMessageAndWait(Sint32 speaker, Sint32 waitTicks)

Shows the next message of the script, then waits.

References fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scSolSanctumLunaSolRoomsDiscussFloorSymbolChangingToLuna(), scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed(), scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms(), scSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum(), scSolSanctumLunaSolRoomsKradenSeesLunaPictureChange(), scSolSanctumLunaSolRoomsRiseToElementalStarRoom(), scSolSanctumLunaSolRoomsSpringTrap() and scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights().

Definition at lines 237 and 1681 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue

static void scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(void)

Sol Sanctum after the eruption: Isaac and Garet appear here in a white flash.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorWaitForMoveById(), fdEffectInitSparkles(), fdMapGridCenterOnFollowedPoint(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdQueueMusic(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagSet(), scSolSanctumLunaSolRoomsShowMessageAndWait(), scWalkIntoLeader(), sySoundPlay() and sySynch().

Referenced by scInit().

Definition at lines 239 and 1689 of file sol_sanctum_luna_sol_rooms.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SolSanctumLunaSolRoomsEntrances.

Definition at line 241 of file sol_sanctum_luna_sol_rooms.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 246 of file sol_sanctum_luna_sol_rooms.c.

scGetExits

const Uint32 *scGetExits(void)

References SolSanctumLunaSolRoomsExits.

Definition at line 251 of file sol_sanctum_luna_sol_rooms.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Returns the eight statues, four in each room, Kraden, Jenna and Garet, all always placed.

References SolSanctumLunaSolRoomsActorPlacements.

Definition at line 258 of file sol_sanctum_luna_sol_rooms.c.

scGetCues

const CUE *scGetCues(void)

Returns the floor's metatile behaviors that tint the rooms, Kraden's talk and scripts, the floor symbol and the Herb's chest.

References SolSanctumLunaSolRoomsCues.

Definition at line 265 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsTintSolRoom

static void scSolSanctumLunaSolRoomsTintSolRoom(void)

Isaac steps into the room of Sol, from the passage at its east (metatiles (24, 10) and (24, 11)) or through its south doorway (metatiles (17, 16) and (18, 16)), and the colours fade back from blue to plain. Once all four quarters are lit it is the other way round: the room of Sol fades to blue, and the first time Kraden comes to point out that the symbol on the floor has changed from Sol to Luna.

References fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), gmFlagClear(), gmFlagGet(), gmFlagSet(), scSolSanctumLunaSolRoomsAreAllStatueLightsLit(), scSolSanctumLunaSolRoomsDiscussFloorSymbolChangingToLuna(), scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms() and Sint32.

Referenced by scSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum() and SolSanctumLunaSolRoomsCues.

Definition at line 276 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsRestorePlainTint

static void scSolSanctumLunaSolRoomsRestorePlainTint(void)

Isaac walks south out of the room of Sol or of Luna into the corridor below (metatiles (17, 18) to (18, 18) or (35, 17) to (36, 17)), and the colours fade back to plain if they were tinted. Coming from a plain room, nothing visible happens.

References fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), gmFlagClear() and gmFlagSet().

Referenced by scSolSanctumLunaSolRoomsKradenStopsPartyLeaving() and SolSanctumLunaSolRoomsCues.

Definition at line 325 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsTintLunaRoom

static void scSolSanctumLunaSolRoomsTintLunaRoom(void)

Isaac steps into the room of Luna, from the passage at its west (metatiles (29, 10) and (29, 11)) or through its south doorway (metatiles (35, 15) and (36, 15)), and everything fades to blue. The first time, Kraden steps out: "Wh-What is this room?" He finds the picture of Luna, a moon in the centre, and asks Isaac to look farther up the passage. Once all four quarters are lit the room of Luna fades back to plain colours instead.

References fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), gmFlagClear(), gmFlagGet(), gmFlagSet(), scSolSanctumLunaSolRoomsAreAllStatueLightsLit(), scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms() and Sint32.

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 345 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsTintPassageBetweenRooms

static void scSolSanctumLunaSolRoomsTintPassageBetweenRooms(void)

Isaac walks along the short passage between the rooms of Sol and Luna (metatiles (25, 10) to (28, 11)), and the colours dim to a warm brown (SOL_SANCTUM_WARM_TINT).

References fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptGetFlag(), gmFlagClear() and gmFlagSet().

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 386 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsClearBackdropColor

static void scSolSanctumLunaSolRoomsClearBackdropColor(void)

Nothing visible happens when Isaac walks towards either way out, the arched
stairs up to the statue room (metatiles (39, 20) to (41, 20)) or the way back
to the relief rooms (metatiles (4,
29) and (4, 30)). The game sets the colour behind the map back to pure black,
    which the room
tints also shade, so that the next room fades in from black.

References Sint32.

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 404 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsDrawStatueLightTiles

static inline void scSolSanctumLunaSolRoomsDrawStatueLightTiles(Sint32 firstFlag, Sint32 srcRow)

Draws the light of each lit quarter of the Luna room's picture, from four consecutive flags, with the tiles of the given source row.

References fdMapGridCopyMetatilesTo(), gmFlagGet() and Sint32.

Referenced by scSolSanctumLunaSolRoomsDarkenCurrentStatueLights(), scSolSanctumLunaSolRoomsDarkenSavedStatueLights(), scSolSanctumLunaSolRoomsDrawCurrentStatueLights() and scSolSanctumLunaSolRoomsDrawSavedStatueLights().

Definition at line 414 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsDrawCurrentStatueLights

static void scSolSanctumLunaSolRoomsDrawCurrentStatueLights(void)

Draws the lights of the quarters lit now (the _SEAL_OPEN flags).

References scSolSanctumLunaSolRoomsDrawStatueLightTiles().

Referenced by scSolSanctumLunaSolRoomsFlashCurrentStatueLights() and scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed().

Definition at line 428 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsDrawSavedStatueLights

static void scSolSanctumLunaSolRoomsDrawSavedStatueLights(void)

Draws the lights the room last showed (the _LIGHT_SHOWN flags).

References scSolSanctumLunaSolRoomsDrawStatueLightTiles().

Referenced by scSolSanctumLunaSolRoomsFlashSavedStatueLights() and scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights().

Definition at line 435 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsDarkenCurrentStatueLights

static void scSolSanctumLunaSolRoomsDarkenCurrentStatueLights(void)

Draws the quarters lit now unlit again.

References scSolSanctumLunaSolRoomsDrawStatueLightTiles().

Referenced by scSolSanctumLunaSolRoomsFlashCurrentStatueLights().

Definition at line 442 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsDarkenSavedStatueLights

static void scSolSanctumLunaSolRoomsDarkenSavedStatueLights(void)

Draws the quarters the room last showed lit unlit again.

References scSolSanctumLunaSolRoomsDrawStatueLightTiles().

Referenced by scSolSanctumLunaSolRoomsFlashSavedStatueLights().

Definition at line 449 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsFlashCurrentStatueLights

static inline void scSolSanctumLunaSolRoomsFlashCurrentStatueLights(Sint32 ticks)

Flashes the lit quarters' lights on and off at this pace.

References fdScriptWait(), scSolSanctumLunaSolRoomsDarkenCurrentStatueLights(), scSolSanctumLunaSolRoomsDrawCurrentStatueLights(), Sint32 and sySoundPlay().

Referenced by scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed() and scSolSanctumLunaSolRoomsSpringTrap().

Definition at line 456 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsFlashSavedStatueLights

static inline void scSolSanctumLunaSolRoomsFlashSavedStatueLights(Sint32 ticks)

Flashes the lights last shown on and off at this pace.

References fdScriptWait(), scSolSanctumLunaSolRoomsDarkenSavedStatueLights(), scSolSanctumLunaSolRoomsDrawSavedStatueLights(), Sint32 and sySoundPlay().

Referenced by scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights().

Definition at line 468 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum

static void scSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum(void)

The first time Isaac walks into the room of Sol (metatiles (17, 15) and (18, 15)), the music changes and Kraden hurries past him to the sun on the floor: "This is it! We've found it!" It is the mark of the sun, the heart of Sol Sanctum, so Saturos and Menardi told the truth and must be thieves. Jenna wants to hurry back to the village, but Kraden asks to go a little farther, and whatever Isaac answers, Garet sides with him.

From then on Retreat does not work here. After the eruption this only fades the room back to plain colours.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorShowEmote(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scSolSanctumLunaSolRoomsShowMessageAndWait(), scSolSanctumLunaSolRoomsTintSolRoom(), scWalkIntoLeader() and sySoundPlay().

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 487 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsKradenStopsPartyLeaving

static void scSolSanctumLunaSolRoomsKradenStopsPartyLeaving(void)

Isaac walks south out of the room of Sol (metatiles (17, 17) and (18, 17)) after Kraden has found the heart of the sanctum, and Kraden hurries over: "That way leads out of the sanctum. It should be in these rooms." Isaac nods and steps back in. This stops once the way up is open, and after the eruption the metatile only fades the colours back to plain.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), scSolSanctumLunaSolRoomsRestorePlainTint() and scWalkIntoLeader().

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 762 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsUpdateFirstFallingLight

static void scSolSanctumLunaSolRoomsUpdateFirstFallingLight(void)

The first light falling through the Luna room, which also shakes the rooms as any of the four lands.

References SolSanctumLunaSolRoomsFirstLightTimer and SolSanctumLunaSolRoomsLandingShake.

Referenced by scSolSanctumLunaSolRoomsSpringTrap().

Definition at line 864 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom

static void scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(void)

Opens on Kraden in the Luna room in SOL_SANCTUM_BLUE_TINT, as a flash crosses it.

References fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatilesTo(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagSet(), sySoundPlay() and sySynch().

Referenced by scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed(), scSolSanctumLunaSolRoomsSpringTrap() and scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights().

Definition at line 918 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed

static void scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed(void)

The scene cuts to Kraden by the picture of Luna when Isaac sets the first statue on its seal after the sun-disc statue has dropped into the floor. A quarter of the picture lights up and flashes faster and faster; Kraden, startled, cries "What's happening?", decides Isaac must have found something, and runs off to the statue room.

References fdActorFaceDirection(), fdActorJump(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), scSolSanctumLunaSolRoomsDrawCurrentStatueLights(), scSolSanctumLunaSolRoomsFlashCurrentStatueLights(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsShowMessageAndWait(), Sint32 and syImportScriptSetExitRequest().

Referenced by scInit().

Definition at line 955 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsSpringTrap

static void scSolSanctumLunaSolRoomsSpringTrap(void)

The scene cuts to Kraden by the picture of Luna when Isaac first sets a statue on its seal, before the trap is disarmed. The lights flash, then lights start falling through the room of Luna, and Kraden runs off to the statue room crying, "Isaac! Stop!!! You're about to make a big mistake!"

References fdActorFaceDirection(), fdActorJump(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdMapGridCopyMetatilesTo(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), scSolSanctumLunaSolRoomsFlashCurrentStatueLights(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsShowMessageAndWait(), scSolSanctumLunaSolRoomsUpdateFirstFallingLight(), Sint32, SolSanctumLunaSolRoomsFirstLightTimer, SolSanctumLunaSolRoomsFourthLightTimer, SolSanctumLunaSolRoomsLandingShake, SolSanctumLunaSolRoomsSecondLightTimer, SolSanctumLunaSolRoomsThirdLightTimer, syCloseEvent(), syImportScriptSetExitRequest() and sySetTickEvent().

Referenced by scInit().

Definition at line 1018 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights

static void scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights(void)

Unused: the only way here is a branch of scSolSanctumStatueOpenSeal that cannot run (SOL_SANCTUM_STATUE_SOL_SANCTUM_LUNA_SOL_ROOMS_LIGHTS_SHOWN).

References fdActorFaceDirection(), fdActorJump(), fdActorSetAnimationAndWait(), fdCameraWaitForMove(), fdMapGridCopyMetatilesTo(), fdScriptFinishScreenTransition(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagGet(), gmFlagSet(), scSolSanctumLunaSolRoomsDrawSavedStatueLights(), scSolSanctumLunaSolRoomsFlashSavedStatueLights(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsShowMessageAndWait(), Sint32, syImportScriptSetExitRequest() and sySoundPlay().

Referenced by scInit().

Definition at line 1099 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsKradenSeesLunaPictureChange

static void scSolSanctumLunaSolRoomsKradenSeesLunaPictureChange(void)

Isaac comes back through the room of Luna's south doorway (metatiles (35, 16) and (36, 16)) once all four quarters are lit, and Kraden, by the picture, calls to him: "Look, Isaac! The picture of Luna changed to Sol!" But nothing else looks different, and he decides something else must have changed somewhere.

References fdActorFaceDirection(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scSolSanctumLunaSolRoomsAreAllStatueLightsLit(), scSolSanctumLunaSolRoomsShowMessageAndWait() and scWalkIntoLeader().

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 1207 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsRiseToElementalStarRoom

static void scSolSanctumLunaSolRoomsRiseToElementalStarRoom(void)

Isaac searches the north wall of the room of Sol, behind the symbol (metatiles (17, 6) and (18, 6)), once Kraden has seen the symbol change. Kraden comes out beside him, a portal opens with a shimmer ("Ah ha! This has to be it."), and Isaac rises slowly into the air, blinking, and vanishes upward; Kraden follows, "Wait for me, Isaac... I'm on my way!", and they arrive in the Elemental Star Room.

Before Kraden has seen the symbol change, nothing happens.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetSpriteColorById(), fdActorShowEmote(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdTilesetAnimationResume(), gmFlagGet(), gmFlagSet(), scSolSanctumLunaSolRoomsShowMessageAndWait(), Sint32, syImportScriptSetExitRequest(), sySoundPlay() and sySynch().

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 1301 of file sol_sanctum_luna_sol_rooms.c.

scInit

Sint32 scInit(void)

Sets up Sol Sanctum's rooms of Sol and Luna and plays the script this entrance calls for.

References fdEffectInitSparkles(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdQueueMusic(), fdScriptGetFlag(), fdTilesetAnimationResume(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scSolSanctumLunaSolRoomsAreAllStatueLightsLit(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed(), scSolSanctumLunaSolRoomsSpringTrap(), scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights(), Sint32 and sySynch().

Definition at line 1457 of file sol_sanctum_luna_sol_rooms.c.

scSolSanctumLunaSolRoomsTalkToKraden

static void scSolSanctumLunaSolRoomsTalkToKraden(void)

Isaac talks to Kraden by the picture of Luna: "Let me know what you find" if Isaac agreed to look farther up the passage, or "Just wait over there."

References fdActorFaceDirection(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart() and gmFlagGet().

Referenced by SolSanctumLunaSolRoomsCues.

Definition at line 1784 of file sol_sanctum_luna_sol_rooms.c.

Variables in detail

SolSanctumLunaSolRoomsSecondLightTimer

Uint16 SolSanctumLunaSolRoomsSecondLightTimer

Each falling light's step, advanced three ticks in four: 0 to 4 as it falls, then on until it starts again (STEP_FALLING_LIGHT).

Referenced by scSolSanctumLunaSolRoomsSpringTrap().

Definition at line 82 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsThirdLightTimer

Uint16 SolSanctumLunaSolRoomsThirdLightTimer

Referenced by scSolSanctumLunaSolRoomsSpringTrap().

Definition at line 83 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsFirstLightTimer

Uint16 SolSanctumLunaSolRoomsFirstLightTimer

Referenced by scSolSanctumLunaSolRoomsSpringTrap() and scSolSanctumLunaSolRoomsUpdateFirstFallingLight().

Definition at line 84 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsLandingShake

Sint32 SolSanctumLunaSolRoomsLandingShake

Set to 2 as a falling light lands: the rooms shake for a tick, then settle.

References Sint32.

Referenced by scSolSanctumLunaSolRoomsSpringTrap() and scSolSanctumLunaSolRoomsUpdateFirstFallingLight().

Definition at line 86 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsFourthLightTimer

Uint16 SolSanctumLunaSolRoomsFourthLightTimer

Referenced by scSolSanctumLunaSolRoomsSpringTrap().

Definition at line 87 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsEntrances

extern SCENE_ENTRANCE SolSanctumLunaSolRoomsEntrances[]

SCENE_ENTRANCE SolSanctumLunaSolRoomsEntrances[]

Referenced by scGetEntrances().

Definition at lines 89 and 1803 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsExits

extern Uint32 SolSanctumLunaSolRoomsExits[]

Uint32 SolSanctumLunaSolRoomsExits[]

Referenced by scGetExits().

Definition at lines 90 and 1825 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsActorPlacements

extern ACTOR_PLACE SolSanctumLunaSolRoomsActorPlacements[]

ACTOR_PLACE SolSanctumLunaSolRoomsActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 91 and 1853 of file sol_sanctum_luna_sol_rooms.c.

SolSanctumLunaSolRoomsCues

extern CUE SolSanctumLunaSolRoomsCues[]

CUE SolSanctumLunaSolRoomsCues[]

References scSolSanctumLunaSolRoomsClearBackdropColor(), scSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum(), scSolSanctumLunaSolRoomsKradenSeesLunaPictureChange(), scSolSanctumLunaSolRoomsKradenStopsPartyLeaving(), scSolSanctumLunaSolRoomsRestorePlainTint(), scSolSanctumLunaSolRoomsRiseToElementalStarRoom(), scSolSanctumLunaSolRoomsTalkToKraden(), scSolSanctumLunaSolRoomsTintLunaRoom(), scSolSanctumLunaSolRoomsTintPassageBetweenRooms() and scSolSanctumLunaSolRoomsTintSolRoom().

Referenced by scGetCues().

Definition at lines 92 and 1880 of file sol_sanctum_luna_sol_rooms.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_NO_TINTFLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_BLUE_TINTEDFLAG_SOL_SANCTUM_LUNA_SOL_ROOMS_WARM_TINTEDFLAG_SOL_SANCTUM_RESCUE_ARRIVAL_SEENSOL_SANCTUM_BLUE_TINTSOL_SANCTUM_WARM_TINTDRAW_LIGHTMOVE_LIGHT_DOWNCLEAR_LIGHT_PATHSTATUE_LIGHTS_LIT_ROWSTATUE_LIGHTS_DARK_ROWMIDDLE_LAYER_ROWBEAM_COLUMNDRAW_PORTALDRAW_BEAMCLEAR_BEAMPORTAL_ANIMATION_APORTAL_ANIMATION_BSTEP_FALLING_LIGHTSOL_SANCTUM_FALLING_LIGHTEnumerations in detailSOL_SANCTUM_LUNA_SOL_ROOMS_ACTOR_IDSOL_SANCTUM_LUNA_SOL_ROOMS_METATILE_BEHAVIORFunctions in detailscSolSanctumLunaSolRoomsIntroduceSolAndLunaRoomsscSolSanctumLunaSolRoomsDiscussFloorSymbolChangingToLunascSolSanctumLunaSolRoomsAreAllStatueLightsLitscSolSanctumLunaSolRoomsShowMessageAndWaitscSolSanctumLunaSolRoomsArriveAfterWiseOnesRescuescGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscGetCuesscSolSanctumLunaSolRoomsTintSolRoomscSolSanctumLunaSolRoomsRestorePlainTintscSolSanctumLunaSolRoomsTintLunaRoomscSolSanctumLunaSolRoomsTintPassageBetweenRoomsscSolSanctumLunaSolRoomsClearBackdropColorscSolSanctumLunaSolRoomsDrawStatueLightTilesscSolSanctumLunaSolRoomsDrawCurrentStatueLightsscSolSanctumLunaSolRoomsDrawSavedStatueLightsscSolSanctumLunaSolRoomsDarkenCurrentStatueLightsscSolSanctumLunaSolRoomsDarkenSavedStatueLightsscSolSanctumLunaSolRoomsFlashCurrentStatueLightsscSolSanctumLunaSolRoomsFlashSavedStatueLightsscSolSanctumLunaSolRoomsKradenFindsHeartOfSanctumscSolSanctumLunaSolRoomsKradenStopsPartyLeavingscSolSanctumLunaSolRoomsUpdateFirstFallingLightscSolSanctumLunaSolRoomsOpenOnKradenInLunaRoomscSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmedscSolSanctumLunaSolRoomsSpringTrapscSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLightsscSolSanctumLunaSolRoomsKradenSeesLunaPictureChangescSolSanctumLunaSolRoomsRiseToElementalStarRoomscInitscSolSanctumLunaSolRoomsTalkToKradenVariables in detailSolSanctumLunaSolRoomsSecondLightTimerSolSanctumLunaSolRoomsThirdLightTimerSolSanctumLunaSolRoomsFirstLightTimerSolSanctumLunaSolRoomsLandingShakeSolSanctumLunaSolRoomsFourthLightTimerSolSanctumLunaSolRoomsEntrancesSolSanctumLunaSolRoomsExitsSolSanctumLunaSolRoomsActorPlacementsSolSanctumLunaSolRoomsCues