1 |
if (glow_in_out != 0) |
2 |
{ |
3 |
glow_lerp = round(lerp(glow_lerp, 1, 0.35) * 100) / 100; |
4 |
if (glow_in_out == 1) |
5 |
scr_draw_outlinescr_draw_outlinefunction scr_draw_outline(arg0, arg1, arg2)
{
gpu_set_fog(true, arg1, 0, 0);
var __xdirA = arg0;
var __xdirB = 0;
var __ydirA = 0;
var __ydirB = arg0;
if ((image_angle % 90) != 0)
{
__xdirA = lengthdir_x(arg0, image_angle);
__xdirB = lengthdir_x(arg0, image_angle + 90);
__ydirA = lengthdir_y(arg0, image_angle + 90);
__ydirB = lengthdir_y(arg0, image_angle);
}
draw_sprite_ext(sprite_index, image_index, x + __xdirA, y + __ydirA, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
draw_sprite_ext(sprite_index, image_index, x - __xdirA, y - __ydirA, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
draw_sprite_ext(sprite_index, image_index, x + __xdirB, y + __ydirB, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
draw_sprite_ext(sprite_index, image_index, x - __xdirB, y - __ydirB, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
gpu_set_fog(false, c_white, 0, 0);
} (2, recruit_col, glow_lerp); |
6 |
else |
7 |
scr_draw_outlinescr_draw_outlinefunction scr_draw_outline(arg0, arg1, arg2)
{
gpu_set_fog(true, arg1, 0, 0);
var __xdirA = arg0;
var __xdirB = 0;
var __ydirA = 0;
var __ydirB = arg0;
if ((image_angle % 90) != 0)
{
__xdirA = lengthdir_x(arg0, image_angle);
__xdirB = lengthdir_x(arg0, image_angle + 90);
__ydirA = lengthdir_y(arg0, image_angle + 90);
__ydirB = lengthdir_y(arg0, image_angle);
}
draw_sprite_ext(sprite_index, image_index, x + __xdirA, y + __ydirA, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
draw_sprite_ext(sprite_index, image_index, x - __xdirA, y - __ydirA, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
draw_sprite_ext(sprite_index, image_index, x + __xdirB, y + __ydirB, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
draw_sprite_ext(sprite_index, image_index, x - __xdirB, y - __ydirB, image_xscale, image_yscale, image_angle, c_white, image_alpha * arg2);
gpu_set_fog(false, c_white, 0, 0);
} (2, recruit_col, 1 - glow_lerp); |
8 |
if (glow_lerp >= 0.95) |
9 |
{ |
10 |
if (glow_in_out == 1) |
11 |
glow_in_out = -1; |
12 |
else |
13 |
glow_in_out = 0; |
14 |
glow_lerp = 0; |
15 |
} |
16 |
} |
17 |
if (fade_in_out) |
18 |
{ |
19 |
draw_sprite_ext_flash(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, merge_color(start_color, end_color, color_lerp), 1); |
20 |
if (glow_in_out == 0 && color_lerp >= 0.35) |
21 |
{ |
22 |
glow_in_out = 1; |
23 |
glow_lerp = 0; |
24 |
} |
25 |
} |
26 |
else |
27 |
{ |
28 |
draw_self(); |
29 |
} |
30 |
if (con == 4) |
31 |
{ |
32 |
if (instance_exists(big_square)) |
33 |
{ |
34 |
big_square.image_alpha = clamp01(shine_timer / 20); |
35 |
} |
36 |
else |
37 |
{ |
38 |
draw_set_color(c_white); |
39 |
draw_rectangle(camerax(), cameray(), camerax() + 640, cameray() + 480, 0); |
40 |
} |
41 |
shine_timer++; |
42 |
if (shine_timer == 30) |
43 |
thrash_con = 3; |
44 |
} |
45 |
if (con >= 5 || (con == 4 && shine_timer >= 40)) |
46 |
{ |
47 |
draw_set_color(c_white); |
48 |
draw_rectangle(camerax(), cameray(), camerax() + 640, cameray() + 480, 0); |
49 |
if (streak_timer == (4 / f)) |
50 |
{ |
51 |
line = instance_create(camerax() + 20 + irandom(120), cameray() + 652 + irandom(32), obj_anime_bg_line); |
52 |
line.image_blend = #8EAAEA; |
53 |
line.depth = depth - 1; |
54 |
} |
55 |
if (streak_timer == (24 / f)) |
56 |
{ |
57 |
line = instance_create(camerax() + 20 + irandom(120), cameray() + 652 + irandom(32), obj_anime_bg_line); |
58 |
line.image_blend = #8EAAEA; |
59 |
line.depth = depth - 1; |
60 |
} |
61 |
if (streak_timer == (44 / f)) |
62 |
{ |
63 |
line = instance_create(camerax() + 20 + irandom(120), cameray() + 652 + irandom(32), obj_anime_bg_line); |
64 |
line.image_blend = #8EAAEA; |
65 |
line.depth = depth - 1; |
66 |
} |
67 |
if (streak_timer == (14 / f)) |
68 |
{ |
69 |
line = instance_create((camerax() + 620) - irandom(120), cameray() + 652 + irandom(32), obj_anime_bg_line); |
70 |
line.image_blend = #8EAAEA; |
71 |
line.depth = depth - 1; |
72 |
} |
73 |
if (streak_timer == (34 / f)) |
74 |
{ |
75 |
line = instance_create((camerax() + 620) - irandom(120), cameray() + 652 + irandom(32), obj_anime_bg_line); |
76 |
line.image_blend = #8EAAEA; |
77 |
line.depth = depth - 1; |
78 |
} |
79 |
if (streak_timer == (44 / f)) |
80 |
{ |
81 |
line = instance_create((camerax() + 620) - irandom(120), cameray() + 652 + irandom(32), obj_anime_bg_line); |
82 |
line.image_blend = #8EAAEA; |
83 |
line.depth = depth - 1; |
84 |
} |
85 |
streak_timer++; |
86 |
if (streak_timer >= (50 / f)) |
87 |
streak_timer = 0; |
88 |
} |