Hi Miljan, welcome to CodeRanch!
- height of every row is BRICK_HEIGHT just adding up, I have that in my for loop. I have tried in several different ways to make corrections in the for loop but its not working. Am I supposed to calculate where the bottom row will begin at (by that I mean its coordinates), and then for every next row just to add BRICK_WIDTH/2 for x axis. How to do that in for loop ?
First calculate the height of the current layer, and then add the correct amount of pixels to the x coordinate.
Do you mean by that to calculate where are x and y coordinates for bottom row and then for every next every row to add BRICK_WIDTH/2 for x axis and BRICK_HEGHT for y axis ?
Ah well, it's calculation time, then.
Miljan Puletic wrote:If you maybe know how to do entire code, just post it here