Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_DCA04_lighting_Draw_0

(view raw script w/o annotations or w/e)
1
if (turn_off)
2
    exit;
3
gpu_set_blendenable(false);
4
gpu_set_colorwriteenable(false, false, false, true);
5
draw_set_alpha(0);
6
draw_triangle_color(light_x_pos, 1020, light_x_pos - 80, light_height, light_x_pos + 80, light_height, c_white, 0, 0, false);
7
d_ellipse(light_x_pos - 80, light_height - 20 - 5, light_x_pos + 80, light_height + 30, false);
8
draw_set_alpha(1);
9
gpu_set_blendenable(true);
10
gpu_set_colorwriteenable(true, true, true, true);
11
gpu_set_blendmode_ext(bm_src_alpha, bm_inv_dest_alpha);
12
gpu_set_alphatestenable(true);
13
draw_set_color(c_black);
14
ossafe_fill_rectangle(light_xx, cameray(), light_xx + room_width, room_height, false);
15
draw_set_color(c_white);
16
gpu_set_alphatestenable(false);
17
gpu_set_blendmode(bm_normal);