Parses a CSV string of tile indexes into a new MapData object with a single layer.
name | type | description |
---|---|---|
name | string |
The name of the tilemap, used to set the name on the MapData. |
data | string |
CSV string of tile indexes. |
tileWidth | number |
The width of a tile in pixels. |
tileHeight | number |
The height of a tile in pixels. |
insertNull | boolean |
Controls how empty tiles, tiles with an index of -1, in the map
data are handled. If |
The resulting MapData object.