How to create custom tilemap data in json

Hi, i saw that in many examples phaser is using json from tiled, and i saw that data from tiled is just one array for each layer.
[0,0,0,0,0]

In examples of creating custom json data is multidimensional array.

[
[0,0,0,0,0],
[0,0,0,0,0]
]

Is it possible to create custom json data with normal aray and not multidimensional without tiled loader? Is there any example of that?

I don’t think so, but you should be able to transform a 1d array into a 2d one.

1 Like