Okay,
I have a tile class which takes parameters of id, screen width and screen height.
I have spent that last hour trying to figure out a way of finding the row and column of each tile based on its id.
Each tile is part of a grid of 16x12 tiles which is 192 tiles in total. Each tile is also 40x40 in a window of 640x480.
Can i have some help in solving this?
Or even a better way to do it?
Thanks.
