Deltarune script viewer

← back to main script listing

gml_GlobalScript_debug_printxy

(view raw script w/o annotations or w/e)
1
function debug_printxy(arg0, arg1, arg2)
2
{
3
    if (scr_debug
scr_debug

function scr_debug() { if (global.debug == 1) return 1; }
())
4
    {
5
        camx = __view_get(e__VW.XView, 0);
6
        camy = __view_get(e__VW.YView, 0);
7
        camx = arg0 + camerax();
8
        camy = arg1 + cameray();
9
        draw_set_font(fnt_small);
10
        draw_set_color(c_black);
11
        draw_text(camx, camy, arg2);
12
        draw_text(camx + 1, camy, arg2);
13
        draw_text(camx + 1, camy + 1, arg2);
14
        draw_text(camx + 1, camy - 1, arg2);
15
        draw_text(camx - 1, camy, arg2);
16
        draw_text(camx - 1, camy + 1, arg2);
17
        draw_text(camx - 1, camy - 1, arg2);
18
        draw_text(camx, camy - 1, arg2);
19
        draw_text(camx + 1, camy - 1, arg2);
20
        draw_text(camx - 1, camy - 1, arg2);
21
        draw_text(camx, camy + 1, arg2);
22
        draw_text(camx + 1, camy + 1, arg2);
23
        draw_text(camx - 1, camy + 1, arg2);
24
        draw_set_color(c_gray);
25
        draw_text(camx, camy, arg2);
26
    }
27
}
28
29
enum e__VW
30
{
31
    XView,
32
    YView,
33
    WView,
34
    HView,
35
    Angle,
36
    HBorder,
37
    VBorder,
38
    HSpeed,
39
    VSpeed,
40
    Object,
41
    Visible,
42
    XPort,
43
    YPort,
44
    WPort,
45
    HPort,
46
    Camera,
47
    SurfaceID
48
}