Skip to main content

Obstacles

The obstacles array contains the x,y coordinates of obstacle tiles on the map:

{
"obstacles": [
{
"x": 48, // X coordinate of obstacle tile
"y": 96 // Y coordinate of obstacle tile
},
{
"x": 96, // Each obstacle tile is 48x48 pixels
"y": 96
}
]
}
tip

Obstacles are static 48x48 tiles that cannot be moved or destroyed during gameplay