Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_intro_ch2_Draw_0

(view raw script w/o annotations or w/e)
1
if (show_queen)
2
{
3
    if (queen_animate)
4
    {
5
        queen_siner++;
6
        queen_sprite_index = queen_siner / 3;
7
    }
8
    else
9
    {
10
        queen_sprite_index = 0;
11
    }
12
    draw_sprite_ext(queen_sprite, queen_sprite_index, view_wport[0] / 4, queen_y_pos, 1, 1, 0, c_white, queen_alpha);
13
}
14
else
15
{
16
    if (init == 0 && con == 1)
17
    {
18
        logopieces = 0;
19
        init = 1;
20
        for (i = 0; i < 9; i++)
21
            drawlogopart[i] = 0;
22
        con = 2;
23
        logotimer = 0;
24
    }
25
    if (con == 2)
26
    {
27
        logotimer++;
28
        if ((logotimer % 8) == 0 && logotimer < 80)
29
        {
30
            snd_play_x(snd_noise, 0.8, 0.5 + random(1));
31
            if (logopieces == 0)
32
                drawlogopart[0] = 1;
33
            if (logopieces == 1)
34
                drawlogopart[8] = 1;
35
            if (logopieces == 2)
36
                drawlogopart[1] = 1;
37
            if (logopieces == 3)
38
                drawlogopart[7] = 1;
39
            if (logopieces == 4)
40
                drawlogopart[2] = 1;
41
            if (logopieces == 5)
42
                drawlogopart[6] = 1;
43
            if (logopieces == 6)
44
                drawlogopart[3] = 1;
45
            if (logopieces == 7)
46
                drawlogopart[5] = 1;
47
            if (logopieces == 8)
48
                drawlogopart[4] = 1;
49
            logopieces++;
50
        }
51
        for (i = 0; i < 9; i++)
52
        {
53
            if (drawlogopart[i] == 1)
54
                draw_sprite_ext(IMAGE_LOGO_CENTER_SEPARATE, i, 160, 100, 1, 1, 0, c_white, 1);
55
        }
56
        if (logotimer == 120)
57
            snd_play(snd_queen_laugh_title);
58
        if (logotimer >= 120)
59
        {
60
            draw_set_font(fnt_mainbig);
61
            draw_set_color(c_white);
62
            draw_text_ext(105, 120, "CHAPTER 2", 10, 900);
63
            
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");
64
        }
65
        if (logotimer >= 240)
66
            room_goto(PLACE_MENU );
67
    }
68
}