How can I use a jagged array to record the x and y axes of these tiles?
问题 In the game I am making, I have a level that is created through an XML file. The level is drawn with a nested for loop. I am trying to make another nested for loop to take the position of each tile and assign it to a jagged array. I want to do this so I can make collision detection for each tile. Each tile in the picture of the example level below is 20x20 pixels, with 30x30 tiles, for a screen resolution of 600x600. The level was made with the free software Realm Factory, which lacks