TileDisplay.cellSize

From MiniScript Wiki
Jump to navigation Jump to search

The TileDisplay.cellSize property defines the size (in pixels) of the tiles drawn to the screen by a TileDisplay.

The value may be either:

  • a simple number, used as both the width and the height of square tiles; or
  • a [width, height] list (i.e. a 2-element list of numbers), defining the tile width and height separately.

To set the size of the tiles in the source image, use TileDisplay.tileSetTileSize

See also: TileDisplay.tileSet, TileDisplay.setCell, TileDisplay.tileSetTileSize