Frame 1
function itemHandler1(obj, item) {
getURL ("http://www.armorgames.com", "_blank");
}
percentDone = 0;
surv_allow = true;
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "armorgames.com") {
_root._y = -480;
_root.gotoAndStop(1);
}
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Play More Games!", itemHandler1);
myMenu.customItems.push(item1);
_root.menu = myMenu;
Frame 2
totalBytes = Math.round(_root.getBytesTotal() / 1024);
loadedBytes = Math.round(_root.getBytesLoaded() / 1024);
if (percentDone < Math.round((loadedBytes / totalBytes) * 100)) {
percentDone++;
preloaderImg._x = preloaderImg._x + 6;
}
preloaderBar.img._xscale = 10 + (percentDone * 3);
if (percentDone >= 100) {
_root.gotoAndPlay("Armor");
}
Frame 3
gotoAndPlay (2);
Frame 5
_global.playSound = function () {
if (sound == true) {
soundmap.gotoAndStop(arguments[random(arguments.length)]);
}
};
_global.playVocal = function () {
if (sound == true) {
do {
x = 1 + random(6);
} while (vocal_pre == x);
vocal_pre = x;
soundmap.gotoAndStop("vocal_" + x);
}
};
_global.playMusic = function (z) {
musicmap.gotoAndStop("stop");
if (music == true) {
if (z == "muz") {
if ((lvl % 2) == 0) {
musicmap.gotoAndStop("muz_3");
} else {
musicmap.gotoAndStop("muz_2");
}
} else {
musicmap.gotoAndStop(z);
}
}
};
_global.saveGame = function () {
my_so.data.maxlvl = maxlvl;
my_so.data.diff = diff;
my_so.data.money = money;
my_so.data.dampow = dampow;
my_so.data.stupor = stupor;
my_so.data.spdpow = spdpow;
my_so.data.maxpow = maxpow;
my_so.data.bonusBomb = bonusBomb;
my_so.data.bonusKap = bonusKap;
my_so.data.bonusGun = bonusGun;
my_so.data.bonusShot = bonusShot;
my_so.data.sound = sound;
my_so.data.music = music;
my_so.data.hint = hint;
my_so.data.effect = effect;
i = 0;
while (i < 31) {
my_so.data["sav" + i] = sav[i];
i++;
}
i = 1;
while (i < 10) {
my_so.data["upgr" + i] = upgr[i];
i++;
}
my_so.flush();
};
_global.loadGame = function () {
if (my_so.data.maxlvl == undefined) {
sound = true;
music = true;
hint = true;
effect = true;
upgr = new Array();
sav = new Array();
sav[0] = [0, 0, 0];
if (sav[30] == undefined) {
sav[30] = 0;
}
resetGame();
} else {
maxlvl = my_so.data.maxlvl;
diff = my_so.data.diff;
money = my_so.data.money;
dampow = my_so.data.dampow;
stupor = my_so.data.stupor;
spdpow = my_so.data.spdpow;
maxpow = my_so.data.maxpow;
bonusBomb = my_so.data.bonusBomb;
bonusKap = my_so.data.bonusKap;
bonusGun = my_so.data.bonusGun;
bonusShot = my_so.data.bonusShot;
sound = my_so.data.sound;
music = my_so.data.music;
hint = my_so.data.hint;
effect = my_so.data.effect;
upgr = new Array();
sav = new Array();
i = 0;
while (i < 31) {
sav[i] = my_so.data["sav" + i];
i++;
}
i = 1;
while (i < 10) {
upgr[i] = my_so.data["upgr" + i];
i++;
}
}
};
_global.resetGame = function () {
maxlvl = 1;
diff = 1;
money = 0;
dampow = 0;
stupor = 50;
spdpow = 1;
maxpow = 10;
bonusBomb = 120;
bonusKap = 4;
bonusGun = 40;
bonusShot = 6;
i = 1;
while (i < 21) {
sav[i] = [0, 0, 0];
i++;
}
i = 1;
while (i < 10) {
upgr[i] = 1;
i++;
}
upgr[4] = 4;
upgr[5] = 6;
};
_global.hitPoint = function (x, y, ob) {
if (x > (ob._x + ob.w1)) {
if (x < (ob._x + ob.w2)) {
if (y > (ob._y + ob.h1)) {
if (y < (ob._y + ob.h2)) {
return(true);
}
}
}
}
};
_global.openScreen = function (ob, type) {
trans_delay = true;
trans.tar = ob;
if (type == true) {
trans.gotoAndPlay(17);
} else {
trans.gotoAndPlay(2);
}
};
_global.openMenu = function (ob, type) {
reload = 4;
if (ob == "exit") {
_root.paused = false;
Mouse.hide();
_root.cursor._visible = true;
} else {
if (ob == "back") {
ob = gamemenu.backmenu;
}
_root.paused = true;
Mouse.show();
_root.cursor._visible = false;
_root.menubut._visible = false;
}
gamemenu.backmenu = gamemenu.tar;
gamemenu.tar = ob;
if (type == true) {
gamemenu.gotoAndStop(ob);
_root.paused = true;
Mouse.show();
_root.cursor._visible = false;
} else {
gamemenu.close = true;
gamemenu._xscale = (gamemenu._yscale = 120);
}
};
_global.showLogo = function (ob) {
if (ob == 0) {
logo.gotoAndPlay(16);
} else {
paused = true;
logo.gotoAndPlay(2);
logo.img.gotoAndPlay(ob);
}
};
_global.huntEnemy = function (ob) {
if (ob.cargo == false) {
z = bankFood.length;
i = 0;
while (i < z) {
if (bankFood[i].count > 0) {
if (ob.food == undefined) {
ob.food = bankFood[i];
} else if (Math.random() < (1.2 / z)) {
ob.food = bankFood[i];
}
}
i++;
}
if (ob.food != undefined) {
tarx = ob.food.xtile;
tary = ob.food.ytile;
} else {
do {
tarx = 1 + random(13);
tary = 1 + random(13);
} while (colmap[tarx][tary] == 0);
}
} else {
tarx = ob.xstart;
tary = ob.ystart;
}
ob.path = findPath(colmap, ob.xtile, ob.ytile, tarx, tary);
};
_global.huntVor = function (ob) {
z = bankFood.length;
i = 0;
while (i < z) {
if (bankFood[i].count > 0) {
if (ob.food == undefined) {
ob.food = bankFood[i];
} else if (Math.random() < (1.2 / z)) {
ob.food = bankFood[i];
}
}
i++;
}
if (ob.food == undefined) {
j = 0;
while (j < bankEnemy.length) {
if (bankEnemy[j] == ob) {
bankEnemy.splice(j, 1);
break;
}
j++;
}
ob.removeMovieClip();
} else {
ob._y = ob.food._y + 18;
}
};
_global.huntSpider = function (ob) {
if (ob.act < 2) {
do {
tarx = 2 + random(11);
tary = 2 + random(11);
} while (colmap[tarx][tary] == 0);
} else {
tarx = ob.xstart;
tary = ob.ystart;
}
ob.path = findPath(colmap, ob.xtile, ob.ytile, tarx, tary);
};
_global.moveSet = function (ob) {
targetx = ob.path[z][1];
targety = ob.path[z][0];
ob.path.length = z;
ob.dirx = 0;
ob.diry = 0;
if (targetx > ob.xtile) {
ob.dirx = 4;
ob.gotoAndStop(2);
}
if (targetx < ob.xtile) {
ob.dirx = -4;
ob.gotoAndStop(6);
}
if (targety > ob.ytile) {
ob.diry = 3;
if (ob.dirx == 0) {
ob.gotoAndStop(8);
} else if (ob.dirx > 0) {
ob.gotoAndStop(9);
} else {
ob.gotoAndStop(7);
}
}
if (targety < ob.ytile) {
ob.diry = -3;
if (ob.dirx == 0) {
ob.gotoAndStop(4);
} else if (ob.dirx > 0) {
ob.gotoAndStop(3);
} else {
ob.gotoAndStop(5);
}
}
};
_global.moveEnemy = function (ob) {
if ((((ob._x - tileW) % tileW) == 0) and (((ob._y - tileH) % tileH) == 0)) {
ob.xtile = Math.floor(ob._x / tileW);
ob.ytile = Math.floor(ob._y / tileH);
z = ob.path.length - 1;
if (colmap[ob.ytile][ob.xtile] == 3) {
j = 0;
while (j < bankKap.length) {
if (bankKap[j]._currentframe == 23) {
if ((bankKap[j].xtile == ob.xtile) and (bankKap[j].ytile == ob.ytile)) {
bankKap[j].play();
playSound("trap1", "trap2");
if (bankKap[j].life < 2) {
colmap[ob.ytile][ob.xtile] = 1;
bankKap[j].removeMovieClip();
bankKap.splice(j, 1);
} else {
bankKap[j].life--;
}
if (ob.cargo > 0) {
createPrize(ob._x + 24, ob._y + 18, 2 + ob.food.type, 1, ob.food);
}
dieEnemy(ob);
break;
}
}
j++;
}
}
if (z > -1) {
moveSet(ob);
ob.grib.grib.gotoAndStop(Math.ceil((ob._currentframe - 1) * 1.5));
} else {
if (ob.cargo == false) {
if (ob.food.count > 0) {
ob.cargo = (ob.grib._visible = true);
ob.grib.gotoAndStop(ob.food.type);
ob.grib._xscale = (ob.grib._yscale = 10);
ob.food["grib" + ob.food.count]._visible = false;
ob.food.count--;
huntEnemy(ob);
} else {
ob.food = undefined;
huntEnemy(ob);
}
} else {
if ((ob.xtile == ob.xstart) or (ob.ytile == ob.ystart)) {
dieFood(ob);
}
huntEnemy(ob);
}
return(undefined);
}
}
ob._x = ob._x + (ob.speed * ob.dirx);
ob._y = ob._y + (ob.speed * ob.diry);
};
_global.moveMedved = function (ob) {
if ((((ob._x - tileW) % tileW) == 0) and (((ob._y - tileH) % tileH) == 0)) {
ob.xtile = Math.floor(ob._x / tileW);
ob.ytile = Math.floor(ob._y / tileH);
z = ob.path.length - 1;
if (colmap[ob.ytile][ob.xtile] == 3) {
j = 0;
while (j < bankKap.length) {
if (bankKap[j]._currentframe == 23) {
if ((bankKap[j].xtile == ob.xtile) and (bankKap[j].ytile == ob.ytile)) {
bankKap[j].play();
playSound("trap1", "trap2");
if (bankKap[j].life < 3) {
colmap[ob.ytile][ob.xtile] = 1;
bankKap[j].removeMovieClip();
bankKap.splice(j, 1);
} else {
bankKap[j].life = bankKap[j].life - 3;
}
dieEnemy(ob);
return(undefined);
}
}
j++;
}
}
if (z > -1) {
moveSet(ob);
} else {
ob.eating = 43;
ob.gotoAndStop(10);
return(undefined);
}
}
ob._x = ob._x + (ob.speed * ob.dirx);
ob._y = ob._y + (ob.speed * ob.diry);
};
_global.moveSpider = function (ob) {
if ((((ob._x - tileW) % tileW) == 0) and (((ob._y - tileH) % tileH) == 0)) {
ob.xtile = Math.floor(ob._x / tileW);
ob.ytile = Math.floor(ob._y / tileH);
z = ob.path.length - 1;
if (z > -1) {
moveSet(ob);
} else {
if (ob.act == 3) {
i = 0;
while (i < bankEnemy.length) {
if (bankEnemy[i] == ob) {
bankEnemy.splice(i, 1);
break;
}
i++;
}
ob.removeMovieClip();
} else {
ob.moving = -15 - random(15);
ob.act++;
ob.spid.stop();
}
return(undefined);
}
}
ob._x = ob._x + (ob.speed * ob.dirx);
ob._y = ob._y + (ob.speed * ob.diry);
};
_global.dieFood = function (ob) {
if (ob.food.count == 0) {
die = 0;
i = 0;
while (i < bankEnemy.length) {
if (bankEnemy[i] != ob) {
if (bankEnemy[i].cargo == true) {
if (bankEnemy[i].food == ob.food) {
die = 1;
break;
}
}
}
i++;
}
if (die == 0) {
i = 0;
while (i < bankPrize.length) {
if (bankPrize[i].info == ob.info) {
if (bankPrize[i] != ob) {
die = 1;
break;
}
}
i++;
}
}
trace("die=" + die);
if (die == 0) {
ob.food.kill = true;
createScore(ob.food._x, ob.food._y, 3);
i = 0;
while (i < bankFood.length) {
if (bankFood[i] == ob.food) {
bankFood.splice(i, 1);
break;
}
i++;
}
if (bankFood.length == 0) {
playMusic("stop");
if (minigame == 0) {
showLogo(4);
} else {
openMenu("send");
}
}
}
}
if ((ob.type == 1) or (ob.type == 3)) {
i = 0;
while (i < bankEnemy.length) {
if (bankEnemy[i] == ob) {
bankEnemy.splice(i, 1);
break;
}
i++;
}
ob.removeMovieClip();
}
};
_global.dieBird = function (ob) {
i = 0;
while (i < bankEnemy.length) {
if (bankEnemy[i] == ob) {
bankEnemy.splice(i, 1);
break;
}
i++;
}
ob.removeMovieClip();
};
_global.dieEnemy = function (ob) {
i--;
combo++;
j = 0;
while (j < bankEnemy.length) {
if (bankEnemy[j] == ob) {
bankEnemy.splice(j, 1);
break;
}
j++;
}
switch (ob.type) {
case 1 :
playSound("heddie1", "heddie2");
achi[0]++;
createPrize(ob._x + 24, ob._y + 18, 1, 1);
createPart(ob._x + 24, ob._y + 18, "boom", levelmap.getNextHighestDepth(), 1);
if (effect == true) {
createPart(ob._x + 24, ob._y + 18, "hulk3", levelmap.getNextHighestDepth(), 6);
}
ob.removeMovieClip();
break;
case 2 :
playSound("beard1", "beard2");
ob.moving = -500;
ob.eating = 0;
ob.gotoAndPlay(13);
createPrize(ob._x + 24, ob._y + 18, 1, 2);
createPrize(ob._x + 24, ob._y + 18, 2, 1);
break;
case 3 :
playSound("bird1", "bird2");
achi[1]++;
createPrize(ob._x, ob._y + ob.bird._y, 2, 1, 0);
createPart(ob._x, ob._y + ob.bird._y, "boom", levelmap.getNextHighestDepth(), 1);
if (ob.info > 0) {
if (ob.info < 5) {
createWeap(ob._x, ob._y + ob.bird._y, 1 + ob.info, 0);
} else {
createPrize(ob._x, ob._y + ob.bird._y, 2 + ob.info, 1, 0);
}
}
if (effect == true) {
createPart(ob._x, ob._y + ob.bird._y, "pero", levelmap.getNextHighestDepth(), 8);
}
createPart(ob._x, ob._y + ob.bird._y, "boom", levelmap.getNextHighestDepth(), 1);
ob.removeMovieClip();
}
};
_global.dieChest = function (ob) {
achi[6]++;
i--;
j = 0;
while (j < bankChest.length) {
if (bankChest[j] == ob) {
bankChest.splice(j, 1);
break;
}
j++;
}
switch (ob._currentframe) {
case 2 :
playSound("box1");
createPrize(ob._x + 24, ob._y + 10, 1, 3);
createPrize(ob._x + 24, ob._y + 10, 2, 2);
createWeap(ob._x + 24, ob._y + 10, 0);
createPart(ob._x + 24, ob._y + 18, "boom", levelmap.getNextHighestDepth(), 1);
if (effect == true) {
createPart(ob._x + 24, ob._y + 10, "hulk1", levelmap.getNextHighestDepth(), 8);
}
break;
case 3 :
playSound("box2");
createPrize(ob._x + 24, ob._y + 10, 1, 2);
createPrize(ob._x + 24, ob._y + 10, 2, 4);
createPrize(ob._x + 24, ob._y + 10, 7, 1);
createWeap(ob._x + 24, ob._y + 10, 0);
createPart(ob._x + 24, ob._y + 18, "boom", levelmap.getNextHighestDepth(), 1);
if (effect == true) {
createPart(ob._x + 24, ob._y + 10, "hulk2", levelmap.getNextHighestDepth(), 8);
}
break;
case 4 :
if ((bonus == 0) and (minigame != 5)) {
createPrize(ob._x + 24, ob._y + 10, 1, 3);
createPrize(ob._x + 24, ob._y + 10, 2, 3);
createPrize(ob._x + 24, ob._y + 10, 8, 2);
createWeap(ob._x + 24, ob._y + 10, 0);
} else {
switch (ob.info) {
case 0 :
createPrize(ob._x + 24, ob._y + 10, 8, 5);
break;
case 1 :
if (bonus > 0) {
createPrize(ob._x + 24, ob._y + 10, 7, 1);
} else {
createPrize(ob._x + 24, ob._y + 10, 7, 3);
createPrize(ob._x + 24, ob._y + 10, 1, 3);
}
break;
case 2 :
if (bonus > 0) {
createEnemy(ob.xtile, ob.ytile, 4);
}
break;
case 3 :
createPrize(ob._x + 24, ob._y + 10, 1, 10);
break;
case 4 :
createPrize(ob._x + 24, ob._y + 10, 2, 10);
}
}
createPart(ob._x + 24, ob._y + 18, "boom", levelmap.getNextHighestDepth(), 1);
}
colmap[ob.ytile][ob.xtile] = 1;
ob.removeMovieClip();
};
_global.objCount = 0;
_global.createEnemy = function (x, y, type, info) {
objCount++;
obj = levelmap.attachMovie("enemy" + type, "enemy" + objCount, ((y * tileH) * 10000) + objCount);
obj._x = x * tileW;
obj._y = y * tileH;
obj.type = type;
obj.info = info;
obj.id = objCount;
obj.isEnemy = true;
bankEnemy.push(obj);
};
_global.createChest = function (x, y, type, info) {
objCount++;
obj = levelmap.attachMovie("chest", "chest" + objCount, ((y * tileH) * 10000) + objCount);
obj._x = x * tileW;
obj._y = y * tileH;
obj.xtile = x;
obj.ytile = y;
obj.info = info;
obj.gotoAndStop(type);
bankChest.push(obj);
};
_global.createWall = function (x, y, type) {
objCount++;
obj = levelmap.attachMovie("wall", "wall" + objCount, ((y * tileH) * 10000) + objCount);
obj._x = x * tileW;
obj._y = y * tileH;
obj.gotoAndStop(type);
bankWall.push(obj);
};
_global.createTree = function (x, y, type) {
objCount++;
obj = levelmap.attachMovie("tree", "tree" + objCount, (((y * tileH) + 1) * 10000) + objCount);
obj._x = (x * tileW) + 24;
obj._y = (y * tileH) + 18;
obj.gotoAndStop(weather + random(4));
obj.img.gotoAndStop(type);
if (random(10) < 5) {
obj._xscale = -100;
}
bankTree.push(obj);
createShad(x, y);
obj.info = z;
};
_global.prizeCount = 0;
_global.createPrize = function (x, y, type, count, info) {
j = 1;
while (j <= count) {
prizeCount++;
obj = levelmap.attachMovie("prize", "prize" + prizeCount, 10000000 + prizeCount);
obj._x = x;
obj._y = y;
obj.type = type;
obj.gotoAndStop(type);
obj.info = info;
bankPrize.push(obj);
j++;
}
};
_global.createWeap = function (x, y, type, info) {
prizeCount++;
obj = levelmap.attachMovie("weap", "weap" + prizeCount, 10000000 + prizeCount);
obj._x = x;
obj._y = y;
if (type == 0) {
do {
type = 2 + random(4);
} while (lvl < weapin[type]);
}
obj.gotoAndStop(type);
obj.info = info;
bankWeap.push(obj);
};
_global.createFlow = function (x, y) {
objCount++;
obj = back.img.attachMovie("flow", "flow" + objCount, objCount);
obj._x = ((x * tileW) + random(28)) - 374;
obj._y = ((y * tileH) + random(16)) - 260;
obj.gotoAndStop(1 + random(5));
bankFlow.push(obj);
};
_global.createShad = function (x, y) {
objCount++;
z = back.img.attachMovie("tree_s", "tree_s" + objCount, objCount);
z._x = (x * tileW) - 360;
z._y = (y * tileH) - 252;
if (random(10) < 5) {
z._xscale = -100;
}
bankFlow.push(z);
};
_global.createFood = function (x, y, count) {
objCount++;
obj = levelmap.attachMovie("food", "food" + objCount, objCount);
colmap[y][x] = 2;
obj._x = x * tileW;
obj._y = y * tileH;
obj.type = 1 + random(4);
obj.count = count;
bankFood.push(obj);
};
_global.createKap = function (x, y) {
objCount++;
obj = levelmap.attachMovie("kap", "kap" + objCount, objCount);
colmap[y][x] = 3;
obj._x = x * tileW;
obj._y = y * tileH;
obj.xtile = x;
obj.ytile = y;
obj.life = bonusKap;
bankKap.push(obj);
};
_global.createPart = function (x, y, type, depth, count, info) {
j = 1;
while (j <= count) {
obj = levelmap.attachMovie(type, "part", (depth + j) - 1);
obj._x = x;
obj._y = y;
if (type == "list") {
obj.gotoAndStop(info + 1);
}
j++;
}
};
_global.createInterPart = function (x, y, type) {
obj = _root.attachMovie(type, "part", _root.getNextHighestDepth());
obj._x = x;
obj._y = y;
};
_global.createScore = function (x, y, type) {
obj = levelmap.attachMovie("scoreobj", "score", levelmap.getNextHighestDepth());
obj._x = x + 24;
obj._y = y + 18;
obj.gotoAndStop(type);
};
_global.clearLevel = function () {
curr_money = 0;
magnit = (win = false);
alarmEnemy = 0;
key = 0;
cursor.gotoAndStop(1);
logo.gotoAndStop(1);
ammopip.gotoAndStop(1);
inter._visible = false;
menubut._visible = false;
prog._visible = false;
inter_level._visible = false;
prog.img._xscale = 0;
mini_inter._visible = false;
back.img.lin._visible = false;
back.img.road._visible = false;
colmap = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
j = 0;
while (j < 11) {
achi[j] = 0;
j++;
}
j = 0;
while (j < bankEnemy.length) {
bankEnemy[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankChest.length) {
bankChest[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankWall.length) {
bankWall[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankTree.length) {
bankTree[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankPrize.length) {
bankPrize[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankWeap.length) {
bankWeap[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankFlow.length) {
bankFlow[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankFood.length) {
bankFood[j].removeMovieClip();
j++;
}
j = 0;
while (j < bankKap.length) {
bankKap[j].removeMovieClip();
j++;
}
objCount = 0;
wallCount = 0;
prizeCount = 0;
bankEnemy.length = 0;
bankPrize.length = 0;
bankWeap.length = 0;
bankWall.length = 0;
bankTree.length = 0;
bankFood.length = 0;
bankKap.length = 0;
bankChest.length = 0;
bankFlow.length = 0;
while (levelmap.prize != undefined) {
levelmap.prize.removeMovieClip();
}
};
_global.lengthdir_x = function (len, dir) {
return(Math.cos((dir * Math.PI) / 180) * len);
};
_global.lengthdir_y = function (len, dir) {
return((-Math.sin((dir * Math.PI) / 180)) * len);
};
_global.point_distance = function (x1, y1, x2, y2) {
return(Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)));
};
_global.point_direction = function (x1, y1, x2, y2) {
return((Math.atan2(y2 - y1, x2 - x1) / Math.PI) * 180);
};
_global.choose = function () {
return(arguments[random(arguments.length)]);
};
_global.findPath = function (map, startX, startY, endX, endY) {
var _local18 = 10;
var _local12 = 14;
var _local16 = true;
var _local15 = false;
isOpen = function (y, x) {
return(mapStatus[y][x].open);
};
isClosed = function (y, x) {
return(mapStatus[y][x].closed);
};
nearerSquare = function () {
var _local4 = 999999 /* 0x0F423F */;
var _local5 = 0;
var _local2;
var _local3;
var _local1 = openList.length;
while ((_local1--) > 0) {
_local3 = mapStatus[openList[_local1][0]][openList[_local1][1]];
_local2 = _local3.heuristic + _local3.movementCost;
if (_local2 <= _local4) {
_local4 = _local2;
_local5 = _local1;
}
}
return(_local5);
};
closeSquare = function (y, x) {
var _local2 = openList.length;
var _local1 = 0;
while (_local1 < _local2) {
if (openList[_local1][0] == y) {
if (openList[_local1][1] == x) {
openList.splice(_local1, 1);
break;
}
}
_local1++;
}
mapStatus[y][x].open = false;
mapStatus[y][x].closed = true;
};
openSquare = function (y, x, parent, movementCost, heuristic, replacing) {
if (!replacing) {
openList.push([y, x]);
mapStatus[y][x] = {heuristic:heuristic, open:true, closed:false};
}
mapStatus[y][x].parent = parent;
mapStatus[y][x].movementCost = movementCost;
};
var _local10 = map.length;
var _local17 = map[0].length;
var mapStatus = new Array();
var _local11 = 0;
while (_local11 < _local10) {
mapStatus[_local11] = new Array();
_local11++;
}
if ((startY == undefined) || (startX == undefined)) {
return(null);
}
if ((endY == undefined) || (endX == undefined)) {
return(null);
}
var openList = new Array();
openSquare(startY, startX, undefined, 0);
while ((openList.length > 0) && (!isClosed(endY, endX))) {
_local11 = nearerSquare();
var _local6 = openList[_local11][0];
var _local7 = openList[_local11][1];
closeSquare(_local6, _local7);
var _local2 = _local6 - 1;
while (_local2 < (_local6 + 2)) {
var _local1 = _local7 - 1;
while (_local1 < (_local7 + 2)) {
if (((((((_local2 >= 0) && (_local2 < _local10)) && (_local1 >= 0)) && (_local1 < _local17)) && (!((_local2 == _local6) && (_local1 == _local7)))) && ((_local16 || (_local2 == _local6)) || (_local1 == _local7))) && (((_local15 || (_local2 == _local6)) || (_local1 == _local7)) || ((map[_local2][_local7] != 0) && (map[_local6][_local1])))) {
if (map[_local2][_local1] != 0) {
if (!isClosed(_local2, _local1)) {
var _local3 = mapStatus[_local6][_local7].movementCost + (((_local2 == _local6) || (_local1 == _local7)) ? (_local18) : (_local12));
if (isOpen(_local2, _local1)) {
if (_local3 < mapStatus[_local2][_local1].movementCost) {
openSquare(_local2, _local1, [_local6, _local7], _local3, undefined, true);
}
} else {
var _local5 = (Math.abs(_local2 - endY) + Math.abs(_local1 - endX)) * 10;
openSquare(_local2, _local1, [_local6, _local7], _local3, _local5, false);
}
}
}
}
_local1++;
}
_local2++;
}
}
var _local27 = isClosed(endY, endX);
delete isOpen;
delete isClosed;
delete nearerSquare;
delete closeSquare;
delete openSquare;
if (_local27) {
var _local22 = new Array();
var _local6 = endY;
var _local7 = endX;
while ((_local6 != startY) || (_local7 != startX)) {
_local22.push([_local6, _local7]);
var _local19 = mapStatus[_local6][_local7].parent[0];
var _local20 = mapStatus[_local6][_local7].parent[1];
_local6 = _local19;
_local7 = _local20;
}
_local22.push([startY, startX]);
return(_local22);
}
return(null);
};
ASSetPropFlags(_global, "findPath", 1, 0);
gotoAndPlay ("Controller");
Frame 15
var musicVol = new Sound(musicmap);
musicVol.setVolume(0);
var my_so = SharedObject.getLocal("mushroom_save", "/");
loadGame();
openScreen("main", true);
paused = true;
back.img.road._visible = false;
cursor._visible = false;
ammopip.stop();
mousePressed = false;
magnit = false;
hintnum = 1;
quake = 0;
alarmEnemy = 0;
spawnTimer = 0;
power = 0;
reload = 0;
combo = 0;
key = 0;
bonus = 0;
minigame = 0;
lvl = 0;
lvl_temp = 1;
mini_diff = 0;
achi = new Array();
_global.bankEnemy = new Array();
_global.bankFood = new Array();
_global.bankWall = new Array();
_global.bankTree = new Array();
_global.bankKap = new Array();
_global.bankChest = new Array();
_global.bankPrize = new Array();
_global.bankWeap = new Array();
_global.bankFlow = new Array();
_global.tileW = 48;
_global.tileH = 36;
weapin = new Array();
weapin[2] = 8;
weapin[3] = 5;
weapin[4] = 2;
weapin[5] = 14;
hintin = new Array();
hintin[1] = 1;
hintin[2] = 2;
hintin[3] = 3;
hintin[4] = 6;
hintin[5] = 4;
hintin[6] = 10;
_global.loadLevel = function () {
inter._visible = true;
spawnTimer = 0;
reload = 10;
lvl_temp = lvl;
if (bonus > 0) {
magnit = true;
key = bonus;
lvl = 20 + bonus;
}
if (minigame > 0) {
magnit = true;
life = 3;
lvl = 24 + minigame;
mini_diff = 0;
mini_inter._visible = true;
resetGame();
switch (minigame) {
case 1 :
diff = 0.5;
stupor = 200;
cursor.gotoAndStop(4);
break;
case 2 :
maxpow = 9;
bonusKap = 0;
diff = 0.5;
stupor = 200;
break;
case 4 :
cursor.gotoAndStop(5);
break;
case 5 :
key = 5;
mini_inter._visible = false;
break;
case 6 :
maxpow = 30;
upgr[4] = 6;
diff = 1.5;
mini_diff = 1;
inter_level.text = "Level 1";
alarmEnemy = 30;
spawnTimer = 10;
back.img.lin._visible = false;
mini_inter._visible = false;
inter_level._visible = true;
}
}
trace("level " + lvl);
trace("minigame " + minigame);
trace("bonus " + bonus);
if (((lvl == 0) or (lvl == 27)) or (lvl == 31)) {
weather = 6;
} else if (lvl == 30) {
weather = 1 + random(5);
} else {
weather = ((lvl - 1) % 5) + 1;
}
if (lvl < 21) {
spawnLength = _root["lvlspw" + lvl].length;
if (diff > 1) {
progStep = (3.33 / spawnLength) * 1.5;
} else {
progStep = 3.33 / spawnLength;
}
}
i = 0;
while (i < _root["lvlmap" + lvl].length) {
j = 0;
while (j < _root["lvlmap" + lvl][0].length) {
z = _root["lvlmap" + lvl][i][j];
mode = Math.floor(_root["lvlmap" + lvl][i][j] / 10);
switch (mode) {
case 0 :
colmap[j][i] = 1;
switch (z) {
case 1 :
createFlow(i, j);
break;
case 2 :
createTree(i, j, 1);
colmap[j][i] = 0;
break;
case 3 :
createTree(i, j, 5);
colmap[j][i] = 0;
}
break;
case 1 :
colmap[j][i] = 0;
createWall(i, j, z - 9);
break;
case 2 :
colmap[j][i] = 0;
createChest(i, j, z - 18);
break;
case 3 :
colmap[j][i] = 1;
createFood(i, j, z - 29);
break;
case 4 :
createWeap(i * tileW, j * tileH, z - 38);
}
j++;
}
i++;
}
if ((bonus > 0) or (minigame == 5)) {
x = bankChest.length - 1;
bankChest[random(bankChest.length)].info = 0;
while (x > 0) {
i = 1;
while (i < 5) {
if (x > 0) {
do {
y = random(bankChest.length);
} while (bankChest[y].info != undefined);
bankChest[y].info = i;
x--;
}
i++;
}
}
}
lvl = lvl_temp;
};
onEnterFrame = function () {
if (quake > 0) {
if ((quake % 1) == 0) {
_root._y = quake;
} else {
_root._y = -quake;
}
quake = quake - 0.5;
}
if (paused == false) {
if ((bonus != 0) or (minigame != 0)) {
if ((bonus != 0) or (minigame == 5)) {
if (alarmEnemy == 0) {
if (key < 1) {
alarmEnemy = 150;
}
} else {
alarmEnemy--;
if (key > 0) {
alarmEnemy = 0;
}
if (alarmEnemy == 50) {
if (minigame == 5) {
openMenu("send");
} else {
bonus = 0;
money = money + curr_money;
saveGame();
openScreen("upgr");
}
}
}
} else if (minigame == 6) {
if (alarmEnemy == 0) {
if (spawnTimer < 1) {
if (bankEnemy.length == 0) {
mini_diff++;
inter_level.text = "Level " + mini_diff;
spawnTimer = 5 + (mini_diff * 5);
alarmEnemy = 150;
autoUpgr();
} else {
alarmEnemy = 10;
}
} else {
alarmEnemy = Math.max(10, 30 - (mini_diff * 2));
x = 1 + random(4);
if (x != 4) {
if (random(2) > 1) {
createEnemy(choose(0, 15), random(16), x, 0);
} else {
createEnemy(random(16), choose(0, 15), x, 0);
}
switch (x) {
case 0 :
spawnTimer--;
break;
case 1 :
spawnTimer = spawnTimer - 3;
break;
case 2 :
spawnTimer = spawnTimer - 2;
}
} else {
switch (random(6)) {
case 0 :
if (random(2) > 1) {
createEnemy(choose(0, 15), random(16), 4);
} else {
createEnemy(random(16), choose(0, 15), 4);
}
break;
case 1 :
createEnemy(15, random(10) + 5, 3, 1);
break;
case 2 :
createEnemy(15, random(10) + 5, 3, 2);
break;
case 3 :
createEnemy(15, random(10) + 5, 3, 3);
break;
case 4 :
createEnemy(15, random(10) + 5, 3, 4);
break;
case 5 :
createEnemy(15, random(10) + 5, 3, 6);
}
spawnTimer++;
}
}
} else {
alarmEnemy--;
}
} else if (life < 1) {
playMusic("stop");
openMenu("send");
} else {
if (alarmEnemy == 0) {
mini_diff = Math.round(curr_money / 10);
switch (minigame) {
case 1 :
createEnemy(15, random(12) + 2, 1);
alarmEnemy = Math.max(15, 25 - (mini_diff * 2));
break;
case 2 :
createEnemy(15, random(11) + 3, 2);
alarmEnemy = Math.max(15, 80 - mini_diff);
break;
case 3 :
createEnemy(15, random(12) + 2, 4);
alarmEnemy = Math.max(15, 30 - mini_diff);
break;
case 4 :
alarmEnemy = Math.max(20, 30 - mini_diff);
if (spawnTimer == 30) {
createEnemy(15, random(10) + 5, 3, 6);
spawnTimer = 0;
} else {
createEnemy(15, random(10) + 5, 3, 0);
spawnTimer++;
}
}
} else {
alarmEnemy--;
}
if (minigame == 2) {
if (spawnTimer == 0) {
spawnTimer = 200;
createEnemy(0, 0, 3, 2);
createEnemy(0, 0, 3, 1);
createEnemy(0, 0, 3, 2);
} else {
spawnTimer--;
}
}
}
} else {
prog.img._xscale = prog.img._xscale + progStep;
if (alarmEnemy == 0) {
if (spawnTimer == spawnLength) {
if (bankEnemy.length == 0) {
magnit = true;
win = true;
showLogo(3);
achi[3] = bankFood.length;
_root.achi[8] = bankWeap.length;
j = 0;
while (j < bankFood.length) {
achi[4] = achi[4] + bankFood[j].count;
j++;
}
}
} else {
x = _root["lvlspw" + lvl][spawnTimer];
if (x != 0) {
y = x % 10;
z = (x - y) / 10;
switch (y) {
case 0 :
if (random(2) > 1) {
createEnemy(choose(0, 15), random(16), z, y);
} else {
createEnemy(random(16), choose(0, 15), z, y);
}
break;
case 1 :
createEnemy(15, random(16), z, y);
break;
case 2 :
createEnemy(random(16), 0, z, y);
break;
case 3 :
createEnemy(0, random(16), z, y);
break;
case 4 :
createEnemy(random(16), 15, z, y);
break;
case 5 :
case 6 :
createEnemy(0, 0, z, y);
}
}
spawnTimer++;
}
if (diff > 1) {
alarmEnemy = 20;
} else {
alarmEnemy = 30;
}
} else {
alarmEnemy--;
}
}
if (combo != 0) {
if (combo > 1) {
if (combo > achi[7]) {
achi[7] = combo;
}
createPrize(_xmouse + 64, _ymouse + 30, 2, combo);
obj = levelmap.attachMovie("scoreobj", "score", levelmap.getNextHighestDepth());
obj._x = _xmouse + 64;
obj._y = _ymouse + 30;
obj.gotoAndStop(4);
obj.combo.combo.count.text = combo;
}
combo = 0;
}
if (mousePressed == true) {
if (cursor._currentframe == 1) {
if (power < maxpow) {
power = power + spdpow;
cursor.lopata.gotoAndStop(Math.round(Math.round(power)));
} else {
cursor._yscale = 91 + random(10);
}
} else if (reload == 0) {
switch (cursor._currentframe) {
case 2 :
playSound("explo");
quake = 6;
i = 0;
while (i < bankTree.length) {
z = bankTree[i];
if (point_distance(levelmap._xmouse, levelmap._ymouse, z._x, z._y) < bonusBomb) {
attackTree(z, 50, 1);
if (z.img._currentframe < 5) {
if (effect == true) {
dam = 15;
if (dam--) {
createPart((z._x - 75) + random(150), (z._y - 30) - random(130), "list", levelmap.getNextHighestDepth(), 1, z._currentframe);
// unexpected jump
}
}
}
}
i++;
}
i = 0;
while (i < bankChest.length) {
z = bankChest[i];
if (point_distance(levelmap._xmouse - 24, levelmap._ymouse, z._x, z._y) < bonusBomb) {
if (z._currentframe < 4) {
attackChest(z, 200);
}
}
i++;
}
i = 0;
while (i < bankEnemy.length) {
z = bankEnemy[i];
if (point_distance(levelmap._xmouse - 24, levelmap._ymouse, z._x, z._y) < bonusBomb) {
switch (z.type) {
case 1 :
attackEnemy(z, 200, 0);
break;
case 2 :
attackEnemy(z, 70, 4);
break;
case 3 :
attackEnemy(z, 200, 0);
break;
case 4 :
attackSpider(z, i);
}
}
i++;
}
createPart(levelmap._xmouse, levelmap._ymouse, "explo", levelmap.getNextHighestDepth(), 1);
break;
case 3 :
x = Math.floor((levelmap._xmouse + 8) / tileW);
y = Math.floor((levelmap._ymouse - 12) / tileH);
if (colmap[y][x] == 1) {
playSound("trapcr");
createKap(x, y);
} else {
cursor.ammo++;
}
break;
case 4 :
case 5 :
cursor.fx.play();
if (cursor._currentframe == 4) {
playSound("gun1", "gun2", "gun3");
reload = 4;
x = 5;
y = 1;
if (cursor.ammo < 15) {
ammopip.play();
}
} else {
playSound("shot1", "shot2");
reload = 12;
x = 24 + bonusShot;
y = bonusShot;
if (cursor.ammo < 5) {
ammopip.play();
}
}
glob_hit = false;
while (y--) {
hit = false;
k = (-x) + random(x * 2);
n = (-x) + random(x * 2);
i = 0;
while (i < bankTree.length) {
z = bankTree[i];
if (hitPoint(levelmap._xmouse + k, levelmap._ymouse + n, z)) {
hit = true;
attackTree(z, 1, 0);
}
i++;
}
i = 0;
while (i < bankChest.length) {
z = bankChest[i];
if (hitPoint(levelmap._xmouse + k, levelmap._ymouse + n, z)) {
hit = true;
switch (z._currentframe) {
case 2 :
attackChest(z, 25);
playSound("box1d1", "box1d2");
break;
case 3 :
attackChest(z, 15);
playSound("box2d1", "box2d2");
break;
case 4 :
playSound("miss1", "miss2");
}
}
i++;
}
i = 0;
while (i < bankEnemy.length) {
z = bankEnemy[i];
if (hitPoint(levelmap._xmouse + k, levelmap._ymouse + n, z)) {
hit = true;
switch (z.type) {
case 1 :
if (random(10) > 3) {
attackEnemy(z, 30, 2);
} else {
attackEnemy(z, 30, 1);
}
break;
case 2 :
if (cursor._currentframe == 5) {
attackEnemy(z, 12, 4);
} else {
attackEnemy(z, 12, 3);
}
break;
case 3 :
attackEnemy(z, 50, 5);
break;
case 4 :
attackSpider(z, i);
}
}
i++;
}
if (hit == false) {
if (effect == true) {
createPart((_root._xmouse + k) + 64, (_root._ymouse + n) + 30, "dirt", levelmap.getNextHighestDepth(), 1);
}
} else {
glob_hit = true;
}
}
if (glob_hit != true) {
break;
}
playSound("hit11", "hit12");
}
cursor.ammo--;
if (cursor.ammo == 0) {
cursor.gotoAndStop(1);
cursor._xscale = (cursor._yscale = 140);
ammopip.gotoAndStop(1);
} else {
cursor._xscale = (cursor._yscale = 120);
}
}
}
if (reload != 0) {
reload--;
}
cursor.key._visible = false;
if (key > 0) {
i = 0;
while (i < bankChest.length) {
z = bankChest[i];
if (z._currentframe == 4) {
if (z.chest.key._visible == false) {
if (hitPoint(levelmap._xmouse, levelmap._ymouse, z)) {
cursor.key._visible = true;
cursor.key.info = z;
break;
}
}
}
i++;
}
}
i = 0;
while (i < bankPrize.length) {
z = bankPrize[i];
if (hitPoint(levelmap._xmouse, levelmap._ymouse, z)) {
if (z.speed < 3) {
if (z.kill == false) {
j = 0;
while (j < bankPrize.length) {
if (bankPrize[j] == z) {
bankPrize.splice(j, 1);
break;
}
j++;
}
if (z._currentframe < 7) {
playSound("coin1", "coin2", "coin3", "coin4");
} else {
playSound("almaz1", "almaz2");
}
z.kill = true;
z._name = "prize";
z._xscale = (z._yscale = 100);
z.dir = -1 * point_direction(z._x, z._y, z.x, z.y);
}
}
}
i++;
}
} else if (lvl == 0) {
}
};
onMouseDown = function () {
mousePressed = true;
if (paused == false) {
if (cursor._currentframe == 1) {
i = 0;
while (i < bankWeap.length) {
z = bankWeap[i];
if (z.wait == 0) {
if (hitPoint(levelmap._xmouse, levelmap._ymouse, z)) {
playSound("pickup");
j = 0;
while (j < bankWeap.length) {
if (bankWeap[j] == z) {
bankWeap.splice(j, 1);
break;
}
j++;
}
if (z._currentframe < 4) {
mousePressed = false;
}
cursor.gotoAndStop(z._currentframe);
cursor._xscale = (cursor._yscale = 140);
reload = 5;
ammopip.gotoAndStop(3);
z.removeMovieClip();
break;
}
}
i++;
}
}
if (cursor.key._visible == true) {
if (key > 0) {
playSound("unlock");
key--;
cursor.key.info.chest.key._visible = true;
cursor.key._visible = false;
reload = 4;
}
}
}
};
onMouseUp = function () {
mousePressed = false;
if (paused == false) {
if (cursor._currentframe == 1) {
cursor._yscale = 100;
switch (Math.floor(power / 10)) {
case 0 :
cursor.lopata.gotoAndPlay(40);
break;
case 1 :
cursor.lopata.gotoAndPlay(46);
break;
case 2 :
cursor.lopata.gotoAndPlay(52);
break;
case 3 :
cursor.lopata.gotoAndPlay(58);
createPart(levelmap._xmouse, levelmap._ymouse, "crack", 1, 1);
quake = 2;
playSound("hit3");
}
i = 0;
while (i < bankTree.length) {
z = bankTree[i];
if (hitPoint(levelmap._xmouse, levelmap._ymouse, z)) {
attackTree(z, (Math.floor(power / 10) * 2) + 1, 0);
if (z.img._currentframe < 5) {
playSound("tree1", "tree2");
} else if (z.img._currentframe == 5) {
playSound("treed1", "treed2");
}
}
i++;
}
i = 0;
while (i < bankChest.length) {
z = bankChest[i];
if (z._currentframe == 2) {
if (hitPoint(levelmap._xmouse, levelmap._ymouse, z)) {
switch (Math.floor(power / 10)) {
case 0 :
attackChest(z, 25);
playSound("box1d1", "box1d2");
break;
case 1 :
attackChest(z, 50);
playSound("box1d1", "box1d2");
break;
case 2 :
attackChest(z, 75);
playSound("box1d1", "box1d2");
break;
case 3 :
attackChest(z, 100);
playSound("box1d1", "box1d2");
}
}
}
i++;
}
i = 0;
while (i < bankEnemy.length) {
z = bankEnemy[i];
if (hitPoint(levelmap._xmouse, levelmap._ymouse, z)) {
switch (z.type) {
case 1 :
switch (Math.floor(power / 10)) {
case 0 :
attackEnemy(z, 15 + dampow, 2);
playSound("hit11", "hit12");
break;
case 1 :
attackEnemy(z, 45 + dampow, 1);
playSound("hit2");
break;
case 2 :
attackEnemy(z, 200, 0);
playSound("hit3");
break;
case 3 :
attackEnemy(z, 200, 0);
}
break;
case 2 :
switch (Math.floor(power / 10)) {
case 0 :
attackEnemy(z, 8 + dampow, 3);
playSound("hit11", "hit12");
break;
case 1 :
attackEnemy(z, 30 + dampow, 3);
playSound("hit2");
break;
case 2 :
attackEnemy(z, 40 + dampow, 4);
playSound("hit3");
break;
case 3 :
attackEnemy(z, 50 + dampow, 4);
}
break;
case 3 :
switch (Math.floor(power / 10)) {
case 0 :
attackEnemy(z, 30 + dampow, 5);
playSound("hit11", "hit12");
break;
case 1 :
attackEnemy(z, 60 + dampow, 5);
playSound("hit2");
break;
case 2 :
attackEnemy(z, 200, 0);
playSound("hit3");
break;
case 3 :
attackEnemy(z, 200, 0);
}
break;
case 4 :
attackSpider(z, i);
}
}
i++;
}
if (Math.floor(power / 10) == 3) {
i = 0;
while (i < bankEnemy.length) {
z = bankEnemy[i];
if (point_distance(levelmap._xmouse, levelmap._ymouse, z._x, z._y) < 100) {
switch (z.type) {
case 1 :
attackEnemy(z, 10 + dampow, 1);
break;
case 2 :
if (random(10) > 3) {
attackEnemy(z, 10 + dampow, 0);
} else {
attackEnemy(z, 10 + dampow, 3);
}
break;
case 4 :
attackSpider(z, i);
}
}
i++;
}
}
power = 0;
}
}
};
gotoAndPlay ("Weapons");
Frame 25
_global.attackChest = function (z, dam) {
z.hp = z.hp - dam;
if (z.hp < 1) {
dieChest(z);
} else {
z.chest.gotoAndStop(1 + Math.floor((100 - z.hp) / 25));
}
};
_global.attackEnemy = function (z, dam, type) {
z.hp = z.hp - (dam / diff);
if (type > 0) {
switch (type) {
case 1 :
z.moving = -stupor;
if (z.cargo > 0) {
if (z.type == 3) {
createPrize(z._x, z._y + z.bird._y, 2 + z.food.type, 1, z.food);
} else {
createPrize(z._x + 24, z._y + 18, 2 + z.food.type, 1, z.food);
}
z.cargo = (z.grib._visible = false);
z.food = undefined;
z.path.shift();
}
z.vspeed = 6 + random(2);
if (z.act == 0) {
z.y = z._y;
z.act = 1;
if (z.sleep == false) {
z.gotoAndStop(z._currentframe + 16);
z.sleep = true;
}
}
break;
case 2 :
z.moving = (-stupor) - random(stupor / 10);
z.vspeed = 4 + random(4);
if (z.act == 0) {
z.y = z._y;
z.act = 1;
if (z.sleep == false) {
z.gotoAndStop(z._currentframe + 8);
}
}
break;
case 3 :
if (z.moving > -1) {
if (z.moving == 1) {
if (z._currentframe < 10) {
z.last = z._currentframe;
}
}
z.gotoAndStop(11 + random(2));
z.dam.gotoAndPlay(1);
z.moving = -8;
}
break;
case 4 :
if (z.moving == 1) {
playSound("bearstay");
if (z._currentframe < 10) {
z.last = z._currentframe;
}
}
z.gotoAndStop(11 + random(2));
z.dam.gotoAndPlay(1);
z.moving = (-stupor) - random(stupor / 10);
break;
case 5 :
playSound("bird1", "bird2");
if (effect == true) {
createPart(z._x, z._y + z.bird._y, "pero", levelmap.getNextHighestDepth(), 3);
}
if (z.cargo > 0) {
createPrize(z._x, z._y + z.bird._y, 2 + z.food.type, 1, z.food);
z.cargo = (z.bird.grib._visible = false);
z.food = undefined;
}
if (z.info > 0) {
if (z.info < 5) {
createWeap(z._x, z._y + z.bird._y, 1 + z.info, 0);
} else {
createPrize(z._x, z._y + z.bird._y, z.info + 2, 1, 0);
}
z.bird.weap._visible = false;
z.info = undefined;
}
z.moving = -6;
z.speed = z.speed * 1.2;
z.bird.gotoAndPlay(15);
z.shad.gotoAndPlay(15);
}
}
if (z.hp < 1) {
if (z.cargo > 0) {
if (z.type == 3) {
createPrize(z._x, z._y + z.bird._y, 2 + z.food.type, 1, z.food);
} else {
createPrize(z._x + 24, z._y + 18, 2 + z.food.type, 1, z.food);
}
}
dieEnemy(z);
} else {
z.hpbar._visible = true;
z.hplowbar._visible = true;
z.hpbor._visible = true;
z.hpbar._xscale = z.hp;
}
};
_global.attackSpider = function (z, i) {
if (z._currentframe < 10) {
playSound("spiddie");
achi[2]++;
bankEnemy.splice(i, 1);
z.moving = -500;
z.gotoAndPlay(10);
if (minigame == 3) {
createPrize(z._x + 24, z._y + 18, 1, 1);
}
}
};
_global.attackTree = function (z, dam, type) {
if (z.img._currentframe != 6) {
z.hp = z.hp - dam;
z.act = 1;
z.scale = z.scale + (dam * 6);
if (z.scale > 10) {
z.scale = 10;
}
if (z.img._currentframe != 5) {
if (effect == true) {
if (type != 1) {
createPart(levelmap._xmouse, levelmap._ymouse, "list", levelmap.getNextHighestDepth(), dam, z._currentframe);
} else {
dam = (6 - z.img._currentframe) * 5;
while (dam--) {
createPart((z._x - 75) + random(150), (z._y - 30) - random(130), "list", levelmap.getNextHighestDepth(), 1, z._currentframe);
}
}
}
}
if (z.hp < 1) {
achi[9]++;
z.img.gotoAndStop(6);
playSound("box2");
z.info.removeMovieClip();
createPrize(z._x, z._y - 40, 2, 1 + random(6), 0);
if (effect == true) {
dam = 10;
while (dam--) {
createPart((z._x - 75) + random(150), (z._y - 30) - random(130), "chip", levelmap.getNextHighestDepth(), 1, z._currentframe);
}
}
} else {
z.img.gotoAndStop(1 + Math.floor((50 - z.hp) / 10));
}
}
};
gotoAndPlay ("Upgrades");
Frame 35
_global.autoUpgr = function (ob) {
x = 0;
i = 1;
while (i < 10) {
x = x + (6 - upgr[i]);
i++;
}
trace("upgrade_left=" + x);
if (x > 0) {
do {
y = 1 + random(9);
} while (((upgr[y] == 6) or (y == 4)) or (y == 5));
doUpgr(y);
trace((("upgr" + y) + "=") + upgr[y]);
inter_upgr.info = y;
inter_upgr.gotoAndPlay(2);
}
};
_global.initUpgr = function (ob) {
ob.but1.title = str_upgr_1;
ob.but2.title = str_upgr_2;
ob.but3.title = str_upgr_3;
ob.but4.title = str_upgr_4;
ob.but5.title = str_upgr_5;
ob.but6.title = str_upgr_6;
ob.but7.title = str_upgr_7;
ob.but8.title = str_upgr_8;
ob.but9.title = str_upgr_9;
if (weapin[4] > (maxlvl - 1)) {
ob.but6.gotoAndStop(3);
}
if (weapin[2] > (maxlvl - 1)) {
ob.but7.gotoAndStop(3);
}
if (weapin[3] > (maxlvl - 1)) {
ob.but8.gotoAndStop(3);
}
if (weapin[5] > (maxlvl - 1)) {
ob.but9.gotoAndStop(3);
}
};
_global.reUpgr = function (ob) {
ob.but1.cost = (40 * upgr[1]) * upgr[1];
if (ob.but1.cost == 1000) {
ob.but1.cost = 999;
}
ob.but2.cost = (25 * upgr[2]) * upgr[2];
ob.but3.cost = (10 * upgr[3]) * upgr[3];
if (upgr[4] == 4) {
ob.but4.cost = 150;
} else {
ob.but4.cost = 750;
}
ob.but5.cost = 100 * _root.life;
ob.but6.cost = (30 * upgr[6]) * upgr[6];
ob.but7.cost = (30 * upgr[7]) * upgr[7];
ob.but8.cost = (30 * upgr[8]) * upgr[8];
ob.but9.cost = (30 * upgr[9]) * upgr[9];
i = 1;
while (i < 10) {
z = ob["but" + i];
if (z._currentframe < 3) {
z.id = i;
if (upgr[i] == 6) {
z.gotoAndStop(4);
} else if (z.cost > _root.money) {
z.gotoAndStop(2);
} else {
z.gotoAndStop(1);
}
if (i == 4) {
z.lv.gotoAndStop(upgr[i] + 3);
} else {
z.lv.gotoAndStop(upgr[i]);
}
z.cost_txt = z.cost;
}
z.icon.gotoAndStop(i);
i++;
}
};
_global.doUpgr = function (z) {
upgr[z]++;
switch (z) {
case 1 :
dampow = dampow + 5;
break;
case 2 :
spdpow = spdpow + 0.2;
break;
case 3 :
stupor = stupor + 20;
break;
case 4 :
maxpow = maxpow + 10;
break;
case 5 :
life = life + 1;
break;
case 6 :
bonusGun = bonusGun + 6;
break;
case 7 :
bonusBomb = bonusBomb + 10;
break;
case 8 :
bonusKap = bonusKap + 1;
break;
case 9 :
bonusShot = bonusShot + 2;
}
};
_global.reHint = function (ob) {
ob.title = (str_menu_hint + hintnum) + "/6";
ob.desc = _root["str_hint_" + hintnum];
ob.img.gotoAndStop(hintnum);
};
gotoAndPlay ("Language");
Frame 45
str_but_menu = "MENU";
str_menu_game = "Game Menu";
str_but_resume = "RESUME GAME";
str_but_quit = "SAVE & EXIT";
str_but_restart = "RESTART";
str_but_lvlsel = "LEVEL SELECT";
str_menu_diff = "Select Difficulty";
str_but_easy = "EASY";
str_but_normal = "NORMAL";
str_but_hard = "HARD";
str_menu_cont = "Continue Saved Game?";
str_but_cont = "CONTINUE";
str_but_new = "NEW GAME";
str_menu_stage = "Choose a Level";
str_but_unlim = "UPGRADE";
str_menu_mini = "Credits";
str_menu_score = "Send Score";
str_menu_option = "Game Options";
str_but_sound_off = "SOUND: OFF";
str_but_sound_on = "SOUND: ON";
str_but_music_off = "MUSIC: OFF";
str_but_music_on = "MUSIC: ON";
str_but_effect_off = "VFX: OFF";
str_but_effect_on = "VFX: ON";
str_but_hint_off = "HINTS: OFF";
str_but_hint_on = "HINTS: ON";
str_but_back = "CANCEL";
str_menu_main = "Main Menu";
str_but_start = "ADVENTURE";
str_but_mini = "MINI-GAMES";
str_but_score = "SCORES";
str_but_help = "HOW TO PLAY";
str_but_option = "OPTIONS";
str_but_credit = "CREDITS";
str_but_more = "MORE GAMES";
str_but_host = "HOST THIS GAME";
str_menu_upgr = "Upgrade Menu";
str_menu_achi = "Achievements";
str_but_next = "NEXT LEVEL";
str_menu_comp = "Level Complete!";
str_menu_victory = "Congratulations! You Have Won!";
str_score_1 = "ENEMIES";
str_score_2 = "COINS";
str_score_3 = "MUSHROOMS";
str_menu_over = "Game Over";
str_but_try = "TRY AGAIN";
str_menu_hint = "Hint ";
str_menu_cong = "Congratulations!";
str_menu_bonus = "Bonus Level";
str_menu_bonusd = "Try to find a safe with diamonds.";
str_menu_unlock = "Mini-Game Unlocked!";
str_menu_mini = "Mini-Games";
str_but_mini1 = "CRAZY ASSAULT";
str_but_mini2 = "TRAP DEFENCE";
str_but_mini3 = "NIGHT WATCH";
str_but_mini4 = "DUCK HUNT";
str_but_mini5 = "SAFE BREAKER";
str_but_mini6 = "SURVIVAL";
str_menu_mini1 = "Crazy Assault";
str_menu_mini2 = "Trap Defence";
str_menu_mini3 = "Night Watch";
str_menu_mini4 = "Duck Hunt";
str_menu_mini5 = "Safe Breaker";
str_menu_mini6 = "Survival";
str_menu_mini1d = "A huge swarm of hedgehogs tries to cross the border. Use the machine gun to stop as many hedgehogs as possible.";
str_menu_mini2d = "This time bears try to come through. Set one-shot traps and use bombs against them.";
str_menu_mini3d = "Hunting spiders at night is troublesome, especially if your only weapon is the fly swatter.";
str_menu_mini4d = "Shoot as many birds as possible with the shotgun. Watch out, some birds can carry precious stones.";
str_menu_mini5d = "Try to unlock as many safes as possible to gain as much cash as you can. You have 5 keys.";
str_menu_mini6d = "Hold out as long as possible. Weapons upgrade automatically.";
str_hint_1 = "Protect the mushroom glades from the evil hedgehogs. Use the swatter to fight them. Hold mouse button longer for strong hit. Collect coins to upgrade your weapon at shops.";
str_hint_2 = "You can use a great arsenal against the thieves: machine guns, shotguns, bombs and traps. The ammunition is limited so use it wisely.";
str_hint_3 = "Crates contain useful items. Cardboard containers can be destroyed by the swatter, wooden crates may be opened with guns and bombs while a steel safe requires a key.";
str_hint_4 = "There is a saying that it will rain if you squish a spider. Mushrooms like when it rains, so swat the spider and new mushrooms will grow.";
str_hint_5 = "Watch out for the bears! Unlike hedgehogs they are not thrifty and so they eat the mushrooms right on the glade, and they can empty it quickly. Use strong hit or weapons to deal with them.";
str_hint_6 = "Birds also like to eat mushrooms. They fly very quickly and thus they pose a great threat. Some birds may carry useful items, be on guard so you won\u2019t miss anything valuable.";
str_upgr_1 = "HIT POWER";
str_upgr_2 = "RECHARGE TIME";
str_upgr_3 = "STUN DURATION";
str_upgr_4 = "NEW STRIKE";
str_upgr_4a = "Lightning Strike";
str_upgr_4b = "Jolting Strike";
str_upgr_5 = "+1 LIFE";
str_upgr_6 = "GUN AMMO";
str_upgr_7 = "EXPLOSION";
str_upgr_8 = "TRAP DURABILITY";
str_upgr_9 = "SHOTGUN AMMO";
str_desc_1 = "Increases the hit power of the swatter.";
str_desc_2 = "Reduces the recharge time of the swatter.";
str_desc_3 = "Increases the stun duration after a strong hit.";
str_desc_4 = "Hold mouse button even longer to use a new strike.";
str_desc_5 = "Gives an additional life.";
str_desc_6 = "Increases machine gun ammunition.";
str_desc_7 = "Increases the explosion radius of the bomb.";
str_desc_8 = "Allows the trap to catch more enemies.";
str_desc_9 = "Increases the amount of pellets in each shotgun shot.";
str_achi_0 = "HEDGEHOGS";
str_achi_1 = "BIRDIES";
str_achi_2 = "SPIDERS";
str_achi_3 = "GLADES";
str_achi_4 = "MUSHROOMS";
str_achi_5 = "COINS";
str_achi_6 = "BOXES";
str_achi_7 = "MAX COMBO";
str_achi_8 = "WEAPON LEFT";
str_achi_9 = "TREES";
gotoAndPlay ("Game");
Frame 55
lvlmap1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 10, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0,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, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0], [0, 0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0, 0], [0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0], [0, 0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0, 0], [0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0], [0, 0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0, 0], [0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0], [0, 0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0, 0], [0, 0, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 22, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
lvlmap30 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0], [0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 10, 0, 13, 0, 0, 0, 15, 0, 0, 0, 0], [0, 0, 1, 0, 14, 0, 32, 0, 0, 0, 0, 0, 11, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 17, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 32, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 16, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 11, 0, 0, 0, 1, 0, 32, 0, 12, 0, 0, 0], [0, 0, 0, 0, 0, 13, 0, 0, 0, 15, 0, 10, 0, 1, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
lvlspw1 = [13, 0, 13, 0, 13, 0, 0, 0, 0, 13, 13, 0, 0, 13, 13, 0, 13, 13, 0, 0, 0, 13, 13, 13, 13, 13];
lvlspw2 = [12, 12, 12, 0, 12, 12, 12, 0, 0, 0, 0, 13, 13, 11, 11, 0, 0, 0, 0, 12, 12, 13, 13, 11, 11];
lvlspw3 = [10, 0, 10, 0, 10, 0, 10, 10, 0, 10, 10, 0, 10, 10, 0, 10, 10, 10, 0, 10, 10, 10, 0, 0, 0, 12, 12, 12, 14, 14, 14];
lvlspw4 = [0, 21, 0, 0, 0, 0, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 13, 13, 0, 0, 0, 13, 13, 13];
lvlspw5 = [0, 10, 0, 20, 0, 0, 10, 0, 10, 0, 0, 0, 0, 10, 10, 10, 0, 0, 0, 20, 20, 0, 0, 10, 10, 0, 20, 0, 0, 10, 20, 0, 0, 0, 0, 0, 13, 13, 13, 13, 13, 0, 0, 0, 22, 24];
lvlspw6 = [0, 40, 0, 0, 0, 40, 40, 40, 0, 0, 0, 0, 0, 13, 11, 13, 11, 0, 0, 0, 13, 11, 13, 21, 0, 0, 13, 11, 13, 11, 0, 0, 0, 13, 11, 13, 21, 0, 0, 0, 0, 40, 40, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 10];
lvlspw7 = [12, 24, 12, 24, 12, 12, 12, 0, 0, 0, 0, 24, 24, 24, 24, 24, 24, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 11, 20, 11, 20, 10, 10, 10, 10, 10, 20, 10, 20, 10, 10, 10, 10, 10, 20, 10, 20, 10, 10, 10, 10, 10, 20, 10, 20];
lvlspw8 = [0, 13, 13, 23, 23, 0, 0, 0, 0, 11, 11, 11, 21, 21, 21, 0, 0, 0, 0, 12, 12, 12, 12, 22, 22, 22, 22, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 24, 24, 24, 24, 24, 0, 0, 0, 0, 0, 0, 10, 20, 10, 20, 10, 20, 10, 20, 10, 20, 10, 20];
lvlspw9 = [40, 12, 20, 13, 20, 12, 24, 0, 0, 0, 0, 0, 40, 12, 24, 13, 21, 12, 24, 10, 21, 0, 0, 0, 0, 0, 0, 43, 41, 0, 0, 0, 0, 0, 12, 12, 12, 12, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 43, 41, 0, 0, 0, 0, 0, 21, 21, 21, 21, 24, 24, 24, 23];
lvlspw10 = [0, 30, 0, 30, 0, 30, 0, 0, 0, 33, 0, 0, 0, 30, 30, 0, 30, 30, 0, 0, 0, 36, 0, 0, 0, 30, 0, 30, 0, 30, 0, 30, 0, 30, 0, 0, 0, 31, 31, 0, 0, 0, 0, 30, 30, 30, 0, 30, 30, 30, 0, 0, 0, 33, 36, 0, 0, 0, 0, 30, 30, 30, 30, 0, 30, 30, 30, 30, 0, 30, 30, 30, 30];
lvlspw11 = [12, 22, 11, 0, 30, 30, 0, 0, 0, 24, 24, 31, 24, 24, 0, 0, 0, 10, 10, 10, 10, 10, 0, 0, 0, 0, 32, 0, 24, 24, 24, 24, 24, 24, 24, 0, 0, 0, 0, 40, 36, 32, 36, 0, 0, 0, 0, 10, 30, 20, 30, 20, 30, 20, 30, 20, 30, 20, 30, 20, 40, 0, 0, 0, 0, 0, 40, 30, 30, 30, 30, 30, 30, 30, 30, 31, 30, 30, 30, 30];
lvlspw12 = [10, 10, 10, 10, 10, 10, 31, 10, 10, 10, 10, 35, 10, 10, 10, 10, 10, 10, 31, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 40, 10, 35, 10, 10, 10, 10, 10, 10, 10, 10, 10, 31, 10, 10, 10, 10, 10, 10, 10, 10, 10, 35, 10, 40, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10];
lvlspw13 = [20, 0, 30, 0, 20, 0, 30, 0, 20, 0, 30, 0, 20, 0, 30, 0, 20, 0, 30, 0, 20, 0, 30, 0, 0, 0, 30, 30, 30, 36, 30, 30, 30, 30, 0, 0, 0, 0, 20, 0, 20, 0, 20, 0, 20, 0, 0, 0, 0, 0, 0, 30, 20, 30, 20, 30, 20, 30, 0, 0, 0, 0, 0, 0, 20, 20, 20, 20, 20, 20, 20, 36, 36, 36];
lvlspw14 = [20, 20, 20, 20, 20, 20, 34, 20, 20, 20, 20, 20, 20, 20, 20, 34, 20, 20, 20, 20, 20, 34, 20, 20, 20, 20, 20, 20, 20, 20, 34, 20, 20, 20, 20, 20, 20, 20, 20, 34, 20, 20, 20, 20, 20, 34, 20, 20, 20, 20, 20, 20, 20, 20, 34, 20, 20, 20, 20, 20];
lvlspw15 = [10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 30, 30, 32, 30, 30, 33, 32, 30, 30, 32, 30, 30, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0, 30, 30, 32, 30, 30, 33, 32, 30, 30, 32, 30, 30, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10];
lvlspw16 = [30, 30, 30, 31, 30, 30, 30, 34, 30, 30, 30, 30, 30, 30, 30, 30, 30, 33, 30, 30, 36, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 34, 30, 30, 30, 30, 35, 30, 30, 40, 30, 31, 30, 30, 30, 30, 30, 30, 30, 33, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 36, 30, 34, 30, 30, 30, 30, 30, 30, 31, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 35, 34, 30, 30, 30, 30, 30, 30, 30, 30];
lvlspw17 = [10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 31, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 31, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 33, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 33, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 32, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 32, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 34, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 34, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 36];
lvlspw18 = [33, 31, 32, 33, 34, 33, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 34, 32, 34, 32, 34, 31, 0, 0, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 0, 40, 33, 34, 33, 31, 34, 31, 0, 0, 0, 0, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 20, 20, 20, 20, 20, 20, 30, 30, 30, 30, 30, 30, 30];
lvlspw19 = [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21];
lvlspw20 = [10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 34, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 35, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 33, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 35, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 32, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 35, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 34, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 35, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 32, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 35, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 34, 10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 36];
lvlachi1 = [[0, 13], [4, 5], [5, 10]];
lvlachi2 = [[0, 16], [4, 6], [8, 1]];
lvlachi3 = [[3, 2], [5, 40], [6, 3]];
lvlachi4 = [[4, 5], [5, 60], [6, 5]];
lvlachi5 = [[0, 14], [3, 2], [8, 2]];
lvlachi6 = [[2, 6], [4, 15], [5, 30]];
lvlachi7 = [[5, 250], [6, 8], [7, 2]];
lvlachi8 = [[4, 5], [7, 3], [9, 8]];
lvlachi9 = [[2, 6], [3, 6], [6, 10]];
lvlachi10 = [[1, 35], [4, 9], [5, 135]];
lvlachi11 = [[0, 8], [1, 25], [2, 3]];
lvlachi12 = [[6, 3], [7, 4], [9, 12]];
lvlachi13 = [[5, 280], [6, 14], [8, 14]];
lvlachi14 = [[1, 7], [4, 5], [5, 339]];
lvlachi15 = [[0, 60], [5, 245], [9, 10]];
lvlachi16 = [[1, 95], [2, 1], [3, 10]];
lvlachi17 = [[3, 4], [6, 4], [7, 3]];
lvlachi18 = [[4, 9], [5, 275], [9, 9]];
lvlachi19 = [[0, 72], [4, 10], [8, 8]];
lvlachi20 = [[5, 600], [6, 5], [7, 5]];
stop();
Symbol 6 MovieClip [mcDragon] Frame 1
Symbol 6 MovieClip [mcDragon] Frame 80
_root.fireFire();
Symbol 6 MovieClip [mcDragon] Frame 119
stop();
Symbol 49 MovieClip Frame 1
gotoAndStop(((5 * (_parent.type - 1)) + 2) + random(5));
onEnterFrame = function () {
if (_xscale != 100) {
if (_xscale < 100) {
_yscale = (_yscale + 20);
_xscale = (_yscale + 20);
} else {
_yscale = (_yscale - 30);
_xscale = (_yscale - 30);
}
}
};
Symbol 50 MovieClip [food] Frame 1
kill = false;
xtile = _x / 48;
ytile = _y / 36;
i = 1;
while (i <= 5) {
x = this["grib" + i];
y = this["grib" + (1 + random(5))];
z = x._name;
x._name = y._name;
y._name = z;
i++;
}
i = count + 1;
while (i <= 5) {
this["grib" + i]._visible = false;
i++;
}
onEnterFrame = function () {
if (kill == true) {
_alpha = (_alpha - 5);
if (_alpha < 1) {
this.removeMovieClip();
}
}
};
Symbol 168 MovieClip Frame 1
stop();
Symbol 357 MovieClip [enemy1] Frame 1
stop();
hp = 100;
if (_root.minigame != 1) {
speed = 0.5;
} else {
speed = ((15 + (_root.mini_diff * 3)) + random(15)) / 10;
gotoAndStop (6);
}
w1 = -6;
w2 = 54;
h1 = -10;
h2 = 46;
xstart = (xtile = _x / 48);
ystart = (ytile = _y / 36);
hplow = hp;
hpgui = 0;
moving = 1;
act = 0;
vspeed = 0;
sleep = false;
cargo = (grib._visible = false);
path = new Array();
huntEnemy(this);
onEnterFrame = function () {
xx.text = _x;
if (_root.paused == false) {
if (moving == 1) {
if (_root.minigame != 1) {
moveEnemy(this);
if (_y != ypre) {
this.swapDepths((_y * 10000) + id);
}
ypre = _y;
} else if (_x > 30) {
_x = (_x - speed);
} else {
_root.life--;
_root.mini_diff = _root.mini_diff - 5;
if (_root.life > 0) {
j = 0;
while (j < bankEnemy.length) {
attackEnemy(bankEnemy[j], 0, 1);
j++;
}
}
dieEnemy(this);
}
if (sleep == true) {
gotoAndStop(_currentframe - 16);
sleep = false;
}
} else {
moving++;
if (act > 0) {
switch (act) {
case 1 :
if (vspeed > 0) {
_y = (_y - vspeed);
vspeed = vspeed - 2;
} else {
act = 2;
}
break;
case 2 :
if (_y < (y + vspeed)) {
_y = (_y - vspeed);
vspeed = vspeed - 2;
} else {
act = 0;
_y = y;
if (sleep != false) {
break;
}
gotoAndStop(_currentframe - 8);
moving = 1;
}
}
z = (y - _y) / 2;
shad._alpha = 30 - z;
shad._xscale = (shad._yscale = 100 - z);
shad._y = (32 + y) - _y;
}
}
if (hp < hplow) {
hplow = hplow - 2;
hplowbar._xscale = hplow;
hpgui = 200;
} else if (hpgui > 0) {
hpgui = hpgui - 10;
}
if (hpbar._visible == true) {
if (hpgui > 0) {
hpbar._alpha = (hplowbar._alpha = (hpbor._alpha = hpgui));
} else {
hpbar._visible = (hplowbar._visible = (hpbor._visible = false));
}
}
if (grib._xscale != 100) {
if (grib._xscale < 100) {
grib._xscale = (grib._yscale = grib._yscale + 20);
} else {
grib._xscale = (grib._yscale = grib._yscale - 30);
}
}
}
};
Symbol 458 MovieClip [weap] Frame 1
act = 1;
vspeed = 8 + random(4);
limit = vspeed;
w1 = -25;
w2 = 25;
h1 = -25;
h2 = 25;
if (info == 0) {
limit = limit + 10;
}
wait = 15;
onEnterFrame = function () {
if (wait > 0) {
wait--;
}
if (act > 0) {
switch (act) {
case 1 :
if (vspeed > 0) {
_y = (_y - vspeed);
vspeed = vspeed - 2;
} else {
act = 2;
}
return;
case 2 :
if (limit > (-1 * vspeed)) {
_y = (_y - vspeed);
vspeed = vspeed - 2;
} else if (limit == (-1 * vspeed)) {
vspeed = -1 * (vspeed + 4);
limit = vspeed;
} else {
act = 0;
}
}
}
};
Symbol 551 MovieClip Frame 1
if (_parent.blue == true) {
gotoAndStop (1);
} else {
gotoAndStop(1 + random(4));
}
img.gotoAndPlay(1 + random(30));
timer = 20;
onEnterFrame = function () {
if (_root.effect == true) {
if (timer > 0) {
timer--;
} else {
createPart((_parent._x - 15) + random(30), (_parent._y - 15) + random(30), "star1", _root.levelmap.getNextHighestDepth(), 1);
timer = 20;
}
}
};
Symbol 551 MovieClip Frame 2
img.gotoAndPlay(1 + random(30));
Symbol 551 MovieClip Frame 3
img.gotoAndPlay(1 + random(30));
Symbol 551 MovieClip Frame 4
img.gotoAndPlay(1 + random(30));
Symbol 552 MovieClip [prize] Frame 1
kill = false;
timer = 250 + random(50);
act = 1;
vspeed = 8 + random(4);
limit = vspeed;
speed = vspeed / 2;
w1 = -25;
w2 = 25;
h1 = -25;
h2 = 25;
if (info == 0) {
limit = limit + 10;
speed = speed + 2;
}
if ((((_x < 128) or (_x > 640)) or (_y < 112)) or (_y > 464)) {
dir = (point_direction(_x, _y, 384, 288) + 45) - random(90);
} else {
dir = random(360);
}
switch (_currentframe) {
case 1 :
img.gotoAndPlay(1 + random(12));
w1 = -20;
w2 = 20;
h1 = -20;
h2 = 20;
x = 94;
y = 78;
info = undefined;
break;
case 2 :
x = 94;
y = 78;
info = undefined;
break;
case 3 :
case 4 :
case 5 :
case 6 :
x = info._x + 24;
y = info._y + 18;
break;
case 7 :
x = 94;
y = 98;
info = undefined;
break;
case 8 :
x = 94;
y = 78;
if (info == 0) {
blue = true;
}
info = undefined;
}
onEnterFrame = function () {
if ((_root.paused == false) or (_root.win == true)) {
if (kill == false) {
if (timer == 0) {
if (_xscale == 0) {
if (info.count == 0) {
food = info;
dieFood(this);
}
this.removeMovieClip();
} else {
_yscale = (_yscale - 5);
_xscale = (_yscale - 5);
}
} else {
timer--;
}
if (act > 0) {
if (speed > 0) {
_x = (_x + lengthdir_x(speed, dir));
_y = (_y - lengthdir_y(speed, dir));
speed = speed - 0.2;
}
switch (act) {
case 1 :
if (vspeed > 0) {
_y = (_y - vspeed);
vspeed = vspeed - 2;
} else {
act = 2;
}
break;
case 2 :
if (limit > (-1 * vspeed)) {
_y = (_y - vspeed);
vspeed = vspeed - 2;
} else if (limit == (-1 * vspeed)) {
vspeed = -1 * (vspeed + 4);
limit = vspeed;
} else {
act = 0;
speed = 2;
dir = -1 * point_direction(_x, _y, x, y);
if (_root.magnit != true) {
break;
}
kill = true;
if (_currentframe < 7) {
playSound("coin1", "coin2", "coin3", "coin4");
} else {
playSound("almaz1", "almaz2");
}
}
}
} else if (_root.magnit == true) {
kill = true;
_yscale = 100;
_xscale = 100;
if (_currentframe < 7) {
playSound("coin1", "coin2", "coin3", "coin4");
} else {
playSound("almaz1", "almaz2");
}
}
} else {
dist = point_distance(_x, _y, x, y);
if (dist > speed) {
_x = (_x + lengthdir_x(speed, dir));
_y = (_y + lengthdir_y(speed, dir));
speed = Math.max(dist / 10, 20);
} else {
switch (_currentframe) {
case 1 :
_root.curr_money++;
_root.achi[5]++;
if (_root.effect == true) {
createInterPart(10 + random(25), 10 + random(25), "star1");
}
this.removeMovieClip();
break;
case 2 :
_root.curr_money = _root.curr_money + 3;
_root.achi[5] = _root.achi[5] + 3;
if (_root.effect == true) {
createInterPart(10 + random(25), 10 + random(25), "star1");
}
this.removeMovieClip();
break;
case 3 :
case 4 :
case 5 :
case 6 :
if (info.count < 5) {
info.count++;
z = info["grib" + info.count];
z._visible = true;
z._xscale = (z._yscale = 10);
}
createScore(info._x, info._y, 1);
this.removeMovieClip();
break;
case 7 :
_root.key++;
this.removeMovieClip();
break;
case 8 :
_root.curr_money = _root.curr_money + 15;
_root.achi[5] = _root.achi[5] + 15;
this.removeMovieClip();
}
}
}
}
};
Symbol 552 MovieClip [prize] Frame 2
img.gotoAndPlay(1 + random(12));
Symbol 575 MovieClip [boom] Frame 12
this.removeMovieClip();
Symbol 595 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 1
stop();
timer = 30;
key._visible = false;
onEnterFrame = function () {
if (key._visible == true) {
timer--;
if (timer == 0) {
dieChest(_parent);
}
}
};
Symbol 633 MovieClip [chest] Frame 1
hp = 100;
w1 = -12;
w2 = 58;
h1 = -35;
h2 = 40;
Symbol 705 MovieClip [enemy4] Frame 1
stop();
speed = 2;
w1 = 0;
w2 = 50;
h1 = -15;
h2 = 35;
if (_root.minigame != 3) {
xstart = (xtile = _x / 48);
} else {
xstart = 0;
}
ystart = (ytile = _y / 36);
moving = 1;
act = 0;
path = new Array();
huntSpider(this);
onEnterFrame = function () {
if (_root.paused == false) {
if (moving == 1) {
moveSpider(this);
if (_y != ypre) {
this.swapDepths((_y * 10000) + id);
}
ypre = _y;
} else {
if (moving == 0) {
huntSpider(this);
spid.play();
}
moving++;
}
if (_x < 20) {
if (_root.minigame == 3) {
_root.life--;
_root.mini_diff = _root.mini_diff - 5;
bankEnemy.splice(i, 1);
this.removeMovieClip();
}
}
}
};
Symbol 705 MovieClip [enemy4] Frame 20
if ((_root.minigame == 0) or (_root.minigame == 6)) {
_root.rain.gotoAndPlay(2);
}
Symbol 705 MovieClip [enemy4] Frame 36
stop();
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha < 2) {
this.removeMovieClip();
}
};
Symbol 730 MovieClip [kap] Frame 23
stop();
Symbol 753 MovieClip [dirt] Frame 1
gotoAndPlay(1 + random(3));
Symbol 753 MovieClip [dirt] Frame 28
this.removeMovieClip();
Symbol 774 MovieClip [explo] Frame 19
this.removeMovieClip();
Symbol 996 MovieClip Frame 39
gotoAndPlay (15);
Symbol 1007 MovieClip [enemy2] Frame 1
stop();
hp = 100;
speed = 0.5;
w1 = -6;
w2 = 56;
h1 = -46;
h2 = 43;
xstart = (xtile = _x / 48);
ystart = (ytile = _y / 36);
hplow = hp;
hpgui = 0;
moving = 1;
eating = 0;
act = 0;
vspeed = 0;
killgrib = false;
cargo = false;
path = new Array();
if (_root.minigame != 2) {
huntEnemy(this);
} else {
path = findPath(_root.colmap, xtile, ytile, 0, ystart);
}
onEnterFrame = function () {
if (_root.paused == false) {
if ((moving == 1) and (eating == 0)) {
moveMedved(this);
if (_root.minigame != 2) {
if (_y != ypre) {
this.swapDepths((_y * 10000) + id);
}
ypre = _y;
} else if (_x < 30) {
_root.life--;
_root.mini_diff = _root.mini_diff - 15;
if (_root.life > 0) {
j = 0;
while (j < bankEnemy.length) {
attackEnemy(bankEnemy[j], 0, 4);
j++;
}
}
dieEnemy(this);
}
} else if (moving < 1) {
moving++;
if (moving == 1) {
if (eating > 5) {
eating = 43;
gotoAndStop (10);
} else {
trace(last);
gotoAndStop(last);
}
}
} else if (eating > 0) {
eating--;
if (eating == 5) {
if (food.count > 1) {
playSound("beareat");
food["grib" + food.count]._visible = false;
food.count--;
createScore(_x, _y, 2);
} else if (food.count == 1) {
playSound("beareat");
food.grib1._visible = false;
food.count = 0;
dieFood(this);
}
food = undefined;
huntEnemy(this);
}
}
if (hp < hplow) {
hplow = hplow - 2;
hplowbar._xscale = hplow;
hpgui = 200;
} else if (hpgui > 0) {
hpgui = hpgui - 10;
}
if (hpbar._visible == true) {
if (hpgui > 0) {
hpbar._alpha = (hplowbar._alpha = (hpbor._alpha = hpgui));
} else {
hpbar._visible = (hplowbar._visible = (hpbor._visible = false));
}
}
}
};
Symbol 1007 MovieClip [enemy2] Frame 13
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha < 2) {
this.removeMovieClip();
}
};
Symbol 1007 MovieClip [enemy2] Frame 21
stop();
Symbol 1010 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 1012 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 1014 MovieClip Frame 35
_parent.removeMovieClip();
Symbol 1020 MovieClip Frame 26
_parent.removeMovieClip();
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1045 MovieClip Frame 14
gotoAndPlay (1);
Symbol 1046 MovieClip [enemy3] Frame 1
stop();
hp = 100;
shad._alpha = 25;
shad._xscale = (shad._yscale = 75);
w1 = -30;
w2 = 30;
h1 = bird._y - 30;
h2 = bird._y + 30;
moving = 1;
if (_x < 300) {
_x = 24;
path = -1;
bird._xscale = bird._xscale * -1;
shad._xscale = shad._xscale * -1;
} else {
_x = 748;
path = 1;
}
if (info == 0) {
bird.weap._visible = false;
shad.weap._visible = false;
if ((_root.minigame == 0) or (_root.minigame == 6)) {
huntVor(this);
}
} else {
bird.weap.gotoAndStop(info);
shad.weap.gotoAndStop(info);
_y = (200 + random(260));
}
cargo = false;
bird.grib._visible = false;
shad.grib._visible = false;
if ((_root.minigame == 0) or (_root.minigame == 6)) {
speed = (-4 - random(4)) * path;
} else if (_root.minigame == 2) {
speed = 5;
} else {
speed = (4 + (_root.mini_diff / 10)) + random(4);
}
this.swapDepths((_y * 10000) + id);
onEnterFrame = function () {
if (_root.paused == false) {
if (moving == 1) {
if ((_root.minigame == 0) or (_root.minigame == 6)) {
_x = (_x + speed);
if (info == 0) {
h1 = bird._y - 30;
h2 = bird._y + 30;
dist = Math.abs((_x - food._x) - 24);
if (dist < 100) {
shad._alpha = 50 - (dist / 4);
shad._xscale = (100 - (dist / 4)) * path;
shad._yscale = shad._xscale * path;
bird._y = -dist;
if (dist < 5) {
if (cargo == false) {
if (food.count > 0) {
cargo = (bird.grib._visible = true);
bird.grib.gotoAndStop(food.type);
bird.grib.grib.stop();
food["grib" + food.count]._visible = false;
food.count--;
createScore(food._x, food._y, 2);
}
}
}
}
}
}
} else {
moving++;
}
if ((_root.minigame == 0) or (_root.minigame == 6)) {
if (_x < 24) {
if (cargo == true) {
dieFood(this);
} else {
dieBird(this);
}
}
if (_x > 748) {
if (cargo == true) {
dieFood(this);
} else {
dieBird(this);
}
}
} else if (_root.minigame == 2) {
_x = (_x + speed);
if (_x > 768) {
dieBird(this);
}
} else {
_x = (_x - speed);
if (_x < 0) {
_root.life--;
_root.mini_diff = _root.mini_diff - 10;
dieBird(this);
}
}
}
};
Symbol 1049 MovieClip [hulk3] Frame 1
stop();
vspeed = 0;
speed = 4 + random(6);
if (random(10) < 5) {
dir = 90 + random(30);
rot = -5 - random(5);
} else {
dir = 60 + random(30);
rot = 5 + random(5);
}
timer = 15 + random(15);
onEnterFrame = function () {
_rotation = (_rotation + rot);
_x = (_x + lengthdir_x(speed, dir));
_y = (_y + (lengthdir_y(speed, dir) + vspeed));
vspeed = vspeed + 0.5;
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1052 MovieClip [star2] Frame 1
stop();
vspeed = 1 + random(3);
rot = 7 + random(5);
_alpha = 0;
timer = 20 + random(10);
onEnterFrame = function () {
_rotation = (_rotation + rot);
_y = (_y - vspeed);
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
} else if (_alpha < 100) {
_alpha = (_alpha + 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1053 MovieClip [star1] Frame 1
stop();
rot = 7 + random(5);
_alpha = 0;
timer = 20 + random(10);
onEnterFrame = function () {
_rotation = (_rotation + rot);
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
} else if (_alpha < 100) {
_alpha = (_alpha + 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1060 MovieClip [hulk2] Frame 1
dir = 45 + random(90);
vspeed = 0;
speed = 5 + random(9);
rot = 40 - random(80);
timer = 20 + random(20);
_rotation = random(360);
gotoAndStop(2 + random(3));
onEnterFrame = function () {
_rotation = (_rotation + rot);
_x = (_x + lengthdir_x(speed, dir));
_y = (_y + (lengthdir_y(speed, dir) + vspeed));
vspeed = vspeed + 0.5;
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1067 MovieClip [chip] Frame 1
dir = 45 + random(90);
vspeed = 0;
speed = 5 + random(9);
rot = 20 - random(40);
timer = 20 + random(20);
_rotation = random(360);
gotoAndStop(2 + random(3));
onEnterFrame = function () {
_rotation = (_rotation + rot);
_x = (_x + lengthdir_x(speed, dir));
_y = (_y + (lengthdir_y(speed, dir) + vspeed));
vspeed = vspeed + 0.5;
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1074 MovieClip [hulk1] Frame 1
dir = 45 + random(90);
vspeed = 0;
speed = 5 + random(9);
rot = 20 - random(40);
vrot = random(10);
timer = 20 + random(20);
_rotation = random(360);
gotoAndStop(2 + random(3));
onEnterFrame = function () {
_rotation = (_rotation + rot);
_x = (_x + lengthdir_x(speed, dir));
_y = (_y + (lengthdir_y(speed, dir) + vspeed));
vspeed = vspeed + 0.5;
if (_yscale > 90) {
_yscale = -100;
} else {
_yscale = (_yscale + vrot);
}
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1081 MovieClip Frame 1
gotoAndStop(1 + random(3));
Symbol 1082 MovieClip [list] Frame 1
dir = random(360);
speed = (4 + random(5)) * 4;
vspeed = (1 + random(2)) / 2;
rot = 5 - random(10);
timer = 10 + random(15);
_rotation = random(360);
onEnterFrame = function () {
_y = (_y + vspeed);
_rotation = (_rotation + rot);
if (speed > 2) {
_x = (_x + lengthdir_x(speed, dir));
_y = (_y + lengthdir_y(speed, dir));
speed = speed - 4;
}
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1085 MovieClip [pero] Frame 1
dir = random(360);
speed = (3 + random(4)) * 4;
vspeed = (1 + random(2)) / 2;
rot = 5 - random(10);
timer = 20 + random(20);
_rotation = random(360);
onEnterFrame = function () {
_y = (_y + vspeed);
_rotation = (_rotation + rot);
if (speed > 2) {
_x = (_x + lengthdir_x(speed, dir));
_y = (_y + lengthdir_y(speed, dir));
speed = speed - 4;
}
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 1097 MovieClip [tree] Frame 1
if (img._currentframe == 1) {
hp = 50;
} else {
hp = 10;
}
w1 = -75;
w2 = 75;
h1 = -160;
h2 = -30;
act = 0;
scale = 20;
onEnterFrame = function () {
if (img._currentframe < 6) {
if (act > 0) {
if (_yscale < 100) {
_yscale = (_yscale + scale);
} else {
_yscale = (_yscale - scale);
}
if (scale < 1) {
act = 0;
_yscale = 100;
}
scale--;
}
}
};
Symbol 1100 MovieClip [tree_s] Frame 1
stop();
Symbol 1104 MovieClip [crack] Frame 1
if (random(2) == 0) {
_xscale = -100;
}
if (random(2) == 0) {
_yscale = -100;
}
Symbol 1104 MovieClip [crack] Frame 21
this.removeMovieClip();
Symbol 1117 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
getURL ("http://armorgames.com/", "_blank");
}
Symbol 1149 MovieClip Frame 1
stop();
Symbol 1149 MovieClip Frame 8
_root.musicVol.setVolume(90);
Symbol 1149 MovieClip Frame 9
_root.musicVol.setVolume(80);
Symbol 1149 MovieClip Frame 10
_root.musicVol.setVolume(70);
Symbol 1149 MovieClip Frame 11
_root.musicVol.setVolume(60);
Symbol 1149 MovieClip Frame 12
_root.musicVol.setVolume(50);
Symbol 1149 MovieClip Frame 13
_root.musicVol.setVolume(40);
Symbol 1149 MovieClip Frame 14
_root.musicVol.setVolume(30);
Symbol 1149 MovieClip Frame 15
_root.musicVol.setVolume(20);
Symbol 1149 MovieClip Frame 16
_root.musicVol.setVolume(10);
Symbol 1149 MovieClip Frame 17
_root.musicVol.setVolume(0);
Symbol 1149 MovieClip Frame 18
clearLevel();
switch (tar) {
case "main" :
_root.back.gotoAndStop(7);
openMenu("exit", true);
playMusic("muz_1");
_root.silenlogo._visible = true;
_root.sponlogo._visible = true;
_root.lvl = 0;
break;
case "vict" :
_root.sponlogo._visible = true;
_root.back.gotoAndStop(8);
openMenu("exit", true);
playMusic("muz_1");
break;
case "game" :
loadLevel();
_root.sponlogo._visible = false;
_root.back.gotoAndStop(_root.weather);
_root.back.img.road._visible = false;
if (_root.minigame == 0) {
_root.back.img.lin._visible = false;
} else {
_root.back.img.lin._visible = true;
if (_root.minigame == 2) {
_root.back.img.road._visible = true;
}
if (_root.minigame > 4) {
_root.back.img.lin._visible = false;
}
}
openMenu("exit", true);
playMusic("amb_day");
_root.silenlogo._visible = false;
break;
case "upgr" :
_root.sponlogo._visible = true;
_root.back.gotoAndStop(6);
_root.back.img.road._visible = false;
_root.back.img.lin._visible = false;
openMenu(tar, true);
playMusic("amb_night");
break;
case "stage" :
_root.sponlogo._visible = true;
_root.back.gotoAndStop(6);
_root.back.img.road._visible = false;
_root.back.img.lin._visible = false;
openMenu(tar, true);
playMusic("amb_night");
_root.silenlogo._visible = false;
break;
case "send" :
_root.sponlogo._visible = true;
_root.back.gotoAndStop(1);
openMenu(tar, true);
}
Symbol 1149 MovieClip Frame 21
_root.musicVol.setVolume(0);
Symbol 1149 MovieClip Frame 22
_root.musicVol.setVolume(10);
Symbol 1149 MovieClip Frame 23
_root.musicVol.setVolume(20);
Symbol 1149 MovieClip Frame 24
_root.musicVol.setVolume(30);
Symbol 1149 MovieClip Frame 25
_root.musicVol.setVolume(40);
Symbol 1149 MovieClip Frame 26
_root.musicVol.setVolume(50);
Symbol 1149 MovieClip Frame 27
_root.musicVol.setVolume(60);
Symbol 1149 MovieClip Frame 28
_root.musicVol.setVolume(70);
Symbol 1149 MovieClip Frame 29
_root.musicVol.setVolume(80);
Symbol 1149 MovieClip Frame 30
_root.musicVol.setVolume(90);
Symbol 1149 MovieClip Frame 31
_root.musicVol.setVolume(100);
Symbol 1149 MovieClip Frame 36
_root.trans_delay = false;
switch (tar) {
case "main" :
showLogo(1);
playSound("vocal_3", "vocal_4", "vocal_5");
break;
case "vict" :
showLogo(6);
break;
case "game" :
showLogo(2);
}
Symbol 1685 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1686 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1687 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.4 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
onError("NotConnected");
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError("IOError");
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError(errorCode);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError("IOError");
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError("NotConnected");
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError("NotConnected");
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1688 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function getAchievements(properties) {
mochi.as2.MochiServices.send("events_getAchievements", properties);
}
static function unlockAchievement(properties) {
mochi.as2.MochiServices.send("events_unlockAchievement", properties);
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function showAwards(options) {
mochi.as2.MochiServices.send("events_showAwards", options, null, null);
}
static function setNotifications(style) {
mochi.as2.MochiServices.send("events_setNotifications", style, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENTS_OWNED = "AchievementOwned";
static var ACHIEVEMENT_NEW = "AchievementReceived";
static var GAME_ACHIEVEMENTS = "GameAchievements";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var IO_PENDING = "IOPending";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var FORMAT_NONE = "NoForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1689 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1690 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function showProfile(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showProfile", options);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1691 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 1163 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 1166 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 1166 MovieClip Frame 218
_root.nextFrame();
Symbol 1224 MovieClip Frame 1
stop();
Symbol 1224 MovieClip Frame 2
gotoAndStop (1);
Symbol 1224 MovieClip Frame 7
gotoAndStop (1);
Symbol 1224 MovieClip Frame 13
gotoAndStop (1);
Symbol 1224 MovieClip Frame 19
gotoAndStop (1);
Symbol 1224 MovieClip Frame 25
gotoAndStop (1);
Symbol 1224 MovieClip Frame 31
gotoAndStop (1);
Symbol 1224 MovieClip Frame 37
gotoAndStop (1);
Symbol 1224 MovieClip Frame 43
gotoAndStop (1);
Symbol 1224 MovieClip Frame 49
gotoAndStop (1);
Symbol 1224 MovieClip Frame 55
gotoAndStop (1);
Symbol 1224 MovieClip Frame 61
gotoAndStop (1);
Symbol 1224 MovieClip Frame 67
gotoAndStop (1);
Symbol 1224 MovieClip Frame 73
gotoAndStop (1);
Symbol 1224 MovieClip Frame 79
gotoAndStop (1);
Symbol 1224 MovieClip Frame 85
gotoAndStop (1);
Symbol 1224 MovieClip Frame 91
gotoAndStop (1);
Symbol 1224 MovieClip Frame 97
gotoAndStop (1);
Symbol 1224 MovieClip Frame 103
gotoAndStop (1);
Symbol 1224 MovieClip Frame 109
gotoAndStop (1);
Symbol 1224 MovieClip Frame 115
gotoAndStop (1);
Symbol 1224 MovieClip Frame 121
gotoAndStop (1);
Symbol 1224 MovieClip Frame 127
gotoAndStop (1);
Symbol 1224 MovieClip Frame 133
gotoAndStop (1);
Symbol 1224 MovieClip Frame 139
gotoAndStop (1);
Symbol 1224 MovieClip Frame 145
gotoAndStop (1);
Symbol 1224 MovieClip Frame 151
gotoAndStop (1);
Symbol 1224 MovieClip Frame 157
gotoAndStop (1);
Symbol 1224 MovieClip Frame 163
gotoAndStop (1);
Symbol 1224 MovieClip Frame 169
gotoAndStop (1);
Symbol 1224 MovieClip Frame 175
gotoAndStop (1);
Symbol 1224 MovieClip Frame 181
gotoAndStop (1);
Symbol 1224 MovieClip Frame 187
gotoAndStop (1);
Symbol 1224 MovieClip Frame 193
gotoAndStop (1);
Symbol 1224 MovieClip Frame 199
gotoAndStop (1);
Symbol 1224 MovieClip Frame 205
gotoAndStop (1);
Symbol 1224 MovieClip Frame 211
gotoAndStop (1);
Symbol 1224 MovieClip Frame 217
gotoAndStop (1);
Symbol 1224 MovieClip Frame 223
gotoAndStop (1);
Symbol 1224 MovieClip Frame 229
gotoAndStop (1);
Symbol 1224 MovieClip Frame 235
gotoAndStop (1);
Symbol 1224 MovieClip Frame 241
gotoAndStop (1);
Symbol 1224 MovieClip Frame 247
gotoAndStop (1);
Symbol 1224 MovieClip Frame 253
gotoAndStop (1);
Symbol 1224 MovieClip Frame 259
gotoAndStop (1);
Symbol 1224 MovieClip Frame 265
gotoAndStop (1);
Symbol 1224 MovieClip Frame 271
gotoAndStop (1);
Symbol 1224 MovieClip Frame 277
gotoAndStop (1);
Symbol 1224 MovieClip Frame 283
gotoAndStop (1);
Symbol 1224 MovieClip Frame 289
gotoAndStop (1);
Symbol 1224 MovieClip Frame 295
gotoAndStop (1);
Symbol 1224 MovieClip Frame 301
gotoAndStop (1);
Symbol 1224 MovieClip Frame 307
gotoAndStop (1);
Symbol 1224 MovieClip Frame 313
gotoAndStop (1);
Symbol 1224 MovieClip Frame 319
gotoAndStop (1);
Symbol 1224 MovieClip Frame 325
gotoAndStop (1);
Symbol 1224 MovieClip Frame 331
gotoAndStop (1);
Symbol 1224 MovieClip Frame 337
gotoAndStop (1);
Symbol 1235 MovieClip Frame 1
stop();
Symbol 1258 MovieClip Frame 1
_visible = false;
stop();
Symbol 1258 MovieClip Frame 2
_visible = true;
y = 0;
i = 0;
while (i < bankFood.length) {
z = bankFood[i];
if (z.count < 5) {
y = 1;
z.count++;
x = z["grib" + z.count];
x._visible = true;
x._xscale = (x._yscale = 10);
createScore(z._x, z._y, 1);
if (_root.effect == true) {
j = 5;
while (j--) {
createPart(z._x + random(48), z._y + random(36), "star2", _root.levelmap.getNextHighestDepth(), 1);
}
}
}
i++;
}
playSound("lightning");
if (y == 1) {
playSound("holy");
}
Symbol 1258 MovieClip Frame 103
gotoAndStop (1);
Symbol 1279 MovieClip Frame 1
onEnterFrame = function () {
if (_root.win == false) {
if (img._xscale > 0) {
if (_visible == false) {
_visible = true;
_alpha = 0;
} else if (_alpha != 100) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
} else {
_alpha = 100;
}
}
}
} else if (_alpha != 0) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_alpha = 0;
}
}
};
Symbol 1285 Button
on (press) {
if (_root.paused == false) {
showLogo(5);
openMenu("game");
_root.musicVol.setVolume(30);
}
}
Symbol 1318 MovieClip Frame 1
stop();
Symbol 1318 MovieClip Frame 2
but.title = "?????????";
Symbol 1318 MovieClip Frame 40
but.lv.gotoAndStop(_root.upgr[info]);
but.icon.gotoAndStop(info);
but.title = _root["str_upgr_" + info];
x = (_parent._x + _x) - 100;
y = (_parent._y + _y) - 10;
z = 10;
while (z--) {
createInterPart(x + (24 * z), y + random(30), "star2");
}
playSound("holy");
Symbol 1373 MovieClip Frame 1
stop();
Symbol 1373 MovieClip Frame 45
gotoAndStop (1);
Symbol 1373 MovieClip Frame 51
gotoAndStop (1);
Symbol 1373 MovieClip Frame 57
gotoAndStop (1);
Symbol 1373 MovieClip Frame 62
gotoAndStop (1);
Symbol 1377 MovieClip Frame 1
onEnterFrame = function () {
_x = ((Math.round(_root._xmouse / tileW) * tileW) - _root._xmouse);
_y = (((Math.round(_root._ymouse / tileH) * tileH) - _root._ymouse) - 18);
};
Symbol 1381 MovieClip Frame 1
stop();
Symbol 1388 MovieClip Frame 1
stop();
Symbol 1391 MovieClip Frame 1
ammo = 0;
stop();
onEnterFrame = function () {
_x = _root._xmouse;
_y = _root._ymouse;
if (_xscale != 100) {
if (_xscale > 100) {
_yscale = (_yscale - 5);
_xscale = (_yscale - 5);
} else {
_yscale = 100;
_xscale = 100;
}
}
};
Symbol 1391 MovieClip Frame 2
ammo = 1;
rad._xscale = (rad._yscale = _root.bonusBomb * 2);
Symbol 1391 MovieClip Frame 3
ammo = 1;
Symbol 1391 MovieClip Frame 4
if (_root.minigame == 1) {
ammo = 999999 /* 0x0F423F */;
} else {
ammo = _root.bonusGun;
}
Symbol 1391 MovieClip Frame 5
if (_root.minigame == 4) {
ammo = 999999 /* 0x0F423F */;
} else {
ammo = 10;
}
Symbol 1400 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
saveGame();
if (backmenu == "stage") {
openMenu("back");
} else {
openScreen("game");
}
}
}
}
Symbol 1404 Button
on (rollOver) {
_parent.mess.show = true;
_parent.mess.txt.text = _root["str_desc_" + id];
playSound("over");
}
on (rollOut) {
_parent.mess.show = false;
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_parent.desc.show = false;
_root.money = _root.money - cost;
doUpgr(id);
reUpgr(_parent);
x = (_parent._x + _x) - 100;
y = (_parent._y + _y) - 10;
z = 10;
while (z--) {
createInterPart(x + (24 * z), y + random(30), "star2");
}
playSound("holy");
}
}
}
Symbol 1414 MovieClip Frame 3
lv.gotoAndStop(1);
Symbol 1418 MovieClip Frame 1
show = false;
visible = false;
_alpha = 0;
onEnterFrame = function () {
if (show == true) {
visible = true;
_x = (_root._xmouse - 400);
_y = (_root._ymouse - 225);
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 20);
_x = (_root._xmouse - 400);
_y = (_root._ymouse - 225);
} else {
visible = false;
}
};
Symbol 1426 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.musicVol.setVolume(100);
showLogo(0);
_root.menubut._visible = true;
openMenu("exit");
}
}
}
Symbol 1433 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openMenu("option");
}
}
}
Symbol 1438 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
if (_root.minigame == 0) {
saveGame();
} else {
_root.inter_upgr.gotoAndStop(1);
loadGame();
}
_root.lvl = 0;
_root.bonus = 0;
_root.minigame = 0;
openScreen("main");
}
}
}
Symbol 1442 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
showLogo(0);
openMenu("hint");
}
}
}
Symbol 1446 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.inter_upgr.gotoAndStop(1);
openScreen("game");
}
}
}
Symbol 1450 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.maxlvl > 1) {
openMenu("cont");
} else {
openMenu("diff");
}
}
}
Symbol 1455 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
if (_xscale == 100) {
getURL ("http://armorgames.com/", "_blank");
}
}
Symbol 1456 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("option");
}
}
Symbol 1460 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
if (_root.gamemenu.tar == "mini") {
_root.minigame = this.id;
openScreen("game");
} else {
switch (_name) {
case "but1" :
openMenu("mini");
break;
case "but2" :
_root.minigame = 6;
openScreen("game");
}
}
}
}
}
Symbol 1464 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.openKingPage("Mushroom_Survival", "/game/mushroom-madness");
}
}
}
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1468 MovieClip Frame 1
stop();
Symbol 1473 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
saveGame();
openMenu("back");
}
}
Symbol 1477 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.effect = false;
}
Symbol 1481 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (1);
_root.effect = true;
}
Symbol 1482 MovieClip Frame 1
if (_root.effect == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1486 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.hint = false;
}
Symbol 1490 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (1);
_root.hint = true;
}
Symbol 1491 MovieClip Frame 1
if (_root.hint == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1495 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.sound = false;
}
Symbol 1499 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (1);
_root.sound = true;
}
Symbol 1500 MovieClip Frame 1
if (_root.sound == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1504 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.music = false;
playMusic("stop");
}
Symbol 1508 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (1);
_root.music = true;
if (((_root.lvl == 0) or (_root.bonus > 0)) or (_root.minigame > 0)) {
playMusic("muz_1");
} else {
playMusic("muz");
}
}
Symbol 1509 MovieClip Frame 1
if (_root.music == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1516 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("stage");
_root.lvl = 31;
_root.diff = 0.5;
}
}
}
Symbol 1520 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("stage");
_root.lvl = 31;
_root.diff = 1;
}
}
}
Symbol 1524 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("stage");
_root.lvl = 31;
_root.diff = 1.5;
}
}
}
Symbol 1528 MovieClip Frame 1
stop();
Symbol 1530 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("stage");
}
}
}
Symbol 1534 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
resetGame();
saveGame();
openMenu("diff");
}
}
Symbol 1535 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("back");
}
}
Symbol 1539 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("main");
}
}
}
Symbol 1550 MovieClip Frame 1
gotoAndStop(_parent._parent.info);
Symbol 1554 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.lvl = this.id;
openScreen("game");
}
}
}
Symbol 1562 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openMenu("upgr");
}
}
}
Symbol 1568 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
if (((but0.counter == false) and (but1.counter == false)) and (but2.counter == false)) {
saveGame();
_root.lvl = 0;
openScreen("stage");
}
}
}
}
Symbol 1578 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 13
stop();
Symbol 1584 MovieClip Frame 1
award._visible = false;
award.text = ("+" + (_root.lvl * 5)) + "$";
x = 0;
plus = info / 20;
onEnterFrame = function () {
if (_xscale == 100) {
if (_root.achi[type] > 0) {
_root.achi[type] = _root.achi[type] - plus;
x = x + plus;
have = Math.floor(x);
if (back._currentframe == 1) {
if (info <= have) {
back.gotoAndPlay(2);
playSound("holy");
if (_root.sav[_root.lvl][id] == 0) {
_root.sav[_root.lvl][id] = 1;
_root.money = _root.money + (_root.lvl * 5);
award._visible = true;
icon.gotoAndStop(2);
}
}
}
} else {
counter = false;
if (type == 5) {
have = _root.curr_money;
}
}
}
};
Symbol 1585 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
if (((but0.counter == false) and (but1.counter == false)) and (but2.counter == false)) {
x = _root.maxlvl + 1;
y = 24 + (x / 4);
if ((x % 4) == 0) {
trace("cond sav = " + _root.sav[y]);
if (_root.sav[y] == undefined) {
_root.minigame = x / 4;
_root.sav[y] = 0;
trace((("__sav " + y) + " = ") + _root.sav[y]);
}
}
if (_root.lvl == 20) {
_root.sav[0][(_root.diff * 2) - 1] = 1;
if (_root.sav[30] == undefined) {
}
} else if ((_root.lvl % 4) == 0) {
_root.bonus = _root.lvl / 4;
}
_root.lvl++;
_root.money = _root.money + _root.curr_money;
saveGame();
if (_root.bonus == 0) {
if (_root.lvl == 21) {
_root.lvl = 0;
openScreen("vict");
} else if (_root.minigame == 0) {
openScreen("upgr");
} else {
openMenu("unlock");
}
} else {
openScreen("game");
}
}
}
}
}
Symbol 1592 MovieClip Frame 1
stop();
Symbol 1596 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
showLogo(0);
z = "exit";
if (_root.hint == true) {
i = 1;
while (i < 7) {
if (_root.lvl == _root.hintin[i]) {
z = "hint";
_root.hintnum = i;
break;
}
i++;
}
}
if (z == "exit") {
playMusic("muz");
_root.menubut._visible = true;
playVocal();
}
openMenu(z);
}
}
}
Symbol 1600 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.minigame = 0;
_root.inter_upgr.gotoAndStop(1);
loadGame();
if (_root.lvl == 0) {
openScreen("main");
} else {
openScreen("upgr");
}
}
}
}
Symbol 1608 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
if (backmenu == "ready") {
playMusic("muz");
_root.menubut._visible = true;
playVocal();
openMenu("exit");
} else {
showLogo(5);
openMenu("back");
}
}
}
}
Symbol 1622 MovieClip Frame 6
bird2.gotoAndPlay(5);
bird3.gotoAndPlay(9);
bird1.weap._visible = false;
bird2.grib._visible = false;
bird3.grib._visible = false;
bird1.grib.gotoAndStop(4);
bird1.grib.grib.stop();
bird2.weap.gotoAndStop(5);
bird3.weap.gotoAndStop(6);
Symbol 1628 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
if (_root.hintnum < 6) {
_root.hintnum++;
} else {
_root.hintnum = 1;
}
reHint(this);
}
}
}
Symbol 1629 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
if (_root.hintnum > 1) {
_root.hintnum--;
} else {
_root.hintnum = 6;
}
reHint(this);
}
}
}
Symbol 1636 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("game");
}
}
}
Symbol 1637 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.lvl = 0;
openScreen("main");
}
}
}
Symbol 1639 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("game");
}
}
}
Symbol 1640 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
_root.minigame = 0;
if (_root.lvl == 0) {
openScreen("main");
} else {
openScreen("upgr");
}
}
}
Symbol 1646 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.menubut._visible = true;
showLogo(0);
openMenu("exit");
playMusic("muz_1");
}
}
}
Symbol 1650 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("main");
}
}
Symbol 1657 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.minigame == 6) {
openMenu("unlock");
} else {
openScreen("main");
}
}
}
Symbol 1660 MovieClip Frame 1
close = true;
_yscale = 0;
_xscale = 0;
tar = "";
backmenu = "";
gotoAndStop ("exit");
onEnterFrame = function () {
if (close == false) {
if (_xscale != 100) {
if (_xscale < 100) {
_yscale = (_yscale + 30);
_xscale = (_yscale + 30);
} else {
_yscale = (_yscale - 10);
_xscale = (_yscale - 10);
}
}
} else if (_xscale > 30) {
_yscale = (_yscale - 40);
_xscale = (_yscale - 40);
} else if (_currentframe != tar) {
close = false;
gotoAndStop(tar);
}
};
Symbol 1660 MovieClip Frame 2
initUpgr(this);
reUpgr(this);
Symbol 1660 MovieClip Frame 11
if (_root.bonus > 0) {
but._visible = false;
} else {
but._visible = true;
}
Symbol 1660 MovieClip Frame 21
but1.title = _root.str_but_mini;
but2.title = _root.str_but_mini6;
if (_root.sav[25] != undefined) {
but1.gotoAndStop(1);
} else {
but1.gotoAndStop(2);
}
if (_root.surv_allow == true) {
but2.gotoAndStop(1);
} else {
but2.gotoAndStop(2);
}
Symbol 1660 MovieClip Frame 41
i = 1;
while (i < 4) {
this["star" + i].gotoAndPlay(_root.sav[0][i - 1] + 1);
i++;
}
Symbol 1660 MovieClip Frame 61
i = 1;
while (i < 25) {
z = this["but" + i];
z.id = i;
z.info = ((1 + _root.sav[i][0]) + _root.sav[i][1]) + _root.sav[i][2];
z.title = i;
if (_root.maxlvl < i) {
z.gotoAndStop(2);
} else {
z.gotoAndStop(1);
}
i++;
}
Symbol 1660 MovieClip Frame 71
awardcount = 0;
i = 0;
while (i < 3) {
z = this["but" + i];
z.type = _root["lvlachi" + _root.lvl][i][0];
z.info = _root["lvlachi" + _root.lvl][i][1];
z.title = _root["str_achi_" + z.type];
z.icon.gotoAndPlay(_root.sav[_root.lvl][i] + 1);
z.have = 0;
z.id = i;
z.counter = true;
i++;
}
if (_root.maxlvl < (_root.lvl + 1)) {
_root.maxlvl = _root.lvl + 1;
}
Symbol 1660 MovieClip Frame 81
title = (("Level " + _root.lvl) + " ") + _root.str_menu_achi;
i = 0;
while (i < 3) {
z = this["but" + i];
z.type = _root["lvlachi" + _root.lvl][i][0];
z.info = _root["lvlachi" + _root.lvl][i][1];
z.title = _root["str_achi_" + z.type];
z.icon.gotoAndStop(_root.sav[_root.lvl][i] + 1);
z.back.gotoAndStop(_root.sav[_root.lvl][i] + 1);
if (z.icon._currentframe == 1) {
z.txt1.textColor = 13421772 /* 0xCCCCCC */;
z.txt2.textColor = 13421772 /* 0xCCCCCC */;
} else {
z.txt1.textColor = 16777215 /* 0xFFFFFF */;
z.txt2.textColor = 16777215 /* 0xFFFFFF */;
}
i++;
}
Symbol 1660 MovieClip Frame 91
sendobj.gotoAndStop(1);
x = 24 + _root.minigame;
if (_root.sav[x] < _root.curr_money) {
_root.sav[x] = _root.curr_money;
beat_txt._visible = true;
} else {
beat_txt._visible = false;
}
if (_root.minigame == 6) {
sub_but._visible = true;
} else {
sub_but._visible = false;
}
record = _root.sav[x];
_root.my_so.data["sav" + x] = _root.sav[x];
_root.my_so.flush();
playSound("gameover");
Symbol 1660 MovieClip Frame 101
reHint(this);
Symbol 1660 MovieClip Frame 121
title = ("Play " + _root["str_but_mini" + _root.minigame]) + "?";
playSound("unlock");
Symbol 1660 MovieClip Frame 131
but1.title = _root.str_but_mini1;
but2.title = _root.str_but_mini2;
but3.title = _root.str_but_mini3;
but4.title = _root.str_but_mini4;
but5.title = _root.str_but_mini5;
i = 1;
while (i < 6) {
z = this["but" + i];
z.id = i;
if (_root.sav[24 + i] != undefined) {
z.gotoAndStop(1);
} else {
z.gotoAndStop(2);
}
i++;
}
Symbol 1660 MovieClip Frame 141
if (_root.bonus > 0) {
title = _root.str_menu_bonus;
if (_root.bonus == 1) {
desc = ((_root.str_menu_bonusd + "\nYou have ") + _root.bonus) + " key.";
} else {
desc = ((_root.str_menu_bonusd + "\nYou have ") + _root.bonus) + " keys.";
}
} else {
title = _root["str_menu_mini" + _root.minigame];
desc = _root[("str_menu_mini" + _root.minigame) + "d"];
}
Instance of Symbol 1654 MovieClip in Symbol 1660 MovieClip Frame 151
on (release) {
getURL ("http://www.silengames.com", "_blank");
}
Symbol 1660 MovieClip Frame 161
if (_root.diff > 1) {
desc = "You have completed the game on Hard level.\nYou are the ultimate champion!\nTry to get the top score in Survival Mode!";
} else if (_root.diff == 1) {
desc = "You have completed the game on Normal level.\nMore challenges await you on Hard level.\nTry to get the top score in Survival Mode!";
} else {
desc = "You have completed the game on Easy level.\nMore challenges await you on Normal and Hard levels.\nTry to get the top score in Survival Mode!";
}
Symbol 1660 MovieClip Frame 171
var o = {n:[13, 11, 2, 8, 0, 6, 2, 5, 7, 10, 2, 4, 13, 2, 9, 9], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:_root.curr_money});
Symbol 1660 MovieClip Frame 181
stop();
Symbol 1664 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("cred");
}
}
Symbol 1675 MovieClip Frame 1
stop();
Symbol 1676 MovieClip Frame 1
stop();
Symbol 1676 MovieClip Frame 15
stop();
switch (img._currentframe) {
case 1 :
openMenu("main");
break;
case 2 :
if ((_root.minigame == 0) and (_root.bonus == 0)) {
openMenu("ready");
} else {
openMenu("minirdy");
}
break;
case 3 :
openMenu("score");
playSound("win");
break;
case 4 :
openMenu("over");
playSound("gameover");
break;
case 6 :
openMenu("vict");
playSound("win");
}
Symbol 1678 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
getURL ("http://armorgames.com/", "_blank");
}
Symbol 1684 MovieClip Frame 1
stop();