예제 #1
0
        /// <summary>
        /// Loads Content
        /// </summary>
        /// <param name="Content"></param>
        public void LoadContent(ContentManager Content)
        {
            this.Content = Content;
            _currentScreen.LoadContent();
            _image.LoadContent();

            //_bgm = Content.Load<Song>("sfx/bgm");
            //MediaPlayer.IsRepeating = true;
            //MediaPlayer.Play(_bgm);

            // Load And Play Music.
            try
            {
                SongCollection playlist = new SongCollection();
                playlist.Add(Content.Load <Song>("sfx/Robert del Naja - the shovel"));
                playlist.Add(Content.Load <Song>("sfx/Robert del Naja - HS"));
                playlist.Add(Content.Load <Song>("sfx/Robert del Naja - WS"));
                playlist.Add(Content.Load <Song>("sfx/Robert del Naja - DT3"));
                playlist.Add(Content.Load <Song>("sfx/Robert del Naja - BC"));
                MediaPlayer.IsRepeating = true;
                MediaPlayer.Play(playlist);
            }
            catch (Exception e) { }
        }
예제 #2
0
 /// <summary>
 /// Loads Content
 /// </summary>
 /// <param name="Content"></param>
 public void LoadContent(ContentManager Content)
 {
     this.Content = Content;
     _currentScreen.LoadContent();
     _image.LoadContent();
 }