Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_04_generator_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self()
2
switch global.sworks_flag[1]
3
{
4
    case 1:
5
        if (global.route != 3)
6
            draw_sprite(spr_steamworks_04_generator_overlay, 0, x, y)
7
        break
8
    case 2:
9
        if (global.route != 3)
10
            draw_sprite(spr_steamworks_04_generator_overlay, 1, x, y)
11
        break
12
    case 3:
13
        if (global.route != 3)
14
            draw_sprite(spr_steamworks_04_generator_overlay, 2, x, y)
15
        break
16
}