Frame 1
stop();
Frame 2
_focusrect = 0;
_quality = "low";
nBytesTotal = _root.getBytesTotal();
nBytesLoaded = _root.getBytesLoaded();
nPercentLoaded = int((nBytesLoaded / nBytesTotal) * 100);
txtLoaded = nPercentLoaded + "%";
if (nBytesLoaded >= nBytesTotal) {
var blnSFX = 1;
var blnMusic = 1;
gotoAndPlay ("GAP");
}
Frame 3
gotoAndPlay ("LOADING");
Frame 7
getURL ("javascript:document.playingwithfire2.SetVariable('_level0.strCookies',(document.cookie) ? parseCookie(document.cookie) : '');");
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
stop();
var nPlayers = 1;
var nOppos = 1;
if (_root.blnMusic == 1) {
sndMusic0.gotoAndPlay(2);
sndMusic2.gotoAndPlay(4);
}
var strUsername = strCookieName;
var strEmail = strCookieEmail;
txtName = "YOU ARE LOGGED IN AS: " + tmpArr[0];
Instance of Symbol 29 MovieClip "movRegisterNow" in Frame 13
onClipEvent (load) {
if (_root.strUsername == "Guest") {
_visible = true;
} else {
_visible = false;
}
}
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
var nLevel;
stop();
Frame 16
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(4);
sndMusic2.gotoAndPlay(2);
}
var nGridWidth = 15;
var nGridHeight = 13;
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) {
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[13][1] = 0;
arrGrid[13][2] = 0;
arrGrid[13][3] = 0;
arrGrid[12][1] = 0;
arrGrid[11][1] = 0;
arrGrid[13][11] = 0;
arrGrid[13][10] = 0;
arrGrid[13][9] = 0;
arrGrid[12][11] = 0;
arrGrid[11][11] = 0;
arrGrid[1][11] = 0;
arrGrid[2][11] = 0;
arrGrid[3][11] = 0;
arrGrid[1][10] = 0;
arrGrid[1][9] = 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) {
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) {
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][3] = -4;
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[11][3] = -4;
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][9] = -4;
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][9] = -4;
arrGrid[3][10] = 0;
arrGrid[2][9] = 0;
arrGrid[1][8] = 0;
arrGrid[1][9] = 0;
arrGrid[1][10] = 0;
arrGrid[1][11] = 0;
}
if (nLevel == 4) {
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++;
}
}
Instance of Symbol 93 MovieClip "music" in Frame 16
onClipEvent (load) {
if (_root.blnMusic == 0) {
gotoAndStop (2);
}
}
Instance of Symbol 98 MovieClip "sound" in Frame 16
onClipEvent (load) {
if (_root.blnSFX == 0) {
gotoAndStop (2);
}
}
Instance of Symbol 104 MovieClip in Frame 16
onClipEvent (load) {
if (_root.nOppos == 2) {
gotoAndStop (2);
} else if (_root.nOppos == 3) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Frame 17
_quality = "low";
stop();
Instance of Symbol 363 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, 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, 3, 3, 3);
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;
i = 0;
while (i < _root.nGridWidth) {
j = 0;
while (j < _root.nGridHeight) {
switch (_root.arrGrid[i][j]) {
case 0 :
break;
case 1 :
duplicateMovieClip ("movBlock1", "movB" + nBlockCount, 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++;
break;
case 2 :
duplicateMovieClip ("movBlock2", "movBR" + nBrickCount, 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++;
break;
case -4 :
duplicateMovieClip ("movTransporter", "movTRAN" + nBrickCount, 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++;
break;
case -5 :
case -6 :
case -7 :
case -8 :
case -9 :
case -10 :
if (nFLCountStart == -1) {
nFLCountStart = nBrickCount;
}
nTotalFL++;
duplicateMovieClip ("movFireLine", "movFL" + nBrickCount, 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", 5000);
if (_root.nPlayers == 2) {
duplicateMovieClip ("player2", "movP2", 5001);
} else {
duplicateMovieClip ("computer2", "movP2", 5001);
}
if (_root.nOppos >= 2) {
duplicateMovieClip ("computer3", "movP3", 5002);
}
if (_root.nOppos >= 3) {
duplicateMovieClip ("computer4", "movP4", 5003);
}
}
onClipEvent (enterFrame) {
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)) {
switch (nFillDir) {
case 1 :
nFillRow++;
if (nFillRow > (13 - nWallCount)) {
nFillDir++;
}
break;
case 2 :
nFillCol++;
if (nFillCol > (11 - nWallCount)) {
nFillDir++;
}
break;
case 3 :
nFillRow--;
if (nFillRow <= (0 + nWallCount)) {
nFillDir++;
}
break;
case 4 :
nFillCol--;
if (nFillCol > (1 + nWallCount)) {
break;
}
nFillDir = 1;
nWallCount++;
}
duplicateMovieClip ("movBlock1", "movF" + nFillCount, 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) {
switch (nFillDir) {
case 1 :
nFillRow++;
if (nFillRow > (13 - nWallCount)) {
nFillDir++;
}
break;
case 2 :
nFillCol++;
if (nFillCol > (11 - nWallCount)) {
nFillDir++;
}
break;
case 3 :
nFillRow--;
if (nFillRow <= (0 + nWallCount)) {
nFillDir++;
}
break;
case 4 :
nFillCol--;
if (nFillCol > (1 + nWallCount)) {
break;
}
nFillDir = 1;
nWallCount++;
}
if (_root.arrGridFill[nFillRow][nFillCol] == 1) {
duplicateMovieClip ("movBlock1", "movF" + nFillCount, nFillCount + 5050);
} else {
duplicateMovieClip ("movBlock4", "movF" + nFillCount, 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 371 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 376 MovieClip "movFaces" in Frame 17
onClipEvent (load) {
movP1Dead._alpha = 0;
movP2Dead._alpha = 0;
movP3Dead._alpha = 0;
movP4Dead._alpha = 0;
}
Instance of Symbol 383 MovieClip "movWhatGame" in Frame 17
onClipEvent (load) {
gotoAndStop(_root.nHeat);
}
Frame 18
if (_root.blnMusic) {
sndMusic0.gotoAndPlay(2);
sndMusic2.gotoAndPlay(4);
}
stop();
Instance of Symbol 401 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) {
switch (_root.arrGridFill[i][j]) {
case 1 :
duplicateMovieClip ("movBlock1", "movB" + nBlockCount, 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++;
break;
case 4 :
duplicateMovieClip ("movBlock4", "movB" + nBlockCount, 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.nPlayers == 2) {
movScoreMe.gotoAndStop(3);
} else {
movScoreMe.gotoAndStop(2);
}
}
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
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 6 Button
on (release) {
getURL ("http://www.gamesmate.com", "_blank");
}
Symbol 7 MovieClip Frame 133
_root.play();
Symbol 13 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 3
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 3
stop();
Symbol 28 Button
on (release) {
getURL ("http://www.gamesmate.com/register.asp", "_blank");
}
Symbol 34 Button
on (release) {
getURL ("http://www.gamesarcade.net", _blank);
}
Symbol 37 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nPlayers = 1;
var tid = 1;
var gid = 11;
loadVariablesNum ("timesplayed.asp", 0, "POST");
play();
}
Symbol 40 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 43 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
gotoAndStop ("INSTRUCTIONS");
}
Symbol 47 Button
on (release) {
if (_root.blnFX == 1) {
_root.sndClick2.play();
}
getURL ("http://www.gamesmate.com");
}
Symbol 51 Button
on (release) {
if (_root.blnFX == 1) {
_root.sndClick2.play();
}
getURL ("http://www.gamesmate.com/highscores.asp?id=2&start=1");
}
Symbol 57 Button
on (release, keyPress "m") {
if (_root.blnMusic == 1) {
_root.blnMusic = 0;
_root.sndMusic0.gotoAndPlay(4);
} else {
_root.blnMusic = 1;
_root.sndMusic0.gotoAndPlay(2);
}
}
Symbol 60 Button
on (release, keyPress "s") {
if (_root.blnSFX == 1) {
_root.blnSFX = 0;
} else {
_root.blnSFX = 1;
}
}
Symbol 63 Button
on (release, keyPress "3") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 3;
play();
}
Symbol 66 Button
on (release, keyPress "2") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 2;
play();
}
Symbol 69 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nOppos = 1;
play();
}
Symbol 72 Button
on (release) {
prevFrame();
}
Symbol 75 Button
on (release, keyPress "3") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 3;
play();
}
Symbol 78 Button
on (release, keyPress "2") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 2;
play();
}
Symbol 81 Button
on (release, keyPress "1") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 1;
play();
}
Symbol 84 Button
on (release, keyPress "4") {
if (_root.blnSFX) {
_root.sndPing.play();
}
var nLevel = 4;
play();
}
Symbol 89 Button
on (release, keyPress "m") {
if (_name == "music") {
_root.blnMusic = 0;
_root.sndMusic2.gotoAndPlay(4);
} else {
_root.blnSFX = 0;
}
gotoAndStop (2);
}
Symbol 92 Button
on (release, keyPress "m") {
if (_name == "music") {
_root.blnMusic = 1;
_root.sndMusic2.gotoAndPlay(1);
} else {
_root.blnSFX = 1;
}
gotoAndStop (1);
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 94 Button
on (release, keyPress "f") {
if (_name == "music") {
_root.blnMusic = 0;
_root.sndMusic2.gotoAndPlay(4);
} else {
_root.blnSFX = 0;
}
gotoAndStop (2);
}
Symbol 97 Button
on (release, keyPress "f") {
if (_name == "music") {
_root.blnMusic = 1;
_root.sndMusic2.gotoAndPlay(1);
} else {
_root.blnSFX = 1;
}
gotoAndStop (1);
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 99 Button
on (release, keyPress "q") {
gotoAndPlay ("GAP");
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 3
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 115 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 115 MovieClip Frame 46
gotoAndStop (1);
Symbol 115 MovieClip Frame 47
stop();
Symbol 119 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 3
stop();
Symbol 132 MovieClip Frame 4
stop();
Symbol 132 MovieClip Frame 5
stop();
Symbol 136 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 146 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 146 MovieClip Frame 46
gotoAndStop (1);
Symbol 146 MovieClip Frame 47
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 156 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 156 MovieClip Frame 46
gotoAndStop (1);
Symbol 156 MovieClip Frame 47
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 10
if (_parent.blnRoundOver) {
stop();
}
Symbol 166 MovieClip Frame 11
if (_root.blnSFX) {
_root.sndBomb.play();
}
Symbol 166 MovieClip Frame 46
gotoAndStop (1);
Symbol 166 MovieClip Frame 47
stop();
Symbol 170 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 174 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 178 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 182 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 210 MovieClip Frame 1
stop();
Instance of Symbol 195 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 210 MovieClip Frame 2
stop();
Instance of Symbol 202 MovieClip in Symbol 210 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 210 MovieClip Frame 3
stop();
Instance of Symbol 195 MovieClip in Symbol 210 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 210 MovieClip Frame 4
stop();
Instance of Symbol 209 MovieClip in Symbol 210 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 217 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 232 MovieClip Frame 2
stop();
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 232 MovieClip Frame 3
stop();
Instance of Symbol 217 MovieClip in Symbol 232 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 232 MovieClip Frame 4
stop();
Instance of Symbol 231 MovieClip in Symbol 232 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 236 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 240 MovieClip Frame 25
this.removeMovieClip();
stop();
Symbol 244 MovieClip Frame 22
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
stop();
Symbol 245 MovieClip Frame 3
stop();
Symbol 245 MovieClip Frame 4
stop();
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 275 MovieClip Frame 2
stop();
Instance of Symbol 267 MovieClip in Symbol 275 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 275 MovieClip Frame 3
stop();
Instance of Symbol 260 MovieClip in Symbol 275 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 275 MovieClip Frame 4
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 297 MovieClip Frame 1
stop();
Instance of Symbol 282 MovieClip in Symbol 297 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 297 MovieClip Frame 2
stop();
Instance of Symbol 289 MovieClip in Symbol 297 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 297 MovieClip Frame 3
stop();
Instance of Symbol 282 MovieClip in Symbol 297 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (5);
} else {
play();
}
}
Symbol 297 MovieClip Frame 4
stop();
Instance of Symbol 296 MovieClip in Symbol 297 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((((_parent.left + _parent.right) + _parent.up) + _parent.down) == 0) {
gotoAndStop (4);
} else {
play();
}
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 3
stop();
Symbol 312 MovieClip Frame 4
stop();
Symbol 312 MovieClip Frame 5
stop();
Symbol 312 MovieClip Frame 6
stop();
Symbol 312 MovieClip Frame 7
stop();
Symbol 313 MovieClip Frame 1
stop();
var blnKilled = 0;
Instance of Symbol 312 MovieClip in Symbol 313 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_parent._parent.nGoto + 1);
_parent._parent._parent.fBlastImgLoop();
}
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
stop();
Symbol 321 MovieClip Frame 3
stop();
Symbol 321 MovieClip Frame 4
stop();
Symbol 321 MovieClip Frame 5
stop();
Symbol 321 MovieClip Frame 6
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 2
stop();
Symbol 363 MovieClip Frame 1
function fLayBomb(pid, x, y, blength) {
duplicateMovieClip (eval ("movBomb" + pid), "BOMB" + nBombCount, 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", 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]--;
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) {
var _local1 = objThis;
if (_root.nLevel == 2) {
var _local3 = Math.round((nX - player1.nStartX) / 30) + 1;
var _local2 = Math.round((nY - player1.nStartY) / 30) + 1;
if ((_root.arrGrid[_local3][_local2] <= -5) && (_root.arrGrid[_local3][_local2] > -11)) {
doFireLine = 1;
}
}
i = 1;
while (i < 5) {
if (arrDead[i - 1] == 0) {
if (_local1.hitTest("_parent.dot" + i) && (_local1.blnKilled != 1)) {
_local1.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) {
var _local1 = pid;
var _local2 = objThis;
if (arrInvincible[_local1 - 1] > 0) {
arrInvincible[_local1 - 1]--;
if ((arrInvincible[_local1 - 1] / 3) == Math.round(arrInvincible[_local1 - 1] / 3)) {
_local2._alpha = 100;
} else {
_local2._alpha = 50;
}
} else {
_local2._alpha = 100;
}
}
Instance of Symbol 115 MovieClip "movBomb1" in Symbol 363 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) {
nCount--;
_x = _parent.movP1._x;
_y = _parent.movP1._y;
gotoAndStop (47);
isMoving = 0;
} else 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) {
nFlightCount = 7;
} else {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
}
}
} 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++;
}
switch (nDir) {
case 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;
}
break;
case 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;
}
break;
case 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;
}
break;
case 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd1", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd2", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd3", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov1BlastEnd4", "BLAST" + _parent.nBlastCount, 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, 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 119 MovieClip "mov2Blast1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 119 MovieClip "mov2Blast2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 132 MovieClip "movPUPS" in Symbol 363 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))) {
switch (puType) {
case 0 :
eval ("_parent.movP" + i).nLength++;
break;
case 1 :
if (eval ("_parent.movP" + i).nSpd < 4) {
eval ("_parent.movP" + i).nSpd++;
}
break;
case 2 :
eval ("_parent.movP" + i).nBombs++;
break;
case 3 :
eval ("_parent.movP" + i).canKick = 1;
break;
case 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 136 MovieClip "mov2BlastEnd1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 136 MovieClip "mov2BlastEnd2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 136 MovieClip "mov2BlastEnd3" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 136 MovieClip "mov2BlastEnd4" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 146 MovieClip "movBomb2" in Symbol 363 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) {
nCount--;
_x = _parent.movP2._x;
_y = _parent.movP2._y;
gotoAndStop (47);
isMoving = 0;
} else if (blnThrown != 0) {
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) {
nFlightCount = 7;
} else {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
}
}
} 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++;
}
switch (nDir) {
case 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;
}
break;
case 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;
}
break;
case 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;
}
break;
case 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd1", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd2", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd3", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov2BlastEnd4", "BLAST" + _parent.nBlastCount, 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, 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 156 MovieClip "movBomb4" in Symbol 363 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) {
nFlightCount = 7;
} else {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
}
}
} 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++;
}
switch (nDir) {
case 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;
}
break;
case 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;
}
break;
case 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;
}
break;
case 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd1", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd2", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd3", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov3BlastEnd4", "BLAST" + _parent.nBlastCount, 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, 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 166 MovieClip "movBomb3" in Symbol 363 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) {
nFlightCount = 7;
} else {
_x = (((nGX - 1) * 30) + _parent.player1.nStartX);
_y = (((nGY - 1) * 30) + _parent.player1.nStartY);
nFlightCount = 10;
}
}
} 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++;
}
switch (nDir) {
case 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;
}
break;
case 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;
}
break;
case 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;
}
break;
case 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd1", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd2", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd3", "BLAST" + _parent.nBlastCount, 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, 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, 600 + _parent.nBlastCount);
} else {
duplicateMovieClip ("_parent.mov4BlastEnd4", "BLAST" + _parent.nBlastCount, 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, 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 170 MovieClip "mov3Blast1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 170 MovieClip "mov3Blast2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 174 MovieClip "mov3BlastEnd1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 174 MovieClip "mov3BlastEnd2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 174 MovieClip "mov3BlastEnd3" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 174 MovieClip "mov3BlastEnd4" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 178 MovieClip "mov4Blast1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 178 MovieClip "mov4Blast2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 182 MovieClip "mov4BlastEnd1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 182 MovieClip "mov4BlastEnd2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 182 MovieClip "mov4BlastEnd3" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 182 MovieClip "mov4BlastEnd4" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 188 MovieClip "movBlock2" in Symbol 363 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 210 MovieClip "player1" in Symbol 363 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 232 MovieClip "player2" in Symbol 363 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 236 MovieClip "mov1Blast1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 236 MovieClip "mov1Blast2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 240 MovieClip "mov1BlastEnd1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 240 MovieClip "mov1BlastEnd2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 240 MovieClip "mov1BlastEnd3" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 240 MovieClip "mov1BlastEnd4" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.fBlastImgLoop(_x, _y, this);
}
Instance of Symbol 232 MovieClip "computer2" in Symbol 363 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) - 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 - 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;
switch (nChoice) {
case 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;
break;
case 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;
break;
case 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;
break;
case 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) + 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);
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 247 MovieClip "dot1" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP1._x;
_y = _parent.movP1._y;
_alpha = 0;
}
Instance of Symbol 247 MovieClip "dot2" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP2._x;
_y = _parent.movP2._y;
_alpha = 0;
}
Instance of Symbol 247 MovieClip "dot3" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP3._x;
_y = _parent.movP3._y;
_alpha = 0;
}
Instance of Symbol 247 MovieClip "dot4" in Symbol 363 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.movP4._x;
_y = _parent.movP4._y;
_alpha = 0;
}
Instance of Symbol 275 MovieClip "computer3" in Symbol 363 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;
switch (nChoice) {
case 1 :
up = 1;
break;
case 2 :
down = 1;
break;
case 3 :
left = 1;
break;
case 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 297 MovieClip "computer4" in Symbol 363 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;
switch (nChoice) {
case 1 :
up = 1;
break;
case 2 :
down = 1;
break;
case 3 :
left = 1;
break;
case 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 321 MovieClip "movFireLine" in Symbol 363 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 362 MovieClip "movTransporter" in Symbol 363 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 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 3
stop();
Symbol 370 MovieClip Frame 4
stop();
Symbol 370 MovieClip Frame 5
stop();
Symbol 370 MovieClip Frame 6
stop();
Symbol 370 MovieClip Frame 7
stop();
Symbol 370 MovieClip Frame 8
stop();
Symbol 370 MovieClip Frame 9
stop();
Symbol 370 MovieClip Frame 10
stop();
Symbol 370 MovieClip Frame 11
stop();
Symbol 370 MovieClip Frame 12
stop();
Symbol 370 MovieClip Frame 13
stop();
Symbol 370 MovieClip Frame 14
stop();
Symbol 370 MovieClip Frame 15
stop();
Symbol 370 MovieClip Frame 16
stop();
Symbol 370 MovieClip Frame 17
stop();
Symbol 370 MovieClip Frame 18
stop();
Symbol 370 MovieClip Frame 19
stop();
Symbol 370 MovieClip Frame 20
stop();
Symbol 370 MovieClip Frame 21
stop();
Symbol 370 MovieClip Frame 22
stop();
Symbol 370 MovieClip Frame 23
stop();
Symbol 370 MovieClip Frame 24
stop();
Symbol 370 MovieClip Frame 25
stop();
Symbol 370 MovieClip Frame 26
stop();
Symbol 370 MovieClip Frame 27
stop();
Symbol 370 MovieClip Frame 28
stop();
Symbol 370 MovieClip Frame 29
stop();
Symbol 370 MovieClip Frame 30
stop();
Symbol 370 MovieClip Frame 31
stop();
Symbol 370 MovieClip Frame 32
stop();
Symbol 370 MovieClip Frame 33
stop();
Symbol 370 MovieClip Frame 34
stop();
Symbol 370 MovieClip Frame 35
stop();
Symbol 370 MovieClip Frame 36
stop();
Symbol 370 MovieClip Frame 37
stop();
Symbol 370 MovieClip Frame 38
stop();
Symbol 370 MovieClip Frame 39
stop();
Symbol 370 MovieClip Frame 40
stop();
Symbol 370 MovieClip Frame 41
stop();
Symbol 370 MovieClip Frame 42
stop();
Symbol 370 MovieClip Frame 43
stop();
Symbol 370 MovieClip Frame 44
stop();
Symbol 370 MovieClip Frame 45
stop();
Symbol 370 MovieClip Frame 46
stop();
Symbol 370 MovieClip Frame 47
stop();
Symbol 370 MovieClip Frame 48
stop();
Symbol 370 MovieClip Frame 49
stop();
Symbol 370 MovieClip Frame 50
stop();
Symbol 370 MovieClip Frame 51
stop();
Symbol 370 MovieClip Frame 52
stop();
Symbol 370 MovieClip Frame 53
stop();
Symbol 370 MovieClip Frame 54
stop();
Symbol 370 MovieClip Frame 55
stop();
Symbol 370 MovieClip Frame 56
stop();
Symbol 370 MovieClip Frame 57
stop();
Symbol 370 MovieClip Frame 58
stop();
Symbol 370 MovieClip Frame 59
stop();
Symbol 370 MovieClip Frame 60
stop();
Symbol 370 MovieClip Frame 61
stop();
Symbol 370 MovieClip Frame 62
stop();
Symbol 370 MovieClip Frame 63
stop();
Symbol 370 MovieClip Frame 64
stop();
Symbol 370 MovieClip Frame 65
stop();
Symbol 370 MovieClip Frame 66
stop();
Symbol 370 MovieClip Frame 67
stop();
Symbol 370 MovieClip Frame 68
stop();
Symbol 370 MovieClip Frame 69
stop();
Symbol 370 MovieClip Frame 70
stop();
Symbol 370 MovieClip Frame 71
stop();
Symbol 370 MovieClip Frame 72
stop();
Symbol 370 MovieClip Frame 73
stop();
Symbol 370 MovieClip Frame 74
stop();
Symbol 370 MovieClip Frame 75
stop();
Symbol 370 MovieClip Frame 76
stop();
Symbol 370 MovieClip Frame 77
stop();
Symbol 370 MovieClip Frame 78
stop();
Symbol 370 MovieClip Frame 79
stop();
Symbol 370 MovieClip Frame 80
stop();
Symbol 370 MovieClip Frame 81
stop();
Symbol 370 MovieClip Frame 82
stop();
Symbol 370 MovieClip Frame 83
stop();
Symbol 370 MovieClip Frame 84
stop();
Symbol 370 MovieClip Frame 85
stop();
Symbol 370 MovieClip Frame 86
stop();
Symbol 370 MovieClip Frame 87
stop();
Symbol 370 MovieClip Frame 88
stop();
Symbol 370 MovieClip Frame 89
stop();
Symbol 370 MovieClip Frame 90
stop();
Symbol 370 MovieClip Frame 91
stop();
Symbol 370 MovieClip Frame 92
stop();
Symbol 370 MovieClip Frame 93
stop();
Symbol 370 MovieClip Frame 94
stop();
Symbol 370 MovieClip Frame 95
stop();
Symbol 370 MovieClip Frame 96
stop();
Symbol 370 MovieClip Frame 97
stop();
Symbol 370 MovieClip Frame 98
stop();
Symbol 370 MovieClip Frame 99
stop();
Symbol 370 MovieClip Frame 100
stop();
Symbol 370 MovieClip Frame 101
stop();
Symbol 370 MovieClip Frame 102
stop();
Symbol 370 MovieClip Frame 103
stop();
Symbol 370 MovieClip Frame 104
stop();
Symbol 370 MovieClip Frame 105
stop();
Symbol 370 MovieClip Frame 106
stop();
Symbol 370 MovieClip Frame 107
stop();
Symbol 370 MovieClip Frame 108
stop();
Symbol 370 MovieClip Frame 109
stop();
Symbol 370 MovieClip Frame 110
stop();
Symbol 370 MovieClip Frame 111
stop();
Symbol 370 MovieClip Frame 112
stop();
Symbol 370 MovieClip Frame 113
stop();
Symbol 370 MovieClip Frame 114
stop();
Symbol 370 MovieClip Frame 115
stop();
Symbol 370 MovieClip Frame 116
stop();
Symbol 370 MovieClip Frame 117
stop();
Symbol 370 MovieClip Frame 118
stop();
Symbol 370 MovieClip Frame 119
stop();
Symbol 370 MovieClip Frame 120
stop();
Symbol 370 MovieClip Frame 121
stop();
Symbol 370 MovieClip Frame 122
stop();
Symbol 370 MovieClip Frame 123
stop();
Symbol 370 MovieClip Frame 124
stop();
Symbol 370 MovieClip Frame 125
stop();
Symbol 370 MovieClip Frame 126
stop();
Symbol 370 MovieClip Frame 127
stop();
Symbol 370 MovieClip Frame 128
stop();
Symbol 370 MovieClip Frame 129
stop();
Symbol 370 MovieClip Frame 130
stop();
Symbol 370 MovieClip Frame 131
stop();
Symbol 370 MovieClip Frame 132
stop();
Symbol 370 MovieClip Frame 133
stop();
Symbol 370 MovieClip Frame 134
stop();
Symbol 370 MovieClip Frame 135
stop();
Symbol 370 MovieClip Frame 136
stop();
Symbol 370 MovieClip Frame 137
stop();
Symbol 370 MovieClip Frame 138
stop();
Symbol 370 MovieClip Frame 139
stop();
Symbol 370 MovieClip Frame 140
stop();
Symbol 370 MovieClip Frame 141
stop();
Symbol 370 MovieClip Frame 142
stop();
Symbol 370 MovieClip Frame 143
stop();
Symbol 370 MovieClip Frame 144
stop();
Symbol 370 MovieClip Frame 145
stop();
Symbol 370 MovieClip Frame 146
stop();
Symbol 370 MovieClip Frame 147
stop();
Symbol 370 MovieClip Frame 148
stop();
Symbol 370 MovieClip Frame 149
stop();
Symbol 370 MovieClip Frame 150
stop();
Symbol 370 MovieClip Frame 151
stop();
Symbol 370 MovieClip Frame 152
stop();
Symbol 370 MovieClip Frame 153
stop();
Symbol 371 MovieClip Frame 1
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 3
stop();
Symbol 391 Button
on (release) {
if (_root.nWinner == 1) {
_root.nScore = _root.nScore + (_parent.nSecsLeft * (_root.nOppos * 250));
} else {
_root.nScore = _root.nScore - (_parent.nSecsLeft * (_root.nOppos * 250));
}
if (_root.nWinner == 2) {
_root.nScore2 = _root.nScore2 + (_parent.nSecsLeft * (_root.nOppos * 250));
} else {
_root.nScore2 = _root.nScore2 - (_parent.nSecsLeft * (_root.nOppos * 250));
}
if (_root.nHeat < _root.nHeats) {
_root.nHeat++;
_root.gotoAndPlay("PLAY");
} else if (_root.nPlayers == 1) {
_root.gotoAndStop("GAMEOVER");
} else {
_root.gotoAndStop("GAMEOVER2");
}
}
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
stop();
Symbol 400 MovieClip Frame 3
stop();
Symbol 404 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
gotoAndStop ("LOADED");
}
Symbol 409 Button
on (release) {
if (_root.blnSFX) {
_root.sndPing.play();
}
this.gotoAndStop(2);
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 421 Button
on (release) {
_root.gotoAndStop("LOADED");
}
Symbol 453 MovieClip Frame 200
stop();
Symbol 455 MovieClip Frame 1
function fMakeMe(g, s, t, u) {
var _local2 = s;
var _local3 = g;
var _local1 = 1;
i = 0;
while (i < _local3) {
_local1 = _local1 + _local2;
i++;
}
_local1 = _local1 * u.length;
_local1 = _local1 + t;
chickLeft = _local3;
chickRight = _local2;
chickFore = t;
chickBack = _local1;
chickName = u;
}
fMakeMe(2, _root.nScore, 1, _url);
Symbol 455 MovieClip Frame 2
_root.hallsuccess = "false";
loadVariablesNum ("scores.asp", 0, "POST");
_parent.txtInfo = "SUBMITTING";
Symbol 455 MovieClip Frame 3
if (_root.hallsuccess == "true") {
gotoAndPlay (5);
}
_parent.txtInfo = "IMLYING";
Symbol 455 MovieClip Frame 4
gotoAndPlay(_currentframe - 1);
Symbol 455 MovieClip Frame 5
_parent.txtInfo = "YOU SCORED: " + _root.game.nScore;
_parent.play();
stop();
Symbol 456 Button
on (release) {
_root.gotoAndStop("LOADED");
}
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 187
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
stop();
Symbol 484 MovieClip Frame 3
stop();
Symbol 484 MovieClip Frame 4
stop();