<static> parseCSV(key, data, tileWidth, tileHeight) → {object}
Parses a CSV file into valid map data.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
key | string | The name you want to give the map data. | ||
data | string | The CSV file data. | ||
tileWidth | number | <optional> | 32 | The pixel width of a single map tile. If using CSV data you must specify this. Not required if using Tiled map data. |
tileHeight | number | <optional> | 32 | The pixel height of a single map tile. If using CSV data you must specify this. Not required if using Tiled map data. |
Returns
object -
Generated map data.
- Source code: tilemap/TilemapParser.js (Line 77)
Please login to continue.