Spawnable Object: Empty

This represents an empty space. This is primarily used to add some space between consecutive chunks, which normally would be spawned immediately one after the other. If more space is needed between two chunks, an empty spawnable object can be added at the end of the first chunk to offset the following chunk by that distance.

Technically the second chunk can just be manually offset, but this makes it easier to copy and paste similar, consecutive chunks without manually editing all the GridX values.

Spawnable Object data #

{
  "key": "e"
}

Data Fields #

None – only the object’s key #


Example Level JSON #

{
  "items": [
    {
      "type": "chunk",
      "data": {
        "0"  : [ {"key": "c", "gridY": 50} ],
        "200": [ {"key": "e"             } ]
      }
    },
    {
      "type": "chunk",
      "data": {
        "0": [ {"key": "c", "gridY": 50} ]
      }
    }
  ]
}

This spawns a coin at X = 0, then an empty space at X = 200, then another coin at X = 0 (relative to its chunk space), which essentially places the second coin at X = 200 + endPadding (in terms of global space).