Exemplo n.º 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.White);
            spriteBatch.Begin();
            switch (state)
            {
            case Scenes.intro:
                intro.Draw(gameTime);
                break;

            case Scenes.menu:
                //Handle
                break;

            case Scenes.game:
                game.Draw();
                break;

            case Scenes.end:
                end.Draw(gameTime);
                break;
            }
            spriteBatch.End();
            base.Update(gameTime);
        }