Frame 1
function initLoader() {
var _local2 = ((result_lv.b == undefined) ? "false" : (result_lv.b));
trace(("b ::" + _local2) + "::");
trace(("result_lv.h ::" + result_lv.h) + "::");
if (result_lv.h == "true") {
isHome = true;
}
if (_local2 == "true") {
bannedSign._alpha = 100;
} else {
this.onEnterFrame = function () {
createNewParticle();
mcLoadLogoBg.bar._xscale = 100 * (1 - (getBytesLoaded() / getBytesTotal()));
emitter._x = (mcLoadLogoBg._x + (96 - mcLoadLogoBg.bar._width)) + 15;
emitter._y = mcLoadLogoBg._y + 44;
if (getBytesLoaded() == getBytesTotal()) {
kill();
this.onEnterFrame = undefined;
if (isHome) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
};
bannedSign.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_PROGRESS);
}
};
}
}
function openKingPage(type, page) {
trace(type);
var _local4 = _root._url;
var _local3 = (((((("game=" + GAME_NAME) + "&from=") + _local4) + "&type=") + type) + "&session=") + sessionID;
if (page != undefined) {
_local3 = _local3 + ("&redirect=" + page);
}
var _local2 = "_blank";
if (isHome) {
_local2 = "_top";
}
getURL ((bounceURL + "?") + _local3, _local2);
}
function openOtherGamesLink() {
openKingPage(LINK_TYPE_OTHER_GAMES);
}
function openHighscoresLink() {
openKingPage(LINK_TYPE_HIGHSCORES, ("game/" + GAME_NAME) + "/highscores");
}
function openSignLink() {
if (!isHome) {
openKingPage(LINK_TYPE_SIGN);
}
}
function openAddToWebsiteLink() {
openKingPage(LINK_TYPE_ADD_GAME, "website_content.jsp");
}
function openLoaderMovieLink() {
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
function openRightClickLink() {
openKingPage(LINK_TYPE_RIGHT_CLICK);
}
function openOfflineProtectionLink() {
openKingPage(LINK_TYPE_PROTECT);
}
function addScore(points) {
checkScore();
var _local1 = (iscore - 123) / 2;
_local1 = _local1 + points;
iscore = (_local1 * 2) + 123;
var _local2 = new md5();
checkStr = _local2.hash((((iscore + ":") + GAME_NAME) + ":") + SK);
return(_local1);
}
function resetScore() {
iscore = 123;
checkStr = null;
}
function submitInternalScore() {
checkScore();
var _local1 = (iscore - 123) / 2;
submitScore(_local1);
}
function checkScore() {
if (checkStr != null) {
var _local1 = new md5();
if (checkStr != _local1.hash((((iscore + ":") + GAME_NAME) + ":") + SK)) {
SSK = "ng41ui54hy35tdsnd6f54rews";
}
}
}
function submitScore(score) {
var _local2 = new md5();
var _local1 = _local2.hash((((score + ":") + GAME_NAME) + ":") + SSK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitScore", score, _local1);
} else {
openKingPage(LINK_TYPE_HIGHSCORES, (((("game/" + GAME_NAME) + "/submit/") + score) + ":") + _local1);
}
} catch(e:Error) {
trace(e);
}
}
function submitLevel(level) {
var _local1 = new md5();
var _local2 = _local1.hash((((level + ":") + GAME_NAME) + ":") + SSK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitLevel", level, _local2);
}
} catch(e:Error) {
trace(e);
}
}
function submitAchievement(achievement) {
var _local1 = new md5();
var _local2 = _local1.hash((((achievement + ":") + GAME_NAME) + ":") + SAK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitAchievement", achievement, _local2);
}
} catch(e:Error) {
trace(e);
}
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function createNewParticle() {
var _local4 = emitter.attachMovie("libGlow", "newLibGlow", emitter.getNextHighestDepth());
var _local3 = new Particle(_local4, -10, -7, _root._width, _root._height);
_local3.setVel(randRange(minXVel, maxXVel), randRange(minYVel, maxYVel));
_local3.setSize(randRange(minSize, maxSize));
particles.push(_local3);
while (particles.length > numParticles) {
_local3 = particles.shift();
_local3.destroy();
}
var _local2 = 0;
while (_local2 < particles.length) {
particles[_local2].update();
_local2++;
}
}
function kill() {
var _local1 = 0;
while (_local1 < particles.length) {
particles[_local1].destroy();
_local1++;
}
}
function randRange(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
stop();
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 == "king.com") or (domain == "midasplayer.com")) or (domain == "newgrounds.com")) or (domain == "kongregate.com")) {
surv_allow = true;
} else {
surv_allow = false;
}
var GAME_NAME = "mushroom-madness";
var MOCHI_SIGNATURE = "";
var loadCountURL = "http://www.mygame.com/king/loadcount.jsp";
var bounceURL = "http://www.mygame.com/king/bounce.jsp";
var loadHomeParametersURL = "http://www.king.com/servlet/FreeGameServlet?action=load";
var LINK_TYPE_LOADER_MOVIE = "loader_movie";
var LINK_TYPE_LOADER_PROGRESS = "loader_progress";
var LINK_TYPE_PROTECT = "protect";
var LINK_TYPE_OTHER_GAMES = "other_games";
var LINK_TYPE_HIGHSCORES = "highscores";
var LINK_TYPE_SIGN = "sign";
var LINK_TYPE_ADD_GAME = "add_game";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var SSK = "ng43ui54hy35tdsnd6f54rews";
var SAK = "ggfd7sday923mdsfd8csfds34";
var SK = "vf78hxcsjak77cxzhjkwad87s";
var iscore = 123;
var checkStr = null;
var USER_TYPE_UNREGISTERED = 0;
var USER_TYPE_REGISTERED = 1;
var USER_TYPE_GOLD = 2;
var USER_TYPE_SUBSCRIPTION = 3;
var SessionID = "";
var gameWidth = Stage.width;
var gameHeight = Stage.height;
var isHome = false;
bannedSign._alpha = 0;
bannedSign._x = (bannedSign._y = 0);
bannedSign.bg._width = gameWidth;
bannedSign.bg._height = gameHeight;
mcLoadLogoBg._x = (gameWidth / 2) - (mcLoadLogoBg._width / 2);
mcLoadLogoBg._y = (gameHeight / 2) - (mcLoadLogoBg._height / 2);
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
_root.initLoader();
};
var my_lv = new LoadVars();
my_lv.game = GAME_NAME;
my_lv.from = _root._url;
var so = SharedObject.getLocal("session");
if (so.data.sessionID == null) {
var rnd1 = Math.floor(Math.random() * 4294967295);
var rnd2 = Math.floor(Math.random() * 4294967295);
so.data.sessionID = rnd1.toString(16) + rnd2.toString(16);
so.flush();
}
sessionID = so.data.sessionID;
my_lv.session = sessionID;
my_lv.sendAndLoad(loadCountURL, result_lv, "GET");
if (MOCHI_SIGNATURE != "") {
__com_mochibot__(MOCHI_SIGNATURE, this, 10301, true);
}
var numParticles = 20;
var minXVel = -1;
var maxXVel = 1;
var minYVel = -1;
var maxYVel = 1;
var minSize = 12;
var maxSize = 29;
var minAlpha = 10;
var maxAlpha = 20;
var particles = new Array();
var emitter = _root.createEmptyMovieClip("p_holder", _root.getNextHighestDepth());
Frame 2
function fireFire() {
new mx.transitions.Tween(mcKingLoader.fireLogoHolder, "_x", mx.transitions.easing.Regular.easeOut, mcKingLoader.fireLogoHolder._x, ((gameWidth / 2) - (mcKingLoader.dragonHolder._width / 2)) - 51, 1, true);
mcKingLoader.fireLogoHolder.play();
}
function showPlayBtn() {
mcKingLoader.mcPlay._x = (gameWidth / 2) - (mcKingLoader.mcPlay._width / 2);
mcKingLoader.mcPlay._y = mcKingLoader.fireLogoHolder._y + 210;
new mx.transitions.Tween(mcKingLoader.mcPlay, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.5, true);
mcKingLoader.mcPlay.onPress = btnOnPress;
mcKingLoader.mcPlay.onRollOver = btnOnOver;
mcKingLoader.mcPlay.onRollOut = (mcKingLoader.mcPlay.onDragOut = btnOnOut);
mcKingLoader.mcPlay.onRelease = mx.utils.Delegate.create(this, launchGame);
Delay.oneShot(this, showGlimmer, 1000);
}
function showGlimmer() {
bell.start();
mcKingLoader.mcGlim._x = mcKingLoader.fireLogoHolder_.x - mcKingLoader.mcGlim._width;
mcKingLoader.mcGlim._y = mcKingLoader.fireLogoHolder._y + 112;
var _local2 = mcKingLoader.fireLogoHolder._x - mcKingLoader.mcGlim._width;
var _local3 = (mcKingLoader.fireLogoHolder._x + mcKingLoader.fireLogoHolder._width) - 80;
var _local1 = new mx.transitions.Tween(mcKingLoader.mcGlim, "_x", mx.transitions.easing.None.easeNone, _local2, _local3, 0.5, true);
_local1.onMotionFinished = glimmerDone;
}
function glimmerDone() {
mcKingLoader.mcGlim._visible = false;
}
function btnOnOver() {
var _local2 = this;
_local2.gotoAndStop("over");
}
function btnOnOut() {
var _local2 = this;
_local2.gotoAndStop("idle");
}
function btnOnPress() {
var _local2 = this;
_local2.gotoAndStop("down");
}
function launchGame() {
gotoAndStop (3);
}
stop();
mcKingLoader.dragonHolder.attachMovie("mcDragon", "newDragon", 1);
mcKingLoader.fireLogoHolder.stop();
mcKingLoader.dragonHolder.stop();
mcKingLoader._x = (mcKingLoader._y = 0);
mcKingLoader.bg._width = gameWidth;
mcKingLoader.bg._height = gameHeight;
mcKingLoader.bg.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
};
mcKingLoader.fireLogoHolder._x = (gameWidth - mcKingLoader.fireLogoHolder._width) - 90;
mcKingLoader.fireLogoHolder._y = ((gameHeight / 2) - (mcKingLoader.fireLogoHolder._height / 2)) - 60;
mcKingLoader.dragonHolder._x = gameWidth - mcKingLoader.dragonHolder._width;
mcKingLoader.dragonHolder._y = (gameHeight / 2) - (mcKingLoader.dragonHolder._height / 2);
mcKingLoader.mcPlay._alpha = 0;
mcKingLoader.mcPlay.useHandCursor = true;
var bell = new Sound();
bell.attachSound("sfxBell");
mcKingLoader.initAnimDriver(30, false);
trace("StartAnim");
mcKingLoader.dragonHolder.play();
Frame 3
_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--;
}
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 13
function itemHandler1(obj, item) {
getURL ("http://www.king.com");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Play More Games!", itemHandler1);
myMenu.customItems.push(item1);
_root.menu = myMenu;
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 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 23
_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 33
_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 43
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 53
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, 1, 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, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1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 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 7 MovieClip [mcDragon] Frame 1
Symbol 7 MovieClip [mcDragon] Frame 80
_root.fireFire();
Symbol 7 MovieClip [mcDragon] Frame 119
stop();
Symbol 50 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 51 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 169 MovieClip Frame 1
stop();
Symbol 358 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 459 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 552 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 552 MovieClip Frame 2
img.gotoAndPlay(1 + random(30));
Symbol 552 MovieClip Frame 3
img.gotoAndPlay(1 + random(30));
Symbol 552 MovieClip Frame 4
img.gotoAndPlay(1 + random(30));
Symbol 553 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 553 MovieClip [prize] Frame 2
img.gotoAndPlay(1 + random(12));
Symbol 576 MovieClip [boom] Frame 12
this.removeMovieClip();
Symbol 596 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 1
stop();
timer = 30;
key._visible = false;
onEnterFrame = function () {
if (key._visible == true) {
timer--;
if (timer == 0) {
dieChest(_parent);
}
}
};
Symbol 634 MovieClip [chest] Frame 1
hp = 100;
w1 = -12;
w2 = 58;
h1 = -35;
h2 = 40;
Symbol 706 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 706 MovieClip [enemy4] Frame 20
if ((_root.minigame == 0) or (_root.minigame == 6)) {
_root.rain.gotoAndPlay(2);
}
Symbol 706 MovieClip [enemy4] Frame 36
stop();
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha < 2) {
this.removeMovieClip();
}
};
Symbol 731 MovieClip [kap] Frame 23
stop();
Symbol 754 MovieClip [dirt] Frame 1
gotoAndPlay(1 + random(3));
Symbol 754 MovieClip [dirt] Frame 28
this.removeMovieClip();
Symbol 775 MovieClip [explo] Frame 19
this.removeMovieClip();
Symbol 997 MovieClip Frame 39
gotoAndPlay (15);
Symbol 1008 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 1008 MovieClip [enemy2] Frame 13
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha < 2) {
this.removeMovieClip();
}
};
Symbol 1008 MovieClip [enemy2] Frame 21
stop();
Symbol 1011 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 1013 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 1015 MovieClip Frame 35
_parent.removeMovieClip();
Symbol 1021 MovieClip Frame 26
_parent.removeMovieClip();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1046 MovieClip Frame 14
gotoAndPlay (1);
Symbol 1047 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 1050 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 1053 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 1054 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 1061 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 1068 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 1075 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 1082 MovieClip Frame 1
gotoAndStop(1 + random(3));
Symbol 1083 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 1086 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 1098 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 1101 MovieClip [tree_s] Frame 1
stop();
Symbol 1105 MovieClip [crack] Frame 1
if (random(2) == 0) {
_xscale = -100;
}
if (random(2) == 0) {
_yscale = -100;
}
Symbol 1105 MovieClip [crack] Frame 21
this.removeMovieClip();
Symbol 1696 MovieClip [__Packages.md5] Frame 0
class md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 1697 MovieClip [__Packages.Particle] Frame 0
class Particle
{
var _stageWidth, _stageHeight, clip, _xVel, _yVel;
function Particle (libParticle, xpos, ypos, stageWidth, stageHeight) {
_stageWidth = stageWidth;
_stageHeight = stageHeight;
clip = libParticle;
clip._x = xpos;
clip._y = ypos;
}
function setVel(xvel, yvel) {
_xVel = xvel;
_yVel = yvel;
}
function setSize(size) {
clip._width = size;
clip._height = size;
}
function setAlphaDecr(val) {
_alphaDecr = val;
}
function update() {
clip._x = clip._x + _xVel;
clip._y = clip._y + _yVel;
clip._alpha = clip._alpha - _alphaDecr;
}
function destroy() {
removeMovieClip(clip);
}
var _alphaDecr = 0;
}
Symbol 1698 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1699 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1700 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1701 MovieClip [__Packages.Delay] Frame 0
class Delay
{
var m_fn, m_param, m_context, m_delay, m_started, m_timerId;
function Delay (context, fn, delay) {
m_fn = fn;
m_param = new Array();
var _local3 = 3;
while (_local3 < arguments.length) {
m_param.push(arguments[_local3]);
_local3++;
}
m_context = context;
m_delay = delay;
m_started = getTimer();
m_timerId = setInterval(mx.utils.Delegate.create(this, onEvent), delay);
}
function onEvent() {
if (getTimer() >= (m_delay + m_started)) {
clearInterval(m_timerId);
m_fn.apply(m_context, m_param);
m_fn = undefined;
m_param = undefined;
}
}
static function oneShot(context, fn, delay) {
var _local3 = new Delay(context, fn, delay);
_local3.m_param = new Array();
var _local2 = 3;
while (_local2 < arguments.length) {
_local3.m_param.push(arguments[_local2]);
_local2++;
}
}
}
Symbol 1702 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1703 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1704 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 1705 MovieClip [__Packages.AnimDriver] Frame 0
class AnimDriver extends MovieClip
{
var fps, pauseOffset, gotoAndStop, loop, startTime, onEnterFrame, _totalframes;
function AnimDriver () {
super();
}
function initAnimDriver(p_fps) {
fps = p_fps;
pauseOffset = 0;
}
function playAnim(p_frame, p_loop) {
gotoAndStop(p_frame);
loop = p_loop;
startTime = getTimer();
onEnterFrame = mx.utils.Delegate.create(this, updateAnim);
}
function disableAnim() {
onEnterFrame = undefined;
}
function jumpTo(p_frame) {
stopAnim();
playAnim(p_frame);
}
function pauseAnim() {
pauseOffset = getTimer();
onEnterFrame = undefined;
}
function stopAnim() {
startTime = 1;
onEnterFrame = undefined;
}
function updateAnim() {
var _local3 = getTimer();
var _local4 = (1 / fps) * 1000;
var _local2 = Math.round(((_local3 - startTime) / _local4) + 1);
if (_local2 >= _totalframes) {
startTime = _local3;
_local2 = _totalframes;
if (!loop) {
stopAnim();
}
}
gotoAndStop(_local2);
}
}
Symbol 1118 MovieClip Frame 73
stop();
_root.showPlayBtn();
Symbol 1130 MovieClip Frame 1
stop();
Symbol 1131 MovieClip [KingLoader] Frame 1
#initclip 11
Object.registerClass("KingLoader", AnimDriver);
#endinitclip
Symbol 1189 MovieClip Frame 1
stop();
Symbol 1189 MovieClip Frame 2
gotoAndStop (1);
Symbol 1189 MovieClip Frame 7
gotoAndStop (1);
Symbol 1189 MovieClip Frame 13
gotoAndStop (1);
Symbol 1189 MovieClip Frame 19
gotoAndStop (1);
Symbol 1189 MovieClip Frame 25
gotoAndStop (1);
Symbol 1189 MovieClip Frame 31
gotoAndStop (1);
Symbol 1189 MovieClip Frame 37
gotoAndStop (1);
Symbol 1189 MovieClip Frame 43
gotoAndStop (1);
Symbol 1189 MovieClip Frame 49
gotoAndStop (1);
Symbol 1189 MovieClip Frame 55
gotoAndStop (1);
Symbol 1189 MovieClip Frame 61
gotoAndStop (1);
Symbol 1189 MovieClip Frame 67
gotoAndStop (1);
Symbol 1189 MovieClip Frame 73
gotoAndStop (1);
Symbol 1189 MovieClip Frame 79
gotoAndStop (1);
Symbol 1189 MovieClip Frame 85
gotoAndStop (1);
Symbol 1189 MovieClip Frame 91
gotoAndStop (1);
Symbol 1189 MovieClip Frame 97
gotoAndStop (1);
Symbol 1189 MovieClip Frame 103
gotoAndStop (1);
Symbol 1189 MovieClip Frame 109
gotoAndStop (1);
Symbol 1189 MovieClip Frame 115
gotoAndStop (1);
Symbol 1189 MovieClip Frame 121
gotoAndStop (1);
Symbol 1189 MovieClip Frame 127
gotoAndStop (1);
Symbol 1189 MovieClip Frame 133
gotoAndStop (1);
Symbol 1189 MovieClip Frame 139
gotoAndStop (1);
Symbol 1189 MovieClip Frame 145
gotoAndStop (1);
Symbol 1189 MovieClip Frame 151
gotoAndStop (1);
Symbol 1189 MovieClip Frame 157
gotoAndStop (1);
Symbol 1189 MovieClip Frame 163
gotoAndStop (1);
Symbol 1189 MovieClip Frame 169
gotoAndStop (1);
Symbol 1189 MovieClip Frame 175
gotoAndStop (1);
Symbol 1189 MovieClip Frame 181
gotoAndStop (1);
Symbol 1189 MovieClip Frame 187
gotoAndStop (1);
Symbol 1189 MovieClip Frame 193
gotoAndStop (1);
Symbol 1189 MovieClip Frame 199
gotoAndStop (1);
Symbol 1189 MovieClip Frame 205
gotoAndStop (1);
Symbol 1189 MovieClip Frame 211
gotoAndStop (1);
Symbol 1189 MovieClip Frame 217
gotoAndStop (1);
Symbol 1189 MovieClip Frame 223
gotoAndStop (1);
Symbol 1189 MovieClip Frame 229
gotoAndStop (1);
Symbol 1189 MovieClip Frame 235
gotoAndStop (1);
Symbol 1189 MovieClip Frame 241
gotoAndStop (1);
Symbol 1189 MovieClip Frame 247
gotoAndStop (1);
Symbol 1189 MovieClip Frame 253
gotoAndStop (1);
Symbol 1189 MovieClip Frame 259
gotoAndStop (1);
Symbol 1189 MovieClip Frame 265
gotoAndStop (1);
Symbol 1189 MovieClip Frame 271
gotoAndStop (1);
Symbol 1189 MovieClip Frame 277
gotoAndStop (1);
Symbol 1189 MovieClip Frame 283
gotoAndStop (1);
Symbol 1189 MovieClip Frame 289
gotoAndStop (1);
Symbol 1189 MovieClip Frame 295
gotoAndStop (1);
Symbol 1189 MovieClip Frame 301
gotoAndStop (1);
Symbol 1189 MovieClip Frame 307
gotoAndStop (1);
Symbol 1189 MovieClip Frame 313
gotoAndStop (1);
Symbol 1189 MovieClip Frame 319
gotoAndStop (1);
Symbol 1189 MovieClip Frame 325
gotoAndStop (1);
Symbol 1189 MovieClip Frame 331
gotoAndStop (1);
Symbol 1189 MovieClip Frame 337
gotoAndStop (1);
Symbol 1202 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 1
_visible = false;
stop();
Symbol 1225 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 1225 MovieClip Frame 103
gotoAndStop (1);
Symbol 1248 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 1254 Button
on (press) {
if (_root.paused == false) {
showLogo(5);
openMenu("game");
_root.musicVol.setVolume(30);
}
}
Symbol 1287 MovieClip Frame 1
stop();
Symbol 1287 MovieClip Frame 2
but.title = "?????????";
Symbol 1287 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 1290 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
_root.openSignLink();
}
Symbol 1345 MovieClip Frame 1
stop();
Symbol 1345 MovieClip Frame 45
gotoAndStop (1);
Symbol 1345 MovieClip Frame 51
gotoAndStop (1);
Symbol 1345 MovieClip Frame 57
gotoAndStop (1);
Symbol 1345 MovieClip Frame 62
gotoAndStop (1);
Symbol 1349 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 1353 MovieClip Frame 1
stop();
Symbol 1360 MovieClip Frame 1
stop();
Symbol 1363 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 1363 MovieClip Frame 2
ammo = 1;
rad._xscale = (rad._yscale = _root.bonusBomb * 2);
Symbol 1363 MovieClip Frame 3
ammo = 1;
Symbol 1363 MovieClip Frame 4
if (_root.minigame == 1) {
ammo = 999999 /* 0x0F423F */;
} else {
ammo = _root.bonusGun;
}
Symbol 1363 MovieClip Frame 5
if (_root.minigame == 4) {
ammo = 999999 /* 0x0F423F */;
} else {
ammo = 10;
}
Symbol 1372 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 1377 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 1387 MovieClip Frame 3
lv.gotoAndStop(1);
Symbol 1392 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 1400 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 1407 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openMenu("option");
}
}
}
Symbol 1412 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 1416 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
showLogo(0);
openMenu("hint");
}
}
}
Symbol 1420 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 1426 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.maxlvl > 1) {
openMenu("cont");
} else {
openMenu("diff");
}
}
}
Symbol 1431 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
if (_xscale == 100) {
_root.openOtherGamesLink();
}
}
Symbol 1432 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("option");
}
}
Symbol 1436 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 1440 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 1441 MovieClip Frame 1
stop();
Symbol 1444 MovieClip Frame 1
stop();
Symbol 1448 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
if (_xscale == 100) {
_root.openAddToWebsiteLink();
}
}
Symbol 1453 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
saveGame();
openMenu("back");
}
}
Symbol 1457 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.effect = false;
}
Symbol 1461 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (1);
_root.effect = true;
}
Symbol 1462 MovieClip Frame 1
if (_root.effect == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1466 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.hint = false;
}
Symbol 1470 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (1);
_root.hint = true;
}
Symbol 1471 MovieClip Frame 1
if (_root.hint == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1475 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.sound = false;
}
Symbol 1479 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (1);
_root.sound = true;
}
Symbol 1480 MovieClip Frame 1
if (_root.sound == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1484 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
gotoAndStop (2);
_root.music = false;
playMusic("stop");
}
Symbol 1488 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 1489 MovieClip Frame 1
if (_root.music == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 1496 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 1500 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 1504 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 1508 MovieClip Frame 1
stop();
Symbol 1510 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("stage");
}
}
}
Symbol 1514 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
resetGame();
saveGame();
openMenu("diff");
}
}
Symbol 1515 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("back");
}
}
Symbol 1519 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("main");
}
}
}
Symbol 1530 MovieClip Frame 1
gotoAndStop(_parent._parent.info);
Symbol 1534 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.lvl = this.id;
openScreen("game");
}
}
}
Symbol 1542 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openMenu("upgr");
}
}
}
Symbol 1548 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 1558 MovieClip Frame 1
stop();
Symbol 1558 MovieClip Frame 13
stop();
Symbol 1564 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 1565 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 1572 MovieClip Frame 1
stop();
Symbol 1576 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 1580 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 1584 Button
on (rollOver) {
playSound("over");
}
on (release) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.submitScore(_root.curr_money);
_root.minigame = 0;
_root.inter_upgr.gotoAndStop(1);
loadGame();
if (_root.lvl == 0) {
openScreen("main");
} else {
openScreen("upgr");
}
}
}
}
Symbol 1592 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 1606 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 1612 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 1613 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 1620 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("game");
}
}
}
Symbol 1621 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
_root.lvl = 0;
openScreen("main");
}
}
}
Symbol 1623 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.trans_delay == false) {
openScreen("game");
}
}
}
Symbol 1624 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 1628 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 1632 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("main");
}
}
Symbol 1639 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
if (_root.minigame == 6) {
openMenu("unlock");
} else {
openScreen("main");
}
}
}
Symbol 1640 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 1640 MovieClip Frame 2
initUpgr(this);
reUpgr(this);
Symbol 1640 MovieClip Frame 11
if (_root.bonus > 0) {
but._visible = false;
} else {
but._visible = true;
}
Symbol 1640 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 1640 MovieClip Frame 41
i = 1;
while (i < 4) {
this["star" + i].gotoAndPlay(_root.sav[0][i - 1] + 1);
i++;
}
Symbol 1640 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 1640 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 1640 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 1640 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 1640 MovieClip Frame 101
reHint(this);
Symbol 1640 MovieClip Frame 121
title = ("Play " + _root["str_but_mini" + _root.minigame]) + "?";
playSound("unlock");
Symbol 1640 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 1640 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 1636 MovieClip in Symbol 1640 MovieClip Frame 151
on (release) {
getURL ("http://www.silengames.com", "_blank");
}
Symbol 1640 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 1640 MovieClip Frame 171
stop();
Symbol 1644 Button
on (rollOver) {
playSound("over");
}
on (press) {
playSound("click");
if (_xscale == 100) {
openMenu("cred");
}
}
Symbol 1657 MovieClip Frame 1
stop();
Symbol 1658 MovieClip Frame 1
stop();
Symbol 1658 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 1689 MovieClip Frame 1
stop();
Symbol 1689 MovieClip Frame 8
_root.musicVol.setVolume(90);
Symbol 1689 MovieClip Frame 9
_root.musicVol.setVolume(80);
Symbol 1689 MovieClip Frame 10
_root.musicVol.setVolume(70);
Symbol 1689 MovieClip Frame 11
_root.musicVol.setVolume(60);
Symbol 1689 MovieClip Frame 12
_root.musicVol.setVolume(50);
Symbol 1689 MovieClip Frame 13
_root.musicVol.setVolume(40);
Symbol 1689 MovieClip Frame 14
_root.musicVol.setVolume(30);
Symbol 1689 MovieClip Frame 15
_root.musicVol.setVolume(20);
Symbol 1689 MovieClip Frame 16
_root.musicVol.setVolume(10);
Symbol 1689 MovieClip Frame 17
_root.musicVol.setVolume(0);
Symbol 1689 MovieClip Frame 18
clearLevel();
switch (tar) {
case "main" :
_root.back.gotoAndStop(7);
openMenu("exit", true);
playMusic("muz_1");
_root.silenlogo._visible = true;
_root.lvl = 0;
break;
case "vict" :
_root.back.gotoAndStop(8);
openMenu("exit", true);
playMusic("muz_1");
break;
case "game" :
loadLevel();
_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.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.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.back.gotoAndStop(1);
openMenu(tar, true);
}
Symbol 1689 MovieClip Frame 21
_root.musicVol.setVolume(0);
Symbol 1689 MovieClip Frame 22
_root.musicVol.setVolume(10);
Symbol 1689 MovieClip Frame 23
_root.musicVol.setVolume(20);
Symbol 1689 MovieClip Frame 24
_root.musicVol.setVolume(30);
Symbol 1689 MovieClip Frame 25
_root.musicVol.setVolume(40);
Symbol 1689 MovieClip Frame 26
_root.musicVol.setVolume(50);
Symbol 1689 MovieClip Frame 27
_root.musicVol.setVolume(60);
Symbol 1689 MovieClip Frame 28
_root.musicVol.setVolume(70);
Symbol 1689 MovieClip Frame 29
_root.musicVol.setVolume(80);
Symbol 1689 MovieClip Frame 30
_root.musicVol.setVolume(90);
Symbol 1689 MovieClip Frame 31
_root.musicVol.setVolume(100);
Symbol 1689 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 1695 MovieClip Frame 1
stop();