@Override
    public void tick(LinkedList<GameObject> object) {
        if (HP <= 0) {
            HP = 0;
            isInvulnerable = true;
            isAlive = false;
            Game.setState(Game.STATE.GAMEOVER);
        }

        x += velX;
        y += velY;

        if (falling || jumping) {
            velY += gravity;

            if (velY > MAX_SPEED) {
                velY = MAX_SPEED;
            }
        }
        updateBitPosition();
        Collision(object);
        removeInvuln();
        walkLeftAnim.runAnimation();
        walkRightAnim.runAnimation();
        invulnWalkLeftAnim.runAnimation();
        invulnWalkRightAnim.runAnimation();
    }