Constructor Summary
Public Constructor | ||
public |
constructor(options: object) TileMap constructor. |
Member Summary
Public Members | ||
public |
The height of the tilemap. |
|
public |
All layers of the tilemap |
|
public |
The name of the tilemap. |
|
public |
properties: Map<string, *> Custom properties of the tilemap. |
|
public |
The height of a tile for the tilemap. |
|
public |
The width of a tile for the tilemap. |
|
public |
The width of the tilemap. |
Method Summary
Public Methods | ||
public |
createLayer(options: object): TileLayer Creates a new layer and adds it to the tilemap. |
Public Constructors
public constructor(options: object) source
TileMap constructor.
Params:
Name | Type | Attribute | Description |
options | object | Options for the tilemap. Can also be a tilemap you loaded from JSON or similar. |
|
options.name | string |
|
|
options.width | number | ||
options.height | number | ||
options.tileWidth | number | ||
options.tileHeight | number | ||
options.layers | layerOption[] |
|
Same structure as options in TileLayer#constructor |
options.properties | Map<string, *> |
|