public void onTick() {
        if (active) {
            if (y > 416 && tick < NOTIFICATION_TICKS) {
                y -= NOTIFICATION_SPEED;
            } else {
                if (tick >= NOTIFICATION_TICKS) {
                    if (y <= 480) {
                        y += NOTIFICATION_SPEED;
                    } else {
                        if (!queue.isEmpty()) {
                            showMessage(queue.poll());
                        } else {
                            active = false;
                        }
                    }
                } else {
                    tick++;
                }
            }
        }
    }