update method
Implementation
@override
void update() {
y += speed; // Fall down
x += drift; // Drift left or right
// Reset snowflake if it goes out of bounds
if (y > screenSize.height || x < 0 || x > screenSize.width) {
reset();
}
}
@override
void update() {
y += speed; // Fall down
x += drift; // Drift left or right
// Reset snowflake if it goes out of bounds
if (y > screenSize.height || x < 0 || x > screenSize.width) {
reset();
}
}