1 | if (alpha < 1) |
2 | alpha += 0.05 |
3 | if (alpha >= 0.99 && (!alarm[0]) && scroll == 0) |
4 | alarm[0] = 45 |
5 | if (scroll == 1) |
6 | { |
7 | yy -= scrollSpeed |
8 | scrollSpeed = 2 |
9 | } |
10 | if (yy < scrollMax) |
11 | scroll = 2 |
12 | if (scroll == 2) |
13 | { |
14 | yy -= scrollSpeed |
15 | if (scrollSpeed > 0) |
16 | scrollSpeed -= 0.01 |
17 | if (scrollSpeed < 0) |
18 | { |
19 | scrollSpeed = 0 |
20 | yy = round(yy) |
21 | if (!alarm[2]) |
22 | alarm[2] = 180 |
23 | } |
24 | } |