I have an array named "tile", and it's length is 61. I want to draw each one on the screen, and am assuming a for loop would be the best way. I've never been good with the math/concept side of gaming, so I was hoping somebody would point me in the right direction.
I know this is wrong, but I made it to help show you what I mean:
1 2 3 4 5 6 7 8 9 10 11 12 13
| for(int i = 0; i < tile.length; i++) {
for(int x = 0; x < 36; x++) { for(int y = 0; y < 25; y++) { tile[i] = new Tile(x * 16, y * 16); } }
} |
Thanks!