Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_bullettester_new_Draw_0

(view raw script w/o annotations or w/e)
1
if (enem1 == 0)
2
{
3
    with (obj_bullettester_enemy)
4
    {
5
        if (myself == 0)
6
        {
7
            other.enem1 = id;
8
            active = true;
9
        }
10
    }
11
}
12
if (enem2 == 0)
13
{
14
    with (obj_bullettester_enemy)
15
    {
16
        if (myself == 1)
17
            other.enem2 = id;
18
    }
19
}
20
if (enem3 == 0)
21
{
22
    with (obj_bullettester_enemy)
23
    {
24
        if (myself == 2)
25
            other.enem3 = id;
26
    }
27
}
28
if (drawdebug)
29
{
30
    var space = 16;
31
    var xx = 8;
32
    var yy = 368;
33
    draw_set_font(fnt_ja_dotumche);
34
    draw_set_color(#FF7F27);
35
    draw_text(xx, yy + (space * 0), "Controls:");
36
    draw_set_color(c_white);
37
    draw_text(xx, yy + (space * 1), "[U]/[I] Difficulty: ");
38
    draw_set_color(c_red);
39
    draw_text(xx + 140, yy + (space * 1), string(global.tempflag[27]));
40
    draw_set_color(c_white);
41
    draw_text(xx, yy + (space * 2), "Toggle Enemy: ");
42
    if (i_ex(enem1))
43
        draw_set_color(merge_color(#3F3F3F, c_white, enem1.active));
44
    draw_text(xx + 90, yy + (space * 2), "[1]");
45
    if (i_ex(enem2))
46
        draw_set_color(merge_color(#3F3F3F, c_white, enem2.active));
47
    draw_text(xx + 100 + 10, yy + (space * 2), "[2]");
48
    if (i_ex(enem3))
49
        draw_set_color(merge_color(#3F3F3F, c_white, enem3.active));
50
    draw_text(xx + 100 + 30, yy + (space * 2), "[3]");
51
    draw_set_color(c_white);
52
    draw_text(xx, yy + (space * 3), "[SHIFT]+[1/2/3] Set spawntype");
53
    draw_text(xx, yy + (space * 4), "[4]");
54
    draw_set_color(merge_color(#3F3F3F, c_yellow, neverendingturn));
55
    draw_text(xx + 28, yy + (space * 4), "Neverending Turn");
56
    draw_set_color(c_white);
57
    draw_text(xx, yy + (space * 5), "global.turntimer=" + string(global.turntimer));
58
    draw_set_color(c_white);
59
    xx += 210;
60
    draw_set_color(#332033);
61
    for (var i = 0; i < 4; i++)
62
        draw_line(xx + i, yy - 4, xx + i, yy + 140);
63
    draw_set_color(c_white);
64
    xx += 8;
65
    draw_text(xx, yy + (space * 0), "[Z]");
66
    draw_set_color(c_yellow);
67
    draw_text(xx + 28, yy + (space * 0), "Start Turn");
68
    draw_set_color(c_white);
69
    draw_text(xx, yy + (space * 1), "[Ctrl+Shift+I] Create Instance");
70
    draw_text(xx, yy + (space * 2), "[Space/R] Restart Room");
71
    draw_text(xx, yy + (space * 3), "[Tab] Toggle Window Size");
72
    draw_text(xx, yy + (space * 4), "[Backspace] Toggle Debug Info");
73
    draw_text(xx, yy + (space * 5), "[Num 3] Toggle Slowmo");
74
    draw_text(xx, yy + (space * 6), "[B] Switch to Old BulletTester");
75
    xx += 214;
76
    draw_set_color(#332033);
77
    for (var i = 0; i < 4; i++)
78
        draw_line(xx + i, yy - 4, xx + i, yy + 140);
79
    draw_set_color(c_white);
80
}