1 |
siner += 1; |
2 |
if (speed > 0) |
3 |
image_angle += aa; |
4 |
if (breaking == 0) |
5 |
{ |
6 |
draw_sprite_ext(spr_glydeshot, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, 0.7 + sin(siner / 3)); |
7 |
draw_sprite_ext(spr_glydeshot, 1, x, y, image_xscale, image_yscale, image_angle + 45, image_blend, -sin(siner / 3) + 0.7); |
8 |
} |
9 |
if (image_xscale < 10) |
10 |
{ |
11 |
x += ((sin(siner) * image_xscale) / 2); |
12 |
y += ((cos(siner) * image_xscale) / 2); |
13 |
if (image_alpha < 1) |
14 |
image_alpha += 0.05; |
15 |
image_xscale += 0.5; |
16 |
image_yscale += 0.5; |
17 |
} |
18 |
if (y > (global.idealborder[3] - 20) && breaking == 0) |
19 |
{ |
20 |
breaking = 1; |
21 |
snd_play(snd_shakerbreaker); |
22 |
} |
23 |
if (breaking == 1) |
24 |
draw_sprite_ext(spr_glydeshot, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
25 |
if (breaking == 1) |
26 |
{ |
27 |
speed = 0; |
28 |
tab += 0.1; |
29 |
if (talpha < 1) |
30 |
talpha += 0.2; |
31 |
image_alpha -= 0.05; |
32 |
image_xscale += 0.5; |
33 |
image_yscale += 0.5; |
34 |
true_tab = 0; |
35 |
if (talpha >= 1) |
36 |
true_tab = tab - 0.5; |
37 |
draw_set_color(c_red); |
38 |
scr_setfontscr_setfontvar newfont = argument0;
if (global.language == "ja")
{
if (newfont == fnt_main)
newfont = fnt_ja_main;
if (newfont == fnt_maintext)
newfont = fnt_ja_maintext;
if (newfont == fnt_plain)
newfont = fnt_ja_plain;
}
draw_set_font(newfont); (fnt_main); |
39 |
draw_set_alpha(talpha - true_tab); |
40 |
draw_text_transformed(((x - 20 - (talpha * 40)) + random(2)) - random(2), ((y - 10) + random(2)) - random(2) - 10 - (talpha * 10), phrase, talpha * 2, talpha * 2, 1 + talpha); |
41 |
draw_set_alpha(1); |
42 |
if (image_alpha < -1) |
43 |
instance_destroy(); |
44 |
} |
45 |
if (global.turntimer < 1) |
46 |
instance_destroy(); |