@Override public void reset() { moveDirection.setZero(); lastMoveDirection.setZero(); dropItem = false; speed = 0; }
private void respawn() { position.set(spawnLocation); lastFramePosition.set(spawnLocation); velocity.setZero(); jumpState = Enums.JumpState.FALLING; facing = Direction.RIGHT; walkState = Enums.WalkState.NOT_WALKING; }
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; }
@Override public void reset() { bottomLeft.setZero(); topRight.setZero(); color.set(debugColor); }