createBlankLayer(name, width, height, tileWidth, tileHeight, group) → {Phaser.TilemapLayer}
Creates a new and empty layer on this Tilemap. By default TilemapLayers are fixed to the camera.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
name | string | The name of this layer. Must be unique within the map. | |
width | number | The width of the layer in tiles. | |
height | number | The height of the layer in tiles. | |
tileWidth | number | The width of the tiles the layer uses for calculations. | |
tileHeight | number | The height of the tiles the layer uses for calculations. | |
group | Phaser.Group | <optional> | Optional Group to add the layer to. If not specified it will be added to the World group. |
Returns
The TilemapLayer object. This is an extension of Phaser.Image and can be moved around the display list accordingly.
- Source code: tilemap/Tilemap.js (Line 635)
Please login to continue.