Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_noellehouse_kris_overlay_Draw_0

(view raw script w/o annotations or w/e)
1
if (!overlay_active)
2
    exit;
3
pulse_timer--;
4
if (pulse_timer <= 0)
5
{
6
    pulse_timer = pulse_time;
7
    pulse_dark();
8
}
9
gpu_set_blendenable(true);
10
gpu_set_colorwriteenable(false, false, false, true);
11
draw_set_alpha(overlay_alpha);
12
ossafe_fill_rectangle(0, 0, room_width + 20, room_height + 20, false);
13
draw_set_alpha(1);
14
if (target != -4)
15
{
16
    heart_siner++;
17
    d_circle(target.x + 9 + (sin(heart_siner / 40) * 0.4), target.y + 16 + (cos(heart_siner / 40) * 0.4), heart_radius + 3.2 + (sin(heart_siner / 20) * 0.6), false);
18
}
19
gpu_set_blendenable(true);
20
gpu_set_colorwriteenable(true, true, true, true);
21
gpu_set_blendmode_ext(bm_src_alpha, bm_dest_alpha);
22
draw_set_alpha(0);
23
draw_set_color(c_black);
24
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
25
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
26
draw_set_color(c_white);
27
draw_set_alpha(1);
28
gpu_set_blendmode(bm_normal);
29
gpu_set_blendenable(true);
30
gpu_set_colorwriteenable(false, false, false, true);
31
draw_set_alpha(overlay_alpha);
32
ossafe_fill_rectangle(0, 0, room_width + 20, room_height + 20, false);
33
draw_set_alpha(1);
34
if (target != -4)
35
{
36
    heart_siner++;
37
    d_circle(target.x + 9 + (sin(heart_siner / 30) * 0.4), target.y + 18 + (cos(heart_siner / 30) * 0.4), heart_radius + 4 + (sin(heart_siner / 30) * 0.6), false);
38
}
39
gpu_set_blendenable(true);
40
gpu_set_colorwriteenable(true, true, true, true);
41
gpu_set_blendmode_ext(bm_src_alpha, bm_dest_alpha);
42
draw_set_alpha(0);
43
draw_set_color(c_black);
44
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
45
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
46
draw_set_color(c_white);
47
draw_set_alpha(1);
48
gpu_set_blendmode(bm_normal);