Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_controller_city_mice2_Draw_0

(view raw script w/o annotations or w/e)
1
var _cx = camerax();
2
var _cy = cameray();
3
if (instance_exists(obj_controller_city_mice2))
4
    goalHit = obj_controller_city_mice2.victory;
5
inusecount = 0;
6
with (obj_rotationController_track)
7
{
8
    if (rotate == true)
9
        other.inusecount++;
10
}
11
if (inusecount != 0)
12
    inUse = true;
13
else
14
    inUse = false;
15
if (instructionLerp > 0 || inUse)
16
{
17
    if (instructionLerp < 1 && inUse)
18
        instructionLerp += 0.1;
19
    else if (!inUse)
20
        instructionLerp -= 0.1;
21
    var _easedLerp = 
scr_ease_out
scr_ease_out

function
scr_ease_out(arg0, arg1)
{ if (arg1 < -3 || arg1 > 7) return arg0; switch (arg1) { case -3: return ease_out_bounce(arg0, 0, 1, 1); case -2: return ease_out_elastic(arg0, 0, 1, 1); case -1: return ease_out_back(arg0, 0, 1, 1); case 0: return arg0; case 1: return sin(arg0 * 1.5707963267948966); case 2: return -arg0 * (arg0 - 2); case 6: return -power(2, -10 * arg0) + 1; case 7: arg0--; return sqrt(1 - (arg0 * arg0)); default: arg0--; if (arg1 == 4) { return -1 * (power(arg0, arg1) - 1); break; } return power(arg0, arg1) + 1; } }
(instructionLerp, 3);
22
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
23
    draw_set_halign(fa_left);
24
    draw_set_color(c_white);
25
    
scr_84_draw_text_outline
scr_84_draw_text_outline

function
scr_84_draw_text_outline(arg0, arg1, arg2)
{ var xx = arg0; var yy = arg1; var str = arg2; var __txtcolor__ = draw_get_color(); draw_set_colour(c_black); draw_text(xx - 1, yy - 1, str); draw_text(xx + 1, yy - 1, str); draw_text(xx - 1, yy + 1, str); draw_text(xx + 1, yy + 1, str); draw_set_colour(__txtcolor__); draw_text(xx, yy, str); }
((_cx - 80) + (_easedLerp * 100), _cy + 400, stringsetloc(
[Left Wait for input Right]
"[Left / Right]", "obj_controller_city_mice2_slash_Draw_0_gml_28_0"
));
26
    
scr_84_draw_text_outline
scr_84_draw_text_outline

function
scr_84_draw_text_outline(arg0, arg1, arg2)
{ var xx = arg0; var yy = arg1; var str = arg2; var __txtcolor__ = draw_get_color(); draw_set_colour(c_black); draw_text(xx - 1, yy - 1, str); draw_text(xx + 1, yy - 1, str); draw_text(xx - 1, yy + 1, str); draw_text(xx + 1, yy + 1, str); draw_set_colour(__txtcolor__); draw_text(xx, yy, str); }
((_cx - 80) + (_easedLerp * 100), _cy + 432, stringsetloc(
Rotate
"Rotate", "obj_controller_city_mice2_slash_Draw_0_gml_29_0"
));
27
    draw_set_halign(fa_right);
28
    
scr_84_draw_text_outline
scr_84_draw_text_outline

function
scr_84_draw_text_outline(arg0, arg1, arg2)
{ var xx = arg0; var yy = arg1; var str = arg2; var __txtcolor__ = draw_get_color(); draw_set_colour(c_black); draw_text(xx - 1, yy - 1, str); draw_text(xx + 1, yy - 1, str); draw_text(xx - 1, yy + 1, str); draw_text(xx + 1, yy + 1, str); draw_set_colour(__txtcolor__); draw_text(xx, yy, str); }
((_cx + 720) - (_easedLerp * 100), _cy + 400, stringsetloc(
[Down]
"[Down]", "obj_controller_city_mice2_slash_Draw_0_gml_32_0"
));
29
    
scr_84_draw_text_outline
scr_84_draw_text_outline

function
scr_84_draw_text_outline(arg0, arg1, arg2)
{ var xx = arg0; var yy = arg1; var str = arg2; var __txtcolor__ = draw_get_color(); draw_set_colour(c_black); draw_text(xx - 1, yy - 1, str); draw_text(xx + 1, yy - 1, str); draw_text(xx - 1, yy + 1, str); draw_text(xx + 1, yy + 1, str); draw_set_colour(__txtcolor__); draw_text(xx, yy, str); }
((_cx + 720) - (_easedLerp * 100), _cy + 432, stringsetloc(
Mice
"Mice", "obj_controller_city_mice2_slash_Draw_0_gml_33_0"
));
30
    draw_set_halign(fa_left);
31
}