Skip to content
sirrandalot edited this page Mar 8, 2018 · 1 revision

Tile is mainly a helper class for creating a Tileset, since everything is encoded as int arrays. It is however useful as an organizational tool.


Attributes:

int[] values

  • The values for each "pixel" of the Tile. Currently only 0 and 1 are supported (background and foreground).

final int tileWidth

  • The width of the Tile.

final int tileHeight

  • The height of the Tile

Constructors:

Tile(int width, int height, int[] vals)

  • Takes a tile width, a tile height and an array of values to use.

Tile(int width, int height)

  • Takes a width and height and creates a blank (all background) Tile.
Clone this wiki locally