Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_event_lawnmower_Draw_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    var xx = x - 160;
4
    var yy = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
((y - 96) + scorey);
5
    draw_set_color(c_black);
6
    ossafe_fill_rectangle(xx + 128, yy + 64, xx + 640, yy + 64 + 16 + 4 + 1, 0);
7
    draw_set_color(c_white);
8
    draw_set_font(
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("8bit"));
9
    draw_set_halign(fa_left);
10
    draw_text(xx + 128 + 4, yy + 64 + 4, "TIME: " + string(round(gametimer / 30)));
11
    draw_set_halign(fa_right);
12
    draw_text((xx + 512) - 4, yy + 64 + 4, "SCORE: " + string(mowscore * 10));
13
    draw_set_halign(fa_left);
14
}