protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Screen.LoadContent(Content); Fontone = Content.Load <SpriteFont>("Font"); //adds in music to be playing in the backround song = Content.Load <Song>("Beat"); MediaPlayer.Play(song); MediaPlayer.IsRepeating = false; MediaPlayer.Volume -= .75f; loadVolume(); MediaPlayer.MediaStateChanged += MediaPlayer_MediaStateChanged; AddLines(); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Screen.LoadContent(Content); Fontone = Content.Load <SpriteFont>("Font"); //adds in music to be playing in the backround song = Content.Load <Song>("Beat"); MediaPlayer.Play(song); MediaPlayer.IsRepeating = false; //checks to see if the save file has preffered volume for music yet if not sets base volume if (!File.Exists("C:\\TemptFate\\TemptFate\\Tempt Fate\\Files\\Save.txt")) { MediaPlayer.Volume -= .75f; } else { loadVolume(); } MediaPlayer.MediaStateChanged += MediaPlayer_MediaStateChanged; addLines(); }