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