Skip to Content
The Alchemy Project

src/scene/tunnel_ruins.c

The Tunnel Ruins run from the basement of Babi Lighthouse in Lalivero to the upper floors of Venus Lighthouse: the way on after the lighthouse's own base ends in a dead end. More…

Macros

NameDescription
#defineFLAG_TUNNEL_RUINS_IVY_WEST_HALF_GONE FLAG_SCENE_TEMP(0x00)In TunnelRuinsGreatStatue's small pillars' room, Whirlwind has blown away the west half of the clump of ivy on the ledge.
#defineFLAG_TUNNEL_RUINS_IVY_EAST_HALF_GONE FLAG_SCENE_TEMP(0x01)The east half of that clump is gone.
#defineFLAG_TUNNEL_RUINS_NORTHWEST_PILLAR_FROZEN FLAG_SCENE_TEMP(0x00)In TunnelRuinsGreatStatue's sinking pillars' room, Frost has raised a pillar of ice from the north-west pillar, and Isaac can no longer hop over it.
#defineFLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_FROZEN FLAG_SCENE_TEMP(0x01)The same for the south-east pillar.
#defineFLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_SOAKED FLAG_SCENE_TEMP(0x02)Douse has filled the south-east pillar with water, so that it sinks on its crest.
#defineFLAG_TUNNEL_RUINS_FIRST_STONE_SET FLAG_SCENE_TEMP(0x00)In TunnelRuinsLadyStatues, the first of the three carved stones is set on the balance; the next two flags are the second and third.
#defineFLAG_TUNNEL_RUINS_DOUSE_PILLAR_SOAKED FLAG_SCENE_TEMP(0x03)In TunnelRuinsLadyStatues, Douse has soaked the pillar, and its Frost target follows it.
#defineFLAG_TUNNEL_RUINS_DOUSE_FROST_TARGET_FROZEN FLAG_SCENE_TEMP(0x04)In TunnelRuinsLadyStatues, Frost has raised a pillar of ice from the soaked pillar's hidden target, 32 pixels below the pillar.
#defineUPDATE_BY_RELATIVE_DEPTH scActorUpdateBlockDrawOrder
#defineUPDATE_RIDE_STONE_BELOW
#defineNORTHWEST_PILLAR_CREST_COLUMN 46The map column of the water crest each sinking pillar sinks onto: metatile (46, 8) on the north walkway, metatile (48, 14) on the south one.
#defineSOUTHEAST_PILLAR_CREST_COLUMN 48
#definePILLAR_SINK_DEPTH 16How far a sinking pillar sinks into the floor, in pixels.
#defineEAST_PILLAR_A_PUSHED_COLUMN 45The map columns Babi Lighthouse's two grey pillars stand in once each is pushed a metatile west of its place.
#defineEAST_PILLAR_B_PUSHED_COLUMN 46

Enumerations

NameDescription
enumanonymous enum { METATILE_BEHAVIOR_TUNNEL_RUINS_FIRST_PILLARS_LEDGE, METATILE … }The metatile behaviors TunnelRuinsGreatStatue's cues answer, past its exits.
enumanonymous enum { METATILE_BEHAVIOR_TUNNEL_RUINS_STATUE_DOOR, METATILE_BEHAVIO … }The metatile behaviors the cues of TunnelRuinsLadyStatues answer, past its exits.
enumanonymous enum { ACTOR_FIRST_PILLAR_A, ACTOR_FIRST_PILLAR_B, ACTOR_SECOND_PIL … }The actors of TunnelRuinsGreatStatue, in the order of its actor placements.
enumanonymous enum { ACTOR_DOUSE_PILLAR, ACTOR_DOUSE_PILLAR_FROST_TARGET, ACTOR_B … }The actors of TunnelRuinsLadyStatues and any other scene.
enumanonymous enum { TREASURE_SPOT_ORACLES_ROBE, TREASURE_SPOT_ASURAS_ARMOR }The chests of TunnelRuinsLadyStatues, each on the metatile of a vanishing statue, which hides it until Reveal makes the statue go.
enumanonymous enum { SINKING_PILLAR_ANIMATION_EMPTY, SINKING_PILLAR_ANIMATION_FUL … }SPRITE_SINKING_PILLAR's pictures (sinking_pillar.tsv): the grey pillar with its top empty, the same with water filling its top, and only the square of water left once it has sunk.
enumanonymous enum { MARKS_WEST_COLUMN, MARKS_MIDDLE_COLUMN, MARKS_EAST_COLUMN, M … }The five marks the statues must stand on, west of the door: the corners and middle of the square of metatiles (23, 47) to (25, 49).

Functions

NameDescription
static UNREAD_RESULTscTunnelRuinsRideStoneBelow (ACTOR *actor)A carved stone set on the balance rides up and down with the platform or stone it rests on, 16 pixels above it.
static voidscTunnelRuinsUpdateFirstPillarMetatiles (void)Nothing visible happens after Move shifts one of the two gold-topped pillars in the room south of the giant statue.
static voidscTunnelRuinsUpdateSecondPillarMetatiles (void)Nothing visible happens after Move shifts one of the second pair of gold-topped pillars.
static voidscTunnelRuinsUpdateSmallPillarMetatiles (void)Nothing visible happens after Move shifts one of the three small pillars.
static voidscTunnelRuinsUpdateGreyPillarMetatiles (void)Resets the row of Babi Lighthouse's two grey pillars (kept at metatiles (108, 19) to (111, 19)) and makes each pillar's metatile a wall.
static Sint32scTunnelRuinsHideLighthouseShadow (ACTOR *actor)Takes the shadow off the small Venus Lighthouse on the floor before the giant statue, once TunnelRuinsSmallLighthouseScript has made it small.
static inline Sint32scTunnelRuinsGetLandingPixel (FIXED coordinate)Where a hop lands: the target metatile's centre in the editions that fix it, the target pixel itself in the first release.
static BoolscTunnelRuinsHopLeaderTo (FIELD_POS *target)Isaac crouches, leaps over the metatile ahead with the jump sound and lands on the target, when that metatile is no wall and the target is clear: across a gap or over a pillar.
static voidscTunnelRuinsHopSouth (void)Walking south against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on: from the ledge onto a small pillar's top, from top to top, or over a pillar on its walkway in the sinking pillars' room.
static voidscTunnelRuinsHopNorth (void)Walking north against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on: north over a pillar on its walkway in the sinking pillars' room, or from the row of Babi Lighthouse's two grey pillars in the basement (metatiles (44, 19) and (47, 19)).
static voidscTunnelRuinsUpdateGroundMaskLeader (void)The ground mask (fdEffectStartGroundMask) follows the leader only south of a row of half metatiles set per room.
static UNREAD_RESULTscTunnelRuinsSplashDousedPillar (ACTOR *actor)While Douse rains on a pillar it flickers between empty and full every two ticks, and every fourth tick a small splash appears on its top.
static UNREAD_RESULTscTunnelRuinsFrostTargetFollowsPillar (ACTOR *frostTarget)Once the Douse pillar is soaked, its hidden Frost target lies 32 pixels below it while the pillar stands in map row 10 and Isaac is no more than 48 pixels down.
static voidscTunnelRuinsWaitForActorToLand (ACTOR *actor)Waits up to 60 ticks for a carved stone dropping into the pit to reach the ground, and stops it there.
static voidscTunnelRuinsHopDownStep (void)Walking south off the step in the south-east of the small pillars' room (metatile (33, 54)), or off the east edge of the Douse pillar's floor (metatile (28, 11)), makes Isaac hop down it with a thud and a puff of dust.
const SCENE_ENTRANCE *scGetEntrances (void)The entrances of TunnelRuinsGreatStatue, TunnelRuinsLadyStatues, or a table for any other scene number.
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)The actors of TunnelRuinsGreatStatue or of TunnelRuinsLadyStatues (the enums above), each prepared to appear only when it lies in the view.
static voidscTunnelRuinsPushFirstPillars (void)Walking into one of the two gold-topped pillars in the room south of the giant statue pushes it a metatile, across their floor (metatiles (9, 38) to (13, 42)).
static voidscTunnelRuinsHopWest (void)Walking west against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on.
static voidscTunnelRuinsPushSecondPillars (void)Walking into one of the second pair of gold-topped pillars, on the route past the small pillars, pushes it a metatile, across their floor (metatiles (29, 30) to (34, 34)).
static voidscTunnelRuinsJumpDownLedge (void)Walking south off the ledge beside the pillars in the room south of the giant statue (metatile (14, 42)) or in the second pillars' room (metatile (27, 33)), or off the ledge north-east of the Douse pillar (metatile (28, 10)), makes Isaac jump down to the floor below.
static voidscTunnelRuinsHopEast (void)Walking east against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on.
static voidscTunnelRuinsPushSmallPillars (void)Walking into one of the three small white-topped pillars on the floor below the ivy's ledge pushes it a metatile.
static voidscTunnelRuinsHopSouthOrPushSmallPillars (void)Walking south on the floor of the small pillars makes Isaac leap over a gap if there is one, and push the small pillar in front of him otherwise.
static voidscTunnelRuinsBlowAwayIvyA (void)Whirlwind on the west half of the clump of ivy on the ledge, in the north-west corner of the small pillars' room, blows its leaves away.
static voidscTunnelRuinsBlowAwayIvyB (void)Whirlwind on the east half of the clump of ivy on the ledge blows its leaves away, and once the west half has gone too, the small pillar hidden in the clump can be reached with Move.
static voidscTunnelRuinsBlowAwayIvyC (void)Whirlwind on the ivy filling the arched doorway in the east wall of the small pillars' room blows it away, opening the way to the long passage.
static voidscTunnelRuinsHopWestBySmallPillars (void)Walking west from a small pillar's top makes Isaac leap over the gap beside it, as scTunnelRuinsHopWest does, except from the ledge's metatile (32, 50) beside the top of the stairs.
static voidscTunnelRuinsHopNorthBySmallPillars (void)Walking north from a small pillar's top makes Isaac leap over the gap before it, as scTunnelRuinsHopNorth does, except from metatile (30, 52), where the first small pillar starts.
static inline voidscTunnelRuinsRaiseSteppingStone (Sint32 srcColumn, Sint32 column, Sint32 row)The stepping stone in the pit rises one stage with a thump, and the screen shakes up and down, dying away.
static voidscTunnelRuinsSinkNorthwestPillar (void)When the water-filled pillar on the north walkway of the sinking pillars' room has been pushed or moved onto the water crest at metatile (46, 8), it sinks into the floor in a cloud of dust.
static voidscTunnelRuinsPushNorthwestSinkingPillar (void)Walking into the water-filled pillar on the north walkway of the sinking pillars' room pushes it a metatile, and it sinks if that brings it onto its water crest.
static voidscTunnelRuinsFreezeNorthwestPillarFrostTarget (void)Frost on the water of the sunken pillar on the north walkway raises a pillar of ice from it.
static voidscTunnelRuinsSinkSoutheastPillar (void)When the grey pillar on the south walkway of the sinking pillars' room stands on the water crest at metatile (48, 14) and Douse has filled it with water, it sinks into the floor as the north walkway's pillar does.
static voidscTunnelRuinsPushSoutheastSinkingPillar (void)Walking into the grey pillar on the south walkway of the sinking pillars' room pushes it a metatile, and it sinks if it is full of water and that brings it onto its crest.
static voidscTunnelRuinsDouseStartsOnSoutheastPillar (void)As Douse rains on the grey pillar on the south walkway, water splashes on its top.
static voidscTunnelRuinsDouseSoutheastPillar (void)Douse fills the grey pillar on the south walkway with water, and it sinks at once if it already stands on its crest.
static voidscTunnelRuinsFreezeSoutheastPillarFrostTarget (void)Frost on the water of the sunken pillar on the south walkway raises a pillar of ice from it.
static voidscTunnelRuinsSearchGiantStatue (void)Searching the giant pink statue in the first room of the Tunnel Ruins, from metatile (12, 7) before it: "The statue speaks to Isaac's soul..." It bids those who seek to climb Venus Lighthouse to "seek the lady's leave", and says the lady will keep safe at her feet the place they seek.
static voidscTunnelRuinsMoveDousePillar (void)Nothing more happens when Move pushes the grey pillar in the Douse pillar's room: the push is all there is.
static voidscTunnelRuinsPushDousePillar (void)Walking into the grey pillar in the Douse pillar's room pushes it a metatile, across its floor (metatiles (23, 10) to (27, 13)).
static voidscTunnelRuinsDouseStartsOnPillar (void)Douse on the grey pillar in the Douse pillar's room fills it with water, which splashes on its top as the rain falls.
static voidscTunnelRuinsFreezeDousePillarFrostTarget (void)Isaac casts Frost on the grey pillar in the Douse pillar's room, once Douse has filled its top with water and it stands in map row 10: snowflakes swirl, and a tall column of ice rises from the pillar's top, standing up the screen over the pit's edge just north of it, where Isaac stands, so that only his head and shoulders show above it.
static voidscTunnelRuinsSettleBalance (Sint32 ticks)The balance platforms move to the heights their weights give them (their timers index BalancePlatformHeights), with sounds unless ticks is 0.
static voidscTunnelRuinsDropStoneOnStack (Sint32 actorId)A carried stone drops onto the highest platform or carved stone in its metatile and lands with a thud and a ring of dust.
static voidscTunnelRuinsSetStoneOnBalance (void)Carry on one of the three carved stones north of the balance lifts it, and where Isaac sets it down decides what happens.
static voidscTunnelRuinsPushCarvedStone (void)Walking into one of the three carved stones north of the balance pushes it a metatile.
static voidscTunnelRuinsMoveEastPillar (void)Nothing visible happens after Move shifts one of the two grey pillars in Babi Lighthouse's basement: the game remembers whether each now stands a metatile west of its place, so that the pillars stay where Isaac left them when he comes back.
static voidscTunnelRuinsPushEastPillar (void)Walking east into one of the two grey pillars in Babi Lighthouse's basement pushes it a metatile, and the game remembers where it stands.
static voidscTunnelRuinsShowVanishingStatues (void)The two white statues stand over the chests of the Oracle's Robe and the Asura's Armor, in the rooms at the ends of the two routes, and the chests are hidden.
static voidscTunnelRuinsHideVanishingStatues (void)Reveal makes the white statue in the room vanish, and the chest it stood on appears: the Oracle's Robe at metatile (8, 49) in the west room, the Asura's Armor at metatile (49, 43) in the east one.
static voidscTunnelRuinsMoveLadyStatue (void)After Move shifts one of the five coloured statues of a woman, the door in the room's east wall (metatile (32, 47)) opens once all five stand on their marks: red north-west, blue north-east, yellow in the middle, green south-west and violet south-east.
static voidscTunnelRuinsPushLadyStatue (void)Walking into one of the five coloured statues pushes it a metatile, and the door opens or shuts as moving it with Move would make it.
static voidscTunnelRuinsSearchLadyStatue (void)Searching any of the five coloured statues of a woman: "The statue seems to speak to your soul..." Mind Read then hears where each colour belongs.
static voidscTunnelRuinsSearchLockedDoor (void)Searching the door in the east wall of the five statues' room, while it is shut, finds it tightly locked.
const CUE *scGetCues (void)The cues of TunnelRuinsGreatStatue, or of TunnelRuinsLadyStatues and any other scene.
Sint32scInit (void)On entering a room, restores the puzzle as it was left, and the path the statue in Venus Lighthouse opened (FLAG_VENUS_LIGHTHOUSE_FIRST_PATH or _SECOND_PATH).

Variables

NameDescription
extern Uint32BalancePlatformHeights []A balance platform's height by its weight (its timer, from 0 to 6).
extern Sint32TunnelRuinsDouseSplashScript []Douse splashes on the pillar from tick 35 for 130 ticks, and leaves it full of water.
extern Uint16TunnelRuinsDoorOpenSteps []The east wall's door opening once all five statues stand on their marks, and shutting again.
extern Uint16TunnelRuinsDoorCloseSteps []
extern SCENE_ENTRANCETunnelRuinsEntrancesOther []Unused: the entrances of any scene but the two this overlay serves, so no scene reads them.
extern SCENE_ENTRANCETunnelRuinsGreatStatueEntrances []
extern SCENE_ENTRANCETunnelRuinsLadyStatuesEntrances []
extern SCENE_EXIT_REGIONTunnelRuinsLadyStatuesRegions []
extern Uint32TunnelRuinsExits []
extern ACTOR_PLACETunnelRuinsGreatStatueActorPlacements []
extern ACTOR_PLACETunnelRuinsActorPlacementsOther []
extern CUETunnelRuinsGreatStatueCues []
extern CUETunnelRuinsCuesOther []
const Sint32 *FieldEffectDurationScripts []The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION.
Sint32TunnelRuinsSmallLighthouseScript []
Sint32TunnelRuinsStretchScript []The ivy stands 8/5 as tall as its sprite.

Description

The Tunnel Ruins run from the basement of Babi Lighthouse in Lalivero to the upper floors of Venus Lighthouse: the way on after the lighthouse's own base ends in a dead end. They are two scenes of Psynergy puzzles, with no story script, and a chest of armour at the end of each of two routes.

Both have the area name Tunnel Ruins, but for the rooms of Babi Lighthouse's basement where the slides of Babi Lighthouse Entry land, which the area names call Babi Lighthouse.

  • TunnelRuinsGreatStatue (SceneIdTunnelRuinsGreatStatue) is entered by the stone door Reveal finds in Babi Lighthouse. Its first room holds a giant pink statue, with a small model of Venus Lighthouse on the floor before it: searching it tells the party to seek "the lady's leave", the great statue in Venus Lighthouse, whose answer opens one of two routes. South of it, Isaac pushes one of two gold-topped pillars so that he can hop across their tops past a wall. Beyond, a room of stone columns in a pit gets one more column for each route opened. One route goes by a second pair of pillars and a room where Whirlwind blows ivy off a small pillar (the small pillars' room, the whirlwind room of its entrances, TUNNEL_RUINS_GREAT_STATUE_WHIRLWIND_ROOM_SECOND_PILLARS and its kin), then by the balance and its carved stones to the Oracle's Robe. The other goes by a room of two pillars that sink onto water crests, raising stepping stones from a pit, to the Asura's Armor.
  • TunnelRuinsLadyStatues (SceneIdTunnelRuinsLadyStatues) holds the rest: Babi Lighthouse's basement with its two grey pillars; the balance, two platforms Carry weighs down with three carved stones; the two white statues that Reveal makes vanish from the chests they stand on; a room of four walkways over a pit; and a pillar to push, Douse and Frost. Last come five coloured statues of a woman that open the door to Venus Lighthouse once all five stand on their marks (FLAG_TUNNEL_RUINS_STATUE_DOOR_OPEN).

The getters choose by MainRoutineStateWork.next. The actor placements of TunnelRuinsLadyStatues answer any other scene number, and scGetActorPlacements prepares each table's actors to appear only in view.

scInit works room by room, one case for each room's entrances.

The walking scripts, keyed on the metatile behaviors under the leader, are shared by both scenes. Walking against a one-metatile gap or a pillar makes Isaac leap over it to the metatile beyond (scTunnelRuinsHopLeaderTo), from a ledge onto a pillar's top, from top to top, or over a pillar standing on a walkway. Others jump him down a ledge or hop him down a step, and walking into a pillar, a carved stone or a statue pushes it a metatile.

The puzzles that must survive a visit keep story flags (FLAG_TUNNEL_RUINS_IVY_BLOWN_AWAY, FLAG_TUNNEL_RUINS_NORTHWEST_PILLAR_IN_FLOOR, FLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_IN_FLOOR, FLAG_TUNNEL_RUINS_EAST_PILLAR_A_PUSHED_WEST and FLAG_TUNNEL_RUINS_EAST_PILLAR_B_PUSHED_WEST).

The rest keep scene flags, which mean different things in each scene:

Each balance platform's balanceWeight is its weight. Both start at 3. A carved stone set on one adds one to it and takes one from the other. BalancePlatformHeights turns each weight into the platform's height.

Coming into the balance's room from the north, out of the first scene, sets the balance up empty. Coming back up from the south (TUNNEL_RUINS_LADY_STATUES_BALANCE_SOUTH) sets all three stones on it, one stone on the west platform and two stacked on the east, weights 2 and 4.

Macros in detail

FLAG_TUNNEL_RUINS_IVY_WEST_HALF_GONE

#define FLAG_TUNNEL_RUINS_IVY_WEST_HALF_GONE FLAG_SCENE_TEMP(0x00)

In TunnelRuinsGreatStatue's small pillars' room, Whirlwind has blown away the west half of the clump of ivy on the ledge.

Referenced by scTunnelRuinsBlowAwayIvyA(), scTunnelRuinsBlowAwayIvyB() and TunnelRuinsGreatStatueCues.

Definition at line 93 of file tunnel_ruins.c.

FLAG_TUNNEL_RUINS_IVY_EAST_HALF_GONE

#define FLAG_TUNNEL_RUINS_IVY_EAST_HALF_GONE FLAG_SCENE_TEMP(0x01)

The east half of that clump is gone.

Referenced by scTunnelRuinsBlowAwayIvyA(), scTunnelRuinsBlowAwayIvyB() and TunnelRuinsGreatStatueCues.

Definition at line 95 of file tunnel_ruins.c.

FLAG_TUNNEL_RUINS_NORTHWEST_PILLAR_FROZEN

#define FLAG_TUNNEL_RUINS_NORTHWEST_PILLAR_FROZEN FLAG_SCENE_TEMP(0x00)

In TunnelRuinsGreatStatue's sinking pillars' room, Frost has raised a pillar of ice from the north-west pillar, and Isaac can no longer hop over it.

Referenced by scInit(), scTunnelRuinsFreezeNorthwestPillarFrostTarget() and TunnelRuinsGreatStatueCues.

Definition at line 98 of file tunnel_ruins.c.

FLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_FROZEN

#define FLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_FROZEN FLAG_SCENE_TEMP(0x01)

The same for the south-east pillar.

Referenced by scInit(), scTunnelRuinsFreezeSoutheastPillarFrostTarget() and TunnelRuinsGreatStatueCues.

Definition at line 100 of file tunnel_ruins.c.

FLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_SOAKED

#define FLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_SOAKED FLAG_SCENE_TEMP(0x02)

Douse has filled the south-east pillar with water, so that it sinks on its crest.

Referenced by scInit(), scTunnelRuinsDouseSoutheastPillar(), scTunnelRuinsSinkSoutheastPillar() and TunnelRuinsGreatStatueCues.

Definition at line 103 of file tunnel_ruins.c.

FLAG_TUNNEL_RUINS_FIRST_STONE_SET

#define FLAG_TUNNEL_RUINS_FIRST_STONE_SET FLAG_SCENE_TEMP(0x00)

In TunnelRuinsLadyStatues, the first of the three carved stones is set on the balance; the next two flags are the second and third.

Referenced by scInit() and scTunnelRuinsSetStoneOnBalance().

Definition at line 106 of file tunnel_ruins.c.

FLAG_TUNNEL_RUINS_DOUSE_PILLAR_SOAKED

#define FLAG_TUNNEL_RUINS_DOUSE_PILLAR_SOAKED FLAG_SCENE_TEMP(0x03)

In TunnelRuinsLadyStatues, Douse has soaked the pillar, and its Frost target follows it.

Referenced by scTunnelRuinsDouseStartsOnPillar() and TunnelRuinsCuesOther.

Definition at line 109 of file tunnel_ruins.c.

FLAG_TUNNEL_RUINS_DOUSE_FROST_TARGET_FROZEN

#define FLAG_TUNNEL_RUINS_DOUSE_FROST_TARGET_FROZEN FLAG_SCENE_TEMP(0x04)

In TunnelRuinsLadyStatues, Frost has raised a pillar of ice from the soaked pillar's hidden target, 32 pixels below the pillar.

Referenced by scInit(), scTunnelRuinsFreezeDousePillarFrostTarget() and TunnelRuinsCuesOther.

Definition at line 112 of file tunnel_ruins.c.

UPDATE_BY_RELATIVE_DEPTH

#define UPDATE_BY_RELATIVE_DEPTH scActorUpdateBlockDrawOrder

#define UPDATE_BY_RELATIVE_DEPTH

Referenced by scInit() and scTunnelRuinsFreezeDousePillarFrostTarget().

Definition at lines 608 and 610 of file tunnel_ruins.c.

UPDATE_RIDE_STONE_BELOW

#define UPDATE_RIDE_STONE_BELOW

Referenced by scInit().

Definition at line 613 of file tunnel_ruins.c.

NORTHWEST_PILLAR_CREST_COLUMN

#define NORTHWEST_PILLAR_CREST_COLUMN 46

The map column of the water crest each sinking pillar sinks onto: metatile (46, 8) on the north walkway, metatile (48, 14) on the south one.

Referenced by scTunnelRuinsSinkNorthwestPillar().

Definition at line 862 of file tunnel_ruins.c.

SOUTHEAST_PILLAR_CREST_COLUMN

#define SOUTHEAST_PILLAR_CREST_COLUMN 48

Referenced by scTunnelRuinsSinkSoutheastPillar().

Definition at line 863 of file tunnel_ruins.c.

PILLAR_SINK_DEPTH

#define PILLAR_SINK_DEPTH 16

How far a sinking pillar sinks into the floor, in pixels.

Referenced by scTunnelRuinsSinkNorthwestPillar() and scTunnelRuinsSinkSoutheastPillar().

Definition at line 865 of file tunnel_ruins.c.

EAST_PILLAR_A_PUSHED_COLUMN

#define EAST_PILLAR_A_PUSHED_COLUMN 45

The map columns Babi Lighthouse's two grey pillars stand in once each is pushed a metatile west of its place.

Referenced by scTunnelRuinsMoveEastPillar().

Definition at line 1391 of file tunnel_ruins.c.

EAST_PILLAR_B_PUSHED_COLUMN

#define EAST_PILLAR_B_PUSHED_COLUMN 46

Referenced by scTunnelRuinsMoveEastPillar().

Definition at line 1392 of file tunnel_ruins.c.

Enumerations in detail

anonymous enum

enum { METATILE_BEHAVIOR_TUNNEL_RUINS_FIRST_PILLARS_LEDGE, METATILE_BEHAVIOR_TUNNEL_RUINS_FIRST_PILLARS_FLOOR, METATILE_BEHAVIOR_TUNNEL_RUINS_SMALL_PILLARS_STEP, METATILE_BEHAVIOR_TUNNEL_RUINS_SECOND_PILLARS_FLOOR, … }

The metatile behaviors TunnelRuinsGreatStatue's cues answer, past its exits.

EnumeratorValueDescription
METATILE_BEHAVIOR_TUNNEL_RUINS_FIRST_PILLARS_LEDGE23The ledge east of the first pair of pillars, metatile (14, 42).
METATILE_BEHAVIOR_TUNNEL_RUINS_FIRST_PILLARS_FLOORThe floor the first pair of pillars is pushed across.
METATILE_BEHAVIOR_TUNNEL_RUINS_SMALL_PILLARS_STEPThe step down in the south-east of the small pillars' room, metatile (33, 54).
METATILE_BEHAVIOR_TUNNEL_RUINS_SECOND_PILLARS_FLOORThe floor the second pair of pillars is pushed across.
METATILE_BEHAVIOR_TUNNEL_RUINS_SECOND_PILLARS_LEDGEThe ledge west of the second pair of pillars, metatile (27, 33).
METATILE_BEHAVIOR_TUNNEL_RUINS_SMALL_PILLARS_FLOORThe floor the small pillars are pushed across.
METATILE_BEHAVIOR_TUNNEL_RUINS_NORTH_WALKWAYThe north walkway of the sinking pillars' room, where its pillar moves.
METATILE_BEHAVIOR_TUNNEL_RUINS_SOUTH_WALKWAYThe south walkway, where the grey pillar moves.
METATILE_BEHAVIOR_TUNNEL_RUINS_NORTH_WALKWAY_ENDThe north walkway's east end, metatile (47, 8), beside the pit.
METATILE_BEHAVIOR_TUNNEL_RUINS_SOUTH_WALKWAY_ENDThe south walkway's west end, metatile (47, 14), beside the pit.
METATILE_BEHAVIOR_TUNNEL_RUINS_GIANT_STATUE40Before the giant statue, metatile (12, 7).
METATILE_BEHAVIOR_TUNNEL_RUINS_SMALL_PILLAR_TOP50A small pillar's top, and the ledge above them at metatile (32, 50).

Definition at line 129 of file tunnel_ruins.c.

anonymous enum

enum { METATILE_BEHAVIOR_TUNNEL_RUINS_STATUE_DOOR, METATILE_BEHAVIOR_TUNNEL_RUINS_DOUSE_PILLAR_FLOOR, METATILE_BEHAVIOR_TUNNEL_RUINS_DOUSE_PILLAR_LEDGE, METATILE_BEHAVIOR_TUNNEL_RUINS_DOUSE_PILLAR_STEP, … }

The metatile behaviors the cues of TunnelRuinsLadyStatues answer, past its exits.

EnumeratorValueDescription
METATILE_BEHAVIOR_TUNNEL_RUINS_STATUE_DOOR20The door east of the five coloured statues, metatile (32, 47), while shut.
METATILE_BEHAVIOR_TUNNEL_RUINS_DOUSE_PILLAR_FLOOR25The floor the Douse pillar is pushed across.
METATILE_BEHAVIOR_TUNNEL_RUINS_DOUSE_PILLAR_LEDGEThe ledge north-east of the Douse pillar's floor, metatile (28, 10).
METATILE_BEHAVIOR_TUNNEL_RUINS_DOUSE_PILLAR_STEPThe step east of the Douse pillar's floor, metatile (28, 11).
METATILE_BEHAVIOR_TUNNEL_RUINS_CARVED_STONES_FLOORThe floor north of the balance, where the carved stones stand.
METATILE_BEHAVIOR_TUNNEL_RUINS_GREY_PILLARS_ROWThe row of Babi Lighthouse's two grey pillars, metatiles (44, 19) and (47, 19).
METATILE_BEHAVIOR_TUNNEL_RUINS_RISEN_PLATFORMA balance platform,
METATILE_BEHAVIOR_TUNNEL_RUINS_LADY_STATUES_FLOOR41or a carved stone on one, risen near the floor's height; copied from metatile (4, 9). The floor the five coloured statues are moved across.
METATILE_BEHAVIOR_TUNNEL_RUINS_LADY_STATUEA coloured statue's metatile, copied from metatile (20, 56).

Definition at line 177 of file tunnel_ruins.c.

anonymous enum

enum { ACTOR_FIRST_PILLAR_A, ACTOR_FIRST_PILLAR_B, ACTOR_SECOND_PILLAR_A, ACTOR_SECOND_PILLAR_B, … }

The actors of TunnelRuinsGreatStatue, in the order of its actor placements.

They are two pairs of pillars to push or Move, three small pillars, three patches of ivy for Whirlwind, two pillars that sink into the floor, and two hidden targets for Frost, both placed with the first sinking pillar.

EnumeratorValueDescription
ACTOR_FIRST_PILLAR_AACTOR_FIRST_PLACED
ACTOR_FIRST_PILLAR_B
ACTOR_SECOND_PILLAR_A
ACTOR_SECOND_PILLAR_B
ACTOR_SMALL_PILLAR_AThree small stone pillars with white tops (SPRITE_SMALL_PILLAR, the size of the sinking pillars). The leader pushes them by walking into them (scTunnelRuinsPushSmallPillars) or shifts them with Move. This one stands south of the ivy's ledge.
ACTOR_SMALL_PILLAR_BBeside ACTOR_SMALL_PILLAR_A.
ACTOR_SMALL_PILLAR_COn the ledge in the room's north-west corner, hidden in the clump of ivy until Whirlwind has blown away both its halves.
ACTOR_IVY_AThe west half of the clump of ivy on the ledge above the small pillars. It is drawn with SPRITE_IVY, the sprite of the ivy that traps the stump at Goma Cave's entrance.
ACTOR_IVY_BThe east half of the clump.
ACTOR_IVY_CIvy filling the arched doorway in the room's east wall, the way on to the long passage.
ACTOR_NORTHWEST_SINKING_PILLAR
ACTOR_SOUTHEAST_SINKING_PILLAR
ACTOR_NORTHWEST_PILLAR_FROST_TARGETFrost's target on the north-west pillar. It is SPRITE_PUDDLE in SPRITE_COLOR_HIDDEN, which moves onto the pillar when it sinks.
ACTOR_SOUTHEAST_PILLAR_FROST_TARGETThe same hidden target for the south-east pillar.

Definition at line 221 of file tunnel_ruins.c.

anonymous enum

enum { ACTOR_DOUSE_PILLAR, ACTOR_DOUSE_PILLAR_FROST_TARGET, ACTOR_BALANCE_WEST, ACTOR_BALANCE_EAST, … }

The actors of TunnelRuinsLadyStatues and any other scene.

They are a pillar for Douse with a hidden target for Frost, two balance platforms with three carved stones to Carry onto them, two statues that vanish under Reveal, two pillars to push in the east, and five coloured statues of a woman to Move before the door.

EnumeratorValueDescription
ACTOR_DOUSE_PILLARACTOR_FIRST_PLACED
ACTOR_DOUSE_PILLAR_FROST_TARGETFrost's target on the Douse pillar. It is SPRITE_PUDDLE in SPRITE_COLOR_HIDDEN, held 32 pixels below the soaked pillar.
ACTOR_BALANCE_WEST
ACTOR_BALANCE_EAST
ACTOR_WEST_CARRY_STONE
ACTOR_MIDDLE_CARRY_STONE
ACTOR_EAST_CARRY_STONE
ACTOR_WEST_VANISHING_STATUE
ACTOR_EAST_VANISHING_STATUE
ACTOR_EAST_PILLAR_A
ACTOR_EAST_PILLAR_B
ACTOR_VIOLET_LADY_STATUEThe five coloured statues of a woman, by colour, in their places at the start: violet north-west, green north-east, blue south-west, red south-east and yellow, gold in colour, south of the middle. Mind Read on each finds a hint where another belongs: the violet one "Red shines northwest of me.", the green one "Yellow shines northeast of me.", the blue one "Red shines due west of me.", and the red one and the yellow one "Violet shines southeast of me."
ACTOR_GREEN_LADY_STATUE
ACTOR_BLUE_LADY_STATUE
ACTOR_RED_LADY_STATUE
ACTOR_YELLOW_LADY_STATUE

Definition at line 261 of file tunnel_ruins.c.

anonymous enum

enum { TREASURE_SPOT_ORACLES_ROBE, TREASURE_SPOT_ASURAS_ARMOR }

The chests of TunnelRuinsLadyStatues, each on the metatile of a vanishing statue, which hides it until Reveal makes the statue go.

EnumeratorValueDescription
TREASURE_SPOT_ORACLES_ROBETREASURE_SPOT_FIRST_ID
TREASURE_SPOT_ASURAS_ARMOR

Definition at line 292 of file tunnel_ruins.c.

anonymous enum

enum { SINKING_PILLAR_ANIMATION_EMPTY, SINKING_PILLAR_ANIMATION_FULL, SINKING_PILLAR_ANIMATION_SUNK }

SPRITE_SINKING_PILLAR's pictures (sinking_pillar.tsv): the grey pillar with its top empty, the same with water filling its top, and only the square of water left once it has sunk.

EnumeratorValueDescription
SINKING_PILLAR_ANIMATION_EMPTY1
SINKING_PILLAR_ANIMATION_FULL
SINKING_PILLAR_ANIMATION_SUNK

Definition at line 301 of file tunnel_ruins.c.

anonymous enum

enum { MARKS_WEST_COLUMN, MARKS_MIDDLE_COLUMN, MARKS_EAST_COLUMN, MARKS_NORTH_ROW, … }

The five marks the statues must stand on, west of the door: the corners and middle of the square of metatiles (23, 47) to (25, 49). Each corner statue belongs on the opposite corner, and the yellow statue in the middle.

EnumeratorValueDescription
MARKS_WEST_COLUMN23
MARKS_MIDDLE_COLUMN
MARKS_EAST_COLUMN
MARKS_NORTH_ROW47
MARKS_MIDDLE_ROW
MARKS_SOUTH_ROW

Definition at line 1469 of file tunnel_ruins.c.

Functions in detail

scTunnelRuinsRideStoneBelow

static UNREAD_RESULT scTunnelRuinsRideStoneBelow(ACTOR *actor)

static UNREAD_RESULT scTunnelRuinsRideStoneBelow(ACTOR *supportedActor)

A carved stone set on the balance rides up and down with the platform or stone it rests on, 16 pixels above it. Its restsOnActorId holds that actor.

References fdActorGet().

Referenced by scTunnelRuinsSetStoneOnBalance().

Definition at lines 308 and 1161 of file tunnel_ruins.c.

scTunnelRuinsUpdateFirstPillarMetatiles

static void scTunnelRuinsUpdateFirstPillarMetatiles(void)

Nothing visible happens after Move shifts one of the two gold-topped pillars in the room south of the giant statue. The game resets their floor and makes each pillar's top a hop square, so that Isaac can leap onto it.

It also runs after a push and on entering the room. The floor's own behaviours are kept in a spare copy at metatiles (73, 38) to (77, 42); the hop square is copied from metatile (2, 36).

References fdActorGet(), fdMapGridCopyMetatileAttributes(), scActorSwapPositionsByDepth() and Sint32.

Referenced by scInit(), scTunnelRuinsPushFirstPillars() and TunnelRuinsGreatStatueCues.

Definition at lines 309 and 1660 of file tunnel_ruins.c.

scTunnelRuinsUpdateSecondPillarMetatiles

static void scTunnelRuinsUpdateSecondPillarMetatiles(void)

Nothing visible happens after Move shifts one of the second pair of gold-topped pillars. As for the first pair, the game resets their floor (kept at metatiles (93, 30) to (98, 34)) and makes each pillar's top a hop square.

References fdActorGet(), fdMapGridCopyMetatileAttributes(), scActorSwapPositionsByDepth() and Sint32.

Referenced by scInit(), scTunnelRuinsPushSecondPillars() and TunnelRuinsGreatStatueCues.

Definition at lines 310 and 1681 of file tunnel_ruins.c.

scTunnelRuinsUpdateSmallPillarMetatiles

static void scTunnelRuinsUpdateSmallPillarMetatiles(void)

Nothing visible happens after Move shifts one of the three small pillars. The game resets their floor (kept at metatiles (89, 49) to (96, 55)) and makes each pillar's top a square Isaac can leap from in any direction.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scInit(), scTunnelRuinsPushSmallPillars() and TunnelRuinsGreatStatueCues.

Definition at lines 311 and 1702 of file tunnel_ruins.c.

scTunnelRuinsUpdateGreyPillarMetatiles

static void scTunnelRuinsUpdateGreyPillarMetatiles(void)

Resets the row of Babi Lighthouse's two grey pillars (kept at metatiles (108, 19) to (111, 19)) and makes each pillar's metatile a wall.

References fdActorGet(), fdMapGridCopyMetatileAttributes() and scMapGridFillCollisionRectangle().

Referenced by scInit() and scTunnelRuinsMoveEastPillar().

Definition at lines 312 and 1732 of file tunnel_ruins.c.

scTunnelRuinsHideLighthouseShadow

static Sint32 scTunnelRuinsHideLighthouseShadow(ACTOR *actor)

Takes the shadow off the small Venus Lighthouse on the floor before the giant statue, once TunnelRuinsSmallLighthouseScript has made it small.

References fdActorSetSpriteFlags() and Sint32.

Referenced by TunnelRuinsSmallLighthouseScript.

Definition at line 321 of file tunnel_ruins.c.

scTunnelRuinsGetLandingPixel

static inline Sint32 scTunnelRuinsGetLandingPixel(FIXED coordinate)

Where a hop lands: the target metatile's centre in the editions that fix it, the target pixel itself in the first release.

References Sint32.

Referenced by scTunnelRuinsHopLeaderTo().

Definition at line 329 of file tunnel_ruins.c.

scTunnelRuinsHopLeaderTo

static Bool scTunnelRuinsHopLeaderTo(FIELD_POS *target)

Isaac crouches, leaps over the metatile ahead with the jump sound and lands on the target, when that metatile is no wall and the target is clear: across a gap or over a pillar. Returns TRUE when there is no room to hop.

References fdActorGet(), fdActorMoveToAndWait(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptStart(), scFieldActorCheckMovementCollision(), scTunnelRuinsGetLandingPixel(), sySoundPlay() and sySynch().

Referenced by scTunnelRuinsHopEast(), scTunnelRuinsHopNorth(), scTunnelRuinsHopSouth(), scTunnelRuinsHopSouthOrPushSmallPillars() and scTunnelRuinsHopWest().

Definition at line 341 of file tunnel_ruins.c.

scTunnelRuinsHopSouth

static void scTunnelRuinsHopSouth(void)

Walking south against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on: from the ledge onto a small pillar's top, from top to top, or over a pillar on its walkway in the sinking pillars' room.

It also runs from the row of Babi Lighthouse's two grey pillars in the basement, metatiles (44, 19) and (47, 19).

References fdActorGet() and scTunnelRuinsHopLeaderTo().

Referenced by TunnelRuinsCuesOther and TunnelRuinsGreatStatueCues.

Definition at line 389 of file tunnel_ruins.c.

scTunnelRuinsHopNorth

static void scTunnelRuinsHopNorth(void)

Walking north against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on: north over a pillar on its walkway in the sinking pillars' room, or from the row of Babi Lighthouse's two grey pillars in the basement (metatiles (44, 19) and (47, 19)).

References fdActorGet() and scTunnelRuinsHopLeaderTo().

Referenced by scTunnelRuinsHopNorthBySmallPillars(), TunnelRuinsCuesOther and TunnelRuinsGreatStatueCues.

Definition at line 404 of file tunnel_ruins.c.

scTunnelRuinsUpdateGroundMaskLeader

static void scTunnelRuinsUpdateGroundMaskLeader(void)

The ground mask (fdEffectStartGroundMask) follows the leader only south of a row of half metatiles set per room.

References fdActorGet(), MainRoutineStateWork and Sint32.

Referenced by scInit().

Definition at line 417 of file tunnel_ruins.c.

scTunnelRuinsSplashDousedPillar

static UNREAD_RESULT scTunnelRuinsSplashDousedPillar(ACTOR *actor)

While Douse rains on a pillar it flickers between empty and full every two ticks, and every fourth tick a small splash appears on its top.

References fdActorSelectAnimation() and TickCount.

Referenced by TunnelRuinsDouseSplashScript.

Definition at line 463 of file tunnel_ruins.c.

scTunnelRuinsFrostTargetFollowsPillar

static UNREAD_RESULT scTunnelRuinsFrostTargetFollowsPillar(ACTOR *frostTarget)

Once the Douse pillar is soaked, its hidden Frost target lies 32 pixels below it while the pillar stands in map row 10 and Isaac is no more than 48 pixels down. Anywhere else the target waits at the map's corner, out of Frost's reach.

References fdActorGet().

Referenced by scTunnelRuinsDouseStartsOnPillar().

Definition at line 496 of file tunnel_ruins.c.

scTunnelRuinsWaitForActorToLand

static void scTunnelRuinsWaitForActorToLand(ACTOR *actor)

Waits up to 60 ticks for a carved stone dropping into the pit to reach the ground, and stops it there.

References Sint32 and sySynch().

Referenced by scTunnelRuinsSetStoneOnBalance().

Definition at line 518 of file tunnel_ruins.c.

scTunnelRuinsHopDownStep

static void scTunnelRuinsHopDownStep(void)

Walking south off the step in the south-east of the small pillars' room (metatile (33, 54)), or off the east edge of the Douse pillar's floor (metatile (28, 11)), makes Isaac hop down it with a thud and a puff of dust.

He leaps 12 pixels forward, then sinks 16 pixels to the floor below over 8 ticks while the dust flies out behind him.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorWaitForAnimationChange(), fdScriptEnd(), fdScriptStart(), scFieldActorSetMoveTargetFX(), scFieldEffectAdvanceMotion(), Sint32, syRandomNext(), sySoundPlay() and sySynch().

Referenced by TunnelRuinsCuesOther and TunnelRuinsGreatStatueCues.

Definition at line 555 of file tunnel_ruins.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

The entrances of TunnelRuinsGreatStatue, TunnelRuinsLadyStatues, or a table for any other scene number.

References MainRoutineStateWork, TunnelRuinsEntrancesOther, TunnelRuinsGreatStatueEntrances and TunnelRuinsLadyStatuesEntrances.

Definition at line 622 of file tunnel_ruins.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

References MainRoutineStateWork and TunnelRuinsLadyStatuesRegions.

Definition at line 637 of file tunnel_ruins.c.

scGetExits

const Uint32 *scGetExits(void)

References TunnelRuinsExits.

Definition at line 646 of file tunnel_ruins.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

The actors of TunnelRuinsGreatStatue or of TunnelRuinsLadyStatues (the enums above), each prepared to appear only when it lies in the view.

References fdAssignViewFlags(), MainRoutineStateWork, TunnelRuinsActorPlacementsOther and TunnelRuinsGreatStatueActorPlacements.

Definition at line 653 of file tunnel_ruins.c.

scTunnelRuinsPushFirstPillars

static void scTunnelRuinsPushFirstPillars(void)

Walking into one of the two gold-topped pillars in the room south of the giant statue pushes it a metatile, across their floor (metatiles (9, 38) to (13, 42)).

Pushing one east lets Isaac hop from the ledge east of them onto its top and on past the wall.

References fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsUpdateFirstPillarMetatiles().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 675 of file tunnel_ruins.c.

scTunnelRuinsHopWest

static void scTunnelRuinsHopWest(void)

Walking west against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on. In the room south of the giant statue he leaps from the ledge at metatile (14, 42) onto the top of a pillar pushed below it. In the sinking pillars' room he leaps from the south walkway's west end (metatile (47, 14)) onto the stepping stone the south-east pillar raised from the pit, or over a pillar on its walkway.

References fdActorGet() and scTunnelRuinsHopLeaderTo().

Referenced by scTunnelRuinsHopWestBySmallPillars(), TunnelRuinsCuesOther and TunnelRuinsGreatStatueCues.

Definition at line 690 of file tunnel_ruins.c.

scTunnelRuinsPushSecondPillars

static void scTunnelRuinsPushSecondPillars(void)

Walking into one of the second pair of gold-topped pillars, on the route past the small pillars, pushes it a metatile, across their floor (metatiles (29, 30) to (34, 34)).

With both pushed down and to the west, Isaac can hop onto their tops from the ledge at metatile (27, 33) and cross to the next room.

References fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsUpdateSecondPillarMetatiles().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 707 of file tunnel_ruins.c.

scTunnelRuinsJumpDownLedge

static void scTunnelRuinsJumpDownLedge(void)

Walking south off the ledge beside the pillars in the room south of the giant statue (metatile (14, 42)) or in the second pillars' room (metatile (27, 33)), or off the ledge north-east of the Douse pillar (metatile (28, 10)), makes Isaac jump down to the floor below.

References scFieldActorJumpDownLedge().

Referenced by TunnelRuinsCuesOther and TunnelRuinsGreatStatueCues.

Definition at line 720 of file tunnel_ruins.c.

scTunnelRuinsHopEast

static void scTunnelRuinsHopEast(void)

Walking east against a one-metatile gap or a pillar makes Isaac leap over it and land two metatiles on. In the second pillars' room he leaps from the ledge at metatile (27, 33) onto the top of a pillar pushed beside it; in the small pillars' room, from one pillar's top to the next. In the sinking pillars' room he leaps from the north walkway's east end (metatile (47, 8)) onto the stepping stone the north-west pillar raised from the pit.

References fdActorGet() and scTunnelRuinsHopLeaderTo().

Referenced by TunnelRuinsCuesOther and TunnelRuinsGreatStatueCues.

Definition at line 731 of file tunnel_ruins.c.

scTunnelRuinsPushSmallPillars

static void scTunnelRuinsPushSmallPillars(void)

Walking into one of the three small white-topped pillars on the floor below the ivy's ledge pushes it a metatile.

References fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsUpdateSmallPillarMetatiles().

Referenced by scTunnelRuinsHopSouthOrPushSmallPillars() and TunnelRuinsGreatStatueCues.

Definition at line 744 of file tunnel_ruins.c.

scTunnelRuinsHopSouthOrPushSmallPillars

static void scTunnelRuinsHopSouthOrPushSmallPillars(void)

Walking south on the floor of the small pillars makes Isaac leap over a gap if there is one, and push the small pillar in front of him otherwise.

References fdActorGet(), scTunnelRuinsHopLeaderTo() and scTunnelRuinsPushSmallPillars().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 756 of file tunnel_ruins.c.

scTunnelRuinsBlowAwayIvyA

static void scTunnelRuinsBlowAwayIvyA(void)

Whirlwind on the west half of the clump of ivy on the ledge, in the north-west corner of the small pillars' room, blows its leaves away.

Once the east half has gone too, the small pillar hidden in the clump can be reached with Move. Unlike the doorway's ivy, the clump is kept only in a scene flag, not for good.

References fdActorGet(), gmFlagGet() and gmFlagSet().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 776 of file tunnel_ruins.c.

scTunnelRuinsBlowAwayIvyB

static void scTunnelRuinsBlowAwayIvyB(void)

Whirlwind on the east half of the clump of ivy on the ledge blows its leaves away, and once the west half has gone too, the small pillar hidden in the clump can be reached with Move.

References fdActorGet(), gmFlagGet() and gmFlagSet().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 796 of file tunnel_ruins.c.

scTunnelRuinsBlowAwayIvyC

static void scTunnelRuinsBlowAwayIvyC(void)

Whirlwind on the ivy filling the arched doorway in the east wall of the small pillars' room blows it away, opening the way to the long passage.

Unlike the clump on the ledge, this ivy stays gone for good (FLAG_TUNNEL_RUINS_IVY_BLOWN_AWAY).

References gmFlagSet().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 816 of file tunnel_ruins.c.

scTunnelRuinsHopWestBySmallPillars

static void scTunnelRuinsHopWestBySmallPillars(void)

Walking west from a small pillar's top makes Isaac leap over the gap beside it, as scTunnelRuinsHopWest does, except from the ledge's metatile (32, 50) beside the top of the stairs.

References fdActorGet() and scTunnelRuinsHopWest().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 824 of file tunnel_ruins.c.

scTunnelRuinsHopNorthBySmallPillars

static void scTunnelRuinsHopNorthBySmallPillars(void)

Walking north from a small pillar's top makes Isaac leap over the gap before it, as scTunnelRuinsHopNorth does, except from metatile (30, 52), where the first small pillar starts.

References fdActorGet() and scTunnelRuinsHopNorth().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 838 of file tunnel_ruins.c.

scTunnelRuinsRaiseSteppingStone

static inline void scTunnelRuinsRaiseSteppingStone(Sint32 srcColumn, Sint32 column, Sint32 row)

The stepping stone in the pit rises one stage with a thump, and the screen shakes up and down, dying away.

References fdMapGridCopyMetatilesTo(), Sint32 and sySoundPlay().

Referenced by scTunnelRuinsSinkNorthwestPillar() and scTunnelRuinsSinkSoutheastPillar().

Definition at line 851 of file tunnel_ruins.c.

scTunnelRuinsSinkNorthwestPillar

static void scTunnelRuinsSinkNorthwestPillar(void)

When the water-filled pillar on the north walkway of the sinking pillars' room has been pushed or moved onto the water crest at metatile (46, 8), it sinks into the floor in a cloud of dust. With two thumps that shake the room, a stepping stone bearing the same crest rises out of the pit east of the walkway (metatile (49, 8)), and Isaac can hop across to it.

The pillar sinks a pixel every three ticks, 16 in all. Its top is left flush with the floor, a square of water where Frost's hidden target now lies.

References fdActorGet(), fdActorRelease(), fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scTunnelRuinsRaiseSteppingStone(), sySoundPlay() and sySynch().

Referenced by scTunnelRuinsPushNorthwestSinkingPillar() and TunnelRuinsGreatStatueCues.

Definition at line 875 of file tunnel_ruins.c.

scTunnelRuinsPushNorthwestSinkingPillar

static void scTunnelRuinsPushNorthwestSinkingPillar(void)

Walking into the water-filled pillar on the north walkway of the sinking pillars' room pushes it a metatile, and it sinks if that brings it onto its water crest. Once it has sunk it no longer moves (FLAG_TUNNEL_RUINS_NORTHWEST_PILLAR_IN_FLOOR).

References fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsSinkNorthwestPillar().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 936 of file tunnel_ruins.c.

scTunnelRuinsFreezeNorthwestPillarFrostTarget

static void scTunnelRuinsFreezeNorthwestPillarFrostTarget(void)

Frost on the water of the sunken pillar on the north walkway raises a pillar of ice from it.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteColorById() and gmFlagSet().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 946 of file tunnel_ruins.c.

scTunnelRuinsSinkSoutheastPillar

static void scTunnelRuinsSinkSoutheastPillar(void)

When the grey pillar on the south walkway of the sinking pillars' room stands on the water crest at metatile (48, 14) and Douse has filled it with water, it sinks into the floor as the north walkway's pillar does. A stepping stone rises out of the pit west of the walkway (metatile (45, 14)).

Unwatered, it stands on the crest and nothing happens.

References fdActorGet(), fdActorRelease(), fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scTunnelRuinsRaiseSteppingStone(), sySoundPlay() and sySynch().

Referenced by scTunnelRuinsDouseSoutheastPillar(), scTunnelRuinsPushSoutheastSinkingPillar() and TunnelRuinsGreatStatueCues.

Definition at line 965 of file tunnel_ruins.c.

scTunnelRuinsPushSoutheastSinkingPillar

static void scTunnelRuinsPushSoutheastSinkingPillar(void)

Walking into the grey pillar on the south walkway of the sinking pillars' room pushes it a metatile, and it sinks if it is full of water and that brings it onto its crest.

References fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsSinkSoutheastPillar().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 1025 of file tunnel_ruins.c.

scTunnelRuinsDouseStartsOnSoutheastPillar

static void scTunnelRuinsDouseStartsOnSoutheastPillar(void)

As Douse rains on the grey pillar on the south walkway, water splashes on its top.

References fdActorSetScript() and TunnelRuinsDouseSplashScript.

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 1035 of file tunnel_ruins.c.

scTunnelRuinsDouseSoutheastPillar

static void scTunnelRuinsDouseSoutheastPillar(void)

Douse fills the grey pillar on the south walkway with water, and it sinks at once if it already stands on its crest.

References gmFlagSet() and scTunnelRuinsSinkSoutheastPillar().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 1043 of file tunnel_ruins.c.

scTunnelRuinsFreezeSoutheastPillarFrostTarget

static void scTunnelRuinsFreezeSoutheastPillarFrostTarget(void)

Frost on the water of the sunken pillar on the south walkway raises a pillar of ice from it.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteColorById() and gmFlagSet().

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 1051 of file tunnel_ruins.c.

scTunnelRuinsSearchGiantStatue

static void scTunnelRuinsSearchGiantStatue(void)

Searching the giant pink statue in the first room of the Tunnel Ruins, from metatile (12, 7) before it: "The statue speaks to Isaac's soul..." It bids those who seek to climb Venus Lighthouse to "seek the lady's leave", and says the lady will keep safe at her feet the place they seek.

Once the great statue in Venus Lighthouse has opened a path, it says instead that the lady knows their desires: "Here, your path shall not be opened."

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

Referenced by TunnelRuinsGreatStatueCues.

Definition at line 1071 of file tunnel_ruins.c.

scTunnelRuinsMoveDousePillar

static void scTunnelRuinsMoveDousePillar(void)

Nothing more happens when Move pushes the grey pillar in the Douse pillar's room: the push is all there is. Its cue stops once the pillar of ice stands below it.

References fdScriptEnd() and fdScriptStart().

Referenced by scTunnelRuinsPushDousePillar() and TunnelRuinsCuesOther.

Definition at line 1090 of file tunnel_ruins.c.

scTunnelRuinsPushDousePillar

static void scTunnelRuinsPushDousePillar(void)

Walking into the grey pillar in the Douse pillar's room pushes it a metatile, across its floor (metatiles (23, 10) to (27, 13)).

References fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsMoveDousePillar().

Referenced by TunnelRuinsCuesOther.

Definition at line 1098 of file tunnel_ruins.c.

scTunnelRuinsDouseStartsOnPillar

static void scTunnelRuinsDouseStartsOnPillar(void)

Douse on the grey pillar in the Douse pillar's room fills it with water, which splashes on its top as the rain falls.

From then on its hidden Frost target follows it (scTunnelRuinsFrostTargetFollowsPillar).

References fdActorGet(), fdActorSetScript(), gmFlagSet(), scTunnelRuinsFrostTargetFollowsPillar() and TunnelRuinsDouseSplashScript.

Referenced by TunnelRuinsCuesOther.

Definition at line 1111 of file tunnel_ruins.c.

scTunnelRuinsFreezeDousePillarFrostTarget

static void scTunnelRuinsFreezeDousePillarFrostTarget(void)

Isaac casts Frost on the grey pillar in the Douse pillar's room, once Douse has filled its top with water and it stands in map row 10: snowflakes swirl, and a tall column of ice rises from the pillar's top, standing up the screen over the pit's edge just north of it, where Isaac stands, so that only his head and shoulders show above it. Its target stands 32 pixels down in the pit at the pillar's spot, and its metatile takes the attributes of map metatile (26, 8), a square Isaac can hop onto: the way on to the next room. Frost cast before Douse has soaked the pillar finds no target, and nothing happens but the cast.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteColorById(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), gmFlagSet() and Sint32.

Referenced by TunnelRuinsCuesOther.

Definition at line 1128 of file tunnel_ruins.c.

scTunnelRuinsSettleBalance

static void scTunnelRuinsSettleBalance(Sint32 ticks)

The balance platforms move to the heights their weights give them (their timers index BalancePlatformHeights), with sounds unless ticks is 0.

A platform, or the top stone on one, that comes to rest just below the floor's height becomes a square Isaac can step onto and leap from, east or west (METATILE_BEHAVIOR_TUNNEL_RUINS_RISEN_PLATFORM).

References BalancePlatformHeights, fdActorGet(), fdActorWaitForMoveById(), fdMapGridCopyMetatileAttributeRect(), fdScriptWait(), scFieldActorSetMoveTargetFX(), Sint32 and sySoundPlay().

Referenced by scInit() and scTunnelRuinsSetStoneOnBalance().

Definition at line 1175 of file tunnel_ruins.c.

scTunnelRuinsDropStoneOnStack

static void scTunnelRuinsDropStoneOnStack(Sint32 actorId)

A carried stone drops onto the highest platform or carved stone in its metatile and lands with a thud and a ring of dust.

References fdActorGet(), fdActorWaitForMoveById(), fdScriptWait(), scFieldActorSetMoveTargetFX(), scFieldEffectSpawnNineRadialEffects(), Sint32 and sySoundPlay().

Referenced by scTunnelRuinsSetStoneOnBalance().

Definition at line 1225 of file tunnel_ruins.c.

scTunnelRuinsSetStoneOnBalance

static void scTunnelRuinsSetStoneOnBalance(void)

Carry on one of the three carved stones north of the balance lifts it, and where Isaac sets it down decides what happens.

Set down over one of the balance's two white platforms (map row 9), the camera turns to the balance, the stone drops onto the platform or onto the stone already there with a thud and a ring of dust, and that platform sinks a step while the other rises: two stones on the east platform raise the west one high enough to step onto. Set down where it falls below the floor, the stone drops out of sight and is gone for this visit.

The stones look alike, so the one set down swaps places with the first stone not yet set, and the stones are always counted set from the first.

References fdActorGet(), fdCameraGetActor(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), gmFlagGet(), gmFlagSet(), scTunnelRuinsDropStoneOnStack(), scTunnelRuinsRideStoneBelow(), scTunnelRuinsSettleBalance(), scTunnelRuinsWaitForActorToLand() and Sint32.

Referenced by TunnelRuinsCuesOther.

Definition at line 1280 of file tunnel_ruins.c.

scTunnelRuinsPushCarvedStone

static void scTunnelRuinsPushCarvedStone(void)

Walking into one of the three carved stones north of the balance pushes it a metatile.

References fdScriptEnd(), fdScriptStart() and scPushedActorAdvancePair().

Referenced by TunnelRuinsCuesOther.

Definition at line 1382 of file tunnel_ruins.c.

scTunnelRuinsMoveEastPillar

static void scTunnelRuinsMoveEastPillar(void)

Nothing visible happens after Move shifts one of the two grey pillars in Babi Lighthouse's basement: the game remembers whether each now stands a metatile west of its place, so that the pillars stay where Isaac left them when he comes back.

References fdActorGet(), fdScriptEnd(), fdScriptStart(), gmFlagClear(), gmFlagSet() and scTunnelRuinsUpdateGreyPillarMetatiles().

Referenced by scTunnelRuinsPushEastPillar() and TunnelRuinsCuesOther.

Definition at line 1398 of file tunnel_ruins.c.

scTunnelRuinsPushEastPillar

static void scTunnelRuinsPushEastPillar(void)

Walking east into one of the two grey pillars in Babi Lighthouse's basement pushes it a metatile, and the game remembers where it stands.

References fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsMoveEastPillar().

Referenced by TunnelRuinsCuesOther.

Definition at line 1428 of file tunnel_ruins.c.

scTunnelRuinsShowVanishingStatues

static void scTunnelRuinsShowVanishingStatues(void)

The two white statues stand over the chests of the Oracle's Robe and the Asura's Armor, in the rooms at the ends of the two routes, and the chests are hidden. So it is on entering either room, and again as Reveal's light fades: a chest can be opened only while Reveal lasts.

The statues block their metatiles, and the chests are put away at the map's corner.

References fdMapGridCopyMetatileAttributes() and fdTreasureSpotSetPos().

Referenced by scInit() and TunnelRuinsCuesOther.

Definition at line 1443 of file tunnel_ruins.c.

scTunnelRuinsHideVanishingStatues

static void scTunnelRuinsHideVanishingStatues(void)

Reveal makes the white statue in the room vanish, and the chest it stood on appears: the Oracle's Robe at metatile (8, 49) in the west room, the Asura's Armor at metatile (49, 43) in the east one.

References fdMapGridCopyMetatileAttributes() and fdTreasureSpotSetPos().

Referenced by TunnelRuinsCuesOther.

Definition at line 1456 of file tunnel_ruins.c.

scTunnelRuinsMoveLadyStatue

static void scTunnelRuinsMoveLadyStatue(void)

After Move shifts one of the five coloured statues of a woman, the door in the room's east wall (metatile (32, 47)) opens once all five stand on their marks: red north-west, blue north-east, yellow in the middle, green south-west and violet south-east.

The camera slides over to the door and it opens with the door sound; it shuts again the same way if a statue is moved off its mark afterwards. Otherwise nothing visible happens.

References fdActorGet(), fdCameraWaitForMove(), fdMapGridAnimateMetatiles(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagClear(), gmFlagSet(), Sint32, sySoundPlay(), TunnelRuinsDoorCloseSteps and TunnelRuinsDoorOpenSteps.

Referenced by scTunnelRuinsPushLadyStatue() and TunnelRuinsCuesOther.

Definition at line 1487 of file tunnel_ruins.c.

scTunnelRuinsPushLadyStatue

static void scTunnelRuinsPushLadyStatue(void)

Walking into one of the five coloured statues pushes it a metatile, and the door opens or shuts as moving it with Move would make it.

References fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), scPushedActorAdvancePair() and scTunnelRuinsMoveLadyStatue().

Referenced by TunnelRuinsCuesOther.

Definition at line 1614 of file tunnel_ruins.c.

scTunnelRuinsSearchLadyStatue

static void scTunnelRuinsSearchLadyStatue(void)

Searching any of the five coloured statues of a woman: "The statue seems to speak to your soul..." Mind Read then hears where each colour belongs.

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

Referenced by TunnelRuinsCuesOther.

Definition at line 1625 of file tunnel_ruins.c.

scTunnelRuinsSearchLockedDoor

static void scTunnelRuinsSearchLockedDoor(void)

Searching the door in the east wall of the five statues' room, while it is shut, finds it tightly locked.

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

Referenced by TunnelRuinsCuesOther.

Definition at line 1635 of file tunnel_ruins.c.

scGetCues

const CUE *scGetCues(void)

The cues of TunnelRuinsGreatStatue, or of TunnelRuinsLadyStatues and any other scene.

References MainRoutineStateWork, TunnelRuinsCuesOther and TunnelRuinsGreatStatueCues.

Definition at line 1644 of file tunnel_ruins.c.

scInit

Sint32 scInit(void)

On entering a room, restores the puzzle as it was left, and the path the statue in Venus Lighthouse opened (FLAG_VENUS_LIGHTHOUSE_FIRST_PATH or _SECOND_PATH).

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdEffectStartGroundMask(), fdMapGridCopyMetatileAttributeRect(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), fdScriptWait(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scTunnelRuinsSettleBalance(), scTunnelRuinsShowVanishingStatues(), scTunnelRuinsUpdateFirstPillarMetatiles(), scTunnelRuinsUpdateGreyPillarMetatiles(), scTunnelRuinsUpdateGroundMaskLeader(), scTunnelRuinsUpdateSecondPillarMetatiles(), scTunnelRuinsUpdateSmallPillarMetatiles(), Sint32 and sySetTickEvent().

Definition at line 1754 of file tunnel_ruins.c.

Variables in detail

TunnelRuinsDouseSplashScript

extern Sint32 TunnelRuinsDouseSplashScript[]

Sint32 TunnelRuinsDouseSplashScript[]

Douse splashes on the pillar from tick 35 for 130 ticks, and leaves it full of water.

References scTunnelRuinsSplashDousedPillar() and Sint32.

Referenced by scTunnelRuinsDouseStartsOnPillar() and scTunnelRuinsDouseStartsOnSoutheastPillar().

Definition at lines 115 and 2186 of file tunnel_ruins.c.

TunnelRuinsDoorOpenSteps

extern Uint16 TunnelRuinsDoorOpenSteps[]

Uint16 TunnelRuinsDoorOpenSteps[]

The east wall's door opening once all five statues stand on their marks, and shutting again.

Referenced by scTunnelRuinsMoveLadyStatue().

Definition at lines 116 and 2197 of file tunnel_ruins.c.

TunnelRuinsDoorCloseSteps

extern Uint16 TunnelRuinsDoorCloseSteps[]

Uint16 TunnelRuinsDoorCloseSteps[]

Referenced by scTunnelRuinsMoveLadyStatue().

Definition at lines 117 and 2203 of file tunnel_ruins.c.

TunnelRuinsEntrancesOther

extern SCENE_ENTRANCE TunnelRuinsEntrancesOther[]

SCENE_ENTRANCE TunnelRuinsEntrancesOther[]

Unused: the entrances of any scene but the two this overlay serves, so no scene reads them. Entrance 10 would set the party at (440, 552), facing south.

Referenced by scGetEntrances().

Definition at lines 118 and 2213 of file tunnel_ruins.c.

TunnelRuinsGreatStatueEntrances

extern SCENE_ENTRANCE TunnelRuinsGreatStatueEntrances[]

SCENE_ENTRANCE TunnelRuinsGreatStatueEntrances[]

Referenced by scGetEntrances().

Definition at lines 119 and 2227 of file tunnel_ruins.c.

TunnelRuinsLadyStatuesEntrances

extern SCENE_ENTRANCE TunnelRuinsLadyStatuesEntrances[]

SCENE_ENTRANCE TunnelRuinsLadyStatuesEntrances[]

Referenced by scGetEntrances().

Definition at lines 120 and 2366 of file tunnel_ruins.c.

TunnelRuinsLadyStatuesRegions

extern SCENE_EXIT_REGION TunnelRuinsLadyStatuesRegions[]

SCENE_EXIT_REGION TunnelRuinsLadyStatuesRegions[]

Referenced by scGetExitRegions().

Definition at lines 121 and 2498 of file tunnel_ruins.c.

TunnelRuinsExits

extern Uint32 TunnelRuinsExits[]

Uint32 TunnelRuinsExits[]

Referenced by scGetExits().

Definition at lines 122 and 2517 of file tunnel_ruins.c.

TunnelRuinsGreatStatueActorPlacements

extern ACTOR_PLACE TunnelRuinsGreatStatueActorPlacements[]

ACTOR_PLACE TunnelRuinsGreatStatueActorPlacements[]

References Sint32, TunnelRuinsSmallLighthouseScript and TunnelRuinsStretchScript.

Referenced by scGetActorPlacements().

Definition at lines 123 and 2630 of file tunnel_ruins.c.

TunnelRuinsActorPlacementsOther

extern ACTOR_PLACE TunnelRuinsActorPlacementsOther[]

ACTOR_PLACE TunnelRuinsActorPlacementsOther[]

Referenced by scGetActorPlacements().

Definition at lines 124 and 2772 of file tunnel_ruins.c.

TunnelRuinsGreatStatueCues

extern CUE TunnelRuinsGreatStatueCues[]

CUE TunnelRuinsGreatStatueCues[]

References scTunnelRuinsBlowAwayIvyA(), scTunnelRuinsBlowAwayIvyB(), scTunnelRuinsBlowAwayIvyC(), scTunnelRuinsDouseSoutheastPillar(), scTunnelRuinsDouseStartsOnSoutheastPillar(), scTunnelRuinsFreezeNorthwestPillarFrostTarget(), scTunnelRuinsFreezeSoutheastPillarFrostTarget(), scTunnelRuinsHopDownStep(), scTunnelRuinsHopEast(), scTunnelRuinsHopNorth(), scTunnelRuinsHopNorthBySmallPillars(), scTunnelRuinsHopSouth(), scTunnelRuinsHopSouthOrPushSmallPillars(), scTunnelRuinsHopWest(), scTunnelRuinsHopWestBySmallPillars(), scTunnelRuinsJumpDownLedge(), scTunnelRuinsPushFirstPillars(), scTunnelRuinsPushNorthwestSinkingPillar(), scTunnelRuinsPushSecondPillars(), scTunnelRuinsPushSmallPillars(), scTunnelRuinsPushSoutheastSinkingPillar(), scTunnelRuinsSearchGiantStatue(), scTunnelRuinsSinkNorthwestPillar(), scTunnelRuinsSinkSoutheastPillar(), scTunnelRuinsUpdateFirstPillarMetatiles(), scTunnelRuinsUpdateSecondPillarMetatiles() and scTunnelRuinsUpdateSmallPillarMetatiles().

Referenced by scGetCues().

Definition at lines 125 and 2921 of file tunnel_ruins.c.

TunnelRuinsCuesOther

extern CUE TunnelRuinsCuesOther[]

CUE TunnelRuinsCuesOther[]

References scTunnelRuinsDouseStartsOnPillar(), scTunnelRuinsFreezeDousePillarFrostTarget(), scTunnelRuinsHideVanishingStatues(), scTunnelRuinsHopDownStep(), scTunnelRuinsHopEast(), scTunnelRuinsHopNorth(), scTunnelRuinsHopSouth(), scTunnelRuinsHopWest(), scTunnelRuinsJumpDownLedge(), scTunnelRuinsMoveDousePillar(), scTunnelRuinsMoveEastPillar(), scTunnelRuinsMoveLadyStatue(), scTunnelRuinsPushCarvedStone(), scTunnelRuinsPushDousePillar(), scTunnelRuinsPushEastPillar(), scTunnelRuinsPushLadyStatue(), scTunnelRuinsSearchLadyStatue(), scTunnelRuinsSearchLockedDoor(), scTunnelRuinsSetStoneOnBalance() and scTunnelRuinsShowVanishingStatues().

Referenced by scGetCues().

Definition at lines 126 and 3053 of file tunnel_ruins.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Definition at line 2164 of file tunnel_ruins.c.

TunnelRuinsSmallLighthouseScript

Sint32 TunnelRuinsSmallLighthouseScript[]

References scTunnelRuinsHideLighthouseShadow() and Sint32.

Referenced by TunnelRuinsGreatStatueActorPlacements.

Definition at line 2170 of file tunnel_ruins.c.

TunnelRuinsStretchScript

Sint32 TunnelRuinsStretchScript[]

The ivy stands 8/5 as tall as its sprite.

References Sint32.

Referenced by TunnelRuinsGreatStatueActorPlacements.

Definition at line 2179 of file tunnel_ruins.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_TUNNEL_RUINS_IVY_WEST_HALF_GONEFLAG_TUNNEL_RUINS_IVY_EAST_HALF_GONEFLAG_TUNNEL_RUINS_NORTHWEST_PILLAR_FROZENFLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_FROZENFLAG_TUNNEL_RUINS_SOUTHEAST_PILLAR_SOAKEDFLAG_TUNNEL_RUINS_FIRST_STONE_SETFLAG_TUNNEL_RUINS_DOUSE_PILLAR_SOAKEDFLAG_TUNNEL_RUINS_DOUSE_FROST_TARGET_FROZENUPDATE_BY_RELATIVE_DEPTHUPDATE_RIDE_STONE_BELOWNORTHWEST_PILLAR_CREST_COLUMNSOUTHEAST_PILLAR_CREST_COLUMNPILLAR_SINK_DEPTHEAST_PILLAR_A_PUSHED_COLUMNEAST_PILLAR_B_PUSHED_COLUMNEnumerations in detailanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumFunctions in detailscTunnelRuinsRideStoneBelowscTunnelRuinsUpdateFirstPillarMetatilesscTunnelRuinsUpdateSecondPillarMetatilesscTunnelRuinsUpdateSmallPillarMetatilesscTunnelRuinsUpdateGreyPillarMetatilesscTunnelRuinsHideLighthouseShadowscTunnelRuinsGetLandingPixelscTunnelRuinsHopLeaderToscTunnelRuinsHopSouthscTunnelRuinsHopNorthscTunnelRuinsUpdateGroundMaskLeaderscTunnelRuinsSplashDousedPillarscTunnelRuinsFrostTargetFollowsPillarscTunnelRuinsWaitForActorToLandscTunnelRuinsHopDownStepscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscTunnelRuinsPushFirstPillarsscTunnelRuinsHopWestscTunnelRuinsPushSecondPillarsscTunnelRuinsJumpDownLedgescTunnelRuinsHopEastscTunnelRuinsPushSmallPillarsscTunnelRuinsHopSouthOrPushSmallPillarsscTunnelRuinsBlowAwayIvyAscTunnelRuinsBlowAwayIvyBscTunnelRuinsBlowAwayIvyCscTunnelRuinsHopWestBySmallPillarsscTunnelRuinsHopNorthBySmallPillarsscTunnelRuinsRaiseSteppingStonescTunnelRuinsSinkNorthwestPillarscTunnelRuinsPushNorthwestSinkingPillarscTunnelRuinsFreezeNorthwestPillarFrostTargetscTunnelRuinsSinkSoutheastPillarscTunnelRuinsPushSoutheastSinkingPillarscTunnelRuinsDouseStartsOnSoutheastPillarscTunnelRuinsDouseSoutheastPillarscTunnelRuinsFreezeSoutheastPillarFrostTargetscTunnelRuinsSearchGiantStatuescTunnelRuinsMoveDousePillarscTunnelRuinsPushDousePillarscTunnelRuinsDouseStartsOnPillarscTunnelRuinsFreezeDousePillarFrostTargetscTunnelRuinsSettleBalancescTunnelRuinsDropStoneOnStackscTunnelRuinsSetStoneOnBalancescTunnelRuinsPushCarvedStonescTunnelRuinsMoveEastPillarscTunnelRuinsPushEastPillarscTunnelRuinsShowVanishingStatuesscTunnelRuinsHideVanishingStatuesscTunnelRuinsMoveLadyStatuescTunnelRuinsPushLadyStatuescTunnelRuinsSearchLadyStatuescTunnelRuinsSearchLockedDoorscGetCuesscInitVariables in detailTunnelRuinsDouseSplashScriptTunnelRuinsDoorOpenStepsTunnelRuinsDoorCloseStepsTunnelRuinsEntrancesOtherTunnelRuinsGreatStatueEntrancesTunnelRuinsLadyStatuesEntrancesTunnelRuinsLadyStatuesRegionsTunnelRuinsExitsTunnelRuinsGreatStatueActorPlacementsTunnelRuinsActorPlacementsOtherTunnelRuinsGreatStatueCuesTunnelRuinsCuesOtherFieldEffectDurationScriptsTunnelRuinsSmallLighthouseScriptTunnelRuinsStretchScript