cooperuser / blockade

A minimal but challenging puzzle game, inspired by the ice puzzles in The Legend of Zelda: Twilight Princess.
2 stars 0 forks source link

Game crashes if items in a level exceed the boundaries #34

Closed grady404 closed 8 years ago

grady404 commented 8 years ago

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.)