new Tileset(imagePath, tileWidth, tileHeight)
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
imagePath | string | Path to the tileset image. | |
tileWidth | number | 16 | Width of each tile in pixels. |
tileHeight | number | 16 | Height of each tile in pixels. |
- Source