update method
Implementation
@override
void update() {
y += speed;
x += sin(angle); // Sway left and right
angle += 0.05; // Gradual shift in angle
// Reset if out of bounds
if (y > screenSize.height || x < 0 || x > screenSize.width) {
reset();
}
}