If I create a level with grid size [5, 5], and place a block at [10, 10], the game freezes. This should be fixed somehow. One way would be to just have the game correct the file and update the boundary size accordingly. Or as an even better solution which would also make level creation a lot more consistent, get rid of the grid attribute in the JSON entirely, and just have the game calculate the correct size upon loading the level. (I highly suggest you do that.)
If I create a level with grid size
[5, 5]
, and place a block at[10, 10]
, the game freezes. This should be fixed somehow. One way would be to just have the game correct the file and update the boundary size accordingly. Or as an even better solution which would also make level creation a lot more consistent, get rid of thegrid
attribute in the JSON entirely, and just have the game calculate the correct size upon loading the level. (I highly suggest you do that.)