private void DrawTiles() { //Draw downtiles for (int x = newTileGrid.GetLength(0) - 1; x >= 0; x--) { for (int y = newTileGrid.GetLength(1) - 1; y >= 0; y--) { if (newTileGrid[x, y] != null) { TileDrawer.DrawTileAt(spriteBatch, newTileGrid[x, y].type, new Point(x, y)); } } } //Drawuptiles for (int x = newTileGrid.GetLength(0) - 1; x >= 0; x--) { for (int y = newTileGrid.GetLength(1) - 1; y >= 0; y--) { if (newTileGrid[x, y] != null) { TileDrawer.DrawTileRoofingAt(spriteBatch, newTileGrid[x, y].type, new Point(x, y)); } } } }
public void DrawAbove(Minijam32 game, SpriteBatch batch) { for (int x = tileGrid.GetLength(0) - 1; x >= 0; x--) { for (int y = tileGrid.GetLength(1) - 1; y >= 0; y--) { TileDrawer.DrawTileRoofingAt(batch, tileGrid[x, y].type, new Point(x, y)); } } }