Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_PTB01_spotlight_susie_Draw_0

(view raw script w/o annotations or w/e)
1
if (!spotlight_active)
2
    exit;
3
if (small_base_x < 0)
4
    small_base_x = camerax() + 210;
5
draw_set_alpha(bg_alpha);
6
draw_set_color(c_black);
7
ossafe_fill_rectangle(camerax(), cameray(), camerax() + view_wport[0], cameray() + view_hport[0], false);
8
draw_set_color(c_white);
9
draw_set_alpha(1);
10
gpu_set_blendenable(false);
11
gpu_set_colorwriteenable(false, false, false, true);
12
draw_set_alpha(0);
13
draw_triangle_color(small_base_x, y - 610, small_base_x - 40, y + 315, small_base_x + 40, y + 315, c_white, 0, 0, false);
14
draw_ellipse(small_base_x - 40, y + 300, small_base_x + 40, y + 330, false);
15
draw_set_alpha(1);
16
gpu_set_blendenable(true);
17
gpu_set_colorwriteenable(true, true, true, true);
18
gpu_set_blendmode_ext(bm_src_alpha, bm_inv_dest_alpha);
19
draw_set_alpha(0);
20
draw_set_alpha(1);
21
gpu_set_blendmode(bm_normal);
22
gpu_set_blendmode(bm_add);
23
draw_set_alpha(0.5);
24
draw_triangle_color(small_base_x, y - 610, small_base_x - 40, y + 315, small_base_x + 40, y + 315, c_white, 0, 0, false);
25
draw_set_alpha(0.25);
26
draw_ellipse(small_base_x - 40, y + 300, small_base_x + 40, y + 330, false);
27
draw_set_alpha(1);
28
draw_set_alpha(bg_alpha_2);
29
draw_triangle_color(small_base_x, y - 610, small_base_x - 40, y + 315, small_base_x + 40, y + 315, c_white, 0, 0, false);
30
draw_set_alpha(bg_alpha_2 / 2);
31
draw_ellipse(small_base_x - 40, y + 300, small_base_x + 40, y + 330, false);
32
draw_set_alpha(1);
33
draw_set_alpha(bg_alpha_2);
34
draw_triangle_color(small_base_x, y - 610, small_base_x - 40, y + 315, small_base_x + 40, y + 315, c_white, 0, 0, false);
35
draw_set_alpha(bg_alpha_2 / 2);
36
draw_ellipse(small_base_x - 40, y + 300, small_base_x + 40, y + 330, false);
37
draw_set_alpha(1);
38
gpu_set_blendmode(bm_normal);