1 | angle = 0; |
2 | angleadd = 0; |
3 | dmg = 0; |
4 | image_speed = 0; |
5 | direction = random(180); |
6 | if (direction < 10) |
7 | direction += 20; |
8 | if (abs(direction - 90) < 10) |
9 | direction += 30; |
10 | if (abs(direction - 180) < 10) |
11 | direction -= 20; |
12 | speed = 4; |
13 | if (abs(hspeed) < 0.2) |
14 | hspeed *= 3; |
15 | if (abs(vspeed) < 0.2) |
16 | vspeed *= 3; |
17 | friction = -0.04; |
18 | blue = 0; |
19 | alarm[0] = 4; |
20 | offset = 0; |