Frame 1
function bagel_setup() {
wobbley = false;
wobble_hit = 0;
jab_damage = -2;
upper_damage = -2;
special_damage = -50;
enemy.gotoAndStop("intro");
enemy_move = "intro";
opp = _root[opponent];
opp.block = "low";
opp.block_timing = 60;
opp.hit_timing = 100;
opp.special_timing = 360;
opp.vulnerable_time = 20;
opp.normal_time = 4;
opp.special_time = 4;
opp.normal_hit = -20;
opp.special_hit = -100;
opp.round_ko_limit = 3;
opp.match_ko_limit = 4;
opp.hit_timer = 0;
opp.block_timer = 0;
opp.special_timer = 0;
}
function bagel_return() {
if (!enemy_down) {
enemy_miss_snd = "";
returned = false;
if (((upper_counter >= 2) && (!returned)) && (!weak_spot)) {
enemy.gotoAndStop("ready high");
opp.block = "high";
returned = true;
}
if (((jab_counter >= 2) && (!returned)) && (!weak_spot)) {
enemy.gotoAndStop("ready low");
opp.block = "low";
returned = true;
}
if ((!returned) && (!weak_spot)) {
enemy.gotoAndStop("ready " + opp.block);
returned = true;
}
if (weak_spot || (wobbley)) {
weak_spot = false;
enemy.gotoAndStop("wobble");
returned = true;
}
}
}
function bagel() {
opp.special_timer = opp.special_timer + enemy_ready;
if (opp.special_timer > opp.special_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
opp.special_timer = 0;
opp.hit_timer = 0;
enemy.gotoAndStop("special");
enemy_move = "special";
opp.hit_dir = "left";
opp.hit_points = opp.special_hit;
}
}
opp.block_timer = opp.block_timer + enemy_ready;
if (opp.block_timer > opp.block_timing) {
switch (opp.block) {
case "low" :
opp.block = "high";
break;
case "high" :
opp.block = "low";
}
opp.block_timer = int(Math.random() * (opp.block_timing * 0.5));
}
if (((enemy_move == "ready low") || (enemy_move == "ready high")) && (("ready " + opp.block) != enemy_move)) {
this.temp_frame = enemy.body._currentframe;
enemy.gotoAndStop("ready " + opp.block);
enemy.body.gotoAndPlay(this.temp_frame);
}
opp.hit_timer = opp.hit_timer + enemy_ready;
if (opp.hit_timer > opp.hit_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
opp.hit_timer = int(Math.random() * (opp.hit_timing * 0.5));
switch (enemy_move) {
case "ready low" :
enemy.gotoAndStop("jab");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "left";
opp.hit_points = opp.normal_hit;
break;
case "ready high" :
enemy.gotoAndStop("upper cut");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "right";
opp.hit_points = opp.normal_hit;
}
}
}
if (((((mac_move == "dodge left") || (mac_move == "dodge right")) && (((enemy_move == "ready low") || (enemy_move == "ready high")) && (enemy.body._currentframe > 4))) && (mac.body._currentframe == 1)) && (int(Math.random() * 2))) {
mac_bad_dodge = true;
}
if (((mac_move == "stand") || (mac_move == "weak")) && (mac_bad_dodge)) {
enemy.gotoAndStop("upper cut");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "right";
opp.hit_points = opp.normal_hit;
mac_bad_dodge = false;
}
opp.vulnerable--;
if ((opp.vulnerable == 0) && (enemy_ready)) {
_root[_root.opponent + "_return"]();
}
opp.vul_fix--;
if (return_punch && ((enemy_move == "ready high") || (enemy_move == "ready low"))) {
enemy.gotoAndStop("jab");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "left";
opp.hit_points = opp.normal_hit;
return_punch = false;
}
}
function hit_by_bagel() {
sequence = 0;
if (((mac_move != "duck") && (mac_move != "return")) && (mac_move != "ko")) {
fx("enemy_punch_hit", 0, 100);
mac.gotoAndStop("hit " + opp.hit_dir);
mac_move = "hit";
update_health("mac", opp.hit_points);
if (enemy_move == "upper cut") {
opp.hit_timer = 80;
opp.block_timer = 0;
opp.block = "high";
}
}
if (mac_move == "duck") {
mac.gotoAndStop("duck hit");
if (enemy_move == "special") {
update_health("mac", opp.hit_points * 0.1);
fx("enemy_punch_hit", 0, 100);
} else {
update_health("mac", opp.hit_points * 0.5);
fx("punch_block", 0, 100);
}
mac_move = "return";
}
}
function bagel_punch_was_missed() {
if (enemy_move == "upper cut") {
enemy.body.stop();
opp.vulnerable = opp.vulnerable_time * (enemy_move != "special");
}
}
function bagel_was_hit() {
if (((weak_spot || ((enemy_move == "wobble") && (wobble_hit < 3))) && (enemy_move != "ko")) && (enemy_move != "tko")) {
opp.hit_timer = 0;
opp.block_timer = 0;
opp.special_timer = 0;
weak_spot = false;
wobbley = true;
sequence++;
scorer(10 * sequence);
make_seeds();
if (mac_move != "special") {
fx("punch_hit", 0, 100);
} else {
fx("super_punch", 0, 100);
}
if ((mac_move == "special") && (!enemy_smash)) {
enemy.gotoAndStop("hit right upper");
enemy_smash = true;
update_health("enemy", special_damage * 4);
}
if (mac_move == "upper left") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage * 4);
}
if (mac_move == "upper right") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage * 4);
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
jab_counter++;
upper_counter = 0;
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage * 4);
}
wobble_hit++;
if (wobble_hit == 3) {
wobble_hit = 0;
wobbley = false;
}
}
if ((((mac_move == "special") && (enemy_move != "ko")) && (enemy_move != "tko")) && (!enemy_smash)) {
fx("super_punch", 0, 100);
sequence++;
scorer(250);
update_health("enemy", special_damage);
if (enemy_health) {
enemy.gotoAndStop("hit left upper");
}
make_seeds();
enemy_smash = true;
}
if ((((enemy_move == "ready low") || (enemy_move == "open")) && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block low");
return_punch = true;
}
if (mac_move == "upper left") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
if (enemy_move != "open") {
jab_counter = 0;
}
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage);
make_seeds();
}
if (mac_move == "upper right") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
if (enemy_move != "open") {
jab_counter = 0;
}
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage);
make_seeds();
}
}
if ((((enemy_move == "ready high") || (enemy_move == "open")) && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "upper left") || (mac_move == "upper right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block high");
return_punch = true;
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
jab_counter++;
if (enemy_move != "open") {
upper_counter = 0;
}
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage);
make_seeds();
}
}
}
function bagel_special_check() {
if (mac_move == "hit") {
bagel_return();
}
}
function make_seeds() {
enemy_fx.attachMovie("seedy", "seedy", 89);
enemy_fx.seedy._x = enemy._x;
enemy_fx.seedy._y = enemy._y;
}
function cheese_setup() {
jab_damage = -2;
upper_damage = -2;
special_damage = -40;
enemy.gotoAndStop("intro");
enemy_move = "intro";
opp = _root[opponent];
opp.block = "low";
opp.block_timing = 80;
opp.hit_timing = 150;
opp.special_timing = 400;
opp.vulnerable_time = 32;
opp.normal_time = 4;
opp.special_time = 4;
opp.normal_hit = -8;
opp.special_hit = -20;
opp.round_ko_limit = 3;
opp.match_ko_limit = 4;
opp.hit_timer = 0;
opp.block_timer = 0;
opp.special_timer = 0;
}
function cheese_return() {
if (!enemy_down) {
enemy_miss_snd = "";
returned = false;
if ((upper_counter >= 2) && (!returned)) {
enemy.gotoAndStop("ready high");
opp.block = "high";
returned = true;
}
if ((jab_counter >= 2) && (!returned)) {
enemy.gotoAndStop("ready low");
opp.block = "low";
returned = true;
}
if (!returned) {
enemy.gotoAndStop("ready " + opp.block);
returned = true;
}
}
}
function cheese() {
opp.special_timer = opp.special_timer + enemy_ready;
if (opp.special_timer > opp.special_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
opp.special_timer = 0;
opp.hit_timer = 0;
enemy.gotoAndStop("special");
fx("cheese_attack", 0, 100);
enemy_move = "special";
opp.hit_dir = "left";
opp.hit_points = opp.special_hit;
}
}
opp.vulnerable--;
if ((opp.vulnerable == 0) && (enemy_ready)) {
_root[_root.opponent + "_return"]();
}
opp.vul_fix--;
opp.block_timer = opp.block_timer + enemy_ready;
if (opp.block_timer > opp.block_timing) {
switch (opp.block) {
case "low" :
opp.block = "high";
break;
case "high" :
opp.block = "low";
}
opp.block_timer = int(Math.random() * (opp.block_timing * 0.5));
}
if (((enemy_move == "ready low") || (enemy_move == "ready high")) && (("ready " + opp.block) != enemy_move)) {
this.temp_frame = enemy.body._currentframe;
enemy.gotoAndStop("ready " + opp.block);
enemy.body.gotoAndPlay(this.temp_frame);
}
opp.hit_timer = opp.hit_timer + enemy_ready;
if (opp.hit_timer > opp.hit_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
opp.hit_timer = int(Math.random() * (opp.hit_timing * 0.5));
switch (enemy_move) {
case "ready low" :
enemy.gotoAndStop("jab");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "left";
opp.hit_points = opp.normal_hit;
break;
case "ready high" :
enemy.gotoAndStop("upper cut");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "right";
opp.hit_points = opp.normal_hit;
}
}
}
}
function cheese_was_hit() {
if (((((enemy_move == "vulnerable") || (opp.vulnerable >= 0)) && (opp.vul_fix < 0)) && (enemy_move != "ko")) && (enemy_move != "tko")) {
enemy.gotoAndStop("vulnerable");
enemy.body.gotoAndPlay(1);
fx("big_hit", 0, 100);
sequence++;
scorer(10 * sequence);
make_sweat();
opp.vulnerable = -1;
opp.vul_fix = 10;
vul_hit++;
if (vul_hit == 4) {
if ((mac_move == "jab left") || (mac_move == "jab right")) {
enemy.gotoAndStop("hit low");
}
if (mac_move == "upper left") {
enemy.gotoAndStop("hit right upper");
}
if (mac_move == "upper right") {
enemy.gotoAndStop("hit left upper");
}
vul_hit = 0;
}
opp.hit_timer = 0;
update_health("enemy", upper_damage);
}
if ((((mac_move == "special") && (enemy_move != "ko")) && (enemy_move != "tko")) && (!enemy_smash)) {
fx("super_punch", 0, 100);
sequence++;
scorer(250);
enemy.gotoAndStop("hit left upper");
update_health("enemy", special_damage);
make_sweat();
enemy_smash = true;
}
if (((enemy_move == "open") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if (mac_move != "special") {
fx("punch_hit", 0, 100);
} else {
fx("super_punch", 0, 100);
}
sequence++;
scorer(10 * sequence);
make_sweat();
if ((mac_move == "special") && (!enemy_smash)) {
enemy.gotoAndStop("hit right upper");
update_health("enemy", -1000);
enemy_smash = true;
}
if (mac_move == "upper left") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage * 4);
}
if (mac_move == "upper right") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage * 4);
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
jab_counter++;
upper_counter = 0;
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage * 4);
}
}
if (((enemy_move == "ready low") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block low");
}
if (mac_move == "upper left") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage);
make_sweat();
}
if (mac_move == "upper right") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage);
make_sweat();
}
}
if (((enemy_move == "ready high") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "upper left") || (mac_move == "upper right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block high");
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_hit", 0, 100);
scorer(10 * sequence);
sequence++;
jab_counter++;
upper_counter = 0;
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage);
make_sweat();
}
}
}
function hit_by_cheese() {
sequence = 0;
if ((((mac_move != "duck") && (mac_move != "return")) && (enemy_move != "special")) && (mac_move != "ko")) {
fx("enemy_punch_hit", 0, 100);
mac.gotoAndStop("hit " + opp.hit_dir);
mac_move = "hit";
update_health("mac", opp.hit_points);
if (enemy_move == "upper cut") {
opp.hit_timer = 80;
opp.block_timer = 0;
opp.block = "high";
}
}
if (mac_move == "duck") {
fx("punch_block", 0, 100);
mac.gotoAndStop("duck hit");
if (enemy_move == "special") {
update_health("mac", opp.hit_points * 0.1);
} else {
update_health("mac", opp.hit_points * 0.5);
}
mac_move = "return";
}
if (enemy_move == "special") {
if (((opp.hit_dir == "left") && (mac_move != "dodge right")) || (((opp.hit_dir == "right") && (mac_move != "dodge left")) && (mac_move != "ko"))) {
fx("enemy_punch_hit", 0, 100);
mac.gotoAndStop("hit " + opp.hit_dir);
mac_move = "hit";
update_health("mac", opp.hit_points);
}
}
}
function make_sweat() {
enemy_fx.attachMovie("sweaty", "sweaty", 1);
enemy_fx.sweaty._x = enemy._x;
enemy_fx.sweaty._y = enemy._y;
}
function cheese_punch_was_missed() {
}
function muffin_setup() {
jab_damage = -3;
upper_damage = -3;
special_damage = -50;
enemy.gotoAndStop("intro");
enemy_move = "intro";
opp = _root[opponent];
opp.block = "low";
opp.block_timing = 80;
opp.hit_timing = 120;
opp.special_timing = 460;
opp.vulnerable_time = 32;
opp.normal_time = 4;
opp.special_time = 8;
opp.normal_hit = -8;
opp.special_hit = -50;
opp.round_ko_limit = 3;
opp.match_ko_limit = 4;
opp.hit_timer = 0;
opp.block_timer = 0;
opp.special_timer = 0;
}
function muffin_return() {
if (!enemy_down) {
enemy_miss_snd = "";
returned = false;
if ((upper_counter >= 2) && (!returned)) {
enemy.gotoAndStop("ready high");
opp.block = "high";
returned = true;
}
if ((jab_counter >= 2) && (!returned)) {
enemy.gotoAndStop("ready low");
opp.block = "low";
returned = true;
}
if (!returned) {
enemy.gotoAndStop("ready " + opp.block);
returned = true;
}
}
}
function muffin() {
opp.special_timer = opp.special_timer + enemy_ready;
if (opp.special_timer > opp.special_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
fx("muffin_attack", 0, 100);
opp.special_timer = 0;
opp.hit_timer = 0;
enemy.gotoAndStop("special");
enemy_move = "special";
opp.hit_dir = "left";
opp.hit_points = opp.special_hit;
}
}
opp.vulnerable--;
if ((opp.vulnerable == 0) && (enemy_ready)) {
_root[_root.opponent + "_return"]();
}
opp.vul_fix--;
opp.block_timer = opp.block_timer + enemy_ready;
if (opp.block_timer > opp.block_timing) {
switch (opp.block) {
case "low" :
opp.block = "high";
break;
case "high" :
opp.block = "low";
}
opp.block_timer = int(Math.random() * (opp.block_timing * 0.5));
}
if (((enemy_move == "ready low") || (enemy_move == "ready high")) && (("ready " + opp.block) != enemy_move)) {
this.temp_frame = enemy.body._currentframe;
enemy.gotoAndStop("ready " + opp.block);
enemy.body.gotoAndPlay(this.temp_frame);
}
opp.hit_timer = opp.hit_timer + enemy_ready;
if (opp.hit_timer > opp.hit_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
opp.hit_timer = int(Math.random() * (opp.hit_timing * 0.5));
switch (enemy_move) {
case "ready low" :
enemy.gotoAndStop("jab");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "right";
opp.hit_points = opp.normal_hit;
break;
case "ready high" :
enemy.gotoAndStop("upper cut");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "left";
opp.hit_points = opp.normal_hit;
}
}
}
}
function muffin_was_hit() {
if (((((enemy_move == "vulnerable") || (opp.vulnerable >= 0)) && (opp.vul_fix < 0)) && (enemy_move != "ko")) && (enemy_move != "tko")) {
enemy.gotoAndStop("vulnerable");
enemy.body.vun = true;
fx("big_hit", 0, 100);
sequence++;
scorer(10 * sequence);
make_berries();
opp.vulnerable = -1;
opp.vul_fix = 10;
vul_hit++;
if (vul_hit == 12) {
if ((mac_move == "jab left") || (mac_move == "jab right")) {
enemy.gotoAndStop("hit low");
}
if (mac_move == "upper left") {
enemy.gotoAndStop("hit right upper");
}
if (mac_move == "upper right") {
enemy.gotoAndStop("hit left upper");
}
vul_hit = 0;
}
opp.hit_timer = 0;
update_health("enemy", upper_damage);
}
if ((((mac_move == "special") && (enemy_move != "ko")) && (enemy_move != "tko")) && (!enemy_smash)) {
fx("super_punch", 0, 100);
sequence++;
scorer(250);
enemy.gotoAndStop("hit left upper");
update_health("enemy", special_damage);
make_berries();
enemy_smash = true;
}
if (((enemy_move == "open") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if (mac_move != "special") {
fx("punch_hit", 0, 100);
} else {
fx("super_punch", 0, 100);
}
sequence++;
scorer(10 * sequence);
make_berries();
if ((mac_move == "special") && (!enemy_smash)) {
enemy.gotoAndStop("hit right upper");
update_health("enemy", -1000);
enemy_smash = true;
}
if (mac_move == "upper left") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage * 4);
}
if (mac_move == "upper right") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage * 4);
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
jab_counter++;
upper_counter = 0;
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage * 4);
}
}
if (((enemy_move == "ready low") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block low");
}
if (mac_move == "upper left") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage);
make_berries();
}
if (mac_move == "upper right") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage);
make_berries();
}
}
if (((enemy_move == "ready high") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "upper left") || (mac_move == "upper right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block high");
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
jab_counter++;
upper_counter = 0;
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage);
make_berries();
}
}
}
function hit_by_muffin() {
sequence = 0;
if (((mac_move != "duck") && (mac_move != "return")) && (mac_move != "ko")) {
fx("enemy_punch_hit", 0, 100);
mac.gotoAndStop("hit " + opp.hit_dir);
mac_move = "hit";
update_health("mac", opp.hit_points);
energy = energy - energy_drain;
if (enemy_move == "upper cut") {
opp.hit_timer = 80;
opp.block_timer = 0;
opp.block = "high";
}
}
if (mac_move == "duck") {
fx("punch_block", 0, 100);
mac.gotoAndStop("duck hit");
if (enemy_move == "special") {
update_health("mac", opp.hit_points * 0.1);
} else {
update_health("mac", opp.hit_points * 0.5);
}
mac_move = "return";
}
}
function make_berries() {
enemy_fx.attachMovie("berry", "berry", 89);
enemy_fx.berry._x = enemy._x;
enemy_fx.berry._y = enemy._y;
}
function muffin_punch_was_missed() {
if (enemy_move == "upper cut") {
enemy.body.stop();
opp.vulnerable = opp.vulnerable_time;
}
}
function muffin_check_special() {
if ((mac_move == "duck") || (mac_move == "return")) {
muffin_stop = true;
} else {
muffin_stop = false;
}
}
function bowl_setup() {
jab_damage = -4;
upper_damage = -4;
special_damage = -60;
enemy.gotoAndStop("intro");
enemy_move = "intro";
opp = _root[opponent];
opp.block = "low";
opp.block_timing = 80;
opp.hit_timing = 120;
opp.special_timing = 460;
opp.vulnerable_time = 32;
opp.normal_time = 4;
opp.special_time = 4;
opp.normal_hit = -8;
opp.special_hit = -50;
opp.round_ko_limit = 1;
opp.match_ko_limit = 1;
opp.hit_timer = 0;
opp.block_timer = 0;
opp.special_timer = 0;
}
function bowl_return() {
if (!enemy_down) {
enemy_miss_snd = "";
returned = false;
if ((upper_counter >= 2) && (!returned)) {
enemy.gotoAndStop("ready high");
opp.block = "high";
returned = true;
}
if ((jab_counter >= 2) && (!returned)) {
enemy.gotoAndStop("ready low");
opp.block = "low";
returned = true;
}
if ((!returned) && (!weak_spot)) {
enemy.gotoAndStop("ready " + opp.block);
returned = true;
}
if ((!returned) && (weak_spot)) {
weak_spot = false;
bottle = true;
enemy.gotoAndStop("wobble");
returned = true;
}
}
}
function bowl() {
opp.special_timer = opp.special_timer + enemy_ready;
if (opp.special_timer > opp.special_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
opp.special_timer = 0;
opp.hit_timer = 0;
enemy.gotoAndStop("special");
enemy_move = "special";
opp.hit_dir = "left";
opp.hit_points = opp.special_hit;
}
}
opp.vulnerable--;
if ((opp.vulnerable == 0) && (enemy_ready)) {
_root[_root.opponent + "_return"]();
}
opp.vul_fix--;
opp.block_timer = opp.block_timer + enemy_ready;
if (opp.block_timer > opp.block_timing) {
switch (opp.block) {
case "low" :
opp.block = "high";
break;
case "high" :
opp.block = "low";
}
opp.block_timer = int(Math.random() * (opp.block_timing * 0.5));
}
if (((enemy_move == "ready low") || (enemy_move == "ready high")) && (("ready " + opp.block) != enemy_move)) {
this.temp_frame = enemy.body._currentframe;
enemy.gotoAndStop("ready " + opp.block);
enemy.body.gotoAndPlay(this.temp_frame);
}
opp.hit_timer = opp.hit_timer + enemy_ready;
if (opp.hit_timer > opp.hit_timing) {
if ((enemy_move == "ready low") || (enemy_move == "ready high")) {
opp.hit_timer = int(Math.random() * (opp.hit_timing * 0.5));
switch (enemy_move) {
case "ready low" :
enemy.gotoAndStop("jab");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "left";
opp.hit_points = opp.normal_hit;
break;
case "ready high" :
enemy.gotoAndStop("upper cut");
upper_counter = 0;
jab_counter = 0;
opp.hit_dir = "right";
opp.hit_points = opp.normal_hit;
}
}
}
}
function bowl_was_hit() {
if (((((enemy_move == "vulnerable") || (opp.vulnerable >= 0)) && (opp.vul_fix < 0)) && (enemy_move != "ko")) && (enemy_move != "tko")) {
enemy.gotoAndStop("vulnerable");
enemy.body.gotoAndPlay(1);
fx("big_hit", 0, 100);
sequence++;
scorer(10 * sequence);
make_milk();
opp.vulnerable = -1;
opp.vul_fix = 10;
vul_hit++;
if ((vul_hit == 8) || (weak_spot)) {
if ((mac_move == "jab left") || (mac_move == "jab right")) {
enemy.gotoAndStop("hit low");
}
if (mac_move == "upper left") {
enemy.gotoAndStop("hit right upper");
}
if (mac_move == "upper right") {
enemy.gotoAndStop("hit left upper");
}
vul_hit = 0;
}
opp.hit_timer = 0;
update_health("enemy", upper_damage);
}
if (((((mac_move == "special") && (enemy_move != "wobble")) && (enemy_move != "ko")) && (enemy_move != "tko")) && (!enemy_smash)) {
fx("super_punch", 0, 100);
sequence++;
scorer(250);
enemy.gotoAndStop("hit left upper");
update_health("enemy", special_damage);
make_milk();
enemy_smash = true;
}
if (((weak_spot && ((mac_move == "upper right") || (mac_move == "upper left"))) && (enemy_move != "ko")) && (enemy_move != "tko")) {
if (mac_move == "upper left") {
enemy.gotoAndStop("hit right upper");
}
if (mac_move == "upper right") {
enemy.gotoAndStop("hit left upper");
}
}
if ((((enemy_move == "wobble") || (enemy_move == "open")) && (enemy_move != "ko")) && (enemy_move != "tko")) {
if (mac_move != "special") {
fx("punch_hit", 0, 100);
} else {
fx("super_punch", 0, 100);
}
sequence++;
scorer(10 * sequence);
make_milk();
if ((mac_move == "special") && (!enemy_smash)) {
enemy.gotoAndStop("hit right upper");
update_health("enemy", -1000);
enemy_smash = true;
}
if (mac_move == "upper left") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage * 4);
}
if (mac_move == "upper right") {
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage * 4);
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
jab_counter++;
upper_counter = 0;
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage * 4);
}
}
if (((enemy_move == "ready low") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block low");
}
if (mac_move == "upper left") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit right upper");
update_health("enemy", upper_damage);
make_milk();
}
if (mac_move == "upper right") {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
upper_counter++;
jab_counter = 0;
enemy.gotoAndStop("hit left upper");
update_health("enemy", upper_damage);
make_milk();
}
}
if (((enemy_move == "ready high") && (enemy_move != "ko")) && (enemy_move != "tko")) {
if ((mac_move == "upper left") || (mac_move == "upper right")) {
fx("punch_miss", 0, 100);
sequence = 0;
enemy.gotoAndStop("block high");
}
if ((mac_move == "jab left") || (mac_move == "jab right")) {
fx("punch_hit", 0, 100);
sequence++;
scorer(10 * sequence);
jab_counter++;
upper_counter = 0;
enemy.gotoAndStop("hit low");
update_health("enemy", jab_damage);
make_milk();
}
}
}
function hit_by_bowl() {
sequence = 0;
if (((mac_move != "duck") && (mac_move != "return")) && (mac_move != "ko")) {
if (enemy_move != "special") {
fx("enemy_punch_hit", 0, 100);
}
mac.gotoAndStop("hit " + opp.hit_dir);
mac_move = "hit";
update_health("mac", opp.hit_points);
if (enemy_move == "upper cut") {
opp.hit_timer = 80;
opp.block_timer = 0;
opp.block = "high";
}
}
if (mac_move == "duck") {
fx("punch_block", 0, 100);
mac.gotoAndStop("duck hit");
if (enemy_move == "special") {
update_health("mac", opp.hit_points * 0.1);
} else {
update_health("mac", opp.hit_points * 0.5);
}
mac_move = "return";
}
if (enemy_move == "special") {
fx("bowl_attack", 0, 100);
enemy_fx.milky.removeMovieClip();
enemy_fx.attachMovie("splash", "splash", 1);
enemy_fx.splash._x = mac._x;
enemy_fx.splash._y = mac._y;
}
}
function make_milk() {
enemy_fx.attachMovie("milky", "milky", 1);
enemy_fx.milky._x = enemy._x;
enemy_fx.milky._y = enemy._y;
}
function bowl_punch_was_missed() {
if ((enemy_move == "upper cut") && (enemy_move != "special")) {
enemy.body.stop();
opp.vulnerable = opp.vulnerable_time;
}
}
function fix(timer, func) {
the_time = timer;
a = 0;
while (a < 10) {
this["f" + a] = func[1][a];
a++;
}
fixer.onEnterFrame = function () {
this.timer++;
if (this.timer == the_time) {
_root[func[0]](f0, f1, f2, f3, f4, f5, f6, f7, f8, f9);
this.timer = 0;
delete this.onEnterFrame;
}
};
}
function set_up_sounds(sound_list) {
createEmptyMovieClip("sounds", 1973);
a = 0;
while (a < sound_list.length) {
sounds.createEmptyMovieClip("sound" + sound_list[a], a);
this["sound" + sound_list[a]] = new Sound(sounds["sound" + sound_list[a]]);
this["sound" + sound_list[a]].attachSound(sound_list[a]);
a++;
}
_root.sound_list = sound_list;
}
function fx(stp, loop, vol) {
if (noise) {
this["sound" + stp].setVolume(vol);
this["sound" + stp].start(0, loop);
}
if (stp == "music1") {
music1_on = true;
}
if (stp == "music2") {
music2_on = true;
}
}
function fade(stp) {
if (stp == "music1") {
music1_on = false;
}
if (stp == "music2") {
music2_on = false;
}
_root.sounds["sound" + stp].ref = this["sound" + stp];
_root.sounds["sound" + stp].onEnterFrame = function () {
this.new_vol = this.ref.getVolume() - 5;
this.ref.setVolume(this.new_vol);
if (this.new_vol <= 0) {
this.ref.stop();
delete this.onEnterFrame;
}
};
}
function set_up_score(score_target, score_length, score_var_name) {
_root.score_length = score_length;
_root.score_target = score_target;
_root.score_var_name = score_var_name;
}
function scorer(amnt) {
score = _root[_root.score_var_name];
score = score + amnt;
sc_len = score.toString().length;
s_zero = "";
a = 0;
while (a < (_root.score_length - sc_len)) {
s_zero = s_zero + "0";
a++;
}
score_res = (s_zero + score).toString();
a = 0;
while (a < score_res.length) {
_root.game.ring.points["num" + (a + 1)].gotoAndStop(Number(score_res.substr(a, 1)) + 1);
a++;
}
_root[_root.score_var_name] = score;
}
function make_ring() {
createEmptyMovieClip("game", 100);
game.attachMovie("ring", "ring", 10);
game.attachMovie("border", "border", 1000);
ring = game.ring;
set_up_score("_root.game.ring.points", 4, "points");
scorer(0);
}
function new_match() {
round = 0;
mac_round_ko = 0;
enemy_match_ko = 0;
enemy_round_ko = 0;
enemy_health = 100;
mac_health = 100;
energy = energy_limit;
stars = 0;
}
function start_round() {
fx("crowd", 0, 100);
sequence = 0;
energy = energy_limit;
delete bug.onEnterFrame;
opp.hit_timer = 0;
opp.block_timer = 0;
opp.special_timer = 0;
ko_list_num--;
ko_list_num = Math.max(ko_list_num, 0);
mac_round_ko = 0;
enemy_round_ko = 0;
update_stars();
weak_spot = false;
bottle = false;
jab_counter = 0;
upper_counter = 0;
seconds = 0;
minutes = 2;
temp_time = 0;
update_health("mac", 20);
update_health("enemy", 20);
ring.round.gotoAndStop(round);
ring.names.gotoAndStop(enemy_num + 1);
game.attachMovie("mac", "mac", 100);
mac = game.mac;
mac._x = 220;
mac._y = 300;
mac.hit_time = 4;
mac.gotoAndStop("start");
game.attachMovie(opponent, "enemy", 90);
game.createEmptyMovieClip("enemy_fx", 89);
enemy_fx = game.enemy_fx;
enemy = game.enemy;
enemy._x = 220;
enemy._y = 244;
_root[opponent + "_setup"]();
game.attachMovie("ref", "ref", 120);
ref = game.ref;
ref.gotoAndStop("stand");
mac.onEnterFrame = function () {
if (enemy_ready) {
control_mac();
}
};
enemy.onEnterFrame = function () {
_root[opponent]();
};
this.onEnterFrame = function () {
main_loop();
};
}
function main_loop() {
mac_frame = mac._currentframe;
ring.temp = (((temp_health + " ") + bar_down) + " ") + enemy_ready;
energy = Math.min(Math.max(energy, 0), energy_limit);
ring.energy_bar.mask._width = Math.ceil(energy);
if (!energy) {
colour_tint(mac, weak);
if (mac_frame == frame_stand) {
mac.gotoAndStop("weak");
}
weaky = true;
}
if (energy && (weaky)) {
colour_tint(mac, normal);
if (mac_frame == frame_weak) {
mac.gotoAndStop("stand");
}
weaky = false;
}
resting = !(((((mac_frame == frame_jab_left) || (mac_frame == frame_jab_right)) || (mac_frame == frame_upper_left)) || (mac_frame == frame_upper_right)) || (mac_frame == frame_special));
last_move = last_move + resting;
if ((last_move > fps) || ((enemy_move == "ko") || (enemy_move == "tko"))) {
energy = energy + energy_inc;
}
if (!resting) {
last_move = 0;
}
if (sequence >= 3) {
sequence = 0;
sq_count = 0;
bottle = true;
opp.special_timer = 0;
opp.hit_timer = 0;
}
if (sequence > 0) {
sq_count++;
if (sq_count > 150) {
sequence = 0;
sq_count = 0;
}
}
temp_time = temp_time - (((1 / (fps * 0.3)) * enemy_ready) * (mac_move != "bottle"));
seconds = Math.floor(temp_time);
if (seconds < 0) {
temp_time = 60;
seconds = 60;
minutes--;
}
if (seconds < 10) {
show_seconds = "0" + seconds;
} else {
show_seconds = seconds;
}
time_res = (minutes + "") + show_seconds;
tr = 0;
while (tr < 3) {
ring.time["num" + (tr + 1)].gotoAndStop(Number(time_res.toString().substr(tr, 1)) + 1);
tr++;
}
if (((minutes == 0) && (seconds == 0)) && (enemy_ready)) {
round_over();
}
enemy_punch_timer--;
if ((enemy_punch_timer > 0) && (mac_move != "hit")) {
if ((mac_move != "dodge left") && (mac_move != "dodge right")) {
_root["hit_by_" + opponent]();
}
if (((mac_move == "dodge left") || (mac_move == "dodge right")) && (enemy_miss_snd != "done")) {
fx("enemy_punch_miss", 0, 100);
enemy_miss_snd = "done";
_root[opponent + "_punch_was_missed"]();
}
}
mac_punch_timer--;
if (((mac_punch_timer > 0) && (enemy_move != "ko")) && (enemy_move != "tko")) {
_root[opponent + "_was_hit"]();
}
}
function control_mac() {
left_jab = Key.isDown(90);
right_jab = Key.isDown(88);
left_dodge = Key.isDown(37);
right_dodge = Key.isDown(39);
left_upper = Key.isDown(38) && (Key.isDown(90));
right_upper = Key.isDown(38) && (Key.isDown(88));
special = Key.isDown(32) && (stars > 0);
force_ko = Key.isDown(75);
duck = Key.isDown(40);
if (force_ko) {
update_health("enemy", -10);
}
if ((duck && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!duck_hold)) {
mac.gotoAndStop("duck");
mac_move = "duck";
duck_hold = true;
}
if (((!duck) && (mac_frame == frame_duck)) && (body_frame == body_frame_end)) {
mac.gotoAndStop("return");
mac_move = "return";
}
if (!duck) {
duck_hold = false;
}
if (((left_jab && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!left_jab_held)) && (energy)) {
mac.gotoAndStop("jab left");
left_jab_held = true;
mac_move = "jab left";
energy = energy - energy_drain;
}
if (!left_jab) {
left_jab_held = false;
}
if (((right_jab && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!right_jab_held)) && (energy)) {
mac.gotoAndStop("jab right");
right_jab_held = true;
mac_move = "jab right";
energy = energy - energy_drain;
}
if (!right_jab) {
right_jab_held = false;
}
if (((left_upper && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!left_upper_held)) && (energy)) {
mac.gotoAndStop("upper left");
left_upper_held = true;
mac_move = "upper left";
energy = energy - energy_drain;
}
if (!left_upper) {
left_upper_held = false;
}
if (((right_upper && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!right_upper_held)) && (energy)) {
mac.gotoAndStop("upper right");
right_upper_held = true;
mac_move = "upper right";
energy = energy - energy_drain;
}
if (!right_upper) {
right_upper_held = false;
}
if ((left_dodge && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!left_dodge_held)) {
mac.gotoAndStop("dodge left");
left_dodge_held = true;
}
if (!left_dodge) {
left_dodge_held = false;
}
if ((right_dodge && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!right_dodge_held)) {
mac.gotoAndStop("dodge right");
right_dodge_held = true;
}
if (!right_dodge) {
right_dodge_held = false;
}
if (((special && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (!special_hold)) && (energy)) {
mac.gotoAndStop("special");
special_hold = true;
mac_move = "special";
energy = energy - energy_drain;
}
if (!special) {
special_hold = false;
}
if ((bottle && ((mac_frame == frame_stand) || (mac_frame == frame_weak))) && (mac_frame != frame_bottle)) {
fx("pickup_frusion", 0, 100);
update_stars(1);
mac.gotoAndStop("bottle");
mac_move = "bottle";
energy = energy_limit;
ring.energy_bar.mask._width = Math.ceil(energy);
bottle = false;
ring.flash.play();
sequence = 0;
special_one.play();
}
mac_frame = mac._currentframe;
body_frame = mac.body._currentframe;
body_frame_end = mac.body._totalframes;
if (mac_frame == 1) {
mac_move = "stand";
}
}
function mac_return() {
enemy_smash = false;
mac.gotoAndStop("stand");
}
function rnd(r_num) {
return(int(Math.random() * r_num));
}
function update_health(char, amnt) {
temp_health = _root[char + "_health"];
temp_health = temp_health + amnt;
temp_health = Math.max(Math.min(temp_health, 100), 0);
_root[char + "_health"] = temp_health;
en_eq = 0.21;
ring[char + "_health"].gotoAndStop(int(temp_health * en_eq) + 1);
bar_down = ring[char + "_health"]._currentframe == 1;
if (((temp_health <= 0) || (bar_down == 1)) && (!enemy_down)) {
knock_down(char);
}
}
function update_stars(amnt) {
stars = stars + amnt;
ring.stars.gotoAndStop(stars + 1);
}
function knock_down(char) {
fx("crowd", 0, 100);
if (char == "mac") {
mac.gotoAndStop("ko " + opp.hit_dir);
mac_move = "ko";
} else {
enemy_round_ko++;
enemy_match_ko++;
if ((enemy_round_ko == opp.round_ko_limit) || (enemy_match_ko == opp.match_ko_limit)) {
enemy.gotoAndStop("tko");
fx(opponent + "_death", 0, 100);
ko_bug("tko");
} else {
enemy.gotoAndStop("ko");
ko_bug("ko");
}
enemy_down = true;
}
opp.hit_timer = 0;
opp.block_timer = 0;
opp.special_timer = 0;
sequence = 0;
bottle = false;
enemy_ready = false;
_root.ref.gotoAndStop("in");
}
function ko_bug(fr) {
bug.onEnterFrame = function () {
if (enemy_move != fr) {
enemy.gotoAndStop(fr);
}
};
}
function enemy_countdown() {
enemy_down = false;
delete bug.onEnterFrame;
ko_up = 0;
ref.gotoAndStop("count");
ref.timer = 0;
ref.ref = 0;
enemy_count_to = ((int(Math.random() * 3) + (enemy_round_ko * 3)) + (10 * (enemy_round_ko == 3))) + (10 * (opponent == "bowl"));
if ((enemy_round_ko < opp.round_ko_limit) && (enemy_match_ko < opp.match_ko_limit)) {
ref.onEnterFrame = function () {
if (ref._currentframe != 3) {
this.timer = this.timer + ((1 / fps) * 1.5);
this.ref = this.ref + ((1 / (fps / 2)) * 1.5);
this.t = int(this.timer);
this.body.gotoAndStop(int(this.ref % 2) + 1);
if ((!int(this.ref % 2)) && (!clicky)) {
fx("countdown", 0, 100);
clicky = true;
}
if (int(this.ref % 2) && (clicky)) {
clicky = false;
}
if (this.t > 0) {
this.say.gotoAndStop(this.t + 1);
}
if (this.t > enemy_count_to) {
enemy.body.play();
update_health("enemy", int(125 / (enemy_round_ko + 1)));
fx("crowd", 0, 100);
delete this.onEnterFrame;
}
if (this.t == 11) {
ko("mac");
mac.gotoAndStop("win");
delete this.onEnterFrame;
}
}
};
}
if ((enemy_match_ko == opp.match_ko_limit) || (enemy_round_ko == opp.round_ko_limit)) {
tko("mac");
mac.gotoAndStop("win");
}
}
function start_countdown() {
count.play();
ko_up = 0;
mac_round_ko++;
ko_list_num++;
ref.gotoAndStop("count");
ref.timer = 0;
ref.ref = 0;
if (mac_round_ko < mac_round_ko_limit) {
ref.onEnterFrame = function () {
if (ref._currentframe != 3) {
left_key = Key.isDown(90);
right_key = Key.isDown(88);
this.timer = this.timer + ((1 / fps) * 1.5);
this.ref = this.ref + ((1 / (fps / 2)) * 1.5);
this.t = int(this.timer);
this.body.gotoAndStop(int(this.ref % 2) + 1);
if ((!int(this.ref % 2)) && (!clicky)) {
fx("countdown", 0, 100);
clicky = true;
}
if (int(this.ref % 2) && (clicky)) {
clicky = false;
}
if (this.t > 0) {
this.say.gotoAndStop(this.t + 1);
}
if (left_key && (!this.lefty)) {
this.lefty = true;
this.righty = false;
ko_up++;
}
if (right_key && (!this.righty)) {
this.righty = true;
this.lefty = false;
ko_up++;
}
if ((ko_up >= ko_list[ko_list_num - 1]) && (this.t < 10)) {
count_told = true;
mac.gotoAndStop("get up");
update_health("mac", int(125 / (mac_round_ko + 1)));
fx("crowd", 0, 100);
delete this.onEnterFrame;
}
if (this.t == 11) {
fx("tko", 0, 100);
ko("enemy");
delete this.onEnterFrame;
}
}
};
}
if (mac_round_ko == mac_round_ko_limit) {
tko("enemy");
}
}
function ko(winner) {
fx("crowd", 0, 100);
ref.gotoAndStop("ko");
ref.say.gotoAndStop("ko");
if (winner == "mac") {
fix(100, ["win_screen", []]);
} else {
fix(100, ["game_over", []]);
}
}
function tko(winner) {
fx("tko", 0, 100);
fx("crowd", 0, 100);
ref.gotoAndStop("ko");
ref.say.gotoAndStop("tko");
delete mac.onEnterFrame;
delete enemy.onEnterFrame;
if (winner == "mac") {
scorer(ko_bonus[round - 1] + Number(time_res));
if (enemy_num != 3) {
fix(200, ["win_screen", []]);
} else {
fix(200, ["end_screen", []]);
}
} else {
fix(100, ["game_over", []]);
}
}
function end_screen() {
fx("music1", 1000000, 100);
fade("music2");
game.removeMovieClip();
attachMovie("beat game", "beat_game", 11);
int_input = new Object();
Key.addListener(int_input);
beat_game.key_rel = true;
int_input.onKeyDown = function () {
if (beat_game.key_rel && (!Key.isDown(39))) {
fx("button1", 0, 100);
beat_game.key_p = beat_game.key_p + (!Key.isDown(37));
temp_letter = chr(Key.getAscii());
beat_game["initial" + beat_game.key_p] = temp_letter.toUpperCase();
if (Key.isDown(37)) {
beat_game.key_p--;
beat_game["initial" + key_p] = "";
}
beat_game.key_rel = false;
beat_game.key_p = Math.max(Math.min(beat_game.key_p, 3), 0);
}
};
int_input.onKeyUp = function () {
beat_game.key_rel = true;
};
}
function leader_board() {
attachMovie("high scores", "high_scores", 11);
if (mac_name != undefined) {
a = 0;
while (a < high_score_list.length) {
if (high_score_list[a][0] < points) {
high_score_list.splice(a, 0, [points, mac_name]);
high_scores["rank" + (a + 1)].gotoAndStop(2);
break;
}
a++;
}
}
a = 0;
while (a < 10) {
score_len = 4 - high_score_list[a][0].toString().length;
rank_zero = "";
b = 0;
while (b < score_len) {
rank_zero = rank_zero + "0";
b++;
}
high_scores["rank" + (a + 1)].rank = (((((a + 1) + ". ") + high_score_list[a][1]) + " ") + rank_zero) + high_score_list[a][0];
a++;
}
while (high_score_list.length > 10) {
high_score_list.pop();
}
saved_locally.data.high_score_list = high_score_list;
delete mac_name;
}
function win_screen() {
fx("music1", 1000000, 100);
fade("music2");
enemy_num++;
game.removeMovieClip();
new_match();
pre_round();
}
function pre_round() {
game.removeMovieClip();
opponent = opponent_list[enemy_num];
round++;
attachMovie("round screen", "round_screen", 10);
}
function game_over(dont_play) {
if (!dont_play) {
fx("music1", 1000000, 100);
}
fade("music2");
game.removeMovieClip();
attachMovie("game over screen", "over_screen", 11);
}
function intro() {
if (!set_sounds) {
set_up_sounds(["bagel_attack", "bagel_death", "bowl_attack", "bowl_death", "cheese_attack", "cheese_death", "muffin_attack", "muffin_death", "enemy_punch_block", "enemy_punch_hit", "enemy_punch_miss", "enemy_punch_swipe", "button1", "button2", "countdown", "crowd", "lose", "ref_bell", "tko", "win", "big_hit", "highscore", "pickup_frusion", "punch_block", "punch_hit", "punch_miss", "punch_swipe", "super_punch", "music1", "music2"]);
set_sounds = true;
}
attachMovie("intro", "intro_screen", 11);
}
function instructions() {
attachMovie("instructions", "instructions_screen", 11);
}
function round_over() {
fx("music1", 1000000, 100);
fade("music2");
enemy_ready = false;
delete mac.onEnterFrame;
delete enemy.onEnterFrame;
mac.body.stop();
enemy.body.stop();
if (round == 3) {
ref.gotoAndStop("game over");
fix(80, ["game_over", [1]]);
} else {
fix(80, ["pre_round", []]);
fx("ref_bell", 0, 100);
}
}
function colour_tint(trg, tint) {
my_color = new Color(trg);
myColorTransform = tint;
my_color.setTransform(myColorTransform);
}
function setup() {
new_match();
pre_round();
}
function toggle_sound(force_on) {
if ((!noise) || (force_on)) {
noise = 1;
mutey.gotoAndStop("on");
if (music1_on) {
music1.stop();
fx("music1", 1000000, 100);
}
if (music2_on) {
music2.stop();
fx("music2", 100, 80);
}
} else {
noise = 0;
mutey.gotoAndStop("off");
stopAllSounds();
}
}
_quality = "low";
stop();
createEmptyMovieClip("fixer", 1000000);
saved_locally = sharedobject.getlocal("high_score2");
if (saved_locally.data.high_score_list == undefined) {
saved_locally.data.high_score_list = [[7740, "JIM"], [7020, "JEF"], [6980, "RRB"], [5110, "TFW"], [4450, "ANA"], [3890, "EJH"], [3720, "SGY"], [2990, "CHT"], [2050, "ATT"], [1850, "GJW"]];
}
high_score_list = saved_locally.data.high_score_list;
frame_stand = 1;
frame_jab_left = 7;
frame_jab_right = 13;
frame_upper_left = 20;
frame_upper_right = 28;
frame_dodge_left = 37;
frame_dodge_right = 45;
frame_duck = 54;
frame_return = 59;
frame_special = 65;
frame_hit_left = 71;
frame_hit_right = 77;
frame_weak = 84;
frame_bottle = 90;
frame_ko_left = 96;
frame_ko_right = 102;
frame_get_up = 109;
frame_win = 115;
frame_duck_hit = 119;
mac_round_ko_limit = 6;
noise = 1;
ko_list = [20, 45, 70, 95, 120];
ko_bonus = [1000, 500, 250];
energy_inc = 0.2;
energy_drain = 4;
fps = 38;
energy_limit = 52;
opponent_list = ["bowl", "muffin", "cheese", "bagel"];
round = 0;
enemy_num = 0;
enemy_ready = false;
createEmptyMovieClip("key_thing", 2000);
createEmptyMovieClip("bug", 2001);
normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
weak = {ra:100, rb:200, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
this.onEnterFrame = function () {
loaded = getBytesLoaded();
total = getBytesTotal();
percent = int(loaded / (total / 100));
display = percent + "%";
if ((loaded == total) && (total)) {
gotoAndStop (3);
intro();
fx("music1", 1000000, 100);
delete this.onEnterFrame;
}
};
Instance of Symbol 11 MovieClip "mutey" in Frame 1
onClipEvent (load) {
swapDepths(9999);
}
Instance of Symbol 15 MovieClip "special_one" in Frame 1
onClipEvent (load) {
swapDepths(9997);
}
Instance of Symbol 19 MovieClip "count" in Frame 1
onClipEvent (load) {
swapDepths(9998);
}
Symbol 8 Button
on (press) {
_root.toggle_sound();
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 82
_parent.gotoAndStop(1);
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 6
stop();
Symbol 18 MovieClip Frame 138
_parent.gotoAndStop(1);
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 6
stop();
Symbol 40 MovieClip Frame 23
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 40 MovieClip Frame 31
_root[_root.opponent + "_return"]();
Symbol 49 MovieClip Frame 26
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 49 MovieClip Frame 36
_root[_root.opponent + "_return"]();
Symbol 52 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 55 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 58 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 61 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 66 MovieClip Frame 47
_root[_root.opponent + "_return"]();
Symbol 81 MovieClip Frame 60
_parent.play();
Symbol 98 MovieClip Frame 81
if (_root.round == 1) {
stop();
}
Symbol 98 MovieClip Frame 102
if (_root.round > 1) {
gotoAndPlay (181);
}
Symbol 98 MovieClip Frame 181
_root.ref.gotoAndStop("fight");
Symbol 98 MovieClip Frame 190
_root.enemy_ready = true;
_root[_root.opponent + "_return"]();
Symbol 112 MovieClip Frame 50
_root.enemy_countdown();
stop();
Symbol 124 MovieClip Frame 45
_root.enemy_countdown();
stop();
Symbol 124 MovieClip Frame 103
_root.ref.gotoAndStop("out");
Symbol 124 MovieClip Frame 113
_root.enemy_ready = true;
_root[_root.opponent + "_return"]();
Symbol 133 MovieClip Frame 22
_root.fx("bagel_attack", 0, 100);
Symbol 133 MovieClip Frame 40
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 133 MovieClip Frame 44
_root[_root.opponent + "_special_check"]();
Symbol 133 MovieClip Frame 59
if (_root.mac_move == "ko") {
_root[_root.opponent + "_return"]();
}
Symbol 133 MovieClip Frame 63
_root.fx("bagel_attack", 0, 100);
Symbol 133 MovieClip Frame 81
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 133 MovieClip Frame 85
_root[_root.opponent + "_special_check"]();
Symbol 133 MovieClip Frame 100
if (_root.mac_move == "ko") {
_root[_root.opponent + "_return"]();
}
Symbol 133 MovieClip Frame 104
_root.fx("bagel_attack", 0, 100);
Symbol 133 MovieClip Frame 122
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 133 MovieClip Frame 126
_root[_root.opponent + "_special_check"]();
Symbol 133 MovieClip Frame 141
if (_root.mac_move == "ko") {
_root[_root.opponent + "_return"]();
}
Symbol 133 MovieClip Frame 145
_root.weak_spot = true;
Symbol 133 MovieClip Frame 157
_root.weak_spot = false;
Symbol 133 MovieClip Frame 158
_root[_root.opponent + "_return"]();
Symbol 144 MovieClip Frame 37
_root.wobbley = false;
_root.wobble_hit = 0;
_root[_root.opponent + "_return"]();
Symbol 145 MovieClip [bagel] Frame 1
_root.enemy_move = "ready low";
stop();
Symbol 145 MovieClip [bagel] Frame 9
_root.enemy_move = "ready high";
Symbol 145 MovieClip [bagel] Frame 22
_root.enemy_move = "upper cut";
Symbol 145 MovieClip [bagel] Frame 31
_root.enemy_move = "jab";
Symbol 145 MovieClip [bagel] Frame 40
_root.enemy_move = "hit";
Symbol 145 MovieClip [bagel] Frame 51
_root.enemy_move = "hit";
Symbol 145 MovieClip [bagel] Frame 63
_root.enemy_move = "hit";
Symbol 145 MovieClip [bagel] Frame 74
_root.enemy_move = "block low";
Symbol 145 MovieClip [bagel] Frame 83
_root.enemy_move = "block high";
Symbol 145 MovieClip [bagel] Frame 96
_root.enemy_move = "vulnerable";
Symbol 145 MovieClip [bagel] Frame 109
_root.enemy_move = "intro";
Symbol 145 MovieClip [bagel] Frame 118
_root.enemy_move = "tko";
Symbol 145 MovieClip [bagel] Frame 127
_root.enemy_move = "ko";
Symbol 145 MovieClip [bagel] Frame 136
_root.enemy_move = "special";
Symbol 145 MovieClip [bagel] Frame 146
_root.enemy_move = "wobble";
Symbol 152 MovieClip Frame 15
stop();
Symbol 158 Button
on (press) {
_root.fx("button2", 0, 100);
_root.mac_name = (((_root.beat_game.initial1 + "") + _root.beat_game.initial2) + "") + _root.beat_game.initial3;
Key.removeListener(_root.int_input);
_root.leader_board();
_root.beat_game.removeMovieClip();
}
Symbol 159 MovieClip [beat game] Frame 4
stop();
Symbol 162 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 163 MovieClip Frame 14
_parent.removeMovieClip();
Symbol 183 MovieClip Frame 10
_root.enemy_move = "upper cut";
Symbol 183 MovieClip Frame 22
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 183 MovieClip Frame 34
_root[_root.opponent + "_return"]();
Symbol 188 MovieClip Frame 21
_root.enemy_move = "jab";
Symbol 188 MovieClip Frame 33
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 188 MovieClip Frame 41
_root[_root.opponent + "_return"]();
Symbol 191 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 194 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 195 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 198 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 201 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 218 MovieClip Frame 16
stop();
Symbol 225 MovieClip Frame 60
_parent.play();
Symbol 232 MovieClip Frame 98
if (_root.round == 1) {
stop();
}
Symbol 232 MovieClip Frame 166
_root.ref.gotoAndStop("fight");
Symbol 232 MovieClip Frame 175
_root.enemy_ready = true;
_root[_root.opponent + "_return"]();
Symbol 258 MovieClip Frame 30
stop();
Symbol 261 MovieClip Frame 77
stop();
_root.enemy_countdown();
Symbol 271 MovieClip Frame 54
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 271 MovieClip Frame 56
_root.enemy.swapDepths(110);
Symbol 271 MovieClip Frame 71
_root.enemy.swapDepths(90);
Symbol 271 MovieClip Frame 81
_root.weak_spot = true;
Symbol 271 MovieClip Frame 108
_root.weak_spot = false;
Symbol 271 MovieClip Frame 109
_root[_root.opponent + "_return"]();
Symbol 273 MovieClip [bowl] Frame 1
_root.enemy_move = "ready low";
stop();
Symbol 273 MovieClip [bowl] Frame 9
_root.enemy_move = "ready high";
Symbol 273 MovieClip [bowl] Frame 22
_root.enemy_move = "open";
Symbol 273 MovieClip [bowl] Frame 31
_root.enemy_move = "open";
Symbol 273 MovieClip [bowl] Frame 40
_root.enemy_move = "hit";
Symbol 273 MovieClip [bowl] Frame 51
_root.enemy_move = "hit";
Symbol 273 MovieClip [bowl] Frame 63
_root.enemy_move = "hit";
Symbol 273 MovieClip [bowl] Frame 74
_root.enemy_move = "block low";
Symbol 273 MovieClip [bowl] Frame 83
_root.enemy_move = "block high";
Symbol 273 MovieClip [bowl] Frame 96
_root.enemy_move = "vulnerable";
Symbol 273 MovieClip [bowl] Frame 109
_root.enemy_move = "intro";
Symbol 273 MovieClip [bowl] Frame 118
_root.enemy_move = "tko";
Symbol 273 MovieClip [bowl] Frame 127
_root.enemy_move = "ko";
Symbol 273 MovieClip [bowl] Frame 136
_root.enemy_move = "special";
Symbol 273 MovieClip [bowl] Frame 146
_root.enemy_move = "wobble";
Symbol 278 MovieClip Frame 1
stop();
rnd = int(Math.random() * 15) + 10;
timer = 0;
this.onEnterFrame = function () {
timer = timer + _root.enemy_ready;
if ((timer == rnd) && (!_root.enemy_ready)) {
if (!int(Math.random() * 2)) {
gotoAndPlay ("ready1");
} else {
gotoAndPlay ("ready2");
}
}
};
Symbol 278 MovieClip Frame 10
gotoAndStop (1);
Symbol 278 MovieClip Frame 19
gotoAndStop (1);
Symbol 283 MovieClip Frame 3
_root.mac_punch_timer = _parent.hit_time;
Symbol 283 MovieClip Frame 13
_root.mac_return();
Symbol 284 MovieClip Frame 3
_root.mac_punch_timer = _parent.hit_time;
Symbol 284 MovieClip Frame 13
_root.mac_return();
Symbol 287 MovieClip Frame 3
_root.mac_punch_timer = _parent.hit_time;
Symbol 287 MovieClip Frame 13
_root.mac_return();
Symbol 288 MovieClip Frame 3
_root.mac_punch_timer = _parent.hit_time;
Symbol 288 MovieClip Frame 13
_root.mac_return();
Symbol 293 MovieClip Frame 5
_root.mac_move = "dodge left";
Symbol 293 MovieClip Frame 19
_root.mac_return();
Symbol 294 MovieClip Frame 5
_root.mac_move = "dodge right";
Symbol 294 MovieClip Frame 19
_root.mac_return();
Symbol 297 MovieClip Frame 8
stop();
Symbol 298 MovieClip Frame 7
_root.mac_return();
Symbol 305 MovieClip Frame 11
_root.mac_punch_timer = _parent.hit_time;
Symbol 305 MovieClip Frame 23
_root.update_stars(-1);
_root.special_told = true;
_root.mac_return();
Symbol 308 MovieClip Frame 24
_root.mac_return();
Symbol 309 MovieClip Frame 24
_root.mac_return();
Symbol 320 MovieClip Frame 26
_root.mac_return();
Symbol 321 MovieClip Frame 45
stop();
_root.start_countdown();
Symbol 322 MovieClip Frame 45
stop();
_root.start_countdown();
Symbol 324 MovieClip Frame 94
_root.ref.gotoAndStop("out");
Symbol 324 MovieClip Frame 130
_root.enemy_ready = true;
_root.mac_return();
Symbol 330 MovieClip Frame 9
_root.mac_return();
Symbol 331 MovieClip Frame 50
_root.mac_return();
Symbol 332 MovieClip [mac] Frame 1
stop();
Symbol 354 MovieClip Frame 5
_root.enemy_move = "upper cut";
Symbol 354 MovieClip Frame 17
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 354 MovieClip Frame 29
_root[_root.opponent + "_return"]();
Symbol 359 MovieClip Frame 5
_root.enemy_move = "jab";
Symbol 359 MovieClip Frame 17
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 359 MovieClip Frame 29
_root[_root.opponent + "_return"]();
Symbol 362 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 365 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 368 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 371 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 374 MovieClip Frame 35
_root[_root.opponent + "_return"]();
Symbol 394 MovieClip Frame 60
_parent.play();
Symbol 397 MovieClip Frame 93
if (_root.round == 1) {
stop();
}
Symbol 397 MovieClip Frame 127
_root.ref.gotoAndStop("fight");
Symbol 397 MovieClip Frame 136
_root.enemy_ready = true;
_root[_root.opponent + "_return"]();
Symbol 413 MovieClip Frame 61
_root.enemy_countdown();
stop();
Symbol 420 MovieClip Frame 25
_root.enemy_countdown();
stop();
Symbol 420 MovieClip Frame 85
_root.ref.gotoAndStop("out");
Symbol 420 MovieClip Frame 95
_root.enemy_ready = true;
_root[_root.opponent + "_return"]();
Symbol 427 MovieClip Frame 38
stop();
Symbol 438 MovieClip Frame 73
_root.enemy_miss_snd = "";
_root.opp.hit_dir = "right";
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 438 MovieClip Frame 84
if (_root.mac_move == "ko") {
gotoAndPlay ("out");
}
Symbol 438 MovieClip Frame 105
_root.enemy_miss_snd = "";
_root.opp.hit_dir = "left";
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 438 MovieClip Frame 117
if (_root.mac_move == "ko") {
gotoAndPlay ("out");
}
Symbol 438 MovieClip Frame 138
_root.enemy_miss_snd = "";
_root.opp.hit_dir = "right";
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 438 MovieClip Frame 149
if (_root.mac_move == "ko") {
gotoAndPlay ("out");
}
Symbol 438 MovieClip Frame 170
_root.enemy_miss_snd = "";
_root.opp.hit_dir = "left";
_root.enemy_punch_timer = _root.opp.special_time;
Symbol 438 MovieClip Frame 185
_root.opp.vulnerable = _root.opp.vulnerable_time;
Symbol 438 MovieClip Frame 202
_root.opp.vulnerable = 0;
_root[_root.opponent + "_return"]();
Symbol 439 MovieClip [cheese] Frame 1
_root.enemy_move = "ready low";
stop();
Symbol 439 MovieClip [cheese] Frame 9
_root.enemy_move = "ready high";
Symbol 439 MovieClip [cheese] Frame 22
_root.enemy_move = "open";
Symbol 439 MovieClip [cheese] Frame 31
_root.enemy_move = "open";
Symbol 439 MovieClip [cheese] Frame 40
_root.enemy_move = "hit";
Symbol 439 MovieClip [cheese] Frame 51
_root.enemy_move = "hit";
Symbol 439 MovieClip [cheese] Frame 63
_root.enemy_move = "hit";
Symbol 439 MovieClip [cheese] Frame 74
_root.enemy_move = "block low";
Symbol 439 MovieClip [cheese] Frame 83
_root.enemy_move = "block high";
Symbol 439 MovieClip [cheese] Frame 96
_root.enemy_move = "vulnerable";
Symbol 439 MovieClip [cheese] Frame 109
_root.enemy_move = "intro";
Symbol 439 MovieClip [cheese] Frame 118
_root.enemy_move = "tko";
Symbol 439 MovieClip [cheese] Frame 127
_root.enemy_move = "ko";
Symbol 439 MovieClip [cheese] Frame 136
_root.enemy_move = "special";
Symbol 439 MovieClip [cheese] Frame 146
_root.enemy_move = "wobble";
Symbol 444 MovieClip Frame 12
stop();
Symbol 448 Button
on (press) {
option_box.gotoAndStop(1);
_root.fx("button2", 0, 100);
_root.points = 0;
_root.mac_round_ko = 0;
_root.enemy_match_ko = 0;
_root.enemy_round_ko = 0;
_root.enemy_health = 100;
_root.mac_health = 100;
_root.energy = _root.energy_limit;
_root.round = 0;
_root.pre_round();
_root.over_screen.removeMovieClip();
}
Symbol 451 Button
on (press) {
option_box.gotoAndStop(2);
_root.fx("button2", 0, 100);
_root.enemy_num = 0;
_root.points = 0;
_root.intro();
_root.over_screen.removeMovieClip();
}
Symbol 452 Button
on (press) {
option_box.gotoAndStop(1);
_root.fx("button2", 0, 100);
_root.points = 0;
_root.mac_round_ko = 0;
_root.ko_list_num = 0;
_root.enemy_match_ko = 0;
_root.enemy_round_ko = 0;
_root.enemy_health = 100;
_root.mac_health = 100;
_root.energy = _root.energy_limit;
_root.round = 0;
_root.pre_round();
_root.over_screen.removeMovieClip();
}
Symbol 453 MovieClip [game over screen] Frame 4
stop();
_root.option = "rematch";
Symbol 454 Button
on (press) {
_root.fx("button2", 0, 100);
_root.enemy_num = 0;
_root.points = 0;
_root.intro();
_root.high_scores.removeMovieClip();
}
Symbol 457 MovieClip Frame 16
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 461 MovieClip [high scores] Frame 1
stop();
Symbol 462 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 486 MovieClip Frame 11
_root.enemy_move = "upper cut";
Symbol 486 MovieClip Frame 19
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 486 MovieClip Frame 29
_root[_root.opponent + "_return"]();
Symbol 491 MovieClip Frame 11
_root.enemy_move = "jab";
Symbol 491 MovieClip Frame 19
_root.enemy_punch_timer = _root.opp.normal_time;
Symbol 491 MovieClip Frame 29
_root[_root.opponent + "_return"]();
Symbol 496 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 497 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 502 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 505 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 508 MovieClip Frame 16
_root[_root.opponent + "_return"]();
Symbol 517 MovieClip Frame 1
this.vun = false;
Symbol 517 MovieClip Frame 17
if (this.vun) {
this.gotoAndPlay(1);
} else {
_root[_root.opponent + "_return"]();
}
Symbol 536 MovieClip Frame 60
_parent.play();
Symbol 537 MovieClip Frame 94
if (_root.round == 1) {
stop();
}
Symbol 537 MovieClip Frame 121
_root.ref.gotoAndStop("fight");
Symbol 537 MovieClip Frame 130
_root.enemy_ready = true;
_root[_root.opponent + "_return"]();
Symbol 555 MovieClip Frame 43
stop();
Symbol 555 MovieClip Frame 48
stop();
Symbol 556 MovieClip Frame 45
_root.enemy_countdown();
stop();
Symbol 566 MovieClip Frame 45
_root.enemy_countdown();
stop();
Symbol 566 MovieClip Frame 129
_root.ref.gotoAndStop("out");
Symbol 566 MovieClip Frame 139
_root.enemy_ready = true;
_root[_root.opponent + "_return"]();
Symbol 583 MovieClip Frame 56
_parent.play();
Symbol 586 MovieClip Frame 69
_root.enemy_punch_timer = _root.opp.special_time;
_root.muffin_check_special();
Symbol 586 MovieClip Frame 74
if (_root.muffin_stop) {
this.stop();
}
_root.muffin_stop = false;
Symbol 586 MovieClip Frame 87
_root[_root.opponent + "_return"]();
Symbol 587 MovieClip [muffin] Frame 1
_root.enemy_move = "ready low";
stop();
Symbol 587 MovieClip [muffin] Frame 9
_root.enemy_move = "ready high";
Symbol 587 MovieClip [muffin] Frame 22
_root.enemy_move = "open";
Symbol 587 MovieClip [muffin] Frame 31
_root.enemy_move = "open";
Symbol 587 MovieClip [muffin] Frame 40
_root.enemy_move = "hit";
Symbol 587 MovieClip [muffin] Frame 51
_root.enemy_move = "hit";
Symbol 587 MovieClip [muffin] Frame 63
_root.enemy_move = "hit";
Symbol 587 MovieClip [muffin] Frame 74
_root.enemy_move = "block low";
Symbol 587 MovieClip [muffin] Frame 83
_root.enemy_move = "block high";
Symbol 587 MovieClip [muffin] Frame 96
_root.enemy_move = "vulnerable";
Symbol 587 MovieClip [muffin] Frame 109
_root.enemy_move = "intro";
Symbol 587 MovieClip [muffin] Frame 118
_root.enemy_move = "tko";
Symbol 587 MovieClip [muffin] Frame 127
_root.enemy_move = "ko";
Symbol 587 MovieClip [muffin] Frame 136
_root.enemy_move = "special";
Symbol 601 MovieClip Frame 44
stop();
body.gotoAndStop(1);
Symbol 606 MovieClip Frame 5
_root.fx("ref_bell", 0, 100);
Symbol 606 MovieClip Frame 13
_parent.gotoAndStop(_root.ref_to);
Symbol 636 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 52
gotoAndPlay (43);
Symbol 642 MovieClip Frame 25
_parent.gotoAndStop(1);
Symbol 645 MovieClip Frame 5
_root.fx("ref_bell", 0, 100);
Symbol 645 MovieClip Frame 13
_root.fx("music2", 100, 80);
Symbol 645 MovieClip Frame 38
_parent.gotoAndStop("out");
Symbol 648 MovieClip Frame 24
stop();
Symbol 651 MovieClip Frame 24
gotoAndPlay (15);
Symbol 652 MovieClip [ref] Frame 1
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 758 MovieClip Frame 1
stop();
Symbol 759 MovieClip [ring] Frame 1
aud.onEnterFrame = function () {
this.t++;
this.t = this.t % 8;
if (!this.t) {
this.gotoAndStop(int(Math.random() * 4) + 1);
}
};
Symbol 768 MovieClip Frame 1
this.gotoAndStop(_root.enemy_num + 1);
Symbol 769 Button
on (press) {
_root.fx("button2", 0, 100);
_root.make_ring();
_root.start_round();
_root.fade("music1");
_root.round_screen.removeMovieClip();
}
Symbol 796 MovieClip Frame 1
this.gotoAndStop(_root.round);
Symbol 805 MovieClip Frame 1
this.gotoAndStop(_root.enemy_num + 1);
Symbol 806 MovieClip Frame 1
stop();
Symbol 809 MovieClip Frame 4
stop();
Symbol 812 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 4
stop();
Symbol 818 MovieClip Frame 4
stop();
Symbol 821 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 4
stop();
Symbol 827 MovieClip Frame 4
stop();
Symbol 829 MovieClip Frame 1
stop();
Symbol 832 MovieClip Frame 4
stop();
Symbol 835 MovieClip Frame 4
stop();
Symbol 838 MovieClip [round screen] Frame 1
talk.gotoAndStop(_root.enemy_num + 1);
talk.talk.gotoAndStop(_root.round);
if (_root.round == 1) {
talk.blackout.gotoAndStop(2);
}
Symbol 838 MovieClip [round screen] Frame 4
stop();
Symbol 845 MovieClip Frame 7
_parent.removeMovieClip();
Symbol 851 MovieClip [splash] Frame 5
this.removeMovieClip();
Symbol 857 Button
on (press) {
_root.fx("button2", 0, 100);
_root.instructions();
_root.intro_screen.removeMovieClip();
}
Symbol 862 Button
on (press) {
_root.leader_board();
}
Symbol 868 MovieClip Frame 12
stop();
Symbol 874 MovieClip Frame 16
stop();
Symbol 875 Button
on (press) {
_root.fx("button2", 0, 100);
_root.setup();
_root.instructions_screen.removeMovieClip();
}
Symbol 876 MovieClip [instructions] Frame 4
stop();
Symbol 907 MovieClip Frame 1
stop();