reset method

void reset()

Implementation

void reset() {
  isDead = false;
  isJumping = false;
  y = groundY;
  velocityY = 0;
  animation = runAnimation;
}