Skip to Content
The Alchemy Project

src/scene/crossbone_isle_keys.c

Three of the side rooms of Crossbone Isle Cave, the cave beneath Crossbone Isle, with four chests each. More…

Macros

NameDescription
#defineFLAG_CROSSBONE_ISLE_THIRD_PILLAR_LOWERED FLAG_AREA_TEMP(0x00)Bane's room: the pillar on the raised platform in the south-west has been pushed off it and stands lower down, until the party leaves the cave's area (an area flag, which other areas use for their own).
#defineFIRST_STATUE_SHOVE_PIXELS 24How far, in pixels, the first statue shoves Isaac back, the same in every edition.
#defineFIRST_STATUE_FOLLOW_PIXELSHow far, in pixels, the first statue follows Isaac south as it shoves him back, and how far each of the others shoves him; the two are swapped outside the Japanese edition.
#defineSTATUE_SHOVE_PIXELS WHEN(CROSSBONE_ISLE_STATUES_SHOVE_ALIKE, 24, 16)
#defineFLAG_CROSSBONE_ISLE_BANE_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x00)Bane's room: Frost has frozen the puddle into a pillar of ice.
#defineFLAG_CROSSBONE_ISLE_BANE_CHEST_AT_LADDER FLAG_SCENE_TEMP(0x06)Bane's room: the chest on the second pillar has reached the top of the spiked channel, by the ladders.
#defineFLAG_CROSSBONE_ISLE_BANE_JUMPED_EAST_FROM_LADDER FLAG_SCENE_TEMP(0x07)Bane's room: Isaac last left a ladder by hopping east off it, rather than climbing up it.
#defineFLAG_CROSSBONE_ISLE_STATUE_AFTER_LEADER FLAG_SCENE_TEMP(0x20)The statue room: a statue is after Isaac.

Enumerations

NameDescription
enumCROSSBONE_ISLE_KEYS_ACTOR_ID { ACTOR_FIRST_BLUE_KEY, ACTOR_SECOND_BLUE_KEY, ACTOR_THIRD_BLU … }The room of keys' placed actors, numbered in the order of CrossboneIsleKeysRoomActorPlacements.
enumCROSSBONE_ISLE_STATUES_ACTOR_ID { ACTOR_FIRST_STATUE, ACTOR_SECOND_STATUE, ACTOR_THIRD_STATUE, … }The statue room's placed actors, numbered in the order of CrossboneIsleStatuesActorPlacements.
enumCROSSBONE_ISLE_STATUES_RAISED_CUE { RAISED_FIRST_CHASE, RAISED_SECOND_CHASE, RAISED_FIFTH_CHASE }The scripts the statue room's per-tick checks raise when Isaac steps onto the tiles in front of the first, second or fifth statue.
enumCROSSBONE_ISLE_BANE_ACTOR_ID { ACTOR_FIRST_PILLAR, ACTOR_SECOND_PILLAR, ACTOR_THIRD_PILLAR, … }Bane's room's placed actors, numbered in the order of CrossboneIsleBaneActorPlacements.
enumCROSSBONE_ISLE_KEYS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_KEYS_RED_DOOR, METATILE_BEHAVIOR_KEYS_FIRS … }The room of keys' metatiles that run its scripts, from crossbone_isle_keys_and_bane's map.txt.
enumCROSSBONE_ISLE_STATUES_METATILE_BEHAVIOR { METATILE_BEHAVIOR_STATUES_BEFORE_THIRD_STATUE, METATILE_BEHA … }The statue room's metatiles that run the third and fourth statues' scripts, from crossbone_isle_statues's map.txt.
enumCROSSBONE_ISLE_BANE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_BANE_FIRST_ESCAPE, METATILE_BEHAVIOR_BANE_ … }Bane's room's metatiles that run its scripts, from crossbone_isle_keys_and_bane's map.txt (the room is the east half of the map the room of keys shares).
enumCROSSBONE_ISLE_BANE_SPARE_METATILE { RAISED_PILLAR_TOP_COLUMN, RAISED_PILLAR_TOP_ROW, LOW_LEDGE_C … }Spare metatiles beside Bane's room, (57..64, 36..42), whose attributes the pillars' and the Demon Axe chest's moves copy into the room.
enumCROSSBONE_ISLE_KEYS_DOOR_PICTURE { BLUE_DOOR_HALF_OPEN_COLUMN, BLUE_DOOR_OPEN_COLUMN, RED_DOOR_ … }The doors' pictures, kept on map layer 1 (from the map's column 64): a blue door half open and open, and the red door half open and open, each one metatile by three.
enumanonymous enum { PASSAGE_INDEX_MASK, PASSAGE_PLAY_OPENING }What scCrossboneIsleKeysOpenBlueDoor is given: the door's number in the low byte, and PASSAGE_PLAY_OPENING to play its opening.
enumanonymous enum { TREASURE_SPOT_KEYS_333_COINS, TREASURE_SPOT_KEYS_FAIRY_RING, … }The rooms' chests, named for what each holds; each room numbers its own.

Functions

NameDescription
static voidscCrossboneIsleKeysPushFirstPillar (void)Walking into the first pillar on the low ledge in the north-west of Bane's room pushes it a metatile along the ledge.
static voidscCrossboneIsleKeysFollowSecondPillar (void)Keeps the Demon Axe's chest on top of the second pillar as it moves, every tick.
static voidscCrossboneIsleKeysPlaceDemonAxeChestCue (void)Puts the Demon Axe chest's examine cue where the second pillar stands.
static voidscCrossboneIsleKeysInitKeys (void)Puts each key not yet taken on its post, and draws open the doors already opened.
static voidscCrossboneIsleKeysInitStatues (void)Makes the first four statues solid and draws all five a little narrower, starts the watches for Isaac in front of the first, second and fifth, and lays the darkness over the hall, half see-through.
static voidscCrossboneIsleKeysInitBane (void)Lays the metatiles under each pillar where it stands, refreezes the puddle if Frost froze it since the party came in, and puts Bane where its last escape left it: at the west end of the back ledge, on the low ledge below it, at the east end of the back ledge, or on the spiked ledge in the south-east.
static inline voidscCrossboneIsleKeysRaiseScript (Sint16 *raisedCue, Sint32 event)Raises a script for the cue table to run on the next tick.
static inline voidscCrossboneIsleKeysLiftFirstPillar (Sint32 column, Uint8 motionFlags)Stands the first pillar on the low ledge in the north-west, in the given column, and makes its top ground level with the back ledge, so that Isaac can walk onto it from there.
static voidscCrossboneIsleKeysBaneJoins (void)Talking to Bane on the spiked ledge in the south-east of Bane's room while Halt holds it still: Bane, a Venus Djinni, joins the party.
static voidscCrossboneIsleKeysUnusedNoOperationA (void)Unused: an empty function nothing refers to.
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)Some villagers only turn back after talking once the flood is over or their family has gone home.
static voidscCrossboneIsleKeysHaltStatue (void)Halt on one of the five statues in the statue room: the statue stops where it is, wrapped in Halt's light, and while it lasts Isaac can walk past it.
static UNREAD_RESULTscCrossboneIsleKeysFaceBaneTowardLeader (ACTOR *actor)Keeps Bane turned toward Isaac on the spiked ledge, every tick.
static voidscCrossboneIsleKeysBaneFirstEscape (void)Bane runs off the first time Isaac comes along the back ledge towards it, at metatile (40, 41).
static voidscCrossboneIsleKeysBaneSecondEscape (void)Bane runs off again when Isaac comes up the passage down the west side of the room towards it, at metatile (36, 46).
static voidscCrossboneIsleKeysBaneLastEscape (void)Bane flees a third time when Isaac comes east along the back ledge to it, at metatile (51, 41), and this time it runs to the ledge with three spikes in the south-east.
static voidscCrossboneIsleKeysBaneKeepsAway (void)Bane keeps the three spikes on the south-east ledge between itself and Isaac: whenever he steps onto one of the twelve metatiles round them, metatiles (50..55, 51..54), it runs as fast as he walks to the spot across from him, unless Halt holds it.
static voidscCrossboneIsleKeysHaltBane (void)Halt on Bane in Bane's room: it stops still where it is, and Isaac can walk up and talk to it.
const CUE *scGetCues (void)The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen.
static voidscCrossboneIsleKeysUnusedJumpOntoPost (void)Unused: pushing south on the walkway in front of the third or fourth blue door in the room of keys would hop Isaac down onto the stone post two metatiles south, at metatile (21, 45) or (25, 45).
static voidscCrossboneIsleKeysOpenBlueDoor (Sint32 passageInfo)Opens a blue door in the room of keys, numbered 0 to 3 from the west, so that the doorway leads through to its chest.
static voidscCrossboneIsleKeysOpenRedDoor (Sint32 passageInfo)Opens the red door on the ledge west of the pit, playing its grinding opening with PASSAGE_PLAY_OPENING as a blue door's.
static voidscCrossboneIsleKeysUseRedKey (void)Walking up to the red door on the ledge west of the pit with the Red Key, at metatile (6, 52), opens it: it grinds open as the floor shakes, and the key is used up.
static voidscCrossboneIsleKeysUseBlueKey (Sint32 doorIndex)Walking up to a blue door with a Blue Key, numbered 0 to 3 from the west, opens it: it grinds open as the floor shakes, and one Blue Key is used up.
static inline voidscCrossboneIsleKeysHopOntoPostBelow (void)Pushing south for a moment on the walkway in front of the third or fourth blue door hops Isaac down onto the stone post two metatiles south.
static voidscCrossboneIsleKeysOpenFirstBlueDoor (void)Walking up to the westmost blue door on the walkway along the pit's north wall, at metatile (13, 43), opens it with a Blue Key, showing the chest with 333 coins behind it.
static voidscCrossboneIsleKeysOpenSecondBlueDoor (void)Walking up to the second blue door from the west on the walkway, at metatile (17, 43), opens it with a Blue Key, showing the chest with the Fairy Ring behind it.
static voidscCrossboneIsleKeysOpenThirdBlueDoor (void)Walking up to the third blue door from the west on the walkway, at metatile (21, 43), opens it with a Blue Key, showing the chest with the Cookie behind it.
static voidscCrossboneIsleKeysOpenFourthBlueDoor (void)Walking up to the eastmost blue door on the walkway, at metatile (25, 43), opens it with a Blue Key, showing the chest with the Smoke Bomb behind it.
static voidscCrossboneIsleKeysShowRedKey (void)Reveal in the room of keys shows a hidden stone post, with the Red Key on top, three metatiles south of the post below the fourth blue door, at metatile (25, 48).
static voidscCrossboneIsleKeysHideRedKey (void)When Reveal wears off in the room of keys, the hidden post south of the fourth blue door vanishes again, at metatile (25, 48), and so does the Red Key if it is still on it.
static inline voidscCrossboneIsleKeysGetKey (Sint32 actorId, Sint32 itemId, Sint32 collectedFlag)Gives the party a key that Catch has pulled in: "Isaac got the Blue Key." (or the Red Key), and the key's icon is gone from its post for good.
static voidscCrossboneIsleKeysCatchFirstBlueKey (void)Catch on the Blue Key on the post just north of where Isaac comes into the pit from the east door: a hand of light reaches out and pulls the key to him.
static voidscCrossboneIsleKeysCatchSecondBlueKey (void)Catch on the Blue Key on a post in the middle of the pit: a hand of light pulls it to Isaac.
static voidscCrossboneIsleKeysCatchThirdBlueKey (void)Catch on the Blue Key on a post in the north of the pit, below the walkway: a hand of light pulls it to Isaac.
static voidscCrossboneIsleKeysCatchFourthBlueKey (void)Catch on the Blue Key on a post in the south of the pit, east of the middle: a hand of light pulls it to Isaac.
static voidscCrossboneIsleKeysCatchRedKey (void)Catch on the Red Key, on the hidden post Reveal shows south of the fourth blue door: a hand of light pulls it to Isaac.
static voidscCrossboneIsleKeysCheckFirstStatueCue (void)Watches, every tick, for Isaac on the tiles just south of the statue in the north-east, metatiles (21..23, 10..11), and sets it on him unless Cloak hides him, Halt holds the statue or another statue is already after him.
static voidscCrossboneIsleKeysFirstStatuePushesLeaderBack (void)The statue in the north-east of the statue room glides down onto Isaac when he steps onto the tiles in front of it, with a thud, shoves him back south and glides home again.
static voidscCrossboneIsleKeysCheckSecondStatueCue (void)Watches, every tick, for Isaac on the narrow walk below the statue in the west, metatiles (10, 16..18), and sets it on him unless Cloak hides him, Halt holds the statue or another statue is already after him.
static voidscCrossboneIsleKeysSecondStatuePushesLeaderBack (void)The statue on the narrow walk between the dark pits in the west of the statue room glides down onto Isaac as he comes north up the walk, with a thud, shoves him back south and glides home again.
static voidscCrossboneIsleKeysTrackStatueColumn (Sint32 statueIndex)Slides the third or fourth statue (0 or 1) along its alcove with a thud to stand right in front of Isaac's column, unless Halt holds it, and nudges him 8 pixels south if he has got into the alcove's row.
static voidscCrossboneIsleKeysThirdStatueShadowsLeader (void)As Isaac walks along the rug in front of the third statue, in the west alcove of the statue room's south walkway, metatiles (15..17, 23), the statue slides sideways to stay right in front of him, barring the way north to the chest with the Sleep Bomb.
static voidscCrossboneIsleKeysFourthStatueShadowsLeader (void)As Isaac walks along the rug in front of the fourth statue, in the east alcove of the statue room's south walkway, metatiles (20..22, 23), the statue slides sideways to stay right in front of him and bar the way north.
static voidscCrossboneIsleKeysTrackFifthStatueColumn (void)Unused: would make the fifth statue slide to stay in front of Isaac as the third and fourth do; nothing calls it.
static voidscCrossboneIsleKeysThirdStatuePushesLeaderBack (void)Stepping into the third statue's alcove on the south walkway, metatiles (15..17, 22), while Halt does not hold the statue, makes it glide onto Isaac with a thud, shove him back south and glide home again.
static voidscCrossboneIsleKeysFourthStatuePushesLeaderBack (void)Stepping into the fourth statue's alcove on the south walkway, metatiles (20..22, 22), while Halt does not hold the statue, makes it shuffle half a metatile towards Isaac, glide onto him with a thud, shove him back south and glide home again.
static voidscCrossboneIsleKeysCheckFifthStatueCue (void)Watches, every tick, for Isaac on the two tiles just south of the statue in the middle of the hall, metatiles (19, 15..16), and sets it on him unless Cloak hides him, Halt holds the statue or another statue is already after him.
static voidscCrossboneIsleKeysFifthStatuePushesLeaderBack (void)The statue in the middle of the statue room glides down onto Isaac when he steps onto the tiles in front of it, with a thud, shoves him back south and glides home again.
static voidscCrossboneIsleKeysCastRevealInStatueRoom (void)Reveal in the statue room lifts the darkness: while it lasts the whole hall shows evenly in Reveal's grey, not only the circles of light round the braziers.
static voidscCrossboneIsleKeysRevealEndsInStatueRoom (void)When Reveal wears off in the statue room, the darkness falls over the hall again outside the circles of light.
static voidscCrossboneIsleKeysUseLadder (void)At either of the two ladders down from the back ledge of Bane's room, by the spiked channel in the middle, metatiles (42, 41..42) and (48, 41..42), Isaac climbs up with Up and down with Down, and with Right hops east off the ladder.
static voidscCrossboneIsleKeysUnusedNoOperationB (void)Unused: an empty function nothing refers to.
static voidscCrossboneIsleKeysFreezePuddle (void)Frost on the puddle between the two spikes in the south-west of Bane's room freezes it into a pillar of ice, which Isaac can hop onto and across like a stepping stone, at metatile (40, 55).
static voidscCrossboneIsleKeysJumpEastOrPushFirstPillar (void)Just east of the first pillar's home on the low ledge in the north-west of Bane's room, at metatile (39, 42), pushing east hops Isaac east off the ledge; pushing west into the pillar pushes it.
static voidscCrossboneIsleKeysClearFirstPillarFromLedge (void)Lays the low ledge in the north-west as it is with the first pillar gone, before the pillar's own metatile is laid where it stands.
static voidscCrossboneIsleKeysStandFirstPillarAtLadderFoot (void)The first pillar stands in the gap's east metatile, at the foot of the west ladder, metatile (42, 42): its top raises the ladder's foot to the low ledge's height.
static voidscCrossboneIsleKeysStandFirstPillarInGap (void)The first pillar stands in the middle of the gap, metatile (41, 42): its top is a square Isaac can hop across.
static voidscCrossboneIsleKeysStandFirstPillarByLedge (void)The first pillar stands in the gap's west metatile, metatile (40, 42), its top level with the low ledge, which it lengthens by a metatile.
static voidscCrossboneIsleKeysMoveFirstPillar (void)Move on the first pillar, on the low ledge in the north-west of Bane's room, slides it along the ledge; the metatiles under it follow it.
static voidscCrossboneIsleKeysReleaseSecondPillarChest (void)Leaves the Demon Axe's chest on the second pillar at the top of the spiked channel, where the chest's examine cue takes its place.
static voidscCrossboneIsleKeysMoveSecondPillar (void)Move on the second pillar, in the spiked channel in the middle of Bane's room, slides it with the Demon Axe's chest riding on top; once it reaches the top of the channel by the ladders, metatile (45, 43), it stays there and the chest can be opened from beside it.
static voidscCrossboneIsleKeysPushSecondPillar (void)Walking into the second pillar, at the foot of the spiked channel in the middle of Bane's room, pushes it a metatile north up the channel towards the back of the room, carrying the Demon Axe's chest on top.
static voidscCrossboneIsleKeysClearThirdPillarFromFloor (void)Lays the floor along the south of the south-west platform as it is with no pillar at either end, metatiles (38, 55) and (42, 55).
static voidscCrossboneIsleKeysStandThirdPillarWest (void)The third pillar has come down at the west end of the floor below its platform, metatile (38, 55): its top becomes a square Isaac can hop across.
static voidscCrossboneIsleKeysStandThirdPillarEast (void)The third pillar has come down at the east end of the floor below its platform, metatile (42, 55): its top becomes a square Isaac can hop across.
static voidscCrossboneIsleKeysMoveThirdPillar (void)Move on the third pillar, on the raised platform in the south-west of Bane's room, slides it; pushed off the platform's south edge it drops to the floor below, and its top becomes a stepping stone beside the puddle.
static voidscCrossboneIsleKeysPushThirdPillar (void)Walking into the third pillar, on the raised platform in the south-west of Bane's room or on the floor below it, pushes it a metatile.
static voidscCrossboneIsleKeysTouchThirdPillar (void)At the south edge of the raised platform in the south-west of Bane's room, metatile (38, 54), pushing south jumps Isaac down off the platform to the floor below in a puff of dust; pushing any other way pushes the third pillar.
static voidscCrossboneIsleKeysClearFourthAndFifthPillarRow (void)Lays the row the fourth and fifth pillars are pushed along, metatiles (49..52, 55), as plain floor.
static voidscCrossboneIsleKeysStandFourthAndFifthPillars (void)Makes the tops of the fourth and fifth pillars squares Isaac can hop across, wherever along their row they stand.
static voidscCrossboneIsleKeysMoveFourthPillar (void)Move on the west one of the two pillars by the east doorway of Bane's room slides it along the south row; its top stays a stepping stone.
static voidscCrossboneIsleKeysPushFourthOrFifthPillar (void)Walking into either of the two pillars by the east doorway of Bane's room pushes it along the south row, metatiles (48..52, 55), and its top stays a stepping stone wherever it stops.
static voidscCrossboneIsleKeysMoveFifthPillar (void)Move on the east one of the two pillars by the east doorway of Bane's room slides it along the south row; its top stays a stepping stone.
static voidscCrossboneIsleKeysPushFifthPillar (void)Unused: the same push as scCrossboneIsleKeysPushFourthOrFifthPillar's, written for the fifth pillar; nothing refers to it.
static voidscCrossboneIsleKeysUpdatePillarPriorities (void)Draws the pillars in front of Isaac or behind him, every tick, by how high he stands and, for the third, how far south he is.
Sint32scInit (void)Sets up whichever of the three rooms the party enters: the keys and doors of the room of keys, the statues of the statue room, or the pillars and Bane of Bane's room.
static voidscCrossboneIsleKeysUnusedRedrawKeyActors (void)Unused: nothing adds it as an event.

Variables

NameDescription
extern Sint32CrossboneIsleKeysBaneSquashScript []
extern Sint32CrossboneIsleKeysBaneWalkTargets [][2]Where Bane runs to, in pixels, when Isaac steps onto each of the twelve metatiles round the three spikes on the south-east ledge, from METATILE_BEHAVIOR_BANE_CORNER_FIRST on: always the spot across the spikes from him.
extern SCENE_ENTRANCECrossboneIsleKeysRoomEntrances []
extern SCENE_ENTRANCECrossboneIsleStatuesEntrances []
extern SCENE_ENTRANCECrossboneIsleBaneEntrances []
extern Uint32CrossboneIsleKeysExits []
extern ACTOR_PLACECrossboneIsleKeysActorPlacementsOther []
extern ACTOR_PLACECrossboneIsleKeysRoomActorPlacements []
extern ACTOR_PLACECrossboneIsleStatuesActorPlacements []
extern ACTOR_PLACECrossboneIsleBaneActorPlacements []
extern CUECrossboneIsleKeysCuesOther []
extern CUECrossboneIsleKeysRoomCues []
extern CUECrossboneIsleStatuesCues []
extern CUECrossboneIsleBaneCues []
extern Uint32CrossboneIsleKeysStatueColumns []The column the third and fourth statues stand in as they slide to stay in front of Isaac; the third entry is the fifth statue's, which nothing slides.
extern Sint32CrossboneIsleKeysIconTimerUnused: the tick counter of scCrossboneIsleKeysUnusedRedrawKeyActors.

Description

Three of the side rooms of Crossbone Isle Cave, the cave beneath Crossbone Isle, with four chests each.

Each opens off one of the nine floors the cave descends through (crossbone_isle.c), as the other five do (crossbone_isle_stepping_stones.c). The party comes in by the floor's east door and the room is the way across to its west door. All three take the area name Crossbone Isle Cave. In the order the party meets them:

  • The room of keys (SceneIdCrossboneIsleKeys), off the third floor: a pit full of square stone posts, with a walkway along its north wall. Four blue doors in a row along the walkway lead to four small rooms with a chest each: 333 coins, the Fairy Ring, a Cookie and a Smoke Bomb, west to east. A red door on a ledge west of the pit is the way on to the floor's west door.

    Four Blue Keys lie on top of posts out of reach, and Catch pulls each one in. Walking up to a blue door with a Blue Key opens it and uses the key up. From the walkway in front of the fourth door Isaac can hop down onto the posts, and Reveal there shows a hidden post with the Red Key on it, which Catch takes too. The Red Key opens the red door the same way. The keys taken and the doors opened stay so on later visits.

  • The statue room (SceneIdCrossboneIsleStatues), off the fourth floor: a dark hall where five statues of a robed woman stand in circles of light round braziers.

    The statue in the north-east, the one on the narrow walk in the west and the one in the middle each guard the few tiles in front of them. Stepping onto those tiles makes the statue glide onto Isaac with a thud and shove him back south, then glide home, unless Cloak hides him. The two statues in the alcoves on the south walkway near the east door slide sideways to stay in front of Isaac as he walks past, so that he cannot get by them. Halt stops a statue where it is, and while Reveal lasts the darkness lifts from the whole hall.

  • Bane's room (SceneIdCrossboneIsleBane), off the sixth floor, where Bane, a Venus Djinni, waits at the west end of the ledge along the back wall. Five stone pillars to push or shift with Move, the ladders and a puddle that Frost freezes into a pillar of ice make the way across the room. A chest on one pillar holds the Demon Axe.

    The first two times Isaac comes near, Bane runs off along the room. The third time it flees to a ledge in the south-east with three spikes on it, and there it keeps running round the spikes away from him until Halt holds it still. Talked to while it is held, Bane joins the party.

Macros in detail

FLAG_CROSSBONE_ISLE_THIRD_PILLAR_LOWERED

#define FLAG_CROSSBONE_ISLE_THIRD_PILLAR_LOWERED FLAG_AREA_TEMP(0x00)

Bane's room: the pillar on the raised platform in the south-west has been pushed off it and stands lower down, until the party leaves the cave's area (an area flag, which other areas use for their own).

Referenced by scCrossboneIsleKeysMoveThirdPillar().

Definition at line 78 of file crossbone_isle_keys.c.

FIRST_STATUE_SHOVE_PIXELS

#define FIRST_STATUE_SHOVE_PIXELS 24

How far, in pixels, the first statue shoves Isaac back, the same in every edition.

Referenced by scCrossboneIsleKeysFirstStatuePushesLeaderBack().

Definition at line 82 of file crossbone_isle_keys.c.

FIRST_STATUE_FOLLOW_PIXELS

#define FIRST_STATUE_FOLLOW_PIXELS

How far, in pixels, the first statue follows Isaac south as it shoves him back, and how far each of the others shoves him; the two are swapped outside the Japanese edition.

Referenced by scCrossboneIsleKeysFirstStatuePushesLeaderBack().

Definition at line 87 of file crossbone_isle_keys.c.

STATUE_SHOVE_PIXELS

#define STATUE_SHOVE_PIXELS WHEN(CROSSBONE_ISLE_STATUES_SHOVE_ALIKE, 24, 16)

Referenced by scCrossboneIsleKeysFifthStatuePushesLeaderBack(), scCrossboneIsleKeysFourthStatuePushesLeaderBack(), scCrossboneIsleKeysSecondStatuePushesLeaderBack() and scCrossboneIsleKeysThirdStatuePushesLeaderBack().

Definition at line 89 of file crossbone_isle_keys.c.

FLAG_CROSSBONE_ISLE_BANE_PUDDLE_FROZEN

#define FLAG_CROSSBONE_ISLE_BANE_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x00)

Bane's room: Frost has frozen the puddle into a pillar of ice.

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysFreezePuddle() and scCrossboneIsleKeysInitBane().

Definition at line 330 of file crossbone_isle_keys.c.

FLAG_CROSSBONE_ISLE_BANE_CHEST_AT_LADDER

#define FLAG_CROSSBONE_ISLE_BANE_CHEST_AT_LADDER FLAG_SCENE_TEMP(0x06)

Bane's room: the chest on the second pillar has reached the top of the spiked channel, by the ladders.

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysReleaseSecondPillarChest() and scCrossboneIsleKeysUseLadder().

Definition at line 333 of file crossbone_isle_keys.c.

FLAG_CROSSBONE_ISLE_BANE_JUMPED_EAST_FROM_LADDER

#define FLAG_CROSSBONE_ISLE_BANE_JUMPED_EAST_FROM_LADDER FLAG_SCENE_TEMP(0x07)

Bane's room: Isaac last left a ladder by hopping east off it, rather than climbing up it. While it is set, the chest's metatile at the top of the spiked channel, (45, 43), answers the Demon Axe's examine cue.

Referenced by scCrossboneIsleKeysReleaseSecondPillarChest() and scCrossboneIsleKeysUseLadder().

Definition at line 337 of file crossbone_isle_keys.c.

FLAG_CROSSBONE_ISLE_STATUE_AFTER_LEADER

#define FLAG_CROSSBONE_ISLE_STATUE_AFTER_LEADER FLAG_SCENE_TEMP(0x20)

The statue room: a statue is after Isaac.

Referenced by scCrossboneIsleKeysCheckFifthStatueCue(), scCrossboneIsleKeysCheckFirstStatueCue(), scCrossboneIsleKeysCheckSecondStatueCue(), scCrossboneIsleKeysFifthStatuePushesLeaderBack(), scCrossboneIsleKeysFirstStatuePushesLeaderBack() and scCrossboneIsleKeysSecondStatuePushesLeaderBack().

Definition at line 339 of file crossbone_isle_keys.c.

Enumerations in detail

CROSSBONE_ISLE_KEYS_ACTOR_ID

enum CROSSBONE_ISLE_KEYS_ACTOR_ID

The room of keys' placed actors, numbered in the order of CrossboneIsleKeysRoomActorPlacements.

They are the keys, each drawn as its item's icon on top of a stone post (scColossoShowItemIcon) until Catch takes it.

EnumeratorValueDescription
ACTOR_FIRST_BLUE_KEYACTOR_FIRST_PLACED
ACTOR_SECOND_BLUE_KEY
ACTOR_THIRD_BLUE_KEY
ACTOR_FOURTH_BLUE_KEY
ACTOR_RED_KEYShown only while Reveal lasts.

Definition at line 103 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_STATUES_ACTOR_ID

enum CROSSBONE_ISLE_STATUES_ACTOR_ID

The statue room's placed actors, numbered in the order of CrossboneIsleStatuesActorPlacements.

They are the five statues of a robed woman, all of one sprite, each waiting at its home in a circle of light.

EnumeratorValueDescription
ACTOR_FIRST_STATUEACTOR_FIRST_PLACEDIn the north-east, beside the chest with the Storm Gear.
ACTOR_SECOND_STATUEOn the narrow walk between two dark pits in the west.
ACTOR_THIRD_STATUEIn the west alcove of the south walkway, barring the way north to the chest with the Sleep Bomb.
ACTOR_FOURTH_STATUEIn the east alcove of the south walkway.
ACTOR_FIFTH_STATUEIn the middle of the hall, south of the chest with 444 coins.

Definition at line 117 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_STATUES_RAISED_CUE

enum CROSSBONE_ISLE_STATUES_RAISED_CUE

The scripts the statue room's per-tick checks raise when Isaac steps onto the tiles in front of the first, second or fifth statue.

The third and fourth statues answer metatiles of their own instead (CROSSBONE_ISLE_STATUES_METATILE_BEHAVIOR).

EnumeratorValueDescription
RAISED_FIRST_CHASE91
RAISED_SECOND_CHASE92
RAISED_FIFTH_CHASE96

Definition at line 138 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_BANE_ACTOR_ID

enum CROSSBONE_ISLE_BANE_ACTOR_ID

Bane's room's placed actors, numbered in the order of CrossboneIsleBaneActorPlacements.

EnumeratorValueDescription
ACTOR_FIRST_PILLARACTOR_FIRST_PLACEDThe five stone pillars, in Goma Cave's pillar sprite, pushed by walking into them or with Move. The first stands on the low ledge in the north-west, below where Bane first waits, at the top of a short ladder.
ACTOR_SECOND_PILLARIn the channel between two rows of spikes in the middle of the room, with the Demon Axe's chest on top.
ACTOR_THIRD_PILLAROn the raised platform in the south-west.
ACTOR_FOURTH_PILLARThe west one of the two side by side in the south-east, by the east doorway.
ACTOR_FIFTH_PILLARThe east one of the two.
ACTOR_PUDDLEThe puddle between two spikes in the south-west, frozen by Frost into a pillar of ice.
ACTOR_SECOND_PILLAR_CHESTThe chest on top of the second pillar, holding the Demon Axe. It is drawn in the sprite of McCoy's Palace's chests. It rides on the pillar until the pillar reaches the top of its channel, by the ladders, where the chest's examine cue, TREASURE_SPOT_DEMON_AXE, takes its place. It is drawn open once FLAG_CROSSBONE_ISLE_DEMON_AXE is set.
ACTOR_BANEBane, a Venus Djinni, until it is caught.

Definition at line 147 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_KEYS_METATILE_BEHAVIOR

enum CROSSBONE_ISLE_KEYS_METATILE_BEHAVIOR

The room of keys' metatiles that run its scripts, from crossbone_isle_keys_and_bane's map.txt.

EnumeratorValueDescription
METATILE_BEHAVIOR_KEYS_RED_DOOR50In front of the red door, metatile (6, 52).
METATILE_BEHAVIOR_KEYS_FIRST_BLUE_DOOR51In front of each blue door on the walkway, west to east: metatiles (13, 43), (17, 43), (21, 43) and (25, 43).
METATILE_BEHAVIOR_KEYS_SECOND_BLUE_DOOR52
METATILE_BEHAVIOR_KEYS_THIRD_BLUE_DOOR53
METATILE_BEHAVIOR_KEYS_FOURTH_BLUE_DOOR54

Definition at line 183 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_STATUES_METATILE_BEHAVIOR

enum CROSSBONE_ISLE_STATUES_METATILE_BEHAVIOR

The statue room's metatiles that run the third and fourth statues' scripts, from crossbone_isle_statues's map.txt.

EnumeratorValueDescription
METATILE_BEHAVIOR_STATUES_BEFORE_THIRD_STATUE53The rug in front of the third statue's alcove, metatiles (15..17, 23).
METATILE_BEHAVIOR_STATUES_BEFORE_FOURTH_STATUE54The rug in front of the fourth statue's alcove, metatiles (20..22, 23).
METATILE_BEHAVIOR_STATUES_THIRD_ALCOVE61The third statue's alcove, metatiles (15..17, 22).
METATILE_BEHAVIOR_STATUES_FOURTH_ALCOVE62The fourth statue's alcove, metatiles (20..22, 22).

Definition at line 198 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_BANE_METATILE_BEHAVIOR

enum CROSSBONE_ISLE_BANE_METATILE_BEHAVIOR

Bane's room's metatiles that run its scripts, from crossbone_isle_keys_and_bane's map.txt (the room is the east half of the map the room of keys shares).

EnumeratorValueDescription
METATILE_BEHAVIOR_BANE_FIRST_ESCAPE20On the back ledge, metatile (40, 41).
METATILE_BEHAVIOR_BANE_SECOND_ESCAPE21In the passage down the west side, metatile (36, 46).
METATILE_BEHAVIOR_BANE_LAST_ESCAPE22On the back ledge towards its east end, metatile (51, 41).
METATILE_BEHAVIOR_BANE_CORNER_FIRST30The first of the twelve metatiles round the three
METATILE_BEHAVIOR_BANE_THIRD_PILLAR50spikes on the south-east ledge, (50..55, 51..54), one for each row of CrossboneIsleKeysBaneWalkTargets. The south-west platform and the floor below it, where the third pillar is pushed.
METATILE_BEHAVIOR_BANE_FIRST_PILLAR51The first pillar's metatile and those it is pushed through: the low ledge in the north-west, (36..41, 42), and the short ladder at (38, 41..43).
METATILE_BEHAVIOR_BANE_SECOND_PILLAR52The spiked channel the second pillar is pushed up, (44..46, 43..49).
METATILE_BEHAVIOR_BANE_FOURTH_PILLAR53The row the fourth and fifth pillars are pushed along, (48..52, 55).
METATILE_BEHAVIOR_BANE_THIRD_PILLAR_EDGE54The south edge of the south-west platform, metatile (38, 54).
METATILE_BEHAVIOR_BANE_LADDER60The foot and top of the two ladders down from the back ledge, either side of the spiked channel: (42, 41..42) and (48, 41..42).
METATILE_BEHAVIOR_BANE_WEST_OF_FIRST_PILLAR61West of the first pillar's home, metatile (37, 42).
METATILE_BEHAVIOR_BANE_EAST_OF_FIRST_PILLAR70East of the first pillar's home, metatile (39, 42).

Definition at line 218 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_BANE_SPARE_METATILE

enum CROSSBONE_ISLE_BANE_SPARE_METATILE

Spare metatiles beside Bane's room, (57..64, 36..42), whose attributes the pillars' and the Demon Axe chest's moves copy into the room.

EnumeratorValueDescription
RAISED_PILLAR_TOP_COLUMN61The first pillar's top, level with the
RAISED_PILLAR_TOP_ROW36back ledge.
LOW_LEDGE_COLUMN62The low ledge's three metatiles round the
LOW_LEDGE_ROW37first pillar's home, (37..39, 42), as the map lays them.
EMPTY_GAP_COLUMN57The gap's metatiles with no pillar in them: its floor, and the west ladder's foot, (42, 42).
EMPTY_LADDER_FOOT_COLUMN58
EMPTY_GAP_ROW42
RAISED_LADDER_FOOT_COLUMN58The ladder's foot raised by the first
RAISED_LADDER_FOOT_ROW41pillar standing in it.
DEMON_AXE_CHEST_COLUMN58The Demon Axe chest's metatile, searched
DEMON_AXE_CHEST_ROW36as TREASURE_SPOT_DEMON_AXE.

Definition at line 268 of file crossbone_isle_keys.c.

CROSSBONE_ISLE_KEYS_DOOR_PICTURE

enum CROSSBONE_ISLE_KEYS_DOOR_PICTURE

The doors' pictures, kept on map layer 1 (from the map's column 64): a blue door half open and open, and the red door half open and open, each one metatile by three. The blue doors are drawn at (77 + 4n, 40), that layer's (13 + 4n, 40), over their metatiles, and the red door at (70, 49).

EnumeratorValueDescription
BLUE_DOOR_HALF_OPEN_COLUMN79
BLUE_DOOR_OPEN_COLUMN80
RED_DOOR_HALF_OPEN_COLUMN84
RED_DOOR_OPEN_COLUMN85
DOOR_PICTURE_ROW29

Definition at line 294 of file crossbone_isle_keys.c.

anonymous enum

enum { PASSAGE_INDEX_MASK, PASSAGE_PLAY_OPENING }

What scCrossboneIsleKeysOpenBlueDoor is given: the door's number in the low byte, and PASSAGE_PLAY_OPENING to play its opening.

EnumeratorValueDescription
PASSAGE_INDEX_MASK0xff
PASSAGE_PLAY_OPENING0x100

Definition at line 305 of file crossbone_isle_keys.c.

anonymous enum

enum { TREASURE_SPOT_KEYS_333_COINS, TREASURE_SPOT_KEYS_FAIRY_RING, TREASURE_SPOT_KEYS_COOKIE, TREASURE_SPOT_KEYS_SMOKE_BOMB, … }

The rooms' chests, named for what each holds; each room numbers its own.

EnumeratorValueDescription
TREASURE_SPOT_KEYS_333_COINSTREASURE_SPOT_FIRST_ID
TREASURE_SPOT_KEYS_FAIRY_RING
TREASURE_SPOT_KEYS_COOKIE
TREASURE_SPOT_KEYS_SMOKE_BOMB
TREASURE_SPOT_STATUES_444_COINSTREASURE_SPOT_FIRST_ID
TREASURE_SPOT_STATUES_SLEEP_BOMB
TREASURE_SPOT_STATUES_STORM_GEAR
TREASURE_SPOT_STATUES_PSY_CRYSTAL
TREASURE_SPOT_BANE_666_COINSTREASURE_SPOT_FIRST_ID + 4
TREASURE_SPOT_BANE_WATER_OF_LIFE
TREASURE_SPOT_BANE_ELIXIR
TREASURE_SPOT_DEMON_AXEThe Demon Axe's chest, a treasure spot the code places where the second pillar stands.

Definition at line 312 of file crossbone_isle_keys.c.

Functions in detail

scCrossboneIsleKeysPushFirstPillar

static void scCrossboneIsleKeysPushFirstPillar(void)

Walking into the first pillar on the low ledge in the north-west of Bane's room pushes it a metatile along the ledge.

Once the pillar has left the top of the short ladder at column 38, pushing north or south there climbs the ladder instead.

References fdActorGet(), fdClimbDown(), fdClimbUp(), scCrossboneIsleKeysClearFirstPillarFromLedge(), scCrossboneIsleKeysMoveFirstPillar(), scPushedActorAdvancePair() and Sint32.

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysJumpEastOrPushFirstPillar() and scCrossboneIsleKeysUseLadder().

Definition at lines 91 and 1422 of file crossbone_isle_keys.c.

scCrossboneIsleKeysFollowSecondPillar

static void scCrossboneIsleKeysFollowSecondPillar(void)

Keeps the Demon Axe's chest on top of the second pillar as it moves, every tick.

References fdActorGet().

Referenced by scCrossboneIsleKeysInitBane() and scCrossboneIsleKeysReleaseSecondPillarChest().

Definition at lines 92 and 1643 of file crossbone_isle_keys.c.

scCrossboneIsleKeysPlaceDemonAxeChestCue

static void scCrossboneIsleKeysPlaceDemonAxeChestCue(void)

Puts the Demon Axe chest's examine cue where the second pillar stands.

References fdActorGet() and fdTreasureSpotSetActorPos().

Referenced by scCrossboneIsleKeysReleaseSecondPillarChest().

Definition at lines 93 and 1654 of file crossbone_isle_keys.c.

scCrossboneIsleKeysInitKeys

static void scCrossboneIsleKeysInitKeys(void)

Puts each key not yet taken on its post, and draws open the doors already opened.

References gmFlagGet(), scColossoShowItemIcon(), scCrossboneIsleKeysOpenBlueDoor(), scCrossboneIsleKeysOpenRedDoor() and sySynch().

Referenced by scInit().

Definition at lines 94 and 1766 of file crossbone_isle_keys.c.

scCrossboneIsleKeysInitStatues

static void scCrossboneIsleKeysInitStatues(void)

Makes the first four statues solid and draws all five a little narrower, starts the watches for Isaac in front of the first, second and fifth, and lays the darkness over the hall, half see-through.

References fdActorGet(), scCrossboneIsleKeysCheckFifthStatueCue(), scCrossboneIsleKeysCheckFirstStatueCue(), scCrossboneIsleKeysCheckSecondStatueCue(), sySetOrUpdateTickEvent() and sySetTickEvent().

Referenced by scInit().

Definition at lines 95 and 1815 of file crossbone_isle_keys.c.

scCrossboneIsleKeysInitBane

static void scCrossboneIsleKeysInitBane(void)

Lays the metatiles under each pillar where it stands, refreezes the puddle if Frost froze it since the party came in, and puts Bane where its last escape left it: at the west end of the back ledge, on the low ledge below it, at the east end of the back ledge, or on the spiked ledge in the south-east.

References fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationSpeed(), fdActorSetSpritePriority(), fdTreasureSpotSetPos(), gmFlagGet(), scCrossboneIsleKeysFaceBaneTowardLeader(), scCrossboneIsleKeysFollowSecondPillar(), scCrossboneIsleKeysFreezePuddle(), scCrossboneIsleKeysMoveFifthPillar(), scCrossboneIsleKeysMoveFirstPillar(), scCrossboneIsleKeysMoveFourthPillar(), scCrossboneIsleKeysMoveSecondPillar(), scCrossboneIsleKeysMoveThirdPillar(), scCrossboneIsleKeysStandFourthAndFifthPillars(), scCrossboneIsleKeysUpdatePillarPriorities(), sySetOrUpdateTickEvent() and sySetTickEvent().

Referenced by scInit().

Definition at lines 96 and 1840 of file crossbone_isle_keys.c.

scCrossboneIsleKeysRaiseScript

static inline void scCrossboneIsleKeysRaiseScript(Sint16 *raisedCue, Sint32 event)

Raises a script for the cue table to run on the next tick.

References Sint32.

Referenced by scCrossboneIsleKeysCheckFifthStatueCue() and scCrossboneIsleKeysCheckSecondStatueCue().

Definition at line 342 of file crossbone_isle_keys.c.

scCrossboneIsleKeysLiftFirstPillar

static inline void scCrossboneIsleKeysLiftFirstPillar(Sint32 column, Uint8 motionFlags)

Stands the first pillar on the low ledge in the north-west, in the given column, and makes its top ground level with the back ledge, so that Isaac can walk onto it from there.

References fdActorGet(), fdMapGridCopyMetatileAttributes() and Sint32.

Referenced by scCrossboneIsleKeysMoveFirstPillar().

Definition at line 351 of file crossbone_isle_keys.c.

scCrossboneIsleKeysBaneJoins

static void scCrossboneIsleKeysBaneJoins(void)

Talking to Bane on the spiked ledge in the south-east of Bane's room while Halt holds it still: Bane, a Venus Djinni, joins the party.

References fdDjinnJoinParty().

Referenced by CrossboneIsleBaneCues.

Definition at line 364 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUnusedNoOperationA

static void scCrossboneIsleKeysUnusedNoOperationA(void)

Unused: an empty function nothing refers to.

Definition at line 370 of file crossbone_isle_keys.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References CrossboneIsleBaneEntrances, CrossboneIsleKeysRoomEntrances, CrossboneIsleStatuesEntrances, MainRoutineStateWork and SceneFallbackEntrances.

Definition at line 374 of file crossbone_isle_keys.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 393 of file crossbone_isle_keys.c.

scGetExits

const Uint32 *scGetExits(void)

References CrossboneIsleKeysExits.

Definition at line 398 of file crossbone_isle_keys.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References CrossboneIsleBaneActorPlacements, CrossboneIsleKeysActorPlacementsOther, CrossboneIsleKeysRoomActorPlacements, CrossboneIsleStatuesActorPlacements and MainRoutineStateWork.

Definition at line 403 of file crossbone_isle_keys.c.

scCrossboneIsleKeysHaltStatue

static void scCrossboneIsleKeysHaltStatue(void)

Halt on one of the five statues in the statue room: the statue stops where it is, wrapped in Halt's light, and while it lasts Isaac can walk past it.

The script itself does nothing: Halt's own effect holds the statue, and each statue's chase checks MainRoutineStateWork.haltedActor before it moves.

Referenced by CrossboneIsleStatuesCues.

Definition at line 427 of file crossbone_isle_keys.c.

scCrossboneIsleKeysFaceBaneTowardLeader

static UNREAD_RESULT scCrossboneIsleKeysFaceBaneTowardLeader(ACTOR *actor)

Keeps Bane turned toward Isaac on the spiked ledge, every tick.

References fdActorGet() and syAtan().

Referenced by scCrossboneIsleKeysBaneLastEscape() and scCrossboneIsleKeysInitBane().

Definition at line 432 of file crossbone_isle_keys.c.

scCrossboneIsleKeysBaneFirstEscape

static void scCrossboneIsleKeysBaneFirstEscape(void)

Bane runs off the first time Isaac comes along the back ledge towards it, at metatile (40, 41).

The camera pans over to Bane at the ledge's west end. It turns with a start and hops down off the back ledge onto the low ledge below, beside the first pillar, then turns to face south.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAttachedEffect(), fdActorWalkToAndWait(), fdCameraMoveToActorById(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagSet() and sySoundPlay().

Referenced by CrossboneIsleBaneCues.

Definition at line 447 of file crossbone_isle_keys.c.

scCrossboneIsleKeysBaneSecondEscape

static void scCrossboneIsleKeysBaneSecondEscape(void)

Bane runs off again when Isaac comes up the passage down the west side of the room towards it, at metatile (36, 46).

The camera pans to Bane on the low ledge. It hops back up onto the back ledge and dashes east along it to the far end. It lands there with a thud that shakes the room (SE_BANE_ESCAPE) and is left tipped over, squashing and stretching over and over (CrossboneIsleKeysBaneSquashScript).

References CrossboneIsleKeysBaneSquashScript, fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationSpeed(), fdActorSetAttachedEffect(), fdActorStartScript(), fdActorWalkToAndWait(), fdCameraMoveToActorById(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet() and sySoundPlay().

Referenced by CrossboneIsleBaneCues.

Definition at line 477 of file crossbone_isle_keys.c.

scCrossboneIsleKeysBaneLastEscape

static void scCrossboneIsleKeysBaneLastEscape(void)

Bane flees a third time when Isaac comes east along the back ledge to it, at metatile (51, 41), and this time it runs to the ledge with three spikes in the south-east.

It rights itself, hops down off the east end of the back ledge and scurries south down the east side out of sight, wobbling from side to side, to its last spot north of the spikes. From then on it keeps turning to face Isaac (scCrossboneIsleKeysFaceBaneTowardLeader).

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationSpeed(), fdActorSetAttachedEffect(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scCrossboneIsleKeysFaceBaneTowardLeader() and sySoundPlay().

Referenced by CrossboneIsleBaneCues.

Definition at line 538 of file crossbone_isle_keys.c.

scCrossboneIsleKeysBaneKeepsAway

static void scCrossboneIsleKeysBaneKeepsAway(void)

Bane keeps the three spikes on the south-east ledge between itself and Isaac: whenever he steps onto one of the twelve metatiles round them, metatiles (50..55, 51..54), it runs as fast as he walks to the spot across from him, unless Halt holds it.

Each metatile's behaviour, less METATILE_BEHAVIOR_BANE_CORNER_FIRST, picks Bane's spot from CrossboneIsleKeysBaneWalkTargets.

References CrossboneIsleKeysBaneWalkTargets, fdActorGet(), fdActorWalkTo(), gmFlagGet(), MainRoutineStateWork, Sint32 and state.

Referenced by CrossboneIsleBaneCues.

Definition at line 593 of file crossbone_isle_keys.c.

scCrossboneIsleKeysHaltBane

static void scCrossboneIsleKeysHaltBane(void)

Halt on Bane in Bane's room: it stops still where it is, and Isaac can walk up and talk to it.

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

Referenced by CrossboneIsleBaneCues.

Definition at line 619 of file crossbone_isle_keys.c.

scGetCues

const CUE *scGetCues(void)

References CrossboneIsleBaneCues, CrossboneIsleKeysCuesOther, CrossboneIsleKeysRoomCues, CrossboneIsleStatuesCues and MainRoutineStateWork.

Definition at line 626 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUnusedJumpOntoPost

static void scCrossboneIsleKeysUnusedJumpOntoPost(void)

Unused: pushing south on the walkway in front of the third or fourth blue door in the room of keys would hop Isaac down onto the stone post two metatiles south, at metatile (21, 45) or (25, 45).

Its cue rows come after the plain step rows for the same metatiles, which answer first and make the same hop themselves (scCrossboneIsleKeysOpenThirdBlueDoor).

References fdTryJumpForward().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 652 of file crossbone_isle_keys.c.

scCrossboneIsleKeysOpenBlueDoor

static void scCrossboneIsleKeysOpenBlueDoor(Sint32 passageInfo)

Opens a blue door in the room of keys, numbered 0 to 3 from the west, so that the doorway leads through to its chest.

With PASSAGE_PLAY_OPENING the door grinds open as the floor shakes, a half-open picture first; without it, as when the party comes back in, the door is simply drawn open.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), Sint32, sySoundPlay() and sySynch().

Referenced by scCrossboneIsleKeysInitKeys() and scCrossboneIsleKeysUseBlueKey().

Definition at line 663 of file crossbone_isle_keys.c.

scCrossboneIsleKeysOpenRedDoor

static void scCrossboneIsleKeysOpenRedDoor(Sint32 passageInfo)

Opens the red door on the ledge west of the pit, playing its grinding opening with PASSAGE_PLAY_OPENING as a blue door's.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), Sint32, sySoundPlay() and sySynch().

Referenced by scCrossboneIsleKeysInitKeys() and scCrossboneIsleKeysUseRedKey().

Definition at line 692 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUseRedKey

static void scCrossboneIsleKeysUseRedKey(void)

Walking up to the red door on the ledge west of the pit with the Red Key, at metatile (6, 52), opens it: it grinds open as the floor shakes, and the key is used up.

Without the key, or facing any other way, nothing happens. Through the door the way leads on to the floor's west door.

References fdActorGet(), fdScriptGetFlag(), gmFlagSet(), gmPartyInventoryFindMember(), gmPartyInventoryRemove() and scCrossboneIsleKeysOpenRedDoor().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 715 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUseBlueKey

static void scCrossboneIsleKeysUseBlueKey(Sint32 doorIndex)

Walking up to a blue door with a Blue Key, numbered 0 to 3 from the west, opens it: it grinds open as the floor shakes, and one Blue Key is used up.

Without a key, facing any other way, or once the door is open, nothing happens.

References fdActorGet(), gmFlagGet(), gmFlagSet(), gmPartyInventoryFindMember(), gmPartyInventoryRemove(), scCrossboneIsleKeysOpenBlueDoor() and Sint32.

Referenced by scCrossboneIsleKeysOpenFirstBlueDoor(), scCrossboneIsleKeysOpenFourthBlueDoor(), scCrossboneIsleKeysOpenSecondBlueDoor() and scCrossboneIsleKeysOpenThirdBlueDoor().

Definition at line 736 of file crossbone_isle_keys.c.

scCrossboneIsleKeysHopOntoPostBelow

static inline void scCrossboneIsleKeysHopOntoPostBelow(void)

Pushing south for a moment on the walkway in front of the third or fourth blue door hops Isaac down onto the stone post two metatiles south.

References fdActorGet(), fdTryJumpForward() and Sint32.

Referenced by scCrossboneIsleKeysOpenFourthBlueDoor() and scCrossboneIsleKeysOpenThirdBlueDoor().

Definition at line 761 of file crossbone_isle_keys.c.

scCrossboneIsleKeysOpenFirstBlueDoor

static void scCrossboneIsleKeysOpenFirstBlueDoor(void)

Walking up to the westmost blue door on the walkway along the pit's north wall, at metatile (13, 43), opens it with a Blue Key, showing the chest with 333 coins behind it.

References scCrossboneIsleKeysUseBlueKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 780 of file crossbone_isle_keys.c.

scCrossboneIsleKeysOpenSecondBlueDoor

static void scCrossboneIsleKeysOpenSecondBlueDoor(void)

Walking up to the second blue door from the west on the walkway, at metatile (17, 43), opens it with a Blue Key, showing the chest with the Fairy Ring behind it.

References scCrossboneIsleKeysUseBlueKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 788 of file crossbone_isle_keys.c.

scCrossboneIsleKeysOpenThirdBlueDoor

static void scCrossboneIsleKeysOpenThirdBlueDoor(void)

Walking up to the third blue door from the west on the walkway, at metatile (21, 43), opens it with a Blue Key, showing the chest with the Cookie behind it.

Pushing south from the same spot hops Isaac down off the walkway onto the stone post two metatiles south, at metatile (21, 45).

References scCrossboneIsleKeysHopOntoPostBelow() and scCrossboneIsleKeysUseBlueKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 799 of file crossbone_isle_keys.c.

scCrossboneIsleKeysOpenFourthBlueDoor

static void scCrossboneIsleKeysOpenFourthBlueDoor(void)

Walking up to the eastmost blue door on the walkway, at metatile (25, 43), opens it with a Blue Key, showing the chest with the Smoke Bomb behind it.

Pushing south from the same spot hops Isaac down off the walkway onto the stone post two metatiles south, at metatile (25, 45), the way to where the Red Key is hidden.

References scCrossboneIsleKeysHopOntoPostBelow() and scCrossboneIsleKeysUseBlueKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 811 of file crossbone_isle_keys.c.

scCrossboneIsleKeysShowRedKey

static void scCrossboneIsleKeysShowRedKey(void)

Reveal in the room of keys shows a hidden stone post, with the Red Key on top, three metatiles south of the post below the fourth blue door, at metatile (25, 48).

The post is copied there, picture and metatiles, from the one at (25, 45), and the key is put on it unless the party already has it. It appears wherever in the room Reveal is cast, but is only seen when Isaac is near it, as from the post below the fourth blue door.

References fdMapGridCopyMetatiles(), fdScriptWait() and gmFlagGet().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 825 of file crossbone_isle_keys.c.

scCrossboneIsleKeysHideRedKey

static void scCrossboneIsleKeysHideRedKey(void)

When Reveal wears off in the room of keys, the hidden post south of the fourth blue door vanishes again, at metatile (25, 48), and so does the Red Key if it is still on it.

References fdMapGridCopyMetatiles().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 836 of file crossbone_isle_keys.c.

scCrossboneIsleKeysGetKey

static inline void scCrossboneIsleKeysGetKey(Sint32 actorId, Sint32 itemId, Sint32 collectedFlag)

Gives the party a key that Catch has pulled in: "Isaac got the Blue Key." (or the Red Key), and the key's icon is gone from its post for good.

References fdActorSetAnimation(), gmFlagSet(), gmItemShowFound(), gmPartyGiveItem() and Sint32.

Referenced by scCrossboneIsleKeysCatchFirstBlueKey(), scCrossboneIsleKeysCatchFourthBlueKey(), scCrossboneIsleKeysCatchRedKey(), scCrossboneIsleKeysCatchSecondBlueKey() and scCrossboneIsleKeysCatchThirdBlueKey().

Definition at line 844 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCatchFirstBlueKey

static void scCrossboneIsleKeysCatchFirstBlueKey(void)

Catch on the Blue Key on the post just north of where Isaac comes into the pit from the east door: a hand of light reaches out and pulls the key to him.

References scCrossboneIsleKeysGetKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 856 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCatchSecondBlueKey

static void scCrossboneIsleKeysCatchSecondBlueKey(void)

Catch on the Blue Key on a post in the middle of the pit: a hand of light pulls it to Isaac.

References scCrossboneIsleKeysGetKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 865 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCatchThirdBlueKey

static void scCrossboneIsleKeysCatchThirdBlueKey(void)

Catch on the Blue Key on a post in the north of the pit, below the walkway: a hand of light pulls it to Isaac.

References scCrossboneIsleKeysGetKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 874 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCatchFourthBlueKey

static void scCrossboneIsleKeysCatchFourthBlueKey(void)

Catch on the Blue Key on a post in the south of the pit, east of the middle: a hand of light pulls it to Isaac.

References scCrossboneIsleKeysGetKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 883 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCatchRedKey

static void scCrossboneIsleKeysCatchRedKey(void)

Catch on the Red Key, on the hidden post Reveal shows south of the fourth blue door: a hand of light pulls it to Isaac.

References scCrossboneIsleKeysGetKey().

Referenced by CrossboneIsleKeysRoomCues.

Definition at line 892 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCheckFirstStatueCue

static void scCrossboneIsleKeysCheckFirstStatueCue(void)

Watches, every tick, for Isaac on the tiles just south of the statue in the north-east, metatiles (21..23, 10..11), and sets it on him unless Cloak hides him, Halt holds the statue or another statue is already after him.

References fdActorGet(), fdScriptGetFlag(), gmFlagSet(), MainRoutineStateWork, Sint32 and state.

Referenced by scCrossboneIsleKeysInitStatues().

Definition at line 901 of file crossbone_isle_keys.c.

scCrossboneIsleKeysFirstStatuePushesLeaderBack

static void scCrossboneIsleKeysFirstStatuePushesLeaderBack(void)

The statue in the north-east of the statue room glides down onto Isaac when he steps onto the tiles in front of it, with a thud, shoves him back south and glides home again.

scCrossboneIsleKeysCheckFirstStatueCue raises it. Isaac is pushed FIRST_STATUE_SHOVE_PIXELS south, and the statue follows him FIRST_STATUE_FOLLOW_PIXELS before it turns back.

References fdActorGet(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagClear() and sySoundPlay().

Referenced by CrossboneIsleStatuesCues.

Definition at line 925 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCheckSecondStatueCue

static void scCrossboneIsleKeysCheckSecondStatueCue(void)

Watches, every tick, for Isaac on the narrow walk below the statue in the west, metatiles (10, 16..18), and sets it on him unless Cloak hides him, Halt holds the statue or another statue is already after him.

References fdActorGet(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scCrossboneIsleKeysRaiseScript(), Sint32 and state.

Referenced by scCrossboneIsleKeysInitStatues().

Definition at line 957 of file crossbone_isle_keys.c.

scCrossboneIsleKeysSecondStatuePushesLeaderBack

static void scCrossboneIsleKeysSecondStatuePushesLeaderBack(void)

The statue on the narrow walk between the dark pits in the west of the statue room glides down onto Isaac as he comes north up the walk, with a thud, shoves him back south and glides home again.

scCrossboneIsleKeysCheckSecondStatueCue raises it.

References fdActorGet(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagClear() and sySoundPlay().

Referenced by CrossboneIsleStatuesCues.

Definition at line 979 of file crossbone_isle_keys.c.

scCrossboneIsleKeysTrackStatueColumn

static void scCrossboneIsleKeysTrackStatueColumn(Sint32 statueIndex)

Slides the third or fourth statue (0 or 1) along its alcove with a thud to stand right in front of Isaac's column, unless Halt holds it, and nudges him 8 pixels south if he has got into the alcove's row.

CrossboneIsleKeysStatueColumns keeps the column each statue stands in.

References CrossboneIsleKeysStatueColumns, fdActorGet(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), MainRoutineStateWork, Sint32 and sySoundPlay().

Referenced by scCrossboneIsleKeysFourthStatueShadowsLeader(), scCrossboneIsleKeysThirdStatueShadowsLeader() and scCrossboneIsleKeysTrackFifthStatueColumn().

Definition at line 1011 of file crossbone_isle_keys.c.

scCrossboneIsleKeysThirdStatueShadowsLeader

static void scCrossboneIsleKeysThirdStatueShadowsLeader(void)

As Isaac walks along the rug in front of the third statue, in the west alcove of the statue room's south walkway, metatiles (15..17, 23), the statue slides sideways to stay right in front of him, barring the way north to the chest with the Sleep Bomb.

Halt on the statue while it stands to one side lets him walk past.

References scCrossboneIsleKeysTrackStatueColumn().

Referenced by CrossboneIsleStatuesCues.

Definition at line 1042 of file crossbone_isle_keys.c.

scCrossboneIsleKeysFourthStatueShadowsLeader

static void scCrossboneIsleKeysFourthStatueShadowsLeader(void)

As Isaac walks along the rug in front of the fourth statue, in the east alcove of the statue room's south walkway, metatiles (20..22, 23), the statue slides sideways to stay right in front of him and bar the way north.

Halt on the statue while it stands to one side lets him walk past.

References scCrossboneIsleKeysTrackStatueColumn().

Referenced by CrossboneIsleStatuesCues.

Definition at line 1052 of file crossbone_isle_keys.c.

scCrossboneIsleKeysTrackFifthStatueColumn

static void scCrossboneIsleKeysTrackFifthStatueColumn(void)

Unused: would make the fifth statue slide to stay in front of Isaac as the third and fourth do; nothing calls it.

References scCrossboneIsleKeysTrackStatueColumn().

Definition at line 1059 of file crossbone_isle_keys.c.

scCrossboneIsleKeysThirdStatuePushesLeaderBack

static void scCrossboneIsleKeysThirdStatuePushesLeaderBack(void)

Stepping into the third statue's alcove on the south walkway, metatiles (15..17, 22), while Halt does not hold the statue, makes it glide onto Isaac with a thud, shove him back south and glide home again.

References fdActorGet(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and sySoundPlay().

Referenced by CrossboneIsleStatuesCues.

Definition at line 1067 of file crossbone_isle_keys.c.

scCrossboneIsleKeysFourthStatuePushesLeaderBack

static void scCrossboneIsleKeysFourthStatuePushesLeaderBack(void)

Stepping into the fourth statue's alcove on the south walkway, metatiles (20..22, 22), while Halt does not hold the statue, makes it shuffle half a metatile towards Isaac, glide onto him with a thud, shove him back south and glide home again.

References fdActorGet(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and sySoundPlay().

Referenced by CrossboneIsleStatuesCues.

Definition at line 1101 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCheckFifthStatueCue

static void scCrossboneIsleKeysCheckFifthStatueCue(void)

Watches, every tick, for Isaac on the two tiles just south of the statue in the middle of the hall, metatiles (19, 15..16), and sets it on him unless Cloak hides him, Halt holds the statue or another statue is already after him.

References fdActorGet(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scCrossboneIsleKeysRaiseScript(), Sint32 and state.

Referenced by scCrossboneIsleKeysInitStatues().

Definition at line 1146 of file crossbone_isle_keys.c.

scCrossboneIsleKeysFifthStatuePushesLeaderBack

static void scCrossboneIsleKeysFifthStatuePushesLeaderBack(void)

The statue in the middle of the statue room glides down onto Isaac when he steps onto the tiles in front of it, with a thud, shoves him back south and glides home again.

scCrossboneIsleKeysCheckFifthStatueCue raises it.

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

Referenced by CrossboneIsleStatuesCues.

Definition at line 1169 of file crossbone_isle_keys.c.

scCrossboneIsleKeysCastRevealInStatueRoom

static void scCrossboneIsleKeysCastRevealInStatueRoom(void)

Reveal in the statue room lifts the darkness: while it lasts the whole hall shows evenly in Reveal's grey, not only the circles of light round the braziers.

The darkness is a background layer laid over the room, half see-through (scCrossboneIsleKeysInitStatues). Reveal's blend counts that layer for nothing and the room under it for 13 sixteenths, so the hall shows whole and a little dim.

Referenced by CrossboneIsleStatuesCues.

Definition at line 1203 of file crossbone_isle_keys.c.

scCrossboneIsleKeysRevealEndsInStatueRoom

static void scCrossboneIsleKeysRevealEndsInStatueRoom(void)

When Reveal wears off in the statue room, the darkness falls over the hall again outside the circles of light.

Referenced by CrossboneIsleStatuesCues.

Definition at line 1212 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUseLadder

static void scCrossboneIsleKeysUseLadder(void)

At either of the two ladders down from the back ledge of Bane's room, by the spiked channel in the middle, metatiles (42, 41..42) and (48, 41..42), Isaac climbs up with Up and down with Down, and with Right hops east off the ladder.

Hopping east from the west ladder, over the wall beside it, lands him on the little ledge at the top of the spiked channel, by the Demon Axe's chest once the second pillar has brought it there. Pushing west from the foot of the west ladder pushes the first pillar back west if it has been pushed up to it; from higher up the ladder he hops west instead.

References fdActorGet(), fdClimbDown(), fdClimbUp(), fdMapGridCopyMetatileAttributes(), fdTryJumpForward(), gmFlagClear(), gmFlagGet(), gmFlagSet(), scCrossboneIsleKeysPushFirstPillar() and Sint32.

Referenced by CrossboneIsleBaneCues.

Definition at line 1229 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUnusedNoOperationB

static void scCrossboneIsleKeysUnusedNoOperationB(void)

Unused: an empty function nothing refers to.

Definition at line 1285 of file crossbone_isle_keys.c.

scCrossboneIsleKeysFreezePuddle

static void scCrossboneIsleKeysFreezePuddle(void)

Frost on the puddle between the two spikes in the south-west of Bane's room freezes it into a pillar of ice, which Isaac can hop onto and across like a stepping stone, at metatile (40, 55).

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

Referenced by CrossboneIsleBaneCues and scCrossboneIsleKeysInitBane().

Definition at line 1292 of file crossbone_isle_keys.c.

scCrossboneIsleKeysJumpEastOrPushFirstPillar

static void scCrossboneIsleKeysJumpEastOrPushFirstPillar(void)

Just east of the first pillar's home on the low ledge in the north-west of Bane's room, at metatile (39, 42), pushing east hops Isaac east off the ledge; pushing west into the pillar pushes it.

References fdActorGet(), fdTryJumpForward() and scCrossboneIsleKeysPushFirstPillar().

Referenced by CrossboneIsleBaneCues.

Definition at line 1311 of file crossbone_isle_keys.c.

scCrossboneIsleKeysClearFirstPillarFromLedge

static void scCrossboneIsleKeysClearFirstPillarFromLedge(void)

Lays the low ledge in the north-west as it is with the first pillar gone, before the pillar's own metatile is laid where it stands.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysMoveFirstPillar() and scCrossboneIsleKeysPushFirstPillar().

Definition at line 1327 of file crossbone_isle_keys.c.

scCrossboneIsleKeysStandFirstPillarAtLadderFoot

static void scCrossboneIsleKeysStandFirstPillarAtLadderFoot(void)

The first pillar stands in the gap's east metatile, at the foot of the west ladder, metatile (42, 42): its top raises the ladder's foot to the low ledge's height.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysMoveFirstPillar().

Definition at line 1344 of file crossbone_isle_keys.c.

scCrossboneIsleKeysStandFirstPillarInGap

static void scCrossboneIsleKeysStandFirstPillarInGap(void)

The first pillar stands in the middle of the gap, metatile (41, 42): its top is a square Isaac can hop across.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysMoveFirstPillar().

Definition at line 1353 of file crossbone_isle_keys.c.

scCrossboneIsleKeysStandFirstPillarByLedge

static void scCrossboneIsleKeysStandFirstPillarByLedge(void)

The first pillar stands in the gap's west metatile, metatile (40, 42), its top level with the low ledge, which it lengthens by a metatile.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysMoveFirstPillar().

Definition at line 1362 of file crossbone_isle_keys.c.

scCrossboneIsleKeysMoveFirstPillar

static void scCrossboneIsleKeysMoveFirstPillar(void)

Move on the first pillar, on the low ledge in the north-west of Bane's room, slides it along the ledge; the metatiles under it follow it.

Pushed east off the ledge, it drops into the gap between the ledge and the west ladder, and its top makes a step there. On the ledge, at the top of the short ladder at column 38, its top is level with the back ledge. The pushes and the room's setting up call this too, to lay its metatiles.

References fdActorGet(), scCrossboneIsleKeysClearFirstPillarFromLedge(), scCrossboneIsleKeysLiftFirstPillar(), scCrossboneIsleKeysStandFirstPillarAtLadderFoot(), scCrossboneIsleKeysStandFirstPillarByLedge(), scCrossboneIsleKeysStandFirstPillarInGap() and Sint32.

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysInitBane() and scCrossboneIsleKeysPushFirstPillar().

Definition at line 1376 of file crossbone_isle_keys.c.

scCrossboneIsleKeysReleaseSecondPillarChest

static void scCrossboneIsleKeysReleaseSecondPillarChest(void)

Leaves the Demon Axe's chest on the second pillar at the top of the spiked channel, where the chest's examine cue takes its place.

References fdMapGridCopyMetatileAttributes(), gmFlagGet(), gmFlagSet(), scCrossboneIsleKeysFollowSecondPillar(), scCrossboneIsleKeysPlaceDemonAxeChestCue() and syCloseEvent().

Referenced by scCrossboneIsleKeysMoveSecondPillar().

Definition at line 1452 of file crossbone_isle_keys.c.

scCrossboneIsleKeysMoveSecondPillar

static void scCrossboneIsleKeysMoveSecondPillar(void)

Move on the second pillar, in the spiked channel in the middle of Bane's room, slides it with the Demon Axe's chest riding on top; once it reaches the top of the channel by the ladders, metatile (45, 43), it stays there and the chest can be opened from beside it.

References fdActorGet(), scCrossboneIsleKeysReleaseSecondPillarChest() and Sint32.

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysInitBane() and scCrossboneIsleKeysPushSecondPillar().

Definition at line 1473 of file crossbone_isle_keys.c.

scCrossboneIsleKeysPushSecondPillar

static void scCrossboneIsleKeysPushSecondPillar(void)

Walking into the second pillar, at the foot of the spiked channel in the middle of Bane's room, pushes it a metatile north up the channel towards the back of the room, carrying the Demon Axe's chest on top.

References scCrossboneIsleKeysMoveSecondPillar() and scPushedActorAdvancePair().

Referenced by CrossboneIsleBaneCues.

Definition at line 1488 of file crossbone_isle_keys.c.

scCrossboneIsleKeysClearThirdPillarFromFloor

static void scCrossboneIsleKeysClearThirdPillarFromFloor(void)

Lays the floor along the south of the south-west platform as it is with no pillar at either end, metatiles (38, 55) and (42, 55).

References fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysMoveThirdPillar() and scCrossboneIsleKeysPushThirdPillar().

Definition at line 1496 of file crossbone_isle_keys.c.

scCrossboneIsleKeysStandThirdPillarWest

static void scCrossboneIsleKeysStandThirdPillarWest(void)

The third pillar has come down at the west end of the floor below its platform, metatile (38, 55): its top becomes a square Isaac can hop across.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysMoveThirdPillar().

Definition at line 1504 of file crossbone_isle_keys.c.

scCrossboneIsleKeysStandThirdPillarEast

static void scCrossboneIsleKeysStandThirdPillarEast(void)

The third pillar has come down at the east end of the floor below its platform, metatile (42, 55): its top becomes a square Isaac can hop across.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysMoveThirdPillar().

Definition at line 1512 of file crossbone_isle_keys.c.

scCrossboneIsleKeysMoveThirdPillar

static void scCrossboneIsleKeysMoveThirdPillar(void)

Move on the third pillar, on the raised platform in the south-west of Bane's room, slides it; pushed off the platform's south edge it drops to the floor below, and its top becomes a stepping stone beside the puddle.

The pushes and the room's setting up call this too, to lay its metatiles.

References fdActorGet(), fdScriptGetFlag(), gmFlagSet(), scCrossboneIsleKeysClearThirdPillarFromFloor(), scCrossboneIsleKeysStandThirdPillarEast(), scCrossboneIsleKeysStandThirdPillarWest() and Sint32.

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysInitBane() and scCrossboneIsleKeysPushThirdPillar().

Definition at line 1523 of file crossbone_isle_keys.c.

scCrossboneIsleKeysPushThirdPillar

static void scCrossboneIsleKeysPushThirdPillar(void)

Walking into the third pillar, on the raised platform in the south-west of Bane's room or on the floor below it, pushes it a metatile.

References scCrossboneIsleKeysClearThirdPillarFromFloor(), scCrossboneIsleKeysMoveThirdPillar() and scPushedActorAdvancePair().

Referenced by CrossboneIsleBaneCues and scCrossboneIsleKeysTouchThirdPillar().

Definition at line 1555 of file crossbone_isle_keys.c.

scCrossboneIsleKeysTouchThirdPillar

static void scCrossboneIsleKeysTouchThirdPillar(void)

At the south edge of the raised platform in the south-west of Bane's room, metatile (38, 54), pushing south jumps Isaac down off the platform to the floor below in a puff of dust; pushing any other way pushes the third pillar.

References fdActorGet(), scCrossboneIsleKeysPushThirdPillar() and scFieldActorJumpDownLedge().

Referenced by CrossboneIsleBaneCues.

Definition at line 1565 of file crossbone_isle_keys.c.

scCrossboneIsleKeysClearFourthAndFifthPillarRow

static void scCrossboneIsleKeysClearFourthAndFifthPillarRow(void)

Lays the row the fourth and fifth pillars are pushed along, metatiles (49..52, 55), as plain floor.

References fdMapGridCopyMetatileAttributes().

Referenced by scCrossboneIsleKeysPushFifthPillar(), scCrossboneIsleKeysPushFourthOrFifthPillar() and scCrossboneIsleKeysStandFourthAndFifthPillars().

Definition at line 1581 of file crossbone_isle_keys.c.

scCrossboneIsleKeysStandFourthAndFifthPillars

static void scCrossboneIsleKeysStandFourthAndFifthPillars(void)

Makes the tops of the fourth and fifth pillars squares Isaac can hop across, wherever along their row they stand.

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

Referenced by scCrossboneIsleKeysInitBane(), scCrossboneIsleKeysMoveFifthPillar() and scCrossboneIsleKeysMoveFourthPillar().

Definition at line 1591 of file crossbone_isle_keys.c.

scCrossboneIsleKeysMoveFourthPillar

static void scCrossboneIsleKeysMoveFourthPillar(void)

Move on the west one of the two pillars by the east doorway of Bane's room slides it along the south row; its top stays a stepping stone.

References scCrossboneIsleKeysStandFourthAndFifthPillars().

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysInitBane() and scCrossboneIsleKeysPushFourthOrFifthPillar().

Definition at line 1608 of file crossbone_isle_keys.c.

scCrossboneIsleKeysPushFourthOrFifthPillar

static void scCrossboneIsleKeysPushFourthOrFifthPillar(void)

Walking into either of the two pillars by the east doorway of Bane's room pushes it along the south row, metatiles (48..52, 55), and its top stays a stepping stone wherever it stops.

The push moves whichever pillar Isaac walks into (scPushedActorAdvancePair).

References scCrossboneIsleKeysClearFourthAndFifthPillarRow(), scCrossboneIsleKeysMoveFourthPillar() and scPushedActorAdvancePair().

Referenced by CrossboneIsleBaneCues.

Definition at line 1618 of file crossbone_isle_keys.c.

scCrossboneIsleKeysMoveFifthPillar

static void scCrossboneIsleKeysMoveFifthPillar(void)

Move on the east one of the two pillars by the east doorway of Bane's room slides it along the south row; its top stays a stepping stone.

References scCrossboneIsleKeysStandFourthAndFifthPillars().

Referenced by CrossboneIsleBaneCues, scCrossboneIsleKeysInitBane() and scCrossboneIsleKeysPushFifthPillar().

Definition at line 1627 of file crossbone_isle_keys.c.

scCrossboneIsleKeysPushFifthPillar

static void scCrossboneIsleKeysPushFifthPillar(void)

Unused: the same push as scCrossboneIsleKeysPushFourthOrFifthPillar's, written for the fifth pillar; nothing refers to it.

References scCrossboneIsleKeysClearFourthAndFifthPillarRow(), scCrossboneIsleKeysMoveFifthPillar() and scPushedActorAdvancePair().

Definition at line 1634 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUpdatePillarPriorities

static void scCrossboneIsleKeysUpdatePillarPriorities(void)

Draws the pillars in front of Isaac or behind him, every tick, by how high he stands and, for the third, how far south he is.

References fdActorGet() and fdActorSetSpritePriority().

Referenced by scCrossboneIsleKeysInitBane().

Definition at line 1664 of file crossbone_isle_keys.c.

scInit

Sint32 scInit(void)

Sets up whichever of the three rooms the party enters: the keys and doors of the room of keys, the statues of the statue room, or the pillars and Bane of Bane's room.

References MainRoutineStateWork, scCrossboneIsleKeysInitBane(), scCrossboneIsleKeysInitKeys(), scCrossboneIsleKeysInitStatues() and Sint32.

Definition at line 1699 of file crossbone_isle_keys.c.

scCrossboneIsleKeysUnusedRedrawKeyActors

static void scCrossboneIsleKeysUnusedRedrawKeyActors(void)

Unused: nothing adds it as an event.

Every 17 ticks it would put uncaught Blue Keys back on their metatiles and redraw the five key actors, one every 2 ticks from the Red Key to the first Blue Key. It would draw them with item codes 0 and 1 (a gem and the Long Sword) rather than ITEM_BLUE_KEY and ITEM_RED_KEY.

References CrossboneIsleKeysIconTimer, gmFlagGet() and scColossoShowItemIcon().

Definition at line 1724 of file crossbone_isle_keys.c.

Variables in detail

CrossboneIsleKeysBaneSquashScript

extern Sint32 CrossboneIsleKeysBaneSquashScript[]

Sint32 CrossboneIsleKeysBaneSquashScript[]

References Sint32.

Referenced by scCrossboneIsleKeysBaneSecondEscape().

Definition at lines 58 and 1900 of file crossbone_isle_keys.c.

CrossboneIsleKeysBaneWalkTargets

extern Sint32 CrossboneIsleKeysBaneWalkTargets[][2]

Sint32 CrossboneIsleKeysBaneWalkTargets[][2]

Where Bane runs to, in pixels, when Isaac steps onto each of the twelve metatiles round the three spikes on the south-east ledge, from METATILE_BEHAVIOR_BANE_CORNER_FIRST on: always the spot across the spikes from him.

References Sint32.

Referenced by scCrossboneIsleKeysBaneKeepsAway().

Definition at lines 59 and 1931 of file crossbone_isle_keys.c.

CrossboneIsleKeysRoomEntrances

extern SCENE_ENTRANCE CrossboneIsleKeysRoomEntrances[]

SCENE_ENTRANCE CrossboneIsleKeysRoomEntrances[]

Referenced by scGetEntrances().

Definition at lines 60 and 1948 of file crossbone_isle_keys.c.

CrossboneIsleStatuesEntrances

extern SCENE_ENTRANCE CrossboneIsleStatuesEntrances[]

SCENE_ENTRANCE CrossboneIsleStatuesEntrances[]

Referenced by scGetEntrances().

Definition at lines 61 and 1956 of file crossbone_isle_keys.c.

CrossboneIsleBaneEntrances

extern SCENE_ENTRANCE CrossboneIsleBaneEntrances[]

SCENE_ENTRANCE CrossboneIsleBaneEntrances[]

Referenced by scGetEntrances().

Definition at lines 62 and 1964 of file crossbone_isle_keys.c.

CrossboneIsleKeysExits

extern Uint32 CrossboneIsleKeysExits[]

Uint32 CrossboneIsleKeysExits[]

Referenced by scGetExits().

Definition at lines 63 and 1972 of file crossbone_isle_keys.c.

CrossboneIsleKeysActorPlacementsOther

extern ACTOR_PLACE CrossboneIsleKeysActorPlacementsOther[]

ACTOR_PLACE CrossboneIsleKeysActorPlacementsOther[]

Referenced by scGetActorPlacements().

Definition at lines 64 and 1997 of file crossbone_isle_keys.c.

CrossboneIsleKeysRoomActorPlacements

extern ACTOR_PLACE CrossboneIsleKeysRoomActorPlacements[]

ACTOR_PLACE CrossboneIsleKeysRoomActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 65 and 2001 of file crossbone_isle_keys.c.

CrossboneIsleStatuesActorPlacements

extern ACTOR_PLACE CrossboneIsleStatuesActorPlacements[]

ACTOR_PLACE CrossboneIsleStatuesActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 66 and 2015 of file crossbone_isle_keys.c.

CrossboneIsleBaneActorPlacements

extern ACTOR_PLACE CrossboneIsleBaneActorPlacements[]

ACTOR_PLACE CrossboneIsleBaneActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 67 and 2029 of file crossbone_isle_keys.c.

CrossboneIsleKeysCuesOther

extern CUE CrossboneIsleKeysCuesOther[]

CUE CrossboneIsleKeysCuesOther[]

Referenced by scGetCues().

Definition at lines 68 and 2050 of file crossbone_isle_keys.c.

CrossboneIsleKeysRoomCues

extern CUE CrossboneIsleKeysRoomCues[]

CUE CrossboneIsleKeysRoomCues[]

References scCrossboneIsleKeysCatchFirstBlueKey(), scCrossboneIsleKeysCatchFourthBlueKey(), scCrossboneIsleKeysCatchRedKey(), scCrossboneIsleKeysCatchSecondBlueKey(), scCrossboneIsleKeysCatchThirdBlueKey(), scCrossboneIsleKeysHideRedKey(), scCrossboneIsleKeysOpenFirstBlueDoor(), scCrossboneIsleKeysOpenFourthBlueDoor(), scCrossboneIsleKeysOpenSecondBlueDoor(), scCrossboneIsleKeysOpenThirdBlueDoor(), scCrossboneIsleKeysShowRedKey(), scCrossboneIsleKeysUnusedJumpOntoPost() and scCrossboneIsleKeysUseRedKey().

Referenced by scGetCues().

Definition at lines 69 and 2054 of file crossbone_isle_keys.c.

CrossboneIsleStatuesCues

extern CUE CrossboneIsleStatuesCues[]

CUE CrossboneIsleStatuesCues[]

References scCrossboneIsleKeysCastRevealInStatueRoom(), scCrossboneIsleKeysFifthStatuePushesLeaderBack(), scCrossboneIsleKeysFirstStatuePushesLeaderBack(), scCrossboneIsleKeysFourthStatuePushesLeaderBack(), scCrossboneIsleKeysFourthStatueShadowsLeader(), scCrossboneIsleKeysHaltStatue(), scCrossboneIsleKeysRevealEndsInStatueRoom(), scCrossboneIsleKeysSecondStatuePushesLeaderBack(), scCrossboneIsleKeysThirdStatuePushesLeaderBack() and scCrossboneIsleKeysThirdStatueShadowsLeader().

Referenced by scGetCues().

Definition at lines 70 and 2097 of file crossbone_isle_keys.c.

CrossboneIsleBaneCues

extern CUE CrossboneIsleBaneCues[]

CUE CrossboneIsleBaneCues[]

References scCrossboneIsleKeysBaneFirstEscape(), scCrossboneIsleKeysBaneJoins(), scCrossboneIsleKeysBaneKeepsAway(), scCrossboneIsleKeysBaneLastEscape(), scCrossboneIsleKeysBaneSecondEscape(), scCrossboneIsleKeysFreezePuddle(), scCrossboneIsleKeysHaltBane(), scCrossboneIsleKeysJumpEastOrPushFirstPillar(), scCrossboneIsleKeysMoveFifthPillar(), scCrossboneIsleKeysMoveFirstPillar(), scCrossboneIsleKeysMoveFourthPillar(), scCrossboneIsleKeysMoveSecondPillar(), scCrossboneIsleKeysMoveThirdPillar(), scCrossboneIsleKeysPushFirstPillar(), scCrossboneIsleKeysPushFourthOrFifthPillar(), scCrossboneIsleKeysPushSecondPillar(), scCrossboneIsleKeysPushThirdPillar(), scCrossboneIsleKeysTouchThirdPillar() and scCrossboneIsleKeysUseLadder().

Referenced by scGetCues().

Definition at lines 71 and 2139 of file crossbone_isle_keys.c.

CrossboneIsleKeysStatueColumns

extern Uint32 CrossboneIsleKeysStatueColumns[]

Uint32 CrossboneIsleKeysStatueColumns[]

The column the third and fourth statues stand in as they slide to stay in front of Isaac; the third entry is the fifth statue's, which nothing slides.

Referenced by scCrossboneIsleKeysTrackStatueColumn().

Definition at lines 72 and 2220 of file crossbone_isle_keys.c.

CrossboneIsleKeysIconTimer

extern Sint32 CrossboneIsleKeysIconTimer

Sint32 CrossboneIsleKeysIconTimer

Unused: the tick counter of scCrossboneIsleKeysUnusedRedrawKeyActors.

References Sint32.

Referenced by scCrossboneIsleKeysUnusedRedrawKeyActors().

Definition at lines 73 and 2227 of file crossbone_isle_keys.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_CROSSBONE_ISLE_THIRD_PILLAR_LOWEREDFIRST_STATUE_SHOVE_PIXELSFIRST_STATUE_FOLLOW_PIXELSSTATUE_SHOVE_PIXELSFLAG_CROSSBONE_ISLE_BANE_PUDDLE_FROZENFLAG_CROSSBONE_ISLE_BANE_CHEST_AT_LADDERFLAG_CROSSBONE_ISLE_BANE_JUMPED_EAST_FROM_LADDERFLAG_CROSSBONE_ISLE_STATUE_AFTER_LEADEREnumerations in detailCROSSBONE_ISLE_KEYS_ACTOR_IDCROSSBONE_ISLE_STATUES_ACTOR_IDCROSSBONE_ISLE_STATUES_RAISED_CUECROSSBONE_ISLE_BANE_ACTOR_IDCROSSBONE_ISLE_KEYS_METATILE_BEHAVIORCROSSBONE_ISLE_STATUES_METATILE_BEHAVIORCROSSBONE_ISLE_BANE_METATILE_BEHAVIORCROSSBONE_ISLE_BANE_SPARE_METATILECROSSBONE_ISLE_KEYS_DOOR_PICTUREanonymous enumanonymous enumFunctions in detailscCrossboneIsleKeysPushFirstPillarscCrossboneIsleKeysFollowSecondPillarscCrossboneIsleKeysPlaceDemonAxeChestCuescCrossboneIsleKeysInitKeysscCrossboneIsleKeysInitStatuesscCrossboneIsleKeysInitBanescCrossboneIsleKeysRaiseScriptscCrossboneIsleKeysLiftFirstPillarscCrossboneIsleKeysBaneJoinsscCrossboneIsleKeysUnusedNoOperationAscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscCrossboneIsleKeysHaltStatuescCrossboneIsleKeysFaceBaneTowardLeaderscCrossboneIsleKeysBaneFirstEscapescCrossboneIsleKeysBaneSecondEscapescCrossboneIsleKeysBaneLastEscapescCrossboneIsleKeysBaneKeepsAwayscCrossboneIsleKeysHaltBanescGetCuesscCrossboneIsleKeysUnusedJumpOntoPostscCrossboneIsleKeysOpenBlueDoorscCrossboneIsleKeysOpenRedDoorscCrossboneIsleKeysUseRedKeyscCrossboneIsleKeysUseBlueKeyscCrossboneIsleKeysHopOntoPostBelowscCrossboneIsleKeysOpenFirstBlueDoorscCrossboneIsleKeysOpenSecondBlueDoorscCrossboneIsleKeysOpenThirdBlueDoorscCrossboneIsleKeysOpenFourthBlueDoorscCrossboneIsleKeysShowRedKeyscCrossboneIsleKeysHideRedKeyscCrossboneIsleKeysGetKeyscCrossboneIsleKeysCatchFirstBlueKeyscCrossboneIsleKeysCatchSecondBlueKeyscCrossboneIsleKeysCatchThirdBlueKeyscCrossboneIsleKeysCatchFourthBlueKeyscCrossboneIsleKeysCatchRedKeyscCrossboneIsleKeysCheckFirstStatueCuescCrossboneIsleKeysFirstStatuePushesLeaderBackscCrossboneIsleKeysCheckSecondStatueCuescCrossboneIsleKeysSecondStatuePushesLeaderBackscCrossboneIsleKeysTrackStatueColumnscCrossboneIsleKeysThirdStatueShadowsLeaderscCrossboneIsleKeysFourthStatueShadowsLeaderscCrossboneIsleKeysTrackFifthStatueColumnscCrossboneIsleKeysThirdStatuePushesLeaderBackscCrossboneIsleKeysFourthStatuePushesLeaderBackscCrossboneIsleKeysCheckFifthStatueCuescCrossboneIsleKeysFifthStatuePushesLeaderBackscCrossboneIsleKeysCastRevealInStatueRoomscCrossboneIsleKeysRevealEndsInStatueRoomscCrossboneIsleKeysUseLadderscCrossboneIsleKeysUnusedNoOperationBscCrossboneIsleKeysFreezePuddlescCrossboneIsleKeysJumpEastOrPushFirstPillarscCrossboneIsleKeysClearFirstPillarFromLedgescCrossboneIsleKeysStandFirstPillarAtLadderFootscCrossboneIsleKeysStandFirstPillarInGapscCrossboneIsleKeysStandFirstPillarByLedgescCrossboneIsleKeysMoveFirstPillarscCrossboneIsleKeysReleaseSecondPillarChestscCrossboneIsleKeysMoveSecondPillarscCrossboneIsleKeysPushSecondPillarscCrossboneIsleKeysClearThirdPillarFromFloorscCrossboneIsleKeysStandThirdPillarWestscCrossboneIsleKeysStandThirdPillarEastscCrossboneIsleKeysMoveThirdPillarscCrossboneIsleKeysPushThirdPillarscCrossboneIsleKeysTouchThirdPillarscCrossboneIsleKeysClearFourthAndFifthPillarRowscCrossboneIsleKeysStandFourthAndFifthPillarsscCrossboneIsleKeysMoveFourthPillarscCrossboneIsleKeysPushFourthOrFifthPillarscCrossboneIsleKeysMoveFifthPillarscCrossboneIsleKeysPushFifthPillarscCrossboneIsleKeysUpdatePillarPrioritiesscInitscCrossboneIsleKeysUnusedRedrawKeyActorsVariables in detailCrossboneIsleKeysBaneSquashScriptCrossboneIsleKeysBaneWalkTargetsCrossboneIsleKeysRoomEntrancesCrossboneIsleStatuesEntrancesCrossboneIsleBaneEntrancesCrossboneIsleKeysExitsCrossboneIsleKeysActorPlacementsOtherCrossboneIsleKeysRoomActorPlacementsCrossboneIsleStatuesActorPlacementsCrossboneIsleBaneActorPlacementsCrossboneIsleKeysCuesOtherCrossboneIsleKeysRoomCuesCrossboneIsleStatuesCuesCrossboneIsleBaneCuesCrossboneIsleKeysStatueColumnsCrossboneIsleKeysIconTimer