Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_BTB03_spotlight_Draw_0

(view raw script w/o annotations or w/e)
1
gpu_set_blendenable(false);
2
gpu_set_colorwriteenable(false, false, false, true);
3
draw_set_alpha(overlay_alpha);
4
draw_set_color(c_black);
5
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
6
draw_set_color(c_white);
7
draw_set_alpha(1);
8
draw_set_alpha(0);
9
draw_triangle_color(x, y_pos - 620, x - 140, y_pos + 270, x + 140, y_pos + 270, c_white, 0, 0, false);
10
draw_ellipse(x - 140, y_pos + 240, x + 140, y_pos + 300, 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_alpha(0);
16
draw_set_color(c_black);
17
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
18
draw_set_color(c_white);
19
draw_set_alpha(1);
20
gpu_set_blendmode(bm_normal);
21
gpu_set_blendmode(bm_add);
22
draw_set_alpha(0.5);
23
draw_triangle_color(x, y_pos - 620, x - 140, y_pos + 270, x + 140, y_pos + 270, c_white, 0, 0, false);
24
draw_set_alpha(1);
25
gpu_set_blendmode(bm_normal);