/// <summary> /// Draw Tile at specific X and Y /// </summary> /// <param name="grid">Draw grid arond tile</param> private static void DrawPos(int X, int Y, bool grid = true) { int x = IsoX(X, Y); int y = IsoY(Y); switch (map[Y, X]) { case 1: if (grid) { DrawTile.Grid(x, y); } DrawTile.Ground(x, y); break; case 2: if (grid) { DrawTile.Grid(x, y); } DrawTile.Wall(x, y); break; } }
private static void DrawPlayer(int X, int Y) { DrawTile.Ground(IsoX(X, Y), IsoY(Y), ConsoleColor.Red); //TODO better player }