Beispiel #1
0
 public void Jump()
 {
     if (velocity.Y > minVelocity.Y && !isFalling)
     {
         physState   = new JumpingState(this);
         velocity.Y -= ValueHolder.jumpingVelocity;
         state.Up();
     }
 }
Beispiel #2
0
 public void Jump()
 {
     if (velocity.Y > minVelocity.Y && !isFalling)
     {
         physState   = new JumpingState(this, game);
         state       = new RightJumpingTeno(game.level.teno, game);
         velocity.Y -= ValueHolder.jumpingVelocity;
         state.Up();
     }
 }