private void updateHitbox() {
        hitbox.x += xvel;
        hitbox.y += yvel;
        if (incHitboxAlpha) {
            hitboxAlpha += 0.1;
            if (hitboxAlpha > 1) {
                hitboxAlpha = 1;
                incHitboxAlpha = false;
            }
        }
        else {
            hitboxAlpha -= 0.1;
            if (hitboxAlpha < 0) {
                hitboxAlpha = 0;
                incHitboxAlpha = true;
            }
        }
    }