Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_ch5_LW07_spotlight_Draw_0

(view raw script w/o annotations or w/e)
1
var _x = camerax() + (view_wport[0] / 2);
2
y_pos = 14;
3
gpu_set_blendenable(false);
4
gpu_set_colorwriteenable(false, false, false, true);
5
draw_set_alpha(overlay_alpha);
6
draw_set_color(c_black);
7
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
8
draw_set_color(c_white);
9
draw_set_alpha(1);
10
draw_set_alpha(0);
11
d_triangle_color(_x, y_pos - 620, _x - 70, y_pos + 270, _x + 70, y_pos + 270, 16777215, 0, 0, false);
12
d_ellipse(_x - 70, y_pos + 240, _x + 70, y_pos + 300, false);
13
draw_set_alpha(1);
14
gpu_set_blendenable(true);
15
gpu_set_colorwriteenable(true, true, true, true);
16
gpu_set_blendmode_ext(bm_src_alpha, bm_inv_dest_alpha);
17
draw_set_alpha(0);
18
draw_set_color(c_black);
19
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
20
draw_set_color(c_white);
21
draw_set_alpha(1);
22
gpu_set_blendmode(bm_normal);
23
gpu_set_blendmode(bm_add);
24
draw_set_alpha(0.5);
25
d_triangle_color(_x, y_pos - 620, _x - 70, y_pos + 270, _x + 70, y_pos + 270, 16777215, 0, 0, false);
26
d_ellipse(_x - 70, y_pos + 240, _x + 70, y_pos + 300, false);
27
draw_set_alpha(1);
28
gpu_set_blendmode(bm_normal);