Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_04c_puzzle_Draw_0

(view raw script w/o annotations or w/e)
1
var lava_color = make_colour_rgb(255, 136, 204)
2
draw_set_colour(lava_color)
3
var base_height = 10
4
var max_height = 40
5
var max_height_2 = 35
6
var xx = x + 84
7
var yy = y + 79
8
var ydistance1 = yy - base_height - max_height * liquid_amount[0]
9
draw_rectangle(xx, yy, (xx + 12), ydistance1, false)
10
draw_sprite(spr_steamworks_04b_liquid, liquid_image_index, xx, ydistance1)
11
var xx2 = x + 115
12
var yy2 = y + 143
13
var ydistance2 = yy2 - base_height - max_height * liquid_amount[1]
14
draw_rectangle(xx2, yy2, (xx2 + 12), ydistance2, false)
15
draw_sprite(spr_steamworks_04b_liquid, liquid_image_index, xx2, ydistance2)
16
var xx3 = x + 146
17
var yy3 = y + 79
18
var ydistance3 = yy3 - base_height - max_height * liquid_amount[2]
19
draw_rectangle(xx3, yy3, (xx3 + 12), ydistance3, false)
20
draw_sprite(spr_steamworks_04b_liquid, liquid_image_index, xx3, ydistance3)
21
var xx4 = x + 11
22
var yy4 = y + 86
23
var ydistance4 = yy4 - base_height - max_height_2 * liquid_amount[3]
24
draw_rectangle(xx4, yy4, (xx4 + 48), ydistance4, false)
25
var xx_needle = x + 36
26
var yy_needle = y + 64
27
draw_sprite_ext(spr_steamworks_04c_puzzle_needle, 0, xx_needle, yy_needle, 1, 1, (180 * (-liquid_amount[3])), c_white, 1)
28
draw_self()
29
draw_set_alpha(liquid_overlay_alpha)
30
for (var i = 0; i < array_length_1d(liquid_noloop); i++)
31
{
32
    if (liquid_noloop[i] == true)
33
        draw_sprite(spr_steamworks_04c_puzzle_overlay, i, x, y)
34
}
35
draw_set_alpha(1)