TilemapParser.parseCSV()

<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)
doc_phaser
2017-02-14 11:16:48
Comments
Leave a Comment

Please login to continue.