Deltarune script viewer

← back to main script listing

gml_Object_obj_jokerbg_triangle_real_ch1_Other_10

(view raw script w/o annotations or w/e)
1
newx1 = lengthdir_x(radius, rot + ((360 / trimax) * i));
2
newy1 = lengthdir_y(radius / 2, rot + ((360 / trimax) * i));
3
newx2 = lengthdir_x(radius, rot + ((360 / trimax) * (i + 1)));
4
newy2 = lengthdir_y(radius / 2, rot + ((360 / trimax) * (i + 1)));
5
if (newy1 <= 0)
6
    newy1 *= 0.6;
7
if (newy2 <= 0)
8
    newy2 *= 0.6;
9
if (blackon == 0)
10
{
11
    draw_set_color(dkblue);
12
    blackon = 1;
13
}
14
else
15
{
16
    blackon = 0;
17
    draw_set_color(dkblue2);
18
}