Skip to content

BASIC SET TILEMAP Statement

Mike Hogsett edited this page Aug 5, 2024 · 4 revisions

SET TILEMAP

TYPE: plusBASIC graphics statement


FORMAT: SET TILEMAP OFFSET x-offset , y-offset

Action: Sets the tilemap offset.

  • x-offset is in integer in the range 0 through 511.
  • y-offset is in integer in the range 0 through 255.

Examples:

SET TILEMAP OFFSET 20, 10

Sets the tile map x-offset to 20 and y-offset to 10.


FORMAT: SET TILEMAP (x,y) TO TILE tile# ATTR attrs PALETTE palette#

Action: Sets the tile to be displayed in a tilemap cell.

  • x is in integer in the range 0 through 63 which specifies the cell column.
  • y is in integer in the range 0 through 31 which specified the cell row.
  • tile# is the index of the tile to display.
  • attrs is the display attributes.
  • palette# is defines which palette to use.

Examples:

SET TILEMAP (_x_,_y_) TO _int_

Sets the cell at row 1 and column 2 of the tilemap to display display a tile using a combined tile index and properties.

  • x is in integer in the range 0 through 63 which specifies the cell column.
  • y is in integer in the range 0 through 31 which specified the cell row.
  • int is an integer that defines both the tile index and it's properties.
Clone this wiki locally