|
1
|
draw_self();
|
|
2
|
if (fadein < 10)
|
|
3
|
fadein += 1;
|
|
4
|
draw_set_alpha(fadein / 10);
|
|
5
|
draw_set_color(c_white);
|
|
6
|
draw_rectangle(lx, ux, rx, dx, true);
|
|
7
|
draw_rectangle(lx + 1, ux + 1, rx - 1, dx - 1, true);
|
|
8
|
draw_set_alpha(1);
|
|
9
|
w = sprite_width;
|
|
10
|
h = sprite_height;
|
|
11
|
spikecount = floor(w / 11);
|
|
12
|
for (i = 0; i < spikecount; i += 1)
|
|
13
|
{
|
|
14
|
draw_sprite_ext(spr_bouncebox_spike, 0, (x - (w / 2)) + 3, (y - (h / 2)) + (i * 11), 1, 1, 0, c_white, fadein / 10);
|
|
15
|
draw_sprite_ext(spr_bouncebox_spike, 0, (x + (w / 2)) - (i * 11), (y - (h / 2)) + 3, 1, 1, 270, c_white, fadein / 10);
|
|
16
|
draw_sprite_ext(spr_bouncebox_spike, 0, (x - (w / 2)) + (i * 11), (y + (h / 2)) - 2, 1, 1, 90, c_white, fadein / 10);
|
|
17
|
draw_sprite_ext(spr_bouncebox_spike, 0, (x + (w / 2)) - 2, (y - (h / 2)) + (i * 11), -1, 1, 0, c_white, fadein / 10);
|
|
18
|
}
|