BASIC Tilemap Statements and Functions - fvdhoef/aquarius-plus GitHub Wiki

SET TILEMAP

TYPE: plusBASIC graphics statement

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.

SET TILEMAP OFFSET

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.


TILEMAP

TYPE: plusBASIC graphics function

FORMAT: TILEMAP ( row , column )

Coming soon.


TILEMAPX

TYPE: plusBASIC graphics function

FORMAT: TILEMAPX

Action: Returns the tile map x-offset

  • Returned value will be in the range 0 through 511.
Examples:
X = TILEMAPX

Sets variable X to the tilemap x-offset.


TILEMAPY

TYPE: plusBASIC graphics function

FORMAT: TILEMAPY

Action: Returns the tile map y-offset

  • Returned value will be in the range 0 through 255.
Examples:
Y = TILEMAPY

Sets variable Y to the tilemap y-offset.

⚠️ **GitHub.com Fallback** ⚠️