@Override
 public void reset() {
   moveDirection.setZero();
   lastMoveDirection.setZero();
   dropItem = false;
   speed = 0;
 }
Example #2
0
 private void respawn() {
   position.set(spawnLocation);
   lastFramePosition.set(spawnLocation);
   velocity.setZero();
   jumpState = Enums.JumpState.FALLING;
   facing = Direction.RIGHT;
   walkState = Enums.WalkState.NOT_WALKING;
 }
Example #3
0
  public void init() {
    position.set(spawnLocation);
    lastFramePosition.set(spawnLocation);
    velocity.setZero();
    jumpState = Enums.JumpState.FALLING;
    facing = Direction.RIGHT;
    walkState = Enums.WalkState.NOT_WALKING;

    // TODO: Initialize ammo
    ammo = Constants.INTIAL_AMMO;
  }
Example #4
0
 @Override
 public void reset() {
   bottomLeft.setZero();
   topRight.setZero();
   color.set(debugColor);
 }