Alchemy
Loading...
Searching...
No Matches

colosso_path_rival.h File Reference

Go to the source code of this file.

Data Structures

struct  PathWork
 The race's work: the gauge (struct ColossoGaugeWork) and then the path, in pixels, as pairs of x and z, one pair a frame, ending with (0, 0). More...

Functions

static void Colosso_UpdatePathRival (void)
 The rival's scene callback.
static void Colosso_DrawGauge (void)
 The race gauge's scene callback: a bar across the top of the screen, with the finish at its centre and blinking marks for the rival and Isaac at their distances from it (a pixel of bar for 14 of course).

Variables

u8 gColosso_GaugeGraphics []

Function Documentation

◆ Colosso_UpdatePathRival()

void Colosso_UpdatePathRival ( void )
static

The rival's scene callback.

Mode 1 plays the path back: each frame the rival steps to the next point (mirrored across the finish when asked), turning by at most a sixteenth of a turn, and stands once still for three frames. At the path's end the rival walks to the finish, beside the first finisher's item actor or the second's, and sets FLAG_SCENE_TEMP_11 (a racer has finished). Mode 2 records the actor's own path instead, up to 0x383e halfwords, then plays it back with the rival.

Definition at line 45 of file colosso_path_rival.h.

◆ Colosso_DrawGauge()

void Colosso_DrawGauge ( void )
static

The race gauge's scene callback: a bar across the top of the screen, with the finish at its centre and blinking marks for the rival and Isaac at their distances from it (a pixel of bar for 14 of course).

It slides down when the race starts and back up while flag 0x106 is set; hold keeps it down.

Definition at line 132 of file colosso_path_rival.h.

Variable Documentation

◆ gColosso_GaugeGraphics

u8 gColosso_GaugeGraphics[]
extern