Function SetSpritesTileTable

From Uzebox Wiki
Jump to: navigation, search
Prototype

void SetSpritesTileTable(const char *data);

Description

For video modes that supports sprites, defines the tile set to use for rendering sprites.

Parameters
  • data: Pointer to the tile set used as sprites. Must be in PROGMEM.
Returns

Void

Video Modes

2,3

Since

V2

Notes

use the newer SetSpritesTileTableBank() for mode 3

Example:

#include "data/mysprites.inc"
...
SetSpritesTileTable(mysprites);
sprites[0].tileIndex=10; //the 10th tile in mysprites
sprites[0].x=100;
sprites[0].y=50;