Deltarune (Chapter 3) script viewer

← back to main script listing

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