1 |
if (nextpoint > finalpoint) |
2 |
{ |
3 |
if (point_distance(x, y, tailx, taily) <= 0) |
4 |
instance_destroy(); |
5 |
} |
6 |
image_yscale = max((laserwidth - 4) / 10, 0); |
7 |
var oldcolor = draw_get_color(); |
8 |
draw_set_color(c_black); |
9 |
if (lasertimer > 0) |
10 |
draw_circle(x, y, laserwidth + (((lasertimer % 4) > 1) ? 4 : 3), 0); |
11 |
else |
12 |
draw_circle(x, y, (laserwidth / 2) + 2, 0); |
13 |
draw_circle(tailx, taily, (laserwidth / 2) + 2, 0); |
14 |
draw_line_width(x, y, tailx, taily, laserwidth + 2); |
15 |
draw_set_color(c_white); |
16 |
draw_line_width(x, y, tailx, taily, laserwidth); |
17 |
if (lasertimer > 0) |
18 |
draw_circle(x, y, laserwidth + (((lasertimer % 4) > 1) ? 3 : 2), 0); |
19 |
else |
20 |
draw_circle(x, y, laserwidth / 2, 0); |
21 |
draw_circle(tailx, taily, laserwidth / 2, 0); |
22 |
draw_set_color(oldcolor); |