|
1
|
var _scalepush, _xx, _col;
|
|
2
|
switch (phase)
|
|
3
|
{
|
|
4
|
case 0:
|
|
5
|
_col = 1118685;
|
|
6
|
_xx = (((pattern_time % 2) * 2) - 1) * max(0, ((pattern_time + 31) - launch_time) / 15);
|
|
7
|
_scalepush = (1 - image_yscale) * sprite_get_height(sprite_index) * 0.75;
|
|
8
|
if (pattern_time >= (launch_time - 9) && pattern_time < (launch_time - 7))
|
|
9
|
_col = 8978431;
|
|
10
|
break;
|
|
11
|
default:
|
|
12
|
_col = 16777215;
|
|
13
|
_xx = 0;
|
|
14
|
_scalepush = 0;
|
|
15
|
}
|
|
16
|
draw_sprite_ext(sprite_index, 1, x + lengthdir_x(_scalepush, image_angle + 270) + _xx, y + lengthdir_y(_scalepush, image_angle + 270), image_xscale, image_yscale, image_angle, _col, image_alpha);
|
|
17
|
if (phase == 0)
|
|
18
|
{
|
|
19
|
var _dir = image_angle + 35;
|
|
20
|
draw_set_color(#FF6688);
|
|
21
|
d_line_width(x + lengthdir_x(7, 315 + image_angle) + lengthdir_x(_scalepush, image_angle + 270), y + lengthdir_y(7, 315 + image_angle) + lengthdir_y(_scalepush, image_angle + 270), x + lengthdir_x(7, 315 + image_angle) + lengthdir_x(_scalepush, image_angle + 270) + lengthdir_x(10, _dir), y + lengthdir_y(7, 315 + image_angle) + lengthdir_y(_scalepush, image_angle + 270) + lengthdir_y(10, _dir), 3);
|
|
22
|
}
|
|
23
|
if (phase == 1)
|
|
24
|
{
|
|
25
|
if (boom_frame >= 0)
|
|
26
|
{
|
|
27
|
if (boom_frame < 8)
|
|
28
|
draw_sprite(spr_explosion_round, floor(boom_frame), boom_x - 25, boom_y - 35);
|
|
29
|
}
|
|
30
|
draw_set_color(#FF6688);
|
|
31
|
d_line_width(bar_x - lengthdir_x(3, bar_angle), bar_y - lengthdir_y(3, bar_angle), bar_x + lengthdir_x(7, bar_angle), bar_y + lengthdir_y(7, bar_angle), 3);
|
|
32
|
}
|