Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_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
        audio_play_sound(snd_usefountain, 50, 0);
23
    }
24
}
25
if (t >= 70 && t <= 240)
26
{
27
    with (obj_darkfountain)
28
    {
29
        adjust = 1;
30
        eyebody *= 0.98;
31
    }
32
    y -= 1;
33
}
34
if (t >= 240 && t < 245)
35
{
36
    with (obj_darkfountain)
37
        adjust = 2;
38
    t = 300;
39
}
40
if (t >= 390 && t < 395)
41
{
42
    t = 400;
43
    siner = 3;
44
    if (soundcon == 1)
45
    {
46
        soundcon = 2;
47
        audio_play_sound(snd_revival, 50, 0);
48
    }
49
}
50
if (t >= 450)
51
{
52
    ds2 += 0.02;
53
    draw_set_alpha(ds2);
54
    draw_set_color(c_white);
55
    draw_rectangle(-10, -10, 999, 999, false);
56
    draw_set_alpha(1);
57
}
58
if (t >= 520)
59
{
60
    ds3 += 0.01;
61
    draw_set_alpha(ds3);
62
    draw_set_color(c_black);
63
    draw_rectangle(-10, -10, 999, 999, false);
64
    draw_set_alpha(1);
65
}
66
if (t >= 650)
67
{
68
    global.entrance = 0;
69
    global.interact = 1;
70
    
scr_become_light
scr_become_light

function
scr_become_light()
{ if (
scr_litemcheck(5) == 0)
scr_litemget(5);
if (
scr_keyitemcheck(2))
{ if (
scr_litemcheck(8) == 0)
scr_litemget(8);
} if (
scr_keyitemcheck(13))
{ if (
scr_litemcheck(11) == 0)
scr_litemget(11);
} else {
scr_litemremove(11);
} global.lhp = ceil(global.hp[1] / global.maxhp[1]) * global.lmaxhp; if (global.lhp < 1) global.lhp = 1; if (global.lhp > global.lmaxhp) global.lhp = global.lmaxhp; global.lwstrength = 1; if (global.charweapon[1] == 1) global.lweapon = 2; if (global.charweapon[1] == 5) global.lweapon = 6; if (global.charweapon[1] == 8) global.lweapon = 7; global.darkzone = 0; }
();
71
    snd_free_all();
72
    instance_create(0, 0, obj_persistentfadein);
73
    room_goto(room_school_unusedroom );
74
}