TileLayer

new game.TileLayer(data)

Parameters:

  • data Object

Properties

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.

Methods

getObject() Object

Get object by name (if object layer).