Beispiel #1
0
 public TileMap()
 {
     for (int y = 0; y < MapHeight; y++)
     {
         MapRow thisRow = new MapRow();
         for (int x = 0; x < MapWidth; x++)
         {
             thisRow.Columns.Add(new MapCell(0));
         }
         Rows.Add(thisRow);
     }
     Rows[3].Columns[3].TileID = 3;
     Rows[4].Columns[3].TileID = 3;
     Rows[3].Columns[4].TileID = 3;
     Rows[4].Columns[4].TileID = 3;
     Rows[9].Columns[9].TileID = 3;
 }
Beispiel #2
0
 public TileMap()
 {
     for (int y = 0; y < MapHeight; y++)
     {
         MapRow thisRow = new MapRow();
         for (int x = 0; x < MapWidth; x++)
         {
             thisRow.Columns.Add(new MapCell(0));
         }
         Rows.Add(thisRow);
     }
     Rows[3].Columns[3].TileID = 3;
     Rows[4].Columns[3].TileID = 3;
     Rows[3].Columns[4].TileID = 3;
     Rows[4].Columns[4].TileID = 3;
     Rows[9].Columns[9].TileID = 3;
 }