Example #1
0
        protected override void LoadContent()
        {
            base.LoadContent();

            m_Font          = this.Game.Content.Load <SpriteFont>(@"Fonts/Consolas");
            m_GameOverSound = m_SoundManager.GetInstaceOf(SoundEffectsManager.eSounds.GameOver);
            m_GameWonSound  = m_SoundManager.GetInstaceOf(SoundEffectsManager.eSounds.LevelWin);
        }
Example #2
0
        //public void Restart()
        //{
        //    Initialize();
        //    m_ScreensManager.Remove(m_PlayGameScreen);
        //    m_ScreensManager.Remove(m_WelcomeScreen);
        //    m_ScreensManager.Remove(m_TransitionScreen);
        //    m_ScreensManager.Push(m_PlayGameScreen);
        //    m_ScreensManager.Push(m_TransitionScreen);
        //    m_ScreensManager.SetCurrentScreen(m_WelcomeScreen);
        //}

        protected override void BeginRun()
        {
            base.BeginRun();
            m_BGMusic          = m_SoundManager.GetInstaceOf(SoundEffectsManager.eSounds.BGMusic);
            m_BGMusic.IsLooped = true;
            m_BGMusic.Play();
        }
Example #3
0
 protected override void LoadContent()
 {
     base.LoadContent();
     m_OriginallTexture = new Color[m_Pixels.Length];
     m_Pixels.CopyTo(m_OriginallTexture, 0);
     Pixels     = m_Pixels;
     m_HitSound = m_SoundManager.GetInstaceOf(SoundEffectsManager.eSounds.BarrierHit);
 }
Example #4
0
 protected override void LoadContent()
 {
     base.LoadContent();
     m_ActiveItemChangedSound = m_SoundManager.GetInstaceOf(SoundEffectsManager.eSounds.MenuMove);
 }