Skip to main content

TileMapOptions

Index

Properties

columns

columns: number

The number of tile columns, or the number of tiles wide

optionalmeshingLookBehind

meshingLookBehind?: number

Optionally configure the meshing lookbehind for Tilemap, Tilemaps combine solid tiles into optimal geometry and the lookbehind configures how far back the Tilemap to look for geometry when combining. Meshing is an expensive operation, so when the Tilemap geometry is invalidated it must be recalculated.

Default is 10 slots, but if your Tilemap does not change positions or solid tiles often you can increase this to Infinity.

optionalname

name?: string

Optionally name the tile map

optionalpos

pos?: Vector

Optionally specify the position of the tile map

optionalrenderFromTopOfGraphic

renderFromTopOfGraphic?: boolean

Optionally render from the top of the graphic, by default tiles are rendered from the bottom

rows

rows: number

The number of tile rows, or the number of tiles high

tileHeight

tileHeight: number

Height of an individual tile in pixels

tileWidth

tileWidth: number

Width of an individual tile in pixels