1 |
siner += 1; |
2 |
hscroll += 1; |
3 |
if (hscroll > 240) |
4 |
hscroll -= 240; |
5 |
if (adjust == 0) |
6 |
{ |
7 |
colcol = make_color_hsv(siner / 4, 160 + (sin(siner / 32) * 60), 255); |
8 |
__background_set_colour(make_color_hsv(siner / 4, 255, (sin(siner / 16) * 40) + 60)); |
9 |
} |
10 |
if (adjust == 1) |
11 |
{ |
12 |
colcol = merge_color(colcol, c_white, 0.06); |
13 |
__background_set_colour(merge_color(__background_get_colour(), c_black, 0.06)); |
14 |
} |
15 |
if (adjust == 2) |
16 |
{ |
17 |
if (slowdown < 1) |
18 |
slowdown += 0.02; |
19 |
siner -= slowdown; |
20 |
bgsiner -= (slowdown / 16); |
21 |
__background_set_colour(merge_color(__background_get_colour(), c_white, 0.03)); |
22 |
} |
23 |
bgsiner += 0.0625; |
24 |
if (bgsiner > 7) |
25 |
bgsiner -= 7; |
26 |
bg = bg_fountain1_ch1; |
27 |
draw_background_tiled_ext_ch1(bg, 0 - siner, 0 - siner, 2, 2, colcol, 0.7 * eyebody); |
28 |
draw_background_tiled_ext_ch1(bg, -240 + hscroll, 0 + siner, 2, 2, colcol, 0.3 * eyebody); |
29 |
draw_set_color(c_black); |
30 |
draw_rectangle(0, 0, (room_width / 2) - (sprite_width / 2), 280, 0); |
31 |
draw_rectangle((room_width / 2) + (sprite_width / 2), 0, 999, 280, 0); |
32 |
draw_sprite_ext(sprite_index, 0, (room_width / 2) - (sprite_width / 2), 0 - ((bgsiner * 280) / 7), 2, 2, 0, colcol, 1); |
33 |
draw_sprite_ext(sprite_index, 0, (room_width / 2) - (sprite_width / 2), 280 - ((bgsiner * 280) / 7), 2, 2, 0, colcol, 1); |
34 |
draw_sprite_ext(sprite_index, 0, ((room_width / 2) - (sprite_width / 2)) + (sin(siner / 16) * 12), 0 - ((bgsiner * 280) / 7), 2, 2, 0, colcol, 0.5); |
35 |
draw_sprite_ext(sprite_index, 0, ((room_width / 2) - (sprite_width / 2)) + (sin(siner / 16) * 12), 280 - ((bgsiner * 280) / 7), 2, 2, 0, colcol, 0.5); |
36 |
draw_sprite_ext(sprite_index, 0, (room_width / 2) - (sprite_width / 2) - (sin(siner / 16) * 12), 0 - ((bgsiner * 280) / 7), 2, 2, 0, colcol, 0.5); |
37 |
draw_sprite_ext(sprite_index, 0, (room_width / 2) - (sprite_width / 2) - (sin(siner / 16) * 12), 280 - ((bgsiner * 280) / 7), 2, 2, 0, colcol, 0.5); |
38 |
draw_sprite_ext(spr_fountainbottom_ch1, 0, (room_width / 2) - (sprite_width / 2), -8 + (sin(siner / 16) * 8), 2, 2, 0, colcol, 0.3); |
39 |
draw_sprite_ext(spr_fountainbottom_ch1, 0, (room_width / 2) - (sprite_width / 2), -4 + (sin(siner / 16) * 4), 2, 2, 0, colcol, 0.5); |
40 |
draw_sprite_ext(spr_fountainbottom_ch1, 0, (room_width / 2) - (sprite_width / 2), 0, 2, 2, 0, colcol, 1); |
41 |
draw_set_color(__background_get_colour()); |
42 |
draw_rectangle(0, 280, 640, 480, 0); |