Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_battle_test_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_font(fnt_mainbig);
2
draw_set_halign(fa_center);
3
draw_set_valign(fa_middle);
4
if (point_distance(room_width * 0.3, 32 + (room_height / 2), scr_mouse_x(), scr_mouse_y()) < 50)
5
{
6
    draw_set_colour(c_yellow);
7
    if (scr_mouse_leftclick())
8
    {
9
        global.mike_skip = 0;
10
        room_goto_next();
11
    }
12
}
13
else
14
{
15
    draw_set_colour(c_white);
16
}
17
draw_text(room_width * 0.3, room_height / 2, "Full Battle");
18
if (point_distance(room_width * 0.7, 32 + (room_height / 2), scr_mouse_x(), scr_mouse_y()) < 50)
19
{
20
    draw_set_colour(c_yellow);
21
    if (scr_mouse_leftclick())
22
    {
23
        global.mike_skip = 1;
24
        room_goto_next();
25
    }
26
}
27
else
28
{
29
    draw_set_colour(c_white);
30
}
31
draw_text(room_width * 0.7, room_height / 2, "Skip to\nfinal attack");
32
var xx = room_width * 0.7;
33
var yy = room_height * 0.75;
34
if (point_distance(xx, yy + 32, scr_mouse_x(), scr_mouse_y()) < 50)
35
{
36
    draw_set_colour(c_yellow);
37
    if (scr_mouse_leftclick())
38
        global.use_mic = !global.use_mic;
39
}
40
else
41
{
42
    draw_set_colour(c_white);
43
}
44
draw_text(xx, yy, "Use\nGamepad");
45
ossafe_fill_rectangle(xx - 64, yy - 10, xx - 84, yy + 10, 1);
46
if (!global.use_mic)
47
    draw_sprite(spr_heart, 0, xx - 82, yy - 7);
48
draw_set_halign(fa_left);
49
draw_set_valign(fa_top);
50
draw_sprite(spr_mike_hand, 0, scr_mouse_x(), scr_mouse_y());