Exemplo n.º 1
0
 public void Fillmap()                                //Method to populate map with empty tiles
 {
     for (int x = 0; x < mapwidth; x++)
     {
         for (int y = 0; y < mapheight; y++)
         {
             map[x, y] = new Emptytile(x, y);
         }
     }
 }
Exemplo n.º 2
0
 public void InitializeMap()                    //Method to fill map with empty tiles and obstacles
 {
     for (int x = 0; x < mapwidth; x++)
     {
         for (int y = 0; y < mapheight; y++)
         {
             map[x, y] = new Emptytile(x, y);
         }
     }
     SetObstacles();
 }