1 |
timer++; |
2 |
if (state == 0) |
3 |
{ |
4 |
if (timer > (200 / f)) |
5 |
state = 1; |
6 |
} |
7 |
if (state == 1) |
8 |
{ |
9 |
if (image_alpha > 2.2) |
10 |
{ |
11 |
if (button1_p() || button2_p() || button3_p()) |
12 |
{ |
13 |
state = 2; |
14 |
instance_create(x, y, o_bq_whitefade); |
15 |
o_bq_whitefade.depth = -150; |
16 |
} |
17 |
if (right_p()) |
18 |
con = 1; |
19 |
if (left_p()) |
20 |
con = 0; |
21 |
} |
22 |
else |
23 |
{ |
24 |
image_alpha += 0.02; |
25 |
} |
26 |
} |
27 |
if (state == 2) |
28 |
{ |
29 |
image_alpha += 0.01; |
30 |
if (image_alpha > 2.6 && con == 1) |
31 |
{ |
32 |
gameend = instance_create(0, 0, DEVICE_FAILURE); |
33 |
gameend.EVENT = 8; |
34 |
} |
35 |
if (image_alpha > 2.6 && con == 0) |
36 |
{ |
37 |
for (j = 0; j < 13; j += 1) |
38 |
global.item[j] = obj_gigaqueen_enemy.items[j]; |
39 |
for (j = 0; j < 3; j += 1) |
40 |
{ |
41 |
for (i = 0; i < 13; i += 1) |
42 |
obj_battlecontroller.tempitem[i][j] = global.item[i]; |
43 |
} |
44 |
global.battlemsg[0] = stringsetloc(* GIGA Queen blocks the way!"* GIGA Queen blocks the way!", "scr_encountersetup_slash_scr_encountersetup_gml_1104_0" ); |
45 |
instance_create(0, 0, o_bq_whitefade_persistent); |
46 |
global.batmusic[0] = snd_init("boxing_boss.ogg"); |
47 |
mus_loop_ext(global.batmusic[0], 1, 1); |
48 |
global.boxingphase = 3; |
49 |
with (obj_gigaqueen_enemy) |
50 |
{ |
51 |
balloonorder = 0; |
52 |
ballooncon = 0; |
53 |
balloonend = 1; |
54 |
talkedcon = 0; |
55 |
playerhasntdodged = 0; |
56 |
playerhasntdodgedorder = 0; |
57 |
init = 0; |
58 |
didntcounterthisturn = 0; |
59 |
didntpunchthisturn = 0; |
60 |
didntdodgethisturn = 0; |
61 |
recentphasetransition = 0; |
62 |
} |
63 |
with (o_boxingcontroller) |
64 |
{ |
65 |
global.hp[1] = global.maxhp[1]; |
66 |
global.tension = 0; |
67 |
specialcon = 0; |
68 |
health_count = 200; |
69 |
dead = 0; |
70 |
cancontrol = 1; |
71 |
drawflip = 1; |
72 |
image_xscale = 2; |
73 |
dead = 0; |
74 |
x = xstart; |
75 |
y = ystart; |
76 |
sprite_index = spr_bhero; |
77 |
image_index = 0; |
78 |
vspeed = 0; |
79 |
specialcon = 0; |
80 |
specialcontimer = 0; |
81 |
special_punch_count = 0; |
82 |
special_punch_turns = 0; |
83 |
flameactive = 0; |
84 |
flametimer = 0; |
85 |
flamepunch = 0; |
86 |
swordactive = 0; |
87 |
swordtimer = 0; |
88 |
swordpunch = 0; |
89 |
laseractive = 0; |
90 |
lasertimer = 0; |
91 |
laserpunch = 0; |
92 |
duckactive = 0; |
93 |
ducktimer = 0; |
94 |
duckpunch = 0; |
95 |
turboactive = 0; |
96 |
turbotimer = 0; |
97 |
turbopunch = 0; |
98 |
healactive = 0; |
99 |
healtimer = 0; |
100 |
healpunch = 0; |
101 |
} |
102 |
with (o_boxinghud) |
103 |
{ |
104 |
sub_healthbar_count = 2; |
105 |
healthbar_flash = 0; |
106 |
hide_ui = 0; |
107 |
hide_ui_quick = 0; |
108 |
} |
109 |
with (o_boxing_wireframe) |
110 |
{ |
111 |
pacifist_timer = 0; |
112 |
pacifist_state = 0; |
113 |
draw_draw_timer = 0; |
114 |
} |
115 |
with (o_boxingqueen) |
116 |
{ |
117 |
health_count = 1500; |
118 |
phase_transition = 0; |
119 |
attackcount = 0; |
120 |
attackcountmax = 0; |
121 |
useattacklist = 1; |
122 |
pattern_state = 0; |
123 |
player_dead_timer = 0; |
124 |
attackpattern = 0; |
125 |
attackcon = 0; |
126 |
attacktype = 1; |
127 |
punch_amount = 1; |
128 |
state = 0; |
129 |
sprite_index = spr_bqueen_idle; |
130 |
x = xstart; |
131 |
y = ystart; |
132 |
scr_qb_resetscr_qb_resetfunction scr_qb_reset()
{
attackcount = 0;
attackcountmax = 0;
attackpattern = 0;
for (i = 0; i < 20; i++)
{
list_attacktype[i] = 0;
list_attackamount[i] = 0;
list_attackvariant[i] = 0;
list_attackwait[i] = 0;
}
} (); |
133 |
with (o_boxingcontroller) |
134 |
boxingtimer = 270; |
135 |
event_user(1); |
136 |
} |
137 |
with (obj_closing_block_left) |
138 |
instance_destroy(); |
139 |
with (obj_closing_block_right) |
140 |
instance_destroy(); |
141 |
with (obj_rotating_sprite) |
142 |
instance_destroy(); |
143 |
with (obj_rotating_sprites_controller) |
144 |
instance_destroy(); |
145 |
instance_destroy(); |
146 |
} |
147 |
} |
148 |
draw_set_color(c_white); |
149 |
draw_set_halign(fa_center); |
150 |
draw_set_alpha(image_alpha); |
151 |
draw_text_transformed(340, 150, stringsetloc(Don't give up...!"Don't give up...!", "obj_boxing_loss_controller_slash_Draw_0_gml_116_0" ), 2, 2, 0); |
152 |
draw_sprite(spr_bhero_bench, 0, 320, 320); |
153 |
if (o_boxingcontroller.headsprite == spr_bhero_head_a) |
154 |
draw_sprite(spr_bhero_head_a, 9, 322, 305); |
155 |
if (o_boxingcontroller.headsprite == spr_bhero_head_b) |
156 |
draw_sprite(spr_bhero_head_b, 9, 320, 306); |
157 |
if (o_boxingcontroller.headsprite == spr_bhero_head_c) |
158 |
draw_sprite(spr_bhero_head_c, 9, 321, 303); |
159 |
if (o_boxingcontroller.headsprite == spr_bhero_head_d) |
160 |
draw_sprite(spr_bhero_head_d, 9, 321, 300); |
161 |
draw_set_alpha(image_alpha - 1); |
162 |
draw_sprite(spr_bhero_bench, 0, 320, 320); |
163 |
if (o_boxingcontroller.headsprite == spr_bhero_head_a) |
164 |
draw_sprite(spr_bhero_head_a, 9, 322, 305); |
165 |
if (o_boxingcontroller.headsprite == spr_bhero_head_b) |
166 |
draw_sprite(spr_bhero_head_b, 9, 320, 306); |
167 |
if (o_boxingcontroller.headsprite == spr_bhero_head_c) |
168 |
draw_sprite(spr_bhero_head_c, 9, 321, 303); |
169 |
if (o_boxingcontroller.headsprite == spr_bhero_head_d) |
170 |
draw_sprite(spr_bhero_head_d, 9, 321, 300); |
171 |
draw_set_halign(fa_left); |
172 |
draw_set_alpha(1); |
173 |
if (con == 0) |
174 |
draw_sprite_ext(spr_acrade_fightagain, 1, 190, 400, 1, 1, 0, c_white, image_alpha); |
175 |
else |
176 |
draw_sprite_ext(spr_acrade_fightagain, 0, 190, 400, 1, 1, 0, c_white, image_alpha); |
177 |
if (con == 1) |
178 |
draw_sprite_ext(scr_84_get_sprite("spr_acrade_retire"), 1, 370, 400, 1, 1, 0, c_white, image_alpha); |
179 |
else |
180 |
draw_sprite_ext(scr_84_get_sprite("spr_acrade_retire"), 0, 370, 400, 1, 1, 0, c_white, image_alpha); |