1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (!surface_exists(lava_surf)) |
4 |
lava_surf = surface_create(room_width, room_height) |
5 |
surface_set_target(lava_surf) |
6 |
draw_sprite_tiled(ts_lava, 0, (0 - current_time / 20), 0) |
7 |
surface_reset_target() |
8 |
var surface_parts = 24 |
9 |
var inc = room_width / surface_parts |
10 |
for (var i = 0; i < room_width; i += inc) |
11 |
{ |
12 |
var sin_current = sin((current_time + i * 10000) / 100) |
13 |
draw_surface_part(lava_surf, (0 + i), 0, inc, room_height, (1 + i), (40 + sin_current)) |
14 |
draw_surface_part(lava_surf, (0 + i), 0, inc, room_height, (1 + i), (-200 + sin_current)) |
15 |
draw_surface_part(lava_surf, (0 + i), 0, inc, room_height, (-39 + i), (0 + sin_current)) |
16 |
} |