SecondBASIC Documentation v3

Home / Command Reference / DrawTile

DrawTile

Description: Draws a tile to the background plane at the specified x and y coordinates. One location unit is equal to an 8x8 pixel cell. Location 0,0 is the top left corner of the visible display and 39,0 is the top right corner of the visible display in the default position.

Syntax:

DrawTile <Address>, <X>, <Y>

Part Description
<Address> Required. This is the location in VRAM where the tile resides. Typical VRAM values are 0-1344. You can use other addresses, but it's not recommended as those locations may get overwritten by other data such as the sprite table or plane data.
<X> Required. The x-coordinate to draw the tile.
<Y> Required. The y-coordinate to draw the tile.

Example:

    DrawTile 1,0,0