/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Art.Load(Content); Sound.Load(Content); EntityManager.Add(PlayerShip.Instance); //Known issue that you get exceptions if you use Media PLayer while connected to your PC //See http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/c8a243d2-d360-46b1-96bd-62b1ef268c66 //Which means its impossible to test this from VS. //So we have to catch the exception and throw it away try { Microsoft.Xna.Framework.Media.MediaPlayer.IsRepeating = true; Microsoft.Xna.Framework.Media.MediaPlayer.Play(Sound.Music); } catch { } }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Art.Load(Content); Sound.Load(Content); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); Art.Load(Content); }