public override void LoadContent() { #region loadContent background = content.Load<Texture2D>("MetalBack"); base.screentitle = "MENU SCREEN, CLICK PLAY"; BackgroundMusic = content.Load<Song>("MusicLoop1"); video = content.Load<Video>("MenuBackgroundVid"); videoPlayer = new VideoPlayer(); videoPlayer.IsMuted = true; MediaPlayer.Volume = MusicVolume; MediaPlayer.Play(BackgroundMusic); menu = new MenuClass(graphics, device, content, game, new EventHandler(NewGame), new EventHandler(QuitGame)); //menuThud = content.Load<SoundEffect>("Sound/MenuThud"); //clickNoise = content.Load<SoundEffect>("Sound/ClickNoise1"); #endregion videoOpacity = 0.15f; ListOfSaves = user.LoadListOfSaves(); menu.LoadContent(); }
/// <summary> /// Initializes a new instance of the <see cref="GameService"/> class. /// </summary> /// <param name="gameInstance">The game instance.</param> public GameService(MenuClass gameInstance) { game = gameInstance; }