Skip to Content
The Alchemy Project

struct COLOSSO_GAUGE_STATE

The Colosso race gauge's state at the start of the race's heap slot (HEAP_SLOT_COLOSSO_RACE): its sprites, how far it has slid down, the racers and the finish.

Declared in colosso_gauge.h.

Fields

NameDescription
COLOSSO_GAUGE_SPRsprites [18]The bar, its ends and the racers' marks: 2 * segments + 6 sprites, all 18 for Colosseum Final 3's six segments.
Sint16vramBlockThe VRAM cache entry holding the gauge's tiles: released while the gauge is hidden, and loaded again when it slides back down.
Sint16level0 hidden to 2 fully down, stepping up while FLAG_MENU_OPEN is clear and down while it is set; the bar's y is level * 6 - 8.
Sint16holdNonzero keeps the gauge down (level 2); only the unused scColossoSetGaugeHold sets it.
Sint16playerActorIdThe actor id drawn as the player's marker.
Sint16opponentActorIdThe actor id drawn as the opponent's marker, and the actor that runs the recorded path.
Uint16finishItemActorIdAThe first finisher's prize: the actor raised over that finisher, who stops at finishZ minus 16 pixels.
Uint16finishItemActorIdBThe second finisher's prize; that finisher stops at finishZ plus 16 pixels.
Sint16segments16-pixel bar pieces either side of the centre: 6 in Colosseum Final 3, 4 in Final 1 and 5 in Final 2.
FIXEDfinishX16.16 fixed-point pixels: the opponent starts opposite Isaac across it and runs its path mirrored across it.
FIXEDfinishZ16.16 fixed-point pixels.

Description

The Colosso race gauge's state at the start of the race's heap slot (HEAP_SLOT_COLOSSO_RACE): its sprites, how far it has slid down, the racers and the finish.

struct COLOSSO_GAUGE_STATE

Referenced by scColossoDrawGauge(), scColossoSetGaugeHold() and scColossoTakePrize().

Definition at line 23 of file colosso_gauge.h.

Fields in detail

sprites

COLOSSO_GAUGE_SPR sprites[18]

The bar, its ends and the racers' marks: 2 * segments + 6 sprites, all 18 for Colosseum Final 3's six segments.

vramBlock

Sint16 vramBlock

The VRAM cache entry holding the gauge's tiles: released while the gauge is hidden, and loaded again when it slides back down.

level

Sint16 level

0 hidden to 2 fully down, stepping up while FLAG_MENU_OPEN is clear and down while it is set; the bar's y is level * 6 - 8.

hold

Sint16 hold

Nonzero keeps the gauge down (level 2); only the unused scColossoSetGaugeHold sets it.

playerActorId

Sint16 playerActorId

The actor id drawn as the player's marker.

opponentActorId

Sint16 opponentActorId

The actor id drawn as the opponent's marker, and the actor that runs the recorded path.

finishItemActorIdA

Uint16 finishItemActorIdA

The first finisher's prize: the actor raised over that finisher, who stops at finishZ minus 16 pixels.

finishItemActorIdB

Uint16 finishItemActorIdB

The second finisher's prize; that finisher stops at finishZ plus 16 pixels.

segments

Sint16 segments

16-pixel bar pieces either side of the centre: 6 in Colosseum Final 3, 4 in Final 1 and 5 in Final 2.

finishX

FIXED finishX

16.16 fixed-point pixels: the opponent starts opposite Isaac across it and runs its path mirrored across it.

finishZ

FIXED finishZ

16.16 fixed-point pixels.