Skip to content

Tileset

sirrandalot edited this page Mar 8, 2018 · 1 revision

Tileset represents an array of Tiles (actually encoded as an int array but that's none of your concern). It can not be instantiated directly, you must use the TilesetFactory for that.


Attributes:

final int tileWidth

  • The width of each tile.

final int tileHeight

  • The height of each tile.

final int numTiles

  • The number of tiles.

Methods:

void setTile(int index, int[] vals)

  • Sets the values for the tile at the given index using an array of values.

void setTile(int index, Tile tile)

  • Sets the values for the tile at a given index using a Tile.
Clone this wiki locally