Deltarune script viewer

← back to main script listing

gml_Object_obj_queen_solitaire_Draw_0

(view raw script w/o annotations or w/e)
1
for (i = cardstart; i < arraysize; i++)
2
{
3
    var _index = (i + arrayoffset) % arraycap;
4
    draw_sprite(sprite_index, image_index, points_x[_index], points_y[_index]);
5
}
6
draw_self();
7
if (cardstart == 0)
8
{
9
    if (arraysize < arraycap)
10
    {
11
        points_x[arraysize] = x;
12
        points_y[arraysize] = y;
13
        arraysize++;
14
    }
15
    else
16
    {
17
        points_x[arrayoffset] = x;
18
        points_y[arrayoffset] = y;
19
        arrayoffset = (arrayoffset + 1) % arraycap;
20
    }
21
}
22
else
23
{
24
    cardstart++;
25
    if (cardstart >= arraysize)
26
        instance_destroy();
27
}