Exemplo n.º 1
0
 public void DrawMap(PaintEventArgs e, Map map)
 {
     for (int row = 5; row < map.GetMap().GetLength(0) - 5; row++)
     {
         for (int col = 5; col < map.GetMap().GetLength(1) - 5; col++)
         {
             e.Graphics.DrawImage(tiles[map.GetMap()[row, col]],
                 new Rectangle(51 + col * 16, 14 + row * 16, 16, 16));
         }
     }
 }