Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_teacup_scoreboard_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
if (room == room_dw_cyber_teacup_final)
3
{
4
    if (theScore == 70)
5
    {
6
        scoreCol = 65280;
7
        if (treasure == 0)
8
            treasure = instance_create(2676, 1684, obj_treasure_room);
9
    }
10
}
11
draw_sprite_ext(spr_teacup_scoreboard_b, image_index, x, y, image_xscale, image_yscale, image_angle, scoreCol, image_alpha);
12
var ones = theScore % 10;
13
var tens = theScore div 10;
14
if (theScore > 0)
15
{
16
    draw_sprite_ext(spr_teacup_scoreboard_digits, ones, x, y, 2, 2, 0, scoreCol, 1);
17
    draw_sprite_ext(spr_teacup_scoreboard_digits, 10 + tens, x, y, 2, 2, 0, scoreCol, 1);
18
}