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…
#include "ability_ids.h"#include "item_ids.h"#include "macros.h"#include "resource_ids.h"#include "debug/debug.h"#include "field/actor_script.h"#include "field/script_inline.h"#include "field/field_psynergy_state.h"#include "scene/pushed_actor.h"#include "graphics/graphics.h"#include "scene/colosso_gauge.h"#include "scene/colosso_guide.h"#include "scene/colosso_lettering.h"#include "scene/colosso_setup.h"#include "scene/colosso_solo.h"#include "sound/sound_driver_symbols.h"#include "text/msg_ids.h"#include "shared/colosso_state.c"#include "shared/colosso_tour.c"#include "shared/colosso_arena.c"#include "shared/colosso_match_result.c"#include "shared/colosso_solo.c"#include "shared/item_equip.c"#include "shared/colosso_task.c"#include "shared/colosso_lettering.c"#include "shared/colosso_guide.c"#include "shared/colosso_item_icon.c"#include "shared/colosso_hex_string.c"#include "shared/colosso_finish.c"#include "shared/colosso_path_opponent.c"#include "shared/colosso_map_state.c"#include "shared/actor_find_at_position.c"#include "shared/colosso_push.c"#include "shared/colosso_lettering_tables.c"#include "shared/colosso_prize_scripts.c"#include "shared/pushed_actor_direction_steps.c"#include "shared/colosso_lettering_scripts.c"#include "shared/colosso_finish_scripts.c"
Macros
| Name | Description | |
|---|---|---|
#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. |
#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. |
#define | LIFT_LINED_UP_TICK 75 | |
#define | DEMONSTRATION_TIMEOUT_TICKS 600 | |
#define | RIDING_LOG_TRAVEL_PIXELS 64 | |
#define | RIDING_LOG_NORTH_ROW 10 | The map grid rows the two riding logs lie across, from their first row. |
#define | RIDING_LOG_SOUTH_ROW 13 | |
#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. |
#define | SETTLE_SPIN_START 360 | |
#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). |
#define | COLOSSEUM_SATRAGE_MATCH_SHOW_MESSAGE fdScriptShowMessageAndWait | |
#define | COLOSSEUM_SATRAGE_MATCH_MOVE_RIDING_LOG | |
#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. |
#define | COLOSSO_OTHER_PRIZE ITEM_COTTON_SHIRT | |
#define | COLOSSO_ARENA_X 104 | |
#define | COLOSSO_ARENA_Z 256 | |
#define | COLOSSO_OPPONENT_SIDE -1 | |
#define | COLOSSO_SCENE SCENE_COLOSSEUM_SATRAGE_MATCH | |
#define | COLOSSO_AFTER_MATCH_WON COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_WON | |
#define | COLOSSO_AFTER_MATCH_LOST COLOSSEUM_SATRAGE_MATCH_AFTER_MATCH_LOST | |
#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). |
#define | FLAG_COLOSSEUM_SATRAGE_MATCH_SMOKE_BOMB_CHEST_OPENED | |
#define | FLAG_COLOSSEUM_SATRAGE_MATCH_SHIFTING_FLOOR_NUT_CHEST_OPENED |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { FINALS_MATCH } | The match held here, as the lettering The 2nd Match reads; the friends' turns open with Lend a Hand! instead (scColossoShowOpeningLettering). |
enum | anonymous enum { COLOSSEUM_SATRAGE_MATCH_ON_BOARD_WALK } | An entrance no exit leads to, on the Board Walk just east of the tall log. |
enum | COLOSSEUM_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". |
enum | anonymous 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. |
enum | COLOSSEUM_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. |
enum | anonymous 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. |
enum | FALLING_LOG_ANIMATION { FALLING_LOG_ANIMATION_STANDING, FALLING_LOG_ANIMATION_FALLEN } | SPRITE_FALLING_LOG's animations (falling_log.tsv). |
enum | LIFT_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. |
enum | COLOSSEUM_SATRAGE_MATCH_METATILE_BEHAVIOR { METATILE_BEHAVIOR_WALL_LEDGE, METATILE_BEHAVIOR_BOARD_WALK_L … } | The metatile behaviours the stages' step cues answer. |
enum | anonymous enum { METATILE_BEHAVIOR_BOARD_WALK_NUT_CHEST, METATILE_BEHAVIOR_SM … } | The chests' metatiles, as the flags above. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | scInit (void) | Sets up Colosseum Final 2 for the visit its entrance stands for. |
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. |
static void | scColosseumSatrageMatchIntroduceSecondFinals (Sint32 guide) | The guide gives the party the tour of Colosseum Final 2 (COLOSSEUM_SATRAGE_MATCH_FROM_COLOSSEUM_WEST). |
static void | scColossoShowOpeningLettering (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 void | scColossoShowMatchResult (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 void | scColossoNoOperation (void) | Does nothing; the arena's step script calls it first. |
static void | scColossoWaitForOpponentToFinish (void) | Waits until the opponent has run his recorded path to its end. |
static Sint32 | scColossoTakePrize (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 void | scColosseumSatrageMatchStartOpponentPath (Sint32 pathResource) | Decodes Satrage's recorded path and sets him running it, as scColossoStartOpponent does for the other two matches. |
static void | scColossoPushActorAhead (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 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. |
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. |
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). |
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. |
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. |
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. |
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. |
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). |
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). |
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). |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
static UNUSED void | scColosseumSatrageMatchUnusedRollCenterLogNorth (void) | Unused: no cue row calls it. |
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. |
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. |
static void | scColosseumSatrageMatchResetLifts (void) | Stops the shifting floor and lines its four lifts up across the channel, for the attendant's demonstration. |
static void | scColosseumSatrageMatchStartLifts (void) | Starts the shifting floor's lifts moving again. |
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. |
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). |
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 void | scColosseumSatrageMatchTalkToMiniMazeAttendant (Sint32 attendant) | The Mini-Maze's attendant explains stage 1 of Colosseum Final 2. |
static void | scColosseumSatrageMatchTalkToShiftingFloorAttendant (Sint32 attendant) | The shifting floor stage's attendant explains stage 2 of Colosseum Final 2. |
static void | scColosseumSatrageMatchTalkToLogRollingAttendant (Sint32 attendant) | The Log-Rolling Stage's attendant explains stage 3 of Colosseum Final 2. |
static void | scColosseumSatrageMatchTalkToWallAttendant (Sint32 attendant) | The Wall's attendant explains stage 4 of Colosseum Final 2. |
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. |
static void | scColosseumSatrageMatchTalkToBoardWalkAttendant (Sint32 attendant) | The Board Walk's attendant explains stage 5 of Colosseum Final 2. |
Variables
| Name | Description | |
|---|---|---|
extern 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. |
extern SCENE_ENTRANCE | ColosseumSatrageMatchEntrances [] | |
extern Uint32 | ColosseumSatrageMatchExits [] | |
extern ACTOR_PLACE | ColosseumSatrageMatchActorPlacements [] | |
extern Sint32 | ColosseumSatrageMatchLiftsApart | Set while the lifts stand in their broken pattern rather than in a line. |
extern Uint32 | ColosseumSatrageMatchLiftTimer | The ticks into the lifts' cycle (LIFT_CYCLE_TICKS). |
extern CUE | ColosseumSatrageMatchCues [] | |
extern char | HexDigits [20] | |
Sint16 | ColossoLetteringSlot | The VRAM cache entry holding the lettering's tiles, -1 when none is loaded. |
Sint16 | ColossoPointerSlot | The 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.
COLOSSEUM_SATRAGE_MATCH_FROM_COLOSSEUM_WEST, the tour (scColosseumSatrageMatchIntroduceSecondFinals). The guide only greets the party, since the first finals match's guide explained the rules. The five stages' attendants describe their stages and offer a place for each friend to cheer. The guide then sends Isaac back into the Colosseum (COLOSSEUM_SATRAGE_MATCH_TO_COLOSSEUM_SOUTH).COLOSSEUM_SATRAGE_MATCH_FROM_COLOSSEUM_EAST,Lend a Hand. Garet, Ivan and Mia in turn may use Psynergy on the stages. Move shifts the Mini-Maze's stone pillars and the stone pillar at the foot of The Wall. Halt stops the lifts' operator and with him the shifting floor. Frost freezes the Log-Rolling Stage's two puddles into pillars of ice. Growth grows the sprout at the foot of The Wall into a vine. Force knocks the tall log by the Board Walk's channel over into the water. After Mia,COLOSSEUM_SATRAGE_MATCH_LEND_A_HAND_TO_RACEstarts the race.COLOSSEUM_SATRAGE_MATCH_RACE_FROM_LEND_A_HAND, the race against Satrage, who follows a recorded path, after the letteringThe 2nd Matchand a count of three. At the arena the first to arrive takes the Chain Mail and the second the Cotton Shirt. The battle isENCOUNTER_ZONE_COLOSSO's third or fourth group, the Satrage with or without the mail.
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).
| Enumerator | Value | Description |
|---|---|---|
FINALS_MATCH | 2 |
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.
| Enumerator | Value | Description |
|---|---|---|
COLOSSEUM_SATRAGE_MATCH_ON_BOARD_WALK | 10 |
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".
| Enumerator | Value | Description |
|---|---|---|
STAGE_MINI_MAZE | 1 | |
STAGE_SHIFTING_FLOOR | 2 | |
STAGE_LOG_ROLLING | 3 | |
STAGE_WALL | 4 | |
STAGE_BOARD_WALK | 5 | |
STAGE_COUNT | 5 |
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.
| Enumerator | Value | Description |
|---|---|---|
BOARD_WALK_STORE_COLUMN | 100 | |
LOG_ROLLING_STORE_COLUMN | 120 |
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.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_OPPONENT | ACTOR_FIRST_PLACED | Satrage, racing Isaac to the arena. |
ACTOR_BOARD_WALK_WEST_PILLAR | The Board Walk's two stone pillars, | |
ACTOR_BOARD_WALK_EAST_PILLAR | on 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_PILLAR | The stone pillar on the ledge at the foot of The Wall, beside the chest holding a Smoke Bomb. | |
ACTOR_MINI_MAZE_FIRST_PILLAR | The 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_WEST | ACTOR_MINI_MAZE_FIRST_PILLAR + 3 | The 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_TARGET | What 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_PLANT | The sprout at the foot of The Wall, which Growth grows into a vine. | |
ACTOR_PUDDLE_WEST | The Log-Rolling Stage's two puddles, | |
ACTOR_PUDDLE_EAST | which Frost freezes. They are drawn as the puddle Frost freezes in Lunpa (sprite_ids.h's SPRITE_PUDDLE). | |
ACTOR_FIRST_LIFT | The shifting floor stage's four lifts, | |
ACTOR_LAST_LIFT | ACTOR_FIRST_LIFT + 3 | from west to east, which the lifts' operator runs. |
ACTOR_BOARD_WALK_FIRST_PLATFORM | Four platforms in the lifts' sprite laid | |
ACTOR_FALLING_LOG | ACTOR_BOARD_WALK_FIRST_PLATFORM + 4 | across 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_OPERATOR | A young man with fair hair who works the shifting floor stage's lifts. | |
ACTOR_RIDING_LOG_NORTH | The Log-Rolling Stage's two logs. | |
ACTOR_RIDING_LOG_SOUTH | ||
ACTOR_GUIDE | A soldier who greets the party at the second finals match. | |
ACTOR_MINI_MAZE_ATTENDANT | The 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_A | The arena's prizes, drawn as item icons at two blank | |
ACTOR_PRIZE_B | actors (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.
| Enumerator | Value | Description |
|---|---|---|
FLAG_LOG_KNOCKED_DOWN | FLAG_AREA_TEMP(0x30) | By Force, on the Board Walk. |
FLAG_WEST_PUDDLE_FROZEN | FLAG_AREA_TEMP(0x31) | By Frost. |
FLAG_EAST_PUDDLE_FROZEN | FLAG_AREA_TEMP(0x32) | By Frost. |
FLAG_PLANT_GROWN | FLAG_AREA_TEMP(0x33) | By Growth, up The Wall. |
FLAG_LIFTS_HALTED | FLAG_AREA_TEMP(0x34) | By Halt on ACTOR_LIFT_OPERATOR. |
FLAG_WALL_PILLAR_MOVED | FLAG_AREA_TEMP(0x35) | The stone pillar at the foot of The Wall stands a metatile east of the chest. |
FLAG_MINI_MAZE_FIRST_PILLAR_COLUMN | FLAG_AREA_TEMP(0x40) | The bytes of flags that keep the Mini-Maze's three pillars' columns. |
FLAG_MINI_MAZE_SECOND_PILLAR_COLUMN | FLAG_AREA_TEMP(0x48) | |
FLAG_MINI_MAZE_THIRD_PILLAR_COLUMN | FLAG_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).
| Enumerator | Value | Description |
|---|---|---|
FALLING_LOG_ANIMATION_STANDING | 3 | standing on end |
FALLING_LOG_ANIMATION_FALLEN | 4 | lying 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.
| Enumerator | Value | Description |
|---|---|---|
LIFT_OPERATOR_ANIMATION_LIFTS_LINED_UP | 10 | |
LIFT_OPERATOR_ANIMATION_LIFTS_APART | 11 |
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.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_WALL_LEDGE | 20 | The ledge at the foot of The Wall, metatile (37, 16), a metatile east of where Move leaves the stone pillar. |
METATILE_BEHAVIOR_BOARD_WALK_LEDGE | 21 | The 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_LOG | 22 | Under the Log-Rolling Stage's logs, three metatiles each, moved with them. |
METATILE_BEHAVIOR_WEST_LOG_EAST_SIDE | 24 | Beside the Board Walk's |
METATILE_BEHAVIOR_WEST_LOG_WEST_SIDE | 25 | western 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_UNUSED | 26 | A second ledge metatile for the stone pillar at The Wall. No metatile of the map holds it. |
METATILE_BEHAVIOR_EAST_LOG_WEST_SIDE | 27 | Beside the Board Walk's |
METATILE_BEHAVIOR_EAST_LOG_EAST_SIDE | 28 | eastern log: west of it once rolled, in column 21, and east of it where it starts, in column 25. |
METATILE_BEHAVIOR_WALL_POST | 30 | The top of the stone post at the foot of The Wall just west of the sprout, metatile (31, 16). |
METATILE_BEHAVIOR_ARENA | 50 | The 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.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_BOARD_WALK_NUT_CHEST | 101 | |
METATILE_BEHAVIOR_SMOKE_BOMB_CHEST | 102 | |
METATILE_BEHAVIOR_SHIFTING_FLOOR_NUT_CHEST | 104 |
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.