Frame 1
function goTo() {
getURL ("http://www.MoFunZone.com/");
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
mcCopy.onPress = function () {
getURL ("http://www.MoFunZone.com/", "_blank");
};
stop();
Frame 7
var m_vol = 50;
var s_vol = 50;
var m_pos = 0;
_quality = "HIGH";
var firstSet = true;
_root.gotoAndStop(8);
Frame 8
var win = new Array();
var draw_g = new Array();
var taunt = new Array();
var dead = new Array();
var hurry = new Array();
var b_snd = new Array();
var bon_snd = new Array();
var gen_snd = new Array();
var music = new Array();
var mcSoundLib = this.createEmptyMovieClip("mcSoundLib", 4799);
var mcSnd_1 = mcSoundLib.createEmptyMovieClip("mcHolder_1", 3);
var w_1 = new Sound(mcSnd_1);
w_1.attachSound("win1");
w_1.setVolume(s_vol);
win.push(w_1);
var mcSnd_2 = mcSoundLib.createEmptyMovieClip("mcHolder_2", 4);
var w_2 = new Sound(mcSnd_2);
w_2.attachSound("win2");
w_2.setVolume(s_vol);
win.push(w_2);
var mcSnd_3 = mcSoundLib.createEmptyMovieClip("mcHolder_3", 5);
var w_3 = new Sound(mcSnd_3);
w_3.attachSound("win3");
w_3.setVolume(s_vol);
win.push(w_3);
var mcSnd_4 = mcSoundLib.createEmptyMovieClip("mcHolder_4", 6);
var w_4 = new Sound(mcSnd_4);
w_4.attachSound("win4");
w_4.setVolume(s_vol);
win.push(w_4);
var mcSnd_5 = mcSoundLib.createEmptyMovieClip("mcHolder_5", 7);
var w_5 = new Sound(mcSnd_5);
w_5.attachSound("win5");
w_5.setVolume(s_vol);
win.push(w_5);
var mcSnd_6 = mcSoundLib.createEmptyMovieClip("mcHolder_6", 8);
var d_1 = new Sound(mcSnd_6);
d_1.attachSound("draw1");
d_1.setVolume(s_vol);
draw_g.push(d_1);
var mcSnd_7 = mcSoundLib.createEmptyMovieClip("mcHolder_7", 9);
var d_2 = new Sound(mcSnd_7);
d_2.attachSound("draw2");
d_2.setVolume(s_vol);
draw_g.push(d_2);
var mcSnd_8 = mcSoundLib.createEmptyMovieClip("mcHolder_8", 10);
var d_3 = new Sound(mcSnd_8);
d_3.attachSound("draw3");
d_3.setVolume(s_vol);
draw_g.push(d_3);
var mcSnd_9 = mcSoundLib.createEmptyMovieClip("mcHolder_9", 11);
var d_4 = new Sound(mcSnd_9);
d_4.attachSound("draw4");
d_4.setVolume(s_vol);
draw_g.push(d_4);
var mcSnd_10 = mcSoundLib.createEmptyMovieClip("mcHolder_10", 12);
var d_5 = new Sound(mcSnd_10);
d_5.attachSound("draw5");
d_5.setVolume(s_vol);
draw_g.push(d_5);
var mcSnd_11 = mcSoundLib.createEmptyMovieClip("mcHolder_11", 13);
var t_1 = new Sound(mcSnd_11);
t_1.attachSound("taunt1");
t_1.setVolume(s_vol);
taunt.push(t_1);
var mcSnd_12 = mcSoundLib.createEmptyMovieClip("mcHolder_12", 14);
var t_2 = new Sound(mcSnd_12);
t_2.attachSound("taunt2");
t_2.setVolume(s_vol);
taunt.push(t_2);
var mcSnd_13 = mcSoundLib.createEmptyMovieClip("mcHolder_13", 15);
var t_3 = new Sound(mcSnd_13);
t_3.attachSound("taunt3");
t_3.setVolume(s_vol);
taunt.push(t_3);
var mcSnd_14 = mcSoundLib.createEmptyMovieClip("mcHolder_14", 16);
var t_4 = new Sound(mcSnd_14);
t_4.attachSound("taunt4");
t_4.setVolume(s_vol);
taunt.push(t_4);
var mcSnd_15 = mcSoundLib.createEmptyMovieClip("mcHolder_15", 17);
var t_5 = new Sound(mcSnd_15);
t_5.attachSound("taunt5");
t_5.setVolume(s_vol);
taunt.push(t_5);
var mcSnd_16 = mcSoundLib.createEmptyMovieClip("mcHolder_16", 18);
var t_6 = new Sound(mcSnd_16);
t_6.attachSound("taunt6");
t_6.setVolume(s_vol);
taunt.push(t_6);
var mcSnd_17 = mcSoundLib.createEmptyMovieClip("mcHolder_17", 19);
var t_7 = new Sound(mcSnd_17);
t_7.attachSound("taunt7");
t_7.setVolume(s_vol);
taunt.push(t_7);
var mcSnd_18 = mcSoundLib.createEmptyMovieClip("mcHolder_18", 20);
var t_8 = new Sound(mcSnd_18);
t_8.attachSound("taunt8");
t_8.setVolume(s_vol);
taunt.push(t_8);
var mcSnd_19 = mcSoundLib.createEmptyMovieClip("mcHolder_19", 21);
var t_9 = new Sound(mcSnd_19);
t_9.attachSound("taunt9");
t_9.setVolume(s_vol);
taunt.push(t_9);
var mcSnd_20 = mcSoundLib.createEmptyMovieClip("mcHolder_20", 22);
var t_10 = new Sound(mcSnd_20);
t_10.attachSound("taunt10");
t_10.setVolume(s_vol);
taunt.push(t_10);
var mcSnd_21 = mcSoundLib.createEmptyMovieClip("mcHolder_21", 23);
var t_11 = new Sound(mcSnd_21);
t_11.attachSound("taunt11");
t_11.setVolume(s_vol);
taunt.push(t_11);
var mcSnd_22 = mcSoundLib.createEmptyMovieClip("mcHolder_22", 24);
var t_12 = new Sound(mcSnd_22);
t_12.attachSound("taunt12");
t_12.setVolume(s_vol);
taunt.push(t_12);
var mcSnd_23 = mcSoundLib.createEmptyMovieClip("mcHolder_23", 25);
var t_13 = new Sound(mcSnd_23);
t_13.attachSound("taunt13");
t_13.setVolume(s_vol);
taunt.push(t_13);
var mcSnd_24 = mcSoundLib.createEmptyMovieClip("mcHolder_24", 26);
var k_1 = new Sound(mcSnd_24);
k_1.attachSound("dead1");
k_1.setVolume(s_vol);
dead.push(k_1);
var mcSnd_25 = mcSoundLib.createEmptyMovieClip("mcHolder_25", 27);
var k_2 = new Sound(mcSnd_25);
k_2.attachSound("dead2");
k_2.setVolume(s_vol);
dead.push(k_2);
var mcSnd_26 = mcSoundLib.createEmptyMovieClip("mcHolder_26", 28);
var k_3 = new Sound(mcSnd_26);
k_3.attachSound("dead3");
k_3.setVolume(s_vol);
dead.push(k_3);
var mcSnd_27 = mcSoundLib.createEmptyMovieClip("mcHolder_27", 29);
var k_4 = new Sound(mcSnd_27);
k_4.attachSound("dead4");
k_4.setVolume(s_vol);
dead.push(k_4);
var mcSnd_28 = mcSoundLib.createEmptyMovieClip("mcHolder_28", 30);
var k_5 = new Sound(mcSnd_28);
k_5.attachSound("dead5");
k_5.setVolume(s_vol);
dead.push(k_5);
var mcSnd_29 = mcSoundLib.createEmptyMovieClip("mcHolder_29", 31);
var h_1 = new Sound(mcSnd_29);
h_1.attachSound("hurry5");
h_1.setVolume(s_vol);
hurry.push(h_1);
var mcSnd_30 = mcSoundLib.createEmptyMovieClip("mcHolder_30", 32);
var h_2 = new Sound(mcSnd_30);
h_2.attachSound("hurry1");
h_2.setVolume(s_vol);
hurry.push(h_2);
var mcSnd_31 = mcSoundLib.createEmptyMovieClip("mcHolder_31", 33);
var h_3 = new Sound(mcSnd_31);
h_3.attachSound("hurry2");
h_3.setVolume(s_vol);
hurry.push(h_3);
var mcSnd_32 = mcSoundLib.createEmptyMovieClip("mcHolder_32", 34);
var h_4 = new Sound(mcSnd_32);
h_4.attachSound("hurry3");
h_4.setVolume(s_vol);
hurry.push(h_4);
var mcSnd_33 = mcSoundLib.createEmptyMovieClip("mcHolder_33", 35);
var h_5 = new Sound(mcSnd_33);
h_5.attachSound("hurry4");
h_5.setVolume(s_vol);
hurry.push(h_5);
var mcSnd_34 = mcSoundLib.createEmptyMovieClip("mcHolder_34", 36);
var h_6 = new Sound(mcSnd_34);
h_6.attachSound("hurry");
h_6.setVolume(s_vol);
hurry.push(h_6);
var mcSnd_35 = mcSoundLib.createEmptyMovieClip("mcHolder_35", 37);
var b_1 = new Sound(mcSnd_35);
b_1.attachSound("explode1");
b_1.setVolume(s_vol);
b_snd.push(b_1);
var mcSnd_36 = mcSoundLib.createEmptyMovieClip("mcHolder_36", 38);
var b_2 = new Sound(mcSnd_36);
b_2.attachSound("explode2");
b_2.setVolume(s_vol);
b_snd.push(b_2);
var mcSnd_37 = mcSoundLib.createEmptyMovieClip("mcHolder_37", 39);
var b_3 = new Sound(mcSnd_37);
b_3.attachSound("explode3");
b_3.setVolume(s_vol);
b_snd.push(b_3);
var mcSnd_38 = mcSoundLib.createEmptyMovieClip("mcHolder_38", 40);
var b_4 = new Sound(mcSnd_38);
b_4.attachSound("explode4");
b_4.setVolume(s_vol);
b_snd.push(b_4);
var mcSnd_39 = mcSoundLib.createEmptyMovieClip("mcHolder_39", 41);
var b_5 = new Sound(mcSnd_39);
b_5.attachSound("stop");
b_5.setVolume(s_vol);
b_snd.push(b_5);
var mcSnd_40 = mcSoundLib.createEmptyMovieClip("mcHolder_40", 42);
var b_6 = new Sound(mcSnd_40);
b_6.attachSound("drop");
b_6.setVolume(s_vol);
b_snd.push(b_6);
var mcSnd_41 = mcSoundLib.createEmptyMovieClip("mcHolder_41", 43);
var b_7 = new Sound(mcSnd_41);
b_7.attachSound("kick");
b_7.setVolume(s_vol);
b_snd.push(b_7);
var mcSnd_52 = mcSoundLib.createEmptyMovieClip("mcHolder_52", 54);
var b_8 = new Sound(mcSnd_52);
b_8.attachSound("poops");
b_8.setVolume(s_vol);
b_snd.push(b_8);
var mcSnd_42 = mcSoundLib.createEmptyMovieClip("mcHolder_42", 44);
var bon_1 = new Sound(mcSnd_42);
bon_1.attachSound("bonus");
bon_1.setVolume(s_vol);
bon_snd.push(bon_1);
var mcSnd_43 = mcSoundLib.createEmptyMovieClip("mcHolder_43", 45);
var bon_2 = new Sound(mcSnd_43);
bon_2.attachSound("allbonus");
bon_2.setVolume(s_vol);
bon_snd.push(bon_2);
var mcSnd_44 = mcSoundLib.createEmptyMovieClip("mcHolder_44", 46);
var bon_3 = new Sound(mcSnd_44);
bon_3.attachSound("lostbonus");
bon_3.setVolume(s_vol);
bon_snd.push(bon_3);
var mcSnd_45 = mcSoundLib.createEmptyMovieClip("mcHolder_45", 47);
var bon_4 = new Sound(mcSnd_45);
bon_4.attachSound("ill");
bon_4.setVolume(s_vol);
bon_snd.push(bon_4);
var mcSnd_46 = mcSoundLib.createEmptyMovieClip("mcHolder_46", 48);
var gen_1 = new Sound(mcSnd_46);
gen_1.attachSound("dropbomb");
gen_1.setVolume(s_vol);
gen_snd.push(gen_1);
var mcSnd_47 = mcSoundLib.createEmptyMovieClip("mcHolder_47", 49);
var gen_2 = new Sound(mcSnd_47);
gen_2.attachSound("click");
gen_2.setVolume(s_vol);
gen_snd.push(gen_2);
var mcSnd_48 = mcSoundLib.createEmptyMovieClip("mcHolder_48", 50);
var gen_3 = new Sound(mcSnd_48);
gen_3.attachSound("walldrop");
gen_3.setVolume(s_vol);
gen_snd.push(gen_3);
var mcSnd_49 = mcSoundLib.createEmptyMovieClip("mcHolder_49", 51);
var gen_4 = new Sound(mcSnd_49);
gen_4.attachSound("tel");
gen_4.setVolume(s_vol);
gen_snd.push(gen_4);
var mcSnd_50 = mcSoundLib.createEmptyMovieClip("mcHolder_50", 52);
var gen_5 = new Sound(mcSnd_50);
gen_5.attachSound("fire");
gen_5.setVolume(s_vol);
gen_snd.push(gen_5);
var mcSnd_51 = mcSoundLib.createEmptyMovieClip("mcHolder_51", 53);
var gen_6 = new Sound(mcSnd_51);
gen_6.attachSound("earthq");
gen_6.setVolume(s_vol);
gen_snd.push(gen_6);
var mcSnd_53 = mcSoundLib.createEmptyMovieClip("mcHolder_53", 55);
var menu_snd = new Sound(mcSnd_53);
menu_snd.attachSound("menu");
menu_snd.setVolume(m_vol);
music.push(menu_snd);
_root.gotoAndStop(9);
Frame 9
music[0].start();
stop();
mcCopy.onPress = function () {
getURL ("http://www.MoFunZone.com/", "_blank");
};
music[0].onSoundComplete = function () {
music[0].start();
};
onEnterFrame = function () {
if (mcVideo._currentframe == mcVideo._totalframes) {
m_pos = music[0].position / 1000;
_root.gotoAndStop("menu");
}
};
Frame 14
function m_init() {
mcOptions._visible = false;
mcInstr._visible = false;
mcButtons._visible = true;
}
function refreshQuality() {
if (_quality == "LOW") {
mcOptions.mcQl.bar.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
mcOptions.mcQl.bar.gotoAndStop(2);
}
if (_quality == "HIGH") {
mcOptions.mcQl.bar.gotoAndStop(3);
}
}
function refreshSound() {
var _local1 = 0;
while (_local1 < win.length) {
if ((s_vol <= 80) && (s_vol != 0)) {
win[_local1].setVolume(s_vol + 20);
} else {
win[_local1].setVolume(s_vol);
}
_local1++;
}
_local1 = 0;
while (_local1 < draw_g.length) {
if ((s_vol <= 80) && (s_vol != 0)) {
draw_g[_local1].setVolume(s_vol + 20);
} else {
draw_g[_local1].setVolume(s_vol);
}
_local1++;
}
_local1 = 0;
while (_local1 < taunt.length) {
if ((s_vol <= 80) && (s_vol != 0)) {
taunt[_local1].setVolume(s_vol + 20);
} else {
taunt[_local1].setVolume(s_vol);
}
_local1++;
}
_local1 = 0;
while (_local1 < dead.length) {
if ((s_vol <= 80) && (s_vol != 0)) {
dead[_local1].setVolume(s_vol + 20);
} else {
dead[_local1].setVolume(s_vol);
}
_local1++;
}
_local1 = 0;
while (_local1 < hurry.length) {
hurry[_local1].setVolume(s_vol);
_local1++;
}
_local1 = 0;
while (_local1 < b_snd.length) {
b_snd[_local1].setVolume(s_vol);
_local1++;
}
_local1 = 0;
while (_local1 < bon_snd.length) {
bon_snd[_local1].setVolume(s_vol);
_local1++;
}
_local1 = 0;
while (_local1 < gen_snd.length) {
gen_snd[_local1].setVolume(s_vol);
_local1++;
}
_local1 = 0;
while (_local1 < music.length) {
music[_local1].setVolume(m_vol);
_local1++;
}
}
m_init();
refreshQuality();
refreshSound();
music[0].stop();
music[0].start(m_pos, 1);
stop();
music[0].onSoundComplete = function () {
music[0].start();
};
mcCopy.onPress = function () {
getURL ("http://www.MoFunZone.com/", "_blank");
};
mcNinja.mcBack.onPress = function () {
getURL ("http://www.MoFunZone.com/", "_blank");
};
mcButtons.butMore.onRelease = function () {
gen_snd[1].start();
getURL ("http://www.MoFunZone.com/", "_blank");
};
mcButtons.butNew.onRelease = function () {
gen_snd[1].start();
_root.gotoAndStop("game");
};
mcButtons.butOptions.onRelease = function () {
gen_snd[1].start();
mcButtons._visible = false;
mcOptions._visible = true;
mcOptions.mcMusic.bar.gotoAndStop((m_vol / 10) + 1);
mcOptions.mcSound.bar.gotoAndStop((s_vol / 10) + 1);
refreshQuality();
};
mcOptions.mcMusic.butDown.onRelease = function () {
gen_snd[1].start();
if (m_vol > 0) {
m_vol = m_vol - 10;
mcOptions.mcMusic.bar.gotoAndStop((m_vol / 10) + 1);
refreshSound();
}
};
mcOptions.mcMusic.butUp.onRelease = function () {
gen_snd[1].start();
if (m_vol < 100) {
m_vol = m_vol + 10;
mcOptions.mcMusic.bar.gotoAndStop((m_vol / 10) + 1);
refreshSound();
}
};
mcOptions.mcSound.butDown.onRelease = function () {
gen_snd[1].start();
if (s_vol > 0) {
s_vol = s_vol - 10;
mcOptions.mcSound.bar.gotoAndStop((s_vol / 10) + 1);
refreshSound();
}
};
mcOptions.mcSound.butUp.onRelease = function () {
gen_snd[1].start();
if (s_vol < 100) {
s_vol = s_vol + 10;
mcOptions.mcSound.bar.gotoAndStop((s_vol / 10) + 1);
refreshSound();
}
};
mcOptions.mcQl.butDown.onRelease = function () {
gen_snd[1].start();
if (mcOptions.mcQl.bar._currentframe == 3) {
_quality = "MEDIUM";
}
if (mcOptions.mcQl.bar._currentframe == 2) {
_quality = "LOW";
}
refreshQuality();
};
mcOptions.mcQl.butUp.onRelease = function () {
gen_snd[1].start();
if (mcOptions.mcQl.bar._currentframe == 1) {
_quality = "MEDIUM";
}
if (mcOptions.mcQl.bar._currentframe == 2) {
_quality = "HIGH";
}
refreshQuality();
};
mcOptions.butOk.onRelease = function () {
gen_snd[1].start();
m_init();
};
mcButtons.butInstr.onRelease = function () {
gen_snd[1].start();
mcButtons._visible = false;
mcInstr._visible = true;
mcInstr.mcTabs.gotoAndStop(1);
};
mcInstr.butTipps.onRelease = function () {
gen_snd[1].start();
mcInstr.mcTabs.gotoAndStop(1);
mcInstr.mcInstruct.gotoAndStop(1);
};
mcInstr.butControls.onRelease = function () {
gen_snd[1].start();
mcInstr.mcTabs.gotoAndStop(2);
mcInstr.mcInstruct.gotoAndStop(2);
};
mcInstr.butBonuses.onRelease = function () {
gen_snd[1].start();
mcInstr.mcTabs.gotoAndStop(3);
mcInstr.mcInstruct.gotoAndStop(3);
};
mcInstr.butOk.onRelease = function () {
gen_snd[1].start();
m_init();
};
Frame 22
function lev_refresh() {
mcThumbs.gotoAndStop(game.Level + 1);
}
var win_fmt = new TextFormat();
win_fmt.bold = true;
win_fmt.italic = true;
win_fmt.font = "Verdana";
win_fmt.size = 22;
var my_fmt = new TextFormat();
my_fmt.bold = true;
my_fmt.italic = false;
my_fmt.font = "Arial";
my_fmt.size = 17;
my_fmt.color = 16711680 /* 0xFF0000 */;
if (firstSet) {
firstSet = false;
var levelNames = Array("BRICKTOWN", "AMAZON", "MAGNETO", "CORAL-LAGOON", "MOVE-IT", "PYROTOPIA", "FOURWAY", "TUNDRA", "JUNKYARD", "RANDOM");
var possPlay = Array("-----", "COMP", "KEYB1", "KEYB2", "KEYB3", "KEYB4");
var possAI = Array("EASY", "MEDIUM", "HARD");
var keyB1 = new Array(37, 39, 38, 40, 13);
var keyB2 = new Array(65, 68, 87, 83, 81);
var keyB3 = new Array(72, 75, 85, 74, 78);
var keyB4 = new Array(100, 102, 104, 101, 110);
var keyBoard = new Array();
keyBoard.push(keyB1);
keyBoard.push(keyB2);
keyBoard.push(keyB3);
keyBoard.push(keyB4);
var leveltoScreen = levelNames[9];
var winstoScreen = "2 WINS";
var pl1toScreen = possPlay[2];
var pl2toScreen = possPlay[1];
var pl3toScreen = possPlay[0];
var pl4toScreen = possPlay[0];
var AItoScreen = possAI[1];
var firstrun = true;
var temp;
var game = new Object();
game.isPaused = false;
game.AI = 70;
game.setAI = 1;
game.playerNr = 0;
game.Level = 9;
game.wins = 2;
game.winner = 0;
game.pl1 = 2;
game.pl2 = 1;
game.pl3 = 0;
game.pl4 = 0;
game.randLevels = false;
} else {
if (game.randLevels) {
game.Level = 9;
}
game.playerNr = 0;
game.winner = 0;
game.isPaused = false;
}
var player1Score = "00";
var player2Score = "00";
var player3Score = "00";
var player4Score = "00";
var pl1s = new Object();
pl1s.id = "pl1";
pl1s.control = "";
pl1s.bombType = 1;
pl1s.kills = 0;
pl1s.score = 0;
pl1s.fireColor = new flash.geom.ColorTransform(1, 1, 1, 1, 221, 221, 221, 0);
pl1s.coreColor = new flash.geom.ColorTransform(0, 0, 1, 1, 0, 64, 128, 0);
var pl2s = new Object();
pl2s.id = "pl2";
pl2s.control = "";
pl2s.bombType = 2;
pl2s.kills = 0;
pl2s.score = 0;
pl2s.fireColor = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 0, 0, 0);
pl2s.coreColor = new flash.geom.ColorTransform(0, 1, 0, 1, 0, 128, 0, 0);
var pl3s = new Object();
pl3s.id = "pl3";
pl3s.control = "";
pl3s.bombType = 3;
pl3s.kills = 0;
pl3s.score = 0;
pl3s.fireColor = new flash.geom.ColorTransform(1, 1, 0, 1, 125, 125, 0, 0);
pl3s.coreColor = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 0, 0, 0);
var pl4s = new Object();
pl4s.id = "pl4";
pl4s.control = "";
pl4s.bombType = 4;
pl4s.kills = 0;
pl4s.score = 0;
pl4s.fireColor = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 155, 0, 0);
pl4s.coreColor = new flash.geom.ColorTransform(0, 0, 0, 1, 255, 224, 162, 0);
lev_refresh();
stop();
music[0].onSoundComplete = function () {
music[0].start();
};
butLevels.butUp.onRelease = function () {
gen_snd[1].start();
if (game.Level < (levelNames.length - 1)) {
game.Level++;
leveltoScreen = levelNames[game.Level];
} else {
game.Level = 0;
leveltoScreen = levelNames[game.Level];
}
lev_refresh();
};
butLevels.butDown.onRelease = function () {
gen_snd[1].start();
if (game.Level > 0) {
game.Level--;
leveltoScreen = levelNames[game.Level];
} else {
game.Level = levelNames.length - 1;
leveltoScreen = levelNames[game.Level];
}
lev_refresh();
};
butWins.butUp.onRelease = function () {
gen_snd[1].start();
if (game.wins < 30) {
game.wins++;
if (game.wins != 1) {
winstoScreen = game.wins.toString() + " WINS";
} else {
winstoScreen = game.wins.toString() + " WIN";
}
} else {
game.wins = 1;
if (game.wins != 1) {
winstoScreen = game.wins.toString() + " WINS";
} else {
winstoScreen = game.wins.toString() + " WIN";
}
}
};
butWins.butDown.onRelease = function () {
gen_snd[1].start();
if (game.wins > 1) {
game.wins--;
if (game.wins != 1) {
winstoScreen = game.wins.toString() + " WINS";
} else {
winstoScreen = game.wins.toString() + " WIN";
}
} else {
game.wins = 30;
if (game.wins != 1) {
winstoScreen = game.wins.toString() + " WINS";
} else {
winstoScreen = game.wins.toString() + " WIN";
}
}
};
butPl1.butUp.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if (game.pl1 < 1) {
game.pl1++;
pl1toScreen = possPlay[game.pl1];
} else if ((game.pl1 >= 1) && (game.pl1 < 5)) {
while (game.pl1 < 5) {
game.pl1++;
if (((game.pl1 != game.pl2) && (game.pl1 != game.pl3)) && (game.pl1 != game.pl4)) {
pl1toScreen = possPlay[game.pl1];
break;
}
if (game.pl1 == 5) {
if (temp >= 3) {
game.pl1 = 0;
} else {
game.pl1 = 1;
}
pl1toScreen = possPlay[game.pl1];
}
}
} else {
if (temp >= 3) {
game.pl1 = 0;
} else {
game.pl1 = 1;
}
pl1toScreen = possPlay[game.pl1];
}
};
butPl1.butDown.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if ((game.pl1 > 1) || ((game.pl1 == 1) && (temp >= 3))) {
if ((game.pl1 == 1) && (temp >= 3)) {
game.pl1--;
pl1toScreen = possPlay[game.pl1];
} else {
while (game.pl1 > 1) {
game.pl1--;
if ((((game.pl1 != game.pl2) && (game.pl1 != game.pl3)) && (game.pl1 != game.pl4)) || (game.pl1 == 1)) {
pl1toScreen = possPlay[game.pl1];
break;
}
}
}
} else {
game.pl1 = 5;
if (((game.pl1 != game.pl2) && (game.pl1 != game.pl3)) && (game.pl1 != game.pl4)) {
pl1toScreen = possPlay[game.pl1];
} else {
while (game.pl1 > 1) {
game.pl1--;
if ((((game.pl1 != game.pl2) && (game.pl1 != game.pl3)) && (game.pl1 != game.pl4)) || (game.pl1 == 1)) {
pl1toScreen = possPlay[game.pl1];
return;
}
}
}
}
};
butPl2.butUp.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if (game.pl2 < 1) {
game.pl2++;
pl2toScreen = possPlay[game.pl2];
} else if ((game.pl2 >= 1) && (game.pl2 < 5)) {
while (game.pl2 < 5) {
game.pl2++;
if (((game.pl2 != game.pl1) && (game.pl2 != game.pl3)) && (game.pl2 != game.pl4)) {
pl2toScreen = possPlay[game.pl2];
break;
}
if (game.pl2 == 5) {
if (temp >= 3) {
game.pl2 = 0;
} else {
game.pl2 = 1;
}
pl2toScreen = possPlay[game.pl2];
}
}
} else {
if (temp >= 3) {
game.pl2 = 0;
} else {
game.pl2 = 1;
}
pl2toScreen = possPlay[game.pl2];
}
};
butPl2.butDown.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if ((game.pl2 > 1) || ((game.pl2 == 1) && (temp >= 3))) {
if ((game.pl2 == 1) && (temp >= 3)) {
game.pl2--;
pl2toScreen = possPlay[game.pl2];
} else {
while (game.pl2 > 1) {
game.pl2--;
if ((((game.pl2 != game.pl1) && (game.pl2 != game.pl3)) && (game.pl2 != game.pl4)) || (game.pl2 == 1)) {
pl2toScreen = possPlay[game.pl2];
break;
}
}
}
} else {
game.pl2 = 5;
if (((game.pl2 != game.pl1) && (game.pl2 != game.pl3)) && (game.pl2 != game.pl4)) {
pl2toScreen = possPlay[game.pl2];
} else {
while (game.pl2 > 1) {
game.pl2--;
if ((((game.pl2 != game.pl1) && (game.pl2 != game.pl3)) && (game.pl2 != game.pl4)) || (game.pl2 == 1)) {
pl2toScreen = possPlay[game.pl2];
return;
}
}
}
}
};
butPl3.butUp.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if (game.pl3 < 1) {
game.pl3++;
pl3toScreen = possPlay[game.pl3];
} else if ((game.pl3 >= 1) && (game.pl3 < 5)) {
while (game.pl3 < 5) {
game.pl3++;
if (((game.pl3 != game.pl2) && (game.pl3 != game.pl1)) && (game.pl3 != game.pl4)) {
pl3toScreen = possPlay[game.pl3];
break;
}
if (game.pl3 == 5) {
if (temp >= 3) {
game.pl3 = 0;
} else {
game.pl3 = 1;
}
pl3toScreen = possPlay[game.pl3];
}
}
} else {
if (temp >= 3) {
game.pl3 = 0;
} else {
game.pl3 = 1;
}
pl3toScreen = possPlay[game.pl3];
}
};
butPl3.butDown.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if ((game.pl3 > 1) || ((game.pl3 == 1) && (temp >= 3))) {
if ((game.pl3 == 1) && (temp >= 3)) {
game.pl3--;
pl3toScreen = possPlay[game.pl3];
} else {
while (game.pl3 > 1) {
game.pl3--;
if ((((game.pl3 != game.pl1) && (game.pl3 != game.pl2)) && (game.pl3 != game.pl4)) || (game.pl3 == 1)) {
pl3toScreen = possPlay[game.pl3];
break;
}
}
}
} else {
game.pl3 = 5;
if (((game.pl3 != game.pl1) && (game.pl3 != game.pl2)) && (game.pl3 != game.pl4)) {
pl3toScreen = possPlay[game.pl3];
} else {
while (game.pl3 > 1) {
game.pl3--;
if ((((game.pl3 != game.pl1) && (game.pl3 != game.pl2)) && (game.pl3 != game.pl4)) || (game.pl3 == 1)) {
pl3toScreen = possPlay[game.pl3];
return;
}
}
}
}
};
butPl4.butUp.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if (game.pl4 < 1) {
game.pl4++;
pl4toScreen = possPlay[game.pl4];
} else if ((game.pl4 >= 1) && (game.pl4 < 5)) {
while (game.pl4 < 5) {
game.pl4++;
if (((game.pl4 != game.pl2) && (game.pl4 != game.pl3)) && (game.pl4 != game.pl1)) {
pl4toScreen = possPlay[game.pl4];
break;
}
if (game.pl4 == 5) {
if (temp >= 3) {
game.pl4 = 0;
} else {
game.pl4 = 1;
}
pl4toScreen = possPlay[game.pl4];
}
}
} else {
if (temp >= 3) {
game.pl4 = 0;
} else {
game.pl4 = 1;
}
pl4toScreen = possPlay[game.pl4];
}
};
butPl4.butDown.onRelease = function () {
gen_snd[1].start();
temp = 0;
if (game.pl1 > 0) {
temp++;
}
if (game.pl2 > 0) {
temp++;
}
if (game.pl3 > 0) {
temp++;
}
if (game.pl4 > 0) {
temp++;
}
if ((game.pl4 > 1) || ((game.pl4 == 1) && (temp >= 3))) {
if ((game.pl4 == 1) && (temp >= 3)) {
game.pl4--;
pl4toScreen = possPlay[game.pl4];
} else {
while (game.pl4 > 1) {
game.pl4--;
if ((((game.pl4 != game.pl2) && (game.pl4 != game.pl3)) && (game.pl4 != game.pl1)) || (game.pl4 == 1)) {
pl4toScreen = possPlay[game.pl4];
break;
}
}
}
} else {
game.pl4 = 5;
if (((game.pl4 != game.pl2) && (game.pl4 != game.pl3)) && (game.pl4 != game.pl1)) {
pl4toScreen = possPlay[game.pl4];
} else {
while (game.pl4 > 1) {
game.pl4--;
if ((((game.pl4 != game.pl2) && (game.pl4 != game.pl3)) && (game.pl4 != game.pl1)) || (game.pl4 == 1)) {
pl4toScreen = possPlay[game.pl4];
return;
}
}
}
}
};
butAI.butUp.onRelease = function () {
gen_snd[1].start();
if (game.setAI < (possAI.length - 1)) {
game.setAI++;
AItoScreen = possAI[game.setAI];
} else {
game.setAI = 0;
AItoScreen = possAI[game.setAI];
}
};
butAI.butDown.onRelease = function () {
gen_snd[1].start();
if (game.setAI > 0) {
game.setAI--;
AItoScreen = possAI[game.setAI];
} else {
game.setAI = possAI.length - 1;
AItoScreen = possAI[game.setAI];
}
};
butOk.onRelease = function () {
gen_snd[1].start();
if (game.pl1 > 0) {
game.playerNr++;
pl1s.control = possPlay[game.pl1];
if (game.pl1 > 1) {
pl1s.key_Left = keyBoard[game.pl1 - 2][0];
pl1s.key_Right = keyBoard[game.pl1 - 2][1];
pl1s.key_Up = keyBoard[game.pl1 - 2][2];
pl1s.key_Down = keyBoard[game.pl1 - 2][3];
pl1s.kBomb = keyBoard[game.pl1 - 2][4];
}
}
if (game.pl2 > 0) {
game.playerNr++;
pl2s.control = possPlay[game.pl2];
if (game.pl2 > 1) {
pl2s.key_Left = keyBoard[game.pl2 - 2][0];
pl2s.key_Right = keyBoard[game.pl2 - 2][1];
pl2s.key_Up = keyBoard[game.pl2 - 2][2];
pl2s.key_Down = keyBoard[game.pl2 - 2][3];
pl2s.kBomb = keyBoard[game.pl2 - 2][4];
}
}
if (game.pl3 > 0) {
game.playerNr++;
pl3s.control = possPlay[game.pl3];
if (game.pl3 > 1) {
pl3s.key_Left = keyBoard[game.pl3 - 2][0];
pl3s.key_Right = keyBoard[game.pl3 - 2][1];
pl3s.key_Up = keyBoard[game.pl3 - 2][2];
pl3s.key_Down = keyBoard[game.pl3 - 2][3];
pl3s.kBomb = keyBoard[game.pl3 - 2][4];
}
}
if (game.pl4 > 0) {
game.playerNr++;
pl4s.control = possPlay[game.pl4];
if (game.pl4 > 1) {
pl4s.key_Left = keyBoard[game.pl4 - 2][0];
pl4s.key_Right = keyBoard[game.pl4 - 2][1];
pl4s.key_Up = keyBoard[game.pl4 - 2][2];
pl4s.key_Down = keyBoard[game.pl4 - 2][3];
pl4s.kBomb = keyBoard[game.pl4 - 2][4];
}
}
if (game.Level == 9) {
game.randLevels = true;
} else {
game.randLevels = false;
}
if (game.setAI == 0) {
game.AI = 40;
} else {
game.AI = 70;
}
if (game.playerNr >= 2) {
music[0].stop();
_root.gotoAndStop(23);
} else {
game.playerNr = 0;
}
};
butBack.onRelease = function () {
m_pos = music[0].position / 1000;
_root.gotoAndStop("menu");
};
onEnterFrame = function () {
if (Key.isDown(27)) {
m_pos = music[0].position / 1000;
_root.gotoAndStop("menu");
}
};
Frame 23
function create2DArray(width, height) {
var _local2 = Array();
var _local1 = 0;
while (_local1 < width) {
_local2.push(Array(height));
_local1++;
}
return(_local2);
}
function dispTime(time) {
var _local1;
var _local2;
var _local3;
_local1 = Math.floor(time / 60);
_local2 = time - (_local1 * 60);
if (_local1 < 10) {
if (_local2 < 10) {
_local3 = (("0" + _local1.toString()) + ":0") + _local2.toString();
} else {
_local3 = (("0" + _local1.toString()) + ":") + _local2.toString();
}
} else {
_local3 = (_local1.toString() + ":") + _local2.toString();
}
return(_local3);
}
function buildScores(pls) {
if (pls.id == "pl1") {
if (pls.score < 10) {
player1Score = "0" + pls.score.toString();
} else {
player1Score = pls.score.toString();
}
} else if (pls.id == "pl2") {
if (pls.score < 10) {
player2Score = "0" + pls.score.toString();
} else {
player2Score = pls.score.toString();
}
} else if (pls.id == "pl3") {
if (pls.score < 10) {
player3Score = "0" + pls.score.toString();
} else {
player3Score = pls.score.toString();
}
} else if (pls.id == "pl4") {
if (pls.score < 10) {
player4Score = "0" + pls.score.toString();
} else {
player4Score = pls.score.toString();
}
}
}
function init() {
if (game.pl1 > 0) {
_root.attachMovie("mcChoose", "mcChoice", 6000, {_x:165, _y:165, _visible:false});
_root.attachMovie("mcPlayer1", "pl1", 4800, {_x:x_min, _y:y_min});
pl1.id = "pl1";
if (game.pl2 > 0) {
pl2s.others.push("pl1");
}
if (game.pl3 > 0) {
pl3s.others.push("pl1");
}
if (game.pl4 > 0) {
pl4s.others.push("pl1");
}
}
if (game.pl2 > 0) {
_root.attachMovie("mcPlayer2", "pl2", 4801, {_x:x_min + (14 * brick_dim), _y:y_min + (10 * brick_dim)});
pl2.id = "pl2";
if (game.pl1 > 0) {
pl1s.others.push("pl2");
}
if (game.pl3 > 0) {
pl3s.others.push("pl2");
}
if (game.pl4 > 0) {
pl4s.others.push("pl2");
}
}
if (game.pl3 > 0) {
_root.attachMovie("mcPlayer3", "pl3", 4802, {_x:x_min + (14 * brick_dim), _y:y_min});
pl3.id = "pl3";
if (game.pl1 > 0) {
pl1s.others.push("pl3");
}
if (game.pl2 > 0) {
pl2s.others.push("pl3");
}
if (game.pl4 > 0) {
pl4s.others.push("pl3");
}
}
if (game.pl4 > 0) {
_root.attachMovie("mcPlayer4", "pl4", 4803, {_x:x_min, _y:y_min + (10 * brick_dim)});
pl4.id = "pl4";
if (game.pl1 > 0) {
pl1s.others.push("pl4");
}
if (game.pl2 > 0) {
pl2s.others.push("pl4");
}
if (game.pl3 > 0) {
pl3s.others.push("pl4");
}
}
var _local5 = 0;
while (_local5 < 15) {
var _local2 = 0;
while (_local2 < 11) {
objBox[_local5][_local2] = undefined;
pathCheck[_local5][_local2] = new Array();
pathCheck[_local5][_local2].push(0);
pathCheck[_local5][_local2].push(0);
pathCheck[_local5][_local2].push(0);
pathCheck[_local5][_local2].push(0);
pathCheck[_local5][_local2].push(0);
specials[_local5][_local2] = new Array();
specials[_local5][_local2].push(0);
specials[_local5][_local2].push(0);
specials[_local5][_local2].push(0);
specials[_local5][_local2].push(0);
specials[_local5][_local2].push(0);
if ((((_local5 - 1) % 2) == 0) && (((_local2 - 1) % 2) == 0)) {
pathCheck[_local5][_local2][0] = 2;
var _local3 = _root.attachMovie("conc", ("wall" + _local5) + _local2, nextBrickDepth, {_x:x_min + (_local5 * brick_dim), _y:y_min + (_local2 * brick_dim)});
_local3.gotoAndStop(game.Level + 1);
objBox[_local5][_local2] = _local3;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
} else if (!(((((_local5 < 2) && (_local2 < 2)) || ((_local5 > 12) && (_local2 < 2))) || ((_local5 > 12) && (_local2 > 8))) || ((_local5 < 2) && (_local2 > 8)))) {
var _local4 = Math.floor(Math.random() * 5) + 0;
if ((game.Level == 6) && (((((_local5 == 2) && (_local2 == 2)) || ((_local5 == 12) && (_local2 == 2))) || ((_local5 == 2) && (_local2 == 8))) || ((_local5 == 12) && (_local2 == 8)))) {
if ((_local5 == 2) && (_local2 == 2)) {
var _local6 = _root.attachMovie("teleporter", ("tele_" + _local5) + _local2, 1994, {_x:x_min + (_local5 * brick_dim), _y:y_min + (_local2 * brick_dim)});
}
if ((_local5 == 12) && (_local2 == 2)) {
var _local6 = _root.attachMovie("teleporter", ("tele_" + _local5) + _local2, 1995, {_x:x_min + (_local5 * brick_dim), _y:y_min + (_local2 * brick_dim)});
}
if ((_local5 == 2) && (_local2 == 8)) {
var _local6 = _root.attachMovie("teleporter", ("tele_" + _local5) + _local2, 1996, {_x:x_min + (_local5 * brick_dim), _y:y_min + (_local2 * brick_dim)});
}
if ((_local5 == 12) && (_local2 == 8)) {
var _local6 = _root.attachMovie("teleporter", ("tele_" + _local5) + _local2, 1997, {_x:x_min + (_local5 * brick_dim), _y:y_min + (_local2 * brick_dim)});
}
teleport.push(_local6);
} else if (_local4) {
pathCheck[_local5][_local2][0] = 1;
var _local3 = _root.attachMovie("brick", ("brick_" + _local5) + _local2, nextBrickDepth, {_x:x_min + (_local5 * brick_dim), _y:y_min + (_local2 * brick_dim)});
_local3.gotoAndStop(game.Level + 1);
objBox[_local5][_local2] = _local3;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
}
}
_local2++;
}
_local5++;
}
_local5 = 0;
while (_local5 < 15) {
var _local2 = 0;
while (_local2 < 11) {
bFire[_local5][_local2] = new Array();
_local2++;
}
_local5++;
}
if (game.Level == 1) {
specials[0][1][0] = 1;
specials[0][9][0] = 1;
specials[0][10][0] = 1;
specials[1][1][0] = 1;
specials[1][2][0] = 1;
specials[1][5][0] = 1;
specials[1][6][0] = 1;
specials[1][9][0] = 1;
specials[1][10][0] = 1;
specials[2][1][0] = 1;
specials[2][2][0] = 1;
specials[2][5][0] = 1;
specials[2][6][0] = 1;
specials[2][9][0] = 1;
specials[2][10][0] = 1;
specials[3][1][0] = 1;
specials[3][2][0] = 1;
specials[3][5][0] = 1;
specials[3][6][0] = 1;
specials[4][1][0] = 1;
specials[4][2][0] = 1;
specials[4][4][0] = 1;
specials[4][5][0] = 1;
specials[4][6][0] = 1;
specials[5][4][0] = 1;
specials[5][5][0] = 1;
specials[5][6][0] = 1;
specials[5][9][0] = 1;
specials[6][4][0] = 1;
specials[6][5][0] = 1;
specials[6][6][0] = 1;
specials[6][9][0] = 1;
specials[7][9][0] = 1;
specials[7][10][0] = 1;
specials[8][8][0] = 1;
specials[8][9][0] = 1;
specials[8][10][0] = 1;
specials[10][2][0] = 1;
specials[10][3][0] = 1;
specials[10][8][0] = 1;
specials[10][9][0] = 1;
specials[10][10][0] = 1;
specials[11][2][0] = 1;
specials[11][3][0] = 1;
specials[11][8][0] = 1;
specials[11][9][0] = 1;
specials[11][10][0] = 1;
specials[12][2][0] = 1;
specials[12][3][0] = 1;
specials[12][8][0] = 1;
specials[12][9][0] = 1;
specials[12][10][0] = 1;
specials[13][2][0] = 1;
specials[13][3][0] = 1;
specials[13][8][0] = 1;
specials[13][9][0] = 1;
specials[13][10][0] = 1;
specials[14][9][0] = 1;
specials[14][10][0] = 1;
}
if (game.Level == 6) {
specials[2][2][2] = 1;
specials[12][2][2] = 1;
specials[2][8][2] = 1;
specials[12][8][2] = 1;
}
if (game.Level == 7) {
specials[0][0][3] = 1;
specials[0][1][3] = 1;
specials[0][2][3] = 1;
specials[0][3][3] = 1;
specials[0][4][3] = 1;
specials[1][0][3] = 1;
specials[1][1][3] = 1;
specials[1][2][3] = 1;
specials[1][3][3] = 1;
specials[1][4][3] = 1;
specials[2][0][3] = 1;
specials[2][1][3] = 1;
specials[2][2][3] = 1;
specials[2][3][3] = 1;
specials[3][0][3] = 1;
specials[3][1][3] = 1;
specials[3][8][3] = 1;
specials[4][0][3] = 1;
specials[4][1][3] = 1;
specials[4][7][3] = 1;
specials[4][8][3] = 1;
specials[5][8][3] = 1;
specials[6][7][3] = 1;
specials[9][2][3] = 1;
specials[10][2][3] = 1;
specials[11][2][3] = 1;
specials[11][10][3] = 1;
specials[12][2][3] = 1;
specials[12][7][3] = 1;
specials[12][8][3] = 1;
specials[12][9][3] = 1;
specials[12][10][3] = 1;
specials[13][2][3] = 1;
specials[13][6][3] = 1;
specials[13][7][3] = 1;
specials[13][8][3] = 1;
specials[13][9][3] = 1;
specials[13][10][3] = 1;
specials[14][1][3] = 1;
specials[14][2][3] = 1;
specials[14][6][3] = 1;
specials[14][7][3] = 1;
specials[14][8][3] = 1;
specials[14][9][3] = 1;
specials[14][10][3] = 1;
}
if (game.Level == 8) {
specials[12][8][4] = 1;
specials[11][8][4] = 1;
specials[10][8][4] = 1;
specials[9][8][4] = 1;
specials[8][8][4] = 1;
specials[7][8][4] = 1;
specials[6][8][4] = 1;
specials[5][8][4] = 1;
specials[4][8][4] = 1;
specials[3][8][4] = 1;
specials[2][2][4] = 2;
specials[3][2][4] = 2;
specials[4][2][4] = 2;
specials[5][2][4] = 2;
specials[6][2][4] = 2;
specials[7][2][4] = 2;
specials[8][2][4] = 2;
specials[9][2][4] = 2;
specials[10][2][4] = 2;
specials[11][2][4] = 2;
specials[2][8][4] = 3;
specials[2][7][4] = 3;
specials[2][6][4] = 3;
specials[2][5][4] = 3;
specials[2][4][4] = 3;
specials[2][3][4] = 3;
specials[12][2][4] = 4;
specials[12][3][4] = 4;
specials[12][4][4] = 4;
specials[12][5][4] = 4;
specials[12][6][4] = 4;
specials[12][7][4] = 4;
}
}
function movePlayers(pl, pls) {
if (pls.dropBomb > 0) {
pls.dropBomb--;
}
if (pls.pos == "die") {
if (pl.death._currentframe == pl.death._totalframes) {
var _local5 = 0;
while (_local5 < pls.others.length) {
if (game.pl1 > 0) {
if (pls.id == pl1s.others[_local5]) {
pl1s.others.splice(_local5, 1);
}
}
if (game.pl2 > 0) {
if (pls.id == pl2s.others[_local5]) {
pl2s.others.splice(_local5, 1);
}
}
if (game.pl3 > 0) {
if (pls.id == pl3s.others[_local5]) {
pl3s.others.splice(_local5, 1);
}
}
if (game.pl4 > 0) {
if (pls.id == pl4s.others[_local5]) {
pl4s.others.splice(_local5, 1);
}
}
_local5++;
}
playersAlive--;
buildScores(pls);
pl.removeMovieClip();
}
return(undefined);
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
var _local11 = (pl._x - x_min) % brick_dim;
var _local10 = (pl._y - y_min) % brick_dim;
var _local15 = brick_dim - _local11;
var _local14 = brick_dim - _local10;
if (_local11 > 0) {
var _local7 = pls.i + 1;
} else {
var _local7 = pls.i;
}
if (_local10 > 0) {
var _local6 = pls.j + 1;
} else {
var _local6 = pls.j;
}
if (!pls.godmode) {
if ((((bFire[pls.i][pls.j].length > 0) && (pl.hit.hitTest(bFire[pls.i][pls.j][0]))) || (pathCheck[pls.i][pls.j][0] == 2)) || (specials[pls.i][pls.j][1])) {
if (bFire[pls.i][pls.j][0].pls != pls) {
bFire[pls.i][pls.j][0].pls.kills++;
}
buildScores(bFire[pls.i][pls.j][0].pls);
pls.pos = "die";
pl.gotoAndStop("die");
var _local18 = Math.floor(Math.random() * dead.length);
dead[_local18].stop();
dead[_local18].start();
} else if ((((bFire[_local7][_local6].length > 0) && (pl.hit.hitTest(bFire[_local7][_local6][0]))) || (pathCheck[_local7][_local6][0] == 2)) || (specials[_local7][_local6][1])) {
if (bFire[pls.i][pls.j][0].pls != pls) {
bFire[_local7][_local6][0].pls.kills++;
}
buildScores(bFire[_local7][_local6][0].pls);
pls.pos = "die";
pl.gotoAndStop("die");
var _local18 = Math.floor(Math.random() * dead.length);
dead[_local18].stop();
dead[_local18].start();
}
}
handleBonus(pls, _local7, _local6, _local11, _local10);
staticTeleport(pls, _local11, _local10);
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
_local15 = brick_dim - _local11;
_local14 = brick_dim - _local10;
if (pls.sick && (playersAlive > 1)) {
if (pls.pos == "die") {
return(undefined);
}
if ((pls.Bombs >= 1) && (!pathCheck[pls.i][pls.j][0])) {
var _local19 = brick_dim / 2;
if ((_local11 > _local19) && (_local11 <= brick_dim)) {
pls.i++;
}
if ((_local10 > _local19) && (_local10 <= brick_dim)) {
pls.j++;
}
if ((!pathCheck[pls.i][pls.j][0]) && (!specials[pls.i][pls.j][2])) {
pls.Bombs--;
pls.dropBombs = 5;
var _local4 = _root.attachMovie("bomb", (("bomb" + pls.i) + pls.j) + nextBombDepth, nextBombDepth, {_x:x_min + (pls.i * brick_dim), _y:y_min + (pls.j * brick_dim)});
_local4.nr = nextBombDepth;
if (nextBombDepth < 900) {
nextBombDepth++;
} else {
nextBombDepth = 500;
}
pathCheck[pls.i][pls.j][0] = 3;
_local4.gotoAndStop(pls.bombType);
_local4.detonate = pls.detonate;
_local4.i = pls.i;
_local4.j = pls.j;
_local4.id = pls;
_local4.flen = pls.fire_len;
_local4.dir = 0;
bombBox.push(_local4);
b_snd[7].stop();
b_snd[7].start();
var _local16 = _local4.flen;
pathCheck[_local4.i][_local4.j][2] = 1;
if (_local4.i != 0) {
var _local9 = _local4.i;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local9 - 1][_local4.j][0] != 2)) && (_local9 >= 1)) && (_local13 > 0)) {
_local9--;
pathCheck[_local9][_local4.j][2] = 1;
_local13--;
if ((pathCheck[_local9][_local4.j][0] == 1) || (pathCheck[_local9][_local4.j][1])) {
_local12 = false;
}
}
}
if (_local4.i != 14) {
var _local9 = _local4.i;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local9 + 1][_local4.j][0] != 2)) && (_local9 <= 13)) && (_local13 > 0)) {
_local9++;
pathCheck[_local9][_local4.j][2] = 1;
_local13--;
if ((pathCheck[_local9][_local4.j][0] == 1) || (pathCheck[_local9][_local4.j][1])) {
_local12 = false;
}
}
}
if (_local4.j != 0) {
var _local8 = _local4.j;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local4.i][_local8 - 1][0] != 2)) && (_local8 >= 1)) && (_local13 > 0)) {
_local8--;
pathCheck[_local4.i][_local8][2] = 1;
_local13--;
if ((pathCheck[_local4.i][_local8][0] == 1) || (pathCheck[_local4.i][_local8][1])) {
_local12 = false;
}
}
}
if (_local4.j != 10) {
var _local8 = _local4.j;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local4.i][_local8 + 1][0] != 2)) && (_local8 <= 9)) && (_local13 > 0)) {
_local8++;
pathCheck[_local4.i][_local8][2] = 1;
_local13--;
if ((pathCheck[_local4.i][_local8][0] == 1) || (pathCheck[_local4.i][_local8][1])) {
_local12 = false;
}
}
}
}
}
} else if (Key.isDown(pls.kBomb) && (playersAlive > 1)) {
if (pls.pos == "die") {
return(undefined);
}
if (!Key.isDown(pls.key_Left)) {
pls.kLeft = false;
}
if (!Key.isDown(pls.key_Right)) {
pls.kRight = false;
}
if (!Key.isDown(pls.key_Up)) {
pls.kUp = false;
}
if (!Key.isDown(pls.key_Down)) {
pls.kDown = false;
}
if ((pls.Bombs >= 1) && (!pathCheck[pls.i][pls.j][0])) {
var _local19 = brick_dim / 2;
if ((_local11 > _local19) && (_local11 <= brick_dim)) {
pls.i++;
}
if ((_local10 > _local19) && (_local10 <= brick_dim)) {
pls.j++;
}
if ((!pathCheck[pls.i][pls.j][0]) && (!specials[pls.i][pls.j][2])) {
pls.Bombs--;
var _local4 = _root.attachMovie("bomb", (("bomb" + pls.i) + pls.j) + nextBombDepth, nextBombDepth, {_x:x_min + (pls.i * brick_dim), _y:y_min + (pls.j * brick_dim)});
_local4.nr = nextBombDepth;
if (nextBombDepth < 900) {
nextBombDepth++;
} else {
nextBombDepth = 500;
}
pathCheck[pls.i][pls.j][0] = 3;
_local4.gotoAndStop(pls.bombType);
_local4.detonate = pls.detonate;
_local4.i = pls.i;
_local4.j = pls.j;
_local4.id = pls;
_local4.flen = pls.fire_len;
_local4.dir = 0;
bombBox.push(_local4);
gen_snd[0].stop();
gen_snd[0].start();
var _local16 = _local4.flen;
pathCheck[_local4.i][_local4.j][2] = 1;
if (_local4.i != 0) {
var _local9 = _local4.i;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local9 - 1][_local4.j][0] != 2)) && (_local9 >= 1)) && (_local13 > 0)) {
_local9--;
pathCheck[_local9][_local4.j][2] = 1;
_local13--;
if ((pathCheck[_local9][_local4.j][0] == 1) || (pathCheck[_local9][_local4.j][1])) {
_local12 = false;
}
}
}
if (_local4.i != 14) {
var _local9 = _local4.i;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local9 + 1][_local4.j][0] != 2)) && (_local9 <= 13)) && (_local13 > 0)) {
_local9++;
pathCheck[_local9][_local4.j][2] = 1;
_local13--;
if ((pathCheck[_local9][_local4.j][0] == 1) || (pathCheck[_local9][_local4.j][1])) {
_local12 = false;
}
}
}
if (_local4.j != 0) {
var _local8 = _local4.j;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local4.i][_local8 - 1][0] != 2)) && (_local8 >= 1)) && (_local13 > 0)) {
_local8--;
pathCheck[_local4.i][_local8][2] = 1;
_local13--;
if ((pathCheck[_local4.i][_local8][0] == 1) || (pathCheck[_local4.i][_local8][1])) {
_local12 = false;
}
}
}
if (_local4.j != 10) {
var _local8 = _local4.j;
var _local12 = true;
var _local13 = _local16;
while (((_local12 && (pathCheck[_local4.i][_local8 + 1][0] != 2)) && (_local8 <= 9)) && (_local13 > 0)) {
_local8++;
pathCheck[_local4.i][_local8][2] = 1;
_local13--;
if ((pathCheck[_local4.i][_local8][0] == 1) || (pathCheck[_local4.i][_local8][1])) {
_local12 = false;
}
}
}
}
}
}
if (pls.kLeft && (Key.isDown(pls.key_Left))) {
if (pls.pos == "die") {
return(undefined);
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if (game.Level == 7) {
var _local17 = pls.speed;
if (specials[pls.i][pls.j][3] || (specials[_local7][_local6][3])) {
pls.speed = 3;
}
}
if ((pls.i != 0) && (pls.j != 10)) {
if (!pathCheck[pls.i - 1][pls.j][0]) {
if ((_local10 <= repair_max) && (_local10 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local7][_local6][4] == 3)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local7][_local6][4] == 4)) {
pls.speed = pls.speed - 4;
}
}
pls.pos = "back_";
if (_local10 >= pls.speed) {
pl._y = pl._y - pls.speed;
} else {
pl._y = pl._y - _local10;
}
if (game.Level == 8) {
pls.speed = _local17;
}
}
} else if (!pathCheck[pls.i - 1][pls.j + 1][0]) {
if ((_local10 >= repair_min) && (_local10 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local7][_local6][4] == 3)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local7][_local6][4] == 4)) {
pls.speed = pls.speed + 4;
}
}
pls.pos = "front_";
if (_local14 >= pls.speed) {
pl._y = pl._y + pls.speed;
} else {
pl._y = pl._y + _local14;
}
if (game.Level == 8) {
pls.speed = _local17;
}
}
} else {
pls.pos = "left_";
}
} else {
pls.pos = "left_";
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local7][_local6][4] == 1)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local7][_local6][4] == 2)) {
pls.speed = pls.speed - 4;
}
}
if ((pls.i != 0) && (_local10 == 0)) {
if ((!pathCheck[pls.i - 1][pls.j][0]) || ((pathCheck[pls.i - 1][pls.j][0] == 3) && (_local11 != 0))) {
pls.pos = "left_";
if (_local11 != 0) {
if (_local11 >= pls.speed) {
pl._x = pl._x - pls.speed;
} else {
pl._x = pl._x - _local11;
}
} else {
pl._x = pl._x - pls.speed;
}
} else if ((!pathCheck[pls.i][pls.j][0]) || ((pathCheck[pls.i][pls.j][0] == 3) && (_local11 != 0))) {
pls.pos = "left_";
if (_local11 != 0) {
if (_local11 >= pls.speed) {
pl._x = pl._x - pls.speed;
} else {
pl._x = pl._x - _local11;
}
}
}
} else if ((pl._x >= (x_min + _local11)) && (_local10 == 0)) {
pls.pos = "left_";
if (_local11 >= pls.speed) {
pl._x = pl._x - pls.speed;
} else {
pl._x = pl._x - _local11;
}
}
pl.gotoAndStop(pls.pos + "move");
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if (game.Level == 7) {
pls.speed = _local17;
}
if (game.Level == 8) {
pls.speed = _local17;
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (!(((_local11 == 0) && (_local10 == 0)) && (specials[pls.i][pls.j][4]))) {
return(undefined);
}
} else {
return(undefined);
}
}
if (pls.kRight && (Key.isDown(pls.key_Right))) {
if (pls.pos == "die") {
return(undefined);
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if (game.Level == 7) {
var _local17 = pls.speed;
if (specials[pls.i][pls.j][3] || (specials[_local7][_local6][3])) {
pls.speed = 3;
}
}
if ((pls.i != 14) && (pls.j != 10)) {
if (!pathCheck[pls.i + 1][pls.j][0]) {
if ((_local10 <= repair_max) && (_local10 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local7][_local6][4] == 3)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local7][_local6][4] == 4)) {
pls.speed = pls.speed - 4;
}
}
pls.pos = "back_";
if (_local10 >= pls.speed) {
pl._y = pl._y - pls.speed;
} else {
pl._y = pl._y - _local10;
}
if (game.Level == 8) {
pls.speed = _local17;
}
} else {
pls.pos = "right_";
}
} else if (!pathCheck[pls.i + 1][pls.j + 1][0]) {
if ((_local10 >= repair_min) && (_local10 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local7][_local6][4] == 3)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local7][_local6][4] == 4)) {
pls.speed = pls.speed + 4;
}
}
pls.pos = "front_";
if (_local14 >= pls.speed) {
pl._y = pl._y + pls.speed;
} else {
pl._y = pl._y + _local14;
}
if (game.Level == 8) {
pls.speed = _local17;
}
} else {
pls.pos = "right_";
}
} else {
pls.pos = "right_";
}
} else {
pls.pos = "right_";
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local7][_local6][4] == 1)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local7][_local6][4] == 2)) {
pls.speed = pls.speed + 4;
}
}
if ((pls.i != 14) && (_local10 == 0)) {
if ((!pathCheck[pls.i + 1][pls.j][0]) || ((pathCheck[pls.i + 1][pls.j][0] == 3) && (_local11 != 0))) {
if (_local11 != 0) {
if (_local15 >= pls.speed) {
pl._x = pl._x + pls.speed;
} else {
pl._x = pl._x + _local15;
}
} else {
pl._x = pl._x + pls.speed;
}
}
}
pl.gotoAndStop(pls.pos + "move");
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if (game.Level == 7) {
pls.speed = _local17;
}
if (game.Level == 8) {
pls.speed = _local17;
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (!(((_local11 == 0) && (_local10 == 0)) && (specials[pls.i][pls.j][4]))) {
return(undefined);
}
} else {
return(undefined);
}
}
if (pls.kUp && (Key.isDown(pls.key_Up))) {
if (pls.pos == "die") {
return(undefined);
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if (game.Level == 7) {
var _local17 = pls.speed;
if (specials[pls.i][pls.j][3] || (specials[_local7][_local6][3])) {
pls.speed = 3;
}
}
if ((pls.j != 0) && (pls.i != 14)) {
if (!pathCheck[pls.i][pls.j - 1][0]) {
if ((_local11 <= repair_max) && (_local11 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local7][_local6][4] == 1)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local7][_local6][4] == 2)) {
pls.speed = pls.speed - 4;
}
}
pls.pos = "left_";
if (_local11 >= pls.speed) {
pl._x = pl._x - pls.speed;
} else {
pl._x = pl._x - _local11;
}
if (game.Level == 8) {
pls.speed = _local17;
}
} else {
pls.pos = "back_";
}
} else if (!pathCheck[pls.i + 1][pls.j - 1][0]) {
if ((_local11 >= repair_min) && (_local11 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local7][_local6][4] == 1)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local7][_local6][4] == 2)) {
pls.speed = pls.speed + 4;
}
}
pls.pos = "right_";
if (_local15 >= pls.speed) {
pl._x = pl._x + pls.speed;
} else {
pl._x = pl._x + _local15;
}
if (game.Level == 8) {
pls.speed = _local17;
}
} else {
pls.pos = "back_";
}
} else {
pls.pos = "back_";
}
} else {
pls.pos = "back_";
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local7][_local6][4] == 3)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local7][_local6][4] == 4)) {
pls.speed = pls.speed - 4;
}
}
if ((pls.j != 0) && (_local11 == 0)) {
if ((!pathCheck[pls.i][pls.j - 1][0]) || ((pathCheck[pls.i][pls.j - 1][0] == 3) && (_local10 != 0))) {
pls.pos = "back_";
if (_local10 != 0) {
if (_local10 >= pls.speed) {
pl._y = pl._y - pls.speed;
} else {
pl._y = pl._y - _local10;
}
} else {
pl._y = pl._y - pls.speed;
}
} else if ((!pathCheck[pls.i][pls.j][0]) || ((pathCheck[pls.i][pls.j][0] == 3) && (_local10 != 0))) {
pls.pos = "back_";
if (_local10 != 0) {
if (_local10 >= pls.speed) {
pl._y = pl._y - pls.speed;
} else {
pl._y = pl._y - _local10;
}
}
}
} else if ((pl._y >= (y_min + _local10)) && (_local11 == 0)) {
pls.pos = "back_";
if (_local10 >= pls.speed) {
pl._y = pl._y - pls.speed;
} else {
pl._y = pl._y - _local10;
}
}
pl.gotoAndStop(pls.pos + "move");
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if (game.Level == 7) {
pls.speed = _local17;
}
if (game.Level == 8) {
pls.speed = _local17;
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (!(((_local11 == 0) && (_local10 == 0)) && (specials[pls.i][pls.j][4]))) {
return(undefined);
}
} else {
return(undefined);
}
}
if (pls.kDown && (Key.isDown(pls.key_Down))) {
if (pls.pos == "die") {
return(undefined);
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if (game.Level == 7) {
var _local17 = pls.speed;
if (specials[pls.i][pls.j][3] || (specials[_local7][_local6][3])) {
pls.speed = 3;
}
}
if ((pls.j != 10) && (pls.i != 14)) {
if (!pathCheck[pls.i][pls.j + 1][0]) {
if ((_local11 <= repair_max) && (_local11 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local7][_local6][4] == 1)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local7][_local6][4] == 2)) {
pls.speed = pls.speed - 4;
}
}
pls.pos = "left_";
if (_local11 >= pls.speed) {
pl._x = pl._x - pls.speed;
} else {
pl._x = pl._x - _local11;
}
if (game.Level == 8) {
pls.speed = _local17;
}
} else {
pls.pos = "front_";
}
} else if (!pathCheck[pls.i + 1][pls.j + 1][0]) {
if ((_local11 >= repair_min) && (_local11 > 0)) {
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local7][_local6][4] == 1)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local7][_local6][4] == 2)) {
pls.speed = pls.speed + 4;
}
}
pls.pos = "right_";
if (_local15 >= pls.speed) {
pl._x = pl._x + pls.speed;
} else {
pl._x = pl._x + _local15;
}
if (game.Level == 8) {
pls.speed = _local17;
}
} else {
pls.pos = "front_";
}
} else {
pls.pos = "front_";
}
} else {
pls.pos = "front_";
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (game.Level == 8) {
var _local17 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local7][_local6][4] == 3)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local7][_local6][4] == 4)) {
pls.speed = pls.speed + 4;
}
}
if ((pls.j != 10) && (_local11 == 0)) {
if ((!pathCheck[pls.i][pls.j + 1][0]) || ((pathCheck[pls.i][pls.j + 1][0] == 3) && (_local10 != 0))) {
if (_local10 != 0) {
if (_local14 >= pls.speed) {
pl._y = pl._y + pls.speed;
} else {
pl._y = pl._y + _local14;
}
} else {
pl._y = pl._y + pls.speed;
}
}
}
pl.gotoAndStop(pls.pos + "move");
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local7][_local6][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if (game.Level == 7) {
pls.speed = _local17;
}
if (game.Level == 8) {
pls.speed = _local17;
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
if (!(((_local11 == 0) && (_local10 == 0)) && (specials[pls.i][pls.j][4]))) {
return(undefined);
}
} else {
return(undefined);
}
}
if (game.Level == 8) {
if (((pls.i > 2) && (pls.i < 12)) && (_local11 == 0)) {
if (((pls.j == 7) || (pls.j == 1)) && (((_local10 != 0) && (_local10 >= 10)) && (_local11 == 0))) {
if (_local10 >= 5) {
pl._y = pl._y + 5;
} else {
pl._y = pl._y + _local10;
}
}
if (((pls.j == 8) || (pls.j == 2)) && (((_local10 != 0) && (_local10 <= 30)) && (_local11 == 0))) {
if (_local10 >= 5) {
pl._y = pl._y - 5;
} else {
pl._y = pl._y - _local10;
}
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.j > 2) && (pls.j < 8)) && (_local10 == 0)) {
if (((pls.i == 11) || (pls.i == 1)) && (((_local11 != 0) && (_local11 >= 10)) && (_local10 == 0))) {
if (_local11 >= 5) {
pl._x = pl._x + 5;
} else {
pl._x = pl._x + _local11;
}
}
if (((pls.i == 12) || (pls.i == 2)) && (((_local11 != 0) && (_local11 <= 30)) && (_local10 == 0))) {
if (_local11 >= 5) {
pl._x = pl._x - 5;
} else {
pl._x = pl._x - _local11;
}
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 1) && (pls.j == 2)) && (((_local11 != 0) && (_local11 >= 10)) && (_local10 == 0))) {
if (_local11 >= 5) {
pl._x = pl._x + 5;
} else {
pl._x = pl._x + _local11;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 2) && (pls.j == 1)) && (((_local10 != 0) && (_local10 >= 10)) && (_local11 == 0))) {
if (_local10 >= 5) {
pl._y = pl._y + 5;
} else {
pl._y = pl._y + _local10;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 12) && (pls.j == 1)) && (((_local10 != 0) && (_local10 >= 10)) && (_local11 == 0))) {
if (_local10 >= 5) {
pl._y = pl._y + 5;
} else {
pl._y = pl._y + _local10;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 12) && (pls.j == 2)) && (((_local11 != 0) && (_local11 <= 30)) && (_local10 == 0))) {
if (_local11 >= 5) {
pl._x = pl._x - 5;
} else {
pl._x = pl._x - _local11;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 12) && (pls.j == 8)) && (((_local10 != 0) && (_local10 <= 30)) && (_local11 == 0))) {
if (_local10 >= 5) {
pl._y = pl._y - 5;
} else {
pl._y = pl._y - _local10;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 12) && (pls.j == 8)) && (((_local11 != 0) && (_local11 <= 30)) && (_local10 == 0))) {
if (_local11 >= 5) {
pl._x = pl._x - 5;
} else {
pl._x = pl._x - _local11;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 2) && (pls.j == 8)) && (((_local10 != 0) && (_local10 <= 30)) && (_local11 == 0))) {
if (_local10 >= 5) {
pl._y = pl._y - 5;
} else {
pl._y = pl._y - _local10;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if (((pls.i == 1) && (pls.j == 8)) && (((_local11 != 0) && (_local11 >= 10)) && (_local10 == 0))) {
if (_local11 >= 5) {
pl._x = pl._x + 5;
} else {
pl._x = pl._x + _local11;
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local11 = (pl._x - x_min) % brick_dim;
_local10 = (pl._y - y_min) % brick_dim;
}
if ((((specials[pls.i][pls.j][4] == 1) || ((pls.i == 2) && (pls.j == 8))) && (_local10 == 0)) && (!(Key.isDown(pls.key_Left) || (Key.isDown(pls.key_Right))))) {
if ((!pathCheck[pls.i - 1][pls.j][0]) && (_local10 == 0)) {
if (_local11 != 0) {
if (_local11 >= 4) {
pl._x = pl._x - 4;
} else {
pl._x = pl._x - _local11;
}
} else if (!((pls.i == 2) && (pls.j == 8))) {
pl._x = pl._x - 4;
}
} else if ((!pathCheck[pls.i][pls.j][0]) && (_local10 == 0)) {
if (_local11 != 0) {
if (_local11 >= 4) {
pl._x = pl._x - 4;
} else {
pl._x = pl._x - _local11;
}
}
}
}
if (((specials[pls.i][pls.j][4] == 2) && (_local10 == 0)) && (!(Key.isDown(pls.key_Left) || (Key.isDown(pls.key_Right))))) {
if ((!pathCheck[pls.i + 1][pls.j][0]) && (_local10 == 0)) {
if (_local11 != 0) {
if (_local11 >= 4) {
pl._x = pl._x + 4;
} else {
pl._x = pl._x + _local11;
}
} else {
pl._x = pl._x + 4;
}
}
}
if ((((specials[pls.i][pls.j][4] == 3) || ((pls.i == 2) && (pls.j == 2))) && (_local11 == 0)) && (!(Key.isDown(pls.key_Up) || (Key.isDown(pls.key_Down))))) {
if ((!pathCheck[pls.i][pls.j - 1][0]) && (_local11 == 0)) {
if (_local10 != 0) {
if (_local10 >= 4) {
pl._y = pl._y - 4;
} else {
pl._y = pl._y - _local10;
}
} else if (!((pls.i == 2) && (pls.j == 2))) {
pl._y = pl._y - 4;
}
} else if ((!pathCheck[pls.i][pls.j][0]) && (_local11 == 0)) {
if (_local10 != 0) {
if (_local10 >= 4) {
pl._y = pl._y - 4;
} else {
pl._y = pl._y - _local10;
}
}
}
}
if (((specials[pls.i][pls.j][4] == 4) && (_local11 == 0)) && (!(Key.isDown(pls.key_Up) || (Key.isDown(pls.key_Down))))) {
if ((!pathCheck[pls.i][pls.j + 1][0]) && (_local11 == 0)) {
if (_local10 != 0) {
if (_local10 >= 4) {
pl._y = pl._y + 4;
} else {
pl._y = pl._y + _local10;
}
} else {
pl._y = pl._y + 4;
}
}
}
}
if (((Key.isDown(pls.key_Left) || (Key.isDown(pls.key_Right))) || (Key.isDown(pls.key_Up))) || (Key.isDown(pls.key_Down))) {
return(undefined);
}
pl.gotoAndStop(pls.pos + "stop");
}
function playerAI(pl, pls) {
if (pls.Bombs > 4) {
trace(pls.Bombs);
}
if (pls.pos == "die") {
if (pl.death._currentframe == pl.death._totalframes) {
var _local7 = 0;
while (_local7 < pls.others.length) {
if (game.pl1 > 0) {
if (pls.id == pl1s.others[_local7]) {
pl1s.others.splice(_local7, 1);
}
}
if (game.pl2 > 0) {
if (pls.id == pl2s.others[_local7]) {
pl2s.others.splice(_local7, 1);
}
}
if (game.pl3 > 0) {
if (pls.id == pl3s.others[_local7]) {
pl3s.others.splice(_local7, 1);
}
}
if (game.pl4 > 0) {
if (pls.id == pl4s.others[_local7]) {
pl4s.others.splice(_local7, 1);
}
}
_local7++;
}
playersAlive--;
buildScores(pls);
pl.removeMovieClip();
}
return(undefined);
}
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
var _local26 = (pl._x - x_min) % brick_dim;
var _local24 = (pl._y - y_min) % brick_dim;
var _local33 = brick_dim - _local26;
var _local30 = brick_dim - _local24;
if (_local26 > 0) {
var _local15 = pls.i + 1;
} else {
var _local15 = pls.i;
}
if (_local24 > 0) {
var _local14 = pls.j + 1;
} else {
var _local14 = pls.j;
}
if (!pls.godmode) {
if ((((bFire[pls.i][pls.j].length > 0) && (pl.hit.hitTest(bFire[pls.i][pls.j][0]))) || (pathCheck[pls.i][pls.j][0] == 2)) || (specials[pls.i][pls.j][1])) {
if (bFire[pls.i][pls.j][0].pls != pls) {
bFire[pls.i][pls.j][0].pls.kills++;
}
buildScores(bFire[pls.i][pls.j][0].pls);
pls.pos = "die";
pl.gotoAndStop("die");
var _local27 = Math.floor(Math.random() * dead.length);
dead[_local27].stop();
dead[_local27].start();
} else if ((((bFire[_local15][_local14].length > 0) && (pl.hit.hitTest(bFire[_local15][_local14][0]))) || (pathCheck[_local15][_local14][0] == 2)) || (specials[_local15][_local14][1])) {
if (bFire[pls.i][pls.j][0].pls != pls) {
bFire[_local15][_local14][0].pls.kills++;
}
buildScores(bFire[_local15][_local14][0].pls);
pls.pos = "die";
pl.gotoAndStop("die");
var _local27 = Math.floor(Math.random() * dead.length);
dead[_local27].stop();
dead[_local27].start();
}
}
handleBonus(pls, _local15, _local14, _local26, _local24);
staticTeleport(pls, _local26, _local24);
pls.i = Math.floor((pl._x - x_min) / brick_dim);
pls.j = Math.floor((pl._y - y_min) / brick_dim);
_local26 = (pl._x - x_min) % brick_dim;
_local24 = (pl._y - y_min) % brick_dim;
_local33 = brick_dim - _local26;
_local30 = brick_dim - _local24;
if (pls.pos == "die") {
return(undefined);
}
if (!pls.gotDest) {
if ((_local26 == 0) && (_local24 == 0)) {
pls.goLeft = false;
pls.goRight = false;
pls.goUp = false;
pls.goDown = false;
pls.stayPut = false;
if (pls.sick && (playersAlive > 1)) {
if (((pls.Bombs >= 1) && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
var _local34 = brick_dim / 2;
pls.Bombs--;
var _local4 = _root.attachMovie("bomb", (("bomb" + pls.i) + pls.j) + nextBombDepth, nextBombDepth, {_x:x_min + (pls.i * brick_dim), _y:y_min + (pls.j * brick_dim)});
_local4.nr = nextBombDepth;
if (nextBombDepth < 900) {
nextBombDepth++;
} else {
nextBombDepth = 500;
}
pathCheck[pls.i][pls.j][0] = 3;
_local4.gotoAndStop(pls.bombType);
_local4.detonate = pls.detonate;
_local4.i = pls.i;
_local4.j = pls.j;
_local4.id = pls;
_local4.flen = pls.fire_len;
_local4.dir = 0;
bombBox.push(_local4);
b_snd[7].stop();
b_snd[7].start();
var _local23 = _local4.flen;
pathCheck[_local4.i][_local4.j][2] = 1;
if (_local4.i != 0) {
var _local13 = _local4.i;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local13 - 1][_local4.j][0] != 2)) && (_local13 >= 1)) && (_local21 > 0)) {
_local13--;
pathCheck[_local13][_local4.j][2] = 1;
_local21--;
if ((pathCheck[_local13][_local4.j][0] == 1) || (pathCheck[_local13][_local4.j][1])) {
_local20 = false;
}
}
}
if (_local4.i != 14) {
var _local13 = _local4.i;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local13 + 1][_local4.j][0] != 2)) && (_local13 <= 13)) && (_local21 > 0)) {
_local13++;
pathCheck[_local13][_local4.j][2] = 1;
_local21--;
if ((pathCheck[_local13][_local4.j][0] == 1) || (pathCheck[_local13][_local4.j][1])) {
_local20 = false;
}
}
}
if (_local4.j != 0) {
var _local12 = _local4.j;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local4.i][_local12 - 1][0] != 2)) && (_local12 >= 1)) && (_local21 > 0)) {
_local12--;
pathCheck[_local4.i][_local12][2] = 1;
_local21--;
if ((pathCheck[_local4.i][_local12][0] == 1) || (pathCheck[_local4.i][_local12][1])) {
_local20 = false;
}
}
}
if (_local4.j != 10) {
var _local12 = _local4.j;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local4.i][_local12 + 1][0] != 2)) && (_local12 <= 9)) && (_local21 > 0)) {
_local12++;
pathCheck[_local4.i][_local12][2] = 1;
_local21--;
if ((pathCheck[_local4.i][_local12][0] == 1) || (pathCheck[_local4.i][_local12][1])) {
_local20 = false;
}
}
}
trace((pls.id + " - sick") + " - bomb down");
}
} else if ((pls.Bombs >= 1) && (playersAlive > 1)) {
pls.placeBomb = false;
pls.goodSpot = false;
var _local10 = 0;
while (_local10 < pls.others.length) {
if (((pls.others[_local10] == "pl1") && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
if (((pl1s.i + 1) == pls.i) && (pl1s.j == pls.j)) {
pls.goodSpot = true;
} else if (((pl1s.i - 1) == pls.i) && (pl1s.j == pls.j)) {
pls.goodSpot = true;
} else if ((pl1s.i == pls.i) && ((pl1s.j + 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl1s.i == pls.i) && ((pl1s.j - 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl1s.i == pls.i) && (pl1s.j == pls.j)) {
pls.goodSpot = true;
}
} else if (((pls.others[_local10] == "pl2") && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
if (((pl2s.i + 1) == pls.i) && (pl2s.j == pls.j)) {
pls.goodSpot = true;
} else if (((pl2s.i - 1) == pls.i) && (pl2s.j == pls.j)) {
pls.goodSpot = true;
} else if ((pl2s.i == pls.i) && ((pl2s.j + 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl2s.i == pls.i) && ((pl2s.j - 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl2s.i == pls.i) && (pl2s.j == pls.j)) {
pls.goodSpot = true;
}
} else if (((pls.others[_local10] == "pl3") && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
if (((pl3s.i + 1) == pls.i) && (pl3s.j == pls.j)) {
pls.goodSpot = true;
} else if (((pl3s.i - 1) == pls.i) && (pl3s.j == pls.j)) {
pls.goodSpot = true;
} else if ((pl3s.i == pls.i) && ((pl3s.j + 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl3s.i == pls.i) && ((pl3s.j - 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl3s.i == pls.i) && (pl3s.j == pls.j)) {
pls.goodSpot = true;
}
} else if (((pls.others[_local10] == "pl4") && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
if (((pl4s.i + 1) == pls.i) && (pl4s.j == pls.j)) {
pls.goodSpot = true;
} else if (((pl4s.i - 1) == pls.i) && (pl4s.j == pls.j)) {
pls.goodSpot = true;
} else if ((pl4s.i == pls.i) && ((pl4s.j + 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl4s.i == pls.i) && ((pl4s.j - 1) == pls.j)) {
pls.goodSpot = true;
} else if ((pl4s.i == pls.i) && (pl4s.j == pls.j)) {
pls.goodSpot = true;
}
}
_local10++;
}
if (pls.j < 10) {
if (((pathCheck[pls.i][pls.j + 1][0] == 1) && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
pls.goodSpot = true;
}
}
if (pls.j > 0) {
if (((pathCheck[pls.i][pls.j - 1][0] == 1) && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
pls.goodSpot = true;
}
}
if (pls.i < 14) {
if (((pathCheck[pls.i + 1][pls.j][0] == 1) && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
pls.goodSpot = true;
}
}
if (pls.i > 0) {
if (((pathCheck[pls.i - 1][pls.j][0] == 1) && (!pathCheck[pls.i][pls.j][0])) && (!specials[pls.i][pls.j][2])) {
pls.goodSpot = true;
}
}
if (pls.goodSpot) {
if (pls.j > 0) {
var _local8 = pls.j - 1;
while (((_local8 >= (pls.j - (pls.fire_len + 1))) && (_local8 >= 0)) && (!pls.placeBomb)) {
if ((((pathCheck[pls.i][_local8][0] || (pathCheck[pls.i][_local8][2])) || (pathCheck[pls.i][_local8][3])) || (pathCheck[pls.i][_local8][4])) || (specials[pls.i][_local8][1])) {
break;
}
if (((((pathCheck[pls.i][_local8][2] == 0) && (pathCheck[pls.i][_local8][3] == 0)) && (pathCheck[pls.i][_local8][4] == 0)) && (specials[pls.i][_local8][1] == 0)) && (_local8 == (pls.j - (pls.fire_len + 1)))) {
pls.placeBomb = true;
}
if (pls.i > 0) {
if (((((pathCheck[pls.i - 1][_local8][0] == 0) && (pathCheck[pls.i - 1][_local8][3] == 0)) && (pathCheck[pls.i - 1][_local8][4] == 0)) && (specials[pls.i - 1][_local8][1] == 0)) && (pathCheck[pls.i - 1][_local8][2] == 0)) {
pls.placeBomb = true;
}
}
if (pls.i < 14) {
if (((((pathCheck[pls.i + 1][_local8][0] == 0) && (pathCheck[pls.i + 1][_local8][3] == 0)) && (pathCheck[pls.i + 1][_local8][4] == 0)) && (specials[pls.i + 1][_local8][1] == 0)) && (pathCheck[pls.i + 1][_local8][2] == 0)) {
pls.placeBomb = true;
}
}
_local8--;
}
}
if (pls.j < 10) {
var _local8 = pls.j + 1;
while (((_local8 <= (pls.j + (pls.fire_len + 1))) && (_local8 <= 10)) && (!pls.placeBomb)) {
if ((((pathCheck[pls.i][_local8][0] || (pathCheck[pls.i][_local8][2])) || (pathCheck[pls.i][_local8][3])) || (pathCheck[pls.i][_local8][4])) || (specials[pls.i][_local8][1])) {
break;
}
if (((((pathCheck[pls.i][_local8][2] == 0) && (pathCheck[pls.i][_local8][3] == 0)) && (pathCheck[pls.i][_local8][4] == 0)) && (specials[pls.i][_local8][1] == 0)) && (_local8 == (pls.j + (pls.fire_len + 1)))) {
pls.placeBomb = true;
}
if (pls.i > 0) {
if (((((pathCheck[pls.i - 1][_local8][0] == 0) && (pathCheck[pls.i - 1][_local8][3] == 0)) && (pathCheck[pls.i - 1][_local8][4] == 0)) && (specials[pls.i - 1][_local8][1] == 0)) && (pathCheck[pls.i - 1][_local8][2] == 0)) {
pls.placeBomb = true;
}
}
if (pls.i < 14) {
if (((((pathCheck[pls.i + 1][_local8][0] == 0) && (pathCheck[pls.i + 1][_local8][3] == 0)) && (pathCheck[pls.i + 1][_local8][4] == 0)) && (specials[pls.i + 1][_local8][1] == 0)) && (pathCheck[pls.i + 1][_local8][2] == 0)) {
pls.placeBomb = true;
}
}
_local8++;
}
}
if (pls.i < 14) {
var _local8 = pls.i + 1;
while (((_local8 <= (pls.i + (pls.fire_len + 1))) && (_local8 <= 14)) && (!pls.placeBomb)) {
if ((((pathCheck[_local8][pls.j][0] || (pathCheck[_local8][pls.j][2])) || (pathCheck[_local8][pls.j][3])) || (pathCheck[_local8][pls.j][4])) || (specials[_local8][pls.j][1])) {
break;
}
if (((((pathCheck[_local8][pls.j][2] == 0) && (pathCheck[_local8][pls.j][3] == 0)) && (pathCheck[_local8][pls.j][4] == 0)) && (specials[_local8][pls.j][1] == 0)) && (_local8 == (pls.i + (pls.fire_len + 1)))) {
pls.placeBomb = true;
}
if (pls.j > 0) {
if (((((pathCheck[_local8][pls.j - 1][0] == 0) && (pathCheck[_local8][pls.j - 1][3] == 0)) && (pathCheck[_local8][pls.j - 1][4] == 0)) && (specials[_local8][pls.j - 1][1] == 0)) && (pathCheck[_local8][pls.j - 1][2] == 0)) {
pls.placeBomb = true;
}
}
if (pls.j < 10) {
if (((((pathCheck[_local8][pls.j + 1][0] == 0) && (pathCheck[_local8][pls.j + 1][3] == 0)) && (pathCheck[_local8][pls.j + 1][4] == 0)) && (specials[_local8][pls.j + 1][1] == 0)) && (pathCheck[_local8][pls.j + 1][2] == 0)) {
pls.placeBomb = true;
}
}
_local8++;
}
}
if (pls.i > 0) {
var _local8 = pls.i - 1;
while (((_local8 >= (pls.i - (pls.fire_len + 1))) && (_local8 >= 0)) && (!pls.placeBomb)) {
if ((((pathCheck[_local8][pls.j][0] || (pathCheck[_local8][pls.j][2])) || (pathCheck[_local8][pls.j][3])) || (pathCheck[_local8][pls.j][4])) || (specials[_local8][pls.j][1])) {
break;
}
if (((((pathCheck[_local8][pls.j][2] == 0) && (pathCheck[_local8][pls.j][3] == 0)) && (pathCheck[_local8][pls.j][4] == 0)) && (specials[_local8][pls.j][1] == 0)) && (_local8 == (pls.i - (pls.fire_len + 1)))) {
pls.placeBomb = true;
}
if (pls.j > 0) {
if (((((pathCheck[_local8][pls.j - 1][0] == 0) && (pathCheck[_local8][pls.j - 1][3] == 0)) && (pathCheck[_local8][pls.j - 1][2] == 0)) && (pathCheck[_local8][pls.j - 1][4] == 0)) && (specials[_local8][pls.j - 1][1] == 0)) {
pls.placeBomb = true;
}
}
if (pls.j < 10) {
if (((((pathCheck[_local8][pls.j + 1][0] == 0) && (pathCheck[_local8][pls.j + 1][3] == 0)) && (pathCheck[_local8][pls.j + 1][2] == 0)) && (pathCheck[_local8][pls.j + 1][4] == 0)) && (specials[_local8][pls.j + 1][1] == 0)) {
pls.placeBomb = true;
}
}
_local8--;
}
}
}
if (pls.placeBomb) {
pls.placeBomb = false;
pls.Bombs--;
var _local4 = _root.attachMovie("bomb", (("bomb" + pls.i) + pls.j) + nextBombDepth, nextBombDepth, {_x:x_min + (pls.i * brick_dim), _y:y_min + (pls.j * brick_dim)});
_local4.nr = nextBombDepth;
if (nextBombDepth < 900) {
nextBombDepth++;
} else {
nextBombDepth = 500;
}
pathCheck[pls.i][pls.j][0] = 3;
_local4.gotoAndStop(pls.bombType);
_local4.detonate = pls.detonate;
_local4.i = pls.i;
_local4.j = pls.j;
_local4.id = pls;
_local4.flen = pls.fire_len;
_local4.dir = 0;
bombBox.push(_local4);
gen_snd[0].stop();
gen_snd[0].start();
var _local23 = _local4.flen;
pathCheck[_local4.i][_local4.j][2] = 1;
if (_local4.i != 0) {
var _local13 = _local4.i;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local13 - 1][_local4.j][0] != 2)) && (_local13 >= 1)) && (_local21 > 0)) {
_local13--;
pathCheck[_local13][_local4.j][2] = 1;
_local21--;
if ((pathCheck[_local13][_local4.j][0] == 1) || (pathCheck[_local13][_local4.j][1])) {
_local20 = false;
}
}
}
if (_local4.i != 14) {
var _local13 = _local4.i;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local13 + 1][_local4.j][0] != 2)) && (_local13 <= 13)) && (_local21 > 0)) {
_local13++;
pathCheck[_local13][_local4.j][2] = 1;
_local21--;
if ((pathCheck[_local13][_local4.j][0] == 1) || (pathCheck[_local13][_local4.j][1])) {
_local20 = false;
}
}
}
if (_local4.j != 0) {
var _local12 = _local4.j;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local4.i][_local12 - 1][0] != 2)) && (_local12 >= 1)) && (_local21 > 0)) {
_local12--;
pathCheck[_local4.i][_local12][2] = 1;
_local21--;
if ((pathCheck[_local4.i][_local12][0] == 1) || (pathCheck[_local4.i][_local12][1])) {
_local20 = false;
}
}
}
if (_local4.j != 10) {
var _local12 = _local4.j;
var _local20 = true;
var _local21 = _local23;
while (((_local20 && (pathCheck[_local4.i][_local12 + 1][0] != 2)) && (_local12 <= 9)) && (_local21 > 0)) {
_local12++;
pathCheck[_local4.i][_local12][2] = 1;
_local21--;
if ((pathCheck[_local4.i][_local12][0] == 1) || (pathCheck[_local4.i][_local12][1])) {
_local20 = false;
}
}
}
trace((pls.id + " - not sick") + " - bomb down");
}
}
if (pathCheck[pls.i][pls.j][2]) {
var _local5 = new Array();
var _local3 = -2000;
var _local16 = 0;
if (pls.j > 0) {
var _local8 = pls.j - 1;
while ((_local8 > (pls.j - 8)) && (_local8 >= 0)) {
if ((((pathCheck[pls.i][_local8][0] || (pathCheck[pls.i][_local8][2] > 3320)) || (bFire[pls.i][_local8].length > 0)) || (pathCheck[pls.i][_local8][4])) || (specials[pls.i][_local8][1])) {
break;
}
if (((pathCheck[pls.i][_local8][2] == 0) && (pathCheck[pls.i][_local8][0] == 0)) && (specials[pls.i][_local8][1] == 0)) {
var _local9 = new Object();
_local9.dir = 3;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * (pls.j - _local8));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
if (pls.i > 0) {
if (((pathCheck[pls.i - 1][_local8][0] == 0) && (pathCheck[pls.i - 1][_local8][2] == 0)) && (specials[pls.i - 1][_local8][1] == 0)) {
var _local9 = new Object();
_local9.dir = 3;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((pls.j - _local8) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
if (pls.i < 14) {
if (((pathCheck[pls.i + 1][_local8][0] == 0) && (pathCheck[pls.i + 1][_local8][2] == 0)) && (specials[pls.i + 1][_local8][1] == 0)) {
var _local9 = new Object();
_local9.dir = 3;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((pls.j - _local8) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
_local8--;
}
}
if (pls.j < 10) {
var _local8 = pls.j + 1;
while ((_local8 < (pls.j + 8)) && (_local8 <= 10)) {
if ((((pathCheck[pls.i][_local8][0] || (pathCheck[pls.i][_local8][2] > 3320)) || (bFire[pls.i][_local8].length > 0)) || (pathCheck[pls.i][_local8][4])) || (specials[pls.i][_local8][1])) {
break;
}
if (((pathCheck[pls.i][_local8][2] == 0) && (pathCheck[pls.i][_local8][0] == 0)) && (specials[pls.i][_local8][1] == 0)) {
var _local9 = new Object();
_local9.dir = 4;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * (_local8 - pls.j));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
if (pls.i > 0) {
if (((pathCheck[pls.i - 1][_local8][0] == 0) && (pathCheck[pls.i - 1][_local8][2] == 0)) && (specials[pls.i - 1][_local8][1] == 0)) {
var _local9 = new Object();
_local9.dir = 4;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((_local8 - pls.j) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
if (pls.i < 14) {
if (((pathCheck[pls.i + 1][_local8][0] == 0) && (pathCheck[pls.i + 1][_local8][2] == 0)) && (specials[pls.i + 1][_local8][1] == 0)) {
var _local9 = new Object();
_local9.dir = 4;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((_local8 - pls.j) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
_local8++;
}
}
if (pls.i < 14) {
var _local8 = pls.i + 1;
while ((_local8 < (pls.i + 8)) && (_local8 <= 14)) {
if ((((pathCheck[_local8][pls.j][0] || (pathCheck[_local8][pls.j][2] > 3320)) || (bFire[_local8][pls.j].length > 0)) || (pathCheck[_local8][pls.j][4])) || (specials[_local8][pls.j][1])) {
break;
}
if (((pathCheck[_local8][pls.j][2] == 0) && (pathCheck[_local8][pls.j][0] == 0)) && (specials[_local8][pls.j][1] == 0)) {
var _local9 = new Object();
_local9.dir = 2;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * (_local8 - pls.i));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
if (pls.j > 0) {
if (((pathCheck[_local8][pls.j - 1][0] == 0) && (pathCheck[_local8][pls.j - 1][2] == 0)) && (specials[_local8][pls.j - 1][1] == 0)) {
var _local9 = new Object();
_local9.dir = 2;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((_local8 - pls.i) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
if (pls.j < 10) {
if (((pathCheck[_local8][pls.j + 1][0] == 0) && (pathCheck[_local8][pls.j + 1][2] == 0)) && (specials[_local8][pls.j + 1][1] == 0)) {
var _local9 = new Object();
_local9.dir = 2;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((_local8 - pls.i) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
_local8++;
}
}
if (pls.i > 0) {
var _local8 = pls.i - 1;
while ((_local8 > (pls.i - 8)) && (_local8 >= 0)) {
if ((((pathCheck[_local8][pls.j][0] || (pathCheck[_local8][pls.j][2] > 3320)) || (bFire[_local8][pls.j].length > 0)) || (pathCheck[_local8][pls.j][4])) || (specials[_local8][pls.j][1])) {
break;
}
if (((pathCheck[_local8][pls.j][2] == 0) && (pathCheck[_local8][pls.j][0] == 0)) && (specials[_local8][pls.j][1] == 0)) {
var _local9 = new Object();
_local9.dir = 1;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * (pls.i - _local8));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
if (pls.j > 0) {
if (((pathCheck[_local8][pls.j - 1][0] == 0) && (pathCheck[_local8][pls.j - 1][2] == 0)) && (specials[_local8][pls.j - 1][1] == 0)) {
var _local9 = new Object();
_local9.dir = 1;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((pls.i - _local8) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
if (pls.j < 10) {
if (((pathCheck[_local8][pls.j + 1][0] == 0) && (pathCheck[_local8][pls.j + 1][2] == 0)) && (specials[_local8][pls.j + 1][1] == 0)) {
var _local9 = new Object();
_local9.dir = 1;
_local9.points = Math.floor(Math.random() * 7) + (10 * const);
_local9.points = _local9.points - (10 * ((pls.i - _local8) + 1));
if (_local9.points > _local3) {
_local3 = _local9.points;
}
_local5.push(_local9);
break;
}
}
_local8--;
}
}
while ((_local16 < _local5.length) && (_local5[_local16].points != _local3)) {
_local16++;
}
if (_local5.length > 0) {
if (_local5[_local16].dir == 1) {
pls.goLeft = true;
}
if (_local5[_local16].dir == 2) {
pls.goRight = true;
}
if (_local5[_local16].dir == 3) {
pls.goUp = true;
}
if (_local5[_local16].dir == 4) {
pls.goDown = true;
}
} else {
pls.stayPut = true;
}
}
if (pls.goLeft) {
trace(" <-- left " + pls.id);
}
if (pls.goRight) {
trace(" --> right " + pls.id);
}
if (pls.goUp) {
trace(" ^^^ up " + pls.id);
}
if (pls.goDown) {
trace(" vvv down " + pls.id);
}
if (pls.stayPut) {
trace(">.< stay " + pls.id);
}
if (pls.stayPut && ((game.setAI == 2) || ((game.setAI == 1) && (pls.kick)))) {
if (((!pathCheck[pls.i - 2][pls.j][0]) && (pathCheck[pls.i - 1][pls.j][0] == 3)) && (pls.i >= 2)) {
pls.kickIt = 1;
}
if (((!pathCheck[pls.i + 2][pls.j][0]) && (pathCheck[pls.i + 1][pls.j][0] == 3)) && (pls.i <= 12)) {
pls.kickIt = 2;
}
if (((!pathCheck[pls.i][pls.j - 2][0]) && (pathCheck[pls.i][pls.j - 1][0] == 3)) && (pls.j >= 2)) {
pls.kickIt = 3;
}
if (((!pathCheck[pls.i][pls.j + 2][0]) && (pathCheck[pls.i][pls.j + 1][0] == 3)) && (pls.j <= 8)) {
pls.kickIt = 4;
}
}
var _local18 = new Array();
var _local19 = -16000;
var _local17 = 0;
var _local22;
_local22 = Math.floor(Math.random() * 7) + (50 * const);
if (pathCheck[pls.i][pls.j][2] > 1) {
_local22 = _local22 - pathCheck[pls.i][pls.j][2];
}
if (pls.stayPut) {
_local22 = _local22 + 4000;
}
if (pathCheck[pls.i][pls.j][4]) {
if (pathCheck[pls.i][pls.j][4] == 1) {
_local22 = _local22 - 15000;
} else if (pathCheck[pls.i][pls.j][4] == 2) {
_local22 = _local22 - 1000;
} else {
_local22 = _local22 - 2000;
}
}
if (_local22 > _local19) {
_local19 = _local22;
}
if (pls.i < 14) {
if ((!pathCheck[pls.i + 1][pls.j][0]) && (!specials[pls.i + 1][pls.j][1])) {
var _local6 = new Object();
_local6.i = pls.i + 1;
_local6.j = pls.j;
_local6.points = Math.floor(Math.random() * 7) + (50 * const);
if (pathCheck[_local6.i][_local6.j][2] > 1) {
_local6.points = _local6.points - pathCheck[_local6.i][_local6.j][2];
}
if (pathCheck[_local6.i][_local6.j][4]) {
if (pathCheck[_local6.i][_local6.j][4] == 1) {
_local6.points = _local6.points - 15000;
} else if (pathCheck[_local6.i][_local6.j][4] == 2) {
_local6.points = _local6.points - 1000;
} else {
_local6.points = _local6.points - 2000;
}
}
var _local8 = _local6.i;
while ((_local8 < 14) && ((_local8 - _local6.i) < 6)) {
if (pathCheck[_local8][_local6.j][1]) {
_local6.points = _local6.points + (const / 5);
}
if ((_local6.j == pl1s.j) && (pl1 != undefined)) {
if (_local8 == pl1s.i) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.j == pl2s.j) && (pl2 != undefined)) {
if (_local8 == pl2s.i) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.j == pl3s.j) && (pl3 != undefined)) {
if (_local8 == pl3s.i) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.j == pl4s.j) && (pl4 != undefined)) {
if (_local8 == pl4s.i) {
_local6.points = _local6.points + (const / 5);
}
}
_local8++;
}
if (pls.pos == "right_") {
_local6.points = _local6.points + (const / 10);
}
if (pls.goRight) {
_local6.points = _local6.points + 4000;
}
if (_local6.points > _local19) {
_local19 = _local6.points;
}
_local18.push(_local6);
}
}
if (pls.i > 0) {
if ((!pathCheck[pls.i - 1][pls.j][0]) && (!specials[pls.i - 1][pls.j][1])) {
var _local6 = new Object();
_local6.i = pls.i - 1;
_local6.j = pls.j;
_local6.points = Math.floor(Math.random() * 7) + (50 * const);
if (pathCheck[_local6.i][_local6.j][2] > 1) {
_local6.points = _local6.points - pathCheck[_local6.i][_local6.j][2];
}
if (pathCheck[_local6.i][_local6.j][4]) {
if (pathCheck[_local6.i][_local6.j][4] == 1) {
_local6.points = _local6.points - 15000;
} else if (pathCheck[_local6.i][_local6.j][4] == 2) {
_local6.points = _local6.points - 1000;
} else {
_local6.points = _local6.points - 2000;
}
}
var _local8 = _local6.i;
while ((_local8 > 0) && ((_local6.i - _local8) < 6)) {
if (pathCheck[_local8][_local6.j][1]) {
_local6.points = _local6.points + (const / 5);
}
if ((_local6.j == pl1s.j) && (pl1 != undefined)) {
if (_local8 == pl1s.i) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.j == pl2s.j) && (pl2 != undefined)) {
if (_local8 == pl2s.i) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.j == pl3s.j) && (pl3 != undefined)) {
if (_local8 == pl3s.i) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.j == pl4s.j) && (pl4 != undefined)) {
if (_local8 == pl4s.i) {
_local6.points = _local6.points + (const / 5);
}
}
_local8--;
}
if (pls.pos == "left_") {
_local6.points = _local6.points + (const / 10);
}
if (pls.goLeft) {
_local6.points = _local6.points + 4000;
}
if (_local6.points > _local19) {
_local19 = _local6.points;
}
_local18.push(_local6);
}
}
if (pls.j < 10) {
if ((!pathCheck[pls.i][pls.j + 1][0]) && (!specials[pls.i][pls.j + 1][1])) {
var _local6 = new Object();
_local6.i = pls.i;
_local6.j = pls.j + 1;
_local6.points = Math.floor(Math.random() * 7) + (50 * const);
if (pathCheck[_local6.i][_local6.j][2] > 1) {
_local6.points = _local6.points - pathCheck[_local6.i][_local6.j][2];
}
if (pathCheck[_local6.i][_local6.j][4]) {
if (pathCheck[_local6.i][_local6.j][4] == 1) {
_local6.points = _local6.points - 15000;
} else if (pathCheck[_local6.i][_local6.j][4] == 2) {
_local6.points = _local6.points - 1000;
} else {
_local6.points = _local6.points - 2000;
}
}
var _local8 = _local6.j;
while ((_local8 < 10) && ((_local8 - _local6.j) < 5)) {
if (pathCheck[_local6.i][_local8][1]) {
_local6.points = _local6.points + (const / 5);
}
if ((_local6.i == pl1s.i) && (pl1 != undefined)) {
if (_local8 == pl1s.j) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.i == pl2s.i) && (pl2 != undefined)) {
if (_local8 == pl2s.j) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.i == pl3s.i) && (pl3 != undefined)) {
if (_local8 == pl3s.j) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.i == pl4s.i) && (pl4 != undefined)) {
if (_local8 == pl4s.j) {
_local6.points = _local6.points + (const / 5);
}
}
_local8++;
}
if (pls.pos == "front_") {
_local6.points = _local6.points + (const / 10);
}
if (pls.goDown) {
_local6.points = _local6.points + 4000;
}
if (_local6.points > _local19) {
_local19 = _local6.points;
}
_local18.push(_local6);
}
}
if (pls.j > 0) {
if ((!pathCheck[pls.i][pls.j - 1][0]) && (!specials[pls.i][pls.j - 1][1])) {
var _local6 = new Object();
_local6.i = pls.i;
_local6.j = pls.j - 1;
_local6.points = Math.floor(Math.random() * 7) + (50 * const);
if (pathCheck[_local6.i][_local6.j][2] > 1) {
_local6.points = _local6.points - pathCheck[_local6.i][_local6.j][2];
}
if (pathCheck[_local6.i][_local6.j][4]) {
if (pathCheck[_local6.i][_local6.j][4] == 1) {
_local6.points = _local6.points - 15000;
} else if (pathCheck[_local6.i][_local6.j][4] == 2) {
_local6.points = _local6.points - 1000;
} else {
_local6.points = _local6.points - 2000;
}
}
var _local8 = _local6.j;
while ((_local8 > 0) && ((_local6.j - _local8) < 5)) {
if (pathCheck[_local6.i][_local8][1]) {
_local6.points = _local6.points + (const / 5);
}
if ((_local6.i == pl1s.i) && (pl1 != undefined)) {
if (_local8 == pl1s.j) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.i == pl2s.i) && (pl2 != undefined)) {
if (_local8 == pl2s.j) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.i == pl3s.i) && (pl3 != undefined)) {
if (_local8 == pl3s.j) {
_local6.points = _local6.points + (const / 5);
}
} else if ((_local6.i == pl4s.i) && (pl4 != undefined)) {
if (_local8 == pl4s.j) {
_local6.points = _local6.points + (const / 5);
}
}
_local8--;
}
if (pls.pos == "back_") {
_local6.points = _local6.points + (const / 10);
}
if (pls.goUp) {
_local6.points = _local6.points + 4000;
}
if (_local6.points > _local19) {
_local19 = _local6.points;
}
_local18.push(_local6);
}
}
while ((_local17 < _local18.length) && (_local18[_local17].points != _local19)) {
_local17++;
}
if ((_local18.length > 0) && (_local22 < _local19)) {
pls.dest_x = x_min + (_local18[_local17].i * brick_dim);
pls.dest_y = y_min + (_local18[_local17].j * brick_dim);
pls.gotDest = true;
} else if (game.Level == 8) {
if (specials[pls.i][pls.j][4]) {
if (specials[pls.i][pls.j][4] == 1) {
pl.gotoAndStop("right_move");
}
if (specials[pls.i][pls.j][4] == 2) {
pl.gotoAndStop("left_move");
}
if (specials[pls.i][pls.j][4] == 3) {
pl.gotoAndStop("front_move");
}
if (specials[pls.i][pls.j][4] == 4) {
pl.gotoAndStop("back_move");
}
} else {
pl.gotoAndStop(pls.pos + "stop");
}
} else {
pl.gotoAndStop(pls.pos + "stop");
}
} else {
pls.dest_x = x_min + (pls.i * brick_dim);
pls.dest_y = y_min + (pls.j * brick_dim);
pls.gotDest = true;
}
}
if (pls.gotDest && (pls.dest_x == pl._x)) {
if (pls.dest_y < pl._y) {
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
var _local25 = pls.speed;
pls.speed = 3;
}
if (game.Level == 8) {
var _local25 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local15][_local14][4] == 3)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local15][_local14][4] == 4)) {
pls.speed = pls.speed - 4;
}
}
var _local29 = pl._y - pls.dest_y;
pls.pos = "back_";
pl.gotoAndStop(pls.pos + "move");
if (_local29 >= pls.speed) {
pl._y = pl._y - pls.speed;
} else {
pl._y = pl._y - _local29;
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
pls.speed = _local25;
}
if (game.Level == 8) {
pls.speed = _local25;
}
return(undefined);
}
if (pls.dest_y > pl._y) {
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
var _local25 = pls.speed;
pls.speed = 3;
}
if (game.Level == 8) {
var _local25 = pls.speed;
if ((specials[pls.i][pls.j][4] == 3) || (specials[_local15][_local14][4] == 3)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 4) || (specials[_local15][_local14][4] == 4)) {
pls.speed = pls.speed + 4;
}
}
var _local29 = pls.dest_y - pl._y;
pls.pos = "front_";
pl.gotoAndStop(pls.pos + "move");
if (_local29 >= pls.speed) {
pl._y = pl._y + pls.speed;
} else {
pl._y = pl._y + _local30;
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
pls.speed = _local25;
}
if (game.Level == 8) {
pls.speed = _local25;
}
return(undefined);
}
pls.gotDest = false;
}
if (pls.gotDest && (pls.dest_y == pl._y)) {
if (pls.dest_x < pl._x) {
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
var _local25 = pls.speed;
pls.speed = 3;
}
if (game.Level == 8) {
var _local25 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local15][_local14][4] == 1)) {
pls.speed = pls.speed + 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local15][_local14][4] == 2)) {
pls.speed = pls.speed - 4;
}
}
var _local28 = pl._x - pls.dest_x;
pls.pos = "left_";
pl.gotoAndStop(pls.pos + "move");
if (_local28 >= pls.speed) {
pl._x = pl._x - pls.speed;
} else {
pl._x = pl._x - _local28;
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
pls.speed = _local25;
}
if (game.Level == 8) {
pls.speed = _local25;
}
return(undefined);
}
if (pls.dest_x > pl._x) {
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 5) {
pls.speed = 4;
}
if (pls.speed == 8) {
pls.speed = 5;
}
if (pls.speed == 10) {
pls.speed = 8;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
var _local25 = pls.speed;
pls.speed = 3;
}
if (game.Level == 8) {
var _local25 = pls.speed;
if ((specials[pls.i][pls.j][4] == 1) || (specials[_local15][_local14][4] == 1)) {
pls.speed = pls.speed - 4;
}
if ((specials[pls.i][pls.j][4] == 2) || (specials[_local15][_local14][4] == 2)) {
pls.speed = pls.speed + 4;
}
}
var _local28 = pls.dest_x - pl._x;
pls.pos = "right_";
pl.gotoAndStop(pls.pos + "move");
if (_local28 >= pls.speed) {
pl._x = pl._x + pls.speed;
} else {
pl._x = pl._x + _local28;
}
if ((game.Level == 1) && (specials[pls.i][pls.j][0] || (specials[_local15][_local14][0]))) {
if (pls.speed == 8) {
pls.speed = 10;
}
if (pls.speed == 5) {
pls.speed = 8;
}
if (pls.speed == 4) {
pls.speed = 5;
}
}
if ((game.Level == 7) && (specials[pls.i][pls.j][3] || (specials[_local15][_local14][3]))) {
pls.speed = _local25;
}
if (game.Level == 8) {
pls.speed = _local25;
}
return(undefined);
}
pls.gotDest = false;
}
}
function handleBombs() {
bombBox.sortOn("detonate", Array.DESCENDING | Array.NUMERIC);
var _local12 = 0;
while (_local12 < bombBox.length) {
if (bombBox[_local12] != undefined) {
if (((bFire[bombBox[_local12].i][bombBox[_local12].j].length > 0) || (pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] <= 2)) || (specials[bombBox[_local12].i][bombBox[_local12].j][1])) {
bombBox[_local12].detonate = 0;
}
var _local8 = 0;
while (_local8 < 4) {
if (_local8 == 0) {
if (pl1 != undefined) {
var _local9 = pl1;
var _local3 = pl1s;
// unexpected jump
}
} else if (_local8 == 1) {
if (pl2 != undefined) {
var _local9 = pl2;
var _local3 = pl2s;
// unexpected jump
}
} else if (_local8 == 2) {
if (pl3 != undefined) {
var _local9 = pl3;
var _local3 = pl3s;
// unexpected jump
}
} else if (_local8 == 3) {
if (pl4 != undefined) {
var _local9 = pl4;
var _local3 = pl4s;
// unexpected jump
}
} else if ((_local3.kick && (game.Level != 2)) && (!_local3.kickIt)) {
if (!bombBox[_local12].dir) {
var _local21 = (_local9._x - x_min) % brick_dim;
var _local27 = Math.floor((_local9._x - x_min) / brick_dim);
var _local20 = (_local9._y - y_min) % brick_dim;
var _local26 = Math.floor((_local9._y - y_min) / brick_dim);
if ((((((bombBox[_local12].i != 0) && (_local3.i == (bombBox[_local12].i + 1))) && (_local3.j == bombBox[_local12].j)) && Key.isDown(_local3.key_Left)) && (!pathCheck[bombBox[_local12].i - 1][bombBox[_local12].j][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 1;
b_snd[6].stop();
b_snd[6].start();
}
if (((((((bombBox[_local12].i != 14) && (_local21 == 0)) && (_local27 == (bombBox[_local12].i - 1))) && (_local3.j == bombBox[_local12].j)) && Key.isDown(_local3.key_Right)) && (!pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 2;
b_snd[6].stop();
b_snd[6].start();
}
if ((((((bombBox[_local12].j != 0) && (_local3.j == (bombBox[_local12].j + 1))) && (_local3.i == bombBox[_local12].i)) && Key.isDown(_local3.key_Up)) && (!pathCheck[bombBox[_local12].i][bombBox[_local12].j - 1][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 3;
b_snd[6].stop();
b_snd[6].start();
}
if (((((((bombBox[_local12].j != 10) && (_local20 == 0)) && (_local26 == (bombBox[_local12].j - 1))) && (_local3.i == bombBox[_local12].i)) && Key.isDown(_local3.key_Down)) && (!pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 4;
b_snd[6].stop();
b_snd[6].start();
}
}
} else if ((game.Level != 2) && _local3.kickIt) {
if ((((((bombBox[_local12].i != 0) && (_local3.i == (bombBox[_local12].i + 1))) && (_local3.j == bombBox[_local12].j)) && (_local3.kickIt == 1)) && (!pathCheck[bombBox[_local12].i - 1][bombBox[_local12].j][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 1;
_local3.kickIt = 0;
b_snd[6].stop();
b_snd[6].start();
}
if ((((((bombBox[_local12].i != 14) && (_local3.i == (bombBox[_local12].i - 1))) && (_local3.j == bombBox[_local12].j)) && (_local3.kickIt == 2)) && (!pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 2;
_local3.kickIt = 0;
b_snd[6].stop();
b_snd[6].start();
}
if ((((((bombBox[_local12].j != 0) && (_local3.j == (bombBox[_local12].j + 1))) && (_local3.i == bombBox[_local12].i)) && (_local3.kickIt == 3)) && (!pathCheck[bombBox[_local12].i][bombBox[_local12].j - 1][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 3;
_local3.kickIt = 0;
b_snd[6].stop();
b_snd[6].start();
}
if ((((((bombBox[_local12].j != 10) && (_local3.j == (bombBox[_local12].j - 1))) && (_local3.i == bombBox[_local12].i)) && (_local3.kickIt == 4)) && (!pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0])) && (!specials[bombBox[_local12].i][bombBox[_local12].j][4])) {
bombBox[_local12].dir = 4;
_local3.kickIt = 0;
b_snd[6].stop();
b_snd[6].start();
}
}
_local8++;
}
if (!bombBox[_local12].dir) {
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
if ((_local27 == 0) && (_local26 == 0)) {
if (((bombBox[_local12].i != 0) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] == 1)) && (!pathCheck[bombBox[_local12].i - 1][bombBox[_local12].j][0])) {
bombBox[_local12].dir = specials[bombBox[_local12].i][bombBox[_local12].j][4];
}
if (((bombBox[_local12].i != 14) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] == 2)) && (!pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0])) {
bombBox[_local12].dir = specials[bombBox[_local12].i][bombBox[_local12].j][4];
}
if (((bombBox[_local12].j != 0) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] == 3)) && (!pathCheck[bombBox[_local12].i][bombBox[_local12].j - 1][0])) {
bombBox[_local12].dir = specials[bombBox[_local12].i][bombBox[_local12].j][4];
}
if (((bombBox[_local12].j != 10) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] == 4)) && (!pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0])) {
bombBox[_local12].dir = specials[bombBox[_local12].i][bombBox[_local12].j][4];
}
}
}
if (bombBox[_local12].dir) {
var _local19 = bombBox[_local12].flen;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][2] = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][3] = 0;
if (bombBox[_local12].i != 0) {
var _local6 = bombBox[_local12].i;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local6 - 1][bombBox[_local12].j][0] != 2)) && (_local6 >= 1)) && (_local22 > 0)) {
_local6--;
pathCheck[_local6][bombBox[_local12].j][2] = 0;
pathCheck[_local6][bombBox[_local12].j][3] = 0;
_local22--;
if ((pathCheck[_local6][bombBox[_local12].j][0] == 1) || (pathCheck[_local6][bombBox[_local12].j][1])) {
_local14 = false;
}
}
}
if (bombBox[_local12].i != 14) {
var _local6 = bombBox[_local12].i;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local6 + 1][bombBox[_local12].j][0] != 2)) && (_local6 <= 13)) && (_local22 > 0)) {
_local6++;
pathCheck[_local6][bombBox[_local12].j][2] = 0;
pathCheck[_local6][bombBox[_local12].j][3] = 0;
_local22--;
if ((pathCheck[_local6][bombBox[_local12].j][0] == 1) || (pathCheck[_local6][bombBox[_local12].j][1])) {
_local14 = false;
}
}
}
if (bombBox[_local12].j != 0) {
var _local5 = bombBox[_local12].j;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[bombBox[_local12].i][_local5 - 1][0] != 2)) && (_local5 >= 1)) && (_local22 > 0)) {
_local5--;
pathCheck[bombBox[_local12].i][_local5][2] = 0;
pathCheck[bombBox[_local12].i][_local5][3] = 0;
_local22--;
if ((pathCheck[bombBox[_local12].i][_local5][0] == 1) || (pathCheck[bombBox[_local12].i][_local5][1])) {
_local14 = false;
}
}
}
if (bombBox[_local12].j != 10) {
var _local5 = bombBox[_local12].j;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[bombBox[_local12].i][_local5 + 1][0] != 2)) && (_local5 <= 9)) && (_local22 > 0)) {
_local5++;
pathCheck[bombBox[_local12].i][_local5][2] = 0;
pathCheck[bombBox[_local12].i][_local5][3] = 0;
_local22--;
if ((pathCheck[bombBox[_local12].i][_local5][0] == 1) || (pathCheck[bombBox[_local12].i][_local5][1])) {
_local14 = false;
}
}
}
if ((bombBox[_local12].dir == 1) && ((!pathCheck[bombBox[_local12].i - 1][bombBox[_local12].j][0]) || (pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0] == bombBox[_local12].nr))) {
var _local7 = 0;
while (_local7 < 4) {
if ((_local7 == 0) && (pl1 != undefined)) {
var _local18 = (pl1._x - x_min) % brick_dim;
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl1._x - x_min) / brick_dim);
if (_local18 != 0) {
_local15++;
}
if ((((bombBox[_local12].i - 1) == _local15) && (bombBox[_local12].j == pl1s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 1) && (pl2 != undefined)) {
var _local18 = (pl2._x - x_min) % brick_dim;
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl2._x - x_min) / brick_dim);
if (_local18 != 0) {
_local15++;
}
if ((((bombBox[_local12].i - 1) == _local15) && (bombBox[_local12].j == pl2s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 2) && (pl3 != undefined)) {
var _local18 = (pl3._x - x_min) % brick_dim;
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl3._x - x_min) / brick_dim);
if (_local18 != 0) {
_local15++;
}
if ((((bombBox[_local12].i - 1) == _local15) && (bombBox[_local12].j == pl3s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 3) && (pl4 != undefined)) {
var _local18 = (pl4._x - x_min) % brick_dim;
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl4._x - x_min) / brick_dim);
if (_local18 != 0) {
_local15++;
}
if ((((bombBox[_local12].i - 1) == _local15) && (bombBox[_local12].j == pl4s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
_local7++;
}
if (((((bombBox[_local12].i == 0) || (bombBox[_local12].detonate <= 10)) || (specials[bombBox[_local12].i - 1][bombBox[_local12].j][2])) || ((specials[bombBox[_local12].i][bombBox[_local12].j][4] != bombBox[_local12].dir) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] != 0))) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
if (bombBox[_local12].dir) {
if (pathCheck[bombBox[_local12].i - 1][bombBox[_local12].j][1]) {
objBox[bombBox[_local12].i - 1][bombBox[_local12].j].removeMovieClip();
objBox[bombBox[_local12].i - 1][bombBox[_local12].j] = undefined;
pathCheck[bombBox[_local12].i - 1][bombBox[_local12].j][1] = 0;
}
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 0;
if (_local27 != 0) {
pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0] = 0;
}
if (bombBox[_local12]._x >= (x_min + 5)) {
bombBox[_local12]._x = bombBox[_local12]._x - 5;
}
bombBox[_local12].i = Math.floor((bombBox[_local12]._x - x_min) / brick_dim);
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = bombBox[_local12].nr;
if (_local27 != 0) {
pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0] = bombBox[_local12].nr;
}
}
} else if (bombBox[_local12].dir == 1) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
if ((bombBox[_local12].dir == 2) && ((!pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0]) || (pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0] == bombBox[_local12].nr))) {
var _local7 = 0;
while (_local7 < 4) {
if ((_local7 == 0) && (pl1 != undefined)) {
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl1._x - x_min) / brick_dim);
if (_local27 != 0) {
bomb_i++;
}
if ((((bombBox[_local12].i + 1) == _local15) && (bombBox[_local12].j == pl1s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 1) && (pl2 != undefined)) {
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl2._x - x_min) / brick_dim);
if (_local27 != 0) {
bomb_i++;
}
if ((((bombBox[_local12].i + 1) == _local15) && (bombBox[_local12].j == pl2s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 2) && (pl3 != undefined)) {
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl3._x - x_min) / brick_dim);
if (_local27 != 0) {
bomb_i++;
}
if ((((bombBox[_local12].i + 1) == _local15) && (bombBox[_local12].j == pl3s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 3) && (pl4 != undefined)) {
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
var _local15 = Math.floor((pl4._x - x_min) / brick_dim);
if (_local27 != 0) {
bomb_i++;
}
if ((((bombBox[_local12].i + 1) == _local15) && (bombBox[_local12].j == pl4s.j)) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
_local7++;
}
if (((((bombBox[_local12].i == 14) || (bombBox[_local12].detonate <= 10)) || (specials[bombBox[_local12].i + 1][bombBox[_local12].j][2])) || ((specials[bombBox[_local12].i][bombBox[_local12].j][4] != bombBox[_local12].dir) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] != 0))) && (_local27 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
if (bombBox[_local12].dir) {
if (pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][1]) {
objBox[bombBox[_local12].i + 1][bombBox[_local12].j].removeMovieClip();
objBox[bombBox[_local12].i + 1][bombBox[_local12].j] = undefined;
pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][1] = 0;
}
if (_local27 != 0) {
pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0] = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 0;
} else {
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 0;
}
if (bombBox[_local12]._x <= ((x_min - 5) + (14 * brick_dim))) {
bombBox[_local12]._x = bombBox[_local12]._x + 5;
}
var _local27 = (bombBox[_local12]._x - x_min) % brick_dim;
bombBox[_local12].i = Math.floor((bombBox[_local12]._x - x_min) / brick_dim);
if (_local27 != 0) {
pathCheck[bombBox[_local12].i + 1][bombBox[_local12].j][0] = bombBox[_local12].nr;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = bombBox[_local12].nr;
} else {
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = bombBox[_local12].nr;
}
}
} else if (bombBox[_local12].dir == 2) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
if ((bombBox[_local12].dir == 3) && ((!pathCheck[bombBox[_local12].i][bombBox[_local12].j - 1][0]) || (pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0] == bombBox[_local12].nr))) {
var _local7 = 0;
while (_local7 < 4) {
if ((_local7 == 0) && (pl1 != undefined)) {
var _local17 = (pl1._y - y_min) % brick_dim;
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl1._y - y_min) / brick_dim);
if (_local17 != 0) {
_local13++;
}
if ((((bombBox[_local12].j - 1) == _local13) && (bombBox[_local12].i == pl1s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 1) && (pl2 != undefined)) {
var _local17 = (pl2._y - y_min) % brick_dim;
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl2._y - y_min) / brick_dim);
if (_local17 != 0) {
_local13++;
}
if ((((bombBox[_local12].j - 1) == _local13) && (bombBox[_local12].i == pl2s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 2) && (pl3 != undefined)) {
var _local17 = (pl3._y - y_min) % brick_dim;
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl3._y - y_min) / brick_dim);
if (_local17 != 0) {
_local13++;
}
if ((((bombBox[_local12].j - 1) == _local13) && (bombBox[_local12].i == pl3s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 3) && (pl4 != undefined)) {
var _local17 = (pl4._y - y_min) % brick_dim;
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl4._y - y_min) / brick_dim);
if (_local17 != 0) {
_local13++;
}
if ((((bombBox[_local12].j - 1) == _local13) && (bombBox[_local12].i == pl4s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
_local7++;
}
if (((((bombBox[_local12].j == 0) || (bombBox[_local12].detonate <= 10)) || (specials[bombBox[_local12].i][bombBox[_local12].j - 1][2])) || ((specials[bombBox[_local12].i][bombBox[_local12].j][4] != bombBox[_local12].dir) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] != 0))) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
if (bombBox[_local12].dir) {
if (pathCheck[bombBox[_local12].i][bombBox[_local12].j - 1][1]) {
objBox[bombBox[_local12].i][bombBox[_local12].j - 1].removeMovieClip();
objBox[bombBox[_local12].i][bombBox[_local12].j - 1] = undefined;
pathCheck[bombBox[_local12].i][bombBox[_local12].j - 1][1] = 0;
}
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 0;
if (_local26 != 0) {
pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0] = 0;
}
if (bombBox[_local12]._y >= (y_min + 5)) {
bombBox[_local12]._y = bombBox[_local12]._y - 5;
}
bombBox[_local12].j = Math.floor((bombBox[_local12]._y - y_min) / brick_dim);
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = bombBox[_local12].nr;
if (_local26 != 0) {
pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0] = bombBox[_local12].nr;
}
}
} else if (bombBox[_local12].dir == 3) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
if ((bombBox[_local12].dir == 4) && ((!pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0]) || (pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0] == bombBox[_local12].nr))) {
var _local7 = 0;
while (_local7 < 4) {
if ((_local7 == 0) && (pl1 != undefined)) {
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl1._y - y_min) / brick_dim);
if (_local26 != 0) {
bomb_j++;
}
if ((((bombBox[_local12].j + 1) == _local13) && (bombBox[_local12].i == pl1s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 1) && (pl2 != undefined)) {
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl2._y - y_min) / brick_dim);
if (_local26 != 0) {
bomb_j++;
}
if ((((bombBox[_local12].j + 1) == _local13) && (bombBox[_local12].i == pl2s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 2) && (pl3 != undefined)) {
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl3._y - y_min) / brick_dim);
if (_local26 != 0) {
bomb_j++;
}
if ((((bombBox[_local12].j + 1) == _local13) && (bombBox[_local12].i == pl3s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((_local7 == 3) && (pl4 != undefined)) {
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
var _local13 = Math.floor((pl4._y - y_min) / brick_dim);
if (_local26 != 0) {
bomb_j++;
}
if ((((bombBox[_local12].j + 1) == _local13) && (bombBox[_local12].i == pl4s.i)) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
_local7++;
}
if (((((bombBox[_local12].j == 10) || (bombBox[_local12].detonate <= 10)) || (specials[bombBox[_local12].i][bombBox[_local12].j + 1][2])) || ((specials[bombBox[_local12].i][bombBox[_local12].j][4] != bombBox[_local12].dir) && (specials[bombBox[_local12].i][bombBox[_local12].j][4] != 0))) && (_local26 == 0)) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
if (bombBox[_local12].dir) {
if (pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][1]) {
objBox[bombBox[_local12].i][bombBox[_local12].j + 1].removeMovieClip();
objBox[bombBox[_local12].i][bombBox[_local12].j + 1] = undefined;
pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][1] = 0;
}
if (_local26 != 0) {
pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0] = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 0;
} else {
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 0;
}
if (bombBox[_local12]._y <= ((y_min - 5) + (10 * brick_dim))) {
bombBox[_local12]._y = bombBox[_local12]._y + 5;
}
var _local26 = (bombBox[_local12]._y - y_min) % brick_dim;
bombBox[_local12].j = Math.floor((bombBox[_local12]._y - y_min) / brick_dim);
if (_local26 != 0) {
pathCheck[bombBox[_local12].i][bombBox[_local12].j + 1][0] = bombBox[_local12].nr;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = bombBox[_local12].nr;
} else {
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = bombBox[_local12].nr;
}
}
} else if (bombBox[_local12].dir == 4) {
bombBox[_local12].dir = 0;
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 3;
}
}
if ((!bombBox[_local12].dir) && (bombBox[_local12].detonate <= 0)) {
var _local23 = Math.floor(Math.random() * (b_snd.length - 4));
b_snd[_local23].stop();
b_snd[_local23].start();
if (objBox[bombBox[_local12].i][bombBox[_local12].j] == undefined) {
pathCheck[bombBox[_local12].i][bombBox[_local12].j][0] = 0;
}
var _local19 = bombBox[_local12].flen;
var _local2 = _root.attachMovie("mcFire_middle", (("fire" + bombBox[_local12].i) + bombBox[_local12].j) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (bombBox[_local12].i * brick_dim), _y:y_min + (bombBox[_local12].j * brick_dim)});
var _local11 = _root.attachMovie("mcFire_middle_bar", (("fire" + bombBox[_local12].i) + bombBox[_local12].j) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (bombBox[_local12].i * brick_dim), _y:y_min + (bombBox[_local12].j * brick_dim)});
_local2.core = _local11;
if (nextBombFireDepth < 2700) {
nextBombFireDepth++;
} else {
nextBombFireDepth = 2000;
}
if (nextFireCoreDepth < 3700) {
nextFireCoreDepth++;
} else {
nextFireCoreDepth = 3000;
}
_local2.i = bombBox[_local12].i;
_local2.j = bombBox[_local12].j;
_local2.pls = bombBox[_local12].id;
var _local16 = new flash.geom.Transform(_local2);
_local16.colorTransform = _local2.pls.fireColor;
_local16 = new flash.geom.Transform(_local11);
_local16.colorTransform = _local2.pls.coreColor;
bombBox[_local12].removeMovieClip();
bombBox.splice(_local12, 1);
_local2.id = 1;
_local2.obj_store = new Array();
_local2.obj_core = new Array();
_local2.delay = 10;
bFire[_local2.i][_local2.j].push(_local2);
pathCheck[_local2.i][_local2.j][2] = 15000;
var _local29 = fireBox.length;
fireBox.push(_local2);
if (_local2.i != 0) {
var _local6 = _local2.i;
var _local14 = true;
var _local28 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local6 - 1][_local2.j][0] != 2)) && (_local6 >= 1)) && (_local22 > 0)) {
_local6--;
pathCheck[_local6][_local2.j][2] = 15000;
_local22--;
if ((pathCheck[_local6][_local2.j][0] == 1) || (pathCheck[_local6][_local2.j][1])) {
_local14 = false;
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local6) + _local2.j) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local6) + _local2.j) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
} else if (((pathCheck[_local6 - 1][_local2.j][0] == 2) || (_local6 == 0)) || (_local22 == 0)) {
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local6) + _local2.j) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local6) + _local2.j) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
} else {
var _local4 = _root.attachMovie("mcFire_normal", (("fire" + _local6) + _local2.j) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
_local11 = _root.attachMovie("mcFire_normal_bar", (("core" + _local6) + _local2.j) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
}
if (nextBombFireDepth < 2700) {
nextBombFireDepth++;
} else {
nextBombFireDepth = 2000;
}
if (nextFireCoreDepth < 3700) {
nextFireCoreDepth++;
} else {
nextFireCoreDepth = 3000;
}
_local4._rotation = 270;
_local11._rotation = 270;
_local4.id = 0;
_local4.i = _local6;
_local4.j = _local2.j;
_local16 = new flash.geom.Transform(_local4);
_local16.colorTransform = _local2.pls.fireColor;
_local16 = new flash.geom.Transform(_local11);
_local16.colorTransform = _local2.pls.coreColor;
_local4.pls = _local2.pls;
bFire[_local6][_local2.j].push(_local4);
_local2.obj_store.push(_local4);
_local2.obj_core.push(_local11);
}
}
if (_local2.i != 14) {
var _local6 = _local2.i;
var _local14 = true;
var _local28 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local6 + 1][_local2.j][0] != 2)) && (_local6 <= 13)) && (_local22 > 0)) {
_local6++;
pathCheck[_local6][_local2.j][2] = 15000;
_local22--;
if ((pathCheck[_local6][_local2.j][0] == 1) || (pathCheck[_local6][_local2.j][1])) {
_local14 = false;
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local6) + _local2.j) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local6) + _local2.j) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
} else if (((pathCheck[_local6 + 1][_local2.j][0] == 2) || (_local6 == 14)) || (_local22 == 0)) {
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local6) + _local2.j) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local6) + _local2.j) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
} else {
var _local4 = _root.attachMovie("mcFire_normal", (("fire" + _local6) + _local2.j) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
_local11 = _root.attachMovie("mcFire_normal_bar", (("core" + _local6) + _local2.j) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local6 * brick_dim), _y:y_min + (_local2.j * brick_dim)});
}
if (nextBombFireDepth < 2700) {
nextBombFireDepth++;
} else {
nextBombFireDepth = 2000;
}
if (nextFireCoreDepth < 3700) {
nextFireCoreDepth++;
} else {
nextFireCoreDepth = 3000;
}
_local4._rotation = 90;
_local11._rotation = 90;
_local4.id = 0;
_local4.i = _local6;
_local4.j = _local2.j;
_local16 = new flash.geom.Transform(_local4);
_local16.colorTransform = _local2.pls.fireColor;
_local16 = new flash.geom.Transform(_local11);
_local16.colorTransform = _local2.pls.coreColor;
_local4.pls = _local2.pls;
bFire[_local6][_local2.j].push(_local4);
_local2.obj_store.push(_local4);
_local2.obj_core.push(_local11);
}
}
if (_local2.j != 0) {
var _local5 = _local2.j;
var _local14 = true;
var _local28 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local2.i][_local5 - 1][0] != 2)) && (_local5 >= 1)) && (_local22 > 0)) {
_local5--;
pathCheck[_local2.i][_local5][2] = 15000;
_local22--;
if ((pathCheck[_local2.i][_local5][0] == 1) || (pathCheck[_local2.i][_local5][1])) {
_local14 = false;
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local2.i) + _local5) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local2.i) + _local5) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
} else if (((pathCheck[_local2.i][_local5 - 1][0] == 2) || (_local5 == 0)) || (_local22 == 0)) {
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local2.i) + _local5) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local2.i) + _local5) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
} else {
var _local4 = _root.attachMovie("mcFire_normal", (("fire" + _local2.i) + _local5) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
_local11 = _root.attachMovie("mcFire_normal_bar", (("core" + _local2.i) + _local5) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
}
if (nextBombFireDepth < 2700) {
nextBombFireDepth++;
} else {
nextBombFireDepth = 2000;
}
if (nextFireCoreDepth < 3700) {
nextFireCoreDepth++;
} else {
nextFireCoreDepth = 3000;
}
_local4._rotation = 0;
_local11._rotation = 0;
_local4.id = 0;
_local4.i = _local2.i;
_local4.j = _local5;
_local16 = new flash.geom.Transform(_local4);
_local16.colorTransform = _local2.pls.fireColor;
_local16 = new flash.geom.Transform(_local11);
_local16.colorTransform = _local2.pls.coreColor;
_local4.pls = _local2.pls;
bFire[_local2.i][_local5].push(_local4);
_local2.obj_store.push(_local4);
_local2.obj_core.push(_local11);
}
}
if (_local2.j != 10) {
var _local5 = _local2.j;
var _local14 = true;
var _local28 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local2.i][_local5 + 1][0] != 2)) && (_local5 <= 9)) && (_local22 > 0)) {
_local5++;
pathCheck[_local2.i][_local5][2] = 15000;
_local22--;
if ((pathCheck[_local2.i][_local5][0] == 1) || (pathCheck[_local2.i][_local5][1])) {
_local14 = false;
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local2.i) + _local5) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local2.i) + _local5) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
} else if (((pathCheck[_local2.i][_local5 + 1][0] == 2) || (_local5 == 10)) || (_local22 == 0)) {
var _local4 = _root.attachMovie("mcFire_end", (("fire" + _local2.i) + _local5) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
_local11 = _root.attachMovie("mcFire_end_bar", (("core" + _local2.i) + _local5) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
} else {
var _local4 = _root.attachMovie("mcFire_normal", (("fire" + _local2.i) + _local5) + nextBombFireDepth, nextBombFireDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
_local11 = _root.attachMovie("mcFire_normal_bar", (("core" + _local2.i) + _local5) + nextFireCoreDepth, nextFireCoreDepth, {_x:x_min + (_local2.i * brick_dim), _y:y_min + (_local5 * brick_dim)});
}
if (nextBombFireDepth < 2700) {
nextBombFireDepth++;
} else {
nextBombFireDepth = 2000;
}
if (nextFireCoreDepth < 3700) {
nextFireCoreDepth++;
} else {
nextFireCoreDepth = 3000;
}
_local4._rotation = 180;
_local11._rotation = 180;
_local4.id = 0;
_local4.i = _local2.i;
_local4.j = _local5;
_local16 = new flash.geom.Transform(_local4);
_local16.colorTransform = _local2.pls.fireColor;
_local16 = new flash.geom.Transform(_local11);
_local16.colorTransform = _local2.pls.coreColor;
_local4.pls = _local2.pls;
bFire[_local2.i][_local5].push(_local4);
_local2.obj_store.push(_local4);
_local2.obj_core.push(_local11);
}
}
} else {
bombBox[_local12].detonate--;
if (bombBox[_local12].detonate >= game.AI) {
if (game.setAI == 0) {
var _local10 = 0;
} else {
var _local10 = 1;
}
} else if (bombBox[_local12].detonate > 16) {
var _local10 = (100 - bombBox[_local12].detonate) * 40;
} else {
var _local10 = (100 - bombBox[_local12].detonate) * 150;
}
var _local19 = bombBox[_local12].flen;
if (bFire[bombBox[_local12].i][bombBox[_local12].j].length > 0) {
pathCheck[bombBox[_local12].i][bombBox[_local12].j][2] = 15000;
} else {
pathCheck[bombBox[_local12].i][bombBox[_local12].j][2] = _local10;
}
pathCheck[bombBox[_local12].i][bombBox[_local12].j][3] = bombBox[_local12].detonate;
if (bombBox[_local12].i != 0) {
var _local6 = bombBox[_local12].i;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local6 - 1][bombBox[_local12].j][0] != 2)) && (_local6 >= 1)) && (_local22 > 0)) {
_local6--;
if (bFire[_local6][bombBox[_local12].j].length > 0) {
pathCheck[_local6][bombBox[_local12].j][2] = 15000;
} else {
pathCheck[_local6][bombBox[_local12].j][2] = _local10;
}
pathCheck[_local6][bombBox[_local12].j][3] = bombBox[_local12].detonate;
_local22--;
if ((pathCheck[_local6][bombBox[_local12].j][0] == 1) || (pathCheck[_local6][bombBox[_local12].j][1])) {
_local14 = false;
}
}
}
if (bombBox[_local12].i != 14) {
var _local6 = bombBox[_local12].i;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[_local6 + 1][bombBox[_local12].j][0] != 2)) && (_local6 <= 13)) && (_local22 > 0)) {
_local6++;
if (bFire[_local6][bombBox[_local12].j].length > 0) {
pathCheck[_local6][bombBox[_local12].j][2] = 15000;
} else {
pathCheck[_local6][bombBox[_local12].j][2] = _local10;
}
pathCheck[_local6][bombBox[_local12].j][3] = bombBox[_local12].detonate;
_local22--;
if ((pathCheck[_local6][bombBox[_local12].j][0] == 1) || (pathCheck[_local6][bombBox[_local12].j][1])) {
_local14 = false;
}
}
}
if (bombBox[_local12].j != 0) {
var _local5 = bombBox[_local12].j;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[bombBox[_local12].i][_local5 - 1][0] != 2)) && (_local5 >= 1)) && (_local22 > 0)) {
_local5--;
if (bFire[bombBox[_local12].i][_local5].length > 0) {
pathCheck[bombBox[_local12].i][_local5][2] = 15000;
} else {
pathCheck[bombBox[_local12].i][_local5][2] = _local10;
}
pathCheck[bombBox[_local12].i][_local5][3] = bombBox[_local12].detonate;
_local22--;
if ((pathCheck[bombBox[_local12].i][_local5][0] == 1) || (pathCheck[bombBox[_local12].i][_local5][1])) {
_local14 = false;
}
}
}
if (bombBox[_local12].j != 10) {
var _local5 = bombBox[_local12].j;
var _local14 = true;
var _local22 = _local19;
while (((_local14 && (pathCheck[bombBox[_local12].i][_local5 + 1][0] != 2)) && (_local5 <= 9)) && (_local22 > 0)) {
_local5++;
if (bFire[bombBox[_local12].i][_local5].length > 0) {
pathCheck[bombBox[_local12].i][_local5][2] = 15000;
} else {
pathCheck[bombBox[_local12].i][_local5][2] = _local10;
}
pathCheck[bombBox[_local12].i][_local5][3] = bombBox[_local12].detonate;
_local22--;
if ((pathCheck[bombBox[_local12].i][_local5][0] == 1) || (pathCheck[bombBox[_local12].i][_local5][1])) {
_local14 = false;
}
}
}
}
}
_local12++;
}
_local12 = 0;
while (_local12 < bombBox.length) {
if (bombBox[_local12] != undefined) {
if (pathCheck[bombBox[_local12].i][bombBox[_local12].j][3] != 0) {
bombBox[_local12].detonate = pathCheck[bombBox[_local12].i][bombBox[_local12].j][3];
}
}
_local12++;
}
}
function handleBombFire() {
var _local2 = 0;
while (_local2 < fireBox.length) {
if (fireBox[_local2] != undefined) {
if (fireBox[_local2].delay <= 0) {
var _local3 = 0;
while (_local3 < fireBox[_local2].obj_store.length) {
if (pathCheck[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j][1]) {
objBox[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j].removeMovieClip();
objBox[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j] = undefined;
pathCheck[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j][1] = 0;
}
if (pathCheck[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j][0] == 1) {
objBox[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j].removeMovieClip();
objBox[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j] = undefined;
pathCheck[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j][0] = 0;
var _local4 = Math.floor(Math.random() * 18) + 0;
if (_local4 > 7) {
_local4 = Math.floor(Math.random() * 14) + 0;
var _local5 = _root.attachMovie("mcBonus", (("bonus" + fireBox[_local2].obj_store[_local3].i) + fireBox[_local2].obj_store[_local3].j) + nextBonusDepth, nextBonusDepth, {_x:x_min + (fireBox[_local2].obj_store[_local3].i * brick_dim), _y:y_min + (fireBox[_local2].obj_store[_local3].j * brick_dim)});
if (nextBonusDepth < 450) {
nextBonusDepth++;
} else {
nextBonusDepth = 0;
}
if (_local4 < 4) {
_local5.gotoAndStop(1);
}
if (_local4 == 4) {
_local5.gotoAndStop(2);
}
if (_local4 == 5) {
_local5.gotoAndStop(3);
}
if (_local4 == 6) {
_local5.gotoAndStop(4);
}
if ((_local4 > 6) && (_local4 < 9)) {
_local5.gotoAndStop(5);
}
if (_local4 == 9) {
_local5.gotoAndStop(6);
}
if (_local4 == 10) {
_local5.gotoAndStop(7);
}
if ((_local4 > 10) && (_local4 < 12)) {
_local5.gotoAndStop(8);
}
if (_local4 > 11) {
_local5.gotoAndStop(9);
}
objBox[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j] = _local5;
pathCheck[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j][1] = 1;
}
}
if (!fireBox[_local2].obj_store[_local3].id) {
bFire[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j].splice(0, 1);
if (bFire[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j].length == 0) {
pathCheck[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j][2] = 0;
pathCheck[fireBox[_local2].obj_store[_local3].i][fireBox[_local2].obj_store[_local3].j][3] = 0;
}
fireBox[_local2].obj_store[_local3].removeMovieClip();
fireBox[_local2].obj_core[_local3].removeMovieClip();
}
_local3++;
}
bFire[fireBox[_local2].i][fireBox[_local2].j].splice(0, 1);
if (bFire[fireBox[_local2].i][fireBox[_local2].j].length == 0) {
pathCheck[fireBox[_local2].i][fireBox[_local2].j][2] = 0;
pathCheck[fireBox[_local2].i][fireBox[_local2].j][3] = 0;
}
if (fireBox[_local2].pls.Bombs < 4) {
fireBox[_local2].pls.Bombs++;
}
fireBox[_local2].core.removeMovieClip();
fireBox[_local2].removeMovieClip();
fireBox.splice(_local2, 1);
} else {
fireBox[_local2].delay--;
}
}
_local2++;
}
}
function handleBonus(pls, check_i, check_j, ref_x, ref_y) {
var _local3 = 0;
var _local2 = 0;
var _local6 = false;
if (pls.sick > 0) {
pls.sick--;
}
if (pls.godmode > 0) {
pls.godmode--;
}
if (pls.control != "COMP") {
if (pls.keyChanged <= 0) {
if (pls.control == "KEYB1") {
pls.key_Left = keyBoard[0][0];
pls.key_Right = keyBoard[0][1];
pls.key_Up = keyBoard[0][2];
pls.key_Down = keyBoard[0][3];
} else if (pls.control == "KEYB2") {
pls.key_Left = keyBoard[1][0];
pls.key_Right = keyBoard[1][1];
pls.key_Up = keyBoard[1][2];
pls.key_Down = keyBoard[1][3];
} else if (pls.control == "KEYB3") {
pls.key_Left = keyBoard[2][0];
pls.key_Right = keyBoard[2][1];
pls.key_Up = keyBoard[2][2];
pls.key_Down = keyBoard[2][3];
} else if (pls.control == "KEYB4") {
pls.key_Left = keyBoard[3][0];
pls.key_Right = keyBoard[3][1];
pls.key_Up = keyBoard[3][2];
pls.key_Down = keyBoard[3][3];
}
} else {
pls.keyChanged--;
if (pls.control == "KEYB1") {
pls.key_Left = keyBoard[0][1];
pls.key_Right = keyBoard[0][0];
pls.key_Up = keyBoard[0][3];
pls.key_Down = keyBoard[0][2];
} else if (pls.control == "KEYB2") {
pls.key_Left = keyBoard[1][1];
pls.key_Right = keyBoard[1][0];
pls.key_Up = keyBoard[1][3];
pls.key_Down = keyBoard[1][2];
} else if (pls.control == "KEYB3") {
pls.key_Left = keyBoard[2][1];
pls.key_Right = keyBoard[2][0];
pls.key_Up = keyBoard[2][3];
pls.key_Down = keyBoard[2][2];
} else if (pls.control == "KEYB4") {
pls.key_Left = keyBoard[3][1];
pls.key_Right = keyBoard[3][0];
pls.key_Up = keyBoard[3][3];
pls.key_Down = keyBoard[3][2];
}
}
}
if (pathCheck[pls.i][pls.j][1]) {
_local6 = true;
_local3 = pls.i;
_local2 = pls.j;
} else if (pathCheck[check_i][check_j][1]) {
_local6 = true;
_local3 = check_i;
_local2 = check_j;
}
if (_local6) {
bon_snd[0].stop();
bon_snd[0].start();
_local6 = false;
if ((objBox[_local3][_local2]._currentframe == 1) && (pls.fire_len < 15)) {
pls.fire_len = pls.fire_len + 2;
}
if ((objBox[_local3][_local2]._currentframe == 2) && (pls.Bombs < 4)) {
pls.Bombs++;
}
if ((objBox[_local3][_local2]._currentframe == 3) && (pls.detonate > 70)) {
pls.detonate = pls.detonate - 10;
}
if (objBox[_local3][_local2]._currentframe == 4) {
pls.kick = true;
}
if (objBox[_local3][_local2]._currentframe == 5) {
if (pls.speed == 8) {
pls.speed = pls.speed + 2;
}
if (pls.speed == 5) {
pls.speed = pls.speed + 3;
}
}
if (objBox[_local3][_local2]._currentframe == 6) {
pls.godmode = 250;
}
if (objBox[_local3][_local2]._currentframe == 7) {
var _local4 = Math.floor(Math.random() * pls.others.length) + 0;
gen_snd[3].stop();
gen_snd[3].start();
if (pls.id == "pl1") {
var _local8 = pl1._x;
var _local7 = pl1._y;
if (pls.others[_local4] == "pl2") {
pl1._x = pl2._x;
pl1._y = pl2._y;
pl2._x = _local8;
pl2._y = _local7;
pls.gotDest = false;
pl2s.gotDest = false;
} else if (pls.others[_local4] == "pl3") {
pl1._x = pl3._x;
pl1._y = pl3._y;
pl3._x = _local8;
pl3._y = _local7;
pls.gotDest = false;
pl3s.gotDest = false;
} else if (pls.others[_local4] == "pl4") {
pl1._x = pl4._x;
pl1._y = pl4._y;
pl4._x = _local8;
pl4._y = _local7;
pls.gotDest = false;
pl4s.gotDest = false;
}
} else if (pls.id == "pl2") {
var _local8 = pl2._x;
var _local7 = pl2._y;
if (pls.others[_local4] == "pl1") {
pl2._x = pl1._x;
pl2._y = pl1._y;
pl1._x = _local8;
pl1._y = _local7;
pls.gotDest = false;
pl1s.gotDest = false;
} else if (pls.others[_local4] == "pl3") {
pl2._x = pl3._x;
pl2._y = pl3._y;
pl3._x = _local8;
pl3._y = _local7;
pls.gotDest = false;
pl3s.gotDest = false;
} else if (pls.others[_local4] == "pl4") {
pl2._x = pl4._x;
pl2._y = pl4._y;
pl4._x = _local8;
pl4._y = _local7;
pls.gotDest = false;
pl4s.gotDest = false;
}
} else if (pls.id == "pl3") {
var _local8 = pl3._x;
var _local7 = pl3._y;
if (pls.others[_local4] == "pl1") {
pl3._x = pl1._x;
pl3._y = pl1._y;
pl1._x = _local8;
pl1._y = _local7;
pls.gotDest = false;
pl1s.gotDest = false;
} else if (pls.others[_local4] == "pl2") {
pl3._x = pl2._x;
pl3._y = pl2._y;
pl2._x = _local8;
pl2._y = _local7;
pls.gotDest = false;
pl2s.gotDest = false;
} else if (pls.others[_local4] == "pl4") {
pl3._x = pl4._x;
pl3._y = pl4._y;
pl4._x = _local8;
pl4._y = _local7;
pls.gotDest = false;
pl4s.gotDest = false;
}
} else if (pls.id == "pl4") {
var _local8 = pl4._x;
var _local7 = pl4._y;
if (pls.others[_local4] == "pl1") {
pl4._x = pl1._x;
pl4._y = pl1._y;
pl1._x = _local8;
pl1._y = _local7;
pls.gotDest = false;
pl1s.gotDest = false;
} else if (pls.others[_local4] == "pl2") {
pl4._x = pl2._x;
pl4._y = pl2._y;
pl2._x = _local8;
pl2._y = _local7;
pls.gotDest = false;
pl2s.gotDest = false;
} else if (pls.others[_local4] == "pl3") {
pl4._x = pl3._x;
pl4._y = pl3._y;
pl3._x = _local8;
pl3._y = _local7;
pls.gotDest = false;
pl3s.gotDest = false;
}
}
}
if (objBox[_local3][_local2]._currentframe == 8) {
var _local5 = Math.floor(Math.random() * 2) + 0;
if (_local5 == 0) {
pls.keyChanged = 250;
}
if (_local5 == 1) {
pls.sick = 250;
bon_snd[3].stop();
bon_snd[3].start();
}
}
if (objBox[_local3][_local2]._currentframe == 9) {
var _local5 = Math.floor(Math.random() * 11) + 0;
if ((_local5 == 0) && (pls.fire_len < 15)) {
pls.fire_len = pls.fire_len + 2;
}
if ((_local5 == 1) && (pls.Bombs < 4)) {
pls.Bombs++;
}
if (_local5 == 2) {
pls.kick = true;
}
if (_local5 == 3) {
pls.keyChanged = 250;
}
if (_local5 == 4) {
if (pls.speed == 8) {
pls.speed = pls.speed + 2;
}
if (pls.speed == 5) {
pls.speed = pls.speed + 3;
}
}
if (_local5 == 5) {
pls.godmode = 250;
}
if (_local5 == 6) {
pls.sick = 250;
bon_snd[3].stop();
bon_snd[3].start();
}
if ((_local5 == 7) && (pls.detonate > 70)) {
pls.detonate = pls.detonate - 10;
}
if (_local5 == 8) {
var _local4 = Math.floor(Math.random() * pls.others.length) + 0;
gen_snd[3].stop();
gen_snd[3].start();
if (pls.id == "pl1") {
var _local8 = pl1._x;
var _local7 = pl1._y;
if (pls.others[_local4] == "pl2") {
pl1._x = pl2._x;
pl1._y = pl2._y;
pl2._x = _local8;
pl2._y = _local7;
pls.gotDest = false;
pl2s.gotDest = false;
} else if (pls.others[_local4] == "pl3") {
pl1._x = pl3._x;
pl1._y = pl3._y;
pl3._x = _local8;
pl3._y = _local7;
pls.gotDest = false;
pl3s.gotDest = false;
} else if (pls.others[_local4] == "pl4") {
pl1._x = pl4._x;
pl1._y = pl4._y;
pl4._x = _local8;
pl4._y = _local7;
pls.gotDest = false;
pl4s.gotDest = false;
}
} else if (pls.id == "pl2") {
var _local8 = pl2._x;
var _local7 = pl2._y;
if (pls.others[_local4] == "pl1") {
pl2._x = pl1._x;
pl2._y = pl1._y;
pl1._x = _local8;
pl1._y = _local7;
pls.gotDest = false;
pl1s.gotDest = false;
} else if (pls.others[_local4] == "pl3") {
pl2._x = pl3._x;
pl2._y = pl3._y;
pl3._x = _local8;
pl3._y = _local7;
pls.gotDest = false;
pl3s.gotDest = false;
} else if (pls.others[_local4] == "pl4") {
pl2._x = pl4._x;
pl2._y = pl4._y;
pl4._x = _local8;
pl4._y = _local7;
pls.gotDest = false;
pl4s.gotDest = false;
}
} else if (pls.id == "pl3") {
var _local8 = pl3._x;
var _local7 = pl3._y;
if (pls.others[_local4] == "pl1") {
pl3._x = pl1._x;
pl3._y = pl1._y;
pl1._x = _local8;
pl1._y = _local7;
pls.gotDest = false;
pl1s.gotDest = false;
} else if (pls.others[_local4] == "pl2") {
pl3._x = pl2._x;
pl3._y = pl2._y;
pl2._x = _local8;
pl2._y = _local7;
pls.gotDest = false;
pl2s.gotDest = false;
} else if (pls.others[_local4] == "pl4") {
pl3._x = pl4._x;
pl3._y = pl4._y;
pl4._x = _local8;
pl4._y = _local7;
pls.gotDest = false;
pl4s.gotDest = false;
}
} else if (pls.id == "pl4") {
var _local8 = pl4._x;
var _local7 = pl4._y;
if (pls.others[_local4] == "pl1") {
pl4._x = pl1._x;
pl4._y = pl1._y;
pl1._x = _local8;
pl1._y = _local7;
pls.gotDest = false;
pl1s.gotDest = false;
} else if (pls.others[_local4] == "pl2") {
pl4._x = pl2._x;
pl4._y = pl2._y;
pl2._x = _local8;
pl2._y = _local7;
pls.gotDest = false;
pl2s.gotDest = false;
} else if (pls.others[_local4] == "pl3") {
pl4._x = pl3._x;
pl4._y = pl3._y;
pl3._x = _local8;
pl3._y = _local7;
pls.gotDest = false;
pl3s.gotDest = false;
}
}
}
if (_local5 == 9) {
bon_snd[2].stop();
bon_snd[2].start();
pls.speed = 5;
pls.Bombs = 1;
pls.detonate = 100;
pls.fire_len = 2;
pls.kick = false;
pls.godmode = 0;
pls.keyChanged = 0;
if (pls.control == "KEYB1") {
pls.key_Left = keyBoard[0][0];
pls.key_Right = keyBoard[0][1];
pls.key_Up = keyBoard[0][2];
pls.key_Down = keyBoard[0][3];
} else if (pls.control == "KEYB2") {
pls.key_Left = keyBoard[1][0];
pls.key_Right = keyBoard[1][1];
pls.key_Up = keyBoard[1][2];
pls.key_Down = keyBoard[1][3];
} else if (pls.control == "KEYB3") {
pls.key_Left = keyBoard[2][0];
pls.key_Right = keyBoard[2][1];
pls.key_Up = keyBoard[2][2];
pls.key_Down = keyBoard[2][3];
} else if (pls.control == "KEYB4") {
pls.key_Left = keyBoard[3][0];
pls.key_Right = keyBoard[3][1];
pls.key_Up = keyBoard[3][2];
pls.key_Down = keyBoard[3][3];
}
}
if (_local5 == 10) {
bon_snd[1].stop();
bon_snd[1].start();
pls.speed = 10;
pls.Bombs = 4;
pls.detonate = 70;
pls.fire_len = 16;
pls.kick = true;
pls.godmode = 250;
}
}
objBox[_local3][_local2].removeMovieClip();
objBox[_local3][_local2] = undefined;
pathCheck[_local3][_local2][1] = 0;
}
}
function Specials() {
if (game.Level == 3) {
if (!place_special) {
place_special = 100;
var _local2 = Math.floor(Math.random() * 15);
var _local3 = Math.floor(Math.random() * 11);
var _local4 = false;
if (pl1 != undefined) {
var _local17 = Math.floor((pl1._x - x_min) / brick_dim);
var _local13 = Math.floor((pl1._y - y_min) / brick_dim);
var _local29 = (pl1._x - x_min) % brick_dim;
var _local28 = (pl1._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local21 = _local17 + 1;
} else {
var _local21 = _local17;
}
if (_local28 > 0) {
var _local18 = _local13 + 1;
} else {
var _local18 = _local13;
}
}
if (pl2 != undefined) {
var _local16 = Math.floor((pl2._x - x_min) / brick_dim);
var _local12 = Math.floor((pl2._y - y_min) / brick_dim);
var _local29 = (pl2._x - x_min) % brick_dim;
var _local28 = (pl2._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local19 = _local16 + 1;
} else {
var _local19 = _local16;
}
if (_local28 > 0) {
var _local24 = _local12 + 1;
} else {
var _local24 = _local12;
}
}
if (pl3 != undefined) {
var _local15 = Math.floor((pl3._x - x_min) / brick_dim);
var _local11 = Math.floor((pl3._y - y_min) / brick_dim);
var _local29 = (pl3._x - x_min) % brick_dim;
var _local28 = (pl3._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local20 = _local15 + 1;
} else {
var _local20 = _local15;
}
if (_local28 > 0) {
var _local25 = _local11 + 1;
} else {
var _local25 = _local11;
}
}
if (pl4 != undefined) {
var _local14 = Math.floor((pl4._x - x_min) / brick_dim);
var _local10 = Math.floor((pl4._y - y_min) / brick_dim);
var _local29 = (pl4._x - x_min) % brick_dim;
var _local28 = (pl4._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local23 = _local14 + 1;
} else {
var _local23 = _local14;
}
if (_local28 > 0) {
var _local22 = _local10 + 1;
} else {
var _local22 = _local10;
}
}
if (((pathCheck[_local2][_local3][0] == 0) && (pathCheck[_local2][_local3][3] == 0)) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
pathCheck[_local2][_local3][0] = 1;
var _local9 = _root.attachMovie("brick", ("brick_" + _local2) + _local3, nextBrickDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local9.gotoAndStop(game.Level + 1);
objBox[_local2][_local3] = _local9;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
gen_snd[2].stop();
gen_snd[2].start();
}
}
if (!_local4) {
if (_local2 > 7) {
while (_local2 > 0) {
_local2--;
if (((pathCheck[_local2][_local3][0] == 0) && (pathCheck[_local2][_local3][3] == 0)) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
pathCheck[_local2][_local3][0] = 1;
var _local9 = _root.attachMovie("brick", ("brick_" + _local2) + _local3, nextBrickDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local9.gotoAndStop(game.Level + 1);
objBox[_local2][_local3] = _local9;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
gen_snd[2].stop();
gen_snd[2].start();
break;
}
}
}
} else {
while (_local2 < 14) {
_local2++;
if (((pathCheck[_local2][_local3][0] == 0) && (pathCheck[_local2][_local3][3] == 0)) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
pathCheck[_local2][_local3][0] = 1;
var _local9 = _root.attachMovie("brick", ("brick_" + _local2) + _local3, nextBrickDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local9.gotoAndStop(game.Level + 1);
objBox[_local2][_local3] = _local9;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
gen_snd[2].stop();
gen_snd[2].start();
break;
}
}
}
}
}
} else if (place_special > 0) {
place_special--;
}
}
if (game.Level == 4) {
if (!place_special) {
place_special = 200;
gen_snd[5].stop();
gen_snd[5].start();
var _local2 = Math.floor(Math.random() * 15);
var _local3 = Math.floor(Math.random() * 11);
var _local4 = false;
if (pl1 != undefined) {
var _local17 = Math.floor((pl1._x - x_min) / brick_dim);
var _local13 = Math.floor((pl1._y - y_min) / brick_dim);
var _local29 = (pl1._x - x_min) % brick_dim;
var _local28 = (pl1._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local21 = _local17 + 1;
} else {
var _local21 = _local17;
}
if (_local28 > 0) {
var _local18 = _local13 + 1;
} else {
var _local18 = _local13;
}
}
if (pl2 != undefined) {
var _local16 = Math.floor((pl2._x - x_min) / brick_dim);
var _local12 = Math.floor((pl2._y - y_min) / brick_dim);
var _local29 = (pl2._x - x_min) % brick_dim;
var _local28 = (pl2._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local19 = _local16 + 1;
} else {
var _local19 = _local16;
}
if (_local28 > 0) {
var _local24 = _local12 + 1;
} else {
var _local24 = _local12;
}
}
if (pl3 != undefined) {
var _local15 = Math.floor((pl3._x - x_min) / brick_dim);
var _local11 = Math.floor((pl3._y - y_min) / brick_dim);
var _local29 = (pl3._x - x_min) % brick_dim;
var _local28 = (pl3._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local20 = _local15 + 1;
} else {
var _local20 = _local15;
}
if (_local28 > 0) {
var _local25 = _local11 + 1;
} else {
var _local25 = _local11;
}
}
if (pl4 != undefined) {
var _local14 = Math.floor((pl4._x - x_min) / brick_dim);
var _local10 = Math.floor((pl4._y - y_min) / brick_dim);
var _local29 = (pl4._x - x_min) % brick_dim;
var _local28 = (pl4._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local23 = _local14 + 1;
} else {
var _local23 = _local14;
}
if (_local28 > 0) {
var _local22 = _local10 + 1;
} else {
var _local22 = _local10;
}
}
if (((pathCheck[_local2][_local3][0] == 0) && (pathCheck[_local2][_local3][3] == 0)) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
pathCheck[_local2][_local3][0] = 1;
var _local9 = _root.attachMovie("brick", ("brick_" + _local2) + _local3, nextBrickDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local9.gotoAndStop(game.Level + 1);
objBox[_local2][_local3] = _local9;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
}
}
if (!_local4) {
if (_local2 > 7) {
while (_local2 > 0) {
_local2--;
if (((pathCheck[_local2][_local3][0] == 0) && (pathCheck[_local2][_local3][3] == 0)) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
pathCheck[_local2][_local3][0] = 1;
var _local9 = _root.attachMovie("brick", ("brick_" + _local2) + _local3, nextBrickDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local9.gotoAndStop(game.Level + 1);
objBox[_local2][_local3] = _local9;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
break;
}
}
}
} else {
while (_local2 < 14) {
_local2++;
if (((pathCheck[_local2][_local3][0] == 0) && (pathCheck[_local2][_local3][3] == 0)) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
pathCheck[_local2][_local3][0] = 1;
var _local9 = _root.attachMovie("brick", ("brick_" + _local2) + _local3, nextBrickDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local9.gotoAndStop(game.Level + 1);
objBox[_local2][_local3] = _local9;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
break;
}
}
}
}
}
var _local5 = Math.floor(Math.random() * 15);
var _local6 = Math.floor(Math.random() * 11);
if (((pathCheck[_local5][_local6][0] == 1) && (pathCheck[_local5][_local6][3] == 0)) && (bFire[_local5][_local6].length == 0)) {
if (objBox[_local5][_local6] != undefined) {
objBox[_local5][_local6].removeMovieClip();
objBox[_local5][_local6] = undefined;
}
pathCheck[_local5][_local6][0] = 0;
} else if (_local5 > 7) {
while (_local5 > 0) {
_local5--;
if (((pathCheck[_local5][_local6][0] == 1) && (pathCheck[_local5][_local6][3] == 0)) && (bFire[_local5][_local6].length == 0)) {
if (objBox[_local5][_local6] != undefined) {
objBox[_local5][_local6].removeMovieClip();
objBox[_local5][_local6] = undefined;
}
pathCheck[_local5][_local6][0] = 0;
break;
}
}
} else {
while (_local5 < 14) {
_local5++;
if (((pathCheck[_local5][_local6][0] == 1) && (pathCheck[_local5][_local6][3] == 0)) && (bFire[_local5][_local6].length == 0)) {
if (objBox[_local5][_local6] != undefined) {
objBox[_local5][_local6].removeMovieClip();
objBox[_local5][_local6] = undefined;
}
pathCheck[_local5][_local6][0] = 0;
break;
}
}
}
} else if (place_special > 0) {
place_special--;
}
}
if (game.Level == 5) {
var _local7 = 0;
while (_local7 < inferno.length) {
if (inferno[_local7]._currentframe == inferno[_local7]._totalframes) {
specials[inferno[_local7].i][inferno[_local7].j][1] = 0;
inferno[_local7].removeMovieClip();
inferno.splice(_local7, 1);
gen_snd[4].stop();
}
_local7++;
}
if (!place_special) {
place_special = 200;
var _local2 = Math.floor(Math.random() * 15);
var _local3 = Math.floor(Math.random() * 11);
var _local4 = false;
if (pl1 != undefined) {
var _local17 = Math.floor((pl1._x - x_min) / brick_dim);
var _local13 = Math.floor((pl1._y - y_min) / brick_dim);
var _local29 = (pl1._x - x_min) % brick_dim;
var _local28 = (pl1._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local21 = _local17 + 1;
} else {
var _local21 = _local17;
}
if (_local28 > 0) {
var _local18 = _local13 + 1;
} else {
var _local18 = _local13;
}
}
if (pl2 != undefined) {
var _local16 = Math.floor((pl2._x - x_min) / brick_dim);
var _local12 = Math.floor((pl2._y - y_min) / brick_dim);
var _local29 = (pl2._x - x_min) % brick_dim;
var _local28 = (pl2._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local19 = _local16 + 1;
} else {
var _local19 = _local16;
}
if (_local28 > 0) {
var _local24 = _local12 + 1;
} else {
var _local24 = _local12;
}
}
if (pl3 != undefined) {
var _local15 = Math.floor((pl3._x - x_min) / brick_dim);
var _local11 = Math.floor((pl3._y - y_min) / brick_dim);
var _local29 = (pl3._x - x_min) % brick_dim;
var _local28 = (pl3._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local20 = _local15 + 1;
} else {
var _local20 = _local15;
}
if (_local28 > 0) {
var _local25 = _local11 + 1;
} else {
var _local25 = _local11;
}
}
if (pl4 != undefined) {
var _local14 = Math.floor((pl4._x - x_min) / brick_dim);
var _local10 = Math.floor((pl4._y - y_min) / brick_dim);
var _local29 = (pl4._x - x_min) % brick_dim;
var _local28 = (pl4._y - y_min) % brick_dim;
if (_local29 > 0) {
var _local23 = _local14 + 1;
} else {
var _local23 = _local14;
}
if (_local28 > 0) {
var _local22 = _local10 + 1;
} else {
var _local22 = _local10;
}
}
if ((pathCheck[_local2][_local3][0] == 0) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
var _local8 = _root.attachMovie("tuz", ("inferno_" + _local2) + _local3, nextInfDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local8.i = _local2;
_local8.j = _local3;
specials[_local2][_local3][1] = 1;
inferno.push(_local8);
if (nextInfDepth < 1990) {
nextInfDepth++;
} else {
nextInfDepth = 1970;
}
gen_snd[4].stop();
gen_snd[4].start(0, 3);
}
}
if (!_local4) {
if (_local2 > 7) {
while (_local2 > 0) {
_local2--;
if ((pathCheck[_local2][_local3][0] == 0) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
var _local8 = _root.attachMovie("tuz", ("inferno_" + _local2) + _local3, nextInfDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local8.i = _local2;
_local8.j = _local3;
specials[_local2][_local3][1] = 1;
inferno.push(_local8);
if (nextInfDepth < 1990) {
nextInfDepth++;
} else {
nextInfDepth = 1970;
}
gen_snd[4].stop();
gen_snd[4].start(0, 3);
break;
}
}
}
} else {
while (_local2 < 14) {
_local2++;
if ((pathCheck[_local2][_local3][0] == 0) && (bFire[_local2][_local3].length == 0)) {
_local4 = true;
if (pl1 != undefined) {
if ((_local2 == _local17) && (_local3 == _local13)) {
_local4 = false;
}
if ((_local2 == _local21) && (_local3 == _local18)) {
_local4 = false;
}
}
if ((pl2 != undefined) && (_local4)) {
if ((_local2 == _local16) && (_local3 == _local12)) {
_local4 = false;
}
if ((_local2 == _local19) && (_local3 == _local24)) {
_local4 = false;
}
}
if ((pl3 != undefined) && (_local4)) {
if ((_local2 == _local15) && (_local3 == _local11)) {
_local4 = false;
}
if ((_local2 == _local20) && (_local3 == _local25)) {
_local4 = false;
}
}
if ((pl4 != undefined) && (_local4)) {
if ((_local2 == _local14) && (_local3 == _local10)) {
_local4 = false;
}
if ((_local2 == _local23) && (_local3 == _local22)) {
_local4 = false;
}
}
if (_local4) {
if (objBox[_local2][_local3] != undefined) {
objBox[_local2][_local3].removeMovieClip();
objBox[_local2][_local3] = undefined;
}
var _local8 = _root.attachMovie("tuz", ("inferno_" + _local2) + _local3, nextInfDepth, {_x:x_min + (_local2 * brick_dim), _y:y_min + (_local3 * brick_dim)});
_local8.i = _local2;
_local8.j = _local3;
specials[_local2][_local3][1] = 1;
inferno.push(_local8);
if (nextInfDepth < 1990) {
nextInfDepth++;
} else {
nextInfDepth = 1970;
}
gen_snd[4].stop();
gen_snd[4].start(0, 3);
break;
}
}
}
}
}
} else if (place_special > 0) {
place_special--;
}
}
}
function staticTeleport(pls, ref_x, ref_y) {
if (game.Level == 6) {
if (pls.teleported) {
if ((ref_x != 0) || (ref_y != 0)) {
pls.teleported = false;
}
}
if ((((ref_x == 0) && (ref_y == 0)) && (specials[pls.i][pls.j][2])) && (!pls.teleported)) {
gen_snd[3].stop();
gen_snd[3].start();
pls.teleported = true;
if (pls.id == "pl1") {
if ((pls.i == 2) && (pls.j == 2)) {
pl1._x = x_min + (2 * brick_dim);
pl1._y = y_min + (8 * brick_dim);
} else if ((pls.i == 2) && (pls.j == 8)) {
pl1._x = x_min + (12 * brick_dim);
pl1._y = y_min + (8 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 8)) {
pl1._x = x_min + (12 * brick_dim);
pl1._y = y_min + (2 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 2)) {
pl1._x = x_min + (2 * brick_dim);
pl1._y = y_min + (2 * brick_dim);
}
pls.gotDest = false;
} else if (pls.id == "pl2") {
if ((pls.i == 2) && (pls.j == 2)) {
pl2._x = x_min + (2 * brick_dim);
pl2._y = y_min + (8 * brick_dim);
} else if ((pls.i == 2) && (pls.j == 8)) {
pl2._x = x_min + (12 * brick_dim);
pl2._y = y_min + (8 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 8)) {
pl2._x = x_min + (12 * brick_dim);
pl2._y = y_min + (2 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 2)) {
pl2._x = x_min + (2 * brick_dim);
pl2._y = y_min + (2 * brick_dim);
}
pls.gotDest = false;
} else if (pls.id == "pl3") {
if ((pls.i == 2) && (pls.j == 2)) {
pl3._x = x_min + (2 * brick_dim);
pl3._y = y_min + (8 * brick_dim);
} else if ((pls.i == 2) && (pls.j == 8)) {
pl3._x = x_min + (12 * brick_dim);
pl3._y = y_min + (8 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 8)) {
pl3._x = x_min + (12 * brick_dim);
pl3._y = y_min + (2 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 2)) {
pl3._x = x_min + (2 * brick_dim);
pl3._y = y_min + (2 * brick_dim);
}
pls.gotDest = false;
} else if (pls.id == "pl4") {
if ((pls.i == 2) && (pls.j == 2)) {
pl4._x = x_min + (2 * brick_dim);
pl4._y = y_min + (8 * brick_dim);
} else if ((pls.i == 2) && (pls.j == 8)) {
pl4._x = x_min + (12 * brick_dim);
pl4._y = y_min + (8 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 8)) {
pl4._x = x_min + (12 * brick_dim);
pl4._y = y_min + (2 * brick_dim);
} else if ((pls.i == 12) && (pls.j == 2)) {
pl4._x = x_min + (2 * brick_dim);
pl4._y = y_min + (2 * brick_dim);
}
pls.gotDest = false;
}
}
}
}
function WallBuild() {
if (time == 1) {
pathCheck[wall_i][wall_j][4] = 1;
pathCheck[wall_i + 1][wall_j][4] = 2;
pathCheck[wall_i + 2][wall_j][4] = 3;
}
if (((!time) && (!wallBuilt)) && (playersAlive > 1)) {
if (buildWall == 20) {
buildWall = 0;
if (wall_count == 0) {
if (wall_i <= wall_i_max) {
if (objBox[wall_i][wall_j] != undefined) {
objBox[wall_i][wall_j].removeMovieClip();
objBox[wall_i][wall_j] = undefined;
}
if (specials[wall_i][wall_j][1]) {
var _local2 = 0;
while (_local2 < inferno.length) {
if ((inferno[_local2].i == wall_i) && (inferno[_local2].j == wall_j)) {
specials[inferno[_local2].i][inferno[_local2].j][1] = 0;
inferno[_local2].removeMovieClip();
inferno.splice(_local2, 1);
gen_snd[4].stop();
}
_local2++;
}
}
pathCheck[wall_i][wall_j][0] = 2;
if ((wall_i + 1) <= wall_i_max) {
pathCheck[wall_i + 1][wall_j][4] = 1;
}
if ((wall_i + 2) <= wall_i_max) {
pathCheck[wall_i + 2][wall_j][4] = 2;
}
if ((wall_i + 3) <= wall_i_max) {
pathCheck[wall_i + 3][wall_j][4] = 3;
}
var _local3 = _root.attachMovie("conc", ("wall" + wall_i) + wall_j, nextBrickDepth, {_x:x_min + (wall_i * brick_dim), _y:y_min + (wall_j * brick_dim)});
_local3.gotoAndStop(game.Level + 1);
objBox[wall_i][wall_j] = _local3;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
wall_i++;
if (wall_i == wall_i_max) {
wall_count++;
wall_j_min++;
}
if ((wall_i == 9) && (wall_j == 5)) {
wallBuilt = true;
}
}
} else if (wall_count == 1) {
if (wall_j <= wall_j_max) {
if (objBox[wall_i][wall_j] != undefined) {
objBox[wall_i][wall_j].removeMovieClip();
objBox[wall_i][wall_j] = undefined;
}
if (specials[wall_i][wall_j][1]) {
var _local2 = 0;
while (_local2 < inferno.length) {
if ((inferno[_local2].i == wall_i) && (inferno[_local2].j == wall_j)) {
specials[inferno[_local2].i][inferno[_local2].j][1] = 0;
inferno[_local2].removeMovieClip();
inferno.splice(_local2, 1);
gen_snd[4].stop();
}
_local2++;
}
}
pathCheck[wall_i][wall_j][0] = 2;
if ((wall_j + 1) <= wall_j_max) {
pathCheck[wall_i][wall_j + 1][4] = 1;
}
if ((wall_j + 2) <= wall_j_max) {
pathCheck[wall_i][wall_j + 2][4] = 2;
}
if ((wall_j + 3) <= wall_j_max) {
pathCheck[wall_i][wall_j + 3][4] = 3;
}
var _local3 = _root.attachMovie("conc", ("wall" + wall_i) + wall_j, nextBrickDepth, {_x:x_min + (wall_i * brick_dim), _y:y_min + (wall_j * brick_dim)});
_local3.gotoAndStop(game.Level + 1);
objBox[wall_i][wall_j] = _local3;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
wall_j++;
if (wall_j == wall_j_max) {
wall_count++;
wall_i_max--;
}
if ((wall_i == 9) && (wall_j == 5)) {
wallBuilt = true;
}
}
} else if (wall_count == 2) {
if (wall_i >= wall_i_min) {
if (objBox[wall_i][wall_j] != undefined) {
objBox[wall_i][wall_j].removeMovieClip();
objBox[wall_i][wall_j] = undefined;
}
if (specials[wall_i][wall_j][1]) {
var _local2 = 0;
while (_local2 < inferno.length) {
if ((inferno[_local2].i == wall_i) && (inferno[_local2].j == wall_j)) {
specials[inferno[_local2].i][inferno[_local2].j][1] = 0;
inferno[_local2].removeMovieClip();
inferno.splice(_local2, 1);
gen_snd[4].stop();
}
_local2++;
}
}
pathCheck[wall_i][wall_j][0] = 2;
if ((wall_i - 1) >= wall_i_min) {
pathCheck[wall_i - 1][wall_j][4] = 1;
}
if ((wall_i - 2) >= wall_i_min) {
pathCheck[wall_i - 2][wall_j][4] = 2;
}
if ((wall_i - 3) >= wall_i_min) {
pathCheck[wall_i - 3][wall_j][4] = 3;
}
var _local3 = _root.attachMovie("conc", ("wall" + wall_i) + wall_j, nextBrickDepth, {_x:x_min + (wall_i * brick_dim), _y:y_min + (wall_j * brick_dim)});
_local3.gotoAndStop(game.Level + 1);
objBox[wall_i][wall_j] = _local3;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
wall_i--;
if (wall_i == wall_i_min) {
wall_count++;
wall_j_max--;
}
if ((wall_i == 9) && (wall_j == 5)) {
wallBuilt = true;
}
}
} else if (wall_count == 3) {
if (wall_j >= wall_j_min) {
if (objBox[wall_i][wall_j] != undefined) {
objBox[wall_i][wall_j].removeMovieClip();
objBox[wall_i][wall_j] = undefined;
}
if (specials[wall_i][wall_j][1]) {
var _local2 = 0;
while (_local2 < inferno.length) {
if ((inferno[_local2].i == wall_i) && (inferno[_local2].j == wall_j)) {
specials[inferno[_local2].i][inferno[_local2].j][1] = 0;
inferno[_local2].removeMovieClip();
inferno.splice(_local2, 1);
gen_snd[4].stop();
}
_local2++;
}
}
pathCheck[wall_i][wall_j][0] = 2;
if ((wall_j - 1) >= wall_j_min) {
pathCheck[wall_i][wall_j - 1][4] = 1;
}
if ((wall_j - 2) >= wall_j_min) {
pathCheck[wall_i][wall_j - 2][4] = 2;
}
if ((wall_j - 3) >= wall_j_min) {
pathCheck[wall_i][wall_j - 3][4] = 3;
}
var _local3 = _root.attachMovie("conc", ("wall" + wall_i) + wall_j, nextBrickDepth, {_x:x_min + (wall_i * brick_dim), _y:y_min + (wall_j * brick_dim)});
_local3.gotoAndStop(game.Level + 1);
objBox[wall_i][wall_j] = _local3;
if (nextBrickDepth < 1900) {
nextBrickDepth++;
} else {
nextBrickDepth = 1000;
}
wall_j--;
if (wall_j == wall_j_min) {
wall_count = 0;
wall_i_min++;
}
if ((wall_i == 9) && (wall_j == 5)) {
wallBuilt = true;
}
}
}
gen_snd[2].stop();
gen_snd[2].start();
} else {
buildWall++;
}
}
}
function Taunts() {
if ((!shout) && (delay < 100)) {
var _local1 = Math.floor(Math.random() * (taunt.length - 1));
taunt[_local1].start();
shout = 500;
} else if (shout > 0) {
shout--;
}
if ((time == 5) && (first_alarm)) {
first_alarm = false;
hurry[5].start();
}
if ((time == 3) && (first_hurry)) {
first_hurry = false;
var _local1 = Math.floor(Math.random() * (hurry.length - 1));
hurry[_local1].start();
}
}
if (game.randLevels) {
game.Level = Math.floor(Math.random() * 9) + 0;
}
mcLevel.gotoAndStop(game.Level + 1);
var pathCheck = create2DArray(15, 11);
var objBox = create2DArray(15, 11);
var bFire = create2DArray(15, 11);
var specials = create2DArray(15, 11);
var bombBox = new Array();
var fireBox = new Array();
var teleport = new Array();
var inferno = new Array();
var x_min = 35;
var y_min = 65;
var brick_dim = 40;
var repair_max = 39;
var repair_min = 1;
var const = 400;
var delay = 0;
if (game.playerNr == 2) {
if ((game.Level == 7) || (game.Level == 8)) {
var time = 180;
} else {
var time = 120;
}
} else if (game.playerNr == 3) {
if ((game.Level == 7) || (game.Level == 8)) {
var time = 150;
} else {
var time = 90;
}
} else if ((game.Level == 7) || (game.Level == 8)) {
var time = 120;
} else {
var time = 60;
}
var timeRemaining;
var buildWall = 0;
var place_special = 250;
var wall_i = 0;
var wall_j = 0;
var wall_i_min = 0;
var wall_i_max = 14;
var wall_j_min = 0;
var wall_j_max = 10;
var wall_count = 0;
var wallBuilt = false;
var first_hurry = true;
var first_alarm = true;
var firstChoice = true;
var shout = 100;
var playersAlive = game.playerNr;
var screenTime = new String();
var nextBonusDepth = 0;
var nextBombDepth = 500;
var nextBrickDepth = 1000;
var nextInfDepth = 1970;
var nextBombFireDepth = 2000;
var nextFireCoreDepth = 3000;
pl1s.pos = "front_";
pl1s.i = 0;
pl1s.j = 0;
pl1s.kLeft = false;
pl1s.kRight = false;
pl1s.kUp = false;
pl1s.kDown = false;
pl1s.speed = 5;
pl1s.Bombs = 1;
pl1s.detonate = 100;
pl1s.fire_len = 2;
pl1s.kick = false;
pl1s.godmode = 0;
pl1s.keyChanged = 0;
pl1s.sick = 0;
pl1s.dropBomb = 0;
pl1s.teleported = false;
pl1s.others = new Array();
pl1s.gotDest = false;
pl1s.dest_x = undefined;
pl1s.dest_y = undefined;
pl1s.placeBomb = false;
pl1s.escapeBomb = false;
pl1s.goodSpot = false;
pl1s.goDown = false;
pl1s.goUp = false;
pl1s.goLeft = false;
pl1s.goRight = false;
pl1s.stayPut = false;
pl1s.stepsDown = -1;
pl1s.stepsUp = -1;
pl1s.stepsLeft = -1;
pl1s.stepsRight = -1;
pl1s.kickIt = 0;
pl2s.pos = "front_";
pl2s.i = 0;
pl2s.j = 0;
pl2s.kLeft = false;
pl2s.kRight = false;
pl2s.kUp = false;
pl2s.kDown = false;
pl2s.speed = 5;
pl2s.Bombs = 1;
pl2s.detonate = 100;
pl2s.fire_len = 2;
pl2s.kick = false;
pl2s.godmode = 0;
pl2s.keyChanged = 0;
pl2s.sick = 0;
pl2s.dropBomb = 0;
pl2s.teleported = false;
pl2s.others = new Array();
pl2s.gotDest = false;
pl2s.dest_x = undefined;
pl2s.dest_y = undefined;
pl2s.placeBomb = false;
pl2s.escapeBomb = false;
pl2s.goodSpot = false;
pl2s.goDown = false;
pl2s.goUp = false;
pl2s.goLeft = false;
pl2s.goRight = false;
pl2s.stayPut = false;
pl2s.stepsDown = -1;
pl2s.stepsUp = -1;
pl2s.stepsLeft = -1;
pl2s.stepsRight = -1;
pl2s.kickIt = 0;
pl3s.pos = "front_";
pl3s.i = 0;
pl3s.j = 0;
pl3s.kLeft = false;
pl3s.kRight = false;
pl3s.kUp = false;
pl3s.kDown = false;
pl3s.speed = 5;
pl3s.Bombs = 1;
pl3s.detonate = 100;
pl3s.fire_len = 2;
pl3s.kick = false;
pl3s.godmode = 0;
pl3s.keyChanged = 0;
pl3s.sick = 0;
pl3s.dropBomb = 0;
pl3s.teleported = false;
pl3s.others = new Array();
pl3s.gotDest = false;
pl3s.dest_x = undefined;
pl3s.dest_y = undefined;
pl3s.placeBomb = false;
pl3s.escapeBomb = false;
pl3s.goodSpot = false;
pl3s.goDown = false;
pl3s.goUp = false;
pl3s.goLeft = false;
pl3s.goRight = false;
pl3s.stayPut = false;
pl3s.stepsDown = -1;
pl3s.stepsUp = -1;
pl3s.stepsLeft = -1;
pl3s.stepsRight = -1;
pl3s.kickIt = 0;
pl4s.pos = "front_";
pl4s.i = 0;
pl4s.j = 0;
pl4s.kLeft = false;
pl4s.kRight = false;
pl4s.kUp = false;
pl4s.kDown = false;
pl4s.speed = 5;
pl4s.Bombs = 1;
pl4s.detonate = 100;
pl4s.fire_len = 2;
pl4s.kick = false;
pl4s.godmode = 0;
pl4s.keyChanged = 0;
pl4s.sick = 0;
pl4s.dropBomb = 0;
pl4s.teleported = false;
pl4s.others = new Array();
pl4s.gotDest = false;
pl4s.dest_x = undefined;
pl4s.dest_y = undefined;
pl4s.placeBomb = false;
pl4s.escapeBomb = false;
pl4s.goodSpot = false;
pl4s.goDown = false;
pl4s.goUp = false;
pl4s.goLeft = false;
pl4s.goRight = false;
pl4s.stayPut = false;
pl4s.stepsDown = -1;
pl4s.stepsUp = -1;
pl4s.stepsLeft = -1;
pl4s.stepsRight = -1;
pl4s.kickIt = 0;
var plKeyListen = new Object();
plKeyListen.onKeyDown = function () {
if ((Key.getCode() == 80) && (mcChoice._visible == false)) {
game.isPaused = !game.isPaused;
}
if (Key.isDown(27)) {
Key.removeListener(plKeyListen);
game.isPaused = true;
m_pos = 0;
if (pl1 != undefined) {
pl1.removeMovieClip();
}
if (pl2 != undefined) {
pl2.removeMovieClip();
}
if (pl3 != undefined) {
pl3.removeMovieClip();
}
if (pl4 != undefined) {
pl4.removeMovieClip();
}
var _local4 = 0;
while (_local4 < 15) {
var _local2 = 0;
while (_local2 < 11) {
if (objBox[_local4][_local2] != undefined) {
objBox[_local4][_local2].removeMovieClip();
objBox[_local4][_local2] = undefined;
}
_local2++;
}
_local4++;
}
_local4 = 0;
while (_local4 < bombBox.length) {
bombBox[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < fireBox.length) {
var _local3 = 0;
while (_local3 < fireBox[_local4].obj_store.length) {
fireBox[_local4].obj_store[_local3].removeMovieClip();
fireBox[_local4].obj_core[_local3].removeMovieClip();
_local3++;
}
fireBox[_local4].core.removeMovieClip();
fireBox[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < teleport.length) {
teleport[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < inferno.length) {
inferno[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < win.length) {
win[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < draw_g.length) {
draw_g[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < taunt.length) {
taunt[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < dead.length) {
dead[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < hurry.length) {
hurry[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < b_snd.length) {
b_snd[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < bon_snd.length) {
bon_snd[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < gen_snd.length) {
gen_snd[_local4].stop();
_local4++;
}
_root.gotoAndStop("menu");
}
if (Key.getCode() != pl1s.kBomb) {
if (Key.getCode() == pl1s.key_Left) {
pl1s.kLeft = false;
pl1s.kRight = false;
pl1s.kUp = false;
pl1s.kDown = false;
pl1s.kLeft = true;
}
if (Key.getCode() == pl1s.key_Right) {
pl1s.kLeft = false;
pl1s.kRight = false;
pl1s.kUp = false;
pl1s.kDown = false;
pl1s.kRight = true;
}
if (Key.getCode() == pl1s.key_Up) {
pl1s.kLeft = false;
pl1s.kRight = false;
pl1s.kUp = false;
pl1s.kDown = false;
pl1s.kUp = true;
}
if (Key.getCode() == pl1s.key_Down) {
pl1s.kLeft = false;
pl1s.kRight = false;
pl1s.kUp = false;
pl1s.kDown = false;
pl1s.kDown = true;
}
}
if (Key.getCode() != pl2s.kBomb) {
if (Key.getCode() == pl2s.key_Left) {
pl2s.kLeft = false;
pl2s.kRight = false;
pl2s.kUp = false;
pl2s.kDown = false;
pl2s.kLeft = true;
}
if (Key.getCode() == pl2s.key_Right) {
pl2s.kLeft = false;
pl2s.kRight = false;
pl2s.kUp = false;
pl2s.kDown = false;
pl2s.kRight = true;
}
if (Key.getCode() == pl2s.key_Up) {
pl2s.kLeft = false;
pl2s.kRight = false;
pl2s.kUp = false;
pl2s.kDown = false;
pl2s.kUp = true;
}
if (Key.getCode() == pl2s.key_Down) {
pl2s.kLeft = false;
pl2s.kRight = false;
pl2s.kUp = false;
pl2s.kDown = false;
pl2s.kDown = true;
}
}
if (Key.getCode() != pl3s.kBomb) {
if (Key.getCode() == pl3s.key_Left) {
pl3s.kLeft = false;
pl3s.kRight = false;
pl3s.kUp = false;
pl3s.kDown = false;
pl3s.kLeft = true;
}
if (Key.getCode() == pl3s.key_Right) {
pl3s.kLeft = false;
pl3s.kRight = false;
pl3s.kUp = false;
pl3s.kDown = false;
pl3s.kRight = true;
}
if (Key.getCode() == pl3s.key_Up) {
pl3s.kLeft = false;
pl3s.kRight = false;
pl3s.kUp = false;
pl3s.kDown = false;
pl3s.kUp = true;
}
if (Key.getCode() == pl3s.key_Down) {
pl3s.kLeft = false;
pl3s.kRight = false;
pl3s.kUp = false;
pl3s.kDown = false;
pl3s.kDown = true;
}
}
if (Key.getCode() != pl4s.kBomb) {
if (Key.getCode() == pl4s.key_Left) {
pl4s.kLeft = false;
pl4s.kRight = false;
pl4s.kUp = false;
pl4s.kDown = false;
pl4s.kLeft = true;
}
if (Key.getCode() == pl4s.key_Right) {
pl4s.kLeft = false;
pl4s.kRight = false;
pl4s.kUp = false;
pl4s.kDown = false;
pl4s.kRight = true;
}
if (Key.getCode() == pl4s.key_Up) {
pl4s.kLeft = false;
pl4s.kRight = false;
pl4s.kUp = false;
pl4s.kDown = false;
pl4s.kUp = true;
}
if (Key.getCode() == pl4s.key_Down) {
pl4s.kLeft = false;
pl4s.kRight = false;
pl4s.kUp = false;
pl4s.kDown = false;
pl4s.kDown = true;
}
}
};
plKeyListen.onKeyUp = function () {
if (Key.getCode() == pl1s.key_Left) {
pl1s.kLeft = false;
}
if (Key.getCode() == pl1s.key_Right) {
pl1s.kRight = false;
}
if (Key.getCode() == pl1s.key_Up) {
pl1s.kUp = false;
}
if (Key.getCode() == pl1s.key_Down) {
pl1s.kDown = false;
}
if (Key.getCode() == pl2s.key_Left) {
pl2s.kLeft = false;
}
if (Key.getCode() == pl2s.key_Right) {
pl2s.kRight = false;
}
if (Key.getCode() == pl2s.key_Up) {
pl2s.kUp = false;
}
if (Key.getCode() == pl2s.key_Down) {
pl2s.kDown = false;
}
if (Key.getCode() == pl3s.key_Left) {
pl3s.kLeft = false;
}
if (Key.getCode() == pl3s.key_Right) {
pl3s.kRight = false;
}
if (Key.getCode() == pl3s.key_Up) {
pl3s.kUp = false;
}
if (Key.getCode() == pl3s.key_Down) {
pl3s.kDown = false;
}
if (Key.getCode() == pl4s.key_Left) {
pl4s.kLeft = false;
}
if (Key.getCode() == pl4s.key_Right) {
pl4s.kRight = false;
}
if (Key.getCode() == pl4s.key_Up) {
pl4s.kUp = false;
}
if (Key.getCode() == pl4s.key_Down) {
pl4s.kDown = false;
}
};
Key.addListener(plKeyListen);
init();
stop();
mcLevel.mcText.onRelease = function () {
gen_snd[1].start();
getURL ("http://www.MoFunZone.com/", "_blank");
};
mcChoice.butLet.onRelease = function () {
gen_snd[1].start();
game.isPaused = false;
mcChoice._visible = false;
};
mcChoice.butRoll.onRelease = function () {
gen_snd[1].start();
var _local5 = new Array();
if (pl1 != undefined) {
_local5.push("pl1");
pl1.removeMovieClip();
}
if (pl2 != undefined) {
_local5.push("pl2");
pl2.removeMovieClip();
}
if (pl3 != undefined) {
_local5.push("pl3");
pl3.removeMovieClip();
}
if (pl4 != undefined) {
_local5.push("pl4");
pl4.removeMovieClip();
}
_local5.push("draw");
var _local6 = Math.floor(Math.random() * _local5.length);
var _local4 = 0;
while (_local4 < 15) {
var _local2 = 0;
while (_local2 < 11) {
if (objBox[_local4][_local2] != undefined) {
objBox[_local4][_local2].removeMovieClip();
objBox[_local4][_local2] = undefined;
}
_local2++;
}
_local4++;
}
_local4 = 0;
while (_local4 < bombBox.length) {
bombBox[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < fireBox.length) {
var _local3 = 0;
while (_local3 < fireBox[_local4].obj_store.length) {
fireBox[_local4].obj_store[_local3].removeMovieClip();
fireBox[_local4].obj_core[_local3].removeMovieClip();
_local3++;
}
fireBox[_local4].core.removeMovieClip();
fireBox[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < teleport.length) {
teleport[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < inferno.length) {
inferno[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < win.length) {
win[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < draw_g.length) {
draw_g[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < taunt.length) {
taunt[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < dead.length) {
dead[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < hurry.length) {
hurry[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < b_snd.length) {
b_snd[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < bon_snd.length) {
bon_snd[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < gen_snd.length) {
gen_snd[_local4].stop();
_local4++;
}
mcChoice._visible = false;
if (_local5[_local6] == "pl1") {
pl1s.score++;
buildScores(pl1s);
game.winner = 1;
if (game.wins == pl1s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
if (_local5[_local6] == "pl2") {
pl2s.score++;
buildScores(pl2s);
game.winner = 2;
if (game.wins == pl2s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
if (_local5[_local6] == "pl3") {
pl3s.score++;
buildScores(pl3s);
game.winner = 3;
if (game.wins == pl3s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
if (_local5[_local6] == "pl4") {
pl4s.score++;
buildScores(pl4s);
game.winner = 4;
if (game.wins == pl4s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
if (_local5[_local6] == "draw") {
game.winner = 0;
_root.gotoAndStop(24);
}
};
onEnterFrame = function () {
if (!game.isPaused) {
screenTime = dispTime(time);
Taunts();
WallBuild();
Specials();
var _local5 = false;
if (pl1 != undefined) {
if (pl1s.control == "COMP") {
playerAI(pl1, pl1s);
} else {
_local5 = true;
movePlayers(pl1, pl1s);
}
}
if (pl2 != undefined) {
if (pl2s.control == "COMP") {
playerAI(pl2, pl2s);
} else {
_local5 = true;
movePlayers(pl2, pl2s);
}
}
if (pl3 != undefined) {
if (pl3s.control == "COMP") {
playerAI(pl3, pl3s);
} else {
_local5 = true;
movePlayers(pl3, pl3s);
}
}
if (pl4 != undefined) {
if (pl4s.control == "COMP") {
playerAI(pl4, pl4s);
} else {
_local5 = true;
movePlayers(pl4, pl4s);
}
}
handleBombs();
handleBombFire();
if (playersAlive <= 1) {
if (delay < 50) {
delay++;
} else if (delay >= 125) {
var _local4 = 0;
while (_local4 < 15) {
var _local2 = 0;
while (_local2 < 11) {
if (objBox[_local4][_local2] != undefined) {
objBox[_local4][_local2].removeMovieClip();
objBox[_local4][_local2] = undefined;
}
_local2++;
}
_local4++;
}
_local4 = 0;
while (_local4 < bombBox.length) {
bombBox[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < fireBox.length) {
var _local3 = 0;
while (_local3 < fireBox[_local4].obj_store.length) {
fireBox[_local4].obj_store[_local3].removeMovieClip();
fireBox[_local4].obj_core[_local3].removeMovieClip();
_local3++;
}
fireBox[_local4].core.removeMovieClip();
fireBox[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < teleport.length) {
teleport[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < inferno.length) {
inferno[_local4].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < win.length) {
win[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < draw_g.length) {
draw_g[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < taunt.length) {
taunt[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < dead.length) {
dead[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < hurry.length) {
hurry[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < b_snd.length) {
b_snd[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < bon_snd.length) {
bon_snd[_local4].stop();
_local4++;
}
_local4 = 0;
while (_local4 < gen_snd.length) {
gen_snd[_local4].stop();
_local4++;
}
if (playersAlive > 0) {
if (pl1 != undefined) {
pl1s.score++;
buildScores(pl1s);
pl1.removeMovieClip();
game.winner = 1;
if (game.wins == pl1s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
if (pl2 != undefined) {
pl2s.score++;
buildScores(pl2s);
pl2.removeMovieClip();
game.winner = 2;
if (game.wins == pl2s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
if (pl3 != undefined) {
pl3s.score++;
buildScores(pl3s);
pl3.removeMovieClip();
game.winner = 3;
if (game.wins == pl3s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
if (pl4 != undefined) {
pl4s.score++;
buildScores(pl4s);
pl4.removeMovieClip();
game.winner = 4;
if (game.wins == pl4s.score) {
_root.gotoAndStop(26);
} else {
_root.gotoAndStop(25);
}
}
} else {
game.winner = 0;
_root.gotoAndStop(24);
}
} else {
delay++;
}
}
if (((!_local5) && (firstChoice)) && (playersAlive > 1)) {
mcChoice._visible = true;
firstChoice = false;
game.isPaused = true;
}
}
};
Frame 24
Key.removeListener(plKeyListen);
var snd_rand = Math.floor(Math.random() * draw_g.length);
var m_run = false;
draw_g[snd_rand].start();
stop();
mcReplay.butMore.onRelease = function () {
gen_snd[1].start();
getURL ("http://www.MoFunZone.com/", "_blank");
};
mcReplay.butCont.onRelease = function () {
draw_g[snd_rand].stop();
music[0].stop();
game.isPaused = false;
gen_snd[1].start();
_root.gotoAndStop(23);
};
draw_g[snd_rand].onSoundComplete = function () {
music[0].start();
m_run = true;
};
music[0].onSoundComplete = function () {
music[0].start();
};
onEnterFrame = function () {
if (Key.isDown(27)) {
draw_g[snd_rand].stop();
if (m_run) {
m_pos = music[0].position / 1000;
} else {
m_pos = 0;
}
_root.gotoAndStop("menu");
}
};
Frame 25
Key.removeListener(plKeyListen);
var snd_rand = Math.floor(Math.random() * win.length);
win[snd_rand].start();
var win_y = 15;
var win_depth = 4400;
var m_run = false;
mcWins.gotoAndStop(game.winner);
if (game.pl1 > 0) {
win_fmt.color = 16777215 /* 0xFFFFFF */;
_root.createTextField("win1a", win_depth, 485, win_y, 190, 30);
_root.win1a.selectable = false;
_root.win1a.setNewTextFormat(win_fmt);
if (pl1s.score > 9) {
_root.win1a.text = "Wins: " + pl1s.score.toString();
} else {
_root.win1a.text = "Wins: 0" + pl1s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win1b", win_depth, 485, win_y, 190, 30);
_root.win1b.selectable = false;
_root.win1b.setNewTextFormat(win_fmt);
if (pl1s.kills > 9) {
_root.win1b.text = "Kills: " + pl1s.kills.toString();
} else {
_root.win1b.text = "Kills: 0" + pl1s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
if (game.pl2 > 0) {
win_fmt.color = 0;
_root.createTextField("win2a", win_depth, 485, win_y, 190, 30);
_root.win2a.selectable = false;
_root.win2a.setNewTextFormat(win_fmt);
if (pl2s.score > 9) {
_root.win2a.text = "Wins: " + pl2s.score.toString();
} else {
_root.win2a.text = "Wins: 0" + pl2s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win2b", win_depth, 485, win_y, 190, 30);
_root.win2b.selectable = false;
_root.win2b.setNewTextFormat(win_fmt);
if (pl2s.kills > 9) {
_root.win2b.text = "Kills: " + pl2s.kills.toString();
} else {
_root.win2b.text = "Kills: 0" + pl2s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
if (game.pl3 > 0) {
win_fmt.color = 16776960 /* 0xFFFF00 */;
_root.createTextField("win3a", win_depth, 485, win_y, 190, 30);
_root.win3a.selectable = false;
_root.win3a.setNewTextFormat(win_fmt);
if (pl3s.score > 9) {
_root.win3a.text = "Wins: " + pl3s.score.toString();
} else {
_root.win3a.text = "Wins: 0" + pl3s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win3b", win_depth, 485, win_y, 190, 30);
_root.win3b.selectable = false;
_root.win3b.setNewTextFormat(win_fmt);
if (pl3s.kills > 9) {
_root.win3b.text = "Kills: " + pl3s.kills.toString();
} else {
_root.win3b.text = "Kills: 0" + pl3s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
if (game.pl4 > 0) {
win_fmt.color = 26112;
_root.createTextField("win4a", win_depth, 485, win_y, 190, 30);
_root.win4a.selectable = false;
_root.win4a.setNewTextFormat(win_fmt);
if (pl4s.score > 9) {
_root.win4a.text = "Wins: " + pl4s.score.toString();
} else {
_root.win4a.text = "Wins: 0" + pl4s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win4b", win_depth, 485, win_y, 190, 30);
_root.win4b.selectable = false;
_root.win4b.setNewTextFormat(win_fmt);
if (pl4s.kills > 9) {
_root.win4b.text = "Kills: " + pl4s.kills.toString();
} else {
_root.win4b.text = "Kills: 0" + pl4s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
stop();
mcReplay.butMore.onRelease = function () {
gen_snd[1].start();
getURL ("http://www.MoFunZone.com/", "_blank");
};
mcReplay.butCont.onRelease = function () {
if (game.pl1 > 0) {
win1a.removeTextField();
win1b.removeTextField();
}
if (game.pl2 > 0) {
win2a.removeTextField();
win2b.removeTextField();
}
if (game.pl3 > 0) {
win3a.removeTextField();
win3b.removeTextField();
}
if (game.pl4 > 0) {
win4a.removeTextField();
win4b.removeTextField();
}
win[snd_rand].stop();
music[0].stop();
game.isPaused = false;
gen_snd[1].start();
_root.gotoAndStop(23);
};
win[snd_rand].onSoundComplete = function () {
music[0].start();
m_run = true;
};
music[0].onSoundComplete = function () {
music[0].start();
};
onEnterFrame = function () {
if (Key.isDown(27)) {
if (game.pl1 > 0) {
win1a.removeTextField();
win1b.removeTextField();
}
if (game.pl2 > 0) {
win2a.removeTextField();
win2b.removeTextField();
}
if (game.pl3 > 0) {
win3a.removeTextField();
win3b.removeTextField();
}
if (game.pl4 > 0) {
win4a.removeTextField();
win4b.removeTextField();
}
win[snd_rand].stop();
if (m_run) {
m_pos = music[0].position / 1000;
} else {
m_pos = 0;
}
_root.gotoAndStop("menu");
}
};
Frame 26
Key.removeListener(plKeyListen);
var snd_rand = Math.floor(Math.random() * win.length);
win[snd_rand].start();
var win_y = 15;
var win_depth = 4400;
var m_run = false;
mcWins.gotoAndStop(game.winner);
if (game.pl1 > 0) {
win_fmt.color = 16777215 /* 0xFFFFFF */;
_root.createTextField("win1a", win_depth, 485, win_y, 190, 30);
_root.win1a.selectable = false;
_root.win1a.setNewTextFormat(win_fmt);
if (pl1s.score > 9) {
_root.win1a.text = "Wins: " + pl1s.score.toString();
} else {
_root.win1a.text = "Wins: 0" + pl1s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win1b", win_depth, 485, win_y, 190, 30);
_root.win1b.selectable = false;
_root.win1b.setNewTextFormat(win_fmt);
if (pl1s.kills > 9) {
_root.win1b.text = "Kills: " + pl1s.kills.toString();
} else {
_root.win1b.text = "Kills: 0" + pl1s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
if (game.pl2 > 0) {
win_fmt.color = 0;
_root.createTextField("win2a", win_depth, 485, win_y, 190, 30);
_root.win2a.selectable = false;
_root.win2a.setNewTextFormat(win_fmt);
if (pl2s.score > 9) {
_root.win2a.text = "Wins: " + pl2s.score.toString();
} else {
_root.win2a.text = "Wins: 0" + pl2s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win2b", win_depth, 485, win_y, 190, 30);
_root.win2b.selectable = false;
_root.win2b.setNewTextFormat(win_fmt);
if (pl2s.kills > 9) {
_root.win2b.text = "Kills: " + pl2s.kills.toString();
} else {
_root.win2b.text = "Kills: 0" + pl2s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
if (game.pl3 > 0) {
win_fmt.color = 16776960 /* 0xFFFF00 */;
_root.createTextField("win3a", win_depth, 485, win_y, 190, 30);
_root.win3a.selectable = false;
_root.win3a.setNewTextFormat(win_fmt);
if (pl3s.score > 9) {
_root.win3a.text = "Wins: " + pl3s.score.toString();
} else {
_root.win3a.text = "Wins: 0" + pl3s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win3b", win_depth, 485, win_y, 190, 30);
_root.win3b.selectable = false;
_root.win3b.setNewTextFormat(win_fmt);
if (pl3s.kills > 9) {
_root.win3b.text = "Kills: " + pl3s.kills.toString();
} else {
_root.win3b.text = "Kills: 0" + pl3s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
if (game.pl4 > 0) {
win_fmt.color = 26112;
_root.createTextField("win4a", win_depth, 485, win_y, 190, 30);
_root.win4a.selectable = false;
_root.win4a.setNewTextFormat(win_fmt);
if (pl4s.score > 9) {
_root.win4a.text = "Wins: " + pl4s.score.toString();
} else {
_root.win4a.text = "Wins: 0" + pl4s.score.toString();
}
win_y = win_y + 32;
win_depth++;
_root.createTextField("win4b", win_depth, 485, win_y, 190, 30);
_root.win4b.selectable = false;
_root.win4b.setNewTextFormat(win_fmt);
if (pl4s.kills > 9) {
_root.win4b.text = "Kills: " + pl4s.kills.toString();
} else {
_root.win4b.text = "Kills: 0" + pl4s.kills.toString();
}
win_y = win_y + 32;
win_depth++;
}
stop();
mcReplay.butMore.onRelease = function () {
gen_snd[1].start();
getURL ("http://www.MoFunZone.com/", "_blank");
};
mcReplay.butCont.onRelease = function () {
if (game.pl1 > 0) {
win1a.removeTextField();
win1b.removeTextField();
}
if (game.pl2 > 0) {
win2a.removeTextField();
win2b.removeTextField();
}
if (game.pl3 > 0) {
win3a.removeTextField();
win3b.removeTextField();
}
if (game.pl4 > 0) {
win4a.removeTextField();
win4b.removeTextField();
}
win[snd_rand].stop();
gen_snd[1].start();
if (m_run) {
m_pos = music[0].position / 1000;
} else {
m_pos = 0;
}
_root.gotoAndStop("menu");
};
win[snd_rand].onSoundComplete = function () {
music[0].start();
m_run = true;
};
music[0].onSoundComplete = function () {
music[0].start();
};
onEnterFrame = function () {
if (Key.isDown(27)) {
if (m_run) {
m_pos = music[0].position / 1000;
} else {
m_pos = 0;
}
if (game.pl1 > 0) {
win1a.removeTextField();
win1b.removeTextField();
}
if (game.pl2 > 0) {
win2a.removeTextField();
win2b.removeTextField();
}
if (game.pl3 > 0) {
win3a.removeTextField();
win3b.removeTextField();
}
if (game.pl4 > 0) {
win4a.removeTextField();
win4b.removeTextField();
}
win[snd_rand].stop();
_root.gotoAndStop("menu");
}
};
Symbol 27 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 37 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 69 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - _parent.shiftamt;
}
Symbol 69 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 80 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - this._parent.shiftamt;
}
Symbol 80 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 88 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - _parent.shiftamt;
}
Symbol 88 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 96 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - _parent.shiftamt;
}
Symbol 96 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 104 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - _parent.shiftamt;
}
Symbol 104 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 112 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - _parent.shiftamt;
}
Symbol 112 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 120 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - _parent.shiftamt;
}
Symbol 120 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 128 MovieClip Frame 1
if (Math.random() > 0.5) {
this._xscale = -this._xscale;
this._x = this._x - _parent.shiftamt;
}
Symbol 128 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
var thenextframe = (Math.ceil(Math.random() * 8) + 1);
if (thenextframe == _parent._currentframe) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 135 MovieClip Frame 133
_root.gotoAndStop(7);
Symbol 136 MovieClip Frame 1
stop();
var shiftamt = 17;
var isloaded = false;
this.onEnterFrame = function () {
var _local2 = Math.round(_root.getBytesLoaded());
var _local3 = Math.round(_root.getBytesTotal());
var _local4 = _local2 / _local3;
if (_local2 == _local3) {
isloaded = true;
}
};
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 138 MovieClip [click_back] Frame 1
clip2._alpha = 0;
Symbol 144 MovieClip Frame 1
mcBack._alpha = 0;
Symbol 228 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 253 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 278 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 303 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 335 MovieClip Frame 1
play();
Symbol 335 MovieClip Frame 14
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 1
stop();
hit._alpha = 0;
this.onEnterFrame = function () {
if (!_root.pl1s.godmode) {
this.mcShield._alpha = 0;
} else {
this.mcShield._alpha = 40;
}
};
Symbol 336 MovieClip [mcPlayer1] Frame 2
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 3
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 4
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 5
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 6
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 7
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 8
stop();
Symbol 336 MovieClip [mcPlayer1] Frame 9
stop();
Symbol 361 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 385 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 409 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 433 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 434 MovieClip [bomb] Frame 1
stop();
Symbol 434 MovieClip [bomb] Frame 2
stop();
Symbol 434 MovieClip [bomb] Frame 3
stop();
Symbol 434 MovieClip [bomb] Frame 4
stop();
Symbol 441 MovieClip [mcFire_normal] Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 448 MovieClip [mcFire_end] Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 455 MovieClip [mcFire_middle] Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 503 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 507 MovieClip [mcBonus] Frame 1
stop();
Symbol 507 MovieClip [mcBonus] Frame 2
stop();
Symbol 507 MovieClip [mcBonus] Frame 3
stop();
Symbol 507 MovieClip [mcBonus] Frame 4
stop();
Symbol 507 MovieClip [mcBonus] Frame 5
stop();
Symbol 507 MovieClip [mcBonus] Frame 6
stop();
Symbol 507 MovieClip [mcBonus] Frame 7
stop();
Symbol 507 MovieClip [mcBonus] Frame 8
stop();
Symbol 507 MovieClip [mcBonus] Frame 9
stop();
Symbol 541 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 566 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 591 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 616 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 617 MovieClip [mcPlayer2] Frame 1
stop();
hit._alpha = 0;
this.onEnterFrame = function () {
if (!_root.pl2s.godmode) {
this.mcShield._alpha = 0;
} else {
this.mcShield._alpha = 40;
}
};
Symbol 617 MovieClip [mcPlayer2] Frame 2
stop();
Symbol 617 MovieClip [mcPlayer2] Frame 3
stop();
Symbol 617 MovieClip [mcPlayer2] Frame 4
stop();
Symbol 617 MovieClip [mcPlayer2] Frame 5
stop();
Symbol 617 MovieClip [mcPlayer2] Frame 6
stop();
Symbol 617 MovieClip [mcPlayer2] Frame 7
stop();
Symbol 617 MovieClip [mcPlayer2] Frame 8
stop();
Symbol 617 MovieClip [mcPlayer2] Frame 9
stop();
Symbol 642 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 667 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 692 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 717 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 718 MovieClip [mcPlayer3] Frame 1
stop();
hit._alpha = 0;
this.onEnterFrame = function () {
if (!_root.pl3s.godmode) {
this.mcShield._alpha = 0;
} else {
this.mcShield._alpha = 40;
}
};
Symbol 718 MovieClip [mcPlayer3] Frame 2
stop();
Symbol 718 MovieClip [mcPlayer3] Frame 3
stop();
Symbol 718 MovieClip [mcPlayer3] Frame 4
stop();
Symbol 718 MovieClip [mcPlayer3] Frame 5
stop();
Symbol 718 MovieClip [mcPlayer3] Frame 6
stop();
Symbol 718 MovieClip [mcPlayer3] Frame 7
stop();
Symbol 718 MovieClip [mcPlayer3] Frame 8
stop();
Symbol 718 MovieClip [mcPlayer3] Frame 9
stop();
Symbol 743 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 768 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 793 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 818 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 819 MovieClip [mcPlayer4] Frame 1
stop();
hit._alpha = 0;
this.onEnterFrame = function () {
if (!_root.pl4s.godmode) {
this.mcShield._alpha = 0;
} else {
this.mcShield._alpha = 40;
}
};
Symbol 819 MovieClip [mcPlayer4] Frame 2
stop();
Symbol 819 MovieClip [mcPlayer4] Frame 3
stop();
Symbol 819 MovieClip [mcPlayer4] Frame 4
stop();
Symbol 819 MovieClip [mcPlayer4] Frame 5
stop();
Symbol 819 MovieClip [mcPlayer4] Frame 6
stop();
Symbol 819 MovieClip [mcPlayer4] Frame 7
stop();
Symbol 819 MovieClip [mcPlayer4] Frame 8
stop();
Symbol 819 MovieClip [mcPlayer4] Frame 9
stop();
Symbol 838 MovieClip [brick] Frame 1
stop();
Symbol 838 MovieClip [brick] Frame 2
stop();
Symbol 838 MovieClip [brick] Frame 3
stop();
Symbol 838 MovieClip [brick] Frame 4
stop();
Symbol 838 MovieClip [brick] Frame 5
stop();
Symbol 838 MovieClip [brick] Frame 6
stop();
Symbol 838 MovieClip [brick] Frame 7
stop();
Symbol 838 MovieClip [brick] Frame 8
stop();
Symbol 838 MovieClip [brick] Frame 9
stop();
Symbol 857 MovieClip [conc] Frame 1
stop();
Symbol 857 MovieClip [conc] Frame 2
stop();
Symbol 857 MovieClip [conc] Frame 3
stop();
Symbol 857 MovieClip [conc] Frame 4
stop();
Symbol 857 MovieClip [conc] Frame 5
stop();
Symbol 857 MovieClip [conc] Frame 6
stop();
Symbol 857 MovieClip [conc] Frame 7
stop();
Symbol 857 MovieClip [conc] Frame 8
stop();
Symbol 857 MovieClip [conc] Frame 9
stop();
Symbol 878 MovieClip [teleporter] Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 959 MovieClip [tuz] Frame 1
var burn = 0;
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 959 MovieClip [tuz] Frame 15
burn++;
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 959 MovieClip [tuz] Frame 16
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 959 MovieClip [tuz] Frame 32
if (burn < 8) {
gotoAndPlay (15);
}
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 979 MovieClip Frame 1
play();
Symbol 979 MovieClip Frame 127
stop();
Symbol 984 MovieClip Frame 1
mcBack._alpha = 0;
Symbol 1012 MovieClip Frame 1
stop();
Symbol 1012 MovieClip Frame 2
stop();
Symbol 1012 MovieClip Frame 3
stop();
Symbol 1012 MovieClip Frame 4
stop();
Symbol 1012 MovieClip Frame 5
stop();
Symbol 1012 MovieClip Frame 6
stop();
Symbol 1012 MovieClip Frame 7
stop();
Symbol 1012 MovieClip Frame 8
stop();
Symbol 1012 MovieClip Frame 9
stop();
Symbol 1012 MovieClip Frame 10
stop();
Symbol 1012 MovieClip Frame 11
stop();
Symbol 1017 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 2
stop();
Symbol 1017 MovieClip Frame 3
stop();
Symbol 1022 MovieClip Frame 1
mcBack._alpha = 80;
Symbol 1026 MovieClip Frame 1
stop();
Symbol 1026 MovieClip Frame 2
stop();
Symbol 1026 MovieClip Frame 3
stop();
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 2
stop();
Symbol 1079 MovieClip Frame 3
stop();
Symbol 1080 MovieClip Frame 1
mcBack._alpha = 80;
Symbol 1103 MovieClip Frame 1
mcBack._alpha = 0;
Symbol 1111 MovieClip Frame 1
setBack._alpha = 0;
this.onEnterFrame = function () {
if ((((this._x <= _root._xmouse) && ((this._x + this._width) >= _root._xmouse)) && (this._y <= _root._ymouse)) && ((this._y + this._height) >= _root._ymouse)) {
butUp._visible = true;
butDown._visible = true;
} else {
butUp._visible = false;
butDown._visible = false;
}
};
Symbol 1114 MovieClip Frame 1
setBack._alpha = 0;
this.onEnterFrame = function () {
if ((((this._x <= _root._xmouse) && ((this._x + this._width) >= _root._xmouse)) && (this._y <= _root._ymouse)) && ((this._y + this._height) >= _root._ymouse)) {
butUp._visible = true;
butDown._visible = true;
} else {
butUp._visible = false;
butDown._visible = false;
}
};
Symbol 1117 MovieClip Frame 1
setBack._alpha = 0;
this.onEnterFrame = function () {
if ((((this._x <= _root._xmouse) && ((this._x + this._width) >= _root._xmouse)) && (this._y <= _root._ymouse)) && ((this._y + this._height) >= _root._ymouse)) {
butUp._visible = true;
butDown._visible = true;
} else {
butUp._visible = false;
butDown._visible = false;
}
};
Symbol 1120 MovieClip Frame 1
setBack._alpha = 0;
this.onEnterFrame = function () {
if ((((this._x <= _root._xmouse) && ((this._x + this._width) >= _root._xmouse)) && (this._y <= _root._ymouse)) && ((this._y + this._height) >= _root._ymouse)) {
butUp._visible = true;
butDown._visible = true;
} else {
butUp._visible = false;
butDown._visible = false;
}
};
Symbol 1123 MovieClip Frame 1
setBack._alpha = 0;
this.onEnterFrame = function () {
if ((((this._x <= _root._xmouse) && ((this._x + this._width) >= _root._xmouse)) && (this._y <= _root._ymouse)) && ((this._y + this._height) >= _root._ymouse)) {
butUp._visible = true;
butDown._visible = true;
} else {
butUp._visible = false;
butDown._visible = false;
}
};
Symbol 1126 MovieClip Frame 1
setBack._alpha = 0;
this.onEnterFrame = function () {
if ((((this._x <= _root._xmouse) && ((this._x + this._width) >= _root._xmouse)) && (this._y <= _root._ymouse)) && ((this._y + this._height) >= _root._ymouse)) {
butUp._visible = true;
butDown._visible = true;
} else {
butUp._visible = false;
butDown._visible = false;
}
};
Symbol 1166 MovieClip Frame 1
onEnterFrame = function () {
stop();
};
Symbol 1169 MovieClip Frame 1
setBack._alpha = 0;
this.onEnterFrame = function () {
if ((((this._x <= _root._xmouse) && ((this._x + this._width) >= _root._xmouse)) && (this._y <= _root._ymouse)) && ((this._y + this._height) >= _root._ymouse)) {
butUp._visible = true;
butDown._visible = true;
} else {
butUp._visible = false;
butDown._visible = false;
}
};
Symbol 1183 MovieClip Frame 1
mcBack._alpha = 0;
Symbol 1210 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.game.isPaused) {
this.play();
} else {
this.stop();
}
};
Symbol 1211 MovieClip Frame 1
stop();
Symbol 1211 MovieClip Frame 2
stop();
Symbol 1211 MovieClip Frame 3
stop();
Symbol 1211 MovieClip Frame 4
stop();
Symbol 1211 MovieClip Frame 5
stop();
Symbol 1211 MovieClip Frame 6
stop();
Symbol 1211 MovieClip Frame 7
stop();
Symbol 1211 MovieClip Frame 8
stop();
Symbol 1211 MovieClip Frame 9
stop();
Symbol 1217 MovieClip Frame 1
if ((!_root.game.isPaused) && (_root.time > 0)) {
_root.time = _root.time - 1;
}
Symbol 1217 MovieClip Frame 25
this.gotoAndPlay(1);
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1243 MovieClip Frame 2
stop();
Symbol 1243 MovieClip Frame 3
stop();
Symbol 1243 MovieClip Frame 4
stop();