Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("08aa9c29", this, 10301, true);
var lc:LocalConnection = new LocalConnection();
_root.domainpl = lc.domain();
Frame 2
_focusrect = 0;
_quality = "high";
nBytesTotal = _root.getBytesTotal();
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = int((nBytesLoaded / nBytesTotal) * 100);
txtLoaded = nPercentLoaded + "%";
if (nBytesLoaded >= nBytesTotal) {
var blnSFX = 1;
var blnMusic = 1;
gotoAndStop ("GAP");
}
_root.nLevel = 1;
sObject = SharedObject.getLocal("saveFile");
if (sObject.data.nLevel != undefined) {
_root.nLevel = sObject.data.nLevel;
}
trace(_root.nLevel);
Instance of Symbol 27 MovieClip "movRegisterNow" in Frame 2
onClipEvent (load) {
if (_root.strUsername == "Guest") {
_visible = true;
} else {
_visible = false;
}
}
Frame 3
gotoAndPlay ("LOADING");
Instance of Symbol 68 MovieClip "intro" in Frame 4
on (release) {
if (!playintro) {
playintro = 1;
this.play();
} else {
_root.blnMusic = 0;
_root.sndMusic0.gotoAndStop(4);
getURL (("http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=bomberchamp&utm_source=" + _root.domainpl) + "&utm_content=ingame", "_blank");
}
}
Frame 10
if (strCookies != "") {
var tmpArr = String(strCookies).split("*####*");
var strCookieName = tmpArr[0];
var strCookieEmail = tmpArr[1];
gotoAndStop ("LOADED");
}
Frame 11
gotoAndPlay(_currentframe - 1);
Frame 13
if (_root.nLevel > 1) {
continn._visible = true;
} else {
continn._visible = false;
}
stop();
var nPlayers = 1;
var nOppos = 1;
if (_root.blnMusic == 1) {
_root.sndMusic0.gotoAndStop(4);
sndMusic0.gotoAndPlay(2);
}
var strUsername = strCookieName;
var strEmail = strCookieEmail;
txtName = "YOU ARE LOGGED IN AS: " + tmpArr[0];
Frame 14
var nHeat = 1;
var nScore = 0;
var nScore2 = 0;
var nS1 = 0;
var nS2 = 0;
var nS3 = 0;
var nS4 = 0;
stop();
Frame 15
_root.roundnr = 1;
var nLevel;
stop();
Frame 16
show2char.gotoAndStop(_root.nLevel);
if (_root.roundnr == 1) {
rxstartn.gotoAndPlay(1);
} else {
rxstartn.gotoAndPlay(25);
}
movP3life.show3char.gotoAndStop(_root.nLevel);
movP4life.show4char.gotoAndStop(_root.nLevel);
var nGridWidth = 17;
var nGridHeight = 15;
var arrGrid = new Array();
var arrGridNum = new Array();
var arrGridFill = new Array();
var arrGridFillNum = new Array();
var nTotalMins = 3;
var nHeats = 3;
var nWinner = 0;
var blnGameOver = 0;
var gCanKick = 0;
var gKickSpeed = 10;
var gStartingSpd = 2;
var gStartingLength = 2;
var gStartingBombs = 1;
var gOppoMadnessFactor = 1;
if (nLevel == 1) {
_root.nOppos = 1;
var enemylifes = 3;
var gCanThrow = -1;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 2;
}
j++;
}
i++;
}
arrGrid[1][1] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[15][1] = 0;
arrGrid[15][2] = 0;
arrGrid[15][3] = 0;
arrGrid[14][1] = 0;
arrGrid[13][1] = 0;
arrGrid[15][13] = 0;
arrGrid[15][12] = 0;
arrGrid[15][11] = 0;
arrGrid[14][13] = 0;
arrGrid[13][13] = 0;
arrGrid[1][13] = 0;
arrGrid[2][13] = 0;
arrGrid[3][13] = 0;
arrGrid[1][12] = 0;
arrGrid[1][11] = 0;
k = 0;
while (k < 20) {
nI = random(nGridWidth - 2) + 1;
nJ = random(nGridHeight - 2) + 1;
if (arrGrid[nI][nJ] == 2) {
arrGrid[nI][nJ] = 0;
} else {
k--;
}
k++;
}
}
if (nLevel == 2) {
_root.nOppos = 1;
var enemylifes = 3;
var gCanThrow = -1;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 0;
}
j++;
}
i++;
}
arrGrid[1][1] = 2;
arrGrid[1][2] = 2;
arrGrid[1][3] = 2;
arrGrid[2][1] = 2;
arrGrid[3][1] = 2;
arrGrid[13][1] = 2;
arrGrid[13][2] = 2;
arrGrid[13][3] = 2;
arrGrid[12][1] = 2;
arrGrid[11][1] = 2;
arrGrid[13][11] = 2;
arrGrid[13][10] = 2;
arrGrid[13][9] = 2;
arrGrid[12][11] = 2;
arrGrid[11][11] = 2;
arrGrid[1][11] = 2;
arrGrid[2][11] = 2;
arrGrid[3][11] = 2;
arrGrid[1][10] = 2;
arrGrid[1][9] = 2;
arrGrid[7][4] = 2;
arrGrid[7][8] = 2;
arrGrid[1][6] = 2;
arrGrid[13][6] = 2;
arrGrid[3][3] = -7;
arrGrid[3][4] = -5;
arrGrid[3][5] = -5;
arrGrid[3][6] = -5;
arrGrid[3][7] = -5;
arrGrid[3][8] = -5;
arrGrid[3][9] = -10;
arrGrid[11][3] = -8;
arrGrid[11][4] = -5;
arrGrid[11][5] = -5;
arrGrid[11][6] = -5;
arrGrid[11][7] = -5;
arrGrid[11][8] = -5;
arrGrid[11][9] = -9;
arrGrid[4][3] = -6;
arrGrid[5][3] = -6;
arrGrid[6][3] = -6;
arrGrid[7][3] = -6;
arrGrid[8][3] = -6;
arrGrid[9][3] = -6;
arrGrid[10][3] = -6;
arrGrid[4][9] = -6;
arrGrid[5][9] = -6;
arrGrid[6][9] = -6;
arrGrid[7][9] = -6;
arrGrid[8][9] = -6;
arrGrid[9][9] = -6;
arrGrid[10][9] = -6;
}
if (nLevel == 3) {
_root.nOppos = 1;
var enemylifes = 3;
var gCanThrow = -1;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 2;
}
j++;
}
i++;
}
arrGrid[1][1] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[4][1] = 0;
arrGrid[5][1] = 0;
arrGrid[2][3] = 0;
arrGrid[3][2] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[1][4] = 0;
arrGrid[8][1] = 0;
arrGrid[9][1] = 0;
arrGrid[10][1] = 0;
arrGrid[11][1] = 0;
arrGrid[12][1] = 0;
arrGrid[11][2] = 0;
arrGrid[12][3] = 0;
arrGrid[13][1] = 0;
arrGrid[13][2] = 0;
arrGrid[13][3] = 0;
arrGrid[13][4] = 0;
arrGrid[9][11] = 0;
arrGrid[10][11] = 0;
arrGrid[11][11] = 0;
arrGrid[12][11] = 0;
arrGrid[13][11] = 0;
arrGrid[11][10] = 0;
arrGrid[12][9] = 0;
arrGrid[13][8] = 0;
arrGrid[13][9] = 0;
arrGrid[13][10] = 0;
arrGrid[13][11] = 0;
arrGrid[1][11] = 0;
arrGrid[2][11] = 0;
arrGrid[3][11] = 0;
arrGrid[4][11] = 0;
arrGrid[5][11] = 0;
arrGrid[3][10] = 0;
arrGrid[2][9] = 0;
arrGrid[1][8] = 0;
arrGrid[1][9] = 0;
arrGrid[1][10] = 0;
arrGrid[1][11] = 0;
arrGrid[1][1] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[15][1] = 0;
arrGrid[15][2] = 0;
arrGrid[15][3] = 0;
arrGrid[14][1] = 0;
arrGrid[13][1] = 0;
arrGrid[15][13] = 0;
arrGrid[15][12] = 0;
arrGrid[15][11] = 0;
arrGrid[14][13] = 0;
arrGrid[13][13] = 0;
arrGrid[1][13] = 0;
arrGrid[2][13] = 0;
arrGrid[3][13] = 0;
arrGrid[1][12] = 0;
arrGrid[1][11] = 0;
}
if (nLevel == 4) {
_root.nOppos = 2;
var enemylifes = 3;
var gCanThrow = -1;
gOppoMadnessFactor = 2;
gStartingSpd = 3;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 2;
}
j++;
}
i++;
}
arrGrid[1][1] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[4][1] = 0;
arrGrid[5][1] = 0;
arrGrid[2][3] = 0;
arrGrid[3][2] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[1][4] = 0;
arrGrid[8][1] = 0;
arrGrid[9][1] = 0;
arrGrid[10][1] = 0;
arrGrid[11][1] = 0;
arrGrid[12][1] = 0;
arrGrid[11][2] = 0;
arrGrid[12][3] = 0;
arrGrid[13][1] = 0;
arrGrid[13][2] = 0;
arrGrid[13][3] = 0;
arrGrid[13][4] = 0;
arrGrid[9][11] = 0;
arrGrid[10][11] = 0;
arrGrid[11][11] = 0;
arrGrid[12][11] = 0;
arrGrid[13][11] = 0;
arrGrid[11][10] = 0;
arrGrid[12][9] = 0;
arrGrid[13][8] = 0;
arrGrid[13][9] = 0;
arrGrid[13][10] = 0;
arrGrid[13][11] = 0;
arrGrid[1][11] = 0;
arrGrid[2][11] = 0;
arrGrid[3][11] = 0;
arrGrid[4][11] = 0;
arrGrid[5][11] = 0;
arrGrid[3][10] = 0;
arrGrid[2][9] = 0;
arrGrid[1][8] = 0;
arrGrid[1][9] = 0;
arrGrid[1][10] = 0;
arrGrid[1][11] = 0;
arrGrid[1][1] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[15][1] = 0;
arrGrid[15][2] = 0;
arrGrid[15][3] = 0;
arrGrid[14][1] = 0;
arrGrid[13][1] = 0;
arrGrid[15][13] = 0;
arrGrid[15][12] = 0;
arrGrid[15][11] = 0;
arrGrid[14][13] = 0;
arrGrid[13][13] = 0;
arrGrid[1][13] = 0;
arrGrid[2][13] = 0;
arrGrid[3][13] = 0;
arrGrid[1][12] = 0;
arrGrid[1][11] = 0;
arrGrid[8][1] = 1;
arrGrid[8][2] = 1;
arrGrid[8][3] = 1;
arrGrid[8][4] = 1;
arrGrid[8][5] = 1;
arrGrid[8][6] = 1;
arrGrid[8][7] = 0;
arrGrid[8][8] = 1;
arrGrid[8][9] = 1;
arrGrid[8][10] = 1;
arrGrid[8][11] = 1;
arrGrid[8][12] = 1;
arrGrid[8][13] = 1;
}
if (nLevel == 5) {
_root.nOppos = 2;
var enemylifes = 4;
var gCanThrow = -1;
gOppoMadnessFactor = 2;
gStartingSpd = 3;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 2;
}
j++;
}
i++;
}
arrGrid[1][1] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[4][1] = 0;
arrGrid[5][1] = 0;
arrGrid[2][3] = 0;
arrGrid[3][2] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[1][4] = 0;
arrGrid[8][1] = 0;
arrGrid[9][1] = 0;
arrGrid[10][1] = 0;
arrGrid[11][1] = 0;
arrGrid[12][1] = 0;
arrGrid[11][2] = 0;
arrGrid[12][3] = 0;
arrGrid[13][1] = 0;
arrGrid[13][2] = 0;
arrGrid[13][3] = 0;
arrGrid[13][4] = 0;
arrGrid[9][11] = 0;
arrGrid[10][11] = 0;
arrGrid[11][11] = 0;
arrGrid[12][11] = 0;
arrGrid[13][11] = 0;
arrGrid[11][10] = 0;
arrGrid[12][9] = 0;
arrGrid[13][8] = 0;
arrGrid[13][9] = 0;
arrGrid[13][10] = 0;
arrGrid[13][11] = 0;
arrGrid[1][11] = 0;
arrGrid[2][11] = 0;
arrGrid[3][11] = 0;
arrGrid[4][11] = 0;
arrGrid[5][11] = 0;
arrGrid[3][10] = 0;
arrGrid[2][9] = 0;
arrGrid[1][8] = 0;
arrGrid[1][9] = 0;
arrGrid[1][10] = 0;
arrGrid[1][11] = 0;
arrGrid[1][1] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[15][1] = 0;
arrGrid[15][2] = 0;
arrGrid[15][3] = 0;
arrGrid[14][1] = 0;
arrGrid[13][1] = 0;
arrGrid[15][13] = 0;
arrGrid[15][12] = 0;
arrGrid[15][11] = 0;
arrGrid[14][13] = 0;
arrGrid[13][13] = 0;
arrGrid[1][13] = 0;
arrGrid[2][13] = 0;
arrGrid[3][13] = 0;
arrGrid[1][12] = 0;
arrGrid[1][11] = 0;
arrGrid[8][1] = 1;
arrGrid[8][2] = 1;
arrGrid[8][3] = 1;
arrGrid[8][4] = 1;
arrGrid[8][5] = 1;
arrGrid[8][6] = 1;
arrGrid[8][7] = 0;
arrGrid[8][8] = 1;
arrGrid[8][9] = 1;
arrGrid[8][10] = 1;
arrGrid[8][11] = 1;
arrGrid[8][12] = 1;
arrGrid[8][13] = 1;
arrGrid[9][1] = 1;
arrGrid[9][2] = 1;
arrGrid[9][3] = 1;
arrGrid[9][4] = 1;
arrGrid[9][5] = 1;
arrGrid[9][6] = 1;
arrGrid[9][7] = 0;
arrGrid[9][8] = 1;
arrGrid[9][9] = 1;
arrGrid[9][10] = 1;
arrGrid[9][11] = 1;
arrGrid[9][12] = 1;
arrGrid[9][13] = 1;
arrGrid[10][1] = 1;
arrGrid[10][2] = 1;
arrGrid[10][3] = 1;
arrGrid[10][4] = 1;
arrGrid[10][5] = 1;
arrGrid[10][6] = 1;
arrGrid[10][7] = 0;
arrGrid[10][8] = 0;
arrGrid[10][9] = 1;
arrGrid[10][10] = 1;
arrGrid[10][11] = 1;
arrGrid[10][12] = 1;
arrGrid[10][13] = 1;
arrGrid[7][1] = 1;
arrGrid[7][2] = 1;
arrGrid[7][3] = 1;
arrGrid[7][4] = 1;
arrGrid[7][5] = 1;
arrGrid[7][6] = 1;
arrGrid[7][7] = 0;
arrGrid[7][8] = 1;
arrGrid[7][9] = 1;
arrGrid[7][10] = 1;
arrGrid[7][11] = 1;
arrGrid[7][12] = 1;
arrGrid[7][13] = 1;
arrGrid[6][1] = 1;
arrGrid[6][2] = 1;
arrGrid[6][3] = 1;
arrGrid[6][4] = 1;
arrGrid[6][5] = 1;
arrGrid[6][6] = 1;
arrGrid[6][7] = 0;
arrGrid[6][8] = 0;
arrGrid[6][9] = 1;
arrGrid[6][10] = 1;
arrGrid[6][11] = 1;
arrGrid[6][12] = 1;
arrGrid[6][13] = 1;
}
if (nLevel == 6) {
_root.nOppos = 3;
var enemylifes = 5;
var gCanThrow = -1;
gOppoMadnessFactor = 2;
gStartingSpd = 3;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 2;
}
j++;
}
i++;
}
arrGrid[1][1] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[15][1] = 0;
arrGrid[15][2] = 0;
arrGrid[15][3] = 0;
arrGrid[14][1] = 0;
arrGrid[13][1] = 0;
arrGrid[15][13] = 0;
arrGrid[15][12] = 0;
arrGrid[15][11] = 0;
arrGrid[14][13] = 0;
arrGrid[13][13] = 0;
arrGrid[1][13] = 0;
arrGrid[2][13] = 0;
arrGrid[3][13] = 0;
arrGrid[1][12] = 0;
arrGrid[1][11] = 0;
k = 0;
while (k < 20) {
nI = random(nGridWidth - 2) + 1;
nJ = random(nGridHeight - 2) + 1;
if (arrGrid[nI][nJ] == 2) {
arrGrid[nI][nJ] = 0;
} else {
k--;
}
k++;
}
}
if (nLevel == 7) {
_root.nOppos = 3;
var enemylifes = 5;
gOppoMadnessFactor = 2;
var gCanThrow = 1;
var gCanKick = 1;
gStartingSpd = 4;
gStartingLength = 4;
gStartingBombs = 3;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 0;
}
j++;
}
i++;
}
}
if (nLevel == 8) {
_root.nOppos = 3;
var enemylifes = 6;
gOppoMadnessFactor = 2;
var gCanThrow = 1;
var gCanKick = 1;
gStartingSpd = 4;
gStartingLength = 4;
gStartingBombs = 1;
i = 0;
while (i < nGridWidth) {
arrGrid[i] = new Array();
arrGridNum[i] = new Array();
j = 0;
while (j < nGridHeight) {
arrGridNum[i][j] = 0;
if ((((i == 0) || (i == (nGridWidth - 1))) || (j == 0)) || (j == (nGridHeight - 1))) {
arrGrid[i][j] = 1;
} else if (((i % 2) == 0) && (((j + 1) % 2) != 0)) {
arrGrid[i][j] = 1;
} else {
arrGrid[i][j] = 2;
}
j++;
}
i++;
}
arrGrid[1][1] = 0;
arrGrid[1][2] = 0;
arrGrid[1][3] = 0;
arrGrid[2][1] = 0;
arrGrid[3][1] = 0;
arrGrid[15][1] = 0;
arrGrid[15][2] = 0;
arrGrid[15][3] = 0;
arrGrid[14][1] = 0;
arrGrid[13][1] = 0;
arrGrid[15][13] = 0;
arrGrid[15][12] = 0;
arrGrid[15][11] = 0;
arrGrid[14][13] = 0;
arrGrid[13][13] = 0;
arrGrid[1][13] = 0;
arrGrid[2][13] = 0;
arrGrid[3][13] = 0;
arrGrid[1][12] = 0;
arrGrid[1][11] = 0;
arrGrid[8][1] = 1;
arrGrid[8][2] = 1;
arrGrid[8][3] = 1;
arrGrid[8][4] = 1;
arrGrid[8][5] = 1;
arrGrid[8][6] = 0;
arrGrid[8][7] = 0;
arrGrid[8][8] = 0;
arrGrid[8][9] = 1;
arrGrid[8][10] = 1;
arrGrid[8][11] = 1;
arrGrid[8][12] = 1;
arrGrid[8][13] = 1;
arrGrid[8][1] = 1;
arrGrid[1][7] = 1;
arrGrid[2][7] = 1;
arrGrid[3][7] = 1;
arrGrid[4][7] = 1;
arrGrid[5][7] = 0;
arrGrid[6][7] = 0;
arrGrid[7][7] = 0;
arrGrid[8][7] = 1;
arrGrid[9][7] = 1;
arrGrid[10][7] = 1;
arrGrid[11][7] = 1;
arrGrid[12][7] = 1;
arrGrid[13][7] = 1;
arrGrid[14][7] = 1;
arrGrid[15][7] = 1;
k = 0;
while (k < 20) {
nI = random(nGridWidth - 2) + 1;
nJ = random(nGridHeight - 2) + 1;
if (arrGrid[nI][nJ] == 2) {
arrGrid[nI][nJ] = 0;
} else {
k--;
}
k++;
}
}
if (nOppos < 3) {
movP4life._visible = false;
} else {
movP4life._visible = true;
}
if (nOppos < 2) {
movP3life._visible = false;
} else {
movP3life._visible = true;
}
Instance of Symbol 215 MovieClip in Frame 16
onClipEvent (load) {
if (_root.nOppos == 2) {
gotoAndStop (2);
} else if (_root.nOppos == 3) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Frame 17
levelbg.gotoAndStop(_root.nLeveL);
trace("goto level " + _root.nLeveL);
_quality = "high";
movFaces.movP2Dead.gotoAndStop(_root.nLevel);
movFaces.movP3Dead.gotoAndStop(_root.nLevel);
movFaces.movP4Dead.gotoAndStop(_root.nLevel);
stop();
Instance of Symbol 505 MovieClip "movGame" in Frame 17
onClipEvent (load) {
function fPowerUp(x, y) {
var puType = random(5);
if ((puType == 4) && (random(5) == 2)) {
puType = random(4);
}
nPUCount++;
if ((random(2) == 1) && (arrPowerUps[puType] > 0)) {
duplicateMovieClip ("movPUPS", "movPU" + nPUCount, 16384 + (nPUCount + 400));
eval ("movPU" + nPUCount)._x = ((x * 30) - (nWidth / 2)) + 15;
eval ("movPU" + nPUCount)._y = ((y * 30) - (nHeight / 2)) + 15;
eval ("movPU" + nPUCount).gotoAndStop(puType + 1);
eval ("movPU" + nPUCount).puType = puType;
eval ("movPU" + nPUCount).x = x;
eval ("movPU" + nPUCount).y = y;
_root.arrGrid[x][y] = -1;
_root.arrGridNum[x][y] = nPUCount;
arrPowerUps[puType]--;
}
}
var nBlockCount = 0;
var nBlastCount = 0;
var nBrickCount = 0;
var nBombCount = 0;
var nWidth = 450;
var nHeight = 390;
var nFadeTime = 25;
var nBlowTime = 60;
var arrBombLength = new Array();
var arrBombX = new Array();
var arrBombY = new Array();
var nPUCount = 0;
var arrBombLastLaid = new Array(0, 0, 0, 0);
var arrDead = new Array(0, 0, 0, 0);
var arrLives = new Array(3, _root.enemylifes, _root.enemylifes, _root.enemylifes);
var arrInvincible = new Array(0, 0, 0, 0);
var arrPowerUps = new Array(8, 8, 8, 4, 4);
var arrPUTypes = new Array("F", "S", "B", "K", "T");
var arrSpeeds = new Array(2, 3, 5, 6, 10);
var nFillCount = 0;
var nFillDir = 1;
var nWallCount = 1;
var nFillRow = 0;
var nFillCol = 1;
var nFillSlow = 0;
var nFLCountStart = -1;
var nTotalFL = 0;
var doFireLine = 0;
var nFLTimeCount = 0;
var blnRoundOver = 0;
var nDelay = 0;
bms = 1;
while (bms < 5) {
bl = 1;
while (bl < 6) {
if ((bl <= arrLives[bms - 1]) && (bms <= (_root.nOppos + 1))) {
_root.movTime[(("pl" + bms) + "_") + bl]._visible = true;
} else {
_root.movTime[(("pl" + bms) + "_") + bl]._visible = false;
}
bl++;
}
bms++;
}
i = 0;
while (i < _root.nGridWidth) {
j = 0;
while (j < _root.nGridHeight) {
if (!(((__reg0 = _root.arrGrid[i][j])) === 0)) {
if (__reg0 === 1) {
duplicateMovieClip ("movBlock1_" + _root.nLevel, "movB" + nBlockCount, 16384 + (nBlockCount + 50));
eval ("movB" + nBlockCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movB" + nBlockCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBlockCount;
nBlockCount++;
} else if (__reg0 === 2) {
duplicateMovieClip ("movBlock2_" + _root.nLevel, "movBR" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movBR" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movBR" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movBR" + nBrickCount).x = i;
eval ("movBR" + nBrickCount).y = j;
eval ("movBR" + nBrickCount).txtBrick = (i + "-") + j;
nBrickCount++;
} else if (__reg0 === -4) {
duplicateMovieClip ("movTransporter", "movTRAN" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movTRAN" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movTRAN" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movTRAN" + nBrickCount).x = i;
eval ("movTRAN" + nBrickCount).y = j;
eval ("movTRAN" + nBrickCount).txtBrick = (i + "-") + j;
eval ("movTRAN" + nBrickCount).nTranID = nBrickCount;
if ((nBrickCount == 11) || (nBrickCount == 60)) {
eval ("movTRAN" + nBrickCount).gotoAndStop(2);
}
nBrickCount++;
} else if (__reg0 === -5) {
if (nFLCountStart == -1) {
nFLCountStart = nBrickCount;
}
nTotalFL++;
duplicateMovieClip ("movFireLine", "movFL" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movFL" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movFL" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movFL" + nBrickCount).x = i;
eval ("movFL" + nBrickCount).y = j;
eval ("movFL" + nBrickCount).txtBrick = (i + "-") + j;
var ngoto = ((-_root.arrGrid[i][j]) - 4);
eval ("movFL" + nBrickCount).gotoAndStop(ngoto);
eval ("movFL" + nBrickCount).nFLType = _root.arrGrid[i][j];
eval ("movFL" + nBrickCount).nGoto = ngoto;
nBrickCount++;
} else if (__reg0 === -6) {
if (nFLCountStart == -1) {
nFLCountStart = nBrickCount;
}
nTotalFL++;
duplicateMovieClip ("movFireLine", "movFL" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movFL" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movFL" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movFL" + nBrickCount).x = i;
eval ("movFL" + nBrickCount).y = j;
eval ("movFL" + nBrickCount).txtBrick = (i + "-") + j;
var ngoto = ((-_root.arrGrid[i][j]) - 4);
eval ("movFL" + nBrickCount).gotoAndStop(ngoto);
eval ("movFL" + nBrickCount).nFLType = _root.arrGrid[i][j];
eval ("movFL" + nBrickCount).nGoto = ngoto;
nBrickCount++;
} else if (__reg0 === -7) {
if (nFLCountStart == -1) {
nFLCountStart = nBrickCount;
}
nTotalFL++;
duplicateMovieClip ("movFireLine", "movFL" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movFL" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movFL" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movFL" + nBrickCount).x = i;
eval ("movFL" + nBrickCount).y = j;
eval ("movFL" + nBrickCount).txtBrick = (i + "-") + j;
var ngoto = ((-_root.arrGrid[i][j]) - 4);
eval ("movFL" + nBrickCount).gotoAndStop(ngoto);
eval ("movFL" + nBrickCount).nFLType = _root.arrGrid[i][j];
eval ("movFL" + nBrickCount).nGoto = ngoto;
nBrickCount++;
} else if (__reg0 === -8) {
if (nFLCountStart == -1) {
nFLCountStart = nBrickCount;
}
nTotalFL++;
duplicateMovieClip ("movFireLine", "movFL" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movFL" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movFL" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movFL" + nBrickCount).x = i;
eval ("movFL" + nBrickCount).y = j;
eval ("movFL" + nBrickCount).txtBrick = (i + "-") + j;
var ngoto = ((-_root.arrGrid[i][j]) - 4);
eval ("movFL" + nBrickCount).gotoAndStop(ngoto);
eval ("movFL" + nBrickCount).nFLType = _root.arrGrid[i][j];
eval ("movFL" + nBrickCount).nGoto = ngoto;
nBrickCount++;
} else if (__reg0 === -9) {
if (nFLCountStart == -1) {
nFLCountStart = nBrickCount;
}
nTotalFL++;
duplicateMovieClip ("movFireLine", "movFL" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movFL" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movFL" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movFL" + nBrickCount).x = i;
eval ("movFL" + nBrickCount).y = j;
eval ("movFL" + nBrickCount).txtBrick = (i + "-") + j;
var ngoto = ((-_root.arrGrid[i][j]) - 4);
eval ("movFL" + nBrickCount).gotoAndStop(ngoto);
eval ("movFL" + nBrickCount).nFLType = _root.arrGrid[i][j];
eval ("movFL" + nBrickCount).nGoto = ngoto;
nBrickCount++;
} else if (__reg0 === -10) {
if (nFLCountStart == -1) {
nFLCountStart = nBrickCount;
}
nTotalFL++;
duplicateMovieClip ("movFireLine", "movFL" + nBrickCount, 16384 + (nBrickCount + 200));
eval ("movFL" + nBrickCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movFL" + nBrickCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridNum[i][j] = nBrickCount;
eval ("movFL" + nBrickCount).x = i;
eval ("movFL" + nBrickCount).y = j;
eval ("movFL" + nBrickCount).txtBrick = (i + "-") + j;
var ngoto = ((-_root.arrGrid[i][j]) - 4);
eval ("movFL" + nBrickCount).gotoAndStop(ngoto);
eval ("movFL" + nBrickCount).nFLType = _root.arrGrid[i][j];
eval ("movFL" + nBrickCount).nGoto = ngoto;
nBrickCount++;
}
}
j++;
}
i++;
}
duplicateMovieClip ("player1", "movP1", 21384);
if (_root.nPlayers == 2) {
duplicateMovieClip ("player2", "movP2", 21385);
} else {
duplicateMovieClip ("computer2_" + _root.nLevel, "movP2", 21385);
}
if (_root.nOppos >= 2) {
duplicateMovieClip ("computer3_" + _root.nLevel, "movP3", 21386);
}
if (_root.nOppos >= 3) {
duplicateMovieClip ("computer4_" + _root.nLevel, "movP4", 21387);
}
}
onClipEvent (enterFrame) {
if (arrDead[0]) {
setTimeout(_root, "gotoAndStop", 4000, "GAMEOVER2");
arrDead[0] = 0;
}
if (doFireLine == 1) {
nFLTimeCount++;
if (nFLTimeCount >= 25) {
doFireLine = 0;
nFLTimeCount = 0;
}
}
if ((((_parent.movTime.strMins == 0) && (_parent.movTime.strSecs < 40)) && (_parent.movTime.strSecs != 0)) && (nFillCount < 80)) {
nFillSlow++;
if ((nFillSlow / 8) == Math.round(nFillSlow / 8)) {
if (((__reg0 = nFillDir)) === 1) {
nFillRow++;
if (nFillRow > (15 - nWallCount)) {
nFillDir++;
}
} else if (__reg0 === 2) {
nFillCol++;
if (nFillCol > (13 - nWallCount)) {
nFillDir++;
}
} else if (__reg0 === 3) {
nFillRow--;
if (nFillRow <= (0 + nWallCount)) {
nFillDir++;
}
} else if (__reg0 === 4) {
nFillCol--;
if (nFillCol <= (1 + nWallCount)) {
nFillDir = 1;
nWallCount++;
}
}
duplicateMovieClip ("movBlock1_" + _root.nLevel, "movF" + nFillCount, 16384 + (nFillCount + 4000));
eval ("movF" + nFillCount)._x = ((nFillRow * 30) - (nWidth / 2)) + 15;
eval ("movF" + nFillCount)._y = ((nFillCol * 30) - (nHeight / 2)) + 15;
_root.arrGrid[nFillRow][nFillCol] = 1;
j = 1;
while (j < 5) {
if ((eval ("movP" + j).nGX == nFillRow) && (eval ("movP" + j).nGY == nFillCol)) {
fKillPlayer(j);
}
j++;
}
nFillCount++;
i++;
}
}
if (((!blnRoundOver) && (((((arrDead[0] + arrDead[1]) + arrDead[2]) + arrDead[3]) >= _root.nOppos) || (((arrDead[0] + arrDead[1]) == _root.nPlayers) && (_root.nPlayers == 2)))) && (nFillCount < 149)) {
if (arrDead[0] == 0) {
_root.nWinner = 1;
_root.nS1++;
} else if (arrDead[1] == 0) {
_root.nWinner = 2;
_root.nS2++;
} else {
if (random(2) == 1) {
_root.nS3++;
} else {
_root.nS4++;
}
_root.nWinner = 0;
}
blnRoundOver = 1;
nDelay = 0;
}
if (blnRoundOver == 1) {
nDelay++;
}
if ((blnRoundOver == 1) && (nDelay == 98)) {
_root.fGridFill(_root.nHeat);
}
if ((blnRoundOver == 1) && (nDelay > 100)) {
var i = 0;
while (i < 4) {
if (((__reg0 = nFillDir)) === 1) {
nFillRow++;
if (nFillRow > (15 - nWallCount)) {
nFillDir++;
}
} else if (__reg0 === 2) {
nFillCol++;
if (nFillCol > (13 - nWallCount)) {
nFillDir++;
}
} else if (__reg0 === 3) {
nFillRow--;
if (nFillRow <= (0 + nWallCount)) {
nFillDir++;
}
} else if (__reg0 === 4) {
nFillCol--;
if (nFillCol <= (1 + nWallCount)) {
nFillDir = 1;
nWallCount++;
}
}
if (_root.arrGridFill[nFillRow][nFillCol] == 1) {
duplicateMovieClip ("movBlock1_" + _root.nLevel, "movF" + nFillCount, 16384 + (nFillCount + 5050));
} else {
duplicateMovieClip ("movBlock4", "movF" + nFillCount, 16384 + (nFillCount + 5050));
}
eval ("movF" + nFillCount)._x = ((nFillRow * 30) - (nWidth / 2)) + 15;
eval ("movF" + nFillCount)._y = ((nFillCol * 30) - (nHeight / 2)) + 15;
nFillCount++;
i++;
}
}
if (nFillCount >= 149) {
_root.blnGameOver = 1;
_root.gotoAndStop("DONE");
}
}
Instance of Symbol 516 MovieClip "movTime" in Frame 17
onClipEvent (load) {
txtS1 = _root.nS1;
txtS2 = _root.nS2;
txtS3 = _root.nS3;
txtS4 = _root.nS4;
txtTime = _root.nTotalMins + ":00";
var nTime = 0;
var nC = 0;
strMins = _root.nTotalMins - 1;
strSecs = 0;
strSecSubtract = 60;
if (_root.nOppos == 1) {
txtS3 = "";
txtS4 = "";
} else if (_root.nOppos == 2) {
txtS4 = "";
}
}
onClipEvent (enterFrame) {
if (!_root.movGame.blnRoundOver) {
nC++;
if ((nC % 24) == 0) {
nTime++;
}
strSecs = strSecSubtract - nTime;
if (strSecs < 0) {
strSecSubtract = strSecSubtract + 60;
strMins--;
}
if (strSecs >= 60) {
strAdd = 1;
} else {
strAdd = 0;
}
if ((strSecs <= 0) || (strSecs >= 60)) {
strSecs = "00";
}
if ((strSecs > 0) && (strSecs < 10)) {
strSecs = "0" + String(strSecs);
}
if (strMins == -1) {
txtTime = (Number("0" + strAdd) + ":") + strSecs;
} else {
txtTime = (Number(strMins + strAdd) + ":") + strSecs;
}
if (((strMins + strAdd) < 0) && (strSecs == 0)) {
_root.movGame.blnRoundOver = 1;
}
nFrame = (Number(_root.movTime.strMins) * 60) + Number(_root.movTime.strSecs);
movBar.gotoAndStop(120 - nFrame);
}
}
Instance of Symbol 537 MovieClip "movFaces" in Frame 17
onClipEvent (load) {
movP1Dead._alpha = 0;
movP2Dead._alpha = 0;
movP3Dead._alpha = 0;
movP4Dead._alpha = 0;
}
Instance of Symbol 544 MovieClip "movWhatGame" in Frame 17
onClipEvent (load) {
gotoAndStop(_root.nHeat);
}
Frame 18
stop();
Instance of Symbol 546 MovieClip "movGame" in Frame 18
onClipEvent (load) {
var nBlockCount = 0;
var nBlastCount = 0;
var nBrickCount = 0;
var nBombCount = 0;
var nWidth = 450;
var nHeight = 390;
var nCount = 0;
var nDelCount = 0;
var blnRoundOver = 1;
var nBonus = 0;
var nBonus2 = 0;
var nTick = 0;
i = 0;
while (i < _root.nGridWidth) {
j = 0;
while (j < _root.nGridHeight) {
if (((__reg0 = _root.arrGridFill[i][j])) === 1) {
duplicateMovieClip ("movBlock1", "movB" + nBlockCount, 16384 + (nBlockCount + 50));
eval ("movB" + nBlockCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movB" + nBlockCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridFillNum[i][j] = nBlockCount;
nBlockCount++;
} else if (__reg0 === 4) {
duplicateMovieClip ("movBlock4", "movB" + nBlockCount, 16384 + (nBlockCount + 50));
eval ("movB" + nBlockCount)._x = ((i * 30) - (nWidth / 2)) + 15;
eval ("movB" + nBlockCount)._y = ((j * 30) - (nHeight / 2)) + 15;
_root.arrGridFillNum[i][j] = nBlockCount;
nBlockCount++;
}
j++;
}
i++;
}
var nSecsLeft = ((Number(_root.movTime.strMins) * 60) + Number(_root.movTime.strSecs));
if (_root.nWinner == 1) {
movScoreMe.txtLevTime = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
} else {
movScoreMe.txtLevTime = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
}
movScoreMe.txtBonus = "0";
movScoreMe.txtScore = _root.nScore;
if (_root.nWinner == 3) {
movScoreMe.txtLevTime2 = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
} else {
movScoreMe.txtLevTime2 = (nSecsLeft + " secs * ") + (_root.nOppos * 250);
}
movScoreMe.txtBonus2 = "0";
movScoreMe.txtScore2 = _root.nScore2;
}
onClipEvent (enterFrame) {
nCount++;
if ((nCount > 60) && (nCount < 81)) {
i = 1;
while (i < 14) {
j = 1;
while (j < 12) {
eval ("movB" + _root.arrGridFillNum[i][j])._alpha = eval ("movB" + _root.arrGridFillNum[i][j])._alpha - 5;
j++;
}
i++;
}
}
if (nCount == 21) {
if (_root.nWinner == 1) {
if (_root.roundnr == 1) {
_root.roundnr++;
_root.gotoAndPlay(16);
} else if (_root.nLevel > 7) {
_root.gotoAndStop("gameout");
} else {
_root.nLevel++;
_root.gotoAndStop(15);
}
} else {
_root.gotoAndStop(21);
}
}
if ((nCount > 95) && (nTick < nSecsLeft)) {
nTick++;
if (_root.nWinner == 1) {
nBonus = nTick * (_root.nOppos * 250);
} else {
nBonus = (-nTick) * (_root.nOppos * 250);
}
if (_root.nWinner == 2) {
nBonus2 = nTick * (_root.nOppos * 250);
} else {
nBonus2 = (-nTick) * (_root.nOppos * 250);
}
movScoreMe.txtBonus = nBonus;
movScoreMe.txtScore = Number(_root.nScore + nBonus);
movScoreMe.txtBonus2 = nBonus2;
movScoreMe.txtScore2 = Number(_root.nScore2 + nBonus2);
if (_root.blnSFX) {
_root.sndPing.play();
}
}
}
Frame 19
_root.nLeveL = 1;
stop();
Frame 20
txtFScore = _root.nScore;
if (nScore > 0) {
movLose._alpha = 0;
movWin.gotoAndPlay(2);
movLose.stop();
} else {
movWin._alpha = 0;
movWin.stop();
movLose.gotoAndPlay(2);
}
stop();
Frame 21
txtFScore1 = _root.nScore;
txtFScore2 = _root.nScore2;
if ((_root.nScore <= 0) && (_root.nScore2 <= 0)) {
movEndo.gotoAndStop(1);
} else if ((_root.nScore > 0) && (_root.nScore2 <= 0)) {
movEndo.gotoAndStop(2);
} else if ((_root.nScore <= 0) && (_root.nScore2 > 0)) {
movEndo.gotoAndStop(3);
} else if ((_root.nScore > 0) && (_root.nScore2 > 0)) {
movEndo.gotoAndStop(4);
}
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 3
stop();
Symbol 17 MovieClip Frame 4
stop();
Symbol 26 Button
on (release) {
getURL ("http://www.gamesmate.com/register.asp", "_blank");
}
Symbol 67 MovieClip Frame 80
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 235
_root.gotoAndStop("LOADED");
Symbol 72 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
_root.nLevel = 1;
var nPlayers = 1;
var tid = 1;
var gid = 11;
play();
}
Symbol 73 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
_root.blnMusic = 0;
_root.sndMusic0.gotoAndStop(4);
getURL (("http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=bomberchamp&utm_source=" + _root.domainpl) + "&utm_content=ingame", "_blank");
}
Symbol 74 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nPlayers = 1;
var tid = 1;
var gid = 11;
play();
}
Symbol 75 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nPlayers = 1;
var tid = 1;
var gid = 11;
_root.gotoAndStop(15);
}
Symbol 82 Button
on (press) {
getURL (("http://www.4v4.com/games-for-your-website.html?utm_medium=brandedgames_external&utm_campaign=bomberchamp&utm_source=" + _root.domainpl) + "&utm_content=addforyourwebsite", "_blank");
_root.blnMusic = 0;
_root.sndMusic0.gotoAndStop(4);
}
Symbol 86 Button
on (release, keyPress "2") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nPlayers = 2;
var tid = 2;
var gid = 11;
loadVariablesNum ("timesplayed.asp", 0, "POST");
play();
}
Symbol 89 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
gotoAndStop ("INSTRUCTIONS");
}
Symbol 93 Button
on (release) {
if (_root.blnFX == 1) {
_root.sndClick2.play();
}
getURL ("http://www.gamesmate.com");
}
Symbol 95 Button
on (release) {
getURL (("http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=bomberchamp&utm_source=" + _root.domainpl) + "&utm_content=ingame", "_blank");
}
Symbol 99 Button
on (release) {
if (_root.blnFX == 1) {
_root.sndClick2.play();
}
getURL ("http://www.gamesmate.com/highscores.asp?id=2&start=1");
}
Symbol 103 Button
on (release, keyPress "m") {
if (_root.blnMusic == 1) {
_root.blnMusic = 0;
_root.sndMusic0.gotoAndStop(4);
} else {
_root.blnMusic = 1;
_root.sndMusic0.gotoAndStop(2);
}
}
Symbol 105 Button
on (release, keyPress "s") {
if (_root.blnSFX == 1) {
_root.blnSFX = 0;
} else {
_root.blnSFX = 1;
}
}
Symbol 108 Button
on (release, keyPress "3") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 3;
play();
}
Symbol 111 Button
on (release, keyPress "2") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 2;
play();
}
Symbol 114 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 1;
play();
}
Symbol 117 Button
on (release) {
prevFrame();
}
Symbol 133 Button
on (press) {
play();
}
Symbol 136 MovieClip Frame 200
stop();
Symbol 136 MovieClip Frame 250
_root.play();
Symbol 139 Button
on (release, keyPress "3") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 3;
play();
}
Symbol 142 Button
on (release, keyPress "2") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 2;
play();
}
Symbol 145 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 1;
play();
}
Symbol 148 Button
on (release, keyPress "4") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 4;
play();
}
Symbol 189 Button
on (press) {
_root.nOppos = 1;
_root.sObject.data.nLevel = _root.nLevel;
_root.sObject.flush();
_root.play();
}
Symbol 190 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
_root.blnMusic = 0;
_root.sndMusic0.gotoAndStop(4);
getURL (("http://www.4v4.com/?utm_medium=brandedgames_external&utm_campaign=bomberchamp&utm_source=" + _root.domainpl) + "&utm_content=ingame", "_blank");
}
Symbol 199 MovieClip Frame 25
stop();
Symbol 199 MovieClip Frame 50
stop();
Symbol 199 MovieClip Frame 75
stop();
Symbol 199 MovieClip Frame 100
stop();
Symbol 199 MovieClip Frame 125
stop();
Symbol 199 MovieClip Frame 150
stop();
Symbol 199 MovieClip Frame 175
stop();
Symbol 199 MovieClip Frame 200
stop();
Symbol 200 MovieClip Frame 1
tlist.gotoAndPlay((_root.nLevel * 25) - 24);
Symbol 210 Button
on (release, keyPress "q") {
gotoAndPlay ("GAP");
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
stop();
Symbol 215 MovieClip Frame 3
stop();
Symbol 219 MovieClip Frame 24
stop();
Symbol 219 MovieClip Frame 47
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 243 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 243 MovieClip Frame 46
gotoAndStop (1);
Symbol 243 MovieClip Frame 47
stop();
Symbol 246 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
stop();
Symbol 254 MovieClip Frame 3
stop();
Symbol 254 MovieClip Frame 4
stop();
Symbol 254 MovieClip Frame 5
stop();
Symbol 257 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 263 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 263 MovieClip Frame 46
gotoAndStop (1);
Symbol 263 MovieClip Frame 47
stop();
Symbol 279 MovieClip Frame 1
n = Math.round(Math.random() * 3);
gotoAndStop(n);
Symbol 302 MovieClip Frame 1
stop();
Instance of Symbol 291 MovieClip in Symbol 302 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 302 MovieClip Frame 2
stop();
Instance of Symbol 296 MovieClip in Symbol 302 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 302 MovieClip Frame 3
stop();
Instance of Symbol 291 MovieClip in Symbol 302 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 302 MovieClip Frame 4
stop();
Instance of Symbol 301 MovieClip in Symbol 302 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 320 MovieClip Frame 1
stop();
Instance of Symbol 309 MovieClip in Symbol 320 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 320 MovieClip Frame 2
stop();
Instance of Symbol 314 MovieClip in Symbol 320 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 320 MovieClip Frame 3
stop();
Instance of Symbol 309 MovieClip in Symbol 320 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 320 MovieClip Frame 4
stop();
Instance of Symbol 319 MovieClip in Symbol 320 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 338 MovieClip Frame 1
stop();
Instance of Symbol 327 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 338 MovieClip Frame 2
stop();
Instance of Symbol 332 MovieClip in Symbol 338 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 338 MovieClip Frame 3
stop();
Instance of Symbol 327 MovieClip in Symbol 338 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 338 MovieClip Frame 4
stop();
Instance of Symbol 337 MovieClip in Symbol 338 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 356 MovieClip Frame 1
stop();
Instance of Symbol 345 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 356 MovieClip Frame 2
stop();
Instance of Symbol 350 MovieClip in Symbol 356 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 356 MovieClip Frame 3
stop();
Instance of Symbol 345 MovieClip in Symbol 356 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 356 MovieClip Frame 4
stop();
Instance of Symbol 355 MovieClip in Symbol 356 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 374 MovieClip Frame 1
stop();
Instance of Symbol 363 MovieClip in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 374 MovieClip Frame 2
stop();
Instance of Symbol 368 MovieClip in Symbol 374 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 374 MovieClip Frame 3
stop();
Instance of Symbol 363 MovieClip in Symbol 374 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 374 MovieClip Frame 4
stop();
Instance of Symbol 373 MovieClip in Symbol 374 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 381 MovieClip Frame 1
stop();
Instance of Symbol 377 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 381 MovieClip Frame 2
stop();
Instance of Symbol 380 MovieClip in Symbol 381 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 381 MovieClip Frame 3
stop();
Instance of Symbol 377 MovieClip in Symbol 381 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 381 MovieClip Frame 4
stop();
Symbol 388 MovieClip Frame 50
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
stop();
Symbol 389 MovieClip Frame 3
stop();
Symbol 389 MovieClip Frame 4
stop();
Symbol 427 MovieClip Frame 1
stop();
Instance of Symbol 416 MovieClip in Symbol 427 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 427 MovieClip Frame 2
stop();
Instance of Symbol 421 MovieClip in Symbol 427 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 427 MovieClip Frame 3
stop();
Instance of Symbol 416 MovieClip in Symbol 427 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 427 MovieClip Frame 4
stop();
Instance of Symbol 426 MovieClip in Symbol 427 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 445 MovieClip Frame 1
stop();
Instance of Symbol 434 MovieClip in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 445 MovieClip Frame 2
stop();
Instance of Symbol 439 MovieClip in Symbol 445 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 445 MovieClip Frame 3
stop();
Instance of Symbol 434 MovieClip in Symbol 445 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 445 MovieClip Frame 4
stop();
Instance of Symbol 444 MovieClip in Symbol 445 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 454 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 2
stop();
Symbol 454 MovieClip Frame 3
stop();
Symbol 454 MovieClip Frame 4
stop();
Symbol 454 MovieClip Frame 5
stop();
Symbol 454 MovieClip Frame 6
stop();
Symbol 454 MovieClip Frame 7
stop();
Symbol 455 MovieClip Frame 1
stop();
var blnKilled = 0;
Instance of Symbol 454 MovieClip in Symbol 455 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent._parent.nGoto + 1);
_parent._parent._parent.fBlastImgLoop();
}
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
stop();
Symbol 463 MovieClip Frame 3
stop();
Symbol 463 MovieClip Frame 4
stop();
Symbol 463 MovieClip Frame 5
stop();
Symbol 463 MovieClip Frame 6
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 2
stop();
Symbol 505 MovieClip Frame 1
function fLayBomb(pid, x, y, blength) {
duplicateMovieClip (eval ("movBomb" + pid), "BOMB" + nBombCount, 16384 + (nBombCount + 500));
eval ("BOMB" + nBombCount)._x = ((x * 30) - (nWidth / 2)) + 15;
eval ("BOMB" + nBombCount)._y = ((y * 30) - (nHeight / 2)) + 15;
eval ("BOMB" + nBombCount).x = x;
eval ("BOMB" + nBombCount).y = y;
eval ("BOMB" + nBombCount).nLaidBy = pid;
_root.arrGrid[x][y] = 3;
_root.arrGridNum[x][y] = nBombCount;
arrBombLastLaid[pid - 1] = 0;
arrBombLength[nBombCount] = blength;
arrBombX[nBombCount] = x;
arrBombY[nBombCount] = y;
nBombCount++;
if (nBombCount >= 25) {
nBombCount = 0;
}
}
function fPickUpBomb(pid, x, y) {
var nPickUpCount = _root.arrGridNum[x][y];
eval ("BOMB" + nPickUpCount).blnInHand = pid;
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
}
function fThrowBomb(pid, x, y, dir, bid) {
trace(pid);
eval ("BOMB" + bid).blnInHand = 0;
eval ("BOMB" + bid).blnThrown = dir;
eval ("BOMB" + bid).nLaidBy = pid;
}
function fComputerThrowBomb(pid, x, y, dir, bid) {
var nPickUpCount = _root.arrGridNum[x][y];
eval ("BOMB" + nPickUpCount).blnInHand = pid;
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
eval ("BOMB" + nPickUpCount)._x = eval ("movP" + pid)._x;
eval ("BOMB" + nPickUpCount)._y = eval ("movP" + pid)._y;
eval ("BOMB" + nPickUpCount).gotoAndStop(47);
eval ("BOMB" + nPickUpCount).blnThrown = dir;
eval ("BOMB" + nPickUpCount).nLaidBy = pid;
trace((eval ("BOMB" + nPickUpCount) + "--") + eval ("BOMB" + nPickUpCount).blnThrown);
}
function fKillPlayer(pid) {
if ((arrDead[pid - 1] == 0) && (arrInvincible[pid - 1] == 0)) {
duplicateMovieClip ("player1D", ("P" + pid) + "D", 16384 + (5010 + pid));
eval (("P" + pid) + "D")._x = eval ("movP" + pid)._x;
eval (("P" + pid) + "D")._y = eval ("movP" + pid)._y;
eval (("P" + pid) + "D").gotoAndStop(pid);
arrLives[pid - 1]--;
bl = 1;
while (bl < 6) {
if (bl <= arrLives[pid - 1]) {
_root.movTime[(("pl" + pid) + "_") + bl]._visible = true;
} else {
_root.movTime[(("pl" + pid) + "_") + bl]._visible = false;
}
bl++;
}
arrInvincible[pid - 1] = 75;
if (arrLives[pid - 1] == 0) {
arrDead[pid - 1] = 1;
eval (("_root.movFaces.movP" + pid) + "Dead")._alpha = 100;
removeMovieClip(eval ("movP" + pid));
}
}
}
function fBlastImgLoop(nX, nY, objThis) {
if (_root.nLevel == 2) {
var _local3 = Math.round((nX - player1.nStartX) / 30) + 1;
var _local4 = Math.round((nY - player1.nStartY) / 30) + 1;
if ((_root.arrGrid[_local3][_local4] <= -5) && (_root.arrGrid[_local3][_local4] > -11)) {
doFireLine = 1;
}
}
i = 1;
for(;;){
if (i >= 5) {
return(undefined);
}
if (arrDead[i - 1] == 0) {
if (objThis.hitTest("_parent.dot" + i) && (objThis.blnKilled != 1)) {
objThis.blnKilled = 1;
trace("bomb KILL player:" + i);
fKillPlayer(i);
}
}
i++;
};
}
function fTransportPlayer(pid, nid) {
if (eval ("movP" + pid).blnJustTransported == 0) {
eval ("movP" + pid).blnJustTransported = 1;
if (nid == 5) {
eval ("movP" + pid)._x = movTRAN66._x;
eval ("movP" + pid)._y = movTRAN66._y;
}
if (nid == 11) {
eval ("movP" + pid)._x = movTRAN60._x;
eval ("movP" + pid)._y = movTRAN60._y;
}
if (nid == 60) {
eval ("movP" + pid)._x = movTRAN11._x;
eval ("movP" + pid)._y = movTRAN11._y;
}
if (nid == 66) {
eval ("movP" + pid)._x = movTRAN5._x;
eval ("movP" + pid)._y = movTRAN5._y;
}
}
}
function fCheckInvincibility(pid, objThis) {
if (arrInvincible[pid - 1] > 0) {
arrInvincible[pid - 1]--;
if ((arrInvincible[pid - 1] / 3) == Math.round(arrInvincible[pid - 1] / 3)) {
objThis._alpha = 100;
} else {
objThis._alpha = 50;
}
return(undefined);
}
objThis._alpha = 100;
}
Instance of Symbol 243 MovieClip "movBomb1" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var blnInHand = 0;
var blnThrown = 0;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
var nFlightCount = 0;
}
onClipEvent (enterFrame) {
if (_name != "movBomb1") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
if (blnInHand == 0) {
if (blnThrown == 0) {
if (isMoving == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
}
} else {
nCount--;
if (nFlightCount <= 9) {
var bleft = -230;
var bright = 220;
var bbot = 180;
var btop = -190;
if (blnThrown == 1) {
_y = (_y - 10);
if (_y < btop) {
_y = bbot;
}
} else if (blnThrown == 2) {
_y = (_y + 10);
if (_y > bbot) {
_y = btop;
}
} else if (blnThrown == 3) {
_x = (_x - 10);
if (_x < bleft) {
_x = bright;
}
} else if (blnThrown == 4) {
_x = (_x + 10);
if (_x > bright) {
_x = bleft;
}
}
nFlightCount++;
if (nFlightCount == 9) {
if (_root.arrGrid[nGX][nGY] == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
} else {
nFlightCount = 7;
}
}
} else if (nFlightCount > 9) {
gotoAndStop (1);
blnThrown = 0;
nFlightCount == -1;
} else {
blnThrown = 0;
}
isMoving = 0;
}
} else {
nCount--;
_x = _parent.movP1._x;
_y = _parent.movP1._y;
gotoAndStop (47);
isMoving = 0;
}
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
if (((__reg0 = nDir)) === 1) {
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 2) {
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _root.gKickSpeed);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 3) {
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 4) {
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _root.gKickSpeed);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov1BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov1BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov1BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov1Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov1BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov1BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 246 MovieClip "mov2Blast1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 246 MovieClip "mov2Blast2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 254 MovieClip "movPUPS" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var puType;
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (_name != "movPUPS") {
i = 1;
while (i <= 4) {
if ((eval ("_parent.movP" + i).nGX == x) && (eval ("_parent.movP" + i).nGY == y)) {
thisX = eval ("_parent.movP" + i)._x;
thisY = eval ("_parent.movP" + i)._y;
if (((thisX / 30) == Math.round(thisX / 30)) && ((thisY / 30) == Math.round(thisY / 30))) {
if (((__reg0 = puType)) === 0) {
eval ("_parent.movP" + i).nLength++;
} else if (__reg0 === 1) {
if (eval ("_parent.movP" + i).nSpd < 4) {
eval ("_parent.movP" + i).nSpd++;
}
} else if (__reg0 === 2) {
eval ("_parent.movP" + i).nBombs++;
} else if (__reg0 === 3) {
eval ("_parent.movP" + i).canKick = 1;
} else if (__reg0 === 4) {
eval ("_parent.movP" + i).canThrow = 1;
}
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
if (_root.blnSFX) {
_root.sndPing.play();
}
this.removeMovieClip();
}
}
i++;
}
if (blnStatus == 0) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 257 MovieClip "mov2BlastEnd1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov2BlastEnd2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov2BlastEnd3" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov2BlastEnd4" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 263 MovieClip "movBomb2" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var blnInHand = 0;
var blnThrown = 0;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
var nFlightCount = 0;
}
onClipEvent (enterFrame) {
if (_name != "movBomb2") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
if (blnInHand == 0) {
if (blnThrown == 0) {
if (isMoving == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
}
} else {
trace(blnThrown);
nCount--;
if (nFlightCount <= 9) {
var bleft = -230;
var bright = 220;
var bbot = 180;
var btop = -190;
if (blnThrown == 1) {
_y = (_y - 10);
if (_y < btop) {
_y = bbot;
}
} else if (blnThrown == 2) {
_y = (_y + 10);
if (_y > bbot) {
_y = btop;
}
} else if (blnThrown == 3) {
_x = (_x - 10);
if (_x < bleft) {
_x = bright;
}
} else if (blnThrown == 4) {
_x = (_x + 10);
if (_x > bright) {
_x = bleft;
}
}
nFlightCount++;
if (nFlightCount == 9) {
if (_root.arrGrid[nGX][nGY] == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
} else {
nFlightCount = 7;
}
}
} else if (nFlightCount > 9) {
gotoAndStop (1);
blnThrown = 0;
nFlightCount == -1;
} else {
blnThrown = 0;
}
isMoving = 0;
}
} else {
nCount--;
_x = _parent.movP2._x;
_y = _parent.movP2._y;
gotoAndStop (47);
isMoving = 0;
}
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
if (((__reg0 = nDir)) === 1) {
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 2) {
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _root.gKickSpeed);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 3) {
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 4) {
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _root.gKickSpeed);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov2BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov2BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov2BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov2Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov2BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov2BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 263 MovieClip "movBomb4" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var blnInHand = 0;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
var nFlightCount = 0;
}
onClipEvent (enterFrame) {
if (_name != "movBomb4") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
if (blnThrown > 0) {
nCount--;
if (nFlightCount <= 9) {
var bleft = -230;
var bright = 220;
var bbot = 180;
var btop = -190;
if (blnThrown == 1) {
_y = (_y - 10);
if (_y < btop) {
_y = bbot;
}
} else if (blnThrown == 2) {
_y = (_y + 10);
if (_y > bbot) {
_y = btop;
}
} else if (blnThrown == 3) {
_x = (_x - 10);
if (_x < bleft) {
_x = bright;
}
} else if (blnThrown == 4) {
_x = (_x + 10);
if (_x > bright) {
_x = bleft;
}
}
nFlightCount++;
if (nFlightCount == 9) {
if (_root.arrGrid[nGX][nGY] == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
} else {
nFlightCount = 7;
}
}
} else if (nFlightCount > 9) {
gotoAndStop (1);
blnThrown = 0;
nFlightCount == -1;
} else {
blnThrown = 0;
}
isMoving = 0;
} else if (isMoving == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
}
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
if (((__reg0 = nDir)) === 1) {
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 2) {
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _root.gKickSpeed);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 3) {
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 4) {
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _root.gKickSpeed);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov3BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov3BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov3BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov3Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov3BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov3BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 263 MovieClip "movBomb3" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var nCount = 0;
var nLaidBy;
var thisNum = this._name.substr(4);
var isMoving = 0;
var nDir = 0;
var x;
var y;
var nGY;
var nGX;
var nFlightCount = 0;
}
onClipEvent (enterFrame) {
if (_name != "movBomb3") {
nCount++;
if (nCount <= (_parent.nBlowTime - 1)) {
nGX = Math.round((_x - _parent.player1.nStartX) / 30) + 1;
nGY = Math.round((_y - _parent.player1.nStartY) / 30) + 1;
if (blnThrown > 0) {
nCount--;
if (nFlightCount <= 9) {
var bleft = -230;
var bright = 220;
var bbot = 180;
var btop = -190;
if (blnThrown == 1) {
_y = (_y - 10);
if (_y < btop) {
_y = bbot;
}
} else if (blnThrown == 2) {
_y = (_y + 10);
if (_y > bbot) {
_y = btop;
}
} else if (blnThrown == 3) {
_x = (_x - 10);
if (_x < bleft) {
_x = bright;
}
} else if (blnThrown == 4) {
_x = (_x + 10);
if (_x > bright) {
_x = bleft;
}
}
nFlightCount++;
if (nFlightCount == 9) {
if (_root.arrGrid[nGX][nGY] == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
} else {
nFlightCount = 7;
}
}
} else if (nFlightCount > 9) {
gotoAndStop (1);
blnThrown = 0;
nFlightCount == -1;
} else {
blnThrown = 0;
}
isMoving = 0;
} else if (isMoving == 0) {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
_root.arrGrid[nGX][nGY] = 3;
_root.arrGridNum[nGX][nGY] = thisNum;
}
_parent.arrBombX[thisNum] = nGX;
_parent.arrBombY[thisNum] = nGY;
if (isMoving == 1) {
i = 0;
while (i < (_parent.nPUCount + 1)) {
if (this.hitTest("_parent.movPU" + i)) {
eval ("_parent.movPU" + i).blnStatus = 0;
}
i++;
}
if (((__reg0 = nDir)) === 1) {
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY + 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 2) {
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _root.gKickSpeed);
if (_root.arrGridNum[nGX - 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 3) {
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _root.gKickSpeed);
if (_root.arrGridNum[nGX][nGY - 1] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
} else {
isMoving = 0;
}
} else if (__reg0 === 4) {
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _root.gKickSpeed);
if (_root.arrGridNum[nGX + 1][nGY] == _root.arrGridNum[nGX][nGY]) {
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
} else {
isMoving = 0;
}
}
}
}
if ((nCount == (_parent.nBlowTime - 10)) && (!_parent.blnRoundOver)) {
play();
}
if ((nCount >= _parent.nBlowTime) && (!_parent.blnRoundOver)) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fKillPlayer(i);
}
}
i++;
}
}
if ((nCount == _parent.nBlowTime) && (!_parent.blnRoundOver)) {
gotoAndPlay (11);
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov4BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y - (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] - i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast1", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov4BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x;
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y + (30 * i);
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum] + i]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov4BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd3", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x - (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] - i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
i = 1;
while (i <= _parent.arrBombLength[thisNum]) {
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] <= 0) {
if (i < _parent.arrBombLength[thisNum]) {
duplicateMovieClip ("_parent.mov4Blast2", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
} else {
duplicateMovieClip ("_parent.mov4BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
}
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
} else if ((_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) || (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == -1)) {
duplicateMovieClip ("_parent.mov4BlastEnd4", "BLAST" + _parent.nBlastCount, 16384 + (600 + _parent.nBlastCount));
eval ("_parent.BLAST" + _parent.nBlastCount)._x = this._x + (30 * i);
eval ("_parent.BLAST" + _parent.nBlastCount)._y = this._y;
_parent.nBlastCount++;
if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 2) {
eval ("_parent.movBR" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
} else {
eval ("_parent.movPU" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).blnStatus = 0;
}
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 1) {
i = _parent.arrBombLength[thisNum] + 1;
} else if (_root.arrGrid[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]] == 3) {
if (eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount < (_parent.nBlowtime - 1)) {
eval ("_parent.BOMB" + _root.arrGridNum[_parent.arrBombX[thisNum] + i][_parent.arrBombY[thisNum]]).nCount = _parent.nBlowtime - 1;
}
i = _parent.arrBombLength[thisNum] + 1;
}
i++;
}
}
if (_parent.nBlastCount > 100) {
_parent.nBlastCount = 0;
}
if (nCount == (_parent.nBlowTime + _parent.nFadeTime)) {
eval ("_parent.movP" + nLaidBy).nBombsLaid--;
_root.arrGrid[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
_root.arrGridNum[_parent.arrBombX[thisNum]][_parent.arrBombY[thisNum]] = 0;
this.removeMovieClip();
}
}
}
Instance of Symbol 246 MovieClip "mov3Blast1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 246 MovieClip "mov3Blast2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov3BlastEnd1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov3BlastEnd2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov3BlastEnd3" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov3BlastEnd4" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 246 MovieClip "mov4Blast1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 246 MovieClip "mov4Blast2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov4BlastEnd1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov4BlastEnd2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov4BlastEnd3" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov4BlastEnd4" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 271 MovieClip "movBlock2_2" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 273 MovieClip "movBlock2_1" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 279 MovieClip "movBlock2_3" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 302 MovieClip "player1" in Symbol 505 MovieClip Frame 1
onClipEvent (keyDown) {
if (_name != "player1") {
K = Key.getCode();
if (K == 38) {
up = 1;
}
if (K == 40) {
down = 1;
}
if (K == 37) {
left = 1;
}
if (K == 39) {
right = 1;
}
if ((_root.nPlayers == 1) && (K == 32)) {
K = 186;
}
if (K == 186) {
if (canThrow != 0) {
if ((_root.arrGrid[nGX][nGY] <= 0) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(1, nGX, nGY, nLength);
nBombsLaid++;
} else if ((_root.arrGrid[nGX][nGY] == 3) && (canThrow == 1)) {
canThrow = 0;
nBombInHand = _root.arrGridNum[nGX][nGY];
_parent.fPickUpBomb(1, nGX, nGY);
}
}
}
}
}
onClipEvent (keyUp) {
if (_name != "player1") {
K = Key.getCode();
if (K == 38) {
up = 0;
}
if (K == 40) {
down = 0;
}
if (K == 37) {
left = 0;
}
if (K == 39) {
right = 0;
}
if ((_root.nPlayers == 1) && (K == 32)) {
K = 186;
}
if ((K == 186) && (canThrow == 0)) {
_parent.fThrowBomb(1, nGX, nGY, nDirection, nBombInHand);
canThrow = 1;
nBombInHand = 0;
}
}
}
onClipEvent (load) {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = (((-_parent.nHeight) / 2) + 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
var blnJustTransported = 0;
var nTranCount = 0;
if (_name != "player1") {
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x + 0);
_y = (_y + 120);
}
}
}
onClipEvent (enterFrame) {
if (_name != "player1") {
_parent.fCheckInvincibility(1, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 1;
nLagX = (nStartX + (30 * (nGX - 1))) - _x;
nLagY = (nStartY + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 320 MovieClip "player2" in Symbol 505 MovieClip Frame 1
onClipEvent (keyDown) {
if (_name != "player2") {
K = Key.getCode();
if (K == 87) {
up = 1;
}
if (K == 83) {
down = 1;
}
if (K == 65) {
left = 1;
}
if (K == 68) {
right = 1;
}
if (K == 220) {
if (canThrow != 0) {
if ((_root.arrGrid[nGX][nGY] <= 0) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
nBombsLaid++;
} else if ((_root.arrGrid[nGX][nGY] == 3) && (canThrow == 1)) {
canThrow = 0;
nBombInHand = _root.arrGridNum[nGX][nGY];
_parent.fPickUpBomb(2, nGX, nGY);
}
}
}
}
}
onClipEvent (keyUp) {
if (_name != "player2") {
K = Key.getCode();
if (K == 87) {
up = 0;
}
if (K == 83) {
down = 0;
}
if (K == 65) {
left = 0;
}
if (K == 68) {
right = 0;
}
if ((K == 220) && (canThrow == 0)) {
_parent.fThrowBomb(2, nGX, nGY, nDirection, nBombInHand);
canThrow = 1;
nBombInHand = 0;
}
}
}
onClipEvent (load) {
if (_name != "player2") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
var blnJustTransported = 0;
var nTranCount = 0;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 60);
_y = (_y - 60);
}
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "player2") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 246 MovieClip "mov1Blast1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 246 MovieClip "mov1Blast2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov1BlastEnd1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov1BlastEnd2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov1BlastEnd3" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 257 MovieClip "mov1BlastEnd4" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 320 MovieClip "computer2" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 338 MovieClip "computer2_1" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_1") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_1") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_1") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 356 MovieClip "computer2_2" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_2") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_2") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_2") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 320 MovieClip "computer2_3" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_3") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_3") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_3") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 302 MovieClip "computer2_4" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_4") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_4") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_4") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 374 MovieClip "computer2_5" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_5") {
if (_root.enemyspeed > 0) {
var nSpd = _root.enemyspeed;
} else {
var nSpd = _root.gStartingSpd;
}
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_5") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_5") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 381 MovieClip "computer2_7" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_7") {
if (_root.enemyspeed > 0) {
var nSpd = _root.enemyspeed;
} else {
var nSpd = _root.gStartingSpd;
}
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_7") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_7") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 391 MovieClip "dot1" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP1._x;
_y = _parent.movP1._y;
_alpha = 0;
}
Instance of Symbol 391 MovieClip "dot2" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP2._x;
_y = _parent.movP2._y;
_alpha = 0;
}
Instance of Symbol 391 MovieClip "dot3" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP3._x;
_y = _parent.movP3._y;
_alpha = 0;
}
Instance of Symbol 391 MovieClip "dot4" in Symbol 505 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP4._x;
_y = _parent.movP4._y;
_alpha = 0;
}
Instance of Symbol 395 MovieClip "movBlock2_4" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 399 MovieClip "movBlock2_5" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 403 MovieClip "movBlock2_6" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 399 MovieClip "movBlock2_7" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 407 MovieClip "movBlock2_8" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var x;
var y;
}
onClipEvent (enterFrame) {
if (blnStatus == 0) {
nCount++;
}
if (nCount == _parent.nFadeTime) {
_root.arrGrid[x][y] = 0;
_root.arrGridNum[x][y] = 0;
_parent.fPowerUp(x, y);
this.removeMovieClip();
}
}
Instance of Symbol 356 MovieClip "computer3" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer3") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x + 90);
_y = (_y - 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer3") {
_parent.fCheckInvincibility(3, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[2]++;
if ((_parent.arrBombLastLaid[2] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(11) == 5) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[2] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 3)) {
if ((random(22 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(15) == 6) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer3") {
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 302 MovieClip "computer3_4" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer3_4") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x + 90);
_y = (_y - 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer3_4") {
_parent.fCheckInvincibility(3, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[2]++;
if ((_parent.arrBombLastLaid[2] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(11) == 5) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[2] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 3)) {
if ((random(22 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(15) == 6) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer3_4") {
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 374 MovieClip "computer3_5" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer3_5") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x + 90);
_y = (_y - 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer3_5") {
_parent.fCheckInvincibility(3, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[2]++;
if ((_parent.arrBombLastLaid[2] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(11) == 5) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[2] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 3)) {
if ((random(22 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(15) == 6) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer3_5") {
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 381 MovieClip "computer3_7" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer3_7") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x + 90);
_y = (_y - 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer3_7") {
_parent.fCheckInvincibility(3, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[2]++;
if ((_parent.arrBombLastLaid[2] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(11) == 5) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[2] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 3)) {
if ((random(22 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(15) == 6) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer3_7") {
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 381 MovieClip "computer3_8" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer3_8") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x + 90);
_y = (_y - 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer3_8") {
_parent.fCheckInvincibility(3, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[2]++;
if ((_parent.arrBombLastLaid[2] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(11) == 5) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[2] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 3)) {
if ((random(22 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(15) == 6) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer3_8") {
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 374 MovieClip "computer4" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer4") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = (((-_parent.nHeight) / 2) + 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 90);
_y = (_y + 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer4") {
_parent.fCheckInvincibility(4, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[3]++;
if ((_parent.arrBombLastLaid[3] == Math.round(300 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(5) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[3] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 4)) {
if ((random(18 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(3) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer4") {
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 1;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 381 MovieClip "computer4_7" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer4_7") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = (((-_parent.nHeight) / 2) + 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 90);
_y = (_y + 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer4_7") {
_parent.fCheckInvincibility(4, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[3]++;
if ((_parent.arrBombLastLaid[3] == Math.round(300 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(5) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[3] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 4)) {
if ((random(18 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(3) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer4_7") {
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 1;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 427 MovieClip "computer2_6" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_6") {
if (_root.enemyspeed > 0) {
var nSpd = _root.enemyspeed;
} else {
var nSpd = _root.gStartingSpd;
}
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_6") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_6") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 427 MovieClip "computer3_6" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer3_6") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = (((-_parent.nWidth) / 2) + 45);
var nStartY = ((_parent.nHeight / 2) - 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x + 90);
_y = (_y - 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer3_6") {
_parent.fCheckInvincibility(3, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[2]++;
if ((_parent.arrBombLastLaid[2] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(11) == 5) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[2] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 3)) {
if ((random(22 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(3, nGX, nGY, nLength);
if ((random(15) == 6) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(3, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer3_6") {
nGX = Math.round((_x - nStartX) / 30) + 1;
nGY = Math.round((_y - nStartY) / 30) + 11;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 427 MovieClip "computer4_6" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer4_6") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = (((-_parent.nHeight) / 2) + 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 90);
_y = (_y + 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer4_6") {
_parent.fCheckInvincibility(4, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[3]++;
if ((_parent.arrBombLastLaid[3] == Math.round(300 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(5) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[3] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 4)) {
if ((random(18 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(3) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer4_6") {
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 1;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 445 MovieClip "computer2_8" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer2_8") {
if (_root.enemyspeed > 0) {
var nSpd = _root.enemyspeed;
} else {
var nSpd = _root.gStartingSpd;
}
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nStartX = ((_parent.nWidth / 2) - 15);
var nStartY = ((_parent.nHeight / 2) + 15);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 0);
_y = (_y - 120);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer2_8") {
_parent.fCheckInvincibility(2, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[1]++;
if ((_parent.arrBombLastLaid[1] == Math.round(350 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[1] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 2)) {
if (random(12 / _root.gOppoMadnessFactor) == 1) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if ((_root.arrGrid[nGX][nGY - i] <= -5) && (_root.arrGrid[nGX][nGY - i] > -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] <= -5) && (_root.arrGrid[nGX][nGY + i] > -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] <= -5) && (_root.arrGrid[nGX - i][nGY] > -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] <= -5) && (_root.arrGrid[nGX + i][nGY] > -11)) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(2, nGX, nGY, nLength);
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
up = 1;
} else if (__reg0 === 2) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 2;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
down = 1;
} else if (__reg0 === 3) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 3;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
left = 1;
} else if (__reg0 === 4) {
if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 4;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
right = 1;
}
}
}
}
if (_name != "computer2_8") {
nGX = Math.round((_x - nStartX) / 30) + 14;
nGY = Math.round((_y - nStartY) / 30) + 13;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 427 MovieClip "computer4_8" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
if (_name != "computer4_8") {
var nSpd = _root.gStartingSpd;
var nLength = _root.gStartingLength;
var nBombs = _root.gStartingBombs;
var nBombsLaid = 0;
var canKick = _root.gCanKick;
var canThrow = _root.gCanThrow;
var nBombInHand = 0;
var nDirection = 1;
var nStartX = ((_parent.nWidth / 2) - 45);
var nStartY = (((-_parent.nHeight) / 2) + 45);
var nGX;
var nGY;
var nLagX;
var nLagY;
_x = nStartX;
_y = nStartY;
if (_root.nLevel == 2) {
_x = (_x - 90);
_y = (_y + 0);
}
var arrChoices = new Array();
var isBombUp = 0;
var isBombDown = 0;
var isBombLeft = 0;
var isBombRight = 0;
var justLaid = 0;
var blnJustTransported = 0;
var nTranCount = 0;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_name != "computer4_8") {
_parent.fCheckInvincibility(4, this);
if (blnJustTransported == 1) {
nTranCount++;
if (nTranCount == 24) {
blnJustTransported = 0;
nTranCount = 0;
}
}
_parent.arrBombLastLaid[3]++;
if ((_parent.arrBombLastLaid[3] == Math.round(300 / _root.gOppoMadnessFactor)) && (nBombsLaid < nBombs)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(5) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
i = 1;
while (i < 5) {
if (((((((_parent.arrBombLastLaid[3] > 10) && (nGX >= (eval ("_parent.movP" + i).nGX - 3))) && (nGX <= (eval ("_parent.movP" + i).nGX + 3))) && (nGY >= (eval ("_parent.movP" + i).nGY - 3))) && (nGY <= (eval ("_parent.movP" + i).nGY + 3))) && (nBombsLaid < nBombs)) && (i != 4)) {
if ((random(18 / _root.gOppoMadnessFactor) == 1) && (canThrow == 1)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if (random(3) == 1) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
}
i++;
}
if (((_y % 30) == 0) && ((_x % 30) == 0)) {
isBombUp = 0;
isBombDown = 0;
isBombLeft = 0;
isBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if ((_root.arrGrid[nGX][nGY - i] == 3) || (_root.arrGrid[nGX][nGY - i] == -11)) {
isBombUp = 1;
}
if ((_root.arrGrid[nGX][nGY + i] == 3) || (_root.arrGrid[nGX][nGY + i] == -11)) {
isBombDown = 1;
}
if ((_root.arrGrid[nGX - i][nGY] == 3) || (_root.arrGrid[nGX - i][nGY] == -11)) {
isBombLeft = 1;
}
if ((_root.arrGrid[nGX + i][nGY] == 3) || (_root.arrGrid[nGX + i][nGY] == -11)) {
isBombRight = 1;
}
if (((_root.nLevel == 2) && (random(2) == 1)) && ((((isBombUp + isBombDown) + isBombLeft) + isBombRight) == 0)) {
if (_root.arrGrid[nGX][nGY - i] <= -5) {
isBombUp = 1;
}
if (_root.arrGrid[nGX][nGY + i] <= -5) {
isBombDown = 1;
}
if (_root.arrGrid[nGX - i][nGY] <= -5) {
isBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY] <= -5) {
isBombRight = 1;
}
}
i++;
}
var nAnyBombs = (((isBombUp + isBombDown) + isBombLeft) + isBombRight);
var isABombLeft = 0;
var isABombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY - 1] == 3) {
isABombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY - 1] == 3) {
isABombRight = 1;
}
i++;
}
var nAnyABombs = (isABombLeft + isABombRight);
var isBBombLeft = 0;
var isBBombRight = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - i][nGY + 1] == 3) {
isBBombLeft = 1;
}
if (_root.arrGrid[nGX + i][nGY + 1] == 3) {
isBBombRight = 1;
}
i++;
}
var nAnyBBombs = (isBBombLeft + isBBombRight);
var isCBombUp = 0;
var isCBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX - 1][nGY - i] == 3) {
isCBombUp = 1;
}
if (_root.arrGrid[nGX - 1][nGY + i] == 3) {
isCBombDown = 1;
}
i++;
}
var nAnyCBombs = (isCBombUp + isCBombDown);
var isDBombUp = 0;
var isDBombDown = 0;
i = 1;
while (i <= (nLength + 1)) {
if (_root.arrGrid[nGX + 1][nGY - i] == 3) {
isDBombUp = 1;
}
if (_root.arrGrid[nGX + 1][nGY + i] == 3) {
isDBombDown = 1;
}
i++;
}
var nAnyDBombs = (isDBombUp + isDBombDown);
if (((random(20) == 2) || (justLaid)) || (nAnyBombs > 0)) {
justLaid = 0;
nLen = 0;
arrChoices = new Array();
if (((_root.arrGrid[nGX][nGY - 1] <= 0) && (down != 1)) && (!isBombUp)) {
arrChoices[nLen] = 1;
nLen++;
}
if (((_root.arrGrid[nGX][nGY + 1] <= 0) && (up != 1)) && (!isBombDown)) {
arrChoices[nLen] = 2;
nLen++;
}
if (((_root.arrGrid[nGX - 1][nGY] <= 0) && (right != 1)) && (!isBombLeft)) {
arrChoices[nLen] = 3;
nLen++;
}
if (((_root.arrGrid[nGX + 1][nGY] <= 0) && (left != 1)) && (!isBombRight)) {
arrChoices[nLen] = 4;
nLen++;
}
var nChoice = arrChoices[random(nLen)];
if ((((arrChoices.length == 0) && (nBombsLaid < nBombs)) && (_root.arrGrid[nGX][nGY] == 0)) && ((((nAnyABombs + nAnyBBombs) + nAnyCBombs) + nAnyDBombs) == 0)) {
_parent.fLayBomb(4, nGX, nGY, nLength);
if ((random(3) == 1) && (canThrow == 1)) {
canThrow = 0;
_parent.fComputerThrowBomb(4, nGX, nGY, nDirection, 0);
}
justLaid = 1;
nBombsLaid++;
}
up = 0;
down = 0;
left = 0;
right = 0;
if (((__reg0 = nChoice)) === 1) {
up = 1;
} else if (__reg0 === 2) {
down = 1;
} else if (__reg0 === 3) {
left = 1;
} else if (__reg0 === 4) {
right = 1;
}
}
}
}
if (_name != "computer4_8") {
nGX = Math.round((_x - nStartX) / 30) + 13;
nGY = Math.round((_y - nStartY) / 30) + 1;
nLagX = (-180 + (30 * (nGX - 1))) - _x;
nLagY = (-150 + (30 * (nGY - 1))) - _y;
if (up == 1) {
gotoAndStop (4);
nDirection = 1;
if (((_root.arrGrid[nGX][nGY - 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyABombs == 0) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY - 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY - 1]).nDir = 1;
_root.arrGrid[nGX][nGY - 1] = 0;
_root.arrGridNum[nGX][nGY - 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY - 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (down == 1) {
gotoAndStop (2);
nDirection = 2;
if (((_root.arrGrid[nGX][nGY + 1] <= 0) || ((_y % 30) != 0)) && ((_x % 30) == 0)) {
if (nAnyBBombs == 0) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX][nGY + 1] == 3) || ((_y % 30) != 0))) && ((_x % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX][nGY + 1]).nDir = 3;
_root.arrGrid[nGX][nGY + 1] = 0;
_root.arrGridNum[nGX][nGY + 1] = 0;
}
if ((left != 1) && (right != 1)) {
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagX > 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX][nGY + 1] <= 0) && (nLagX < 0)) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
}
}
if (left == 1) {
gotoAndStop (3);
nDirection = 3;
if (((_root.arrGrid[nGX - 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyCBombs == 0) {
_x = (_x - _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX - 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX - 1][nGY]).nDir = 4;
_root.arrGrid[nGX - 1][nGY] = 0;
_root.arrGridNum[nGX - 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX - 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
if (right == 1) {
gotoAndStop (1);
nDirection = 4;
if (((_root.arrGrid[nGX + 1][nGY] <= 0) || ((_x % 30) != 0)) && ((_y % 30) == 0)) {
if (nAnyDBombs == 0) {
_x = (_x + _parent.arrSpeeds[nSpd]);
}
} else if (((canKick == 1) && ((_root.arrGrid[nGX + 1][nGY] == 3) || ((_x % 30) != 0))) && ((_y % 30) == 0)) {
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).isMoving = 1;
eval ("_parent.BOMB" + _root.arrGridNum[nGX + 1][nGY]).nDir = 2;
_root.arrGrid[nGX + 1][nGY] = 0;
_root.arrGridNum[nGX + 1][nGY] = 0;
}
if ((up != 1) && (down != 1)) {
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY < 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY - 1] <= 0) && (nLagY > 0)) {
_y = (_y - _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY] <= 0) && (nLagY > 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
if ((_root.arrGrid[nGX + 1][nGY + 1] <= 0) && (nLagY < 0)) {
_y = (_y + _parent.arrSpeeds[nSpd]);
}
}
}
}
}
Instance of Symbol 463 MovieClip "movFireLine" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var blnStatus = 1;
var nCount = 0;
var nFLType;
var nGoto;
var x;
var y;
}
onClipEvent (enterFrame) {
if (_parent.doFireLine == 0) {
movFLBlast.gotoAndStop(1);
_root.arrGrid[x][y] = nFLType;
} else {
movFLBlast.gotoAndStop(2);
_parent.fBlastImgLoop(_x, y, this);
_root.arrGrid[x][y] = -11;
}
}
Instance of Symbol 504 MovieClip "movTransporter" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
var x;
var y;
var nTranID;
}
onClipEvent (enterFrame) {
i = 1;
while (i < 5) {
if (_parent.arrDead[i - 1] == 0) {
if (this.hitTest("_parent.dot" + i)) {
_parent.fTransportPlayer(i, nTranID);
}
}
i++;
}
}
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 515 MovieClip Frame 3
stop();
Symbol 515 MovieClip Frame 4
stop();
Symbol 515 MovieClip Frame 5
stop();
Symbol 515 MovieClip Frame 6
stop();
Symbol 515 MovieClip Frame 7
stop();
Symbol 515 MovieClip Frame 8
stop();
Symbol 515 MovieClip Frame 9
stop();
Symbol 515 MovieClip Frame 10
stop();
Symbol 515 MovieClip Frame 11
stop();
Symbol 515 MovieClip Frame 12
stop();
Symbol 515 MovieClip Frame 13
stop();
Symbol 515 MovieClip Frame 14
stop();
Symbol 515 MovieClip Frame 15
stop();
Symbol 515 MovieClip Frame 16
stop();
Symbol 515 MovieClip Frame 17
stop();
Symbol 515 MovieClip Frame 18
stop();
Symbol 515 MovieClip Frame 19
stop();
Symbol 515 MovieClip Frame 20
stop();
Symbol 515 MovieClip Frame 21
stop();
Symbol 515 MovieClip Frame 22
stop();
Symbol 515 MovieClip Frame 23
stop();
Symbol 515 MovieClip Frame 24
stop();
Symbol 515 MovieClip Frame 25
stop();
Symbol 515 MovieClip Frame 26
stop();
Symbol 515 MovieClip Frame 27
stop();
Symbol 515 MovieClip Frame 28
stop();
Symbol 515 MovieClip Frame 29
stop();
Symbol 515 MovieClip Frame 30
stop();
Symbol 515 MovieClip Frame 31
stop();
Symbol 515 MovieClip Frame 32
stop();
Symbol 515 MovieClip Frame 33
stop();
Symbol 515 MovieClip Frame 34
stop();
Symbol 515 MovieClip Frame 35
stop();
Symbol 515 MovieClip Frame 36
stop();
Symbol 515 MovieClip Frame 37
stop();
Symbol 515 MovieClip Frame 38
stop();
Symbol 515 MovieClip Frame 39
stop();
Symbol 515 MovieClip Frame 40
stop();
Symbol 515 MovieClip Frame 41
stop();
Symbol 515 MovieClip Frame 42
stop();
Symbol 515 MovieClip Frame 43
stop();
Symbol 515 MovieClip Frame 44
stop();
Symbol 515 MovieClip Frame 45
stop();
Symbol 515 MovieClip Frame 46
stop();
Symbol 515 MovieClip Frame 47
stop();
Symbol 515 MovieClip Frame 48
stop();
Symbol 515 MovieClip Frame 49
stop();
Symbol 515 MovieClip Frame 50
stop();
Symbol 515 MovieClip Frame 51
stop();
Symbol 515 MovieClip Frame 52
stop();
Symbol 515 MovieClip Frame 53
stop();
Symbol 515 MovieClip Frame 54
stop();
Symbol 515 MovieClip Frame 55
stop();
Symbol 515 MovieClip Frame 56
stop();
Symbol 515 MovieClip Frame 57
stop();
Symbol 515 MovieClip Frame 58
stop();
Symbol 515 MovieClip Frame 59
stop();
Symbol 515 MovieClip Frame 60
stop();
Symbol 515 MovieClip Frame 61
stop();
Symbol 515 MovieClip Frame 62
stop();
Symbol 515 MovieClip Frame 63
stop();
Symbol 515 MovieClip Frame 64
stop();
Symbol 515 MovieClip Frame 65
stop();
Symbol 515 MovieClip Frame 66
stop();
Symbol 515 MovieClip Frame 67
stop();
Symbol 515 MovieClip Frame 68
stop();
Symbol 515 MovieClip Frame 69
stop();
Symbol 515 MovieClip Frame 70
stop();
Symbol 515 MovieClip Frame 71
stop();
Symbol 515 MovieClip Frame 72
stop();
Symbol 515 MovieClip Frame 73
stop();
Symbol 515 MovieClip Frame 74
stop();
Symbol 515 MovieClip Frame 75
stop();
Symbol 515 MovieClip Frame 76
stop();
Symbol 515 MovieClip Frame 77
stop();
Symbol 515 MovieClip Frame 78
stop();
Symbol 515 MovieClip Frame 79
stop();
Symbol 515 MovieClip Frame 80
stop();
Symbol 515 MovieClip Frame 81
stop();
Symbol 515 MovieClip Frame 82
stop();
Symbol 515 MovieClip Frame 83
stop();
Symbol 515 MovieClip Frame 84
stop();
Symbol 515 MovieClip Frame 85
stop();
Symbol 515 MovieClip Frame 86
stop();
Symbol 515 MovieClip Frame 87
stop();
Symbol 515 MovieClip Frame 88
stop();
Symbol 515 MovieClip Frame 89
stop();
Symbol 515 MovieClip Frame 90
stop();
Symbol 515 MovieClip Frame 91
stop();
Symbol 515 MovieClip Frame 92
stop();
Symbol 515 MovieClip Frame 93
stop();
Symbol 515 MovieClip Frame 94
stop();
Symbol 515 MovieClip Frame 95
stop();
Symbol 515 MovieClip Frame 96
stop();
Symbol 515 MovieClip Frame 97
stop();
Symbol 515 MovieClip Frame 98
stop();
Symbol 515 MovieClip Frame 99
stop();
Symbol 515 MovieClip Frame 100
stop();
Symbol 515 MovieClip Frame 101
stop();
Symbol 515 MovieClip Frame 102
stop();
Symbol 515 MovieClip Frame 103
stop();
Symbol 515 MovieClip Frame 104
stop();
Symbol 515 MovieClip Frame 105
stop();
Symbol 515 MovieClip Frame 106
stop();
Symbol 515 MovieClip Frame 107
stop();
Symbol 515 MovieClip Frame 108
stop();
Symbol 515 MovieClip Frame 109
stop();
Symbol 515 MovieClip Frame 110
stop();
Symbol 515 MovieClip Frame 111
stop();
Symbol 515 MovieClip Frame 112
stop();
Symbol 515 MovieClip Frame 113
stop();
Symbol 515 MovieClip Frame 114
stop();
Symbol 515 MovieClip Frame 115
stop();
Symbol 515 MovieClip Frame 116
stop();
Symbol 515 MovieClip Frame 117
stop();
Symbol 515 MovieClip Frame 118
stop();
Symbol 515 MovieClip Frame 119
stop();
Symbol 515 MovieClip Frame 120
stop();
Symbol 515 MovieClip Frame 121
stop();
Symbol 515 MovieClip Frame 122
stop();
Symbol 515 MovieClip Frame 123
stop();
Symbol 515 MovieClip Frame 124
stop();
Symbol 515 MovieClip Frame 125
stop();
Symbol 515 MovieClip Frame 126
stop();
Symbol 515 MovieClip Frame 127
stop();
Symbol 515 MovieClip Frame 128
stop();
Symbol 515 MovieClip Frame 129
stop();
Symbol 515 MovieClip Frame 130
stop();
Symbol 515 MovieClip Frame 131
stop();
Symbol 515 MovieClip Frame 132
stop();
Symbol 515 MovieClip Frame 133
stop();
Symbol 515 MovieClip Frame 134
stop();
Symbol 515 MovieClip Frame 135
stop();
Symbol 515 MovieClip Frame 136
stop();
Symbol 515 MovieClip Frame 137
stop();
Symbol 515 MovieClip Frame 138
stop();
Symbol 515 MovieClip Frame 139
stop();
Symbol 515 MovieClip Frame 140
stop();
Symbol 515 MovieClip Frame 141
stop();
Symbol 515 MovieClip Frame 142
stop();
Symbol 515 MovieClip Frame 143
stop();
Symbol 515 MovieClip Frame 144
stop();
Symbol 515 MovieClip Frame 145
stop();
Symbol 515 MovieClip Frame 146
stop();
Symbol 515 MovieClip Frame 147
stop();
Symbol 515 MovieClip Frame 148
stop();
Symbol 515 MovieClip Frame 149
stop();
Symbol 515 MovieClip Frame 150
stop();
Symbol 515 MovieClip Frame 151
stop();
Symbol 515 MovieClip Frame 152
stop();
Symbol 515 MovieClip Frame 153
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 2
stop();
Symbol 544 MovieClip Frame 3
stop();
Symbol 548 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
_root.gotoAndStop(13);
}
Symbol 552 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
_root.gotoAndStop(15);
}
Symbol 554 Button
on (press) {
getURL (("http://www.4v4.com/games-for-your-website.html?utm_medium=brandedgames_external&utm_campaign=bomberchamp&utm_source=" + _root.domainpl) + "&utm_content=addforyourwebsite", "_blank");
}