move method

void move(
  1. BubbleConfig config,
  2. double time
)

Implementation

void move(BubbleConfig config, double time) {
  y -= speed;

  if (config.enableWobble) {
    wobbleOffset = sin(time + wobbleSpeed) * config.wobbleIntensity;
    x += wobbleOffset;
  }
}