Example #1
0
 public override void Draw(GameTime gametime)
 {
     spritebatch.Begin();
     for (int i = 0; i < Height; i++)
     {
         for (int j = 0; j < Width; j++)
         {
             spritebatch.Draw(background[i, j], new Rectangle(j * 16 * 3, i * 16 * 3, 16 * 3, 16 * 3), Color.White);
         }
     }
     for (int i = 0; i < 50; i++)
     {
         spritebatch.Draw(line, new Rectangle(0, 16 * 3 * i, _graphicsDevice.DisplayMode.Width, 1), Color.Black);
         spritebatch.Draw(line, new Rectangle(16 * 3 * i, 0, 1, _graphicsDevice.DisplayMode.Height), Color.Black);
     }
     //spritebatch.Draw(background, new Rectangle(0, 0, background.Width * 3, background.Height * 3), Color.White);
     spritebatch.End();
     spriteManager.Draw(gametime);
 }