title: Make a 1d array of a 2d grid with x and y coordinates (x and y are not referring to the rows and columns of the 2d grid)
body: <p>Lets say I have a grid that is 4x4 tiles. And each tile is 5x5 pixels. How would I make a 1d array of this grid and set the coordinates of the tiles properly(the coordinates I am specifying are different from the rows and columns of a 2d array)? For example, after the 1d array is created, the tile at index 4 has the coordinates (0, 5) in pixels. </p>