public override void OnFadeOutComplete() { base.OnFadeOutComplete(); if (backToMainMenu) { RaiseFlag(Flags.DELETE); MainMenuScreen s = new MainMenuScreen(); s.Initialize(Content); ScreenManager.Get.AddScreen(s); } }
public override void Update(GameTime dt) { base.Update(dt); #if WINDOWS_PHONE AdSystem.TargetTop = false; #endif if (blank != null) { if (blank.StateFlag == Jabber.StateFlag.FADE_IN_COMPLETE) { gameplay.RaiseFlag(Flags.DELETE); RaiseFlag(Flags.DELETE); if (NextLevelLoad) { if (ChicksnVixensGame.Get.GetTotalLevels(gameplay.location) >= gameplay.levelNum + 1) { GameplayScreen s = new GameplayScreen(gameplay.location, gameplay.levelNum + 1); s.Initialize(Content); ScreenManager.Get.AddScreen(s); } else { if (gameplay.location != "vesuvius") { ChicksnVixensGame.Get.PlayNextLocationStory(gameplay.location); } else { MainMenuScreen s = new MainMenuScreen(); s.Initialize(Content); ScreenManager.Get.AddScreen(s); } } } else { WorldSelectScreen s = new WorldSelectScreen(); s.Initialize(Content); s.SetCurrentCountry(gameplay.location); ScreenManager.Get.AddScreen(s); } } } }
protected override void LoadContent() { base.LoadContent(); SetupLevels(); LoadFromFile(); LoadSettings(); //GameplayScreen s = new GameplayScreen("uluru", 11); MainMenuScreen s = new MainMenuScreen(); s.Initialize(Content); ScreenManager.Get.AddScreen(s); }