This represents a Bomb, the only harmful obstacle in the game. When the player touches a bomb, 1 life is deducted from their total lives.
There are some other interactions involving bombs as well, for example when a mushroom power-up is activated, all existing bombs are turned into coins/gems.
Spawnable Object data #
{
"key": "b",
"gridY": <GridY>,
}
Data Fields #
gridY #
The GridY position to spawn this object (see Coordinate System)
Example Level JSON #
{
"items": [
{
"type": "chunk",
"data": {
"0": [
{"key": "b", "gridY": 40},
{"key": "b", "gridY": 50},
{"key": "b", "gridY": 60}
],
"20": [
{"key": "b", "gridY": 35},
{"key": "b", "gridY": 45},
{"key": "b", "gridY": 55}
]
}
}
]
}