Skip to Content
The Alchemy Project

src/scene/colosseum_satrage_match.c

Colosseum Final 2 (SceneIdColosseumSatrageMatch) is the site of the second finals match, where Isaac races Satrage through five stages to the arena and fights him there. More…

Macros

NameDescription
#definePLATFORM_ANIMATION_AT_WATERLINE 4SPRITE_WHITE_PLATFORM's flat slab at the waterline (white_platform.tsv's picture 1), as the lifts and the Board Walk's platforms are drawn.
#defineLIFT_CYCLE_TICKS 120The lifts' cycle in ticks, the tick of it the demonstration waits for them to stand lined up, and how long it waits at most; and how far a riding log carries Isaac, in pixels.
#defineLIFT_LINED_UP_TICK 75
#defineDEMONSTRATION_TIMEOUT_TICKS 600
#defineRIDING_LOG_TRAVEL_PIXELS 64
#defineRIDING_LOG_NORTH_ROW 10The map grid rows the two riding logs lie across, from their first row.
#defineRIDING_LOG_SOUTH_ROW 13
#defineFALL_SPIN_ACCELERATION 36The falling log's spin, in 1/65536 turns a tick: it speeds up by FALL_SPIN_ACCELERATION each tick, from 0 as it tips and from SETTLE_SPIN_START as it drops into the water.
#defineSETTLE_SPIN_START 360
#defineWALL_PILLAR_MOVED_COLUMN 36The column the stone pillar by The Wall stands in once Move has slid it a metatile east of its place, (568, 264).
#defineCOLOSSEUM_SATRAGE_MATCH_SHOW_MESSAGE fdScriptShowMessageAndWait
#defineCOLOSSEUM_SATRAGE_MATCH_MOVE_RIDING_LOG
#defineCOLOSSO_BETTER_PRIZE ITEM_CHAIN_MAILThe arena at the west end, reached at metatiles (8, 13) to (8, 18), where Isaac and Satrage meet: the Chain Mail and the Cotton Shirt are the prizes, and the two stand in line along z 256, Satrage to the west.
#defineCOLOSSO_OTHER_PRIZE ITEM_COTTON_SHIRT
#defineCOLOSSO_ARENA_X 104
#defineCOLOSSO_ARENA_Z 256
#defineCOLOSSO_OPPONENT_SIDE -1
#defineCOLOSSO_SCENE SCENE_COLOSSEUM_SATRAGE_MATCH
#defineCOLOSSO_AFTER_MATCH_WON COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_WON
#defineCOLOSSO_AFTER_MATCH_LOST COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_LOST
#defineFLAG_COLOSSEUM_SATRAGE_MATCH_BOARD_WALK_NUT_CHEST_OPENEDThe chests have been opened: a Nut on the Board Walk, in the narrow channel north of its pool, metatile (23, 7); a Smoke Bomb at the foot of The Wall, metatile (34, 16); and a Nut on the shifting floor stage, metatile (56, 7).
#defineFLAG_COLOSSEUM_SATRAGE_MATCH_SMOKE_BOMB_CHEST_OPENED
#defineFLAG_COLOSSEUM_SATRAGE_MATCH_SHIFTING_FLOOR_NUT_CHEST_OPENED

Enumerations

NameDescription
enumanonymous enum { FINALS_MATCH }The match held here, as the lettering The 2nd Match reads; the friends' turns open with Lend a Hand! instead (scColossoShowOpeningLettering).
enumanonymous enum { COLOSSEUM_SATRAGE_MATCH_ON_BOARD_WALK }An entrance no exit leads to, on the Board Walk just east of the tall log.
enumCOLOSSEUM_SATRAGE_MATCH_STAGE { STAGE_MINI_MAZE, STAGE_SHIFTING_FLOOR, STAGE_LOG_ROLLING, ST … }The stages, as their attendants number them: "This is stage 1 of the second finals".
enumanonymous enum { BOARD_WALK_STORE_COLUMN, LOG_ROLLING_STORE_COLUMN }Where scInit keeps a copy of the metatiles under the logs, off the stages, to put back before the logs' metatiles are walled again where they lie: the Board Walk's (14..25, 11..14) at column 100, and the Log-Rolling Stage's (48..52, 10..15) at column 120, each in the same rows.
enumCOLOSSEUM_SATRAGE_MATCH_ACTOR_ID { ACTOR_OPPONENT, ACTOR_BOARD_WALK_WEST_PILLAR, ACTOR_BOARD_WA … }The second finals match's actors, numbered in the order of ColosseumSatrageMatchActorPlacements from ACTOR_FIRST_PLACED.
enumanonymous enum { FLAG_LOG_KNOCKED_DOWN, FLAG_WEST_PUDDLE_FROZEN, FLAG_EAST_PU … }The temporary flags that keep what the friends changed on the stages, for the race.
enumFALLING_LOG_ANIMATION { FALLING_LOG_ANIMATION_STANDING, FALLING_LOG_ANIMATION_FALLEN }SPRITE_FALLING_LOG's animations (falling_log.tsv).
enumLIFT_OPERATOR_ANIMATION { LIFT_OPERATOR_ANIMATION_LIFTS_LINED_UP, LIFT_OPERATOR_ANIMAT … }SPRITE_YOUNG_MAN_WITH_FAIR_HAIR's two poses at the lever of the shifting floor, which the lifts' operator takes as he lines the lifts up and as he breaks the line.
enumCOLOSSEUM_SATRAGE_MATCH_METATILE_BEHAVIOR { METATILE_BEHAVIOR_WALL_LEDGE, METATILE_BEHAVIOR_BOARD_WALK_L … }The metatile behaviours the stages' step cues answer.
enumanonymous enum { METATILE_BEHAVIOR_BOARD_WALK_NUT_CHEST, METATILE_BEHAVIOR_SM … }The chests' metatiles, as the flags above.

Functions

NameDescription
Sint32scInit (void)Sets up Colosseum Final 2 for the visit its entrance stands for.
voidscColosseumSatrageMatchStartRaceGauge (Sint32 leaderId, Sint32 opponentId, Sint32 segments, Sint32 finishX, FIXED finishZ, Sint32 firstItem, Sint32 secondItem)Starts the race gauge, as scColossoStartRaceGauge (shared/colosso_setup.c) does for Colosseum Final 1 and 3: Isaac and Satrage, a bar of segments pieces, and the finish at the arena.
static voidscColosseumSatrageMatchIntroduceSecondFinals (Sint32 guide)The guide gives the party the tour of Colosseum Final 2 (COLOSSEUM_SATRAGE_MATCH_FROM_COLOSSEUM_WEST).
static voidscColossoShowOpeningLettering (Sint32 match)Shows the lettering a visit opens with: Lend a Hand! when match is LETTERING_LEND_A_HAND, or else The 1st Match to The 3rd Match, held for match seconds, and the count of 3, 2, 1 and GO, after which the race music starts.
static voidscColossoShowMatchResult (Sint32 result)Shows how a match ended, back in the arena after its battle: WIN, or LOSE in blue, swells over the arena with its jingle, the loser shows an ellipsis, and the screen closes. result is the match's number, 1 to 3, negated when Isaac lost it; the lettering stands a second for each.
static voidscColossoNoOperation (void)Does nothing; the arena's step script calls it first.
static voidscColossoWaitForOpponentToFinish (void)Waits until the opponent has run his recorded path to its end.
static Sint32scColossoTakePrize (Sint32 firstItem, Sint32 secondItem)Isaac reaches the finish: he walks up to the first prize, or the second when the opponent is there before him, holds it up, is given and equipped with it, and MsgGotItem names him and the item he got.
static voidscColosseumSatrageMatchStartOpponentPath (Sint32 pathResource)Decodes Satrage's recorded path and sets him running it, as scColossoStartOpponent does for the other two matches.
static voidscColossoPushActorAhead (void)The leader pushes the actor standing in the next metatile ahead one metatile on (a rock, a weight or a stone pillar on the stages), when nothing solid stands beyond it or on top of it and the ground lets it move, with the pushing pose and SE_PUSH_STEP.
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 voidscColosseumSatrageMatchIgnoreMove (void)Move on either of the Board Walk's two stone pillars, on the ledge along the north edge of its pool, does nothing.
static voidscColosseumSatrageMatchPushBoardWalkPillar (void)Walking along the Board Walk's ledge, on the north edge of its pool, into one of its two stone pillars pushes the pillar a metatile further along, if nothing stands beyond it.
static voidscColosseumSatrageMatchMoveWallPillar (void)Move on the stone pillar at the foot of The Wall slides it a metatile east, away from the chest holding a Smoke Bomb, on the ledge at metatile (35, 16).
static voidscColosseumSatrageMatchPushWallPillar (void)Walking west along the ledge at the foot of The Wall, from metatile (37, 16), pushes the stone pillar back a metatile west, beside the chest, when Move has left it in the next metatile.
static voidscColosseumSatrageMatchMoveMiniMazePillar (void)Move on one of the three stone pillars along the Mini-Maze's south edge, where the race starts, slides it a metatile.
static voidscColosseumSatrageMatchKeepLogStillForForce (void)Nothing visible happens when Force is cast at the tall log by the Board Walk's channel, just before the fist flies.
static voidscColosseumSatrageMatchKnockDownLog (void)Force on the tall log standing at the east end of the Board Walk's channel knocks it over west into the water, where it lies beside the white platforms as one more step across, metatile (20, 16), on the way to the arena.
static voidscColosseumSatrageMatchFreezeWestPuddle (void)Frost on the western of the Log-Rolling Stage's two puddles, metatile (44, 17), freezes it into a pillar of ice, a square Isaac can hop onto (FLAG_WEST_PUDDLE_FROZEN).
static voidscColosseumSatrageMatchFreezeEastPuddle (void)Frost on the eastern of the Log-Rolling Stage's two puddles, metatile (50, 17), freezes it into a pillar of ice, a square Isaac can hop onto (FLAG_EAST_PUDDLE_FROZEN).
static voidscColosseumSatrageMatchGrowPlant (void)Growth on the sprout at the foot of The Wall, metatile (32, 16), grows it into a vine up the wall that can be climbed (FLAG_PLANT_GROWN).
static voidscColosseumSatrageMatchJumpDownFromPost (void)Walking south off the top of the stone post just west of the sprout at the foot of The Wall, metatile (31, 16), Isaac jumps down to the ground below.
static voidscColosseumSatrageMatchHopWestFromPost (void)Walking west off the top of the stone post just west of the sprout at the foot of The Wall, metatile (31, 16), Isaac hops across to the next post west.
static voidscColosseumSatrageMatchMoveRidingLog (Sint32 logId, Sint32 offsetX, Sint32 offsetZ)Rolls one of the Log-Rolling Stage's logs across the water by the offset, with Isaac on top walking backwards as it turns under him, and stops both in the middle of their metatiles.
static voidscColosseumSatrageMatchRideLog (void)Standing on one of the Log-Rolling Stage's two logs and holding Left or Right rolls it four metatiles across the pool with Isaac on top, towards the far bank: west from its east end, east from its west end.
static voidscColosseumSatrageMatchRollLogToMetatile (Sint32 logId, Sint32 halfMetatileX, Sint32 halfMetatileZ)Isaac leans on one of the Board Walk's logs and it rolls to a place given in half metatiles, with Isaac walking after it half the way.
static voidscColosseumSatrageMatchUpdateRollingLogCollision (void)Walls off the metatiles under the Board Walk's logs where they now lie, after putting back the stage's metatiles as the map had them.
static voidscColosseumSatrageMatchRollWestLogWest (void)Walking west into the Board Walk's western log, from beside it at metatile (17, 11) or (17, 14), rolls it two metatiles west.
static voidscColosseumSatrageMatchRollWestLogEast (void)Walking east into the Board Walk's western log from column 13, once it has been rolled west, rolls it back two metatiles east.
static voidscColosseumSatrageMatchRollEastLogWest (void)Walking west into the Board Walk's eastern log, from beside it in column 25, rolls it two metatiles west, as the attendant shows on the tour.
static voidscColosseumSatrageMatchRollEastLogEast (void)Walking east into the Board Walk's eastern log from column 21, once it has been rolled west, rolls it back two metatiles east.
static UNUSED voidscColosseumSatrageMatchUnusedRollCenterLogNorth (void)Unused: no cue row calls it.
static UNUSED voidscColosseumSatrageMatchUnusedRollCenterLogSouth (void)Unused: as scColosseumSatrageMatchUnusedRollCenterLogNorth, rolling ACTOR_ROLLING_LOG_CENTER, which is not on the Board Walk, to the target 16 pixels south of that one's.
static voidscColosseumSatrageMatchUpdateLifts (void)Each tick while the shifting floor runs, carries Isaac north or south with the lift he stands on, swaps the lifts between a line across the channel and their broken pattern every LIFT_CYCLE_TICKS, and makes their metatiles squares to hop onto only while they stand in line.
static voidscColosseumSatrageMatchResetLifts (void)Stops the shifting floor and lines its four lifts up across the channel, for the attendant's demonstration.
static voidscColosseumSatrageMatchStartLifts (void)Starts the shifting floor's lifts moving again.
static voidscColosseumSatrageMatchWaitForLiftsLinedUp (void)Waits, for up to ten seconds, until the four lifts stand lined up across the water, for the demonstration to jump onto them.
static voidscColosseumSatrageMatchHaltLifts (void)Halt on the young man who works the shifting floor's lifts freezes him, and the lifts stop in a line across the channel for Isaac to hop over (FLAG_LIFTS_HALTED).
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 voidscColosseumSatrageMatchTalkToMiniMazeAttendant (Sint32 attendant)The Mini-Maze's attendant explains stage 1 of Colosseum Final 2.
static voidscColosseumSatrageMatchTalkToShiftingFloorAttendant (Sint32 attendant)The shifting floor stage's attendant explains stage 2 of Colosseum Final 2.
static voidscColosseumSatrageMatchTalkToLogRollingAttendant (Sint32 attendant)The Log-Rolling Stage's attendant explains stage 3 of Colosseum Final 2.
static voidscColosseumSatrageMatchTalkToWallAttendant (Sint32 attendant)The Wall's attendant explains stage 4 of Colosseum Final 2.
static voidscColosseumSatrageMatchDemonstrateLogPush (Sint32 logId, Sint32 x, Sint32 z)In the Board Walk attendant's demonstration, Isaac leans on a log and it rolls west to (x, z) in pixels, with Isaac walking after it half the way.
static voidscColosseumSatrageMatchTalkToBoardWalkAttendant (Sint32 attendant)The Board Walk's attendant explains stage 5 of Colosseum Final 2.

Variables

NameDescription
extern const Uint8ColosseumSatrageMatchRollLogAnimations []A Board Walk log's roll for each quarter turn of the way Isaac pushes it, from east: east or south, it rolls east; west or north, west.
extern SCENE_ENTRANCEColosseumSatrageMatchEntrances []
extern Uint32ColosseumSatrageMatchExits []
extern ACTOR_PLACEColosseumSatrageMatchActorPlacements []
extern Sint32ColosseumSatrageMatchLiftsApartSet while the lifts stand in their broken pattern rather than in a line.
extern Uint32ColosseumSatrageMatchLiftTimerThe ticks into the lifts' cycle (LIFT_CYCLE_TICKS).
extern CUEColosseumSatrageMatchCues []
extern charHexDigits [20]
Sint16ColossoLetteringSlotThe VRAM cache entry holding the lettering's tiles, -1 when none is loaded.
Sint16ColossoPointerSlotThe VRAM cache entry holding the marker's tiles, -1 when none is loaded.

Description

Colosseum Final 2 (SceneIdColosseumSatrageMatch) is the site of the second finals match, where Isaac races Satrage through five stages to the arena and fights him there.

Isaac has won the first match, and Satrage is the fourth-ranked warrior.

It works as Colosseum Final 1 does (colosseum_azart_match.c). The stages run from east to west, one after another: the Mini-Maze, where Isaac starts among three stone pillars; the shifting floor stage, four lifts across a channel of water; the Log-Rolling Stage, two logs to ride across a pool; The Wall, a high stone wall to climb, with a row of stone posts at its foot; and the Board Walk, a pool whose logs lie across the way, with a channel of white platforms along its south edge. The arena is in the far west.

Isaac comes here three times, each at its own entrance. scInit restores what the friends changed on the stages from their temporary flags (FLAG_LOG_KNOCKED_DOWN to FLAG_WALL_PILLAR_MOVED, and the Mini-Maze pillars' columns from FLAG_MINI_MAZE_FIRST_PILLAR_COLUMN). Then it sets up the visit its entrance stands for.

A win returns to COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_WON and on to the Colosseum (COLOSSEUM_SATRAGE_MATCH_TO_COLOSSEUM_NORTH, arriving at COLOSSEUM_FROM_COLOSSEUM_SATRAGE_MATCH_NORTH), which sets FLAG_COLOSSO_SECOND_MATCH_WON.

A loss returns to COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_LOST, and COLOSSEUM_SATRAGE_MATCH_TO_BABI_PALACE wakes the party in Babi's Palace, where Isaac's friends tell him he was only dreaming of the finals.

The shifting floor's four lifts run on every visit until Halt stops them (scColosseumSatrageMatchUpdateLifts). Every LIFT_CYCLE_TICKS they change places: for a while all four stand in a line across the channel, metatiles (58, 13) to (64, 13), and Isaac can hop from one to the next; then the first and third slide north and the second and fourth south, and the line is broken. Only while they stand still in a line are their metatiles squares to hop onto (METATILE_BEHAVIOR_JUMP_FORWARD); otherwise they are walls.

Macros in detail

PLATFORM_ANIMATION_AT_WATERLINE

#define PLATFORM_ANIMATION_AT_WATERLINE 4

SPRITE_WHITE_PLATFORM's flat slab at the waterline (white_platform.tsv's picture 1), as the lifts and the Board Walk's platforms are drawn.

Referenced by scInit().

Definition at line 113 of file colosseum_satrage_match.c.

LIFT_CYCLE_TICKS

#define LIFT_CYCLE_TICKS 120

The lifts' cycle in ticks, the tick of it the demonstration waits for them to stand lined up, and how long it waits at most; and how far a riding log carries Isaac, in pixels.

Referenced by scColosseumSatrageMatchUpdateLifts().

Definition at line 142 of file colosseum_satrage_match.c.

LIFT_LINED_UP_TICK

#define LIFT_LINED_UP_TICK 75

Referenced by scColosseumSatrageMatchWaitForLiftsLinedUp().

Definition at line 143 of file colosseum_satrage_match.c.

DEMONSTRATION_TIMEOUT_TICKS

#define DEMONSTRATION_TIMEOUT_TICKS 600

Referenced by scColosseumSatrageMatchWaitForLiftsLinedUp().

Definition at line 144 of file colosseum_satrage_match.c.

RIDING_LOG_TRAVEL_PIXELS

#define RIDING_LOG_TRAVEL_PIXELS 64

Referenced by scColosseumSatrageMatchRideLog() and scColosseumSatrageMatchTalkToLogRollingAttendant().

Definition at line 145 of file colosseum_satrage_match.c.

RIDING_LOG_NORTH_ROW

#define RIDING_LOG_NORTH_ROW 10

The map grid rows the two riding logs lie across, from their first row.

Referenced by scColosseumSatrageMatchRideLog() and scInit().

Definition at line 147 of file colosseum_satrage_match.c.

RIDING_LOG_SOUTH_ROW

#define RIDING_LOG_SOUTH_ROW 13

Referenced by scColosseumSatrageMatchRideLog() and scInit().

Definition at line 148 of file colosseum_satrage_match.c.

FALL_SPIN_ACCELERATION

#define FALL_SPIN_ACCELERATION 36

The falling log's spin, in 1/65536 turns a tick: it speeds up by FALL_SPIN_ACCELERATION each tick, from 0 as it tips and from SETTLE_SPIN_START as it drops into the water.

Referenced by scColosseumSatrageMatchKnockDownLog().

Definition at line 152 of file colosseum_satrage_match.c.

SETTLE_SPIN_START

#define SETTLE_SPIN_START 360

Referenced by scColosseumSatrageMatchKnockDownLog().

Definition at line 153 of file colosseum_satrage_match.c.

WALL_PILLAR_MOVED_COLUMN

#define WALL_PILLAR_MOVED_COLUMN 36

The column the stone pillar by The Wall stands in once Move has slid it a metatile east of its place, (568, 264).

Referenced by scColosseumSatrageMatchMoveWallPillar().

Definition at line 156 of file colosseum_satrage_match.c.

COLOSSEUM_SATRAGE_MATCH_SHOW_MESSAGE

#define COLOSSEUM_SATRAGE_MATCH_SHOW_MESSAGE fdScriptShowMessageAndWait

#define COLOSSEUM_SATRAGE_MATCH_SHOW_MESSAGE

Referenced by scColosseumSatrageMatchTalkToShiftingFloorAttendant().

Definition at lines 161 and 165 of file colosseum_satrage_match.c.

COLOSSEUM_SATRAGE_MATCH_MOVE_RIDING_LOG

#define COLOSSEUM_SATRAGE_MATCH_MOVE_RIDING_LOG

Referenced by scColosseumSatrageMatchTalkToLogRollingAttendant().

Definition at lines 162 and 167 of file colosseum_satrage_match.c.

COLOSSO_BETTER_PRIZE

#define COLOSSO_BETTER_PRIZE ITEM_CHAIN_MAIL

The arena at the west end, reached at metatiles (8, 13) to (8, 18), where Isaac and Satrage meet: the Chain Mail and the Cotton Shirt are the prizes, and the two stand in line along z 256, Satrage to the west.

Referenced by scColossoReachArena().

Definition at line 959 of file colosseum_satrage_match.c.

COLOSSO_OTHER_PRIZE

#define COLOSSO_OTHER_PRIZE ITEM_COTTON_SHIRT

Referenced by scColossoReachArena().

Definition at line 960 of file colosseum_satrage_match.c.

COLOSSO_ARENA_X

#define COLOSSO_ARENA_X 104

Referenced by scColossoReachArena(), scColossoRestoreMatchResult() and scInit().

Definition at line 961 of file colosseum_satrage_match.c.

COLOSSO_ARENA_Z

#define COLOSSO_ARENA_Z 256

Referenced by scColossoReachArena(), scColossoRestoreMatchResult() and scInit().

Definition at line 962 of file colosseum_satrage_match.c.

COLOSSO_OPPONENT_SIDE

#define COLOSSO_OPPONENT_SIDE -1

Referenced by scColossoReachArena() and scColossoRestoreMatchResult().

Definition at line 963 of file colosseum_satrage_match.c.

COLOSSO_SCENE

#define COLOSSO_SCENE SCENE_COLOSSEUM_SATRAGE_MATCH

Referenced by scColossoReachArena().

Definition at line 964 of file colosseum_satrage_match.c.

COLOSSO_AFTER_MATCH_WON

#define COLOSSO_AFTER_MATCH_WON COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_WON

Referenced by scColossoReachArena().

Definition at line 965 of file colosseum_satrage_match.c.

COLOSSO_AFTER_MATCH_LOST

#define COLOSSO_AFTER_MATCH_LOST COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_LOST

Referenced by scColossoReachArena().

Definition at line 966 of file colosseum_satrage_match.c.

FLAG_COLOSSEUM_SATRAGE_MATCH_BOARD_WALK_NUT_CHEST_OPENED

#define FLAG_COLOSSEUM_SATRAGE_MATCH_BOARD_WALK_NUT_CHEST_OPENED

The chests have been opened: a Nut on the Board Walk, in the narrow channel north of its pool, metatile (23, 7); a Smoke Bomb at the foot of The Wall, metatile (34, 16); and a Nut on the shifting floor stage, metatile (56, 7).

Referenced by ColosseumSatrageMatchCues.

Definition at line 1669 of file colosseum_satrage_match.c.

FLAG_COLOSSEUM_SATRAGE_MATCH_SMOKE_BOMB_CHEST_OPENED

#define FLAG_COLOSSEUM_SATRAGE_MATCH_SMOKE_BOMB_CHEST_OPENED

Referenced by ColosseumSatrageMatchCues.

Definition at line 1671 of file colosseum_satrage_match.c.

FLAG_COLOSSEUM_SATRAGE_MATCH_SHIFTING_FLOOR_NUT_CHEST_OPENED

#define FLAG_COLOSSEUM_SATRAGE_MATCH_SHIFTING_FLOOR_NUT_CHEST_OPENED

Referenced by ColosseumSatrageMatchCues.

Definition at line 1673 of file colosseum_satrage_match.c.

Enumerations in detail

anonymous enum

enum { FINALS_MATCH }

The match held here, as the lettering The 2nd Match reads; the friends' turns open with Lend a Hand! instead (scColossoShowOpeningLettering).

EnumeratorValueDescription
FINALS_MATCH2

Definition at line 78 of file colosseum_satrage_match.c.

anonymous enum

enum { COLOSSEUM_SATRAGE_MATCH_ON_BOARD_WALK }

An entrance no exit leads to, on the Board Walk just east of the tall log.

EnumeratorValueDescription
COLOSSEUM_SATRAGE_MATCH_ON_BOARD_WALK10

Definition at line 84 of file colosseum_satrage_match.c.

COLOSSEUM_SATRAGE_MATCH_STAGE

enum COLOSSEUM_SATRAGE_MATCH_STAGE

The stages, as their attendants number them: "This is stage 1 of the second finals".

EnumeratorValueDescription
STAGE_MINI_MAZE1
STAGE_SHIFTING_FLOOR2
STAGE_LOG_ROLLING3
STAGE_WALL4
STAGE_BOARD_WALK5
STAGE_COUNT5

Definition at line 91 of file colosseum_satrage_match.c.

anonymous enum

enum { BOARD_WALK_STORE_COLUMN, LOG_ROLLING_STORE_COLUMN }

Where scInit keeps a copy of the metatiles under the logs, off the stages, to put back before the logs' metatiles are walled again where they lie: the Board Walk's (14..25, 11..14) at column 100, and the Log-Rolling Stage's (48..52, 10..15) at column 120, each in the same rows.

EnumeratorValueDescription
BOARD_WALK_STORE_COLUMN100
LOG_ROLLING_STORE_COLUMN120

Definition at line 105 of file colosseum_satrage_match.c.

COLOSSEUM_SATRAGE_MATCH_ACTOR_ID

enum COLOSSEUM_SATRAGE_MATCH_ACTOR_ID

The second finals match's actors, numbered in the order of ColosseumSatrageMatchActorPlacements from ACTOR_FIRST_PLACED.

The rows of Isaac, Garet, Ivan and Mia take their own actors.

By the guide's and attendants' explanations, the Mini-Maze, the shifting floor stage, the Log-Rolling Stage, The Wall and the Board Walk lead to the arena. The stone pillars are drawn as the stone pillars Move pushes elsewhere.

EnumeratorValueDescription
ACTOR_OPPONENTACTOR_FIRST_PLACEDSatrage, racing Isaac to the arena.
ACTOR_BOARD_WALK_WEST_PILLARThe Board Walk's two stone pillars,
ACTOR_BOARD_WALK_EAST_PILLARon the ledge along the north edge of its pool. The eastern one stands before the narrow channel that holds a chest. Move does nothing to them.
ACTOR_WALL_PILLARThe stone pillar on the ledge at the foot of The Wall, beside the chest holding a Smoke Bomb.
ACTOR_MINI_MAZE_FIRST_PILLARThe Mini-Maze's three stone pillars, in a row along the stage's south edge where the race starts, which Move shifts. scInit stands them west to east at columns 73, 76 and 79 until they have been moved.
ACTOR_ROLLING_LOG_WESTACTOR_MINI_MAZE_FIRST_PILLAR + 3The Board Walk's two logs, the western and the eastern, lying north to south in its pool below the stone pillars' ledge. A third, ACTOR_ROLLING_LOG_CENTER, is placed at (0, 0) and never moved there. scColosseumSatrageMatchUnusedRollCenterLogNorth, its South twin and its row in the collision rebuild remain for it.
ACTOR_ROLLING_LOG_EAST
ACTOR_ROLLING_LOG_CENTER
ACTOR_FORCE_TARGETWhat Force is cast at to knock ACTOR_FALLING_LOG over: the tall log's place, at the east end of the Board Walk's channel.
ACTOR_GROWTH_PLANTThe sprout at the foot of The Wall, which Growth grows into a vine.
ACTOR_PUDDLE_WESTThe Log-Rolling Stage's two puddles,
ACTOR_PUDDLE_EASTwhich Frost freezes. They are drawn as the puddle Frost freezes in Lunpa (sprite_ids.h's SPRITE_PUDDLE).
ACTOR_FIRST_LIFTThe shifting floor stage's four lifts,
ACTOR_LAST_LIFTACTOR_FIRST_LIFT + 3from west to east, which the lifts' operator runs.
ACTOR_BOARD_WALK_FIRST_PLATFORMFour platforms in the lifts' sprite laid
ACTOR_FALLING_LOGACTOR_BOARD_WALK_FIRST_PLATFORM + 4across the water channel at the Board Walk's south edge, drawn underfoot. Nothing but scInit touches them. The tall log standing on end at the east end of the Board Walk's channel, which Force on ACTOR_FORCE_TARGET knocks over into the water.
ACTOR_LIFT_OPERATORA young man with fair hair who works the shifting floor stage's lifts.
ACTOR_RIDING_LOG_NORTHThe Log-Rolling Stage's two logs.
ACTOR_RIDING_LOG_SOUTH
ACTOR_GUIDEA soldier who greets the party at the second finals match.
ACTOR_MINI_MAZE_ATTENDANTThe stages' attendants, young men with fair hair in white tunics.
ACTOR_SHIFTING_FLOOR_ATTENDANT
ACTOR_LOG_ROLLING_ATTENDANT
ACTOR_WALL_ATTENDANT
ACTOR_BOARD_WALK_ATTENDANT
ACTOR_PRIZE_AThe arena's prizes, drawn as item icons at two blank
ACTOR_PRIZE_Bactors (scColossoShowItemIcon).

Definition at line 189 of file colosseum_satrage_match.c.

anonymous enum

enum { FLAG_LOG_KNOCKED_DOWN, FLAG_WEST_PUDDLE_FROZEN, FLAG_EAST_PUDDLE_FROZEN, FLAG_PLANT_GROWN, … }

The temporary flags that keep what the friends changed on the stages, for the race.

scInit restores them.

EnumeratorValueDescription
FLAG_LOG_KNOCKED_DOWNFLAG_AREA_TEMP(0x30)By Force, on the Board Walk.
FLAG_WEST_PUDDLE_FROZENFLAG_AREA_TEMP(0x31)By Frost.
FLAG_EAST_PUDDLE_FROZENFLAG_AREA_TEMP(0x32)By Frost.
FLAG_PLANT_GROWNFLAG_AREA_TEMP(0x33)By Growth, up The Wall.
FLAG_LIFTS_HALTEDFLAG_AREA_TEMP(0x34)By Halt on ACTOR_LIFT_OPERATOR.
FLAG_WALL_PILLAR_MOVEDFLAG_AREA_TEMP(0x35)The stone pillar at the foot of The Wall stands a metatile east of the chest.
FLAG_MINI_MAZE_FIRST_PILLAR_COLUMNFLAG_AREA_TEMP(0x40)The bytes of flags that keep the Mini-Maze's three pillars' columns.
FLAG_MINI_MAZE_SECOND_PILLAR_COLUMNFLAG_AREA_TEMP(0x48)
FLAG_MINI_MAZE_THIRD_PILLAR_COLUMNFLAG_AREA_TEMP(0x50)

Definition at line 260 of file colosseum_satrage_match.c.

FALLING_LOG_ANIMATION

enum FALLING_LOG_ANIMATION

SPRITE_FALLING_LOG's animations (falling_log.tsv).

EnumeratorValueDescription
FALLING_LOG_ANIMATION_STANDING3standing on end
FALLING_LOG_ANIMATION_FALLEN4lying across the water, bobbing

Definition at line 280 of file colosseum_satrage_match.c.

LIFT_OPERATOR_ANIMATION

enum LIFT_OPERATOR_ANIMATION

SPRITE_YOUNG_MAN_WITH_FAIR_HAIR's two poses at the lever of the shifting floor, which the lifts' operator takes as he lines the lifts up and as he breaks the line.

EnumeratorValueDescription
LIFT_OPERATOR_ANIMATION_LIFTS_LINED_UP10
LIFT_OPERATOR_ANIMATION_LIFTS_APART11

Definition at line 289 of file colosseum_satrage_match.c.

COLOSSEUM_SATRAGE_MATCH_METATILE_BEHAVIOR

enum COLOSSEUM_SATRAGE_MATCH_METATILE_BEHAVIOR

The metatile behaviours the stages' step cues answer.

EnumeratorValueDescription
METATILE_BEHAVIOR_WALL_LEDGE20The ledge at the foot of The Wall, metatile (37, 16), a metatile east of where Move leaves the stone pillar.
METATILE_BEHAVIOR_BOARD_WALK_LEDGE21The Board Walk's ledge either side of its two stone pillars, metatiles (13, 10) to (17, 10) and (21, 10) to (24, 10).
METATILE_BEHAVIOR_RIDING_LOG22Under the Log-Rolling Stage's logs, three metatiles each, moved with them.
METATILE_BEHAVIOR_WEST_LOG_EAST_SIDE24Beside the Board Walk's
METATILE_BEHAVIOR_WEST_LOG_WEST_SIDE25western log: east of it where it starts, metatiles (17, 11) and (17, 14), and west of it once rolled, in column 13.
METATILE_BEHAVIOR_WALL_LEDGE_UNUSED26A second ledge metatile for the stone pillar at The Wall. No metatile of the map holds it.
METATILE_BEHAVIOR_EAST_LOG_WEST_SIDE27Beside the Board Walk's
METATILE_BEHAVIOR_EAST_LOG_EAST_SIDE28eastern log: west of it once rolled, in column 21, and east of it where it starts, in column 25.
METATILE_BEHAVIOR_WALL_POST30The top of the stone post at the foot of The Wall just west of the sprout, metatile (31, 16).
METATILE_BEHAVIOR_ARENA50The east edge of the arena, metatiles (8, 13) to (8, 18).

Definition at line 296 of file colosseum_satrage_match.c.

anonymous enum

enum { METATILE_BEHAVIOR_BOARD_WALK_NUT_CHEST, METATILE_BEHAVIOR_SMOKE_BOMB_CHEST, METATILE_BEHAVIOR_SHIFTING_FLOOR_NUT_CHEST }

The chests' metatiles, as the flags above.

EnumeratorValueDescription
METATILE_BEHAVIOR_BOARD_WALK_NUT_CHEST101
METATILE_BEHAVIOR_SMOKE_BOMB_CHEST102
METATILE_BEHAVIOR_SHIFTING_FLOOR_NUT_CHEST104

Definition at line 1677 of file colosseum_satrage_match.c.

Functions in detail

scInit

Sint32 scInit(void)

Sets up Colosseum Final 2 for the visit its entrance stands for.

References fdActorGet(), fdActorReleaseById(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetSpriteColorById(), fdActorWatchAndSetScript(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdPsynergyHaltActor(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scColosseumSatrageMatchIntroduceSecondFinals(), scColosseumSatrageMatchStartOpponentPath(), scColosseumSatrageMatchStartRaceGauge(), scColosseumSatrageMatchUpdateLifts(), scColosseumSatrageMatchUpdateRollingLogCollision(), scColossoClearCheeringSpots(), scColossoControlCharacterAlone(), scColossoPlaceFriendsAtCheeringSpots(), scColossoRaiseTakePlaceOnPsynergy(), scColossoRestoreMatchResult(), scColossoShowItemIcon(), scColossoShowOpeningLettering(), scFieldGameFlagGetByte(), Sint32, syImportScriptSetExitRequest(), sySetEventFlags(), sySetTickEvent() and sySoundPlay().

Definition at lines 118 and 977 of file colosseum_satrage_match.c.

scColosseumSatrageMatchStartRaceGauge

void scColosseumSatrageMatchStartRaceGauge(Sint32 leaderId, Sint32 opponentId, Sint32 segments, Sint32 finishX, FIXED finishZ, Sint32 firstItem, Sint32 secondItem)

Starts the race gauge, as scColossoStartRaceGauge (shared/colosso_setup.c) does for Colosseum Final 1 and 3: Isaac and Satrage, a bar of segments pieces, and the finish at the arena.

References ColossoGaugeGraphics, fdActorGet(), gmFlagGet(), scColossoDrawGauge(), scFieldDecompressTaggedLZ(), Sint32, state, syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotAllocateEWRAM(), sySetTickEvent(), syVRAMCacheFindFreeEntry() and syVRAMCacheLoad().

Referenced by scInit().

Definition at lines 122 and 1589 of file colosseum_satrage_match.c.

scColosseumSatrageMatchIntroduceSecondFinals

static void scColosseumSatrageMatchIntroduceSecondFinals(Sint32 guide)

The guide gives the party the tour of Colosseum Final 2 (COLOSSEUM_SATRAGE_MATCH_FROM_COLOSSEUM_WEST).

References fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), scColossoEndTour(), scColossoGatherPartyForTour() and Sint32.

Referenced by scInit().

Definition at lines 171 and 1193 of file colosseum_satrage_match.c.

scColosseumSatrageMatchStartOpponentPath

static void scColosseumSatrageMatchStartOpponentPath(Sint32 pathResource)

Decodes Satrage's recorded path and sets him running it, as scColossoStartOpponent does for the other two matches.

References gmFlagGet(), scColossoUpdatePathOpponent(), SceneLocalState, scFieldDecompressTaggedLZ(), Sint32, state, syResourceGetTableEntry() and sySetTickEvent().

Referenced by scInit().

Definition at lines 177 and 1643 of file colosseum_satrage_match.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References ColosseumSatrageMatchEntrances.

Definition at line 333 of file colosseum_satrage_match.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 338 of file colosseum_satrage_match.c.

scGetExits

const Uint32 *scGetExits(void)

References ColosseumSatrageMatchExits.

Definition at line 343 of file colosseum_satrage_match.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ColosseumSatrageMatchActorPlacements.

Definition at line 348 of file colosseum_satrage_match.c.

scColosseumSatrageMatchIgnoreMove

static void scColosseumSatrageMatchIgnoreMove(void)

Move on either of the Board Walk's two stone pillars, on the ledge along the north edge of its pool, does nothing.

Referenced by ColosseumSatrageMatchCues.

Definition at line 355 of file colosseum_satrage_match.c.

scColosseumSatrageMatchPushBoardWalkPillar

static void scColosseumSatrageMatchPushBoardWalkPillar(void)

Walking along the Board Walk's ledge, on the north edge of its pool, into one of its two stone pillars pushes the pillar a metatile further along, if nothing stands beyond it.

Neither pillar moves when pushed from either side, so the eastern one keeps closed the narrow channel north of it that leads to a chest holding a Nut, metatile (23, 7).

References scColossoPushActorAhead().

Referenced by ColosseumSatrageMatchCues.

Definition at line 366 of file colosseum_satrage_match.c.

scColosseumSatrageMatchMoveWallPillar

static void scColosseumSatrageMatchMoveWallPillar(void)

Move on the stone pillar at the foot of The Wall slides it a metatile east, away from the chest holding a Smoke Bomb, on the ledge at metatile (35, 16).

After Move and after each push, FLAG_WALL_PILLAR_MOVED records whether the pillar stands in WALL_PILLAR_MOVED_COLUMN, and metatile (35, 77) is opened or walled to match. That metatile is (35, 13) of the layer for the face of The Wall, which starts at row 64: with the pillar moved aside, the way down the wall's face past it to the ledge is open. scInit opens the metatile again for the race, but the pillar itself is back beside the chest.

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

Referenced by ColosseumSatrageMatchCues and scColosseumSatrageMatchPushWallPillar().

Definition at line 380 of file colosseum_satrage_match.c.

scColosseumSatrageMatchPushWallPillar

static void scColosseumSatrageMatchPushWallPillar(void)

Walking west along the ledge at the foot of The Wall, from metatile (37, 16), pushes the stone pillar back a metatile west, beside the chest, when Move has left it in the next metatile.

With the pillar in its first place the next metatile is empty and nothing happens.

References scColosseumSatrageMatchMoveWallPillar() and scColossoPushActorAhead().

Referenced by ColosseumSatrageMatchCues.

Definition at line 401 of file colosseum_satrage_match.c.

scColosseumSatrageMatchMoveMiniMazePillar

static void scColosseumSatrageMatchMoveMiniMazePillar(void)

Move on one of the three stone pillars along the Mini-Maze's south edge, where the race starts, slides it a metatile.

Each pillar's top is a square to hop onto (METATILE_BEHAVIOR_JUMP_FORWARD), and its column is kept in a byte of flags so that the pillars stand where Move left them in the race. The metatile a pillar leaves keeps its square until the scene is entered again. The first copy puts back the Board Walk's log metatiles as the map had them, without the logs' own rows; nothing rolls those logs before the race.

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

Referenced by ColosseumSatrageMatchCues.

Definition at line 416 of file colosseum_satrage_match.c.

scColosseumSatrageMatchKeepLogStillForForce

static void scColosseumSatrageMatchKeepLogStillForForce(void)

Nothing visible happens when Force is cast at the tall log by the Board Walk's channel, just before the fist flies. The scene sets the Psynergy's leaveTarget, so that the fist does not shove the log 16 pixels away as it shoves what else it hits, and the log topples from where it stands (scColosseumSatrageMatchKnockDownLog).

Referenced by ColosseumSatrageMatchCues.

Definition at line 442 of file colosseum_satrage_match.c.

scColosseumSatrageMatchKnockDownLog

static void scColosseumSatrageMatchKnockDownLog(void)

Force on the tall log standing at the east end of the Board Walk's channel knocks it over west into the water, where it lies beside the white platforms as one more step across, metatile (20, 16), on the way to the arena.

References fdActorGet(), fdActorSetAnimation(), fdActorWaitForMove(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), fdScriptWait(), Sint32, sySoundPlay() and sySynch().

Referenced by ColosseumSatrageMatchCues.

Definition at line 452 of file colosseum_satrage_match.c.

scColosseumSatrageMatchFreezeWestPuddle

static void scColosseumSatrageMatchFreezeWestPuddle(void)

Frost on the western of the Log-Rolling Stage's two puddles, metatile (44, 17), freezes it into a pillar of ice, a square Isaac can hop onto (FLAG_WEST_PUDDLE_FROZEN).

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

Referenced by ColosseumSatrageMatchCues.

Definition at line 500 of file colosseum_satrage_match.c.

scColosseumSatrageMatchFreezeEastPuddle

static void scColosseumSatrageMatchFreezeEastPuddle(void)

Frost on the eastern of the Log-Rolling Stage's two puddles, metatile (50, 17), freezes it into a pillar of ice, a square Isaac can hop onto (FLAG_EAST_PUDDLE_FROZEN).

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

Referenced by ColosseumSatrageMatchCues.

Definition at line 510 of file colosseum_satrage_match.c.

scColosseumSatrageMatchGrowPlant

static void scColosseumSatrageMatchGrowPlant(void)

Growth on the sprout at the foot of The Wall, metatile (32, 16), grows it into a vine up the wall that can be climbed (FLAG_PLANT_GROWN).

References fdMapGridCopyMetatileAttributes() and gmFlagSet().

Referenced by ColosseumSatrageMatchCues.

Definition at line 519 of file colosseum_satrage_match.c.

scColosseumSatrageMatchJumpDownFromPost

static void scColosseumSatrageMatchJumpDownFromPost(void)

Walking south off the top of the stone post just west of the sprout at the foot of The Wall, metatile (31, 16), Isaac jumps down to the ground below.

References MainRoutineStateWork and scFieldActorJumpDownLedge().

Referenced by ColosseumSatrageMatchCues.

Definition at line 527 of file colosseum_satrage_match.c.

scColosseumSatrageMatchHopWestFromPost

static void scColosseumSatrageMatchHopWestFromPost(void)

Walking west off the top of the stone post just west of the sprout at the foot of The Wall, metatile (31, 16), Isaac hops across to the next post west.

References fdTryJumpForward().

Referenced by ColosseumSatrageMatchCues.

Definition at line 534 of file colosseum_satrage_match.c.

scColosseumSatrageMatchMoveRidingLog

static void scColosseumSatrageMatchMoveRidingLog(Sint32 logId, Sint32 offsetX, Sint32 offsetZ)

Rolls one of the Log-Rolling Stage's logs across the water by the offset, with Isaac on top walking backwards as it turns under him, and stops both in the middle of their metatiles.

References fdActorGet(), fdActorSelectAnimation(), fdActorWaitForMove(), fdScriptEnd(), fdScriptStart(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), Sint32 and sySoundPlay().

Referenced by scColosseumSatrageMatchRideLog().

Definition at line 542 of file colosseum_satrage_match.c.

scColosseumSatrageMatchRideLog

static void scColosseumSatrageMatchRideLog(void)

Standing on one of the Log-Rolling Stage's two logs and holding Left or Right rolls it four metatiles across the pool with Isaac on top, towards the far bank: west from its east end, east from its west end.

References fdActorGet(), fdMapGridCopyMetatileAttributes(), MainRoutineStateWork, PerData, scColosseumSatrageMatchMoveRidingLog() and Sint32.

Referenced by ColosseumSatrageMatchCues.

Definition at line 593 of file colosseum_satrage_match.c.

scColosseumSatrageMatchRollLogToMetatile

static void scColosseumSatrageMatchRollLogToMetatile(Sint32 logId, Sint32 halfMetatileX, Sint32 halfMetatileZ)

Isaac leans on one of the Board Walk's logs and it rolls to a place given in half metatiles, with Isaac walking after it half the way.

References ColosseumSatrageMatchRollLogAnimations, fdActorGet(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorStartCamera(), fdActorWaitForMove(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), Sint32, syHeapSlotAllocateEWRAM() and sySoundPlay().

Referenced by scColosseumSatrageMatchRollEastLogEast(), scColosseumSatrageMatchRollEastLogWest(), scColosseumSatrageMatchRollWestLogEast(), scColosseumSatrageMatchRollWestLogWest(), scColosseumSatrageMatchUnusedRollCenterLogNorth() and scColosseumSatrageMatchUnusedRollCenterLogSouth().

Definition at line 635 of file colosseum_satrage_match.c.

scColosseumSatrageMatchUpdateRollingLogCollision

static void scColosseumSatrageMatchUpdateRollingLogCollision(void)

Walls off the metatiles under the Board Walk's logs where they now lie, after putting back the stage's metatiles as the map had them.

References fdActorGet(), fdMapGridCopyMetatileAttributes() and Sint32.

Referenced by scColosseumSatrageMatchRollEastLogEast(), scColosseumSatrageMatchRollEastLogWest(), scColosseumSatrageMatchRollWestLogEast(), scColosseumSatrageMatchRollWestLogWest(), scColosseumSatrageMatchUnusedRollCenterLogNorth(), scColosseumSatrageMatchUnusedRollCenterLogSouth() and scInit().

Definition at line 693 of file colosseum_satrage_match.c.

scColosseumSatrageMatchRollWestLogWest

static void scColosseumSatrageMatchRollWestLogWest(void)

Walking west into the Board Walk's western log, from beside it at metatile (17, 11) or (17, 14), rolls it two metatiles west.

References scColosseumSatrageMatchRollLogToMetatile() and scColosseumSatrageMatchUpdateRollingLogCollision().

Referenced by ColosseumSatrageMatchCues.

Definition at line 711 of file colosseum_satrage_match.c.

scColosseumSatrageMatchRollWestLogEast

static void scColosseumSatrageMatchRollWestLogEast(void)

Walking east into the Board Walk's western log from column 13, once it has been rolled west, rolls it back two metatiles east.

References scColosseumSatrageMatchRollLogToMetatile() and scColosseumSatrageMatchUpdateRollingLogCollision().

Referenced by ColosseumSatrageMatchCues.

Definition at line 719 of file colosseum_satrage_match.c.

scColosseumSatrageMatchRollEastLogWest

static void scColosseumSatrageMatchRollEastLogWest(void)

Walking west into the Board Walk's eastern log, from beside it in column 25, rolls it two metatiles west, as the attendant shows on the tour.

References scColosseumSatrageMatchRollLogToMetatile() and scColosseumSatrageMatchUpdateRollingLogCollision().

Referenced by ColosseumSatrageMatchCues.

Definition at line 727 of file colosseum_satrage_match.c.

scColosseumSatrageMatchRollEastLogEast

static void scColosseumSatrageMatchRollEastLogEast(void)

Walking east into the Board Walk's eastern log from column 21, once it has been rolled west, rolls it back two metatiles east.

References scColosseumSatrageMatchRollLogToMetatile() and scColosseumSatrageMatchUpdateRollingLogCollision().

Referenced by ColosseumSatrageMatchCues.

Definition at line 735 of file colosseum_satrage_match.c.

scColosseumSatrageMatchUnusedRollCenterLogNorth

static UNUSED void scColosseumSatrageMatchUnusedRollCenterLogNorth(void)

Unused: no cue row calls it.

It would have rolled ACTOR_ROLLING_LOG_CENTER, placed at (0, 0) and never moved to the Board Walk, to a target 16 pixels north of its South twin's. The western and eastern logs roll west and east the same way (scColosseumSatrageMatchRollWestLogWest and the rest).

References scColosseumSatrageMatchRollLogToMetatile() and scColosseumSatrageMatchUpdateRollingLogCollision().

Definition at line 747 of file colosseum_satrage_match.c.

scColosseumSatrageMatchUnusedRollCenterLogSouth

static UNUSED void scColosseumSatrageMatchUnusedRollCenterLogSouth(void)

Unused: as scColosseumSatrageMatchUnusedRollCenterLogNorth, rolling ACTOR_ROLLING_LOG_CENTER, which is not on the Board Walk, to the target 16 pixels south of that one's.

References scColosseumSatrageMatchRollLogToMetatile() and scColosseumSatrageMatchUpdateRollingLogCollision().

Definition at line 756 of file colosseum_satrage_match.c.

scColosseumSatrageMatchUpdateLifts

static void scColosseumSatrageMatchUpdateLifts(void)

Each tick while the shifting floor runs, carries Isaac north or south with the lift he stands on, swaps the lifts between a line across the channel and their broken pattern every LIFT_CYCLE_TICKS, and makes their metatiles squares to hop onto only while they stand in line.

References ColosseumSatrageMatchLiftsApart, ColosseumSatrageMatchLiftTimer, fdActorGet(), fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), gmFlagGet(), MainRoutineStateWork and Sint32.

Referenced by scColosseumSatrageMatchHaltLifts(), scColosseumSatrageMatchResetLifts(), scColosseumSatrageMatchStartLifts() and scInit().

Definition at line 766 of file colosseum_satrage_match.c.

scColosseumSatrageMatchResetLifts

static void scColosseumSatrageMatchResetLifts(void)

Stops the shifting floor and lines its four lifts up across the channel, for the attendant's demonstration.

References ColosseumSatrageMatchLiftsApart, ColosseumSatrageMatchLiftTimer, fdActorSetAnimation(), scColosseumSatrageMatchUpdateLifts() and syCloseEvent().

Referenced by scColosseumSatrageMatchTalkToShiftingFloorAttendant().

Definition at line 893 of file colosseum_satrage_match.c.

scColosseumSatrageMatchStartLifts

static void scColosseumSatrageMatchStartLifts(void)

Starts the shifting floor's lifts moving again.

References gmFlagClear(), scColosseumSatrageMatchUpdateLifts() and sySetTickEvent().

Referenced by scColosseumSatrageMatchTalkToShiftingFloorAttendant().

Definition at line 907 of file colosseum_satrage_match.c.

scColosseumSatrageMatchWaitForLiftsLinedUp

static void scColosseumSatrageMatchWaitForLiftsLinedUp(void)

Waits, for up to ten seconds, until the four lifts stand lined up across the water, for the demonstration to jump onto them.

References ColosseumSatrageMatchLiftsApart, ColosseumSatrageMatchLiftTimer, Sint32 and sySynch().

Referenced by scColosseumSatrageMatchTalkToShiftingFloorAttendant().

Definition at line 915 of file colosseum_satrage_match.c.

scColosseumSatrageMatchHaltLifts

static void scColosseumSatrageMatchHaltLifts(void)

Halt on the young man who works the shifting floor's lifts freezes him, and the lifts stop in a line across the channel for Isaac to hop over (FLAG_LIFTS_HALTED).

References ColosseumSatrageMatchLiftsApart, ColosseumSatrageMatchLiftTimer, fdMapGridCopyMetatileAttributes(), fdPsynergyHaltActor(), gmFlagSet(), scColosseumSatrageMatchUpdateLifts(), syCloseEvent() and sySynch().

Referenced by ColosseumSatrageMatchCues.

Definition at line 937 of file colosseum_satrage_match.c.

scGetCues

const CUE *scGetCues(void)

References ColosseumSatrageMatchCues.

Definition at line 969 of file colosseum_satrage_match.c.

scColosseumSatrageMatchTalkToMiniMazeAttendant

static void scColosseumSatrageMatchTalkToMiniMazeAttendant(Sint32 attendant)

The Mini-Maze's attendant explains stage 1 of Colosseum Final 2.

References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdCameraFollowActor(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scColossoAskDoneCheering(), scColossoFadeInWarrior(), scColossoGreetAtStage(), scColossoOfferCheeringSpot(), scColossoRepeatStageNumber(), scColossoRestoreWarrior(), scColossoWalkActorToAndStand() and Sint32.

Referenced by ColosseumSatrageMatchCues.

Definition at line 1227 of file colosseum_satrage_match.c.

scColosseumSatrageMatchTalkToShiftingFloorAttendant

static void scColosseumSatrageMatchTalkToShiftingFloorAttendant(Sint32 attendant)

The shifting floor stage's attendant explains stage 2 of Colosseum Final 2.

References fdCameraFollowActor(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), fdTryJumpForward(), MainRoutineStateWork, scColosseumSatrageMatchResetLifts(), scColosseumSatrageMatchStartLifts(), scColosseumSatrageMatchWaitForLiftsLinedUp(), scColossoAskDoneCheering(), scColossoFadeInWarrior(), scColossoGreetAtStage(), scColossoOfferCheeringSpot(), scColossoRepeatStageNumber(), scColossoRestoreWarrior(), scColossoWalkActorToAndStand() and Sint32.

Referenced by ColosseumSatrageMatchCues.

Definition at line 1283 of file colosseum_satrage_match.c.

scColosseumSatrageMatchTalkToLogRollingAttendant

static void scColosseumSatrageMatchTalkToLogRollingAttendant(Sint32 attendant)

The Log-Rolling Stage's attendant explains stage 3 of Colosseum Final 2.

References fdActorFaceDirection(), fdActorSetAnimation(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scColossoAskDoneCheering(), scColossoFadeInWarrior(), scColossoGreetAtStage(), scColossoOfferCheeringSpot(), scColossoRepeatStageNumber(), scColossoRestoreWarrior(), scColossoWalkActorToAndStand() and Sint32.

Referenced by ColosseumSatrageMatchCues.

Definition at line 1338 of file colosseum_satrage_match.c.

scColosseumSatrageMatchTalkToWallAttendant

static void scColosseumSatrageMatchTalkToWallAttendant(Sint32 attendant)

The Wall's attendant explains stage 4 of Colosseum Final 2.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdClimbUp(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scColossoAskDoneCheering(), scColossoFadeInWarrior(), scColossoGreetAtStage(), scColossoOfferCheeringSpot(), scColossoRepeatStageNumber(), scColossoRestoreWarrior(), scColossoWalkActorToAndStand(), scFieldActorJumpDownLedge(), scFieldActorSetMoveTargetFX() and Sint32.

Referenced by ColosseumSatrageMatchCues.

Definition at line 1401 of file colosseum_satrage_match.c.

scColosseumSatrageMatchDemonstrateLogPush

static void scColosseumSatrageMatchDemonstrateLogPush(Sint32 logId, Sint32 x, Sint32 z)

In the Board Walk attendant's demonstration, Isaac leans on a log and it rolls west to (x, z) in pixels, with Isaac walking after it half the way.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorWaitForMove(), fdScriptWait(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), Sint32 and sySoundPlay().

Referenced by scColosseumSatrageMatchTalkToBoardWalkAttendant().

Definition at line 1468 of file colosseum_satrage_match.c.

scColosseumSatrageMatchTalkToBoardWalkAttendant

static void scColosseumSatrageMatchTalkToBoardWalkAttendant(Sint32 attendant)

The Board Walk's attendant explains stage 5 of Colosseum Final 2.

References fdActorFaceDirection(), fdActorShowEmote(), fdCameraFollowActor(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scColosseumSatrageMatchDemonstrateLogPush(), scColossoAskDoneCheering(), scColossoFadeInWarrior(), scColossoGreetAtStage(), scColossoOfferCheeringSpot(), scColossoRepeatStageNumber(), scColossoRestoreWarrior(), scColossoWalkActorToAndStand() and Sint32.

Referenced by ColosseumSatrageMatchCues.

Definition at line 1518 of file colosseum_satrage_match.c.

Variables in detail

ColosseumSatrageMatchRollLogAnimations

extern const Uint8 ColosseumSatrageMatchRollLogAnimations[]

const Uint8 ColosseumSatrageMatchRollLogAnimations[]

A Board Walk log's roll for each quarter turn of the way Isaac pushes it, from east: east or south, it rolls east; west or north, west.

Referenced by scColosseumSatrageMatchRollLogToMetatile().

Definition at lines 130 and 1686 of file colosseum_satrage_match.c.

ColosseumSatrageMatchEntrances

extern SCENE_ENTRANCE ColosseumSatrageMatchEntrances[]

SCENE_ENTRANCE ColosseumSatrageMatchEntrances[]

Referenced by scGetEntrances().

Definition at lines 131 and 1702 of file colosseum_satrage_match.c.

ColosseumSatrageMatchExits

extern Uint32 ColosseumSatrageMatchExits[]

Uint32 ColosseumSatrageMatchExits[]

Referenced by scGetExits().

Definition at lines 132 and 1712 of file colosseum_satrage_match.c.

ColosseumSatrageMatchActorPlacements

extern ACTOR_PLACE ColosseumSatrageMatchActorPlacements[]

ACTOR_PLACE ColosseumSatrageMatchActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 133 and 1729 of file colosseum_satrage_match.c.

ColosseumSatrageMatchLiftsApart

extern Sint32 ColosseumSatrageMatchLiftsApart

Sint32 ColosseumSatrageMatchLiftsApart

Set while the lifts stand in their broken pattern rather than in a line.

References Sint32.

Referenced by scColosseumSatrageMatchHaltLifts(), scColosseumSatrageMatchResetLifts(), scColosseumSatrageMatchUpdateLifts() and scColosseumSatrageMatchWaitForLiftsLinedUp().

Definition at lines 134 and 1810 of file colosseum_satrage_match.c.

ColosseumSatrageMatchLiftTimer

extern Uint32 ColosseumSatrageMatchLiftTimer

Uint32 ColosseumSatrageMatchLiftTimer

The ticks into the lifts' cycle (LIFT_CYCLE_TICKS).

Referenced by scColosseumSatrageMatchHaltLifts(), scColosseumSatrageMatchResetLifts(), scColosseumSatrageMatchUpdateLifts() and scColosseumSatrageMatchWaitForLiftsLinedUp().

Definition at lines 135 and 1813 of file colosseum_satrage_match.c.

ColosseumSatrageMatchCues

extern CUE ColosseumSatrageMatchCues[]

CUE ColosseumSatrageMatchCues[]

References scColosseumSatrageMatchFreezeEastPuddle(), scColosseumSatrageMatchFreezeWestPuddle(), scColosseumSatrageMatchGrowPlant(), scColosseumSatrageMatchHaltLifts(), scColosseumSatrageMatchHopWestFromPost(), scColosseumSatrageMatchIgnoreMove(), scColosseumSatrageMatchJumpDownFromPost(), scColosseumSatrageMatchKeepLogStillForForce(), scColosseumSatrageMatchKnockDownLog(), scColosseumSatrageMatchMoveMiniMazePillar(), scColosseumSatrageMatchMoveWallPillar(), scColosseumSatrageMatchPushBoardWalkPillar(), scColosseumSatrageMatchPushWallPillar(), scColosseumSatrageMatchRideLog(), scColosseumSatrageMatchRollEastLogEast(), scColosseumSatrageMatchRollEastLogWest(), scColosseumSatrageMatchRollWestLogEast(), scColosseumSatrageMatchRollWestLogWest(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scColosseumSatrageMatchTalkToShiftingFloorAttendant(), scColosseumSatrageMatchTalkToWallAttendant(), scColossoAskDoneLookingAround(), scColossoReachArena() and scColossoTakePlaceForMatch().

Referenced by scGetCues().

Definition at lines 136 and 1815 of file colosseum_satrage_match.c.

HexDigits

extern char HexDigits[20]

char HexDigits[20]

Referenced by scStringWriteU32AsHex().

Definition at lines 137 and 1696 of file colosseum_satrage_match.c.

ColossoLetteringSlot

Sint16 ColossoLetteringSlot

Referenced by scColossoLoadLettering() and scColossoUpdateLettering().

Definition at line 1935 of file colosseum_satrage_match.c.

ColossoPointerSlot

Sint16 ColossoPointerSlot

Referenced by scColossoHidePointer(), scColossoLoadPointer() and scColossoUpdatePointer().

Definition at line 1940 of file colosseum_satrage_match.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailPLATFORM_ANIMATION_AT_WATERLINELIFT_CYCLE_TICKSLIFT_LINED_UP_TICKDEMONSTRATION_TIMEOUT_TICKSRIDING_LOG_TRAVEL_PIXELSRIDING_LOG_NORTH_ROWRIDING_LOG_SOUTH_ROWFALL_SPIN_ACCELERATIONSETTLE_SPIN_STARTWALL_PILLAR_MOVED_COLUMNCOLOSSEUM_SATRAGE_MATCH_SHOW_MESSAGECOLOSSEUM_SATRAGE_MATCH_MOVE_RIDING_LOGCOLOSSO_BETTER_PRIZECOLOSSO_OTHER_PRIZECOLOSSO_ARENA_XCOLOSSO_ARENA_ZCOLOSSO_OPPONENT_SIDECOLOSSO_SCENECOLOSSO_AFTER_MATCH_WONCOLOSSO_AFTER_MATCH_LOSTFLAG_COLOSSEUM_SATRAGE_MATCH_BOARD_WALK_NUT_CHEST_OPENEDFLAG_COLOSSEUM_SATRAGE_MATCH_SMOKE_BOMB_CHEST_OPENEDFLAG_COLOSSEUM_SATRAGE_MATCH_SHIFTING_FLOOR_NUT_CHEST_OPENEDEnumerations in detailanonymous enumanonymous enumCOLOSSEUM_SATRAGE_MATCH_STAGEanonymous enumCOLOSSEUM_SATRAGE_MATCH_ACTOR_IDanonymous enumFALLING_LOG_ANIMATIONLIFT_OPERATOR_ANIMATIONCOLOSSEUM_SATRAGE_MATCH_METATILE_BEHAVIORanonymous enumFunctions in detailscInitscColosseumSatrageMatchStartRaceGaugescColosseumSatrageMatchIntroduceSecondFinalsscColosseumSatrageMatchStartOpponentPathscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscColosseumSatrageMatchIgnoreMovescColosseumSatrageMatchPushBoardWalkPillarscColosseumSatrageMatchMoveWallPillarscColosseumSatrageMatchPushWallPillarscColosseumSatrageMatchMoveMiniMazePillarscColosseumSatrageMatchKeepLogStillForForcescColosseumSatrageMatchKnockDownLogscColosseumSatrageMatchFreezeWestPuddlescColosseumSatrageMatchFreezeEastPuddlescColosseumSatrageMatchGrowPlantscColosseumSatrageMatchJumpDownFromPostscColosseumSatrageMatchHopWestFromPostscColosseumSatrageMatchMoveRidingLogscColosseumSatrageMatchRideLogscColosseumSatrageMatchRollLogToMetatilescColosseumSatrageMatchUpdateRollingLogCollisionscColosseumSatrageMatchRollWestLogWestscColosseumSatrageMatchRollWestLogEastscColosseumSatrageMatchRollEastLogWestscColosseumSatrageMatchRollEastLogEastscColosseumSatrageMatchUnusedRollCenterLogNorthscColosseumSatrageMatchUnusedRollCenterLogSouthscColosseumSatrageMatchUpdateLiftsscColosseumSatrageMatchResetLiftsscColosseumSatrageMatchStartLiftsscColosseumSatrageMatchWaitForLiftsLinedUpscColosseumSatrageMatchHaltLiftsscGetCuesscColosseumSatrageMatchTalkToMiniMazeAttendantscColosseumSatrageMatchTalkToShiftingFloorAttendantscColosseumSatrageMatchTalkToLogRollingAttendantscColosseumSatrageMatchTalkToWallAttendantscColosseumSatrageMatchDemonstrateLogPushscColosseumSatrageMatchTalkToBoardWalkAttendantVariables in detailColosseumSatrageMatchRollLogAnimationsColosseumSatrageMatchEntrancesColosseumSatrageMatchExitsColosseumSatrageMatchActorPlacementsColosseumSatrageMatchLiftsApartColosseumSatrageMatchLiftTimerColosseumSatrageMatchCuesHexDigitsColossoLetteringSlotColossoPointerSlot