Now extracts the renderorder property from the Tiled JSON

This commit is contained in:
Richard Davey 2018-08-21 17:54:49 +01:00
parent a98b3c3b15
commit a462250cd9

View file

@ -12,6 +12,7 @@ var ParseTilesets = require('./ParseTilesets');
var ParseObjectLayers = require('./ParseObjectLayers');
var BuildTilesetIndex = require('./BuildTilesetIndex');
var AssignTileProperties = require('./AssignTileProperties');
var GetFastValue = require('../../../utils/object/GetFastValue');
/**
* @namespace Phaser.Tilemaps.Parsers.Tiled
@ -52,7 +53,8 @@ var ParseJSONTiled = function (name, json, insertNull)
orientation: json.orientation,
format: Formats.TILED_JSON,
version: json.version,
properties: json.properties
properties: json.properties,
renderOrder: json.renderorder
});
mapData.layers = ParseTileLayers(json, insertNull);