Example #1
0
        protected override void LoadContent()
        {
            mapManager.loadContent();
            player.loadContent();
            HudManager.loadContent();

            #region sound background
            backgroundSound = Content.Load <Song>("sound_background_02");
            //MediaPlayer.Play(backgroundSound);
            MediaPlayer.IsRepeating = true;
            #endregion

            #region sound effects



            soundEffects.Add(Content.Load <SoundEffect>("whale01"));
            soundEffects.Add(Content.Load <SoundEffect>("whale02"));

            // Play that can be manipulated after the fact
            var instance = soundEffects[0].CreateInstance();
            instance.IsLooped = false;

            #endregion
        }