SecondBASIC Documentation v3

Home / Command Reference / DrawTilesInc

DrawTilesInc

Description: Draws one or more tiles on the screen at location <x>, <y> that is <width>, <height> in size. One unit of <x>, <y> and <width>, <height> is equal to one 8x8 tile. Tiles are drawn in order starting at the <Address> defined and incrementing by 1 for each tile to be drawn. Tiles are drawn horizontally first, then vertically.

Syntax:

DrawTilesInc <Address>, <X>, <Y>, <Width>, <Height>

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.
<Width> Required. The width of the pattern to be drawn.
<Height> Required. The height of the pattern to be drawn.

Example:

    DrawTilesInc 65,0,0,1,26