|
1
|
if (rising == 1)
|
|
2
|
{
|
|
3
|
timer++;
|
|
4
|
if ((timer % 12) == 0)
|
|
5
|
{
|
|
6
|
if (!finishrising)
|
|
7
|
{
|
|
8
|
barcount++;
|
|
9
|
if (barcount == 52)
|
|
10
|
snd_play(snd_bell);
|
|
11
|
debug_message("barcount=" + string(barcount));
|
|
12
|
if (barcount < 50)
|
|
13
|
{
|
|
14
|
var bgbar = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (board_tilex(0), board_tiley(-8), spr_pxwhite);
|
|
15
|
with (bgbar)
|
|
16
|
{
|
|
17
|
depth = other.depth;
|
|
18
|
image_xscale = 384;
|
|
19
|
image_yscale = 32;
|
|
20
|
image_blend = #161616;
|
|
21
|
vspeed = other.myspeed;
|
|
22
|
extflag = "bar";
|
|
23
|
}
|
|
24
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (bgbar, doomtime);
|
|
25
|
}
|
|
26
|
}
|
|
27
|
if (finishrising == 1)
|
|
28
|
{
|
|
29
|
finishrising = 2;
|
|
30
|
rising = 10;
|
|
31
|
timer = 0;
|
|
32
|
}
|
|
33
|
}
|
|
34
|
}
|
|
35
|
if (rising > 0)
|
|
36
|
draw_sprite_ext(spr_pxwhite, 0, x - 8, board_tiley(0), 208, 256, 0, c_black, 1);
|
|
37
|
draw_self_board();
|
|
38
|
if (drawlight)
|
|
39
|
{
|
|
40
|
var lx = (x + 150) - 2;
|
|
41
|
var ly = (y + 84) - 2;
|
|
42
|
lx += ((max(0, 49) % 5) * 4);
|
|
43
|
ly -= (floor(max(49, 0) / 5) * 4);
|
|
44
|
var amt = abs(sin(timer / 15) * 0.5);
|
|
45
|
draw_sprite_ext(spr_pxwhite, 0, lx + 0, ly + 0, 2, 2, 0, c_yellow, 1);
|
|
46
|
draw_sprite_ext(spr_pxwhite, 0, lx - 2, ly + 0, 2, 2, 0, c_yellow, amt);
|
|
47
|
draw_sprite_ext(spr_pxwhite, 0, lx + 2, ly + 0, 2, 2, 0, c_yellow, amt);
|
|
48
|
draw_sprite_ext(spr_pxwhite, 0, lx + 0, ly + 2, 2, 2, 0, c_yellow, amt);
|
|
49
|
draw_sprite_ext(spr_pxwhite, 0, lx + 0, ly - 2, 2, 2, 0, c_yellow, amt);
|
|
50
|
lx = (x + 150) - 2;
|
|
51
|
ly = (y + 84) - 2;
|
|
52
|
lx += ((max(0, barcount - 3) % 5) * 4);
|
|
53
|
ly -= (floor(max(barcount - 3, 0) / 5) * 4);
|
|
54
|
amt = abs(sin(timer / 15) * 0.5);
|
|
55
|
draw_sprite_ext(spr_pxwhite, 0, lx + 0, ly + 0, 2, 2, 0, c_white, 1);
|
|
56
|
draw_sprite_ext(spr_pxwhite, 0, lx - 2, ly + 0, 2, 2, 0, c_white, amt);
|
|
57
|
draw_sprite_ext(spr_pxwhite, 0, lx + 2, ly + 0, 2, 2, 0, c_white, amt);
|
|
58
|
draw_sprite_ext(spr_pxwhite, 0, lx + 0, ly + 2, 2, 2, 0, c_white, amt);
|
|
59
|
draw_sprite_ext(spr_pxwhite, 0, lx + 0, ly - 2, 2, 2, 0, c_white, amt);
|
|
60
|
}
|
|
61
|
if (open)
|
|
62
|
{
|
|
63
|
var linecolor = #6C6C6C;
|
|
64
|
draw_sprite_ext(spr_pxwhite, 0, x + 64, (y + 160) - 4, 64, 68, 0, linecolor, 1);
|
|
65
|
draw_sprite_ext(spr_pxwhite, 0, x + 64 + 4, (y + 160) - 4, 56, 68, 0, c_black, 1);
|
|
66
|
}
|