Example #1
0
 public void Draw(SpriteBatch batch)
 {
     Game.GraphicsDevice.Clear(Color.White);
     //Console.WriteLine(background.Sprite.Frames[0]);
     background.Draw(batch);
     for (int i = 0; i < GameObjectList.Count; i++)
     {
         GameObject obj = GameObjectList[i];
         obj.Draw(batch);
     }
     for (int i = 0; i < GameTileList.Count; i++)
     {
         GameTile tile = GameTileList[i];
         tile.Draw(batch);
     }
 }