Exemplo n.º 1
0
 private void LoadTileSet()
 {
     Console.WriteLine("Loading");
     for (int x = 0; x < 16; x++)
     {
         for (int y = 0; y < 16; y++)
         {
             imageset[x, y] = Sprite.GetTile(Properties.Resources.tilesheet, new Point(x, y), new Size(128, 128));
             loaded        += (100f / 256f);
         }
     }
     Console.WriteLine("Loaded");
 }