there is something wrong with my algorithmic/equation
what im trying to do is that im trying to create rows
you are given the maxX and maxY (which is the width and the height resspectively. but time by 32)
Since i dont want to touch multidimensional array, i coded it so that u have maxX and MaxY time with each other to create the total amount of tile u have. and when u want to draw all the tile (row by row) u have the maximum tile divide by maxy.
this code doesnt give any compiler error, but for some reason the last tile on the first row isnt draw at all. (the top right corner). Im pretty sure it is because of the way i wrote my equation.
The problem is that you go to the next row before drawing the last tile of the current one.
What if you move line 23 before the test line 17 ?
Btw, since you're checking to see if you've reached the end of a row, the test should compare to the width (maxX), not the heigth.