for(int y = 0; y <= 5; y++) { for(int x = 0; x <= 5; x++) { g_pRender->DrawTile(tiles[x][y].type, (x * 128), (y * 64)); } }