public void BackToStart() { startScreen = new StartScreen(this); currentScreen = Screen.StartScreen; modeScreen = null; }
public void modeSelect() { modeScreen = new ModeScreen(this); currentScreen = Screen.ModeScene; startScreen = null; }
/// <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); startScreen = new StartScreen(this); currentScreen = Screen.StartScreen; //Load the Song song = Content.Load<Song>("Sounds/BgMusic"); // Set the Media player to repeat the song MediaPlayer.IsRepeating = true; // Tell MediaPlayer to play the song MediaPlayer.Play(song); base.LoadContent(); }