- Source: src/tilemaps/parsers/impact/index.js (Line 7)
Methods
-
<static> ParseTileLayers(json, insertNull)
-
Parses all tilemap layers in an Impact JSON object into new LayerData objects.
Parameters:
Name Type Description jsonobject The Impact JSON object.
insertNullboolean Controls how empty tiles, tiles with an index of -1, in the map data are handled (see Phaser.Tilemaps.Parsers.Tiled.ParseJSONTiled).
- Since: 3.0.0
- Source: src/tilemaps/parsers/impact/ParseTileLayers.js (Line 10)
Returns:
- An array of LayerData objects, one for each entry in json.layers with the type 'tilelayer'.
- Type
- Array.<Phaser.Tilemaps.LayerData>
-
<static> ParseTilesets(json)
-
Tilesets and Image Collections
Parameters:
Name Type Description jsonobject The Impact JSON data.
- Since: 3.0.0
- Source: src/tilemaps/parsers/impact/ParseTilesets.js (Line 9)
Returns:
An array of Tilesets.
- Type
- array
-
<static> ParseWeltmeister(name, json, insertNull)
-
Parses a Weltmeister JSON object into a new MapData object.
Parameters:
Name Type Description namestring The name of the tilemap, used to set the name on the MapData.
jsonobject The Weltmeister JSON object.
insertNullboolean Controls how empty tiles, tiles with an index of -1, in the map data are handled. If
true, empty locations will get a value ofnull. Iffalse, 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 totruewill 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:
The created MapData object, or
nullif the data can't be parsed.
