Phaser API Documentation

  Version: 
<static> ParseTileLayers(json, insertNull)

Description:

Parses all tilemap layers in a Tiled JSON object into new LayerData objects.

Parameters:

name type description
json object

The Tiled JSON object.

insertNull boolean

Controls how empty tiles, tiles with an index of -1, in the map data are handled (see {@link Phaser.Tilemaps.Parsers.Tiled.ParseJSONTiled}).

Returns:
Description:
  • An array of LayerData objects, one for each entry in json.layers with the type 'tilelayer'.