Ejemplo n.º 1
0
 public override void Update(GameTime gameTime)
 {
     changeDirection.Update(gameTime);
     changeState.Update(gameTime);
     sword.Update(gameTime);
     if (runningRight)
     {
         facingRight = true;
     }
     else
     {
         facingRight = false;
     }
     if (facingRight)
     {
         effect = SpriteEffects.None;
     }
     if (!facingRight)
     {
         effect = SpriteEffects.FlipHorizontally;
     }
     SelectingState();
     AI();
     if (Keyboard.GetState().IsKeyDown(Keys.P) && shuri == null)
     {
         System.Console.WriteLine("SHOOT!");
         shuri = new Shuriken(rect.Center, player.Rect.Center);
     }
     if (shuri != null)
     {
         shuri.Update(gameTime);
     }
 }
Ejemplo n.º 2
0
 private void UpdateCooldowns(GameTime gameTime)
 {
     levitating.Update(gameTime);
     firstAbility.Update(gameTime);
     secondAbility.Update(gameTime);
     falling.Update(gameTime);
     thirdAbility.Update(gameTime);
 }
Ejemplo n.º 3
0
 public override void Update(GameTime gameTime)
 {
     levitating.Update(gameTime);
     firstAbility.Update(gameTime);
     secondAbility.Update(gameTime);
     falling.Update(gameTime);
     thirdAbility.Update(gameTime);
     second.Update(gameTime);
 }
Ejemplo n.º 4
0
        public override void Update(GameTime gameTime)
        {
            input.Update(gameTime);
            if (gravity)
            {
                physics.Update(gameTime);
            }
            abilityManager.Update(gameTime);
            movementController.Update(gameTime);

            second.Update(gameTime);
            UpdateStats(gameTime);
        }