Macaw OS C reference

Function sprex

#include <macaw.h>
void sprex(int n, int x, int y, int w, int h, int flipx, int flipy);

Draws a block of sprites together, flipped if you like. A 2 x 2 block is a 32 x 32 sprite made of four.

Parameters

nint
The number of the block's top-left sprite, from 0 to 255.
xint
How far its left edge goes from the window's left edge, in pixels.
yint
How far its top edge goes from the window's top, in pixels.
wint
How many sprites across the block is. Below 1 counts as 1.
hint
How many sprites down the block is. Below 1 counts as 1.
flipxint
1 to mirror it left to right, 0 not to.
flipyint
1 to turn it upside down, 0 not to.

In Sprites and the map, with spr, sspr, fget, fset, map, mget, mset, mapwidth, mapheight, maplayers, maplayername.