1 decade ago by GlergHendershmidt
Hello,
I am creating layers programmatically. I'm having trouble understanding how to construct the JSON correctly, specifically how to populate the data[ ] array. Given a tileset how do I know what number to put in each cell of the grid?
I'm looking at the docs here: http://impactjs.com/documentation/class-reference/game#loadlevel
but it does not explain how the numbers map to the tile sheet.
Thanks.
I am creating layers programmatically. I'm having trouble understanding how to construct the JSON correctly, specifically how to populate the data[ ] array. Given a tileset how do I know what number to put in each cell of the grid?
I'm looking at the docs here: http://impactjs.com/documentation/class-reference/game#loadlevel
but it does not explain how the numbers map to the tile sheet.
Thanks.