DrawTiles
Previous  Next

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.

     Syntax:

DrawTiles <Label>, <Address>, <X>, <Y>, <Width>, <Height> [, <LabelOffset>]

Part
Description
<Label>
Required. The label where the tile map is located. The map must be in byte format using the Data command.
<Address>
Required. This is the location in VRAM where the tile resides.
<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:

        DrawTiles MyMap, 0, 0, 0, 2, 2

MyMap:
        Data 65,66,67,68