1 |
if (state == 0) |
2 |
{ |
3 |
flash = instance_create(x, y, o_afterimage); |
4 |
flash.sprite_index = sprite_index; |
5 |
flash.image_index = image_index; |
6 |
flash.image_xscale = image_xscale; |
7 |
flash.image_yscale = image_yscale; |
8 |
flash.image_blend = c_white; |
9 |
flash.image_speed = 0; |
10 |
flash.rate = 0.1; |
11 |
flash.hasboss = 0; |
12 |
flash.depth = depth + 1; |
13 |
flash.boss = id; |
14 |
movetime++; |
15 |
if (movetime < 18) |
16 |
__view_set(e__VW.YView, 0, __view_get(e__VW.YView, 0) + 4); |
17 |
} |
18 |
if (state == 0 && y > 310) |
19 |
{ |
20 |
y = 350; |
21 |
vspeed = 0; |
22 |
state = 1; |
23 |
image_index = 1; |
24 |
d = instance_exists(obj_shake) ? 196 : instance_create(0, 0, obj_shake); |
25 |
d.shakex = ceil(2); |
26 |
d.shakey = ceil(2); |
27 |
snd_play(snd_closet_impact); |
28 |
} |
29 |
if (state == 1) |
30 |
{ |
31 |
timer++; |
32 |
if (timer <= (20 / f)) |
33 |
{ |
34 |
shaketimer -= 0.2; |
35 |
__view_set(e__VW.XView, 0, __view_set(e__VW.XView, 0, (__view_get(e__VW.XView, 0) - shaketimer) + irandom(shaketimer * 2))); |
36 |
__view_set(e__VW.YView, 0, __view_set(e__VW.YView, 0, (__view_get(e__VW.YView, 0) - shaketimer) + irandom(shaketimer * 2))); |
37 |
} |
38 |
if (timer == (90 / f)) |
39 |
{ |
40 |
with (obj_bqueen_intro) |
41 |
con = 1; |
42 |
} |
43 |
if (timer == (110 / f)) |
44 |
timer = 100 / f; |
45 |
if (timer == (154 / f)) |
46 |
{ |
47 |
obj_battlecontroller.gigaqueencon = 4; |
48 |
obj_battlecontroller.gigaqueentimer = 0; |
49 |
} |
50 |
if (timer >= (150 / f)) |
51 |
{ |
52 |
__view_set(e__VW.XView, 0, 0); |
53 |
__view_set(e__VW.YView, 0, 0); |
54 |
image_index = 0; |
55 |
if (y >= (basey - 35)) |
56 |
{ |
57 |
y = lerp(y, basey - 35, 0.5); |
58 |
if (abs(y - basey - 35) <= 2) |
59 |
y = basey - 35; |
60 |
} |
61 |
else |
62 |
{ |
63 |
siner++; |
64 |
y = (basey - 38) + (sin(siner / 2) * 2); |
65 |
} |
66 |
if (x >= (basex - 70)) |
67 |
{ |
68 |
x = lerp(x, basex - 70, 0.5); |
69 |
if (abs(x - basex - 70) <= 2) |
70 |
x = basex - 70; |
71 |
} |
72 |
} |
73 |
if (timer == (160 / f)) |
74 |
{ |
75 |
obj_3d_bg_effect.slow_down = 0; |
76 |
with (obj_bqueen_intro) |
77 |
instance_destroy(); |
78 |
instance_destroy(); |
79 |
global.batmusic[0] = snd_init("boxing_boss.ogg"); |
80 |
mus_loop_ext(global.batmusic[0], 1, 1); |
81 |
} |
82 |
} |
83 |
|
84 |
enum e__VW |
85 |
{ |
86 |
XView, |
87 |
YView, |
88 |
WView, |
89 |
HView, |
90 |
Angle, |
91 |
HBorder, |
92 |
VBorder, |
93 |
HSpeed, |
94 |
VSpeed, |
95 |
Object, |
96 |
Visible, |
97 |
XPort, |
98 |
YPort, |
99 |
WPort, |
100 |
HPort, |
101 |
Camera, |
102 |
SurfaceID |
103 |
} |