Skip to Content
The Alchemy Project

src/scene/shared/position_distance_above.c

Included by airs_rock.c and airs_rock_inside.c.

Functions

NameDescription
Sint32scPosDistanceAbove (FIXED *a, FIXED *b)The distance in whole pixels between two positions in x and height, the first raised 6 pixels, each given by its x and read on through its y.

Functions in detail

scPosDistanceAbove

Sint32 scPosDistanceAbove(FIXED *a, FIXED *b)

The distance in whole pixels between two positions in x and height, the first raised 6 pixels, each given by its x and read on through its y. UB: an actor's x, y and z are separate members, read here as an array.

References Sint32 and sySquartIWRAM().

Referenced by scAirsRockInsideMovePooledWhirlwind(), scAirsRockInsideMoveWhirlwind() and scAirsRockMoveWhirlwind().

Definition at line 4 of file position_distance_above.c.