new game.TileLayer(data)


  • data Object


container Container

Layer container.

data Array

List of all tile ID's.

height Number

Layer height in tiles.

objects Array

Array of objects. Used in objects layer.

opacity Number

Layer opacity.

sprites Array

Array of tile sprites. Key is tile index.

type String

Layer type.

visible Boolean

Layer visibility.

width Number

Layer width in tiles.

x Number

Layer x position.

y Number

Layer y position.


getObject() Object

Get object by name (if object layer).