|
1
|
global.battleend = 0;
|
|
2
|
global.fighting = 1;
|
|
3
|
global.batmusic[1] = mus_loop_ext(global.batmusic[0], 1, 1);
|
|
4
|
finished = 0;
|
|
5
|
var i = 0;
|
|
6
|
name[i++] = "";
|
|
7
|
name[i++] = "Applause 1";
|
|
8
|
name[i++] = "Applause 2";
|
|
9
|
name[i++] = "Applause 3";
|
|
10
|
name[i++] = "Small Cats";
|
|
11
|
name[i++] = "Big Cats 1";
|
|
12
|
name[i++] = "Big Cats 2";
|
|
13
|
name[i++] = "Big Paw";
|
|
14
|
name[i++] = "Falling Paws";
|
|
15
|
name[i++] = "Big Paw 2";
|
|
16
|
name[i++] = "Grab Cats";
|
|
17
|
name[i++] = "Paw + Cats";
|
|
18
|
name[i++] = "(skipped)";
|
|
19
|
name[i++] = "(skipped)";
|
|
20
|
name[i++] = "Combination";
|
|
21
|
name[i++] = "";
|
|
22
|
name[i++] = "";
|
|
23
|
name[i++] = "";
|
|
24
|
if (global.use_mic)
|
|
25
|
{
|
|
26
|
i = 0;
|
|
27
|
_cat_num[i] = 10;
|
|
28
|
_cat_time[i++] = 20;
|
|
29
|
_cat_num[i] = 15;
|
|
30
|
_cat_time[i++] = 25;
|
|
31
|
_cat_num[i] = 15;
|
|
32
|
_cat_time[i++] = 20;
|
|
33
|
_cat_num[i] = 6;
|
|
34
|
_cat_time[i++] = 30;
|
|
35
|
_grab_cats = 5;
|
|
36
|
_falling_num = 15;
|
|
37
|
_falling_time = 15;
|
|
38
|
i = 0;
|
|
39
|
_paw_time[i++] = 90;
|
|
40
|
_paw_time[i++] = 60;
|
|
41
|
_paw_time[i++] = 90;
|
|
42
|
cat_happiness = 1;
|
|
43
|
applause_speed = 1;
|
|
44
|
}
|
|
45
|
else
|
|
46
|
{
|
|
47
|
i = 0;
|
|
48
|
_cat_num[i] = 10;
|
|
49
|
_cat_time[i++] = 30;
|
|
50
|
_cat_num[i] = 15;
|
|
51
|
_cat_time[i++] = 15;
|
|
52
|
_cat_num[i] = 20;
|
|
53
|
_cat_time[i++] = 20;
|
|
54
|
_cat_num[i] = 6;
|
|
55
|
_cat_time[i++] = 20;
|
|
56
|
_grab_cats = 5;
|
|
57
|
_falling_num = 20;
|
|
58
|
_falling_time = 12;
|
|
59
|
i = 0;
|
|
60
|
_paw_time[i++] = 60;
|
|
61
|
_paw_time[i++] = 45;
|
|
62
|
_paw_time[i++] = 45;
|
|
63
|
cat_happiness = 1.2;
|
|
64
|
applause_speed = 1.25;
|
|
65
|
}
|
|
66
|
with (obj_mike_controller)
|
|
67
|
{
|
|
68
|
battle_active = true;
|
|
69
|
event_user(11);
|
|
70
|
}
|
|
71
|
instance_create_depth(0, 0, depth + 1, obj_volumebar);
|
|
72
|
if (i_ex(obj_astream))
|
|
73
|
{
|
|
74
|
if (obj_astream.mystream == global.batmusic[0])
|
|
75
|
{
|
|
76
|
if (obj_astream.songname != "mus/battle.ogg")
|
|
77
|
battlemusicvolume = 1;
|
|
78
|
}
|
|
79
|
scr_debug_printscr_debug_print
function scr_debug_print(arg0)
{
}
function print_message(arg0)
{
}
function debug_print(arg0)
{
}
function scr_debug_clear_all()
{
scr_debug_clear_persistent();
} (obj_astream.songname);
|
|
80
|
}
|
|
81
|
if (instance_number(obj_heart) == 0)
|
|
82
|
{
|
|
83
|
with (instance_create_depth(x, y, depth, obj_heart))
|
|
84
|
visible = false;
|
|
85
|
}
|
|
86
|
msg_max = 0;
|
|
87
|
msg_current = 0;
|
|
88
|
msg_del = 1;
|
|
89
|
msg_cap = 1;
|
|
90
|
text = [];
|
|
91
|
text_current = 0;
|
|
92
|
text_last = choose(0, 1, 2);
|
|
93
|
text_skip = true;
|
|
94
|
for (i = 0; i < 3; i++)
|
|
95
|
pet_current[i] = 0;
|
|
96
|
i = 0;
|
|
97
|
pet_text[i++] = stringsetloc(* Mike got pet!Wait for input"* Mike got pet!/", "obj_mike_attack_controller_slash_Create_0_gml_145_0" );
|
|
98
|
pet_text[i++] = stringsetloc(* The Maus offered you a Fruit Bonus!Wait for input"* The Maus offered you a Fruit Bonus!/", "obj_mike_attack_controller_slash_Create_0_gml_146_0" );
|
|
99
|
pet_text[i++] = stringsetloc(* The Maus was bitten!Wait for input"* The Maus was bitten!/", "obj_mike_attack_controller_slash_Create_0_gml_147_0" );
|
|
100
|
pet_text[i++] = stringsetloc(* Ralsei got pet!Wait for input"* Ralsei got pet!/", "obj_mike_attack_controller_slash_Create_0_gml_148_0" );
|
|
101
|
i = 0;
|
|
102
|
text[0][i] = stringsetloc(* Mike keeps talking loudly, as he always does."* Mike keeps talking loudly, as he always does.", "obj_mike_attack_controller_slash_Create_0_gml_152_0" );
|
|
103
|
text[1][i] = stringsetloc(* Mike combs his head back."* Mike combs his head back.", "obj_mike_attack_controller_slash_Create_0_gml_153_0" );
|
|
104
|
text[2][i++] = stringsetloc(* Mike is definitely a microphone!"* Mike is definitely a microphone!", "obj_mike_attack_controller_slash_Create_0_gml_154_0" );
|
|
105
|
text[0][i] = stringsetloc(* Mike dances silently, as he always does."* Mike dances silently, as he always does.", "obj_mike_attack_controller_slash_Create_0_gml_157_0" );
|
|
106
|
text[1][i] = stringsetloc(* Mike seems to be a little too into the jazz music."* Mike seems to be a little too into the jazz music.", "obj_mike_attack_controller_slash_Create_0_gml_158_0" );
|
|
107
|
text[2][i++] = stringsetloc(* Mike is definitely a cat!"* Mike is definitely a cat!", "obj_mike_attack_controller_slash_Create_0_gml_159_0" );
|
|
108
|
text[0][i] = stringsetloc(* Mike is definitely a cowboy!"* Mike is definitely a cowboy!", "obj_mike_attack_controller_slash_Create_0_gml_162_0" );
|
|
109
|
text[1][i] = stringsetloc(* Mike seems slightly uncomfortable in their jacket."* Mike seems slightly uncomfortable in their jacket.", "obj_mike_attack_controller_slash_Create_0_gml_163_0" );
|
|
110
|
text[2][i++] = stringsetloc(* Mike considers manipulating the volume."* Mike considers manipulating the volume.", "obj_mike_attack_controller_slash_Create_0_gml_164_0" );
|
|
111
|
text[0][i] = stringsetloc(* Mike is definitely...!?"* Mike is definitely...!?", "obj_mike_attack_controller_slash_Create_0_gml_167_0" );
|
|
112
|
text[1][i] = stringsetloc(* Sounds like feedback."* Sounds like feedback.", "obj_mike_attack_controller_slash_Create_0_gml_168_0" );
|
|
113
|
text[2][i] = stringsetloc(* Which one's the real Mike!?"* Which one's the real Mike!?", "obj_mike_attack_controller_slash_Create_0_gml_169_0" );
|
|
114
|
text[3][i++] = stringsetloc(* Mike(s) are getting ready to turn it up!"* Mike(s) are getting ready to turn it up!", "obj_mike_attack_controller_slash_Create_0_gml_171_0" );
|
|
115
|
text[0][i] = stringsetloc(* Smells like dried gel pen."* Smells like dried gel pen.", "obj_mike_attack_controller_slash_Create_0_gml_174_0" );
|
|
116
|
global.msg[0] = stringsetloc(* It's Mike!"* It's Mike!", "obj_mike_attack_controller_slash_Create_0_gml_176_0" );
|
|
117
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
118
|
battlewriter.depth = -1;
|
|
119
|
i = 0;
|
|
120
|
hero_text[0][i] = stringsetloc(* It was effective!"* It was effective!", "obj_mike_attack_controller_slash_Create_0_gml_184_0" );
|
|
121
|
hero_text[1][i] = stringsetloc(* It was sort of effective!"* It was sort of effective!", "obj_mike_attack_controller_slash_Create_0_gml_185_0" );
|
|
122
|
hero_text[2][i++] = stringsetloc(* It was crunchy, and not very fruit like!"* It was crunchy, and not very fruit like!", "obj_mike_attack_controller_slash_Create_0_gml_186_0" );
|
|
123
|
hero_text[0][i] = stringsetloc(* Touch me and you'll lose a finger, dumb ass!"* Touch me and you'll lose a finger, dumb ass!", "obj_mike_attack_controller_slash_Create_0_gml_188_0" );
|
|
124
|
hero_text[1][i] = stringsetloc(* Lay off, idiot!"* Lay off, idiot!", "obj_mike_attack_controller_slash_Create_0_gml_189_0" );
|
|
125
|
hero_text[2][i++] = stringsetloc(* ..."* ...", "obj_mike_attack_controller_slash_Create_0_gml_190_0" );
|
|
126
|
hero_text[0][i] = stringsetloc(* Ahahah! That tickles!"* Ahahah! That tickles!", "obj_mike_attack_controller_slash_Create_0_gml_192_0" );
|
|
127
|
hero_text[1][i] = stringsetloc(* Haha, i-is it okay to receive this much attention!?"* Haha, i-is it okay to receive this much attention!?", "obj_mike_attack_controller_slash_Create_0_gml_193_0" );
|
|
128
|
hero_text[2][i++] = stringsetloc(* ... petting overdose!"* ... petting overdose!", "obj_mike_attack_controller_slash_Create_0_gml_194_0" );
|
|
129
|
alarm[0] = 6; gml_Object_obj_mike_attack_controller_Alarm_0.gml
flash = -flash;
alarm[0] = clamp(point_distance(counter, 0, 0, 0) / 10, 4, 10);
|
|
130
|
flash = 1;
|
|
131
|
attacks = 0;
|
|
132
|
counter = -1;
|
|
133
|
pawtype = 0;
|
|
134
|
paw_aim = 0;
|
|
135
|
x = (camerax() + camerawidth()) / 2;
|
|
136
|
lastx = 0;
|
|
137
|
mid_attack = false;
|
|
138
|
mid_reload = 0;
|
|
139
|
paw_reload = 120;
|
|
140
|
current = 0;
|
|
141
|
canclick = false;
|
|
142
|
action = 0;
|
|
143
|
wave = 0;
|
|
144
|
last_wave = 3;
|
|
145
|
timer = 0;
|
|
146
|
move_party = false;
|
|
147
|
alpha = 0;
|
|
148
|
lastside = 3;
|
|
149
|
phase = 0;
|
|
150
|
mike = 0;
|
|
151
|
petting = 0;
|
|
152
|
txt_wait = 0;
|
|
153
|
last_talker = -1;
|
|
154
|
ending = false;
|
|
155
|
main_text = -1;
|
|
156
|
convo = 0;
|
|
157
|
talking = false;
|
|
158
|
mike_small = -1;
|
|
159
|
mike_medium = -1;
|
|
160
|
mike_big = -1;
|
|
161
|
combo = false;
|
|
162
|
text_speed = 2;
|
|
163
|
cat_max = 0;
|
|
164
|
cat_reload = 60;
|
|
165
|
cat_timer = 0;
|
|
166
|
playall = true;
|
|
167
|
display_hits = false;
|
|
168
|
for (i = 0; i < 16; i++)
|
|
169
|
hits[i] = 0;
|
|
170
|
dog_x = -100;
|
|
171
|
dog_ind = 0;
|
|
172
|
dog_xs = 1;
|
|
173
|
dog_t = 0;
|
|
174
|
target = 0;
|
|
175
|
lasttarget = 0;
|
|
176
|
lasthp = global.hp[global.char[target]];
|
|
177
|
|
|
178
|
debug_mikes = function()
|
|
179
|
{
|
|
180
|
with (obj_mike_battle)
|
|
181
|
{
|
|
182
|
obj_mike_attack_controller.mike_small = id;
|
|
183
|
with (instance_create(xstart + 80, y + 25, obj_mike_battle))
|
|
184
|
{
|
|
185
|
sprite_index = spr_mike_big;
|
|
186
|
x = xstart + 300;
|
|
187
|
image_xscale = 2;
|
|
188
|
image_yscale = 2;
|
|
189
|
type = 1;
|
|
190
|
depth = other.depth - 1;
|
|
191
|
obj_mike_attack_controller.mike_big = id;
|
|
192
|
}
|
|
193
|
with (instance_create(xstart + 80, y - 100, obj_mike_battle))
|
|
194
|
{
|
|
195
|
sprite_index = spr_mike_med;
|
|
196
|
x = xstart + 300;
|
|
197
|
image_xscale = 2;
|
|
198
|
image_yscale = 2;
|
|
199
|
type = 1;
|
|
200
|
obj_mike_attack_controller.mike_medium = id;
|
|
201
|
}
|
|
202
|
}
|
|
203
|
};
|
|
204
|
|
|
205
|
if (global.mike_skip)
|
|
206
|
{
|
|
207
|
action = 13;
|
|
208
|
mike = 0;
|
|
209
|
debug_mikes();
|
|
210
|
}
|