1 | if (falling == 0) |
2 | { |
3 | if (bonk == 1) |
4 | { |
5 | hspeed = 0; |
6 | vspeed = 0; |
7 | bonk = 0; |
8 | } |
9 | else if (alarm[2] < 1) |
10 | { |
11 | xxx = (other.bbox_left + other.bbox_right) / 2; |
12 | yyy = (other.bbox_top + other.bbox_bottom) / 2; |
13 | direction = point_direction(x, y, xxx, yyy); |
14 | speed = 4; |
15 | speed += ((1 / size) + 0.1); |
16 | hspeed = -hspeed; |
17 | vspeed = -vspeed; |
18 | shrinko = 30; |
19 | alarm[2] = 15; |
20 | } |
21 | t = 1; |
22 | } |
23 | timeincrease = 1; |