Example #1
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            currentPlayPos = AudioManager.PlayingMusicPosition;
            for (int i = 0; i < frames.Count; i++)
            {
                frames[i].sprite.PosX = i * BaseGame.Get.BackBufferWidth + shiftx;
            }

            shiftx = JabMath.MoveTowards(shiftx, newShiftXTarget, gttf(dt) * 3.0f, 150);
            if (shiftx == newShiftXTarget && shiftWhen.Count == 0)
            {
                RaiseFlag(Flags.DELETE);
                WorldSelectScreen s = new WorldSelectScreen();
                s.Initialize(Content);
                s.SetCurrentCountry("uluru");
                ScreenManager.Get.AddScreen(s);
            }
            timer += gttf(dt);
            if (shiftWhen.Count > 0)
            {
                if (currentPlayPos > shiftWhen[0] || (!AudioManager.MusicPlaying && timer > shiftWhen[0]))// || (shiftx == 0 && timer > 4.6f))
                {
                    shiftWhen.RemoveAt(0);
                    newShiftXTarget -= BaseGame.Get.BackBufferWidth;
                }
            }
            lastPlayPos = AudioManager.PlayingMusicPosition;
        }
Example #2
0
        public override void Update(GameTime dt)
        {
            if (!IsTopScreen)
            {
                return;
            }
#if WINDOWS_PHONE
            AdSystem.TargetTop = false;
#endif
            base.Update(dt);

            if (fader != null)
            {
                if (fader.StateFlag == Jabber.StateFlag.FADE_IN_COMPLETE)
                {
                    if (ChicksnVixensGame.Get.GetTotalStars("uluru") == 0)
                    {
                        ChicksnVixensGame.Get.PlayCurrentLocationSotry("uluru");
                        RaiseFlag(Flags.DELETE);
                    }
                    else
                    {
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(Content);
                        ScreenManager.Get.AddScreen(s);
                        RaiseFlag(Flags.DELETE);
                    }
                }
            }
        }
Example #3
0
        void KillLevel()
        {
            WorldSelectScreen s = new WorldSelectScreen();

            s.Initialize(Content);
            ScreenManager.Get.AddScreen(s);
            RaiseFlag(Jabber.Flags.DELETE);
        }
Example #4
0
 public override void OnBackPress()
 {
     base.OnBackPress();
     RaiseFlag(Flags.DELETE);
     WorldSelectScreen s = new WorldSelectScreen();
     s.Initialize(BaseGame.Get.Content);
     s.SetCurrentCountry("paris");
     ScreenManager.Get.AddScreen(s);
 }
Example #5
0
        public override void OnBackPress()
        {
            base.OnBackPress();
            RaiseFlag(Flags.DELETE);
            WorldSelectScreen s = new WorldSelectScreen();

            s.Initialize(BaseGame.Get.Content);
            s.SetCurrentCountry("uluru");
            ScreenManager.Get.AddScreen(s);
        }
Example #6
0
        public override void Update(GameTime dt)
        {
            if (firstUpdate)
            {
                AudioManager.StopTheMusic();
                AudioManager.PlayMusic("francemusic");
                firstUpdate = false;
            }

            base.Update(dt);

            if (AudioManager.PlayingMusicPosition > 11.7)
            {
                longstrip.PosX = -Jabber.BaseGame.Get.BackBufferWidth / 2.0f;
                timer1         = 1;
                timer2         = 1;
            }

            if (timer1 < 1)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                {
                    timer2 += gttf(dt) / 3.0f;
                }
            }
            else
            {
                timer3 += gttf(dt);
                if (timer3 > 4.0f)
                {
                    Vector4 col = finalimage.Colour.ToVector4();
                    float   a   = JabMath.LinearMoveTowards(col.W, 0.0f, gttf(dt));
                    finalimage.Colour = new Color(a, a, a, a);

                    if (a == 0)
                    {
                        RaiseFlag(Flags.DELETE);
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(BaseGame.Get.Content);
                        s.SetCurrentCountry("paris");
                        ScreenManager.Get.AddScreen(s);
                    }
                }
            }
        }
Example #7
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);
                    }
                }
            }
        }
Example #8
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            if (timer1 < 1)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                {
                    timer2 += gttf(dt) / 4.0f;
                }
            }
            else
            {
                finalimage.PosX = JabMath.LinearMoveTowards(finalimage.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (finalimage.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                {
                    timer3 += gttf(dt) / 4.0f;
                }
                if (timer3 > 1.0f)
                {
                    RaiseFlag(Flags.DELETE);


                    WorldSelectScreen s = new WorldSelectScreen();
                    s.Initialize(BaseGame.Get.Content);
                    s.SetCurrentCountry("polar");
                    ScreenManager.Get.AddScreen(s);
                }
            }
        }
Example #9
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            if (timer1 < 1)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                {
                    timer2 += gttf(dt) / 3.0f;
                }
            }
            else
            {
                // timer3 += gttf(dt);
                // if (timer3 > 4.0f)
                {
                    // Vector4 col = finalimage.Colour.ToVector4();
                    // float a = JabMath.LinearMoveTowards(col.W, 0.0f, gttf(dt));
                    // finalimage.Colour = new Color(a, a, a, a);

                    //if (a == 0)
                    {
                        RaiseFlag(Flags.DELETE);
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(BaseGame.Get.Content);
                        s.SetCurrentCountry("bavaria");
                        ScreenManager.Get.AddScreen(s);
                    }
                }
            }
        }
Example #10
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            if (MediaPlayer.PlayPosition.TotalSeconds > 6)
            {
                timer1 = 1;
            }
            if (MediaPlayer.PlayPosition.TotalSeconds > 11)
            {
                RaiseFlag(Flags.DELETE);

                WorldSelectScreen s = new WorldSelectScreen();
                s.Initialize(BaseGame.Get.Content);
                s.SetCurrentCountry("vesuvius");
                ScreenManager.Get.AddScreen(s);

                return;
            }
            if (timer1 < 1 || !AudioManager.MusicPlaying)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 200 * ScaleFactor);

                if (Math.Abs(longstrip.PosX - -Jabber.BaseGame.Get.BackBufferWidth / 2.0f) < 400 * ScaleFactor)
                {
                    float f = longstrip.Colour.ToVector4().W;
                    f = JabMath.MoveTowards(f, 0, gttf(dt) * 1.3f);
                    longstrip.Colour = Color.White * f;
                    if (f == 0)
                    {
                        timer2 = 1.0f;
                    }
                }

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                {
                    timer2 += gttf(dt) / 4.0f;
                }
            }
            if (Math.Abs(longstrip.PosX - -Jabber.BaseGame.Get.BackBufferWidth / 2.0f) < 400 * ScaleFactor)
            {
                finalimage.PosX = JabMath.LinearMoveTowards(finalimage.PosX, 0, gttf(dt) * 150 * ScaleFactor);

                if (finalimage.PosX == 0)//-Jabber.BaseGame.Get.BackBufferWidth / 3.0f)
                {
                    timer3 += gttf(dt) / 5.5f;
                }
                if (timer3 > 1.0f)
                {
                    RaiseFlag(Flags.DELETE);

                    WorldSelectScreen s = new WorldSelectScreen();
                    s.Initialize(BaseGame.Get.Content);
                    s.SetCurrentCountry("vesuvius");
                    ScreenManager.Get.AddScreen(s);
                }
            }
        }
Example #11
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            currentPlayPos = AudioManager.PlayingMusicPosition;
            for (int i = 0; i < frames.Count; i++)
            {
                frames[i].sprite.PosX = i * BaseGame.Get.BackBufferWidth + shiftx;
            }

            shiftx = JabMath.MoveTowards(shiftx, newShiftXTarget, gttf(dt) * 3.0f, 150);
            if (shiftx == newShiftXTarget && shiftWhen.Count == 0)
            {
                RaiseFlag(Flags.DELETE);
                WorldSelectScreen s = new WorldSelectScreen();
                s.Initialize(Content);
                s.SetCurrentCountry("uluru");
                ScreenManager.Get.AddScreen(s);
            }
            timer += gttf(dt);
            if (shiftWhen.Count > 0)
            {
                if (currentPlayPos > shiftWhen[0] || (!AudioManager.MusicPlaying && timer > shiftWhen[0]))// || (shiftx == 0 && timer > 4.6f))
                {
                    shiftWhen.RemoveAt(0);
                    newShiftXTarget -= BaseGame.Get.BackBufferWidth;
                }
            }
            lastPlayPos = AudioManager.PlayingMusicPosition;
        }
Example #12
0
        public override void Update(GameTime dt)
        {
            if (!AudioManager.MusicPlaying)
            {
                Dictionary <string, string> loctosong = new Dictionary <string, string>();

                string currentSong = AudioManager.CurrentSong;
                if (currentSong == "troublemaker")
                {
                    AudioManager.PlayMusic(location);
                }
                else
                {
                    AudioManager.PlayMusic("troublemaker");
                }
            }
#if WINDOWS_PHONE
            AdSystem.TargetTop = false;
#endif

            ExplosionPlayed = false;
            woodSFX         = cementSFX = glassSFX = false;
            cementTime     -= gttf(dt);
            woodTime       -= gttf(dt);
            glassTime      -= gttf(dt);
            if (!IsTopScreen)
            {
                for (int i = 0; i < scene.Nodes.Count; i++)
                {
                    //if (scene.Nodes[i] is Fox)
                    {
                        scene.Nodes[i].Update(dt);
                    }
                }
                return;
            }
            feathers.Update(dt);
            if (!loadedUp)
            {
                return;
            }
            if (CheckFlag(Jabber.Flags.FADE_IN))
            {
                if (loadedUp)
                {
                    OnFadeInComplete();
                }
            }
            else
            {
                world.Update(dt);
                base.Update(dt);
                timer   += gttf(dt);
                gameTime = dt;

                CheckEndGame(dt);
            }

            if (blank != null)
            {
                blank.Update(dt);
                if (blank.StateFlag == Jabber.StateFlag.FADE_IN_COMPLETE)
                {
                    if (!IsQuitting)
                    {
                        LevelEndScreen n = new LevelEndScreen(this);
                        n.Initialize(Content);
                        ScreenManager.Get.AddScreen(n);

                        LowerFlag(Jabber.Flags.FADE_OUT);
                        LowerFlag(Jabber.Flags.FADE_IN);

                        if (GetRemainingFox() == 0)
                        {
                            AudioManager.PlayOnce("Sounds/Win_Stinger");
                        }
                        else
                        {
                            AudioManager.PlayOnce("Sounds/Lose_Stinger");
                        }
                    }
                    else
                    {
                        RaiseFlag(Jabber.Flags.DELETE);
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(Content);
                        s.SetCurrentCountry(location);
                        ScreenManager.Get.AddScreen(s);
                    }
                }
            }
        }
Example #13
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            if (MediaPlayer.PlayPosition.TotalSeconds > 6)
            {
                timer1 = 1;
            }
            if (MediaPlayer.PlayPosition.TotalSeconds > 11)
            {
                RaiseFlag(Flags.DELETE);

                WorldSelectScreen s = new WorldSelectScreen();
                s.Initialize(BaseGame.Get.Content);
                s.SetCurrentCountry("vesuvius");
                ScreenManager.Get.AddScreen(s);

                return;
            }
            if (timer1 < 1 || !AudioManager.MusicPlaying)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 200 * ScaleFactor);

                if (Math.Abs(longstrip.PosX - -Jabber.BaseGame.Get.BackBufferWidth / 2.0f) < 400 * ScaleFactor)
                {
                    float f = longstrip.Colour.ToVector4().W;
                    f = JabMath.MoveTowards(f, 0, gttf(dt) * 1.3f);
                    longstrip.Colour = Color.White * f;
                    if (f == 0)
                    {
                        timer2 = 1.0f;
                    }
                }

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                {
                    timer2 += gttf(dt) / 4.0f;
                }
            }
            if (Math.Abs(longstrip.PosX - -Jabber.BaseGame.Get.BackBufferWidth / 2.0f) < 400 * ScaleFactor)
            {
                finalimage.PosX = JabMath.LinearMoveTowards(finalimage.PosX, 0, gttf(dt) * 150 * ScaleFactor);

                if (finalimage.PosX == 0)//-Jabber.BaseGame.Get.BackBufferWidth / 3.0f)
                    timer3 += gttf(dt) / 5.5f;
                if (timer3 > 1.0f)
                {
                    RaiseFlag(Flags.DELETE);

                    WorldSelectScreen s = new WorldSelectScreen();
                    s.Initialize(BaseGame.Get.Content);
                    s.SetCurrentCountry("vesuvius");
                    ScreenManager.Get.AddScreen(s);
                }
            }
        }
Example #14
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            if (timer1 < 1)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                    timer2 += gttf(dt) / 4.0f;
            }
            else
            {
                finalimage.PosX = JabMath.LinearMoveTowards(finalimage.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (finalimage.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                    timer3 += gttf(dt) / 4.0f;
                if (timer3 > 1.0f)
                {
                    RaiseFlag(Flags.DELETE);

                    WorldSelectScreen s = new WorldSelectScreen();
                    s.Initialize(BaseGame.Get.Content);
                    s.SetCurrentCountry("polar");
                    ScreenManager.Get.AddScreen(s);
                }
            }
        }
Example #15
0
        public override void Update(GameTime dt)
        {
            base.Update(dt);

            if (timer1 < 1)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                    timer2 += gttf(dt) / 3.0f;
            }
            else
            {
               // timer3 += gttf(dt);
               // if (timer3 > 4.0f)
                {
                   // Vector4 col = finalimage.Colour.ToVector4();
                   // float a = JabMath.LinearMoveTowards(col.W, 0.0f, gttf(dt));
                   // finalimage.Colour = new Color(a, a, a, a);

                    //if (a == 0)
                    {
                        RaiseFlag(Flags.DELETE);
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(BaseGame.Get.Content);
                        s.SetCurrentCountry("bavaria");
                        ScreenManager.Get.AddScreen(s);
                    }
                }
            }
        }
Example #16
0
        public override void Update(GameTime dt)
        {
            if (firstUpdate)
            {
                AudioManager.StopTheMusic();
                AudioManager.PlayMusic("francemusic");
                firstUpdate = false;
            }

            base.Update(dt);

            if (AudioManager.PlayingMusicPosition > 11.7)
            {
                longstrip.PosX = -Jabber.BaseGame.Get.BackBufferWidth / 2.0f;
                timer1 = 1;
                timer2 = 1;
            }

            if (timer1 < 1)
            {
                timer1 += gttf(dt) / 3.0f;
            }
            else if (timer2 < 1)
            {
                longstrip.PosX = JabMath.LinearMoveTowards(longstrip.PosX, -Jabber.BaseGame.Get.BackBufferWidth / 2.0f, gttf(dt) * 150 * ScaleFactor);

                if (longstrip.PosX == -Jabber.BaseGame.Get.BackBufferWidth / 2.0f)
                    timer2 += gttf(dt) / 3.0f;
            }
            else
            {
                timer3 += gttf(dt);
                if (timer3 > 4.0f)
                {
                    Vector4 col = finalimage.Colour.ToVector4();
                    float a = JabMath.LinearMoveTowards(col.W, 0.0f, gttf(dt));
                    finalimage.Colour = new Color(a, a, a, a);

                    if (a == 0)
                    {
                        RaiseFlag(Flags.DELETE);
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(BaseGame.Get.Content);
                        s.SetCurrentCountry("paris");
                        ScreenManager.Get.AddScreen(s);
                    }
                }
            }
        }
Example #17
0
        public override void Update(GameTime dt)
        {
            if (!AudioManager.MusicPlaying)
            {
                Dictionary<string, string> loctosong = new Dictionary<string, string>();

                string currentSong = AudioManager.CurrentSong;
                if (currentSong == "troublemaker")
                {
                    AudioManager.PlayMusic(location);
                }
                else
                {
                    AudioManager.PlayMusic("troublemaker");
                }
            }
            #if WINDOWS_PHONE
            AdSystem.TargetTop = false;
            #endif

            ExplosionPlayed = false;
            woodSFX = cementSFX = glassSFX = false;
            cementTime -= gttf(dt);
            woodTime -= gttf(dt);
            glassTime -= gttf(dt);
            if (!IsTopScreen)
            {
                for (int i = 0; i < scene.Nodes.Count; i++)
                {
                    //if (scene.Nodes[i] is Fox)
                    {
                        scene.Nodes[i].Update(dt);
                    }
                }
                return;
            }
            feathers.Update(dt);
            if (!loadedUp)
            {
                return;
            }
            if (CheckFlag(Jabber.Flags.FADE_IN))
            {
                if (loadedUp)
                {
                    OnFadeInComplete();
                }
            }
            else
            {
                world.Update(dt);
                base.Update(dt);
                timer += gttf(dt);
                gameTime = dt;

                CheckEndGame(dt);
            }

            if (blank != null)
            {
                blank.Update(dt);
                if (blank.StateFlag == Jabber.StateFlag.FADE_IN_COMPLETE)
                {
                    if (!IsQuitting)
                    {
                        LevelEndScreen n = new LevelEndScreen(this);
                        n.Initialize(Content);
                        ScreenManager.Get.AddScreen(n);

                        LowerFlag(Jabber.Flags.FADE_OUT);
                        LowerFlag(Jabber.Flags.FADE_IN);

                        if(GetRemainingFox() == 0)
                            AudioManager.PlayOnce("Sounds/Win_Stinger");
                        else
                            AudioManager.PlayOnce("Sounds/Lose_Stinger");
                    }
                    else
                    {
                        RaiseFlag(Jabber.Flags.DELETE);
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(Content);
                        s.SetCurrentCountry(location);
                        ScreenManager.Get.AddScreen(s);
                    }
                }
            }
        }
Example #18
0
 void KillLevel()
 {
     WorldSelectScreen s = new WorldSelectScreen();
     s.Initialize(Content);
     ScreenManager.Get.AddScreen(s);
     RaiseFlag(Jabber.Flags.DELETE);
 }
Example #19
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);
                    }
                }
            }
        }
Example #20
0
        public override void Update(GameTime dt)
        {
            if (!IsTopScreen)
            {
                return;
            }
            #if WINDOWS_PHONE
            AdSystem.TargetTop = false;
            #endif
            base.Update(dt);

            if (fader != null)
            {
                if (fader.StateFlag == Jabber.StateFlag.FADE_IN_COMPLETE)
                {
                    if (ChicksnVixensGame.Get.GetTotalStars("uluru") == 0)
                    {
                        ChicksnVixensGame.Get.PlayCurrentLocationSotry("uluru");
                        RaiseFlag(Flags.DELETE);
                    }
                    else
                    {
                        WorldSelectScreen s = new WorldSelectScreen();
                        s.Initialize(Content);
                        ScreenManager.Get.AddScreen(s);
                        RaiseFlag(Flags.DELETE);
                    }
                }
            }
        }