1 |
if (room == room_dw_cyber_queen_boxing) |
2 |
arcade = 1; |
3 |
else |
4 |
arcade = 0; |
5 |
room_speed = 30; |
6 |
depth = 7; |
7 |
c = 250; |
8 |
f = 2; |
9 |
wireframe_boxing = 0; |
10 |
if (room == room_dw_cyber_queen_boxing) |
11 |
wireframe_boxing = 1; |
12 |
if (wireframe_boxing == 0) |
13 |
{ |
14 |
health_count = global.hp[1]; |
15 |
health_count_max = global.maxhp[1]; |
16 |
} |
17 |
else |
18 |
{ |
19 |
health_count = 500; |
20 |
health_count_max = 500; |
21 |
} |
22 |
disable_queen_blocking = 1; |
23 |
dodge_string = stringsetsubloc("DODGE with ~1 or ~2!", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (3), scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (1), "o_boxingcontroller_slash_Create_0_gml_18_0"); |
24 |
duck_string = stringsetsubloc("Press ~1 to Duck!", scr_get_input_namescr_get_input_namefunction scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == gp_padu)
return "\\*W ";
if (_control == gp_padd)
return "\\*S ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (0), "o_boxingcontroller_slash_Create_0_gml_19_0"); |
25 |
default_string = stringsetloc(default"default", "o_boxingcontroller_slash_Create_0_gml_20_0" ); |
26 |
health_count_prev = 200; |
27 |
health_count_prev_timer_set = 24; |
28 |
health_count_prev_timer = 0; |
29 |
white_flash = 0; |
30 |
times_hit_by_boss = 0; |
31 |
hit_baseball = 0; |
32 |
hit_baseball_check = 0; |
33 |
damage_multiplier = 1; |
34 |
punch_speed_multiplier = 1; |
35 |
color_fade_alpha = 0; |
36 |
turbo_fade_alpha = 0; |
37 |
turbo_fade_state = 0; |
38 |
sword_fade_alpha = 0; |
39 |
sword_fade_state = 0; |
40 |
miss_timer = 0; |
41 |
defend = 0; |
42 |
failed_kick_tutorial_counter = 1; |
43 |
succeeded_kick_tutorial = 0; |
44 |
arcade_loss_count = 0; |
45 |
arcade_times_blocked = 0; |
46 |
dead = 0; |
47 |
dead_timer = 0; |
48 |
arcade_mode_last_punched_direction = 0; |
49 |
if (!variable_global_exists("beat_phase1_no_damage_taken")) |
50 |
global.beat_phase1_no_damage_taken = 0; |
51 |
beat_phase1_no_damage_taken_check = 0; |
52 |
beat_phase2_no_damage_taken = 0; |
53 |
beat_phase2_no_damage_taken_check = 0; |
54 |
phase2_25_percent_health_early = 0; |
55 |
phase3_hit_check = 0; |
56 |
phase3_damage_multiplier = 0; |
57 |
attackintrotimer = 0; |
58 |
attackintrocon = 0; |
59 |
talking = 0; |
60 |
arcaderesettimer = 0; |
61 |
damagereductiononeturn = 0; |
62 |
damageoverride = 0; |
63 |
healoverride = 0; |
64 |
tpoverride = 0; |
65 |
actpunchtimer = 0; |
66 |
acttoenemytalktransition = 0; |
67 |
lastpunchside = 0; |
68 |
damagetakenthisturn = 0; |
69 |
if (wireframe_boxing == 1) |
70 |
{ |
71 |
instance_create(x, y, o_boxing_wireframe); |
72 |
sprite_index = spr_bhero_wireframe; |
73 |
with (o_boxingqueen) |
74 |
sprite_index = spr_bqueen_wireframe; |
75 |
} |
76 |
htimer = 0; |
77 |
hcon = 0; |
78 |
hsubcon = 0; |
79 |
qtimer = 0; |
80 |
qcon = 0; |
81 |
qsubcon = 0; |
82 |
punchcon = 0; |
83 |
punchtimer = 0; |
84 |
dodgecon = 0; |
85 |
dodgetimer = 0; |
86 |
dodging = 0; |
87 |
duckcon = 0; |
88 |
ducktimer = 0; |
89 |
ducking = 0; |
90 |
jumpcon = 0; |
91 |
jumptimer = 0; |
92 |
jumping = 0; |
93 |
hurtcon = 0; |
94 |
hurttimer = 0; |
95 |
hurt_length = 22 / f; |
96 |
invincible = 0; |
97 |
invincibility_timer = 0; |
98 |
buffer_punch = 0; |
99 |
buffer_l = 0; |
100 |
buffer_u = 0; |
101 |
buffer_d = 0; |
102 |
buffer_r = 0; |
103 |
buffer_z = 0; |
104 |
buffer_x = 0; |
105 |
image_speed = 0; |
106 |
image_xscale = 2; |
107 |
image_yscale = 2; |
108 |
x = 320; |
109 |
y = 390; |
110 |
basex = x; |
111 |
basey = y; |
112 |
drawflip = 1; |
113 |
headsprite = spr_bhero_head_c; |
114 |
background_xscale[0] = 2; |
115 |
background_yscale[0] = 2; |
116 |
grazer = instance_create(x, y, o_boxinggraze); |
117 |
hud = instance_create(0, 0, o_boxinghud); |
118 |
global.boxingphase = 0; |
119 |
cancontrol = 0; |
120 |
siner = 0; |
121 |
boxingtimer = 0; |
122 |
for (i = 0; i < 4; i++) |
123 |
specialactive[i] = 0; |
124 |
for (i = 0; i < 20; i++) |
125 |
{ |
126 |
imagefistx[i] = 0; |
127 |
imagefisty[i] = 0; |
128 |
} |
129 |
specialcon = 0; |
130 |
specialcontimer = 0; |
131 |
special_punch_count = 0; |
132 |
special_punch_turns = 0; |
133 |
flameactive = 0; |
134 |
flametimer = 0; |
135 |
flamepunch = 0; |
136 |
swordactive = 0; |
137 |
swordtimer = 0; |
138 |
swordpunch = 0; |
139 |
laseractive = 0; |
140 |
lasertimer = 0; |
141 |
laserpunch = 0; |
142 |
duckactive = 0; |
143 |
ducktimer = 0; |
144 |
duckpunch = 0; |
145 |
turboactive = 0; |
146 |
turbotimer = 0; |
147 |
turbopunch = 0; |
148 |
healactive = 0; |
149 |
healtimer = 0; |
150 |
healpunch = 0; |
151 |
laserpunchfadetimer = 0; |
152 |
xspot = 88; |
153 |
yspot = 180; |
154 |
imagefistx[0] = 50 - xspot; |
155 |
imagefisty[0] = 90 - yspot; |
156 |
imagefistx[1] = 68 - xspot; |
157 |
imagefisty[1] = 98 - yspot; |
158 |
imagefistx[3] = imagefistx[1]; |
159 |
imagefisty[3] = imagefisty[1]; |
160 |
imagefistx[2] = 74 - xspot; |
161 |
imagefisty[2] = 18 - yspot; |
162 |
imagefistx[4] = 70 - xspot; |
163 |
imagefisty[4] = 70 - yspot; |
164 |
imagefistx[6] = 26 - xspot; |
165 |
imagefisty[6] = 110 - yspot; |
166 |
if (global.flag[220 thrash_machine_head] == 1) |
167 |
headsprite = spr_bhero_head_b; |
168 |
if (global.flag[220 thrash_machine_head] == 2) |
169 |
headsprite = spr_bhero_head_a; |
170 |
if (global.flag[220 thrash_machine_head] == 3) |
171 |
headsprite = spr_bhero_head_d; |
172 |
headcolor = make_color_hsv(global.flag[223 thrash_head_color] * 8, 255, 255); |
173 |
glow = 0; |