Phaser API Documentation

  Version: 
<static> CreateGroupLayer(json, [currentl], [parentstate])

Description:

Parse a Tiled group layer and create a state object for inheriting.

Parameters:

name type arguments description
json object

The Tiled JSON object.

currentl object <optional>

The current group layer from the Tiled JSON file.

parentstate object <optional>

The state of the parent group (if any).

Returns:
Description:

A group state object with proper values for updating children layers.

Type:
  • object
Since: 3.21.0