1 |
var lava_color = make_colour_rgb(255, 136, 204) |
2 |
draw_set_colour(lava_color) |
3 |
var xx = x + 6 |
4 |
var yy = y + 62 |
5 |
var base_height = 10 |
6 |
var ydistance1 = yy - base_height - 40 * liquid_amount[0] |
7 |
draw_rectangle(xx, yy, (xx + 12), ydistance1, false) |
8 |
draw_sprite(spr_steamworks_04b_liquid, liquid_image_index, xx, ydistance1) |
9 |
var xx2 = x + 74 |
10 |
var yy2 = y + 120 |
11 |
var ydistance2 = yy2 - base_height - 40 * liquid_amount[1] |
12 |
draw_rectangle(xx2, yy2, (xx2 + 12), ydistance2, false) |
13 |
draw_sprite(spr_steamworks_04b_liquid, liquid_image_index, xx2, ydistance2) |
14 |
var xx3 = x + 142 |
15 |
var yy3 = y + 62 |
16 |
var ydistance3 = yy3 - base_height - 40 * liquid_amount[2] |
17 |
draw_rectangle(xx3, yy3, (xx3 + 12), ydistance3, false) |
18 |
draw_sprite(spr_steamworks_04b_liquid, liquid_image_index, xx3, ydistance3) |
19 |
draw_self() |
20 |
draw_set_alpha(liquid_overlay_alpha) |
21 |
for (var i = 0; i < array_length_1d(liquid_noloop); i++) |
22 |
{ |
23 |
if (liquid_noloop[i] == true) |
24 |
draw_sprite(spr_steamworks_04b_puzzle_overlay, i, x, y) |
25 |
} |
26 |
draw_set_alpha(1) |