예제 #1
0
 public override void OnFadeOutComplete()
 {
     base.OnFadeOutComplete();
     if (backToMainMenu)
     {
         RaiseFlag(Flags.DELETE);
         MainMenuScreen s = new MainMenuScreen();
         s.Initialize(Content);
         ScreenManager.Get.AddScreen(s);
     }
 }
예제 #2
0
        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);
                    }
                }
            }
        }
예제 #3
0
 public override void OnFadeOutComplete()
 {
     base.OnFadeOutComplete();
     if (backToMainMenu)
     {
         RaiseFlag(Flags.DELETE);
         MainMenuScreen s = new MainMenuScreen();
         s.Initialize(Content);
         ScreenManager.Get.AddScreen(s);
     }
 }
예제 #4
0
        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);
                    }
                }
            }
        }
예제 #5
0
        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);
        }