Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_intro_ch3_Draw_0

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
{
3
    logotimer++;
4
    draw_sprite_ext(IMAGE_LOGO_CENTER, 0, 160, 100, 1, 1, 0, c_white, 1);
5
    if ((logotimer % 15) == 1)
6
    {
7
        if (max_logo_pieces < array_length(logo_piece))
8
        {
9
            if (max_logo_pieces == 0)
10
            {
11
                snd_stop(snd_tv_static);
12
                snd_loop(snd_tv_static);
13
            }
14
            max_logo_pieces++;
15
        }
16
        if (max_logo_pieces > 1 && revealed_pieces < array_length(logo_piece))
17
        {
18
            revealed_pieces++;
19
            if (revealed_pieces == array_length(logo_piece))
20
                snd_stop(snd_tv_static);
21
        }
22
    }
23
    if (logotimer == 190)
24
        play_cheer();
25
    if (logotimer >= 190)
26
    {
27
        draw_set_font(fnt_mainbig);
28
        draw_set_color(c_white);
29
        draw_text_ext(camerax() + 105, cameray() + 120, "CHAPTER 3", 10, 900);
30
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
31
    }
32
    if (logotimer == 280)
33
        fade_out();
34
    if (logotimer == 370)
35
        exit_screen();
36
    draw_set_alpha(1);
37
    scr_draw_set_mask(true, true);
38
    for (var i = revealed_pieces; i < array_length(logo_piece); i++)
39
    {
40
        var _xx = logo_piece[i][0];
41
        var _char_width = logo_piece[i][1];
42
        var _yy_offset = logo_piece[i][2];
43
        ossafe_fill_rectangle(_xx, char_y_pos + _yy_offset, _xx + _char_width, char_y_pos + char_height);
44
    }
45
    scr_draw_in_mask_begin();
46
    static_anim += 0.4;
47
    draw_sprite_ext(spr_static_effect, static_anim, 40, 0, 1, 1, 0, c_white, 1);
48
    draw_sprite_ext(spr_static_effect, static_anim, 150, 0, 1, 1, 0, c_white, 1);
49
    scr_draw_in_mask_end();
50
    draw_set_color(c_white);
51
    draw_set_alpha(1);
52
    draw_set_color(c_black);
53
    for (var i = max_logo_pieces; i < array_length(logo_piece); i++)
54
    {
55
        var _xx = logo_piece[i][0];
56
        var _char_width = logo_piece[i][1];
57
        var _yy_offset = logo_piece[i][2];
58
        ossafe_fill_rectangle(_xx, char_y_pos + _yy_offset, _xx + _char_width, char_y_pos + char_height);
59
    }
60
}
61
draw_set_alpha(fade_alpha);
62
ossafe_fill_rectangle(-10, -10, room_width + 10, room_height + 10);
63
draw_set_alpha(1);
64
draw_set_color(c_white);