Frame 1
_global.so = SharedObject.getLocal("flashobject");
if (!_global.so.data.unlocked) {
_global.so.data.unlocked = 0;
}
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
loadingBar._xscale = _local4;
if (_local3 >= _local2) {
clearInterval(loadingCall);
gotoAndStop (2);
}
}
stop();
sndBoom = new Sound();
sndBoom.attachSound("boom");
playBoom = function () {
sndBoom.start();
sndBoom.start();
sndBoom.start();
};
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
onEnterFrame = function () {
loadingTrue._rotation = loadingTrue._rotation - 6;
};
Frame 2
gotoAndStop (3);
Frame 3
spelleIntroButton._alpha = 0;
Instance of Symbol 56 MovieClip in Frame 3
onClipEvent (load) {
_alpha = 0;
time = 0;
}
onClipEvent (enterFrame) {
time++;
if (time == 60) {
attachMovie("playSpelle", "playSpelle" + time, time * 9999999);
}
if (((_alpha < 100) && (time > 60)) && (time < 180)) {
_alpha = (_alpha + 5);
}
if (time > 180) {
_alpha = (_alpha - 6);
}
}
Instance of Symbol 59 MovieClip in Frame 3
onClipEvent (load) {
_alpha = 0;
time = 0;
}
onClipEvent (enterFrame) {
time++;
if (((_alpha < 100) && (time > 30)) && (time < 180)) {
_alpha = (_alpha + 5);
}
if (time > 180) {
_alpha = (_alpha - 6);
}
if (time > 210) {
_root.gotoAndStop(4);
}
}
Frame 4
time = 0;
onEnterFrame = function () {
if (time == 6) {
gotoAndStop (5);
}
time++;
};
Frame 5
_global.lifes = 2;
_global.name = "";
gotoAndStop (5);
Instance of Symbol 27 MovieClip [empty] in Frame 5
onClipEvent (enterFrame) {
ob = _root.char;
if (!ob.clip._x) {
_root.p1Stat.gotoAndStop(5);
}
ob = _root.char2;
ob2 = _root.game.enemy0;
if ((!ob.clip._x) && (!ob2.clip._x)) {
_root.p2Stat.gotoAndStop(5);
}
ob = _root.game.enemy1;
if (!ob.clip._x) {
_root.p3Stat.gotoAndStop(5);
} else {
_root.p3name = "Enemy 2";
}
ob = _root.game.enemy2;
if (!ob.clip._x) {
_root.p4Stat.gotoAndStop(5);
} else {
_root.p3name = "Enemy 3";
}
}
Frame 6
bombType = 1;
status = "";
_global.check = 1;
_global.levelScore = 0;
_global.score = 0;
_global.agressiveness = 1;
_global.step = 0;
_global.hour = 0;
_global.minute = 0;
_global.sec = 0;
_global.time = 0;
_global.enemyNumb = 1;
_global.bombKind = 1;
_global.depth = 0;
_global.twoPlayer = false;
_global.difficulty = 10;
_global.mapNumb = 1;
_global.playerFire = "fireBlue";
_global.player = "bomberBlue";
_global.playerFire2 = "fireGreen";
_global.player2 = "bomberGreen";
_global.playerFire3 = "firePurple";
_global.player3 = "bomberPurple";
_global.playerFire4 = "fireOrange";
_global.player4 = "bomberOrange";
mapLevel1 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1], [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1], [1, 0, 0, 2, 2, 3, 2, 3, 2, 3, 2, 0, 1, 3, 1], [1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1], [1, 2, 1, 3, 1, 0, 0, 0, 0, 0, 1, 2, 1, 3, 1], [1, 2, 1, 0, 1, 0, 1, 1, 1, 0, 1, 3, 1, 3, 1], [1, 2, 1, 3, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1], [1, 2, 1, 0, 1, 0, 1, 1, 1, 0, 1, 2, 0, 0, 1], [1, 2, 1, 3, 1, 0, 0, 0, 0, 0, 1, 3, 1, 0, 1], [1, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1], [1, 2, 1, 0, 3, 2, 3, 0, 2, 3, 2, 1, 1, 0, 1], [1, 2, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1], [1, 3, 3, 3, 3, 3, 3, 1, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
basic = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1], [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1], [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.mapLevel = mapLevel1;
_global.level = 1;
Frame 7
bombType = 1;
status2 = "";
status3 = "";
status = "A singleplayer level. 1-" + (_global.so.data.unlocked + 1);
_global.agressiveness = 5;
_global.enemyNumb = 1;
_global.bombKind = 1;
_global.depth = 0;
_global.twoPlayer = true;
_global.difficulty = 10;
_global.mapNumb = 1;
_global.playerFire = "fireBlue";
_global.player = "bomberBlue";
_global.playerFire2 = "firePurple";
_global.player2 = "bomberPurple";
_global.playerFire3 = "fireGreen";
_global.player3 = "bomberGreen";
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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
mapLevel4 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 3, 2, 1, 2, 3, 2, 0, 0, 0, 1], [1, 0, 1, 1, 4, 1, 1, 4, 1, 1, 4, 1, 1, 0, 1], [1, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 1, 0, 1], [1, 2, 4, 3, 1, 1, 4, 1, 4, 1, 1, 3, 4, 2, 1], [1, 3, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 1, 3, 1], [1, 2, 1, 3, 4, 3, 1, 4, 1, 3, 4, 0, 1, 2, 1], [1, 1, 4, 2, 1, 2, 4, 1, 4, 2, 1, 2, 4, 1, 1], [1, 2, 1, 3, 4, 3, 1, 4, 1, 3, 4, 3, 1, 2, 1], [1, 3, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 1, 3, 1], [1, 2, 4, 3, 1, 1, 4, 1, 4, 1, 1, 3, 4, 2, 1], [1, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 1, 0, 1], [1, 0, 1, 1, 4, 1, 1, 4, 1, 1, 4, 1, 1, 0, 1], [1, 0, 0, 0, 2, 3, 2, 1, 2, 3, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.mapLevel = mapLevel1;
Frame 8
stop();
_global.so.data.unlocked = _global.so.data.unlocked + 1;
Instance of Symbol 268 MovieClip [powerUp] in Frame 8
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 268 MovieClip [powerUp] in Frame 8
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 268 MovieClip [powerUp] in Frame 8
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 268 MovieClip [powerUp] in Frame 8
onClipEvent (load) {
gotoAndStop (4);
}
Frame 9
function buildMap(map) {
_root.attachMovie("empty", "tiles", ++d);
game.clip = _root.tiles;
var _local7 = map[0].length;
var _local8 = map.length;
var _local5 = 0;
while (_local5 < _local8) {
var _local4 = 0;
while (_local4 < _local7) {
var _local3 = (("t_" + _local5) + "_") + _local4;
game[_local3] = new game["Tile" + map[_local5][_local4]]();
game.clip.attachMovie("tile", _local3, (500 + (_local5 * 20)) + _local4);
game.clip[_local3]._x = _local4 * game.tileW;
game.clip[_local3]._y = _local5 * game.tileH;
if (("Tile" + map[_local5][_local4]) != "Tile4") {
game[_local3].xtile = game.clip[_local3]._x / game.tileW;
game[_local3].ytile = game.clip[_local3]._y / game.tileH;
}
if (("Tile" + map[_local5][_local4]) != "Tile3") {
game.clip[_local3].gotoAndStop(game[_local3].frame);
} else if (random(2) == 1) {
game.clip[_local3].gotoAndStop(game[_local3].frame);
} else {
game.clip[_local3].gotoAndStop(1);
game[_local3].frame = 1;
game[_local3].walkable = 1;
game[_local3].walkableComp = 1;
}
_local4++;
}
k = 0;
while (k < _global.enemyNumb) {
var _local3 = "enemy" + k;
game[_local3] = new game.Enemy();
if (k == 0) {
game.clip.attachMovie(player2, _local3, 10001 + k);
} else if (k == 1) {
game.clip.attachMovie(player3, _local3, 10001 + k);
} else {
game.clip.attachMovie(player4, _local3, 10001 + k);
}
game[_local3].clip = game.clip[_local3];
game[_local3].playerFire = _root["playerFire" + (k + 2)];
game[_local3].turning = 30;
game[_local3].bombsLeft = 1;
game[_local3].id = k + 2;
game[_local3].xMove = 1;
game[_local3].yMove = 0;
game[_local3].speedUp = 0;
game[_local3].xtile = enemies[k][0];
game[_local3].ytile = enemies[k][1];
game[_local3].width = game.clip[_local3]._width / 2;
game[_local3].height = game.clip[_local3]._height / 2;
game[_local3].x = (game[_local3].xtile * game.tileW) + (game.tileW / 2);
game[_local3].y = (game[_local3].ytile * game.tileH) + (game.tileH / 2);
game[_local3].clip._x = game[_local3].x;
game[_local3].clip._y = game[_local3].y;
k++;
}
_local5++;
}
game.clip.attachMovie(player, "char", 10000);
char.playerFire = playerFire;
char.clip = game.clip.char;
char.id = 1;
char.x = (char.xtile * game.tileW) + (game.tileW / 2);
char.y = (char.ytile * game.tileW) + (game.tileW / 2);
char.width = char.clip._width / 2;
char.height = char.clip._height / 2;
removeMovieClip(char.clip.mask);
char.clip._x = char.x;
char.clip._y = char.y;
char.speedUp = 0;
char.bombsLeft = 1;
char.bombForce = 1;
if (_global.twoPlayer == true) {
removeMovieClip(game.clip.enemy0);
game.clip.attachMovie(player2, "char2", 9999);
char2.playerFire = playerFire2;
char2.clip = game.clip.char2;
char2.id = 2;
char2.x = (char2.xtile * game.tileW) + (game.tileW / 2);
char2.y = (char2.ytile * game.tileW) + (game.tileW / 2);
char2.width = char2.clip._width / 2;
char2.height = char2.clip._height / 2;
removeMovieClip(char2.clip.mask);
char2.clip._x = char2.x;
char2.clip._y = char2.y;
char2.speedUp = 0;
char2.bombsLeft = 1;
char2.bombForce = 1;
}
}
function getMyCorners1(x, y, ob) {
ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((y - ob.height) / game.tileH);
ob.leftX = Math.floor((x - ob.width) / game.tileW);
ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW);
ul = game[(("t_" + ob.upY) + "_") + ob.leftX];
if (((ul.allowId == ob.id) || (!ul.allowId)) and (!ul.onFire)) {
ob.upleft = ul.walkable;
} else {
ob.upleft = 0;
}
dl = game[(("t_" + ob.downY) + "_") + ob.leftX];
if (((dl.allowId == ob.id) || (!dl.allowId)) and (!dl.onFire)) {
ob.downleft = dl.walkable;
} else {
ob.downleft = 0;
}
ur = game[(("t_" + ob.upY) + "_") + ob.rightX];
if (((ur.allowId == ob.id) || (!ur.allowId)) and (!ur.onFire)) {
ob.upright = ur.walkable;
} else {
ob.upright = 0;
}
dr = game[(("t_" + ob.downY) + "_") + ob.rightX];
if (((dr.allowId == ob.id) || (!dr.allowId)) and (!dr.onFire)) {
ob.downright = dr.walkable;
} else {
ob.downright = 0;
}
}
function getMyCorners(x, y, ob) {
ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((y - ob.height) / game.tileH);
ob.leftX = Math.floor((x - ob.width) / game.tileW);
ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW);
ul = game[(("t_" + ob.upY) + "_") + ob.leftX];
if ((ul.allowId == ob.id) || (!ul.allowId)) {
ob.upleft = ul.walkable;
} else {
ob.upleft = 0;
}
dl = game[(("t_" + ob.downY) + "_") + ob.leftX];
if ((dl.allowId == ob.id) || (!dl.allowId)) {
ob.downleft = dl.walkable;
} else {
ob.downleft = 0;
}
ur = game[(("t_" + ob.upY) + "_") + ob.rightX];
if ((ur.allowId == ob.id) || (!ur.allowId)) {
ob.upright = ur.walkable;
} else {
ob.upright = 0;
}
dr = game[(("t_" + ob.downY) + "_") + ob.rightX];
if ((dr.allowId == ob.id) || (!dr.allowId)) {
ob.downright = dr.walkable;
} else {
ob.downright = 0;
}
}
function getMyCorners2(x, y, ob) {
ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((y - ob.height) / game.tileH);
ob.leftX = Math.floor((x - ob.width) / game.tileW);
ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW);
ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].frame;
ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].frame;
ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].frame;
ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].frame;
}
function getMyCorners3(x, y, ob) {
ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((y - ob.height) / game.tileH);
ob.leftX = Math.floor((x - ob.width) / game.tileW);
ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW);
ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkableComp;
ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkableComp;
ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkableComp;
ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkableComp;
}
function getMyCorners4(x, y, ob) {
ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((y - ob.height) / game.tileH);
ob.leftX = Math.floor((x - ob.width) / game.tileW);
ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW);
}
function getMyCorners5(x, y, ob) {
ob.downY = Math.floor((((y - 4) + ob.height) - 1) / game.tileH);
ob.upY = Math.floor(((y + 4) - ob.height) / game.tileH);
ob.leftX = Math.floor(((x + 4) - ob.width) / game.tileW);
ob.rightX = Math.floor((((x - 4) + ob.width) - 1) / game.tileW);
ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].onFire;
ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].onFire;
ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].onFire;
ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].onFire;
}
function getMyCorners6(x, y, ob) {
ob.free = 0;
ob.downY = Math.floor((((y - 8) + ob.height) - 1) / game.tileH);
ob.upY = Math.floor(((y + 8) - ob.height) / game.tileH);
ob.leftX = Math.floor(((x + 8) - ob.width) / game.tileW);
ob.rightX = Math.floor((((x - 8) + ob.width) - 1) / game.tileW);
ob.upleft = (("b_" + ob.upY) + "_") + ob.leftX;
ob.downleft = (("b_" + ob.downY) + "_") + ob.leftX;
ob.upright = (("b_" + ob.upY) + "_") + ob.rightX;
ob.downright = (("b_" + ob.downY) + "_") + ob.rightX;
}
function placeItem(ytile, xtile, ob) {
var _local3 = Math.floor(random(7) + 1);
if (_local3 <= 4) {
name = (("i_" + ytile) + "_") + xtile;
game.clip.attachMovie("powerUp", name, (ytile * 20) + xtile);
game[(("t_" + ytile) + "_") + xtile].item = _local3;
game.clip[name].gotoAndStop(_local3);
game.clip[name]._x = xtile * game.tileW;
game.clip[name]._y = ytile * game.tileH;
game[name].xtile = xtile;
game[name].ytile = ytile;
name = "";
}
}
function preDetonate(ytile, xtile, ob) {
game[(("t_" + ytile) + "_") + xtile].walkableComp = 0;
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + (ytile - i)) + "_") + xtile].frame != 2) {
game[(("t_" + (ytile - i)) + "_") + xtile].walkableComp = 0;
if ((game[(("t_" + (ytile - i)) + "_") + xtile].frame == 3) || (game[(("t_" + (ytile - i)) + "_") + xtile].frame == 4)) {
break;
}
} else {
break;
}
i++;
}
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + (ytile + i)) + "_") + xtile].frame != 2) {
game[(("t_" + (ytile + i)) + "_") + xtile].walkableComp = 0;
if ((game[(("t_" + (ytile + i)) + "_") + xtile].frame == 3) || (game[(("t_" + (ytile + i)) + "_") + xtile].frame == 4)) {
break;
}
} else {
break;
}
i++;
}
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + ytile) + "_") + (xtile - i)].frame != 2) {
game[(("t_" + ytile) + "_") + (xtile - i)].walkableComp = 0;
if ((game[(("t_" + ytile) + "_") + (xtile - i)].frame == 3) || (game[(("t_" + ytile) + "_") + (xtile - i)].frame == 4)) {
break;
}
} else {
break;
}
i++;
}
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + ytile) + "_") + (xtile + i)].frame != 2) {
game[(("t_" + ytile) + "_") + (xtile + i)].walkableComp = 0;
if ((game[(("t_" + ytile) + "_") + (xtile + i)].frame == 3) || (game[(("t_" + ytile) + "_") + (xtile + i)].frame == 4)) {
break;
}
} else {
break;
}
i++;
}
}
function detonate(ytile, xtile, ob) {
name = "f_" + _global.depth;
game.clip.attachMovie(ob.playerFire, name, 50000 + _global.depth);
_global.depth++;
game.clip[name]._x = (xtile * game.tileW) + 15;
game.clip[name]._y = (ytile * game.tileH) + 15;
game.clip[name].xtile = xtile;
game.clip[name].ytile = ytile;
game.clip[name].player = ob;
game.clip[name].gotoAndStop(1);
game[(("t_" + ytile) + "_") + xtile].onFire = 1;
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + (ytile - i)) + "_") + xtile].frame != 2) {
game[(("t_" + (ytile - i)) + "_") + xtile].onFire = 1;
name = "f_" + _global.depth;
removeMovieClip(game.clip[(("i_" + (ytile - i)) + "_") + xtile]);
game.clip.attachMovie(ob.playerFire, name, 50000 + _global.depth);
_global.depth++;
game.clip[name]._x = (xtile * game.tileW) + 15;
game.clip[name]._y = ((ytile - i) * game.tileH) + 15;
game.clip[name].xtile = xtile;
game.clip[name].ytile = ytile - i;
if (i == ob.bombForce) {
game.clip[name].gotoAndStop(4);
} else {
game.clip[name].gotoAndStop(2);
}
if ((game[(("t_" + (ytile - i)) + "_") + xtile].frame == 3) || (game[(("t_" + (ytile - i)) + "_") + xtile].frame == 4)) {
placeItem(ytile - i, xtile, ob);
game.clip[name].gotoAndStop(4);
break;
}
} else {
break;
}
i++;
}
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + (ytile + i)) + "_") + xtile].frame != 2) {
game[(("t_" + (ytile + i)) + "_") + xtile].onFire = 1;
name = "f_" + _global.depth;
removeMovieClip(game.clip[(("i_" + (ytile + i)) + "_") + xtile]);
game.clip.attachMovie(ob.playerFire, name, 50000 + _global.depth);
_global.depth++;
game.clip[name]._x = (xtile * game.tileW) + 15;
game.clip[name]._y = ((ytile + i) * game.tileH) + 15;
game.clip[name].xtile = xtile;
game.clip[name].ytile = ytile + i;
if (i == ob.bombForce) {
game.clip[name].gotoAndStop(3);
} else {
game.clip[name].gotoAndStop(2);
}
if ((game[(("t_" + (ytile + i)) + "_") + xtile].frame == 3) || (game[(("t_" + (ytile + i)) + "_") + xtile].frame == 4)) {
placeItem(ytile + i, xtile, ob);
game.clip[name].gotoAndStop(3);
break;
}
} else {
break;
}
i++;
}
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + ytile) + "_") + (xtile - i)].frame != 2) {
game[(("t_" + ytile) + "_") + (xtile - i)].onFire = 1;
name = "f_" + _global.depth;
removeMovieClip(game.clip[(("i_" + ytile) + "_") + (xtile - i)]);
game.clip.attachMovie(ob.playerFire, name, 50000 + _global.depth);
_global.depth++;
game.clip[name]._x = ((xtile - i) * game.tileW) + 15;
game.clip[name]._y = (ytile * game.tileH) + 15;
game.clip[name].xtile = xtile - i;
game.clip[name].ytile = ytile;
if (i == ob.bombForce) {
game.clip[name].gotoAndStop(6);
} else {
game.clip[name].gotoAndStop(5);
}
if ((game[(("t_" + ytile) + "_") + (xtile - i)].frame == 3) || (game[(("t_" + ytile) + "_") + (xtile - i)].frame == 4)) {
placeItem(ytile, xtile - i, ob);
game.clip[name].gotoAndStop(6);
break;
}
} else {
break;
}
i++;
}
i = 1;
while (i <= ob.bombForce) {
if (game[(("t_" + ytile) + "_") + (xtile + i)].frame != 2) {
game[(("t_" + ytile) + "_") + (xtile + i)].onFire = 1;
name = "f_" + _global.depth;
removeMovieClip(game.clip[(("i_" + ytile) + "_") + (xtile + i)]);
game.clip.attachMovie(ob.playerFire, name, 50000 + _global.depth);
_global.depth++;
game.clip[name]._x = ((xtile + i) * game.tileW) + 15;
game.clip[name]._y = (ytile * game.tileH) + 15;
game.clip[name].xtile = xtile + i;
game.clip[name].ytile = ytile;
if (i == ob.bombForce) {
game.clip[name].gotoAndStop(7);
} else {
game.clip[name].gotoAndStop(5);
}
if ((game[(("t_" + ytile) + "_") + (xtile + i)].frame == 3) || (game[(("t_" + ytile) + "_") + (xtile + i)].frame == 4)) {
placeItem(ytile, xtile + i, ob);
game.clip[name].gotoAndStop(7);
break;
}
} else {
break;
}
i++;
}
name = "";
}
function dropBomb(ob) {
name = (("b_" + ob.ytile) + "_") + ob.xtile;
name2 = (("t_" + ob.ytile) + "_") + ob.xtile;
if (ob.clip._x) {
if (!game.clip[(("b_" + ob.ytile) + "_") + ob.xtile].player) {
if (ob.bombsLeft > 0) {
game[name2].allowId = ob.id;
preDetonate(ob.ytile, ob.xtile, ob);
ob.bombsLeft = ob.bombsLeft - 1;
d2 = (5000 + (ob.ytile * 20)) + ob.xtile;
game.clip.attachMovie("explosive", name, d2);
game.clip[name]._x = ob.xtile * game.tileW;
game.clip[name]._y = ob.ytile * game.tileH;
game.clip[name].player = ob;
game.clip[name].name = game.clip[name];
game.clip[name].xtile = ob.xtile;
game.clip[name].ytile = ob.ytile;
game.clip[name].tile = (("b_" + ob.ytile) + "_") + ob.xtile;
}
}
}
}
function rewalk(ob, dir) {
if (dir == 1) {
if ((((Math.round(ob.x / 30) - ob.leftX) > (ob.rightX - Math.round(ob.x / 30))) and ob.downleft) and ob.upleft) {
ob.x = ob.x - ob.speed;
} else if (ob.downright and ob.upright) {
ob.x = ob.x + ob.speed;
}
} else if (dir == 2) {
if ((((Math.round(ob.y / 30) - ob.upY) > (ob.downY - Math.round(ob.y / 30))) and ob.upright) and ob.upleft) {
ob.y = ob.y - ob.speed;
} else if (ob.downright and ob.downleft) {
ob.y = ob.y + ob.speed;
}
}
}
function moveChar(ob, dirx, diry) {
getMyCorners(ob.x, ob.y + (ob.speed * diry), ob);
allow = true;
if ((diry == -1) && (allow)) {
if (ob.upleft and ob.upright) {
ob.y = ob.y + (ob.speed * diry);
} else {
ob.y = (ob.ytile * game.tileH) + ob.height;
if (!multipleKeys) {
rewalk(ob, 1);
}
}
}
if ((diry == 1) && (allow)) {
if (ob.downleft and ob.downright) {
ob.y = ob.y + (ob.speed * diry);
} else {
ob.y = ((ob.ytile + 1) * game.tileH) - ob.height;
if (!multipleKeys) {
rewalk(ob, 1);
}
}
}
getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob);
if ((dirx == -1) && (allow)) {
if (ob.downleft and ob.upleft) {
ob.x = ob.x + (ob.speed * dirx);
} else {
ob.x = (ob.xtile * game.tileW) + ob.width;
if (!multipleKeys) {
rewalk(ob, 2);
}
}
}
if ((dirx == 1) && (allow)) {
if (ob.upright and ob.downright) {
ob.x = ob.x + (ob.speed * dirx);
} else {
ob.x = ((ob.xtile + 1) * game.tileW) - ob.width;
if (!multipleKeys) {
rewalk(ob, 2);
}
}
}
sItem = game[(("t_" + ob.ytile) + "_") + ob.xtile].item;
if (ob.speedUp > 0) {
ob.speedUp--;
} else if (ob.speed == 5) {
ob.speed = 3;
ob.x = (Math.floor(ob.x / game.tileW) * game.tileW) + 15;
ob.y = (Math.floor(ob.y / game.tileH) * game.tileH) + 15;
}
if (sItem) {
if (sItem == 1) {
ob.bombForce = ob.bombForce + 1;
} else if (sItem == 2) {
ob.speed = 5;
ob.speedUp = ob.speedUp + 300;
ob.x = (Math.floor(ob.x / game.tileW) * game.tileW) + 15;
ob.y = (Math.floor(ob.y / game.tileH) * game.tileH) + 15;
} else if (sItem == 3) {
ob.bombsLeft = ob.bombsLeft + 1;
} else if (sItem == 4) {
_global.score = _global.score + 1;
}
removeMovieClip(game.clip[(("i_" + ob.ytile) + "_") + ob.xtile]);
game[(("t_" + ob.ytile) + "_") + ob.xtile].item = 0;
}
ob.clip._x = ob.x;
ob.clip._y = ob.y;
ob.clip.gotoAndStop((dirx + (diry * 2)) + 3);
ob.xtile = Math.floor(ob.clip._x / game.tileW);
ob.ytile = Math.floor(ob.clip._y / game.tileH);
return(true);
}
function detectKeys() {
var _local3 = _root.char;
multipleKeys = false;
var _local2 = false;
if (Key.isDown(39)) {
_local2 = _root.moveChar(_local3, 1, 0);
if (_local2 != 0) {
multipleKeys = true;
}
} else if (Key.isDown(37)) {
_local2 = _root.moveChar(_local3, -1, 0);
if (_local2 != 0) {
multipleKeys = true;
}
} else if (Key.isDown(38)) {
_local2 = _root.moveChar(_local3, 0, -1);
if (_local2 != 0) {
multipleKeys = true;
}
} else if (Key.isDown(40)) {
_local2 = _root.moveChar(_local3, 0, 1);
if (_local2 != 0) {
multipleKeys = true;
}
}
if (!_local2) {
_local3.clip.char.gotoAndStop(1);
} else {
_local3.clip.char.play();
}
if (Key.isDown(32)) {
dropBomb(_root.char);
}
}
function detectKeys2() {
var _local3 = _root.char2;
multipleKeys = false;
var _local2 = false;
if (Key.isDown(68)) {
_local2 = _root.moveChar(_local3, 1, 0);
if (_local2 != 0) {
multipleKeys = true;
}
} else if (Key.isDown(65)) {
_local2 = _root.moveChar(_local3, -1, 0);
if (_local2 != 0) {
multipleKeys = true;
}
} else if (Key.isDown(87)) {
_local2 = _root.moveChar(_local3, 0, -1);
if (_local2 != 0) {
multipleKeys = true;
}
} else if (Key.isDown(83)) {
_local2 = _root.moveChar(_local3, 0, 1);
if (_local2 != 0) {
multipleKeys = true;
}
}
if (!_local2) {
_local3.clip.char.gotoAndStop(1);
} else {
_local3.clip.char.play();
}
if (Key.isDown(20)) {
dropBomb(_root.char2);
}
}
function enemyBrain() {
var _local5 = 0;
while (_local5 < _global.enemyNumb) {
var _local6 = "enemy" + _local5;
var _local2 = game[_local6];
if ((_local2.bombForce > 5) and (_local2.bombsLeft > 2)) {
_local2.bombLeft = 2;
}
getMyCorners3(_local2.x + (_local2.speed * _local2.xMove), _local2.y + (_local2.speed * _local2.yMove), _local2);
if ((((_local2.downleft and _local2.upleft) and _local2.downright) and _local2.upright) and (random(100) > _local2.turning)) {
moveChar(_local2, _local2.xMove, _local2.yMove);
} else {
xRightPos2 = 0;
xLeftPos2 = 0;
yUpPos2 = 0;
yDownPos2 = 0;
thisPos2 = 0;
getMyCorners3(_local2.x, _local2.y, _local2);
if (((_local2.downright and _local2.upright) and _local2.upleft) and _local2.downleft) {
thisPos2 = 1;
}
getMyCorners3(_local2.x + _local2.speed, _local2.y, _local2);
if ((_local2.downright and _local2.upright) and (xMove != -1)) {
xRightPos2 = 1;
}
getMyCorners3(_local2.x - _local2.speed, _local2.y, _local2);
if ((_local2.downleft and _local2.upleft) and (xMove != 1)) {
xLeftPos2 = 1;
}
getMyCorners3(_local2.x, _local2.y - _local2.speed, _local2);
if ((_local2.upright and _local2.upleft) and (yMove != -1)) {
yUpPos2 = 1;
}
getMyCorners3(_local2.x, _local2.y + _local2.speed, _local2);
if ((_local2.downright and _local2.downleft) and (yMove != 1)) {
yDownPos2 = 1;
}
xRightPos = 0;
xLeftPos = 0;
yUpPos = 0;
yDownPos = 0;
thisPos = 0;
getMyCorners1(_local2.x + _local2.speed, _local2.y, _local2);
if ((_local2.downright and _local2.upright) and (xMove != -1)) {
xRightPos = 1;
}
getMyCorners1(_local2.x - _local2.speed, _local2.y, _local2);
if ((_local2.downleft and _local2.upleft) and (xMove != 1)) {
xLeftPos = 1;
}
getMyCorners1(_local2.x, _local2.y - _local2.speed, _local2);
if ((_local2.upright and _local2.upleft) and (yMove != 1)) {
yUpPos = 1;
}
getMyCorners1(_local2.x, _local2.y + _local2.speed, _local2);
if ((_local2.downright and _local2.downleft) and (yMove != -1)) {
yDownPos = 1;
}
xRightBox = 0;
xLeftBox = 0;
yUpBox = 0;
yDownBox = 0;
getMyCorners2(_local2.x + _local2.speed, _local2.y, _local2);
if (((_local2.downright == 3) or (_local2.downright == 4)) and ((_local2.upright == 3) or (_local2.upright == 4))) {
xRightBox = 1;
}
getMyCorners2(_local2.x - _local2.speed, _local2.y, _local2);
if (((_local2.downleft == 3) or (_local2.downleft == 4)) and ((_local2.upleft == 3) or (_local2.upleft == 4))) {
xLeftBox = 1;
}
getMyCorners2(_local2.x, _local2.y - _local2.speed, _local2);
if (((_local2.upright == 3) or (_local2.upright == 4)) and ((_local2.upleft == 3) or (_local2.upleft == 4))) {
yUpBox = 1;
}
getMyCorners2(_local2.x, _local2.y + _local2.speed, _local2);
if (((_local2.downright == 3) or (_local2.downright == 4)) and ((_local2.downleft == 3) or (_local2.downleft == 4))) {
yDownBox = 1;
}
if (((game.clip[_local6]._x and game[(("t_" + _local2.ytile) + "_") + _local2.xtile].walkableComp) and thisPos2) and (((xLeftPos2 or xRightPos2) or yUpPos2) or yDownPos2)) {
if ((_global.level >= 0) || (_global.twoPlayer == 1)) {
var _local4 = _local2.xtile - char.xtile;
var _local3 = _local2.ytile - char.ytile;
if (_local4 < 0) {
_local4 = _local4 * -1;
}
if (_local3 < 0) {
_local3 = _local3 * -1;
}
if (_local2.bombForce > 4) {
_local2.bombF = 4;
} else {
_local2.bombF = _local2.bombForce;
}
if ((((_local4 <= _local2.bombF) and (_local3 == _local2.ytile)) or ((_local3 <= _local2.bombForce) and (_local2.xtile == char.xtile))) and (random(100) > (80 - _global.agressiveness))) {
if (_local2.bombsLeft > 0) {
dropBomb(_local2);
if (_local2.xmove == 1) {
if (_local2.xLeftPos2 == 1) {
_local2.xMove = -1;
}
}
if ((_local2.xmove = -1)) {
if (_local2.xRightPos2 == 1) {
_local2.xMove = 1;
}
}
if (_local2.ymove == 1) {
if (_local2.yUpPos2 == 1) {
_local2.yMove = -1;
}
}
if ((_local2.ymove = -1)) {
if (_local2.yDownPos2 == 1) {
_local2.yMove = 1;
}
}
}
}
j = 0;
while (j <= 3) {
if (j != _local5) {
_local4 = _local2.xtile - game["enemy" + j].xtile;
_local3 = _local2.ytile - game["enemy" + j].ytile;
if (_local4 < 0) {
_local4 = _local4 * -1;
}
if (_local3 < 0) {
_local3 = _local3 * -1;
}
if ((((_local4 <= _local2.bombF) and (_local2.ytile == game["enemy" + j].ytile)) or ((_local3 <= _local2.bombForce) and (_local2.xtile == game["enemy" + j].xtile))) and (random(100) > (80 - _global.agressiveness))) {
if (_local2.bombsLeft > 0) {
dropBomb(_local2);
if (_local2.xmove == 1) {
if (_local2.xLeftPos2 == 1) {
_local2.xMove = -1;
}
}
if ((_local2.xmove = -1)) {
if (_local2.xRightPos2 == 1) {
_local2.xMove = 1;
}
}
if (_local2.ymove == 1) {
if (_local2.yUpPos2 == 1) {
_local2.yMove = -1;
}
}
if ((_local2.ymove = -1)) {
if (_local2.yDownPos2 == 1) {
_local2.yMove = 1;
}
}
}
}
}
j++;
}
}
}
if ((((thisPos2 and (!xLeftPos2)) and (!xRightPos2)) and (!yUpPos2)) and (!yDownPos2)) {
_local2.clip.char.gotoAndStop(1);
} else if (((((!thisPos2) and (!xLeftPos2)) and (!xRightPos2)) and (!yUpPos2)) and (!yDownPos2)) {
if (_local2.xMove == 0) {
if (xLeftPos && (xRightPos)) {
_local2.xMove = (random(2) * 2) - 1;
_local2.yMove = 0;
} else if (xLeftPos) {
_local2.xMove = -1;
_local2.yMove = 0;
} else if (xRightPos) {
_local2.xMove = 1;
_local2.yMove = 0;
} else if ((_local2.yMove > 0) and (!yDownPos)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
} else if ((_local2.yMove < 0) and (!yUpPos)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
}
} else if (yUpPos && (yDownPos)) {
_local2.xMove = 0;
_local2.yMove = (random(2) * 2) - 1;
} else if (yUpPos) {
_local2.xMove = 0;
_local2.yMove = -1;
} else if (yDownPos) {
_local2.xMove = 0;
_local2.yMove = 1;
} else if ((_local2.xMove > 0) and (!xRightPos)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
} else if ((_local2.xMove < 0) and (!xLeftPos)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
}
moveChar(_local2, _local2.xMove, _local2.yMove);
} else {
if (_local2.xMove == 0) {
if (((xLeftPos2 and xRightPos2) and xLeftPos) and xRightPos) {
_local2.xMove = (random(2) * 2) - 1;
_local2.yMove = 0;
if ((yUpBox or yDownBox) and (random(100) > 70)) {
dropBomb(_local2);
if (random(100) > 50) {
_local2.yMove = -_local2.yMove;
_local2.xMove = 0;
}
}
} else if (xLeftPos2 and xLeftPos) {
_local2.xMove = -1;
_local2.yMove = 0;
if ((yUpBox or yDownBox) and (random(100) > 70)) {
dropBomb(_local2);
if (random(100) > 50) {
_local2.yMove = -_local2.yMove;
_local2.xMove = 0;
}
}
} else if (xRightPos2 and xRightPos) {
_local2.xMove = 1;
_local2.yMove = 0;
if ((yUpBox or yDownBox) and (random(100) > 70)) {
dropBomb(_local2);
if (random(100) > 50) {
_local2.yMove = -_local2.yMove;
_local2.xMove = 0;
}
}
} else if ((_local2.yMove > 0) and (!yDownPos2)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
if (((xLeftBox || xRightBox) || yUpBox) || yDownBox) {
dropBomb(_local2);
}
} else if ((_local2.yMove < 0) and (!yUpPos2)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
if (((xLeftBox || xRightBox) || yUpBox) || yDownBox) {
dropBomb(_local2);
}
}
} else if (((yUpPos2 && (yDownPos2)) and yUpPos) and yDownPos) {
_local2.xMove = 0;
_local2.yMove = (random(2) * 2) - 1;
if ((xLeftBox or xRightBox) and (random(100) > 70)) {
dropBomb(_local2);
if (random(100) > 50) {
_local2.yMove = 0;
_local2.xMove = -_local2.xMove;
}
}
} else if (yUpPos2 and yUpPos) {
_local2.xMove = 0;
_local2.yMove = -1;
if ((xLeftBox or xRightBox) and (random(100) > 70)) {
dropBomb(_local2);
if (random(100) > 50) {
_local2.yMove = 0;
_local2.xMove = -_local2.xMove;
}
}
} else if (yDownPos2 and yDownPos) {
_local2.xMove = 0;
_local2.yMove = 1;
if ((xRightBox or xLeftBox) and (random(100) > 70)) {
dropBomb(_local2);
if (random(100) > 50) {
_local2.yMove = 0;
_local2.xMove = -_local2.xMove;
}
}
} else if ((_local2.xMove > 0) and (!xRightPos2)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
if (((xLeftBox || xRightBox) || yUpBox) || yDownBox) {
dropBomb(_local2);
}
} else if ((_local2.xMove < 0) and (!xLeftPos2)) {
_local2.xMove = 0;
_local2.yMove = -_local2.yMove;
if (((xLeftBox || xRightBox) || yUpBox) || yDownBox) {
dropBomb(_local2);
}
}
moveChar(_local2, _local2.xMove, _local2.yMove);
}
}
_local5++;
}
}
function checkKilled(ob, target) {
getMyCorners5(ob.x, ob.y, ob);
if (((ob.upleft || (ob.upright)) || (ob.downleft)) || (ob.downright)) {
removeMovieClip(ob.clip);
game.clip[(("t_" + ob.ytile) + "_") + ob.xtile].gotoAndStop(5);
}
if (((!char.clip._x) && (!char2.clip._x)) && (_global.twoPlayer)) {
if (!draw) {
goNext = 1;
}
draw = 1;
}
}
function checkVictory() {
if (goNext >= 1) {
goNext++;
} else {
victory = 4;
if (game.clip.enemy0._x or char2.clip._x) {
victory = victory - 1;
}
if (game.clip.enemy1._x) {
victory = victory - 1;
}
if (game.clip.enemy2._x) {
victory = victory - 1;
}
if (!char.clip._x) {
if (!_global.twoPlayer) {
victory = 3;
}
} else {
victory = victory - 1;
}
if (victory == 3) {
if (goNext == 0) {
goNext = 1;
}
}
}
if (goNext >= 30) {
if (draw) {
gotoAndStop (19);
} else if (char.clip._x) {
if (_global.twoPlayer) {
gotoAndStop (17);
} else {
_global.agressiveness = _global.agressiveness + 4;
gotoAndStop (11);
}
} else if (char2.clip._x) {
if (_global.twoPlayer) {
if (_global.twoPlayer) {
gotoAndStop (18);
}
}
} else if (_global.lifes >= 1) {
gotoAndStop (13);
_global.lifes--;
} else {
gotoAndStop (12);
}
removeMovieClip(_root.tiles);
}
}
if (!_global.twoPlayer) {
levelShow = "Level " + _global.level;
}
mapLevel = _global.mapLevel;
enemies = [[13, 13], [13, 1], [1, 13]];
game = {tileW:30, tileH:30};
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile0.prototype.walkableComp = 1;
game.Tile0.prototype.allowId = 0;
game.Tile0.prototype.item = 0;
game.Tile0.prototype.onFire = 0;
game.Enemy = function () {
};
game.Enemy.prototype.bombsLeft = 1;
game.Enemy.prototype.speed = 3;
game.Enemy.prototype.bombForce = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Tile1.prototype.walkableComp = 0;
game.Tile1.prototype.item = 0;
game.Tile2 = function () {
};
game.Tile2.prototype.walkable = false;
game.Tile2.prototype.frame = 3;
game.Tile2.prototype.walkableComp = 0;
game.Tile2.prototype.item = 0;
game.Tile2.prototype.onFire = 0;
game.Tile3 = function () {
};
game.Tile3.prototype.walkable = false;
game.Tile3.prototype.frame = 3;
game.Tile3.prototype.walkableComp = 0;
game.Tile3.prototype.item = 0;
game.Tile3.prototype.onFire = 0;
game.Tile4 = function () {
};
game.Tile4.prototype.walkable = false;
game.Tile4.prototype.frame = 4;
game.Tile4.prototype.walkableComp = 0;
game.Tile4.prototype.item = 0;
game.Tile4.prototype.onFire = 0;
char = {xtile:1, ytile:1, speed:3};
char2 = {xtile:13, ytile:13, speed:3};
goNext = 0;
draw = 0;
playerFire = _global.playerFire;
player = _global.player;
playerFire2 = _global.playerFire2;
player2 = _global.player2;
playerFire3 = _global.playerFire3;
player3 = _global.player3;
playerFire4 = _global.playerFire4;
player4 = _global.player4;
if (_global.twoPlayer) {
p1name = "Player 1";
p2name = "Player 2";
} else {
p1name = _global.name;
p2name = "Enemy 1";
}
buildMap(mapLevel);
stop();
onEnterFrame = function () {
checkup = (((((char.clip._x + " ") + char2.clip._x) + " ") + draw) + " ") + goNext;
};
Instance of Symbol 399 MovieClip "p1Stat" in Frame 9
onClipEvent (load) {
p = _global.player;
if (p == "bomberBlue") {
gotoAndStop (1);
} else if (p == "bomberGreen") {
gotoAndStop (2);
} else if (p == "bomberPurple") {
gotoAndStop (3);
} else if (p == "bomberOrange") {
gotoAndStop (4);
}
}
Instance of Symbol 27 MovieClip [empty] "empty" in Frame 9
onClipEvent (load) {
if (_global.twoPlayer) {
timeLeft = 7200;
}
}
onClipEvent (enterFrame) {
if (_global.step >= 23) {
_global.step = 0;
_global.sec = _global.sec + 1;
}
if (_global.sec >= 60) {
_global.sec = 0;
_global.minute = _global.minute + 1;
}
if (_global.minute >= 60) {
_global.minute = 0;
_global.hour = _global.hour + 1;
}
if (_global.sec < 10) {
secplus = "0";
} else {
secplus = "";
}
if (_global.minute < 10) {
minplus = "0";
} else {
minplus = "";
}
if (_global.hour < 10) {
hourplus = "0";
} else {
hourplus = "";
}
timeLeft--;
_global.timer = ((((((hourplus + Math.round(_global.hour)) + ":") + minplus) + Math.round(_global.minute)) + ":") + secplus) + Math.round(_global.sec);
if (_global.twoPlayer) {
_root.timer = Math.round(timeLeft / 30);
} else {
_root.timer = _global.timer;
}
_global.time++;
_global.step++;
_root.detectKeys();
if (_global.twoPlayer == true) {
_root.detectKeys2();
}
_root.enemyBrain();
_root.checkKilled(_root.char);
if (_global.twoPlayer) {
_root.checkKilled(_root.char2);
} else {
_root.checkKilled(_root.game.enemy0);
}
if (_global.enemyNumb >= 2) {
_root.checkKilled(_root.game.enemy1);
if (_global.enemyNumb >= 3) {
_root.checkKilled(_root.game.enemy2);
}
}
_root.checkVictory();
_root.showUnlocked = _global.score;
if (_root.char.clip._x) {
_root.p1Speed = Math.round(_root.char.speedUp / 30);
_root.p1BombF = _root.char.bombForce;
if ((_root.char.bombsLeft > _root.p1BombL) || (!_root.p1BombL)) {
_root.p1BombL = _root.char.bombsLeft;
}
} else {
_root.p1Speed = 0;
_root.p1BombsL = 0;
_root.p1BombF = 0;
_root.char.bombsLeft = 0;
}
_root.p2Speed = Math.round(_root.game.enemy2.speedUp / 30);
_root.p2BombF = _root.game.enemy2.bombForce;
if (_root.game.clip.enemy0._x && (!_global.twoPlayer)) {
if ((_root.game.enemy0.bombsLeft > _root.p2BombL) || (!_root.p2BombL)) {
_root.p2BombL = _root.game.enemy0.bombsLeft;
}
_root.p2Speed = Math.round(_root.game.enemy0.speedUp / 30);
_root.p2BombF = _root.game.enemy0.bombForce;
} else if (_root.char2.clip._x && (_global.twoPlayer)) {
if ((_root.char2.bombsLeft > _root.p2BombL) || (!_root.p2BombL)) {
_root.p2BombL = _root.char2.bombsLeft;
}
_root.p2Speed = Math.round(_root.char2.speedUp / 30);
_root.p2BombF = _root.char2.bombForce;
} else {
_root.p2Speed = 0;
_root.p2BombL = 0;
_root.p2BombF = 0;
_root.char2.bombsLeft = 0;
_root.game.enemy0.bombsLeft = 0;
}
if (_root.game.clip.enemy1._x) {
if ((_root.game.enemy1.bombsLeft > _root.p3BombL) || (!_root.p3BombL)) {
_root.p3BombL = _root.game.enemy1.bombsLeft;
}
_root.p3Speed = Math.round(_root.game.enemy1.speedUp / 30);
_root.p3BombF = _root.game.enemy1.bombForce;
} else {
_root.p3Speed = 0;
_root.p3BombL = 0;
_root.p3BombF = 0;
_root.game.enemy1.bombsLeft = 0;
}
if (_root.game.clip.enemy2._x) {
if ((_root.game.enemy2.bombsLeft > _root.p4BombL) || (!_root.p4BombL)) {
_root.p4BombL = _root.game.enemy2.bombsLeft;
}
_root.p4Speed = Math.round(_root.game.enemy2.speedUp / 30);
_root.p4BombF = _root.game.enemy2.bombForce;
} else {
_root.p4Speed = 0;
_root.p4BombL = 0;
_root.p4BombF = 0;
_root.game.enemy2.bombsLeft = 0;
}
if (_global.score >= 50) {
_global.score = _global.score - 50;
_global.lifes++;
}
if (timeLeft <= 0) {
gotoAndStop (20);
}
if (_global.twoPlayer) {
_root.showUnlocked = "Available time:";
}
}
Instance of Symbol 399 MovieClip "p2Stat" in Frame 9
onClipEvent (load) {
p = _global.player2;
if (p == "bomberBlue") {
gotoAndStop (1);
} else if (p == "bomberGreen") {
gotoAndStop (2);
} else if (p == "bomberPurple") {
gotoAndStop (3);
} else if (p == "bomberOrange") {
gotoAndStop (4);
}
}
Instance of Symbol 399 MovieClip "p3Stat" in Frame 9
onClipEvent (load) {
p = _global.player3;
if (p == "bomberBlue") {
gotoAndStop (1);
} else if (p == "bomberGreen") {
gotoAndStop (2);
} else if (p == "bomberPurple") {
gotoAndStop (3);
} else if (p == "bomberOrange") {
gotoAndStop (4);
}
}
Instance of Symbol 399 MovieClip "p4Stat" in Frame 9
onClipEvent (load) {
p = _global.player4;
if (p == "bomberBlue") {
gotoAndStop (1);
} else if (p == "bomberGreen") {
gotoAndStop (2);
} else if (p == "bomberPurple") {
gotoAndStop (3);
} else if (p == "bomberOrange") {
gotoAndStop (4);
}
}
Frame 10
removeMovieClip(_root.tiles);
gotoAndStop (1);
Frame 11
_global.score = _global.score + 5;
if (_global.level > _global.so.data.unlocked) {
_global.so.data.unlocked = _global.level;
}
p1BombL = 1;
goNext = 0;
_global.levelScore = _global.levelScore + 1;
_global.level++;
if (_global.level == 2) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 2, 2, 2, 2, 2, 2, 2,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
} else if (_global.level == 5) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 2, 2, 2, 1, 1, 1, 2, 2, 0, 0, 0, 1], [1, 0, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 0, 1], [1, 2, 1, 3, 2, 2, 1, 1, 1, 2, 2, 3, 1, 0, 1], [1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1], [1, 2, 3, 2, 2, 4, 0, 4, 0, 4, 2, 2, 3, 2, 1], [1, 1, 1, 1, 1, 0, 1, 4, 1, 0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 4, 4, 1, 4, 4, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0, 1, 4, 1, 0, 1, 1, 1, 1, 1], [1, 2, 0, 0, 0, 4, 0, 4, 0, 4, 2, 0, 3, 2, 1], [1, 2, 1, 1, 1, 0, 1, 1, 1, 2, 1, 2, 1, 2, 1], [1, 2, 2, 2, 1, 0, 1, 1, 1, 0, 2, 3, 1, 0, 1], [1, 2, 1, 2, 1, 0, 1, 1, 1, 3, 1, 1, 1, 0, 1], [1, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 2;
} else if (_global.level == 6) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 3, 3, 0, 2, 2, 2, 2, 1], [1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 0, 1, 0, 2, 0, 0, 2, 0, 0, 3, 3, 3, 2, 1], [1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 2, 1], [1, 0, 1, 0, 1, 3, 0, 2, 0, 3, 2, 4, 2, 0, 1], [1, 0, 1, 0, 1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, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 2;
} else if (_global.level == 8) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1], [1, 0, 4, 4, 4, 2, 1, 3, 3, 3, 1, 3, 1, 1, 1], [1, 0, 1, 4, 1, 2, 1, 1, 1, 2, 1, 0, 2, 0, 1], [1, 0, 1, 2, 2, 3, 3, 0, 0, 3, 1, 3, 1, 0, 1], [1, 0, 1, 1, 1, 3, 1, 0, 1, 3, 1, 0, 1, 0, 1], [1, 2, 1, 3, 1, 0, 2, 4, 2, 3, 1, 3, 1, 0, 1], [1, 0, 1, 3, 1, 0, 1, 2, 1, 4, 0, 4, 1, 0, 1], [1, 0, 1, 3, 2, 3, 3, 3, 4, 4, 1, 0, 1, 0, 1], [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 4, 1, 0, 1], [1, 0, 1, 3, 0, 3, 0, 3, 4, 0, 4, 0, 2, 0, 1], [1, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1], [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 9) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1], [1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1], [1, 0, 2, 4, 0, 4, 0, 4, 0, 4, 0, 4, 2, 0, 1], [1, 2, 1, 0, 1, 1, 1, 2, 1, 1, 1, 0, 1, 2, 1], [1, 0, 1, 4, 1, 2, 2, 2, 2, 2, 1, 4, 1, 0, 1], [1, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 0, 1, 0, 1], [1, 0, 1, 4, 2, 2, 2, 2, 2, 2, 2, 4, 1, 0, 1], [1, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 0, 1, 0, 1], [1, 0, 1, 4, 1, 2, 2, 2, 2, 2, 1, 4, 1, 0, 1], [1, 2, 1, 0, 1, 1, 1, 2, 1, 1, 1, 0, 1, 2, 1], [1, 0, 2, 4, 0, 4, 0, 4, 0, 4, 0, 4, 2, 0, 1], [1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1], [1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 10) {
_global.agressiveness = _global.agressiveness + 4;
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 3, 3, 2, 3, 3, 2, 0, 0, 0, 1], [1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1], [1, 0, 2, 4, 2, 2, 2, 4, 2, 2, 2, 4, 2, 0, 1], [1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1], [1, 3, 1, 2, 1, 3, 3, 0, 3, 3, 1, 2, 1, 3, 1], [1, 3, 1, 2, 1, 3, 1, 0, 1, 3, 1, 2, 1, 3, 1], [1, 2, 1, 4, 2, 0, 0, 4, 0, 0, 2, 4, 1, 2, 1], [1, 3, 1, 2, 1, 3, 1, 0, 1, 3, 1, 2, 1, 3, 1], [1, 3, 1, 2, 1, 3, 3, 0, 3, 3, 1, 2, 1, 3, 1], [1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1], [1, 0, 2, 4, 2, 2, 2, 4, 2, 2, 2, 4, 2, 0, 1], [1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1], [1, 0, 0, 0, 2, 3, 3, 2, 3, 3, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 11) {
_global.agressiveness = _global.agressiveness + 4;
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 1, 0, 2, 2, 2, 0, 1, 0, 0, 0, 1], [1, 0, 1, 0, 2, 0, 1, 2, 1, 0, 2, 0, 1, 0, 1], [1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 3, 3, 1], [1, 3, 1, 3, 1, 0, 2, 2, 2, 0, 1, 0, 1, 2, 1], [1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 0, 1, 2, 1], [1, 2, 1, 3, 1, 3, 1, 1, 1, 3, 1, 3, 1, 2, 1], [1, 2, 3, 2, 1, 3, 3, 4, 3, 3, 1, 3, 3, 0, 1], [1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 0, 1], [1, 2, 1, 0, 3, 0, 1, 4, 1, 0, 3, 0, 1, 0, 1], [1, 2, 1, 3, 1, 0, 1, 3, 1, 0, 1, 3, 1, 2, 1], [1, 0, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 0, 1], [1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 12) {
_global.agressiveness = _global.agressiveness + 4;
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1], [1, 0, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 0, 1], [1, 0, 2, 3, 1, 4, 1, 2, 1, 4, 1, 3, 2, 0, 1], [1, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 1], [1, 0, 1, 4, 0, 1, 1, 3, 1, 1, 0, 4, 1, 0, 1], [1, 3, 1, 1, 2, 1, 0, 0, 2, 1, 2, 1, 1, 3, 1], [1, 3, 3, 0, 0, 3, 0, 1, 0, 3, 0, 0, 3, 3, 1], [1, 3, 1, 1, 2, 1, 0, 0, 2, 1, 2, 1, 1, 3, 1], [1, 0, 1, 4, 0, 1, 1, 3, 1, 1, 0, 4, 1, 0, 1], [1, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 1], [1, 0, 2, 3, 1, 4, 1, 2, 1, 4, 1, 3, 2, 0, 1], [1, 0, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 0, 1], [1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 13) {
_global.agressiveness = _global.agressiveness + 3;
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1], [1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1], [1, 0, 2, 2, 2, 2, 3, 3, 3, 0, 0, 0, 3, 0, 1], [1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1], [1, 1, 1, 1, 0, 1, 0, 2, 0, 1, 0, 1, 1, 1, 1], [1, 1, 1, 1, 3, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1], [1, 1, 1, 1, 3, 4, 0, 3, 0, 3, 0, 1, 1, 1, 1], [1, 1, 1, 1, 3, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1], [1, 1, 1, 1, 0, 1, 0, 2, 0, 1, 0, 1, 1, 1, 1], [1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1], [1, 0, 2, 0, 2, 2, 3, 3, 3, 2, 2, 0, 2, 0, 1], [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1], [1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 14) {
_global.agressiveness = _global.agressiveness + 2;
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 0, 1, 0, 1], [1, 0, 0, 3, 1, 3, 1, 2, 1, 3, 1, 2, 0, 0, 1], [1, 0, 1, 1, 1, 2, 1, 0, 1, 2, 1, 1, 1, 0, 1], [1, 0, 2, 2, 2, 3, 1, 0, 1, 3, 2, 2, 2, 0, 1], [1, 2, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 2, 1], [1, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 1], [1, 2, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 2, 1], [1, 0, 2, 2, 2, 3, 1, 0, 1, 3, 2, 2, 2, 0, 1], [1, 0, 1, 1, 1, 2, 1, 0, 1, 2, 1, 1, 1, 0, 1], [1, 0, 0, 2, 1, 3, 1, 2, 1, 3, 1, 2, 0, 0, 1], [1, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 0, 1, 0, 1], [1, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 15) {
_global.agressiveness = _global.agressiveness + 1;
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1], [1, 0, 1, 2, 1, 0, 1, 2, 1, 0, 1, 2, 1, 0, 1], [1, 0, 2, 0, 3, 0, 0, 0, 0, 0, 3, 0, 2, 0, 1], [1, 2, 1, 3, 1, 1, 0, 1, 0, 1, 1, 3, 1, 2, 1], [1, 0, 0, 0, 1, 2, 0, 4, 0, 2, 1, 0, 0, 0, 1], [1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1], [1, 0, 2, 0, 1, 4, 0, 4, 0, 4, 1, 0, 2, 0, 1], [1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1], [1, 0, 0, 0, 1, 2, 0, 4, 0, 2, 1, 0, 0, 0, 1], [1, 2, 1, 3, 1, 1, 0, 1, 0, 1, 1, 3, 1, 2, 1], [1, 0, 2, 0, 3, 0, 0, 0, 0, 0, 3, 0, 2, 0, 1], [1, 0, 1, 2, 1, 0, 1, 2, 1, 0, 1, 2, 1, 0, 1], [1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 16) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 3, 0, 4, 2, 3, 3, 0, 0, 0, 1], [1, 0, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 0, 1], [1, 0, 2, 3, 0, 0, 0, 1, 0, 0, 0, 3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, 1, 0, 0, 1, 1], [1, 0, 2, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1], [1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.enemyNumb = 3;
} else if (_global.level == 18) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 2, 0, 4, 0, 0, 4, 2, 0, 0, 0, 1], [1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 0, 1], [1, 0, 0, 2, 0, 0, 0, 1, 0, 1, 1, 3, 2, 0, 1], [1, 3, 1, 4, 1, 1, 0, 1, 0, 1, 1, 0, 1, 2, 1], [1, 2, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 3, 1], [1, 2, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 2, 0, 1], [1, 2, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 4, 1], [1, 2, 0, 2, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1], [1, 2, 1, 1, 1, 1, 0, 4, 0, 1, 1, 0, 1, 3, 1], [1, 2, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 3, 1], [1, 0, 1, 3, 0, 0, 0, 1, 0, 0, 0, 3, 2, 0, 1], [1, 0, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 0, 1], [1, 0, 0, 0, 2, 2, 1, 4, 2, 3, 3, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
} else if (_global.level == 19) {
_global.mapLevel = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 1], [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1], [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1], [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
} else {
gotoAndStop (14);
}
if (_global.twoPlayer) {
_root.gotoAndStop(9);
}
showIt = "Level " + _global.level;
Frame 12
bombType = 1;
goNext = 0;
_global.enemyNumb = 1;
_global.bombKind = 1;
_global.depth = 0;
_global.twoPlayer = false;
_global.difficulty = 10;
_global.mapNumb = 1;
_global.playerFire = "fireBlue";
_global.player = "bomberBlue";
_global.playerFire2 = "fireGreen";
_global.player2 = "bomberGreen";
_global.playerFire3 = "firePurple";
_global.player3 = "bomberPurple";
_global.playerFire4 = "fireOrange";
_global.player4 = "bomberOrange";
if (_global.so.data.unlocked < 1) {
pickExplosiveBomb._visible = false;
}
if (_global.so.data.unlocked < 2) {
pickPlayerPurple._visible = false;
}
if (_global.so.data.unlocked < 3) {
pickPlayerOrange._visible = false;
}
mapLevel1 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 3, 2, 1, 2, 1, 2, 3, 0, 0, 0, 1], [1, 0, 1, 3, 1, 0, 1, 0, 1, 0, 1, 3, 1, 0, 1], [1, 0, 3, 3, 3, 2, 3, 2, 3, 2, 3, 3, 3, 0, 1], [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1], [1, 2, 0, 2, 3, 2, 3, 2, 3, 2, 3, 2, 0, 2, 1], [1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 1, 1], [1, 2, 0, 2, 3, 2, 3, 4, 3, 2, 3, 2, 0, 2, 1], [1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 1, 1], [1, 2, 0, 2, 3, 2, 3, 2, 3, 2, 3, 2, 0, 2, 1], [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1], [1, 0, 3, 3, 0, 2, 3, 2, 3, 2, 0, 3, 3, 0, 1], [1, 0, 1, 3, 1, 0, 1, 0, 1, 0, 1, 3, 1, 0, 1], [1, 0, 0, 0, 3, 2, 1, 2, 1, 2, 3, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_global.mapLevel = mapLevel1;
Frame 13
p1BombL = 1;
goNext = 0;
Frame 14
goNext = 0;
Frame 16
status3 = "";
sendIt = 0;
onEnterFrame = function () {
if (sendIt) {
level = _global.level;
time = String(_global.timer);
if ((((((((((_root.emailInput.length < 6) || (_root.emailInput.indexOf(",") >= 0)) || (_root.emailInput.indexOf(";") >= 0)) || (_root.emailInput.indexOf(":") >= 0)) || (_root.emailInput.indexOf("/") >= 0)) || (_root.emailInput.indexOf(" ") >= 0)) || (_root.emailInput.indexOf("@") <= 0)) || (_root.emailInput.indexOf("@") != _root.emailInput.lastIndexOf("@"))) || (_root.emailInput.lastIndexOf(".") < _root.emailInput.indexOf("@"))) || ((_root.emailInput.lastIndexOf(".") + 3) > _root.emailInput.length)) {
status3 = "Email isn't right!";
} else {
getURL ((((((((("sendEmailChallenge.php?toEmail=" + toEmail.text) + "&to=") + to.text) + "&from=") + from.text) + "&time=") + time) + "&level=") + level, "_blank");
sendIt = 0;
gotoAndStop (5);
}
}
};
Frame 17
goNext = 0;
Frame 18
goNext = 0;
Frame 19
goNext = 0;
Frame 20
goNext = 0;
oneTime = 2;
cancel = 0;
replyData = new LoadVars();
sendData = new LoadVars();
sendData.name = _global.name;
sendData.level = _global.levelScore + 1;
sendData.time = String(_global.timer);
sendData.score = (_global.levelScore * 1000000) - _global.time;
sendData.onLoad = function (succes) {
if (succes) {
replyData.sendAndLoad("http://www.spelle.nl/games/speelmetvuur/highscore_view.php", replyData, "POST");
}
};
replyData.onLoad = function (succes) {
if (succes && (!cancel)) {
gotoAndStop (15);
}
};
if (oneTime == 2) {
oneTime = 1;
sendData.sendAndLoad("http://www.spelle.nl/games/speelmetvuur/highscore_add.php", sendData, "POST");
}
Instance of Symbol 31 MovieClip "loading" in Frame 20
onClipEvent (load) {
alphaFade = false;
}
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
if (alphaDecr) {
_alpha = (_alpha - 8);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
Symbol 10 MovieClip [tile] Frame 4
onEnterFrame = function () {
xtile = _x / _root.game.tileW;
ytile = _y / _root.game.tileH;
_root.empty.bombForce = 3;
_root.empty.playerFire = "fireOrange";
if ((_root.game[(("t_" + ytile) + "_") + xtile].onFire == 1) && (_root.game[(("t_" + ytile) + "_") + xtile].frame == 4)) {
_root.detonate(ytile, xtile, _root.empty);
_root.game[(("t_" + ytile) + "_") + xtile].frame = 1;
gotoAndStop (1);
}
};
Symbol 14 MovieClip [playSpelle] Frame 1
stop();
count = 0;
_alpha = 0;
onEnterFrame = function () {
count++;
if (count > 30) {
this.removeMovieClip();
}
};
Symbol 24 Button
on (release) {
getURL ("http://www.spelle.nl", "_blank");
}
Symbol 68 MovieClip Frame 1
_alpha = 0;
Symbol 94 MovieClip [bomberBlue] Frame 1
stop();
Symbol 127 MovieClip [bomberGreen] Frame 1
stop();
Symbol 160 MovieClip [bomberOrange] Frame 1
stop();
Symbol 193 MovieClip [bomberPurple] Frame 1
stop();
Symbol 212 MovieClip [fireBlue] Frame 1
time = 0;
etime = 30;
placeItem(ytile - i, xtile, ob);
onEnterFrame = function () {
time++;
if (time >= etime) {
_alpha = (_alpha - 10);
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = _root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha - 10;
}
}
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 0;
if (_alpha <= 30) {
player.bombsLeft = player.bombsLeft + 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].onFire = 0;
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].frame = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game.clip[(("t_" + ytile) + "_") + xtile].gotoAndStop(1);
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = 100;
}
removeMovieClip(this);
}
};
stop();
Symbol 227 MovieClip [fireGreen] Frame 1
time = 0;
etime = 30;
placeItem(ytile - i, xtile, ob);
onEnterFrame = function () {
time++;
if (time >= etime) {
_alpha = (_alpha - 10);
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = _root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha - 10;
}
}
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 0;
if (_alpha <= 30) {
player.bombsLeft = player.bombsLeft + 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].onFire = 0;
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].frame = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game.clip[(("t_" + ytile) + "_") + xtile].gotoAndStop(1);
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = 100;
}
removeMovieClip(this);
}
};
stop();
Symbol 242 MovieClip [fireOrange] Frame 1
time = 0;
etime = 30;
placeItem(ytile - i, xtile, ob);
onEnterFrame = function () {
time++;
if (time >= etime) {
_alpha = (_alpha - 10);
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = _root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha - 10;
}
}
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 0;
if (_alpha <= 30) {
player.bombsLeft = player.bombsLeft + 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].onFire = 0;
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].frame = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game.clip[(("t_" + ytile) + "_") + xtile].gotoAndStop(1);
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = 100;
}
removeMovieClip(this);
}
};
stop();
Symbol 257 MovieClip [firePurple] Frame 1
time = 0;
etime = 30;
onEnterFrame = function () {
time++;
if (time >= etime) {
_alpha = (_alpha - 10);
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = _root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha - 10;
}
}
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 0;
if (_alpha <= 30) {
player.bombsLeft = player.bombsLeft + 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].onFire = 0;
if (_root.game[(("t_" + ytile) + "_") + xtile].frame == 3) {
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 1;
_root.game[(("t_" + ytile) + "_") + xtile].frame = 1;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 1;
_root.game.clip[(("t_" + ytile) + "_") + xtile].gotoAndStop(1);
_root.game.clip[(("t_" + ytile) + "_") + xtile]._alpha = 100;
}
removeMovieClip(this);
}
};
stop();
Symbol 271 Button
on (release) {
getURL ("http://www.gameitnow.com", "_blank");
}
Symbol 300 MovieClip [explosive] Frame 1
stop();
gotoAndStop(_global.bombKind);
time = 0;
eTime = 60;
onEnterFrame = function () {
time = time + 1;
if ((time >= eTime) && (_x < 600)) {
_root.playBoom();
_root.detonate(ytile, xtile, player);
_root.game[(("t_" + ytile) + "_") + xtile].allowId = 0;
removeMovieClip(this);
}
if (_root.game[(("t_" + ytile) + "_") + xtile].walkable == 1) {
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 0;
free2 = 0;
ob = _root.char;
_root.getMyCorners6(ob.x, ob.y, ob);
if ((((ob.upleft == tile) or (ob.upright == tile)) or (ob.downleft == tile)) or (ob.downleft == tile)) {
free2 = free2 + 1;
}
if (_global.twoPlayer) {
ob = _root.char2;
} else {
ob = _root.game.enemy0;
}
_root.getMyCorners6(ob.x, ob.y, ob);
if ((((ob.upleft == tile) or (ob.upright == tile)) or (ob.downleft == tile)) or (ob.downleft == tile)) {
free2 = free2 + 1;
}
if (_global.enemyNumb >= 2) {
ob = _root.game.enemy1;
_root.getMyCorners6(ob.x, ob.y, ob);
if ((((ob.upleft == tile) or (ob.upright == tile)) or (ob.downleft == tile)) or (ob.downleft == tile)) {
free2 = free2 + 1;
}
if (_global.enemyNumb >= 3) {
ob = _root.game.enemy1;
_root.getMyCorners6(ob.x, ob.y, ob);
if ((((ob.upleft == tile) or (ob.upright == tile)) or (ob.downleft == tile)) or (ob.downleft == tile)) {
free2 = free2 + 1;
}
}
}
if (!free2) {
_root.game[(("t_" + ytile) + "_") + xtile].walkable = 0;
_root.game[(("t_" + ytile) + "_") + xtile].walkableComp = 0;
}
}
};
Symbol 305 MovieClip Frame 5
stop();
Symbol 307 MovieClip Frame 5
stop();
Symbol 311 Button
on (release) {
_root.gotoAndStop(6);
}
Symbol 312 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 317 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 319 Button
on (release) {
getURL ("http://www.gameitnow.com", "_blank");
}
Symbol 321 Button
on (release) {
_global.playerFire = "fireBlue";
_global.player = "bomberBlue";
_global.playerFire2 = "fireGreen";
_global.player2 = "bomberGreen";
_global.playerFire3 = "firePurple";
_global.player3 = "bomberPurple";
_global.playerFire4 = "fireOrange";
_global.player4 = "bomberOrange";
_root.selectP1._x = 75;
}
Symbol 322 Button
on (release) {
_global.playerFire2 = "fireBlue";
_global.player2 = "bomberBlue";
_global.playerFire = "fireGreen";
_global.player = "bomberGreen";
_global.playerFire3 = "firePurple";
_global.player3 = "bomberPurple";
_global.playerFire4 = "fireOrange";
_global.player4 = "bomberOrange";
_root.selectP1._x = 120;
}
Symbol 323 Button
on (release) {
_global.playerFire4 = "fireBlue";
_global.player4 = "bomberBlue";
_global.playerFire2 = "fireGreen";
_global.player2 = "bomberGreen";
_global.playerFire3 = "firePurple";
_global.player3 = "bomberPurple";
_global.playerFire = "fireOrange";
_global.player = "bomberOrange";
_root.selectP1._x = 210;
}
Symbol 324 Button
on (release) {
_global.playerFire3 = "fireBlue";
_global.player3 = "bomberBlue";
_global.playerFire2 = "fireGreen";
_global.player2 = "bomberGreen";
_global.playerFire = "firePurple";
_global.player = "bomberPurple";
_global.playerFire4 = "fireOrange";
_global.player4 = "bomberOrange";
_root.selectP1._x = 165;
}
Symbol 328 Button
on (release) {
_root.sendIt == 0;
_root.gotoAndStop(9);
}
Symbol 330 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 335 Button
on (release) {
_global.bombKind = 2;
_root.selectBombType._x = 120;
}
Symbol 336 Button
on (release) {
_global.bombKind = 1;
_root.selectBombType._x = 75;
}
Symbol 340 Button
on (release) {
_global.playerFire = "fireBlue";
_global.player = "bomberBlue";
_global.playerFire3 = "fireGreen";
_global.player3 = "bomberGreen";
_root.selectP1._x = 75;
}
Symbol 341 Button
on (release) {
_root.selectP1._x = 120;
_global.playerFire = "fireGreen";
_global.player = "bomberGreen";
_global.playerFire3 = "fireBlue";
_global.player3 = "bomberBlue";
}
Symbol 346 Button
on (release) {
_root.status2 = "";
if (_root.selectMap._y == 332) {
levelGoto = Number(_root.level.text);
if (((levelGoto >= 1) && ((levelGoto - 1) <= _global.so.data.unlocked)) && (levelGoto)) {
_global.level = levelGoto - 1;
_root.gotoAndStop(11);
} else {
_root.status2 = ("The level number must be between the 1 and " + (_global.so.data.unlocked + 1)) + ".";
}
} else {
_root.gotoAndStop(9);
}
}
Symbol 356 MovieClip Frame 1
stop();
Symbol 360 Button
on (release) {
_root.mapPreview.gotoAndStop(1);
_root.selectMap._x = 75;
_root.selectMap._y = 296;
_global.mapLevel = _root.mapLevel1;
}
Symbol 362 Button
on (release) {
_root.mapPreview.gotoAndStop(2);
_root.selectMap._x = 120;
_root.selectMap._y = 296;
_global.mapLevel = _root.mapLevel2;
}
Symbol 364 Button
on (release) {
_root.mapPreview.gotoAndStop(3);
_root.selectMap._x = 165;
_root.selectMap._y = 296;
_global.mapLevel = _root.mapLevel3;
}
Symbol 365 Button
on (release) {
_global.enemyNumb = 2;
_root.selectPlayerNumb._x = 120;
}
Symbol 366 Button
on (release) {
_global.enemyNumb = 3;
_root.selectPlayerNumb._x = 165;
}
Symbol 368 Button
on (release) {
_root.mapPreview.gotoAndStop(4);
_root.selectMap._x = 210;
_root.selectMap._y = 296;
_global.mapLevel = _root.mapLevel4;
}
Symbol 371 Button
on (release) {
_root.mapPreview.gotoAndStop(5);
_root.selectMap._x = 75;
_root.selectMap._y = 332;
}
Symbol 376 Button
on (release) {
_root.selectP2._x = 120;
_global.playerFire2 = "fireOrange";
_global.player2 = "bomberOrange";
_global.playerFire4 = "firePurple";
_global.player4 = "bomberPurple";
}
Symbol 377 Button
on (release) {
_root.selectP2._x = 75;
_global.playerFire4 = "fireOrange";
_global.player4 = "bomberOrange";
_global.playerFire2 = "firePurple";
_global.player2 = "bomberPurple";
}
Symbol 379 Button
on (release) {
_global.enemyNumb = 1;
_root.selectPlayerNumb._x = 75;
}
Symbol 399 MovieClip Frame 5
_alpha = 60;
Symbol 410 MovieClip Frame 1
if (_global.twoPlayer == 1) {
_visible = false;
}
onEnterFrame = function () {
life = _global.lifes;
};
Symbol 425 MovieClip Frame 5
stop();
Symbol 431 Button
on (release) {
_root.gotoAndStop(9);
}
Symbol 436 Button
on (release) {
_root.gotoAndStop(12);
}
Symbol 450 Button
on (release) {
_root.gotoAndStop(16);
}
Symbol 499 Button
on (release) {
_root.sendIt = 1;
}
Symbol 516 Button
on (release) {
_root.cancel = 1;
_root.gotoAndStop(5);
}