1 | draw_self(); |
2 | can = 0; |
3 | if (y < -20) |
4 | can = 1; |
5 | if (x < (__view_get(e__VW.XView, 0) - 20)) |
6 | can = 1; |
7 | if (x > (__view_get(e__VW.XView, 0) + 660)) |
8 | can = 1; |
9 | if (can == 1) |
10 | { |
11 | draw_set_color(c_red); |
12 | draw_line(x, y, x + lengthdir_x(1000, direction), y + lengthdir_y(1000, direction)); |
13 | } |
14 | if (can == 0 && soundcon == 0) |
15 | { |
16 | snd_play(snd_spearrise); |
17 | soundcon = 1; |
18 | } |
19 | |
20 | enum e__VW |
21 | { |
22 | XView, |
23 | YView, |
24 | WView, |
25 | HView, |
26 | Angle, |
27 | HBorder, |
28 | VBorder, |
29 | HSpeed, |
30 | VSpeed, |
31 | Object, |
32 | Visible, |
33 | XPort, |
34 | YPort, |
35 | WPort, |
36 | HPort, |
37 | Camera, |
38 | SurfaceID |
39 | } |