Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shootout_controller_Draw_64

(view raw script w/o annotations or w/e)
1
exit;
2
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
3
    draw_text_debug(10, 10, "speedfactor: " + string(speedfactor));
4
draw_sprite_ext(spr_shootout_ui, 0, 0, 480, 2, 2, 0, c_white, 1);
5
draw_set_color(#4C4539);
6
draw_set_font(fnt_mainbig);
7
draw_set_halign(fa_left);
8
var _xx = 448;
9
var _yy = 392;
10
draw_text(_xx, _yy + 24, "SCORE: " + string_replace_all(string_format(points, 4, 0), " ", "0"));
11
var _time = 0;
12
switch (state)
13
{
14
    case "main":
15
        _time = (wave_duration - timer) div 30;
16
        break;
17
    case "intro":
18
    case "wave_intro":
19
        _time = wave_duration div 30;
20
        break;
21
    case "wave_outro":
22
        _time = 0;
23
        break;
24
}
25
draw_text(_xx, _yy + 50, "TIME LEFT: " + string_replace_all(string_format(_time, 2, 0), " ", "0") + "s");
26
if (state == "wave_intro")
27
{
28
    if ((timer div 5) % 2)
29
    {
30
        draw_set_font(fnt_main);
31
        draw_set_halign(fa_center);
32
        draw_set_valign(fa_top);
33
        draw_set_color(c_white);
34
        draw_text_transformed_outline(320, 200, stringsetloc(
WAVE COMPLETE
"WAVE COMPLETE", "obj_shootout_controller_slash_Draw_64_gml_49_0"
), 2, 2);
35
        draw_set_halign(fa_left);
36
    }
37
}