private static void TestMultipleMapWontFail() { TileMapFactoryImpl mf = new TileMapFactoryImpl(); for (int i = 0; i < 32; i++) { CheckMap(mf.Def()); } }
private static void PrintMapExample() { ITileMapFactory tmf = new TileMapFactoryImpl(); ITileMap tm = tmf.Def(); for (int y = 0; y < tm.Height; ++y) { for (int x = 0; x < tm.Width; ++x) { if (tm[x, y] == Tile.Wall) { Console.Write("#"); } else { Console.Write("."); } } Console.WriteLine(); } }