Example #1
0
//*****************************************************************************
//*****************************************************************************
//                              HighScore
//*****************************************************************************
//*****************************************************************************
        public static void InitializeHighScore()
        {
            //Load things
            Texture2D bgTex = new Texture2D("/Application/Assets/HighScore.png", false);

            background  = new BackGround(graphics, bgTex);
            topScoreHUD = new TopScoreHUD(graphics, scoreList, 0);
            MusicPlay("/Application/Assets/HighScore.mp3");

            //set state
            currentState = GameState.HighScore;
        }
Example #2
0
//*****************************************************************************
//*****************************************************************************
//                              GameOver
//*****************************************************************************
//*****************************************************************************
        public static void InitializeGameOver()
        {
            //Load things
            Texture2D bgTex = new Texture2D("/Application/Assets/GameOver.png", false);

            background  = new BackGround(graphics, bgTex);
            topScoreHUD = new TopScoreHUD(graphics, scoreList, playership.Points);
            MusicPlay("/Application/Assets/GameOver.mp3");

            //set state
            currentState = GameState.GameOver;
        }