Namespace: Impact

Phaser.Tilemaps.Parsers. Impact

Methods


<static> ParseTileLayers(json, insertNull)

[description]

Parameters:
Name Type Description
json object

[description]

insertNull boolean

[description]

Since: 3.0.0
Source: src/tilemaps/parsers/impact/ParseTileLayers.js (Line 10)
Returns:

[description]

Type
array

<static> ParseTilesets(json)

[description]

Parameters:
Name Type Description
json object

[description]

Since: 3.0.0
Source: src/tilemaps/parsers/impact/ParseTilesets.js (Line 9)
Returns:

[description]

Type
array

<static> ParseWeltmeister(name, json, insertNull)

Parses a Weltmeister JSON object into a new MapData object.

Parameters:
Name Type Description
name string

The name of the tilemap, used to set the name on the MapData.

json object

The Weltmeister JSON object.

insertNull boolean

Controls how empty tiles, tiles with an index of -1, in the map data are handled. If true, empty locations will get a value of null. If false, empty location will get a Tile object with an index of -1. If you've a large sparsely populated map and the tile data doesn't need to change then setting this value to true will help with memory consumption. However if your map is small or you need to update the tiles dynamically, then leave the default value set.

Since: 3.0.0
Source: src/tilemaps/parsers/impact/ParseWeltmeister.js (Line 12)
Returns:

[description]

Type
object