defineTileSet
defineTileSet(
options):TileSet
Declares a tile set at module scope: its image cut into tiles, which
tiles are solid, their animations, and a Tiled .tsj file’s data
where it has one. The image is checked against it when a page loads
it; a room never loads it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
TileSetOptions |
Returns
Section titled “Returns”Example
Section titled “Example”export const grass = defineTileSet({ image: grassImage, tileSize: 16, solid: [12, 13, 14], });