public override void Update(GameTime gameTime)
 {
     Hand.Update(gameTime);
     dumbbell.Update(gameTime);
     treadmill.Update(gameTime);
     base.Update(gameTime);
 }
 public override void Update(GameTime gameTime)
 {
     Hand.Update(gameTime);
     newGame.Update(gameTime);
     instructions.Update(gameTime);
     highscores.Update(gameTime);
     exit.Update(gameTime);
     base.Update(gameTime);
 }
示例#3
0
        public override void Update(GameTime gameTime)
        {
            hand.Update(gameTime);
            foreach (Button b in buttons)
            {
                b.Update(gameTime);
            }

            base.Update(gameTime);
        }
        public override void Update(GameTime gameTime)
        {
            if (saveAvailable)
            {
                saveButton.Update(gameTime);
            }
            nextButton.Update(gameTime);

            hand.Update(gameTime);
            base.Update(gameTime);
        }
示例#5
0
 public override void Update(GameTime gameTime)
 {
     hand.Update(gameTime);
     button.Update(gameTime);
     button.Clicked += button_Clicked;
     gesture         = kinect.Gesture;
     if (FrameNumber % 240 == 0)
     {
         kinect.Gesture = "";
     }
     base.Update(gameTime);
 }
 public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
 {
     //  if((hand.position.X>(screenWidth/2 -200)) && (hand.position.X<(screenWidth/2 +200)))
     if (Constants.isSwappingHand)
     {
         counter++;
         if (counter == avatars.Length)
         {
             counter = 0;
         }
         currentAvatar = avatars[counter];
         Constants.ResetFlags();
     }
     button.Update(gameTime);
     hand.Update(gameTime);
     base.Update(gameTime);
 }
示例#7
0
        public override void Update(GameTime gameTime)
        {
            virusBar.SetCurrentValue(boss.health);
            //       cam.Scale+=0.01f;
            boss.AttackBoss(1);
            if (boss.BossDied())
            {
                flag = true;
                player.RandomReward();
                boss.AttackBoss(3000);
            }
            if (flag == true)
            {
                hand.Update(gameTime);
                button.Update(gameTime);
                FreezeScreen();
            }

            if (player.HasShield())
            {
                shieldRewarded = true; swordRewarded = false;
            }
            else if (player.HasSword())
            {
                swordRewarded  = true;
                shieldRewarded = false;
            }

            if (displayRewards)
            {
                levelPassed.HorizontalAnimation();
                if (swordRewarded)
                {
                    SwordAnimation(gameTime);
                }

                if (shieldRewarded)
                {
                    ShieldAnimation(gameTime);
                }
            }
            base.Update(gameTime);
            cam.Update(gameTime);
        }
 public override void Update(GameTime gameTime)
 {
     okButton.Update(gameTime);
     hand.Update(gameTime);
     base.Update(gameTime);
 }