Deltarune script viewer

← back to main script listing

gml_Object_obj_suitspuzz_ch1_Draw_0

(view raw script w/o annotations or w/e)
1
vic = 0;
2
for (i = 0; i < max_suit; i += 1)
3
{
4
    if (drawclue == 1)
5
        draw_sprite_ext(spr_suitsicon_fade_ch1, sol[i] - 1, x + (i * 40), y, 2, 2, 0, c_white, 1);
6
    draw_sprite_ext(spr_suitsicon_ch1, 4, x + (i * 40), y + 40, 2, 2, 0, c_white, 1);
7
    if (suit[i] > 0)
8
    {
9
        draw_sprite_ext(spr_suitsicon_ch1, suit[i] - 1, x + (i * 40), y + 40, 2, 2, 0, c_white, 1);
10
        if (suit[i] == sol[i])
11
            vic += 1;
12
    }
13
}
14
if (vic == max_suit)
15
    won = 1;