Example #1
0
        protected override void Draw(GameTime gameTime)
        {
            // TODO: Add your drawing code here
            if (gameMode == GameMode.Menu)
            {
                GraphicsDevice.Clear(Color.White);
                gameMenu.Draw(_spriteBatch);
            }
            else if (gameMode == GameMode.HighScores)
            {
                GraphicsDevice.Clear(Color.White);
                highscores.Draw(_spriteBatch);
            }
            else if (gameMode == GameMode.CustomizeControls)
            {
                GraphicsDevice.Clear(Color.White);
                _spriteBatch.Begin();
                userControls.Draw(_spriteBatch);
                _spriteBatch.End();
            }
            else if (gameMode == GameMode.Game)
            {
                GraphicsDevice.Clear(Color.Black);
                //gameLogic.Draw(_spriteBatch);
                gameLogic.Draw(_spriteBatch);
            }

            base.Draw(gameTime);
        }