Example #1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here
            //scene1.Draw(spriteBatch);
            //scene2.Draw(spriteBatch);
            //scene3.Draw(spriteBatch);
            if (the_menu != null)
            {
                the_menu.Draw(spriteBatch);
            }
            if (the_game_over != null)
            {
                the_game_over.Draw(spriteBatch);
            }
            if (the_win_menu != null)
            {
                the_win_menu.Draw(spriteBatch);
            }
            if (scene1 != null)
            {
                scene1.Draw(spriteBatch);
            }
            if (scene2 != null)
            {
                scene2.Draw(spriteBatch);
            }
            if (scene3 != null)
            {
                scene3.Draw(spriteBatch);
            }
            //the_game_over_menu.Draw(spriteBatch);
            //scene2.Draw(spriteBatch);
            base.Draw(gameTime);
        }