예제 #1
0
 public void FillMap()
 {
     for (int x = 0; x < MapWidth; x++)
     {
         for (int y = 0; y < MapHeight; y++)
         {
             map[x, y] = new EmptyTile(x, y);
         }
     }
 }
예제 #2
0
 public void InitializeMap()
 {
     for (int x = 0; x < MapWidth; x++)
     {
         for (int y = 0; y < MapHeight; y++)
         {
             map[x, y] = new EmptyTile(x, y);
         }
     }
     SpawnObstacles();
 }