|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
}
|
|
4
|
if (con == 0)
|
|
5
|
{
|
|
6
|
timer++;
|
|
7
|
if (timer == 1)
|
|
8
|
{
|
|
9
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("tone_saturation", 1, 0.1, 30, 2, "out");
|
|
10
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("tone_factor", 0, 0.5, 30, 2, "out");
|
|
11
|
}
|
|
12
|
if (timer == 2)
|
|
13
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("staticalpha", 0, 0.015, 15);
|
|
14
|
if (timer == 3)
|
|
15
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("grayalpha", 0, 0.35, 15);
|
|
16
|
if ((timer == 30 && !i_ex(obj_rhythmgame)) || (timer == 90 && i_ex(obj_rhythmgame)))
|
|
17
|
{
|
|
18
|
var gameover_state = 0;
|
|
19
|
if (room == room_dw_rhythm)
|
|
20
|
gameover_state = 1;
|
|
21
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
22
|
{
|
|
23
|
}
|
|
24
|
if (replayversion && replaywin == true)
|
|
25
|
{
|
|
26
|
con = 1;
|
|
27
|
timer = 0;
|
|
28
|
instance_create(0, 0, obj_round_evaluation);
|
|
29
|
}
|
|
30
|
if ((replayversion && quitversion) || (replayversion && replaywin == false))
|
|
31
|
{
|
|
32
|
con = 1;
|
|
33
|
timer = 0;
|
|
34
|
quitcon = 1;
|
|
35
|
mus_volume(global.currentsong[1], 0, 30);
|
|
36
|
scr_fadeoutscr_fadeout
function scr_fadeout(arg0)
{
__fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout);
__fadeouter.fadespeed = 1 / arg0;
__fadeouter.depth = 3;
return __fadeouter;
} (30);
|
|
37
|
with (obj_fadeout)
|
|
38
|
depth = -9999;
|
|
39
|
}
|
|
40
|
}
|
|
41
|
}
|
|
42
|
if (sprite_exists(global.screenshot))
|
|
43
|
{
|
|
44
|
var lightColor = 13088418;
|
|
45
|
var darkColor = 6242121;
|
|
46
|
var is_rhythm_replaywin = room == room_dw_rhythm && replaywin;
|
|
47
|
if (!quitversion && !replaywin)
|
|
48
|
tone_on(tone_saturation, tone_brightness, tone_factor, darkColor, lightColor);
|
|
49
|
if (!is_rhythm_replaywin)
|
|
50
|
draw_sprite_ext(global.screenshot, 0, camerax(), cameray(), 1, 1, 0, c_white, 1);
|
|
51
|
if (!quitversion && !replaywin)
|
|
52
|
tone_off();
|
|
53
|
if (!quitversion && !replaywin)
|
|
54
|
{
|
|
55
|
draw_set_alpha(grayalpha);
|
|
56
|
draw_set_color(c_gray);
|
|
57
|
ossafe_fill_rectangle(camerax(), cameray(), camerax() + 640, cameray() + 480, 0);
|
|
58
|
draw_set_color(c_white);
|
|
59
|
draw_set_alpha(1);
|
|
60
|
staticindex += 0.25;
|
|
61
|
draw_sprite_tiled_ext(spr_static_effect, staticindex - 0.5, 0, 0, 2, 2, c_white, staticalpha);
|
|
62
|
draw_sprite_tiled_ext(spr_static_effect, staticindex, 0, 0, 2, 2, c_white, staticalpha);
|
|
63
|
draw_set_alpha(blackalpha);
|
|
64
|
draw_set_color(c_black);
|
|
65
|
ossafe_fill_rectangle(camerax(), cameray(), camerax() + 640, cameray() + 480, 0);
|
|
66
|
draw_set_color(c_white);
|
|
67
|
draw_set_alpha(1);
|
|
68
|
}
|
|
69
|
}
|