public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);

            bNo.Update(gameTime);
            bYes.Update(gameTime);
        }
示例#2
0
        public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);

            octopus.Update(gameTime);

            buttonBeanSearch.Update(gameTime);
            buttonFindRoad.Update(gameTime);
            buttonNextLevel.Update(gameTime);
            buttonBack.Update(gameTime);


            if (!SoundManager.bIsSongInGame)
            {
                SoundManager.PlaySong(SongBackground.songInGame);
            }
        }
示例#3
0
        public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);

            Curtain.sName = "Main Menu";

            btBackToMenu.Update(gameTime);

            for (int i = 0; i < lLevelsStar.Count; i++)
            {
                lLevelButton[i].Update(gameTime);
            }

            if (SoundManager.bIsSongInGame)
            {
                SoundManager.PlaySong(SongBackground.songInMenu);
            }
        }
        public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);

            if (IsActive)
            {
                btStarting.Update(gameTime);
                btAbout.Update(gameTime);
                btHelping.Update(gameTime);
                btExiting.Update(gameTime);

                SongButton.Update(gameTime);
                SoundButton.Update(gameTime);

                if (fVEC != 0)
                {
                    if (bIsButtonGoingUp)
                    {
                        fVEC = -10;
                    }
                    else
                    {
                        fVEC = 5;
                    }

                    btStarting.RectY += fVEC;
                    btAbout.RectY    += fVEC;
                    btExiting.RectY  += fVEC;
                    btHelping.RectY  += fVEC;

                    if (btStarting.RectY <= 320)
                    {
                        bIsButtonGoingUp = false;
                    }

                    if ((btStarting.RectY >= cRectPosition.Y + 50) && (!bIsButtonGoingUp))
                    {
                        fVEC = 0;
                    }
                }
            }
        }