Skip to Content
The Alchemy Project

src/scene/sol_sanctum_statue.c

Sol Sanctum (SceneIdSolSanctumStatue), the room of what Kraden calls the statue puzzle, off the Luna and Sol rooms (SceneIdSolSanctumLunaSolRooms) and leading on to a room with a Psynergy Stone (SceneIdSolSanctumPsynergyStone). More…

Structures

NameDescription
structMETATILE_COPYA block of metatiles copied from one place in the map grid to another.
structSEAL_OPENINGThe seal being opened.

Macros

NameDescription
#defineFLAG_SOL_SANCTUM_CENTER_HOLE_OPEN FLAG_SCENE_TEMP(0x07)Both beams have opened the hole in the floor before the center statue.
#defineDRAW_LEFT_BEAM () fdMapGridCopyMetatilesTo(0, 59, 15, 38, 4, 3)The west hall's beams and hole, drawn from spare metatiles the map keeps: on map layer 1 (the map's metatiles from (0, 32)) the beams, from its row 27 on, and on the ground the open hole, from metatile (0, 28).
#defineDRAW_RIGHT_BEAM () fdMapGridCopyMetatilesTo(4, 59, 17, 38, 4, 3)The right beam statue's beam: layer 1's metatiles (17, 6) to (20, 8).
#defineDRAW_CROSSED_BEAMS () fdMapGridCopyMetatilesTo(8, 60, 17, 39, 2, 2)Both beams, where they cross over the floor before the sun-disc statue: layer 1's metatiles (17, 7) to (18, 8).
#defineDRAW_CENTER_HOLE () fdMapGridCopyMetatilesTo(0, 28, 17, 8, 2, 1)The hole open in the floor before the sun-disc statue: metatiles (17, 8) and (18, 8).
#defineFLAG_SOL_SANCTUM_TRAP_DISARMED_EXPLAINED FLAG_AREA_TEMP(0x0a)Set once Kraden has found the hole and explained the disarmed trap.
#defineFLAG_SOL_SANCTUM_STATUE_PUZZLE_EXPLAINED FLAG_AREA_TEMP(0x0b)Set once Kraden has explained the statue puzzle's trap.
#defineSOL_SANCTUM_STATUE_FRONT_CLOUD_ROW_Y_OFFSETHow far below the other two the front row of clouds, the fastest, is drawn: 8 pixels, and 6 in the French, Spanish and Italian editions.
#defineSOL_SANCTUM_STATUE_ROW_SPRITE_COUNT 9A row of sky clouds: nine sprites 32 pixels wide, 288 pixels across the 240-pixel screen as the row scrolls.
#defineSOL_SANCTUM_STATUE_SPRITE_WIDTH 32
#defineMETATILE_COPY_SET (copy, x, y, toX, toY, columns, rows)Sets a metatile copy: columns by rows metatiles from (x, y) to (toX, toY).
#defineCENTER_HOLE_FLASHES 22The floor before the center statue flashes this many times, eight ticks each, as it opens.
#defineSCROLL_OFFSET_STEP 128The clouds' scroll offset gains this a tick.
#defineROW_SPRITE_BYTES (4 * TILE_SIZE_4BPP)Each drifting row's picture: one 32x8 sprite, repeated along the row.
#defineCOPY_METATILES (copy)Copies a seal's metatile copy (METATILE_COPY) onto the map.
#defineSEAL_PULSES 20The opened seal pulses this many times, a glitter at each.

Enumerations

NameDescription
enumanonymous enum { BACK_CLOUD_ROW_PALETTE, MIDDLE_CLOUD_ROW_PALETTE, FRONT_CLOU … }The basic sprite palettes (syPaletteLoadBasicSpriteColors) the three rows of clouds are drawn in, back to front.
enumSOL_SANCTUM_STATUE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_NORTHWEST_STATUE, METAT … }The metatile behaviors the step cues answer.
enumSOL_SANCTUM_STATUE_BEAM_TRACK { METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_LEFT_TRACK_OUTSIDE_TOP, … }The metatiles of the beam statues' tracks, where Isaac stands to push them.
enumSOL_SANCTUM_STATUE_ACTOR_ID { ACTOR_KRADEN, ACTOR_NORTHWEST_STATUE, ACTOR_LEFT_BEAM_STATUE … }The placed actors, numbered in the order of SolSanctumStatueActorPlacements.
enumanonymous enum { PAN_SOUTH, PAN_NORTH }Which way scSolSanctumStatueUnusedPutOutSeals pans the camera toward the east hall's picture.

Functions

NameDescription
static voidscSolSanctumStatueInitScrollingSprites (void)Loads the three strips of graphics and fills in a row of sprites for each.
static voidscSolSanctumStatueCenterStatueMoved (void)Isaac uses Move to draw the sun-disc statue one metatile south from its place at the north of the west hall (metatiles (17, 7) and (18, 7)).
static voidscSolSanctumStatuePushStatue (Sint32 statueId, Sint32 statueColumn, Sint32 statueRow, Sint32 leaderColumn, Sint32 leaderRow)Moves the leader and statue together to the centers of their target metatiles.
static Sint32scSolSanctumStatueIsActorAtMetatile (Sint32 actorId, Sint32 column, Sint32 row)Returns 1 when the actor stands in the given map metatile.
static voidscSolSanctumStatueOpenNorthwestSeal (void)Opens the northwest seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.
static voidscSolSanctumStatueOpenNortheastSeal (void)Opens the northeast seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.
static voidscSolSanctumStatueOpenSouthwestSeal (void)Opens the southwest seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.
static voidscSolSanctumStatueOpenSoutheastSeal (void)Opens the southeast seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.
static voidscSolSanctumStatueOpenSeal (void)Animates the seal and either advances the story or resets its statue.
static voidscSolSanctumStatueShineLeftBeam (void)Draws the left beam and opens the floor when the right beam is also lit.
static voidscSolSanctumStatueShineRightBeam (void)Draws the right beam and opens the floor when the left beam is also lit.
static voidscSolSanctumStatueSayThenWait (Sint32 speaker, Sint32 ticks)Shows the next message of the script, then waits.
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 Kraden, the eight statues, the center statue and its moved copy (ACTOR_KRADEN to ACTOR_MOVED_CENTER_STATUE), then Jenna and Garet.
const CUE *scGetCues (void)Returns the statues' Move and push scripts, each row only until its seal or beam is done.
static Sint32scSolSanctumStatueSelectStoryExit (void)Chooses the script in the Luna and Sol rooms that a newly opened seal leads to, and requests its exit.
static voidscSolSanctumStatueOpenCenterHole (void)Animates the floor opening before the center statue once both beams shine, then lets the statue drop in if Move has already brought it there.
static voidscSolSanctumStatueExplainTrapDisarmed (void)Kraden's second visit, a script in which he comes to find the hole in the floor.
static voidscSolSanctumStatueExplainStatuePuzzle (void)Kraden's first visit, a script in which he runs here to warn that the mechanism is a trap.
static voidscSolSanctumStatueUnusedPutOutSeals (void)With all four seals open, the leader steps up to the east hall's picture from the side he is on, and the camera pans 30 pixels toward it.
static voidscSolSanctumStatueUpdateScrollingSprites (void)Draws the three rows of sky clouds while they overlap the screen.
static voidscSolSanctumStatueJumpNorth (void)Walking north over a jump spot jumps the leader two metatiles ahead (fdTryJumpForward).
static voidscSolSanctumStatueJumpSouth (void)Walking south over a jump spot jumps the leader two metatiles ahead.
static voidscSolSanctumStatueUnusedMoveNorthwestStatue (void)Unused: the eastern hall's northwest statue slides by itself to (504, 152), the metatile where Move opens its seal, unless that seal is already open.
Sint32scInit (void)Restores the room's statues, beams and seals from their flags and plays Kraden's two visits.
static voidscSolSanctumStatueNorthwestStatueMoved (void)Isaac moves the northwest statue of the east hall with Move; if it now stands on its seal (metatile (31, 9)), the seal opens.
static voidscSolSanctumStatueNortheastStatueMoved (void)Isaac moves the northeast statue of the east hall with Move; if it now stands on its seal (metatile (40, 9)), the seal opens.
static voidscSolSanctumStatueSouthwestStatueMoved (void)Isaac moves the southwest statue of the east hall with Move; if it now stands on its seal (metatile (31, 12)), the seal opens.
static voidscSolSanctumStatueSoutheastStatueMoved (void)Isaac moves the southeast statue of the east hall with Move; if it now stands on its seal (metatile (40, 12)), the seal opens.
static voidscSolSanctumStatueLeftBeamStatueMoved (void)Isaac moves the left beam statue with Move; once it stands beside the sun-disc statue (metatile (14, 7)), it shines its beam on it.
static voidscSolSanctumStatueRightBeamStatueMoved (void)Isaac moves the right beam statue with Move; once it stands beside the sun-disc statue (metatile (21, 7)), it shines its beam on it.
static voidscSolSanctumStatuePrepareMoveOnCenterStatue (void)Nothing visible happens as Isaac starts to cast Move on the sun-disc statue while standing right below it (metatiles (17, 8) and (18, 8)).
static voidscSolSanctumStatuePrepareMoveOnLeftBeamStatue (void)Nothing visible happens as Isaac starts to cast Move on the left beam statue while standing at the top of its track or just east of it (metatiles (13, 7) and (14, 7)).
static voidscSolSanctumStatuePrepareMoveOnRightBeamStatue (void)Nothing visible happens as Isaac starts to cast Move on the right beam statue while standing at the top of its track or just west of it (metatiles (21, 7) and (22, 7)).
static voidscSolSanctumStatuePushCenterStatueNorth (void)Isaac walks north into the sun-disc statue once Move has drawn it a metatile south, and pushes it back to its place.
static voidscSolSanctumStatuePushNorthwestStatue (void)Isaac walks into the northwest statue of the east hall and pushes it onto its seal (metatile (31, 9)), which opens.
static voidscSolSanctumStatuePushNortheastStatue (void)Isaac walks into the northeast statue of the east hall and pushes it onto its seal (metatile (40, 9)), which opens.
static voidscSolSanctumStatuePushSouthwestStatue (void)Isaac walks into the southwest statue of the east hall and pushes it onto its seal (metatile (31, 12)), which opens.
static voidscSolSanctumStatuePushSoutheastStatue (void)Isaac walks into the southeast statue of the east hall and pushes it onto its seal (metatile (40, 12)), which opens.
static voidscSolSanctumStatuePushLeftBeamStatueEast (void)Walking into the left beam statue from the west slides it east beside the sun-disc statue, where it shines its beam.
static voidscSolSanctumStatuePushLeftBeamStatueSouth (void)Walking into the left beam statue from the north slides it one metatile south.
static voidscSolSanctumStatuePushLeftBeamStatueNorth (void)Walking into the left beam statue from the south slides it one metatile north.
static voidscSolSanctumStatuePushRightBeamStatueWest (void)Walking into the right beam statue from the east slides it west beside the sun-disc statue, where it shines its beam.
static voidscSolSanctumStatuePushRightBeamStatueSouth (void)Walking into the right beam statue from the north slides it one metatile south.
static voidscSolSanctumStatuePushRightBeamStatueNorth (void)Walking into the right beam statue from the south slides it one metatile north.

Variables

NameDescription
extern SCENE_ENTRANCESolSanctumStatueEntrances []
extern Uint32SolSanctumStatueExits []
extern ACTOR_PLACESolSanctumStatueActorPlacements []
extern CUESolSanctumStatueCues []
extern Sint32SolSanctumStatueScrollOffsetThe clouds' scroll, SCROLL_OFFSET_STEP more each tick.
static SEAL_OPENINGSealOpeningThe seal the last statue moved has set up to open.
static union { … }ScrollingSpritesInitialization writes each three-word OAM packet, and drawing updates its fields.

Description

Sol Sanctum (SceneIdSolSanctumStatue), the room of what Kraden calls the statue puzzle, off the Luna and Sol rooms (SceneIdSolSanctumLunaSolRooms) and leading on to a room with a Psynergy Stone (SceneIdSolSanctumPsynergyStone).

The room is two halls. In the west hall the sun-disc statue, the center statue, stands at the north, with four winged statues before it: two that slide on tracks to stand beside it and shine a beam at it, and two that never move. In the east hall four more winged statues can each be pushed, or moved with Move, onto a seal in the floor.

Walking into a statue pushes it a metatile (scSolSanctumStatuePushStatue), and Move ends in a check of where it stands.

Each move's cue carries the flag of what it achieves (a seal open, a beam shining, the center statue moved), so a statue stops answering once it has done its part. scInit redraws the room from those story flags on every entry.

The puzzle is a trap, and the room follows the story flags in order:

Both of Kraden's visits hold Jenna and Garet in place beside the leader, then walk them back into the party. Any other arrival hides them.

Retreat does not work here.

An event draws three rows of sprites that drift sideways at different speeds (scSolSanctumStatueUpdateScrollingSprites). They are the clouds of the sky seen between the pillars of the colonnade along the room's north wall. They sit 80 pixels down the map at the lowest priority, so they pass in front of the sky and behind the pillars. The rows move an eighth, a quarter and a half of a pixel a tick, the fastest drawn lowest (https://alchemy.pascalpixel.com/places/sol-sanctum-statue/sky-rows.gif: the top of the screen twice its size, above the sprites alone and the backgrounds alone, the clouds drifting behind the pillars).

Once Mt. Aleph has erupted (FLAG_SOL_SANCTUM_ERUPTED) the room rumbles and shakes, as the rest of the sanctum does.

Macros in detail

FLAG_SOL_SANCTUM_CENTER_HOLE_OPEN

#define FLAG_SOL_SANCTUM_CENTER_HOLE_OPEN FLAG_SCENE_TEMP(0x07)

Both beams have opened the hole in the floor before the center statue. Until then, Move on the center statue first walks the leader clear of it.

Referenced by scSolSanctumStatueCenterStatueMoved() and scSolSanctumStatueOpenCenterHole().

Definition at line 75 of file sol_sanctum_statue.c.

DRAW_LEFT_BEAM

#define DRAW_LEFT_BEAM() fdMapGridCopyMetatilesTo(0, 59, 15, 38, 4, 3)

The west hall's beams and hole, drawn from spare metatiles the map keeps: on map layer 1 (the map's metatiles from (0, 32)) the beams, from its row 27 on, and on the ground the open hole, from metatile (0, 28). The left beam statue's blue beam, from the statue beside the sun-disc statue to the floor before it: layer 1's metatiles (15, 6) to (18, 8).

Referenced by scInit(), scSolSanctumStatueOpenCenterHole() and scSolSanctumStatueShineLeftBeam().

Definition at line 82 of file sol_sanctum_statue.c.

DRAW_RIGHT_BEAM

#define DRAW_RIGHT_BEAM() fdMapGridCopyMetatilesTo(4, 59, 17, 38, 4, 3)

The right beam statue's beam: layer 1's metatiles (17, 6) to (20, 8).

Referenced by scInit(), scSolSanctumStatueOpenCenterHole() and scSolSanctumStatueShineRightBeam().

Definition at line 84 of file sol_sanctum_statue.c.

DRAW_CROSSED_BEAMS

#define DRAW_CROSSED_BEAMS() fdMapGridCopyMetatilesTo(8, 60, 17, 39, 2, 2)

Both beams, where they cross over the floor before the sun-disc statue: layer 1's metatiles (17, 7) to (18, 8).

Referenced by scInit(), scSolSanctumStatueOpenCenterHole(), scSolSanctumStatueShineLeftBeam() and scSolSanctumStatueShineRightBeam().

Definition at line 88 of file sol_sanctum_statue.c.

DRAW_CENTER_HOLE

#define DRAW_CENTER_HOLE() fdMapGridCopyMetatilesTo(0, 28, 17, 8, 2, 1)

The hole open in the floor before the sun-disc statue: metatiles (17, 8) and (18, 8).

Referenced by scInit() and scSolSanctumStatueOpenCenterHole().

Definition at line 91 of file sol_sanctum_statue.c.

FLAG_SOL_SANCTUM_TRAP_DISARMED_EXPLAINED

#define FLAG_SOL_SANCTUM_TRAP_DISARMED_EXPLAINED FLAG_AREA_TEMP(0x0a)

Set once Kraden has found the hole and explained the disarmed trap. This and the next are area flags, cleared when the party enters another area.

Referenced by scInit().

Definition at line 95 of file sol_sanctum_statue.c.

FLAG_SOL_SANCTUM_STATUE_PUZZLE_EXPLAINED

#define FLAG_SOL_SANCTUM_STATUE_PUZZLE_EXPLAINED FLAG_AREA_TEMP(0x0b)

Set once Kraden has explained the statue puzzle's trap.

Referenced by scInit().

Definition at line 97 of file sol_sanctum_statue.c.

SOL_SANCTUM_STATUE_FRONT_CLOUD_ROW_Y_OFFSET

#define SOL_SANCTUM_STATUE_FRONT_CLOUD_ROW_Y_OFFSET

How far below the other two the front row of clouds, the fastest, is drawn: 8 pixels, and 6 in the French, Spanish and Italian editions.

Referenced by scSolSanctumStatueUpdateScrollingSprites().

Definition at line 101 of file sol_sanctum_statue.c.

SOL_SANCTUM_STATUE_ROW_SPRITE_COUNT

#define SOL_SANCTUM_STATUE_ROW_SPRITE_COUNT 9

A row of sky clouds: nine sprites 32 pixels wide, 288 pixels across the 240-pixel screen as the row scrolls.

Referenced by ScrollingSprites, scSolSanctumStatueInitScrollingSprites() and scSolSanctumStatueUpdateScrollingSprites().

Definition at line 106 of file sol_sanctum_statue.c.

SOL_SANCTUM_STATUE_SPRITE_WIDTH

#define SOL_SANCTUM_STATUE_SPRITE_WIDTH 32

Referenced by scSolSanctumStatueUpdateScrollingSprites().

Definition at line 107 of file sol_sanctum_statue.c.

METATILE_COPY_SET

#define METATILE_COPY_SET(copy, x, y, toX, toY, columns, rows)

Sets a metatile copy: columns by rows metatiles from (x, y) to (toX, toY).

Referenced by scSolSanctumStatueOpenNortheastSeal(), scSolSanctumStatueOpenNorthwestSeal(), scSolSanctumStatueOpenSoutheastSeal() and scSolSanctumStatueOpenSouthwestSeal().

Definition at line 185 of file sol_sanctum_statue.c.

CENTER_HOLE_FLASHES

#define CENTER_HOLE_FLASHES 22

The floor before the center statue flashes this many times, eight ticks each, as it opens.

Referenced by scSolSanctumStatueOpenCenterHole().

Definition at line 310 of file sol_sanctum_statue.c.

SCROLL_OFFSET_STEP

#define SCROLL_OFFSET_STEP 128

The clouds' scroll offset gains this a tick. The back row moves by its 1024th part, the middle by its 512th and the front by its 256th: an eighth, a quarter and half a pixel a tick.

Referenced by scSolSanctumStatueUpdateScrollingSprites().

Definition at line 801 of file sol_sanctum_statue.c.

ROW_SPRITE_BYTES

#define ROW_SPRITE_BYTES (4 * TILE_SIZE_4BPP)

Each drifting row's picture: one 32x8 sprite, repeated along the row.

Referenced by scSolSanctumStatueInitScrollingSprites().

Definition at line 1032 of file sol_sanctum_statue.c.

COPY_METATILES

#define COPY_METATILES(copy)

Copies a seal's metatile copy (METATILE_COPY) onto the map.

Referenced by scSolSanctumStatueOpenSeal().

Definition at line 1592 of file sol_sanctum_statue.c.

SEAL_PULSES

#define SEAL_PULSES 20

The opened seal pulses this many times, a glitter at each.

Referenced by scSolSanctumStatueOpenSeal().

Definition at line 1601 of file sol_sanctum_statue.c.

Enumerations in detail

anonymous enum

enum { BACK_CLOUD_ROW_PALETTE, MIDDLE_CLOUD_ROW_PALETTE, FRONT_CLOUD_ROW_PALETTE }

The basic sprite palettes (syPaletteLoadBasicSpriteColors) the three rows of clouds are drawn in, back to front.

EnumeratorValueDescription
BACK_CLOUD_ROW_PALETTE10
MIDDLE_CLOUD_ROW_PALETTE13
FRONT_CLOUD_ROW_PALETTE0

Definition at line 111 of file sol_sanctum_statue.c.

SOL_SANCTUM_STATUE_METATILE_BEHAVIOR

enum SOL_SANCTUM_STATUE_METATILE_BEHAVIOR

The metatile behaviors the step cues answer.

They are the jump spots and the four seal statues' and the center statue's metatiles; the beam statues' tracks follow in their own enum.

EnumeratorValueDescription
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_NORTHWEST_STATUE5
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_NORTHEAST_STATUE6
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_SOUTHWEST_STATUE7
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_SOUTHEAST_STATUE8
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_JUMP_NORTH10A jump spot,
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_JUMP_SOUTH11crossed northward. A jump spot,
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_CENTER_STATUE32crossed southward.

Definition at line 122 of file sol_sanctum_statue.c.

SOL_SANCTUM_STATUE_BEAM_TRACK

enum SOL_SANCTUM_STATUE_BEAM_TRACK

The metatiles of the beam statues' tracks, where Isaac stands to push them.

Each track runs north from the statue's start, metatiles (13, 7) to (13, 10) for the left statue and (22, 7) to (22, 10) for the right, with one more metatile beside its top on the outer side. From the top the statue is pushed inward to stand beside the sun-disc statue.

EnumeratorValueDescription
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_LEFT_TRACK_OUTSIDE_TOP20
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_LEFT_TRACK_TOP
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_LEFT_TRACK_SECOND
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_LEFT_TRACK_THIRD
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_LEFT_TRACK_BOTTOM
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_RIGHT_TRACK_OUTSIDE_TOP
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_RIGHT_TRACK_TOP
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_RIGHT_TRACK_SECOND
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_RIGHT_TRACK_THIRD
METATILE_BEHAVIOR_SOL_SANCTUM_STATUE_RIGHT_TRACK_BOTTOM

Definition at line 141 of file sol_sanctum_statue.c.

SOL_SANCTUM_STATUE_ACTOR_ID

enum SOL_SANCTUM_STATUE_ACTOR_ID

The placed actors, numbered in the order of SolSanctumStatueActorPlacements.

They are Kraden, who stays out of sight until his two visits, the eight statues, and the center statue in its two places. Jenna and Garet, placed after them, keep their own slots.

Of the statues, four are pushed onto seals and two shine beams at the center. The other two never move.

EnumeratorValueDescription
ACTOR_KRADENACTOR_FIRST_PLACED
ACTOR_NORTHWEST_STATUE
ACTOR_LEFT_BEAM_STATUE
ACTOR_NORTHEAST_STATUE
ACTOR_RIGHT_BEAM_STATUE
ACTOR_SOUTHWEST_STATUE
ACTOR_LEFT_STILL_STATUESouth of the left beam statue, and moved by no
ACTOR_SOUTHEAST_STATUEscript.
ACTOR_RIGHT_STILL_STATUESouth of the right beam statue, and moved by no
ACTOR_CENTER_STATUEscript.
ACTOR_MOVED_CENTER_STATUEStands in the hole in the floor once the center statue has dropped in.

Definition at line 226 of file sol_sanctum_statue.c.

anonymous enum

enum { PAN_SOUTH, PAN_NORTH }

Which way scSolSanctumStatueUnusedPutOutSeals pans the camera toward the east hall's picture.

EnumeratorValueDescription
PAN_SOUTH1
PAN_NORTH2

Definition at line 694 of file sol_sanctum_statue.c.

Functions in detail

scSolSanctumStatueInitScrollingSprites

static void scSolSanctumStatueInitScrollingSprites(void)

Loads the three strips of graphics and fills in a row of sprites for each.

References pixels, ScrollingSprites, scSolSanctumStatueUpdateScrollingSprites(), Sint32, SolSanctumStatueSpriteRowsGraphics, syDecompressByteLZ(), syHeapSlotAllocateEWRAM(), syHeapSlotRelease(), sySetTickEvent(), syVRAMCacheFindFreeEntry() and syVRAMCacheLoad().

Referenced by scInit().

Definition at lines 155 and 1035 of file sol_sanctum_statue.c.

scSolSanctumStatueCenterStatueMoved

static void scSolSanctumStatueCenterStatueMoved(void)

Isaac uses Move to draw the sun-disc statue one metatile south from its place at the north of the west hall (metatiles (17, 7) and (18, 7)). Once both beam statues shine on it, it slides on south into the hole that has opened in the sun on the floor and settles in it with a grinding of stone; the room shakes hard, settles, and "Something clicked!" From then on the seals in the east hall stay open.

With the beams not both shining, the statue only moves the one metatile, and if Isaac stood in its way he first steps back south of it. A beam completing the pair runs this too, dropping a statue Move has already brought down.

References fdActorGet(), fdActorSetDestination(), fdActorSetSpritePriority(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), fdSetMetatileBehaviorAt(), gmFlagGet(), gmFlagSet(), mnFieldMessageShow(), Sint32 and sySoundPlay().

Referenced by scSolSanctumStatueOpenCenterHole() and SolSanctumStatueCues.

Definition at lines 156 and 1225 of file sol_sanctum_statue.c.

scSolSanctumStatuePushStatue

static void scSolSanctumStatuePushStatue(Sint32 statueId, Sint32 statueColumn, Sint32 statueRow, Sint32 leaderColumn, Sint32 leaderRow)

Moves the leader and statue together to the centers of their target metatiles.

References fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptStart(), Sint32 and sySoundPlay().

Referenced by scSolSanctumStatuePushLeftBeamStatueEast(), scSolSanctumStatuePushLeftBeamStatueNorth(), scSolSanctumStatuePushLeftBeamStatueSouth(), scSolSanctumStatuePushNortheastStatue(), scSolSanctumStatuePushNorthwestStatue(), scSolSanctumStatuePushRightBeamStatueNorth(), scSolSanctumStatuePushRightBeamStatueSouth(), scSolSanctumStatuePushRightBeamStatueWest(), scSolSanctumStatuePushSoutheastStatue() and scSolSanctumStatuePushSouthwestStatue().

Definition at lines 157 and 1458 of file sol_sanctum_statue.c.

scSolSanctumStatueIsActorAtMetatile

static Sint32 scSolSanctumStatueIsActorAtMetatile(Sint32 actorId, Sint32 column, Sint32 row)

Returns 1 when the actor stands in the given map metatile.

References fdActorGet() and Sint32.

Referenced by scSolSanctumStatueLeftBeamStatueMoved(), scSolSanctumStatueNortheastStatueMoved(), scSolSanctumStatueNorthwestStatueMoved(), scSolSanctumStatueRightBeamStatueMoved(), scSolSanctumStatueSoutheastStatueMoved() and scSolSanctumStatueSouthwestStatueMoved().

Definition at lines 162 and 1484 of file sol_sanctum_statue.c.

scSolSanctumStatueOpenNorthwestSeal

static void scSolSanctumStatueOpenNorthwestSeal(void)

Opens the northwest seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.

References scSolSanctumStatueOpenSeal() and SealOpening.

Referenced by scSolSanctumStatueNorthwestStatueMoved() and scSolSanctumStatuePushNorthwestStatue().

Definition at lines 164 and 1502 of file sol_sanctum_statue.c.

scSolSanctumStatueOpenNortheastSeal

static void scSolSanctumStatueOpenNortheastSeal(void)

Opens the northeast seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.

References scSolSanctumStatueOpenSeal() and SealOpening.

Referenced by scSolSanctumStatueNortheastStatueMoved() and scSolSanctumStatuePushNortheastStatue().

Definition at lines 165 and 1525 of file sol_sanctum_statue.c.

scSolSanctumStatueOpenSouthwestSeal

static void scSolSanctumStatueOpenSouthwestSeal(void)

Opens the southwest seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.

References scSolSanctumStatueOpenSeal() and SealOpening.

Referenced by scSolSanctumStatuePushSouthwestStatue() and scSolSanctumStatueSouthwestStatueMoved().

Definition at lines 166 and 1548 of file sol_sanctum_statue.c.

scSolSanctumStatueOpenSoutheastSeal

static void scSolSanctumStatueOpenSoutheastSeal(void)

Opens the southeast seal (scSolSanctumStatueOpenSeal): the metatiles it lights, its flag, where the leader jumps back to and where its statue slides back to if the seal closes again.

References scSolSanctumStatueOpenSeal() and SealOpening.

Referenced by scSolSanctumStatuePushSoutheastStatue() and scSolSanctumStatueSoutheastStatueMoved().

Definition at lines 167 and 1571 of file sol_sanctum_statue.c.

scSolSanctumStatueOpenSeal

static void scSolSanctumStatueOpenSeal(void)

Animates the seal and either advances the story or resets its statue.

References fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorSetDestination(), fdCameraFollowActor(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagGet(), gmFlagSet(), scSolSanctumStatueSelectStoryExit(), scSolSanctumStatueUnusedPutOutSeals(), SealOpening, Sint32, syImportScriptSetExitRequest() and sySoundPlay().

Referenced by scSolSanctumStatueOpenNortheastSeal(), scSolSanctumStatueOpenNorthwestSeal(), scSolSanctumStatueOpenSoutheastSeal() and scSolSanctumStatueOpenSouthwestSeal().

Definition at lines 168 and 1604 of file sol_sanctum_statue.c.

scSolSanctumStatueShineLeftBeam

static void scSolSanctumStatueShineLeftBeam(void)

Draws the left beam and opens the floor when the right beam is also lit.

References fdActorFaceDirection(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scSolSanctumStatueOpenCenterHole() and sySoundPlay().

Referenced by scSolSanctumStatueLeftBeamStatueMoved() and scSolSanctumStatuePushLeftBeamStatueEast().

Definition at lines 169 and 1686 of file sol_sanctum_statue.c.

scSolSanctumStatueShineRightBeam

static void scSolSanctumStatueShineRightBeam(void)

Draws the right beam and opens the floor when the left beam is also lit.

References fdActorFaceDirection(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scSolSanctumStatueOpenCenterHole() and sySoundPlay().

Referenced by scSolSanctumStatuePushRightBeamStatueWest() and scSolSanctumStatueRightBeamStatueMoved().

Definition at lines 170 and 1716 of file sol_sanctum_statue.c.

scSolSanctumStatueSayThenWait

static void scSolSanctumStatueSayThenWait(Sint32 speaker, Sint32 ticks)

Shows the next message of the script, then waits.

References fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by scSolSanctumStatueExplainStatuePuzzle() and scSolSanctumStatueExplainTrapDisarmed().

Definition at lines 171 and 1746 of file sol_sanctum_statue.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SolSanctumStatueEntrances.

Definition at line 255 of file sol_sanctum_statue.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 260 of file sol_sanctum_statue.c.

scGetExits

const Uint32 *scGetExits(void)

References SolSanctumStatueExits.

Definition at line 265 of file sol_sanctum_statue.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Returns Kraden, the eight statues, the center statue and its moved copy (ACTOR_KRADEN to ACTOR_MOVED_CENTER_STATUE), then Jenna and Garet.

References SolSanctumStatueActorPlacements.

Definition at line 272 of file sol_sanctum_statue.c.

scGetCues

const CUE *scGetCues(void)

Returns the statues' Move and push scripts, each row only until its seal or beam is done.

References SolSanctumStatueCues.

Definition at line 279 of file sol_sanctum_statue.c.

scSolSanctumStatueSelectStoryExit

static Sint32 scSolSanctumStatueSelectStoryExit(void)

Chooses the script in the Luna and Sol rooms that a newly opened seal leads to, and requests its exit.

Returns 1 when it requests an exit, otherwise -1.

References gmFlagGet(), Sint32 and syImportScriptSetExitRequest().

Referenced by scSolSanctumStatueOpenSeal().

Definition at line 288 of file sol_sanctum_statue.c.

scSolSanctumStatueOpenCenterHole

static void scSolSanctumStatueOpenCenterHole(void)

Animates the floor opening before the center statue once both beams shine, then lets the statue drop in if Move has already brought it there.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptWait(), gmFlagSet(), scSolSanctumStatueCenterStatueMoved(), Sint32 and sySoundPlay().

Referenced by scSolSanctumStatueShineLeftBeam() and scSolSanctumStatueShineRightBeam().

Definition at line 314 of file sol_sanctum_statue.c.

scSolSanctumStatueExplainTrapDisarmed

static void scSolSanctumStatueExplainTrapDisarmed(void)

Kraden's second visit, a script in which he comes to find the hole in the floor.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdScriptClearFlag(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scSolSanctumStatueSayThenWait(), scWalkIntoLeader() and sySynch().

Referenced by scInit().

Definition at line 340 of file sol_sanctum_statue.c.

scSolSanctumStatueExplainStatuePuzzle

static void scSolSanctumStatueExplainStatuePuzzle(void)

Kraden's first visit, a script in which he runs here to warn that the mechanism is a trap.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), scSolSanctumStatueSayThenWait(), scWalkIntoLeader() and state.

Referenced by scInit().

Definition at line 491 of file sol_sanctum_statue.c.

scSolSanctumStatueUnusedPutOutSeals

static void scSolSanctumStatueUnusedPutOutSeals(void)

With all four seals open, the leader steps up to the east hall's picture from the side he is on, and the camera pans 30 pixels toward it. The picture flashes between the moon and the sun, faster and faster, and stays the sun; the statues' beams over it go out, and the camera pans back.

Unused: called only from the branch of scSolSanctumStatueOpenSeal that cannot run, since scSolSanctumStatueSelectStoryExit returns only 1 or -1.

References fdActorFaceDirection(), fdActorGet(), fdActorWalkToAndWait(), fdMapGridCopyMetatilesTo(), fdScriptWait() and Sint32.

Referenced by scSolSanctumStatueOpenSeal().

Definition at line 707 of file sol_sanctum_statue.c.

scSolSanctumStatueUpdateScrollingSprites

static void scSolSanctumStatueUpdateScrollingSprites(void)

Draws the three rows of sky clouds while they overlap the screen.

References fdMapGridScrollStateView(), ScrollingSprites, Sint32, SolSanctumStatueScrollOffset and syOAMAddSpriteAtDepth().

Referenced by scSolSanctumStatueInitScrollingSprites().

Definition at line 804 of file sol_sanctum_statue.c.

scSolSanctumStatueJumpNorth

static void scSolSanctumStatueJumpNorth(void)

Walking north over a jump spot jumps the leader two metatiles ahead (fdTryJumpForward).

References fdActorGet() and fdTryJumpForward().

Referenced by SolSanctumStatueCues.

Definition at line 851 of file sol_sanctum_statue.c.

scSolSanctumStatueJumpSouth

static void scSolSanctumStatueJumpSouth(void)

Walking south over a jump spot jumps the leader two metatiles ahead.

References fdActorGet() and fdTryJumpForward().

Referenced by SolSanctumStatueCues.

Definition at line 861 of file sol_sanctum_statue.c.

scSolSanctumStatueUnusedMoveNorthwestStatue

static void scSolSanctumStatueUnusedMoveNorthwestStatue(void)

Unused: the eastern hall's northwest statue slides by itself to (504, 152), the metatile where Move opens its seal, unless that seal is already open.

It opens nothing.

The player moves the statue there with Move instead.

References fdActorGet(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptStart() and gmFlagGet().

Definition at line 876 of file sol_sanctum_statue.c.

scInit

Sint32 scInit(void)

Restores the room's statues, beams and seals from their flags and plays Kraden's two visits.

References fdActorGet(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdEffectInitSparkles(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdQueueMusic(), fdScriptGetFlag(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scSolSanctumStatueExplainStatuePuzzle(), scSolSanctumStatueExplainTrapDisarmed(), scSolSanctumStatueInitScrollingSprites() and Sint32.

Definition at line 890 of file sol_sanctum_statue.c.

scSolSanctumStatueNorthwestStatueMoved

static void scSolSanctumStatueNorthwestStatueMoved(void)

Isaac moves the northwest statue of the east hall with Move; if it now stands on its seal (metatile (31, 9)), the seal opens.

References scSolSanctumStatueIsActorAtMetatile() and scSolSanctumStatueOpenNorthwestSeal().

Referenced by SolSanctumStatueCues.

Definition at line 1089 of file sol_sanctum_statue.c.

scSolSanctumStatueNortheastStatueMoved

static void scSolSanctumStatueNortheastStatueMoved(void)

Isaac moves the northeast statue of the east hall with Move; if it now stands on its seal (metatile (40, 9)), the seal opens.

References scSolSanctumStatueIsActorAtMetatile() and scSolSanctumStatueOpenNortheastSeal().

Referenced by SolSanctumStatueCues.

Definition at line 1099 of file sol_sanctum_statue.c.

scSolSanctumStatueSouthwestStatueMoved

static void scSolSanctumStatueSouthwestStatueMoved(void)

Isaac moves the southwest statue of the east hall with Move; if it now stands on its seal (metatile (31, 12)), the seal opens.

References scSolSanctumStatueIsActorAtMetatile() and scSolSanctumStatueOpenSouthwestSeal().

Referenced by SolSanctumStatueCues.

Definition at line 1109 of file sol_sanctum_statue.c.

scSolSanctumStatueSoutheastStatueMoved

static void scSolSanctumStatueSoutheastStatueMoved(void)

Isaac moves the southeast statue of the east hall with Move; if it now stands on its seal (metatile (40, 12)), the seal opens.

References scSolSanctumStatueIsActorAtMetatile() and scSolSanctumStatueOpenSoutheastSeal().

Referenced by SolSanctumStatueCues.

Definition at line 1120 of file sol_sanctum_statue.c.

scSolSanctumStatueLeftBeamStatueMoved

static void scSolSanctumStatueLeftBeamStatueMoved(void)

Isaac moves the left beam statue with Move; once it stands beside the sun-disc statue (metatile (14, 7)), it shines its beam on it.

References fdSetMetatileBehaviorAt(), scSolSanctumStatueIsActorAtMetatile() and scSolSanctumStatueShineLeftBeam().

Referenced by SolSanctumStatueCues.

Definition at line 1131 of file sol_sanctum_statue.c.

scSolSanctumStatueRightBeamStatueMoved

static void scSolSanctumStatueRightBeamStatueMoved(void)

Isaac moves the right beam statue with Move; once it stands beside the sun-disc statue (metatile (21, 7)), it shines its beam on it.

References fdSetMetatileBehaviorAt(), scSolSanctumStatueIsActorAtMetatile() and scSolSanctumStatueShineRightBeam().

Referenced by SolSanctumStatueCues.

Definition at line 1143 of file sol_sanctum_statue.c.

scSolSanctumStatuePrepareMoveOnCenterStatue

static void scSolSanctumStatuePrepareMoveOnCenterStatue(void)

Nothing visible happens as Isaac starts to cast Move on the sun-disc statue while standing right below it (metatiles (17, 8) and (18, 8)). The game makes the two metatiles he stands on walls for the cast, so that Move cannot draw the statue south on top of him; scSolSanctumStatueCenterStatueMoved opens them again when the cast ends.

References fdActorGet(), fdSetMetatileBehaviorAt() and Sint32.

Referenced by SolSanctumStatueCues.

Definition at line 1164 of file sol_sanctum_statue.c.

scSolSanctumStatuePrepareMoveOnLeftBeamStatue

static void scSolSanctumStatuePrepareMoveOnLeftBeamStatue(void)

Nothing visible happens as Isaac starts to cast Move on the left beam statue while standing at the top of its track or just east of it (metatiles (13, 7) and (14, 7)). The game makes the track's top metatile, (13, 7), a wall for the cast, so that Move cannot bring the statue up into it there; scSolSanctumStatueLeftBeamStatueMoved opens it again when the cast ends.

References fdActorGet(), fdSetMetatileBehaviorAt() and Sint32.

Referenced by SolSanctumStatueCues.

Definition at line 1186 of file sol_sanctum_statue.c.

scSolSanctumStatuePrepareMoveOnRightBeamStatue

static void scSolSanctumStatuePrepareMoveOnRightBeamStatue(void)

Nothing visible happens as Isaac starts to cast Move on the right beam statue while standing at the top of its track or just west of it (metatiles (21, 7) and (22, 7)). The game makes the track's top metatile, (22, 7), a wall for the cast, so that Move cannot bring the statue up into it there; scSolSanctumStatueRightBeamStatueMoved opens it again when the cast ends.

References fdActorGet(), fdSetMetatileBehaviorAt() and Sint32.

Referenced by SolSanctumStatueCues.

Definition at line 1203 of file sol_sanctum_statue.c.

scSolSanctumStatuePushCenterStatueNorth

static void scSolSanctumStatuePushCenterStatueNorth(void)

Isaac walks north into the sun-disc statue once Move has drawn it a metatile south, and pushes it back to its place.

References fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptStart() and sySoundPlay().

Referenced by SolSanctumStatueCues.

Definition at line 1325 of file sol_sanctum_statue.c.

scSolSanctumStatuePushNorthwestStatue

static void scSolSanctumStatuePushNorthwestStatue(void)

Isaac walks into the northwest statue of the east hall and pushes it onto its seal (metatile (31, 9)), which opens.

References scSolSanctumStatueOpenNorthwestSeal() and scSolSanctumStatuePushStatue().

Referenced by SolSanctumStatueCues.

Definition at line 1355 of file sol_sanctum_statue.c.

scSolSanctumStatuePushNortheastStatue

static void scSolSanctumStatuePushNortheastStatue(void)

Isaac walks into the northeast statue of the east hall and pushes it onto its seal (metatile (40, 9)), which opens.

References scSolSanctumStatueOpenNortheastSeal() and scSolSanctumStatuePushStatue().

Referenced by SolSanctumStatueCues.

Definition at line 1363 of file sol_sanctum_statue.c.

scSolSanctumStatuePushSouthwestStatue

static void scSolSanctumStatuePushSouthwestStatue(void)

Isaac walks into the southwest statue of the east hall and pushes it onto its seal (metatile (31, 12)), which opens.

References scSolSanctumStatueOpenSouthwestSeal() and scSolSanctumStatuePushStatue().

Referenced by SolSanctumStatueCues.

Definition at line 1371 of file sol_sanctum_statue.c.

scSolSanctumStatuePushSoutheastStatue

static void scSolSanctumStatuePushSoutheastStatue(void)

Isaac walks into the southeast statue of the east hall and pushes it onto its seal (metatile (40, 12)), which opens.

References scSolSanctumStatueOpenSoutheastSeal() and scSolSanctumStatuePushStatue().

Referenced by SolSanctumStatueCues.

Definition at line 1379 of file sol_sanctum_statue.c.

scSolSanctumStatuePushLeftBeamStatueEast

static void scSolSanctumStatuePushLeftBeamStatueEast(void)

Walking into the left beam statue from the west slides it east beside the sun-disc statue, where it shines its beam.

References scSolSanctumStatuePushStatue() and scSolSanctumStatueShineLeftBeam().

Referenced by SolSanctumStatueCues.

Definition at line 1387 of file sol_sanctum_statue.c.

scSolSanctumStatuePushLeftBeamStatueSouth

static void scSolSanctumStatuePushLeftBeamStatueSouth(void)

Walking into the left beam statue from the north slides it one metatile south.

References fdActorGet(), scSolSanctumStatuePushStatue() and Sint32.

Referenced by SolSanctumStatueCues.

Definition at line 1395 of file sol_sanctum_statue.c.

scSolSanctumStatuePushLeftBeamStatueNorth

static void scSolSanctumStatuePushLeftBeamStatueNorth(void)

Walking into the left beam statue from the south slides it one metatile north.

References fdActorGet(), scSolSanctumStatuePushStatue() and Sint32.

Referenced by SolSanctumStatueCues.

Definition at line 1411 of file sol_sanctum_statue.c.

scSolSanctumStatuePushRightBeamStatueWest

static void scSolSanctumStatuePushRightBeamStatueWest(void)

Walking into the right beam statue from the east slides it west beside the sun-disc statue, where it shines its beam.

References scSolSanctumStatuePushStatue() and scSolSanctumStatueShineRightBeam().

Referenced by SolSanctumStatueCues.

Definition at line 1424 of file sol_sanctum_statue.c.

scSolSanctumStatuePushRightBeamStatueSouth

static void scSolSanctumStatuePushRightBeamStatueSouth(void)

Walking into the right beam statue from the north slides it one metatile south.

References fdActorGet(), scSolSanctumStatuePushStatue() and Sint32.

Referenced by SolSanctumStatueCues.

Definition at line 1432 of file sol_sanctum_statue.c.

scSolSanctumStatuePushRightBeamStatueNorth

static void scSolSanctumStatuePushRightBeamStatueNorth(void)

Walking into the right beam statue from the south slides it one metatile north.

References fdActorGet(), scSolSanctumStatuePushStatue() and Sint32.

Referenced by SolSanctumStatueCues.

Definition at line 1445 of file sol_sanctum_statue.c.

Variables in detail

SolSanctumStatueEntrances

extern SCENE_ENTRANCE SolSanctumStatueEntrances[]

SCENE_ENTRANCE SolSanctumStatueEntrances[]

Referenced by scGetEntrances().

Definition at lines 67 and 1753 of file sol_sanctum_statue.c.

SolSanctumStatueExits

extern Uint32 SolSanctumStatueExits[]

Uint32 SolSanctumStatueExits[]

Referenced by scGetExits().

Definition at lines 68 and 1774 of file sol_sanctum_statue.c.

SolSanctumStatueActorPlacements

extern ACTOR_PLACE SolSanctumStatueActorPlacements[]

ACTOR_PLACE SolSanctumStatueActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 69 and 1801 of file sol_sanctum_statue.c.

SolSanctumStatueCues

extern CUE SolSanctumStatueCues[]

CUE SolSanctumStatueCues[]

References scSolSanctumStatueCenterStatueMoved(), scSolSanctumStatueJumpNorth(), scSolSanctumStatueJumpSouth(), scSolSanctumStatueLeftBeamStatueMoved(), scSolSanctumStatueNortheastStatueMoved(), scSolSanctumStatueNorthwestStatueMoved(), scSolSanctumStatuePrepareMoveOnCenterStatue(), scSolSanctumStatuePrepareMoveOnLeftBeamStatue(), scSolSanctumStatuePrepareMoveOnRightBeamStatue(), scSolSanctumStatuePushCenterStatueNorth(), scSolSanctumStatuePushLeftBeamStatueEast(), scSolSanctumStatuePushLeftBeamStatueNorth(), scSolSanctumStatuePushLeftBeamStatueSouth(), scSolSanctumStatuePushNortheastStatue(), scSolSanctumStatuePushNorthwestStatue(), scSolSanctumStatuePushRightBeamStatueNorth(), scSolSanctumStatuePushRightBeamStatueSouth(), scSolSanctumStatuePushRightBeamStatueWest(), scSolSanctumStatuePushSoutheastStatue(), scSolSanctumStatuePushSouthwestStatue(), scSolSanctumStatueRightBeamStatueMoved(), scSolSanctumStatueSoutheastStatueMoved() and scSolSanctumStatueSouthwestStatueMoved().

Referenced by scGetCues().

Definition at lines 70 and 1836 of file sol_sanctum_statue.c.

SolSanctumStatueScrollOffset

extern Sint32 SolSanctumStatueScrollOffset

Sint32 SolSanctumStatueScrollOffset

The clouds' scroll, SCROLL_OFFSET_STEP more each tick.

References Sint32.

Referenced by scSolSanctumStatueUpdateScrollingSprites().

Definition at lines 71 and 1928 of file sol_sanctum_statue.c.

SealOpening

static SEAL_OPENING SealOpening

The seal the last statue moved has set up to open.

Referenced by scSolSanctumStatueOpenNortheastSeal(), scSolSanctumStatueOpenNorthwestSeal(), scSolSanctumStatueOpenSeal(), scSolSanctumStatueOpenSoutheastSeal() and scSolSanctumStatueOpenSouthwestSeal().

Definition at line 245 of file sol_sanctum_statue.c.

ScrollingSprites

static union { … } ScrollingSprites

Initialization writes each three-word OAM packet, and drawing updates its fields.

FieldDescription
ANIMATION_SPR_PART parts[3 * SOL_SANCTUM_STATUE_ROW_SPRITE_COUNT]
Sint32 words[3 * SOL_SANCTUM_STATUE_ROW_SPRITE_COUNT * 3]

References Sint32.

Referenced by scSolSanctumStatueInitScrollingSprites() and scSolSanctumStatueUpdateScrollingSprites().

Definition at line 249 of file sol_sanctum_statue.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_SOL_SANCTUM_CENTER_HOLE_OPENDRAW_LEFT_BEAMDRAW_RIGHT_BEAMDRAW_CROSSED_BEAMSDRAW_CENTER_HOLEFLAG_SOL_SANCTUM_TRAP_DISARMED_EXPLAINEDFLAG_SOL_SANCTUM_STATUE_PUZZLE_EXPLAINEDSOL_SANCTUM_STATUE_FRONT_CLOUD_ROW_Y_OFFSETSOL_SANCTUM_STATUE_ROW_SPRITE_COUNTSOL_SANCTUM_STATUE_SPRITE_WIDTHMETATILE_COPY_SETCENTER_HOLE_FLASHESSCROLL_OFFSET_STEPROW_SPRITE_BYTESCOPY_METATILESSEAL_PULSESEnumerations in detailanonymous enumSOL_SANCTUM_STATUE_METATILE_BEHAVIORSOL_SANCTUM_STATUE_BEAM_TRACKSOL_SANCTUM_STATUE_ACTOR_IDanonymous enumFunctions in detailscSolSanctumStatueInitScrollingSpritesscSolSanctumStatueCenterStatueMovedscSolSanctumStatuePushStatuescSolSanctumStatueIsActorAtMetatilescSolSanctumStatueOpenNorthwestSealscSolSanctumStatueOpenNortheastSealscSolSanctumStatueOpenSouthwestSealscSolSanctumStatueOpenSoutheastSealscSolSanctumStatueOpenSealscSolSanctumStatueShineLeftBeamscSolSanctumStatueShineRightBeamscSolSanctumStatueSayThenWaitscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscGetCuesscSolSanctumStatueSelectStoryExitscSolSanctumStatueOpenCenterHolescSolSanctumStatueExplainTrapDisarmedscSolSanctumStatueExplainStatuePuzzlescSolSanctumStatueUnusedPutOutSealsscSolSanctumStatueUpdateScrollingSpritesscSolSanctumStatueJumpNorthscSolSanctumStatueJumpSouthscSolSanctumStatueUnusedMoveNorthwestStatuescInitscSolSanctumStatueNorthwestStatueMovedscSolSanctumStatueNortheastStatueMovedscSolSanctumStatueSouthwestStatueMovedscSolSanctumStatueSoutheastStatueMovedscSolSanctumStatueLeftBeamStatueMovedscSolSanctumStatueRightBeamStatueMovedscSolSanctumStatuePrepareMoveOnCenterStatuescSolSanctumStatuePrepareMoveOnLeftBeamStatuescSolSanctumStatuePrepareMoveOnRightBeamStatuescSolSanctumStatuePushCenterStatueNorthscSolSanctumStatuePushNorthwestStatuescSolSanctumStatuePushNortheastStatuescSolSanctumStatuePushSouthwestStatuescSolSanctumStatuePushSoutheastStatuescSolSanctumStatuePushLeftBeamStatueEastscSolSanctumStatuePushLeftBeamStatueSouthscSolSanctumStatuePushLeftBeamStatueNorthscSolSanctumStatuePushRightBeamStatueWestscSolSanctumStatuePushRightBeamStatueSouthscSolSanctumStatuePushRightBeamStatueNorthVariables in detailSolSanctumStatueEntrancesSolSanctumStatueExitsSolSanctumStatueActorPlacementsSolSanctumStatueCuesSolSanctumStatueScrollOffsetSealOpeningScrollingSprites