Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_ch5_DW45_darkfountain_event_Draw_0

(view raw script w/o annotations or w/e)
1
siner += 1.5;
2
if (t >= 400)
3
{
4
    rs += 0.5;
5
    draw_set_color(c_white);
6
    for (i = 1; i < 12; i += 1)
7
    {
8
        draw_set_alpha((rs / 16) - (i / 12));
9
        draw_rectangle(320 - (i * i) - (rs * i), 0, 320 + (i * i) + (rs * i), 500, 0);
10
    }
11
    draw_set_alpha(1);
12
}
13
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, 0, c_white, siner / 8);
14
draw_sprite_ext(sprite_index, image_index, x, y, siner / 4, siner / 4, 0, c_white, 1.6 - (siner / 16));
15
draw_sprite_ext(sprite_index, image_index, x, y, siner / 8, siner / 8, 0, c_white, 1.6 - (siner / 24));
16
t += 1;
17
if (t >= 20)
18
{
19
    if (soundcon == 0)
20
    {
21
        soundcon = 1;
22
        if (
scr_sideb_get_phase
scr_sideb_get_phase

function
scr_sideb_get_phase()
{ var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; } function scr_sideb_active() { return
scr_sideb_get_phase() >= 3;
}
() < 3)
23
            snd_play(snd_usefountain);
24
    }
25
}
26
if (t >= 70 && t <= 240)
27
{
28
    with (obj_ch5_DW45_fountain)
29
    {
30
        adjust = 1;
31
        eyebody *= 0.98;
32
    }
33
    y -= 1;
34
}
35
if (t >= 240 && t < 245)
36
{
37
    with (obj_ch5_DW45_fountain)
38
        adjust = 2;
39
    t = 300;
40
}
41
if (t >= 390 && t < 395)
42
{
43
    t = 400;
44
    siner = 3;
45
    if (soundcon == 1)
46
    {
47
        soundcon = 2;
48
        audio_play_sound(snd_revival, 50, 0);
49
    }
50
}
51
if (t == 440)
52
{
53
    if (!border_show)
54
    {
55
        border_show = true;
56
        with (obj_border_controller)
57
        {
58
            hide_border(1, c_black);
59
            add_overlay_layer(16777215, 0, 1, 50);
60
        }
61
    }
62
}
63
if (t >= 450)
64
{
65
    ds2 += 0.02;
66
    draw_set_alpha(ds2);
67
    draw_set_color(c_white);
68
    draw_rectangle(-10, -10, 999, 999, false);
69
    draw_set_alpha(1);
70
}
71
if (t >= 520)
72
{
73
    global.entrance = 0;
74
    global.interact = 1;
75
    global.fighting = 0;
76
    snd_free_all();
77
    room_goto(room_dw_post_fountain_close);
78
}