1 |
if (t == 0) |
2 |
{ |
3 |
truew = sprite_get_width(sprite_index); |
4 |
trueh = sprite_get_width(sprite_index); |
5 |
imgx = image_xscale; |
6 |
imgy = image_yscale; |
7 |
if (truew >= 50 || trueh >= 50) |
8 |
bsize = 8; |
9 |
if (truew >= 100 || truew >= 100) |
10 |
bsize = 16; |
11 |
xs = ceil(truew / bsize); |
12 |
ys = ceil(trueh / bsize); |
13 |
for (i = 0; i <= xs; i += 1) |
14 |
{ |
15 |
for (j = 0; j <= ys; j += 1) |
16 |
{ |
17 |
bl[i][j] = i * bsize; |
18 |
bh[i][j] = j * bsize; |
19 |
bx[i][j] = x + (i * bsize * imgx); |
20 |
bspeed[i][j] = 0; |
21 |
bsin[i][j] = (4 + (j * 3)) - i; |
22 |
} |
23 |
} |
24 |
} |
25 |
if (t >= 1) |
26 |
{ |
27 |
if (redup < 10) |
28 |
redup += 1; |
29 |
image_blend = merge_color(c_white, c_red, redup / 10); |
30 |
for (i = 0; i <= xs; i += 1) |
31 |
{ |
32 |
for (j = 0; j <= ys; j += 1) |
33 |
{ |
34 |
if (bsin[i][j] <= 0) |
35 |
bspeed[i][j] += 1; |
36 |
bx[i][j] += bspeed[i][j]; |
37 |
bsin[i][j] -= 1; |
38 |
} |
39 |
} |
40 |
} |
41 |
t += 1; |