1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
if (clover_overlay_alpha > 0) |
4 |
{ |
5 |
draw_set_alpha(clover_overlay_alpha); |
6 |
shader_set(sh_flash); |
7 |
with (obj_player_npc) |
8 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, other.clover_overlay_alpha); |
9 |
shader_reset(); |
10 |
draw_set_alpha(1); |
11 |
} |
12 |
if (circle_alpha > 0) |
13 |
{ |
14 |
draw_set_circle_precision(48); |
15 |
if (!surface_exists(surf)) |
16 |
surf = surface_create(room_width, room_height); |
17 |
surface_set_target(surf); |
18 |
draw_clear_alpha(c_black, 0); |
19 |
draw_set_alpha(circle_alpha); |
20 |
draw_set_color(c_white); |
21 |
draw_circle(x - 0.5, y - 0.5, circle_radius, false); |
22 |
draw_set_alpha(1); |
23 |
gpu_set_blendmode(bm_subtract); |
24 |
draw_circle_color(x - 0.5, y - 0.5, circle_radius * 0.95, c_white, c_white, false); |
25 |
gpu_set_blendmode(bm_normal); |
26 |
surface_reset_target(); |
27 |
draw_set_circle_precision(24); |
28 |
draw_surface(surf, 0, 0); |
29 |
} |