Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_verlet_integration_Draw_0

(view raw script w/o annotations or w/e)
1
for (var i = 0; i < array_length(sticks); i++)
2
{
3
    var s = sticks[i]
4
    if (!s[6])
5
        draw_sprite_ext(s[0][5], 0, s[0][0], s[0][1], s[3], ((scr_distance
scr_distance

function scr_distance(argument0, argument1) //gml_Script_scr_distance { var dx = argument1[0] - argument0[0] var dy = argument1[1] - argument0[1] return sqrt(dx * dx + dy * dy); }
(s[0], s[1])) / sprite_get_height(s[0][5])), ((point_direction(s[0][0], s[0][1], s[1][0], s[1][1])) + 90), c_white, 1)
6
}
7
if global.debug_render_path
8
{
9
    for (i = 0; i < array_length(sticks); i++)
10
    {
11
        s = sticks[i]
12
        if (!s[6])
13
            draw_line_width_color(s[0][0], s[0][1], s[1][0], s[1][1], s[3], s[4], s[5])
14
    }
15
}