UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

26 lines (25 loc) 1.54 kB
/** * @typedef {object} Phaser.Types.Tilemaps.LayerDataConfig * @since 3.0.0 * * @property {string} [name] - The name of the layer, if specified in Tiled. * @property {number} [x=0] - The x offset of where to draw from the top left. * @property {number} [y=0] - The y offset of where to draw from the top left. * @property {number} [width=0] - The width of the layer in tiles. * @property {number} [height=0] - The height of the layer in tiles. * @property {number} [tileWidth=0] - The pixel width of the tiles. * @property {number} [tileHeight=0] - The pixel height of the tiles. * @property {number} [baseTileWidth=0] - The base tile width. * @property {number} [baseTileHeight=0] - The base tile height. * @property {number} [widthInPixels=0] - The width in pixels of the entire layer. * @property {number} [heightInPixels=0] - The height in pixels of the entire layer. * @property {number} [alpha=1] - The alpha value of the layer. * @property {boolean} [visible=true] - Is the layer visible or not? * @property {object[]} [properties] - Layer specific properties (can be specified in Tiled) * @property {array} [indexes] - Tile ID index map. * @property {array} [collideIndexes] - Tile Collision ID index map. * @property {array} [callbacks] - An array of callbacks. * @property {array} [bodies] - An array of physics bodies. * @property {array} [data] - An array of the tile data indexes. * @property {Phaser.Tilemaps.TilemapLayer} [tilemapLayer] - A reference to the Tilemap layer that owns this data. */