![]() |
Sprite16 | Function (tigcc.a) |
sprites.h |
void Sprite16 (short x, short y, short height, const unsigned short *sprite, void *vm_addr, short mode); |
Draws a sprite with a width of 16 pixels or less on the screen.
Sprite16 works exactly like Sprite8, but it takes sprites with a width of 16 pixels. sprite is now a pointer to the array of unsigned short integers which defines the sprite. So, to define a sprite (or sprite mask), use something like
static const unsigned short sprite[] = {...};See Sprite8 for more info about sprites.