Example #1
0
        public void Draw(StateClass state)
        {
            backGround.Draw(spriteBatch);
            switch (state.gameState)
            {
            case GameState.LOGO:
                DrawLogo();
                break;

            case GameState.MENU:
            {
                menuButtons[(int)(state.menuState)].HL = true;
                for (int i = 0; i < numberOfGameStates; i++)
                {
                    menuButtons[i].Draw(spriteBatch);
                }
                menuButtons[(int)(state.menuState)].HL = false;
            }
            break;

            case GameState.MORE:
            {
                moreButtons[(int)(state.moreState)].HL = true;
                for (int i = 0; i < numberOfMoreStates; i++)
                {
                    moreButtons[i].Draw(spriteBatch);
                }
                moreButtons[(int)(state.moreState)].HL = false;
            }
            break;

            default:
                break;
            }
        }
Example #2
0
 void DrawLogo()
 {
     logo.Draw(spriteBatch);
 }