|
1
|
window_surface = -4;
|
|
2
|
default_surface = -4;
|
|
3
|
palette_index = 2;
|
|
4
|
palette_init = false;
|
|
5
|
lightning_timer = 0;
|
|
6
|
overlay = -4;
|
|
7
|
|
|
8
|
create_overlay = function()
|
|
9
|
{
|
|
10
|
overlay = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (-10, -10, spr_whitepx_10);
|
|
11
|
overlay.image_xscale = (room_width / 10) + 2;
|
|
12
|
overlay.image_yscale = (room_height / 10) + 40;
|
|
13
|
overlay.image_blend = #00042B;
|
|
14
|
overlay.image_alpha = 0.5;
|
|
15
|
overlay.depth = 1000;
|
|
16
|
};
|
|
17
|
|
|
18
|
show_lightning = function()
|
|
19
|
{
|
|
20
|
snd_play(snd_thunder_instant);
|
|
21
|
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;
} ("palette_index", 1, 2, 90, 3, "out");
|
|
22
|
with (overlay)
|
|
23
|
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;
} ("image_alpha", 0, 0.5, 90, 3, "out");
|
|
24
|
with (obj_marker_palette)
|
|
25
|
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;
} ("palette_index", 1, 2, 90, 3, "out");
|
|
26
|
};
|
|
27
|
|
|
28
|
clean_up = function()
|
|
29
|
{
|
|
30
|
if (surface_exists(default_surface))
|
|
31
|
surface_free(default_surface);
|
|
32
|
if (surface_exists(window_surface))
|
|
33
|
surface_free(window_surface);
|
|
34
|
};
|
|
35
|
|
|
36
|
create_overlay();
|