Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_PGS01F_spotlight_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_alpha(0.2);
2
draw_set_color(c_black);
3
ossafe_fill_rectangle(camerax(), cameray(), camerax() + view_wport[0], cameray() + view_hport[0]);
4
draw_set_color(c_white);
5
draw_set_alpha(1);
6
gpu_set_blendenable(false);
7
gpu_set_colorwriteenable(false, false, false, true);
8
draw_set_alpha(0);
9
draw_triangle_color(x, y - 620, x - 80, y + 320, x + 80, y + 320, c_white, 0, 0, false);
10
draw_ellipse(x - 80, y + 290, x + 80, y + 350, false);
11
draw_set_alpha(1);
12
gpu_set_blendenable(true);
13
gpu_set_colorwriteenable(true, true, true, true);
14
gpu_set_blendmode_ext(bm_src_alpha, bm_inv_dest_alpha);
15
draw_set_color(c_black);
16
ossafe_fill_rectangle(camerax(), cameray(), camerax() + view_wport[0], cameray() + view_hport[0]);
17
draw_set_color(c_white);
18
gpu_set_blendmode(bm_normal);
19
gpu_set_blendmode(bm_add);
20
draw_set_alpha(0.5);
21
draw_triangle_color(x, y - 620, x - 80, y + 320, x + 80, y + 320, c_white, 0, 0, false);
22
draw_set_alpha(0.25);
23
draw_ellipse(x - 80, y + 290, x + 80, y + 350, false);
24
draw_set_alpha(1);
25
gpu_set_blendmode(bm_normal);