Function SetTile

From Uzebox Wiki
Jump to: navigation, search
Prototype

void SetTile(char x,char y, unsigned int tileId);

Description

Draws a tile in vram at the specified location. You need to first set the tile set to use with SetTileTable().

Parameters
  • x,y: Location on screen to draw the tile.
  • tileId: Tile index relative to beginning of tile table.
Returns

Void

Video Modes

All

Since

V1

Example:

#include "data/mytiles.inc";
...
SetTileTable(mytiles);
ClearVram();
SetTile(10,10,1);