This represents a column of bombs with a vertical gap that the player can fly through. While technically this could be constructed manually with just bomb objects, it’s frequently used in the base game mode and presets to construct more complicated patterns.
A bomb in a bomb column is spawned in one of 16 predetermined GridY locations (BombColumnIx = [0, 15]) that are equally spaced along the Y axis. For example, a BombColumnIx of 5 means the bomb is spawned at GridY = 100 * 5/15 = 33.3.
Spawnable Object data #
{
"key": "bc",
"missing": <Pair of BombColumnIx values>,
"maxRandomXOffset": <GridX>, (optional)
}
Data Fields #
missing #
An array of length 2 that defines the range of bombs that should be missing in the column. The values in this array should be between 0 and 15, inclusive.
For example, if "missing": [4, 7]
, bombs will be spawned at locations 0, 1, 2, 3, 8, 9, 10, 11, 12, 13, 14, 15 – skipping locations 4 through 7. This allows a gap for the player to pass through without colliding with a bomb.
maxRandomXOffset (optional) #
The maximum horizontal offset each bomb can be spawned from its default position. This is meant to make the columns look less stiff, and is set to 8
in the base game mode.
If specified, a random number from the range [-1 * maxRandomXOffset, maxRandomXOffset] will be chosen per bomb and added to that bomb’s X position.
Example Level JSON #
{
"items": [
{
"type": "chunk",
"data": {
"0": [
{
"key": "bc",
"missing": [2, 7],
"maxRandomXOffset": 8
}
],
"50": [
{ "key": "bc", "missing": [5, 8] }
],
"100": [
{
"key": "bc",
"missing": [6, 10],
"maxRandomXOffset": 40
}
]
}
}
]
}