Frame 1
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
var _local2 = _local1.getBytesLoaded();
var _local3 = _local1.getBytesTotal();
c = Math.round((100 * _local2) / _local3);
if (c < 100) {
loading_mc.gotoAndStop(c);
preShow = c + "%";
} else {
_local1.onEnterFrame = null;
adLoader3.play();
_local1.gotoAndPlay("start");
}
};
Frame 6
function bgSoundFunc(_soundName) {
bgSound.stop();
var _local1 = _soundName;
bgSound = new Sound();
bgSound.attachSound(_local1);
if (_root.allowBgSoundFlag == true) {
bgSound.start(0, 10000);
}
}
function effectSoundFunc(_soundName) {
effectSound.stop();
_root.createEmptyMovieClip("effecMc", 70000);
var _local1 = _soundName;
effectSound = new Sound(effecMc);
effectSound.attachSound(_local1);
effectSound.start(0, 1);
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
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 __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);
}
stop();
__com_mochibot__("8e61aba6", this, 10301, true);
__com_mochibot__("f095939d", this, 10301, true);
adLoader2.play();
start_btn.onRelease = function () {
play();
};
showRuler_btn.onRelease = function () {
gotoAndStop ("help");
};
moreBtn.onRelease = function () {
getURL ("http://www.koalafun.com/", "_blank");
};
addBtn.onRelease = function () {
getURL ("http://www.koalafun.com/free-website-games.htm", "_blank");
};
_root.allowBgSoundFlag = true;
bgSoundFunc("start");
Frame 115
function AddLifeFunc() {
var _local1 = Math.floor(game.totalScores / lifeUpNum);
if (_local1 != addLife) {
addLife++;
game.totalLives++;
_root.heroLife++;
below_mask.lifeShow = game.totalLives;
}
}
function buildMap(map) {
below_mask.gateShow = game.currentGate;
_root.attachMovie("empty", "tiles", 1);
game.clip = _root.tiles;
var bgName = (((("gate" + game.currentGate) + "_") + "bg") + game.currentMap);
game.clip.attachMovie(bgName, bgName, 4000);
game.clip[bgName]._x = 40;
var bgMaskName = ((((("gate" + game.currentGate) + "_") + "bg") + game.currentMap) + "_mask");
game.clip.attachMovie(bgMaskName, bgMaskName, 19000);
game.clip[bgMaskName]._x = 40;
game.clip._x = -40;
if (game.currentMap != game.totalMap) {
game.clip._y = -80;
game.clip[bgName]._y = 80;
game.clip[bgMaskName]._y = 80;
} else {
game.clip._y = -40;
game.clip[bgName]._y = 40;
game.clip[bgMaskName]._y = 40;
}
var mapWidth = map[0].length;
var mapHeight = map.length;
var k = 5000;
var _local3 = 0;
while (_local3 < mapHeight) {
var _local2 = 0;
while (_local2 < mapWidth) {
var _local1 = (("t_" + _local3) + "_") + _local2;
game[_local1] = new game["Tile" + map[_local3][_local2]]();
game.clip.attachMovie("tile", _local1, k);
game.clip[_local1]._x = _local2 * game.tileW;
game.clip[_local1]._y = _local3 * game.tileH;
game.clip[_local1].gotoAndStop(game[_local1].frame);
if (game[_local1].item != "") {
game.clip[_local1].attachMovie(game[_local1].item, "item", k);
}
k++;
_local2++;
}
_local3++;
}
game.items = myItems[game.currentMap];
_local3 = 0;
while (_local3 < game.items.length) {
var _local1 = (("item" + game.items[_local3][2]) + "_") + game.items[_local3][1];
game[_local1] = new game["Item" + game.items[_local3][0]]();
game[_local1].position = _local3;
game.clip.attachMovie("items", _local1, 10001 + _local3);
game[_local1].clip = game.clip[_local1];
game[_local1].clip._x = (game.items[_local3][1] * game.tileW) + (game.tileW / 2);
game[_local1].clip._y = (game.items[_local3][2] * game.tileH) + (game.tileH / 2);
game[_local1].clip.gotoAndStop(game.items[_local3][0]);
_local3++;
}
var enemies = myEnemies[game.currentMap];
game.currentEnemies = [];
_local3 = 0;
while (_local3 < enemies.length) {
var _local1 = "enemy" + _local3;
game[_local1] = new game["Enemyp" + enemies[_local3][0]]();
game[_local1].type = enemies[_local3][0];
game[_local1].id = _local3;
game.currentEnemies.push(game[_local1]);
game.clip.attachMovie("enemy" + enemies[_local3][0], _local1, 11001 + _local3);
game[_local1].clip = game.clip[_local1];
game[_local1].xtile = enemies[_local3][1];
game[_local1].ytile = enemies[_local3][2];
game[_local1].width = game.clip[_local1]._width / 2;
game[_local1].height = game.clip[_local1]._height / 2;
game[_local1].x = (game[_local1].xtile * game.tileW) + (game.tileW / 2);
game[_local1].y = ((game[_local1].ytile + 1) * game.tileH) - game[_local1].height;
game[_local1].clip._x = game[_local1].x;
game[_local1].clip._y = game[_local1].y;
_local3++;
}
game.movingtiles = myMovingTiles[game.currentMap];
_local3 = 0;
while (_local3 < game.movingtiles.length) {
var _local1 = "movingtile" + _local3;
game[_local1] = new game["MovingTilep" + game.movingtiles[_local3][0]]();
game.clip.attachMovie("movingtiles", _local1, 13001 + _local3);
game[_local1].clip = game.clip[_local1];
game[_local1].clip.gotoAndStop(game.movingtiles[_local3][0]);
game[_local1].xtile = game.movingtiles[_local3][1];
game[_local1].ytile = game.movingtiles[_local3][2];
game[_local1].x = (game[_local1].xtile * game.tileW) + (game.tileW / 2);
game[_local1].y = (game[_local1].ytile * game.tileH) + (game.tileH / 2);
game[_local1].clip._x = game[_local1].x;
game[_local1].clip._y = game[_local1].y;
game[_local1].minx = game[_local1].minx + game[_local1].xtile;
game[_local1].maxx = game[_local1].maxx + game[_local1].xtile;
game[_local1].miny = game[_local1].miny + game[_local1].ytile;
game[_local1].maxy = game[_local1].maxy + game[_local1].ytile;
_local3++;
}
game.clip.attachMovie("char", "char", 10000);
char.clip = game.clip.char;
if (char.undead == true) {
char.clip._alpha = 0;
}
char.width = char.clip._width / 2;
char.height = char.clip._height / 2;
char.x = (char.xtile * game.tileW) + (game.tileW / 2);
char.y = ((char.ytile + 1) * game.tileH) - char.height;
char.clip._x = char.x;
char.clip._y = char.y;
char.clip.gotoAndStop(char.frame);
if (game.currentMap == game.totalMap) {
game.clip.attachMovie("gateDoor", "gateDoor", 9999);
game.clip.gateDoor._x = game.tileW * game.gateDoorX;
game.clip.gateDoor._y = game.tileH * game.gateDoorY;
}
}
function addChar() {
game.clip.attachMovie("char", "char", 10000);
char.clip = game.clip.char;
char.clip._alpha = 0;
char.undead = true;
char.width = char.clip._width / 2;
char.height = char.clip._height / 2;
char.x = (char.xtile * game.tileW) + (game.tileW / 2);
char.y = ((char.ytile + 1) * game.tileH) - char.height;
char.clip._x = char.x;
char.clip._y = char.y;
char.clip.gotoAndStop(char.frame);
}
function changeMap(ob) {
var _local2 = ob;
var _local3 = [];
var _local1 = 0;
while (_local1 < game.items.length) {
if (game.items[_local1]) {
var name = ((("item" + game.items[_local1][2]) + "_") + game.items[_local1][1]);
delete game[name];
_local3.push(game.items[_local1]);
}
_local1++;
}
myItems[game.currentMap] = _local3;
var name = ((("t_" + _local2.ytile) + "_") + _local2.xtile);
game.currentMap = game[name].newmap;
_local2.xtile = _local2.xtile;
game.oldMap = game[name].oldmap;
if (game.currentMap < game.oldMap) {
_local2.ytile = 1;
} else {
_local2.ytile = 9;
}
_local2.frame = _local2.clip._currentframe;
var charAlpha = char.clip._alpha;
buildMap(_root["myMap" + game.currentMap]);
char.clip._alpha = charAlpha;
}
function getMyCorners(x, y, ob) {
var _local1 = ob;
_local1.downY = Math.floor(((y + _local1.height) - 1) / game.tileH);
_local1.upY = Math.floor((y - _local1.height) / game.tileH);
_local1.leftX = Math.floor((x - _local1.width) / game.tileW);
_local1.rightX = Math.floor(((x + _local1.width) - 1) / game.tileW);
_local1.upleft = game[(("t_" + _local1.upY) + "_") + _local1.leftX].walkable;
_local1.downleft = game[(("t_" + _local1.downY) + "_") + _local1.leftX].walkable;
_local1.upright = game[(("t_" + _local1.upY) + "_") + _local1.rightX].walkable;
_local1.downright = game[(("t_" + _local1.downY) + "_") + _local1.rightX].walkable;
}
function moveChar(ob, dirx, diry, fly) {
var _local1 = ob;
var _local2 = diry;
var _local3 = dirx;
if (_local3 != 0) {
_local1.dirx = _local3;
}
if (Math.abs(fly) == 1) {
speed = _local1.flyspeed * fly;
} else {
speed = _local1.speed;
}
_local1.lasty = _local1.y;
getMyCorners(_local1.x, _local1.y + (speed * _local2), _local1);
if (_local2 == -1) {
if (_local1.upleft && (_local1.upright)) {
_local1.y = _local1.y + (speed * _local2);
} else {
_local1.y = (_local1.ytile * game.tileH) + _local1.height;
_local1.flyspeed = 0;
}
}
if (_local2 == 1) {
if ((_local1.downleft && (_local1.downright)) && (!checkMovingTiles(speed * _local2))) {
_local1.y = _local1.y + (speed * _local2);
} else if (((_local1.downleft == undefined) && (_local1.downright == undefined)) && (!checkMovingTiles(speed * _local2))) {
_local1.y = _local1.y + (speed * _local2);
} else {
if (_local1.onMovingTile) {
_local1.y = (_local1.onMovingTile.y - _local1.onMovingTile.height) - _local1.height;
} else if ((_local1.ytile + 2) == _local1.downY) {
_local1.y = ((_local1.ytile + 2) * game.tileH) - _local1.height;
} else {
_local1.y = ((_local1.ytile + 1) * game.tileH) - _local1.height;
}
_local1.fly = false;
}
}
getMyCorners(_local1.x + (speed * _local3), _local1.y, _local1);
if (_local3 == -1) {
if (_local1.downleft && (_local1.upleft)) {
_local1.x = _local1.x + (speed * _local3);
fall(_local1);
} else {
_local1.x = (_local1.xtile * game.tileW) + _local1.width;
}
}
if (_local3 == 1) {
if (_local1.upright && (_local1.downright)) {
_local1.x = _local1.x + (speed * _local3);
fall(_local1);
} else {
_local1.x = ((_local1.xtile + 1) * game.tileW) - _local1.width;
}
}
updateChar(_local1, _local3, _local2);
return(true);
}
function moveChar2(ob, dirx, diry, jump) {
var _local1 = ob;
var _local2 = dirx;
var _local3 = diry;
if (_local2 != 0) {
_local1.dirx = _local2;
}
if (Math.abs(jump) == 1) {
speed = _local1.jumpspeed * jump;
} else {
speed = _local1.speed;
}
getMyCorners(_local1.x, _local1.y + (speed * _local3), _local1);
if (_local3 == -1) {
if (_local1.upleft && (_local1.upright)) {
_local1.y = _local1.y + (speed * _local3);
} else {
_local1.y = (_local1.ytile * game.tileH) + _local1.height;
_local1.jumpspeed = 0;
}
}
if (_local3 == 1) {
if ((_local1.downleft && (_local1.downright)) && (!checkMovingTiles(speed * _local3))) {
_local1.y = _local1.y + (speed * _local3);
} else {
_local1.y = ((_local1.ytile + 1) * game.tileH) - _local1.height;
_local1.jump = false;
}
}
getMyCorners(_local1.x + (speed * _local2), _local1.y, _local1);
if (_local2 == -1) {
if (_local1.downleft && (_local1.upleft)) {
_local1.x = _local1.x + (speed * _local2);
fall2(_local1);
} else {
_local1.x = (_local1.xtile * game.tileW) + _local1.width;
}
}
if (_local2 == 1) {
if (_local1.upright && (_local1.downright)) {
_local1.x = _local1.x + (speed * _local2);
fall2(_local1);
} else {
_local1.x = ((_local1.xtile + 1) * game.tileW) - _local1.width;
}
}
updateChar(_local1, _local2, _local3);
return(true);
}
function moveChar3(ob, dirx, diry, fly) {
var _local1 = ob;
var _local2 = dirx;
if (_local2 != 0) {
_local1.dirx = _local2;
}
speed = _local1.speed;
getMyCorners(_local1.x + (speed * _local2), _local1.y, _local1);
if (_local1.speed > 0) {
if (_local2 == -1) {
if (_local1.downleft && (_local1.upleft)) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.clip._xscale = -_local1.clip._xscale;
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
if (_local2 == 1) {
if (_local1.upright && (_local1.downright)) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.clip._xscale = -_local1.clip._xscale;
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
}
if (_local1.speed < 0) {
if (_local2 == 1) {
if (_local1.downleft && (_local1.upleft)) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.clip._xscale = -_local1.clip._xscale;
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
if (_local2 == -1) {
if (_local1.upright && (_local1.downright)) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.clip._xscale = -_local1.clip._xscale;
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
}
updateChar(_local1, _local2, diry);
return(true);
}
function moveChar4(ob, dirx, diry) {
var _local1 = ob;
var _local2 = dirx;
speed = _local1.speed;
getMyCorners(_local1.x + (speed * _local2), _local1.y, _local1);
if (_local1.speed > 0) {
if (_local2 == -1) {
if (_local1.upleft) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
if (_local2 == 1) {
if (_local1.upright) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
}
if (_local1.speed < 0) {
if (_local2 == 1) {
if (_local1.upleft) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
if (_local2 == -1) {
if (_local1.upright) {
_local1.x = _local1.x + (speed * _local2);
} else {
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
}
updateChar(_local1, _local2, diry);
return(true);
}
function checkMovingTiles(y) {
var heroymax = ((char.y + char.height) + y);
var heroxmax = (char.x + char.width);
var heroxmin = (char.x - char.width);
foundit = false;
var _local2 = 0;
while (_local2 < game.movingtiles.length) {
var _local1 = game["movingtile" + _local2];
var tileymax = (_local1.y + _local1.height);
var _local3 = _local1.y - _local1.height;
var tilexmax = (_local1.x + _local1.width);
var _loc3 = (_local1.x - _local1.width);
if ((char.lasty + char.height) <= _local3) {
if ((heroymax <= tileymax) && (heroymax >= _local3)) {
if ((heroxmax > _loc3) && (heroxmax < tilexmax)) {
char.onMovingTile = _local1;
foundit = true;
break;
}
if ((heroxmin > _loc3) && (heroxmin < tilexmax)) {
char.onMovingTile = _local1;
foundit = true;
break;
}
}
}
_local2++;
}
return(foundit);
}
function moveTiles() {
var _local2 = 0;
while (_local2 < game.movingtiles.length) {
var _local1 = game["movingtile" + _local2];
getMyCorners(_local1.x + (_local1.speed * _local1.dirx), _local1.y + (_local1.speed * _local1.diry), _local1);
if ((_local1.miny > _local1.upY) || (_local1.maxy < _local1.downY)) {
_local1.diry = -_local1.diry;
}
if ((_local1.minx > _local1.leftX) || (_local1.maxx < _local1.rightX)) {
_local1.dirx = -_local1.dirx;
}
_local1.x = _local1.x + (_local1.speed * _local1.dirx);
_local1.y = _local1.y + (_local1.speed * _local1.diry);
_local1.xtile = Math.floor(_local1.x / game.tileW);
_local1.ytile = Math.floor(_local1.y / game.tileH);
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
if (_local1.diry == -1) {
checkMovingTiles(0);
}
_local2++;
}
if (char.onMovingTile) {
getMyCorners(char.x, char.y + (char.onMovingTile.speed * char.onMovingTile.diry), char);
if (char.onMovingTile.diry == -1) {
if (char.upleft && (char.upright)) {
char.y = (char.onMovingTile.y - char.onMovingTile.height) - char.height;
} else {
char.y = (char.ytile * game.tileH) + char.height;
char.jumpspeed = 0;
char.jump = true;
char.onMovingTile = false;
}
}
if (char.onMovingTile.diry == 1) {
if (char.downleft && (char.downright)) {
char.y = (char.onMovingTile.y - char.onMovingTile.height) - char.height;
} else {
char.onMovingTile = false;
char.y = ((char.ytile + 1) * game.tileH) - char.height;
}
}
getMyCorners(char.x + (char.onMovingTile.speed * char.onMovingTile.dirx), char.y, char);
if (char.onMovingTile.dirx == -1) {
if (char.downleft && (char.upleft)) {
char.x = char.x + (char.onMovingTile.speed * char.onMovingTile.dirx);
} else {
char.x = (char.xtile * game.tileW) + char.width;
fall(char);
}
}
if (char.onMovingTile.dirx == 1) {
if (char.upright && (char.downright)) {
char.x = char.x + (char.onMovingTile.speed * char.onMovingTile.dirx);
} else {
fall(char);
char.x = ((char.xtile + 1) * game.tileW) - char.width;
}
}
updateChar(char);
}
}
function updateChar(ob, dirx, diry) {
var _local1 = ob;
var _local3 = _root;
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
_local1.xtile = Math.floor(_local1.clip._x / game.tileW);
_local1.ytile = Math.floor(_local1.clip._y / game.tileH);
if (game[(("t_" + _local1.ytile) + "_") + _local1.xtile].door && (_local1 == _local3.char)) {
changeMap(_local1);
}
var _local2 = game[(("item" + _local1.ytile) + "_") + _local1.xtile];
if (_local2 && (_local1 == _local3.char)) {
if (_local2.typeNum == 1) {
below_mask.bottleShow++;
game.havingBottle = game.havingBottle + 1;
effectSoundFunc("bottle");
} else if (_local2.typeNum == 2) {
game.totalScores = game.totalScores + 200;
AddLifeFunc();
_local3.below_mask.scoreShow = game.totalScores;
effectSoundFunc("coin2");
} else if (_local2.typeNum == 3) {
game.totalScores = game.totalScores + 100;
AddLifeFunc();
_local3.below_mask.scoreShow = game.totalScores;
effectSoundFunc("coin1");
} else if (_local2.typeNum == 4) {
game.totalScores = game.totalScores + 300;
AddLifeFunc();
_local3.below_mask.scoreShow = game.totalScores;
effectSoundFunc("coin3");
} else if (_local2.typeNum == 5) {
game.totalScores = game.totalScores + 400;
AddLifeFunc();
_local3.below_mask.scoreShow = game.totalScores;
effectSoundFunc("coin4");
} else if (_local2.typeNum == 6) {
game.totalScores = game.totalScores + 500;
AddLifeFunc();
_local3.below_mask.scoreShow = game.totalScores;
effectSoundFunc("coin5");
} else if (_local2.typeNum == 7) {
game.totalScores = game.totalScores + 1000;
AddLifeFunc();
_local3.below_mask.scoreShow = game.totalScores;
effectSoundFunc("coin6");
} else if (_local2.typeNum == 8) {
below_mask.btn1._visible = true;
effectSoundFunc("other1");
} else if (_local2.typeNum == 9) {
below_mask.btn2._visible = true;
effectSoundFunc("other2");
} else if (_local2.typeNum == 10) {
below_mask.btn3._visible = true;
effectSoundFunc("other3");
} else if (_local2.typeNum == 11) {
below_mask.btn4._visible = true;
effectSoundFunc("other4");
}
removeMovieClip(_local2.clip);
game.items[_local2.position] = 0;
delete game[(("item" + _local1.ytile) + "_") + _local1.xtile];
}
}
function jump(ob) {
var _local1 = ob;
_local1.jumpspeed = _local1.jumpspeed + _local1.gravity;
if (_local1.jumpspeed > game.tileH) {
_local1.jumpspeed = game.tileH;
}
var _local2 = 0;
if (Key.isDown(39)) {
_local2 = 1;
}
if (Key.isDown(37)) {
_local2 = -1;
}
if (_local1.jumpspeed < 0) {
moveChar2(_local1, _local2, -1, -1);
} else if (_local1.jumpspeed > 0) {
moveChar2(_local1, _local2, 1, 1);
}
}
function fly(ob) {
var _local1 = ob;
_local1.flyspeed = _local1.flyspeed + _local1.gravity;
if (_local1.flyspeed > game.tileH) {
_local1.flyspeed = game.tileH;
}
if (_local1.flyspeed < 0) {
moveChar(_local1, 0, -1, -1);
} else if (_local1.flyspeed > 0) {
moveChar(_local1, 0, 1, 1);
}
}
function fall(ob) {
var _local1 = ob;
if (!_local1.fly) {
getMyCorners(_local1.x, _local1.y + 1, _local1);
if ((_local1.downleft && (_local1.downright)) && (!checkMovingTiles(1))) {
_local1.flyspeed = 0;
_local1.fly = true;
_local1.onMovingTile = false;
_local1.climb = false;
}
}
}
function fall2(ob) {
var _local1 = ob;
if (!_local1.jump) {
getMyCorners(_local1.x, _local1.y + 1, _local1);
if ((_local1.downleft && (_local1.downright)) && (!checkMovingTiles(1))) {
_local1.jumpspeed = 0;
_local1.onMovingTile = false;
_local1.climb = false;
}
}
}
function checkUpLadder(ob) {
var _local1 = ob;
var _local2 = Math.floor(((_local1.y + _local1.height) - 1) / game.tileH);
var _loc2 = Math.floor((_local1.y - _local1.height) / game.tileH);
var upLadder = game[(("t_" + _loc2) + "_") + _local1.xtile].ladder;
var _local3 = game[(("t_" + _local2) + "_") + _local1.xtile].ladder;
if (upLadder || (_local3)) {
return(true);
}
_local1.climb = false;
fall2(_local1);
return(undefined);
}
function checkDownLadder(ob) {
var _local1 = ob;
var _local3 = Math.floor(((_local1.speed + _local1.y) + _local1.height) / game.tileH);
var _local2 = game[(("t_" + _local3) + "_") + _local1.xtile].ladder;
if (_local2) {
return(true);
}
return(undefined);
}
function climb(ob, diry) {
var _local1 = ob;
_local1.climb = true;
_local1.fly = false;
_local1.jump = false;
_local1.y = _local1.y + ((_local1.speed * diry) + 1);
_local1.x = (_local1.xtile * game.tileW) + (game.tileW / 2);
updateChar(_local1, 0, diry);
return(true);
}
function enemyBrain() {
var _local2 = 0;
while (_local2 < game.currentEnemies.length) {
if ((game.currentEnemies[_local2].type >= 1) && (game.currentEnemies[_local2].type <= 5)) {
var name = ("enemy" + _local2);
var _local1 = game[name];
getMyCorners(_local1.x + (_local1.speed * _local1.xMove), (_local1.y + (_local1.speed * _local1.yMove)) + 1, _local1);
if ((!_local1.downleft) && (!_local1.downright)) {
moveChar3(_local1, _local1.xMove, _local1.yMove);
} else {
_local1.clip._xscale = -_local1.clip._xscale;
_local1.xMove = -_local1.xMove;
_local1.yMove = -_local1.yMove;
}
}
if ((game.currentEnemies[_local2].type == 6) || (game.currentEnemies[_local2].type == 7)) {
var name = ("enemy" + _local2);
var _local1 = game[name];
moveChar4(_local1, _local1.xMove, _local1.yMove);
}
var xdist = (_local1.x - char.x);
var _local3 = _local1.y - char.y;
if ((char.unDead == false) && (Math.sqrt((xdist * xdist) + (_local3 * _local3)) < (_local1.width + char.width))) {
game.totalLives--;
_root.heroLife--;
below_mask.lifeShow = game.totalLives;
if (game.totalLives <= 0) {
_root.gameOver();
} else {
_root.addChar();
}
}
_local2++;
}
}
function shoot(ob) {
var _local2 = ob;
_local2.lastshot = getTimer();
game.bulletcounter++;
if (game.bulletcounter == 5) {
game.bulletcounter = 0;
_root.char.havinggun = false;
}
var _local1 = "bullet" + game.bulletcounter;
game[_local1] = new game.Bullet();
game[_local1].id = game.bulletcounter;
game.bullets.push(game[_local1]);
if (_local2.dirx || (_local2.diry)) {
game[_local1].dirx = _local2.dirx;
game[_local1].diry = _local2.diry;
}
game[_local1].xtile = _local2.xtile;
game[_local1].ytile = _local2.ytile;
game.clip.attachMovie("bullet", _local1, 12000 + game.bulletcounter);
game[_local1].clip = game.clip[_local1];
game[_local1].x = _local2.x + (game[_local1].dirx * _local2.width);
game[_local1].y = _local2.y + (game[_local1].diry * _local2.height);
game.clip[_local1]._x = game[_local1].x;
game.clip[_local1]._y = game[_local1].y;
}
function moveBullets() {
var i = 0;
while (i < game.bullets.length) {
var _local1 = game.bullets[i];
getMyCorners(_local1.x + (_local1.speed * _local1.dirx), _local1.y + (_local1.speed * _local1.diry), _local1);
if (((_local1.downleft && (_local1.upleft)) && (_local1.downright)) && (_local1.upright)) {
moveChar(_local1, _local1.dirx, _local1.diry);
} else {
_local1.clip.removeMovieClip();
delete game["bullet" + game.bullets[i].id];
game.bullets.splice(i, 1);
}
var _local3 = 0;
while (_local3 < game.currentEnemies.length) {
var name = ("enemy" + game.currentEnemies[_local3].id);
var _local2 = game[name];
var xdist = (_local1.x - _local2.x);
var ydist = (_local1.y - _local2.y);
if (Math.sqrt((xdist * xdist) + (ydist * ydist)) < (_local1.width + _local2.width)) {
_local2.clip.removeMovieClip();
delete game["enemy" + game.currentEnemies[_local3].id];
_local1.clip.removeMovieClip();
delete game["bullet" + game.bullets[i].id];
game.bullets.splice(i, 1);
myEnemies[game.currentMap][_local2.id] = 0;
game.totalScores = game.totalScores + 100;
_root.below_mask.scoreShow = game.totalScores;
}
_local3++;
}
i++;
}
}
function detectKeys() {
var _local2 = _root;
below_mask.climbShow = char.climb;
below_mask.flyShow = char.fly;
below_mask.jumpShow = char.jump;
moveTiles();
var _local1 = _local2.char;
var _local3 = false;
if (Key.isDown(38)) {
if (checkUpLadder(_local2.char)) {
_local3 = _local2.climb(_local1, -1);
} else if (!_local1.jump) {
_local1.onMovingTile = false;
_local1.jump = true;
_local1.jumpspeed = _local1.jumpstart;
}
}
if (Key.isDown(32) && (char.climb == false)) {
_local1.onMovingTile = false;
_local1.fly = true;
_local1.jump = false;
_local1.flyspeed = _local1.flystart;
}
if (Key.isDown(39) && (_local1.jump == false)) {
getMyCorners(_local1.x + _local1.speed, _local1.y, _local1);
if (_local1.upright && (_local1.downright)) {
_local3 = _local2.moveChar(_local1, 1, 0);
}
}
if (Key.isDown(37) && (_local1.jump == false)) {
getMyCorners(_local1.x - _local1.speed, _local1.y, _local1);
if (_local1.downleft && (_local1.upleft)) {
_local3 = _local2.moveChar(_local1, -1, 0);
}
} else if (Key.isDown(40)) {
if ((!char.fly) && (!char.jump)) {
if (checkDownLadder(_local2.char)) {
_local3 = _local2.climb(_local1, 1);
}
}
}
if ((char.havinggun && (Key.isDown(16))) && (getTimer() > (_local1.lastshot + _local1.shootspeed))) {
_local2.shoot(_local1);
}
if (_local1.fly) {
_local3 = _local2.fly(_local1);
}
if (_local1.jump && (!_local1.fly)) {
_local3 = _local2.jump(_local1);
}
if (!_local3) {
_local1.clip.char.gotoAndStop(1);
} else {
_local1.clip.char.play();
}
if (enemyStop == false) {
_local2.enemyBrain();
}
_local2.moveBullets();
charChangeDir();
}
function gameOver() {
var _local1 = _root;
clearInterval(_local1.f_timeCounter);
removeMovieClip(_local1.tiles);
if (game.doorclose == true) {
_local1.gotoAndStop("gameover");
}
}
function init() {
below_mask.timeShow = game.totalTimes;
below_mask.lifeShow = game.totalLives;
below_mask.scoreShow = game.totalScores;
below_mask.bottleShow = game.totalBottles;
f_timeCounter = setInterval(timeCounter, 1000);
}
function timeCounter() {
if (game.totalTimes > 0) {
game.totalTimes--;
if (game.totalTimes == 5) {
trace(game.totalTimes);
var _local1 = new Sound();
_local1.attachSound("alert");
_local1.start(0, 3);
}
} else {
_root.gameOver();
}
below_mask.timeShow = game.totalTimes;
}
function clearScreen() {
_root.score = below_mask.scoreShow;
gameOver();
}
function charChangeDir() {
if (Key.isDown(38) && (Key.isDown(37))) {
char.clip.gotoAndStop("leftJump");
f_bottleTimeMc = false;
bottleTimeMc.stop();
} else if (Key.isDown(38) && (Key.isDown(39))) {
char.clip.gotoAndStop("rightJump");
f_bottleTimeMc = false;
bottleTimeMc.stop();
} else if (Key.isDown(38)) {
char.clip.gotoAndStop("jump");
f_bottleTimeMc = false;
bottleTimeMc.stop();
}
if (Key.isDown(32) && (Key.isDown(37))) {
f_bottleTimeMc = true;
bottleTimeMc.play();
char.clip.gotoAndStop("leftFly");
} else if (Key.isDown(32) && (Key.isDown(39))) {
f_bottleTimeMc = false;
bottleTimeMc.play();
char.clip.gotoAndStop("rightFly");
} else if (Key.isDown(32) && (char.climb == false)) {
bottleTimeMc.play();
f_bottleTimeMc = true;
char.clip.gotoAndStop("fly");
} else if (Key.isDown(37)) {
if (char.fly) {
char.clip.gotoAndStop("leftFly");
} else {
f_bottleTimeMc = false;
bottleTimeMc.stop();
char.clip.gotoAndStop("leftRun");
}
} else if (Key.isDown(39)) {
if (char.fly) {
char.clip.gotoAndStop("rightFly");
} else {
f_bottleTimeMc = false;
bottleTimeMc.stop();
char.clip.gotoAndStop("rightRun");
}
} else if (Key.isDown(40)) {
bottleTimeMc.stop();
f_bottleTimeMc = false;
if (checkDownLadder(_root.char)) {
char.clip.gotoAndStop("climb");
} else {
char.clip.gotoAndStop("kneel");
}
} else if (checkDownLadder(_root.char) && (char.climb == true)) {
char.clip.gotoAndStop("climb");
} else {
char.clip.gotoAndStop("stand");
}
}
function controlFunc() {
var _local1 = _root;
if (_local1.magicWaterUsed == false) {
if (_local1.char.clip._alpha < 100) {
_local1.char.clip._alpha = _local1.char.clip._alpha + 2;
} else {
_local1.char.undead = false;
}
}
_local1.detectKeys();
}
function removeFinal_mc() {
_root.final_mc.removeMovieClip(this);
}
_root.attachMovie("below_mask", "below_mask", 20000);
below_mask._y = 320;
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
_root.attachMovie("bg_mask", "bg_mask", 20001);
bgSoundFunc("bgSound1");
var lifeUpNum = 10000;
var heroLife = 5;
var everyGateBottle = 10;
var addLife = 0;
fscommand ("allowscale", false);
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
_root.score = 0;
myMap2 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 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alTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:8, gateDoorY:2};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile6 = function () {
};
game.Tile6.prototype = new game.Doors(4, 3);
game.Tile7 = function () {
};
game.Tile7.prototype = new game.Doors(3, 4);
game.Tile8 = function () {
};
game.Tile8.prototype = new game.Doors(5, 4);
game.Tile9 = function () {
};
game.Tile9.prototype = new game.Doors(4, 5);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 3, 3], [1, 12, 2], [2, 12, 5], [2, 1, 2], [3, 8, 3], [3, 9, 3], [3, 1, 5], [3, 2, 5]], [[1, 2, 2], [1, 11, 1], [2, 14, 2], [2, 2, 4], [3, 3, 4], [3, 4, 4], [3, 14, 3], [3, 14, 4]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 2, 3], [2, 12, 3]], [[1, 3, 2], [2, 8, 8]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 115
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 125
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 127
removeFinal_mc();
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap2 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1]];
myMap1 = [[1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:2, currentMap:1, totalMap:2, itemBottle:4, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:13, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
myItems = [[0], [[1, 4, 3], [1, 12, 3], [2, 1, 2], [2, 2, 2], [2, 14, 2], [2, 14, 5], [3, 14, 3], [3, 14, 4], [3, 1, 5], [3, 2, 5], [3, 3, 5]], [[1, 1, 1], [1, 11, 3], [2, 2, 2], [2, 12, 4], [2, 13, 7], [2, 14, 7], [3, 3, 2], [3, 4, 2], [3, 5, 2], [3, 13, 4], [3, 14, 4], [3, 11, 7], [3, 12, 7]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 5, 3], [2, 10, 3]], [[1, 2, 5], [2, 12, 5]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 127
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 135
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 137
removeFinal_mc();
bgSoundFunc("bgSound2");
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap3 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1]];
myMap2 = [[1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0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 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:3, currentMap:1, totalMap:3, itemBottle:6, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:7, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 7, 3], [1, 14, 2], [2, 1, 2], [2, 2, 2], [2, 11, 6], [3, 7, 4], [3, 5, 3], [3, 13, 2]], [[1, 2, 3], [1, 11, 3], [2, 8, 2], [2, 9, 2], [2, 14, 3], [2, 2, 5], [2, 3, 9], [3, 3, 5], [3, 4, 5], [3, 10, 6], [3, 11, 6]], [[1, 3, 1], [1, 11, 3], [2, 13, 1], [2, 14, 1], [2, 1, 3], [2, 2, 6], [3, 11, 1], [3, 12, 1], [3, 6, 4], [3, 7, 4], [3, 3, 6]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 12, 3], [2, 3, 6], [3, 12, 9], [6, 8, 4]], [[1, 4, 9], [2, 9, 4], [3, 4, 3]], [[1, 9, 2], [2, 3, 4], [3, 9, 5]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 137
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 145
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 147
removeFinal_mc();
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap3 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1]];
myMap2 = [[1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1], [1, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:4, currentMap:1, totalMap:3, itemBottle:6, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:1, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 1, 8], [1, 11, 2], [2, 1, 2], [2, 14, 3], [3, 2, 2], [3, 10, 2], [3, 14, 4], [4, 3, 2], [4, 4, 2], [4, 9, 2]], [[1, 1, 7], [1, 14, 7], [2, 1, 2], [2, 3, 2], [2, 14, 3], [2, 6, 5], [2, 11, 7], [3, 2, 2], [3, 12, 3], [3, 13, 7], [3, 7, 5], [4, 2, 5], [4, 3, 5], [4, 13, 3], [4, 12, 7], [8, 1, 5]], [[1, 9, 1], [1, 12, 6], [2, 6, 3], [2, 2, 6], [2, 3, 6], [3, 14, 2], [3, 14, 3], [3, 14, 4], [4, 1, 6], [4, 13, 8], [4, 14, 8]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 2, 6], [2, 5, 3], [3, 12, 4], [7, 6, 5]], [[1, 7, 3], [2, 4, 7], [3, 12, 9]], [[1, 5, 4], [2, 8, 2], [3, 11, 6], [6, 3, 5]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 147
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 155
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 157
removeFinal_mc();
bgSoundFunc("bgSound3");
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap4 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 10, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [1, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7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 1, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1]];
myMap1 = [[1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:5, currentMap:1, totalMap:4, itemBottle:8, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:13, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile6 = function () {
};
game.Tile6.prototype = new game.Doors(4, 3);
game.Tile7 = function () {
};
game.Tile7.prototype = new game.Doors(3, 4);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 1, 3], [1, 5, 5], [2, 14, 7], [2, 14, 8], [3, 1, 5], [3, 2, 5], [3, 1, 9], [3, 2, 9], [4, 2, 2], [4, 3, 2], [5, 1, 2], [5, 14, 2], [9, 12, 3]], [[1, 1, 7], [1, 13, 2], [2, 14, 2], [2, 2, 7], [2, 3, 7], [2, 11, 9], [2, 12, 9], [2, 13, 9], [3, 1, 2], [3, 14, 3], [3, 14, 4], [3, 14, 5], [4, 2, 2], [4, 7, 2], [5, 3, 2], [5, 8, 2]], [[1, 1, 2], [1, 12, 2], [2, 3, 2], [2, 14, 2], [2, 7, 5], [2, 14, 6], [3, 2, 2], [3, 4, 2], [3, 11, 2], [3, 13, 2], [4, 13, 5], [4, 14, 5], [5, 1, 4], [5, 2, 4], [8, 1, 7]], [[1, 1, 5], [1, 4, 1], [2, 2, 1], [2, 3, 1], [2, 12, 4], [2, 13, 4], [3, 5, 1], [3, 6, 1], [3, 3, 7], [3, 4, 7], [4, 1, 1], [4, 14, 4], [5, 1, 7], [5, 2, 7]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 3, 3], [2, 10, 3], [3, 6, 5], [4, 11, 7], [6, 6, 4]], [[1, 9, 3], [2, 3, 5], [3, 7, 5], [4, 13, 7], [7, 6, 8]], [[1, 5, 3], [2, 13, 3], [3, 3, 7], [4, 11, 7], [6, 9, 4]], [[1, 4, 2], [2, 11, 2], [3, 2, 5], [4, 9, 6], [7, 8, 3]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
myMovingTiles = [[0], [[2, 6, 9]]];
game.MovingTilep1 = function () {
};
game.MovingTilep1.prototype.speed = 2;
game.MovingTilep1.prototype.dirx = 0;
game.MovingTilep1.prototype.diry = 1;
game.MovingTilep1.prototype.miny = 0;
game.MovingTilep1.prototype.maxy = 2;
game.MovingTilep1.prototype.width = game.tileW / 2;
game.MovingTilep1.prototype.height = game.tileH / 2;
game.MovingTilep2 = function () {
};
game.MovingTilep2.prototype.speed = 2;
game.MovingTilep2.prototype.dirx = 1;
game.MovingTilep2.prototype.diry = 0;
game.MovingTilep2.prototype.minx = -2;
game.MovingTilep2.prototype.maxx = 2;
game.MovingTilep2.prototype.width = game.tileW / 2;
game.MovingTilep2.prototype.height = game.tileH / 2;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 157
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 165
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 167
removeFinal_mc();
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap4 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 10, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 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 1, 1, 1, 1, 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:6, currentMap:1, totalMap:4, itemBottle:12, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:7, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile6 = function () {
};
game.Tile6.prototype = new game.Doors(4, 3);
game.Tile7 = function () {
};
game.Tile7.prototype = new game.Doors(3, 4);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 8, 2], [1, 4, 5], [1, 14, 4], [2, 3, 2], [2, 3, 7], [2, 14, 6], [2, 14, 8], [3, 1, 2], [3, 1, 9], [3, 2, 9], [3, 3, 9], [4, 2, 2], [4, 14, 7], [5, 13, 2], [5, 14, 2], [8, 6, 2]], [[1, 5, 2], [1, 1, 3], [1, 9, 5], [2, 3, 2], [2, 6, 2], [2, 13, 2], [2, 14, 2], [3, 1, 2], [3, 2, 2], [3, 1, 7], [3, 2, 7], [4, 8, 2], [4, 10, 2], [5, 14, 4], [5, 14, 7], [9, 3, 7]], [[1, 12, 2], [1, 8, 3], [1, 2, 5], [2, 1, 2], [2, 14, 2], [2, 13, 5], [2, 2, 7], [3, 2, 2], [3, 3, 2], [3, 13, 2], [3, 3, 5], [4, 1, 7], [4, 14, 5], [5, 5, 7], [5, 6, 7]], [[1, 1, 1], [1, 1, 5], [1, 11, 4], [2, 14, 1], [2, 13, 2], [3, 14, 2], [3, 13, 3], [3, 1, 3], [3, 2, 3], [2, 1, 7], [2, 2, 7], [4, 4, 1], [4, 13, 6], [5, 4, 4], [5, 9, 6]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 7, 3], [2, 12, 4], [3, 7, 5], [4, 4, 7], [7, 10, 6]], [[1, 7, 3], [2, 2, 5], [3, 9, 6], [4, 5, 7], [6, 9, 4]], [[1, 12, 6], [2, 1, 5], [3, 13, 3], [4, 7, 3], [7, 6, 6]], [[1, 2, 5], [2, 3, 2], [3, 10, 2], [4, 12, 5], [6, 8, 6]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
myMovingTiles = [[0], [[2, 10, 7]], [0], [0], [[2, 7, 5]]];
game.MovingTilep1 = function () {
};
game.MovingTilep1.prototype.speed = 2;
game.MovingTilep1.prototype.dirx = 0;
game.MovingTilep1.prototype.diry = 1;
game.MovingTilep1.prototype.miny = 0;
game.MovingTilep1.prototype.maxy = 2;
game.MovingTilep1.prototype.width = game.tileW / 2;
game.MovingTilep1.prototype.height = game.tileH / 2;
game.MovingTilep2 = function () {
};
game.MovingTilep2.prototype.speed = 2;
game.MovingTilep2.prototype.dirx = 1;
game.MovingTilep2.prototype.diry = 0;
game.MovingTilep2.prototype.minx = -2;
game.MovingTilep2.prototype.maxx = 2;
game.MovingTilep2.prototype.width = game.tileW / 2;
game.MovingTilep2.prototype.height = game.tileH / 2;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 167
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 175
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 177
removeFinal_mc();
bgSoundFunc("bgSound4");
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap4 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 1, 1, 10, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1], [1, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1]];
myMap3 = [[1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1], [1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 10, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 1], [1, 0, 0, 0, 1, 10, 1, 1, 0, 0, 0, 0, 11, 0, 0, 1], [1, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 11, 0, 0, 1], [1, 1, 1, 1, 0, 11, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1], [1, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:7, currentMap:1, totalMap:4, itemBottle:16, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:13, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile6 = function () {
};
game.Tile6.prototype = new game.Doors(4, 3);
game.Tile7 = function () {
};
game.Tile7.prototype = new game.Doors(3, 4);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 11, 2], [1, 6, 4], [1, 1, 5], [1, 11, 7], [2, 13, 2], [2, 14, 2], [2, 4, 8], [2, 10, 8], [3, 1, 9], [3, 2, 9], [3, 13, 9], [3, 14, 9], [4, 4, 2], [4, 14, 8], [5, 3, 2], [5, 12, 2], [6, 1, 2], [6, 2, 2], [10, 3, 5]], [[1, 5, 2], [1, 14, 2], [1, 1, 4], [1, 12, 5], [2, 1, 2], [2, 6, 2], [2, 13, 2], [2, 8, 5], [3, 9, 2], [3, 10, 2], [3, 12, 2], [3, 3, 8], [4, 7, 2], [4, 5, 6], [5, 7, 6], [5, 13, 6], [6, 6, 6], [6, 2, 8], [8, 1, 8]], [[1, 3, 2], [1, 7, 2], [1, 12, 2], [1, 2, 5], [2, 1, 2], [2, 4, 3], [2, 6, 3], [2, 10, 2], [3, 13, 2], [3, 14, 2], [3, 13, 4], [3, 3, 7], [4, 1, 7], [4, 14, 4], [5, 5, 3], [5, 11, 2], [6, 2, 2], [6, 2, 7], [9, 1, 3]], [[1, 4, 1], [1, 7, 1], [1, 1, 5], [1, 14, 4], [2, 1, 1], [2, 2, 1], [2, 13, 4], [2, 5, 7], [3, 14, 5], [3, 14, 6], [3, 1, 7], [3, 2, 7], [4, 3, 1], [4, 10, 7], [5, 11, 7], [5, 12, 7], [6, 3, 7], [6, 4, 7]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 1, 7], [2, 4, 5], [3, 7, 9], [4, 10, 3], [6, 10, 6], [7, 2, 6]], [[1, 7, 4], [2, 11, 5], [3, 2, 6], [4, 14, 7], [6, 10, 8], [7, 8, 7]], [[1, 14, 7], [2, 11, 3], [3, 7, 7], [4, 3, 5], [6, 2, 8], [7, 10, 8]], [[1, 2, 5], [2, 4, 2], [3, 9, 2], [4, 11, 5], [6, 7, 6], [7, 11, 3]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
game.Bullet = function () {
};
game.Bullet.prototype.speed = 5;
game.Bullet.prototype.dirx = 0;
game.Bullet.prototype.diry = -1;
game.Bullet.prototype.width = 2;
game.Bullet.prototype.height = 2;
myMovingTiles = [[0], [[2, 5, 5]], [0], [[2, 7, 6]], [[2, 11, 5]]];
game.MovingTilep1 = function () {
};
game.MovingTilep1.prototype.speed = 2;
game.MovingTilep1.prototype.dirx = 0;
game.MovingTilep1.prototype.diry = 1;
game.MovingTilep1.prototype.miny = 0;
game.MovingTilep1.prototype.maxy = 2;
game.MovingTilep1.prototype.width = game.tileW / 2;
game.MovingTilep1.prototype.height = game.tileH / 2;
game.MovingTilep2 = function () {
};
game.MovingTilep2.prototype.speed = 2;
game.MovingTilep2.prototype.dirx = 1;
game.MovingTilep2.prototype.diry = 0;
game.MovingTilep2.prototype.minx = -2;
game.MovingTilep2.prototype.maxx = 2;
game.MovingTilep2.prototype.width = game.tileW / 2;
game.MovingTilep2.prototype.height = game.tileH / 2;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 177
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 185
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 187
removeFinal_mc();
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap4 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0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1, 10, 1, 0, 1], [1, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:8, currentMap:1, totalMap:4, itemBottle:16, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:8, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile6 = function () {
};
game.Tile6.prototype = new game.Doors(4, 3);
game.Tile7 = function () {
};
game.Tile7.prototype = new game.Doors(3, 4);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 1, 2], [1, 7, 2], [1, 11, 2], [1, 1, 4], [2, 1, 3], [2, 8, 2], [2, 13, 2], [2, 14, 2], [3, 2, 2], [3, 12, 2], [3, 1, 9], [3, 2, 9], [4, 14, 5], [4, 14, 6], [5, 6, 3], [5, 6, 4], [6, 9, 6], [6, 10, 6], [10, 10, 3]], [[1, 5, 2], [1, 8, 2], [1, 1, 4], [1, 14, 5], [2, 1, 2], [2, 6, 2], [2, 13, 2], [2, 14, 7], [3, 2, 2], [3, 3, 2], [3, 12, 2], [3, 14, 2], [4, 1, 8], [4, 1, 9], [5, 5, 5], [5, 6, 5], [6, 4, 5], [6, 10, 7], [9, 3, 9]], [[1, 6, 2], [1, 9, 2], [1, 2, 5], [1, 14, 5], [2, 1, 3], [2, 2, 3], [2, 10, 3], [2, 11, 3], [3, 3, 3], [3, 4, 3], [3, 13, 3], [3, 12, 3], [4, 1, 7], [4, 2, 7], [5, 14, 3], [5, 3, 7], [6, 10, 6], [6, 11, 6], [8, 1, 9]], [[1, 7, 1], [1, 1, 3], [1, 10, 4], [1, 14, 4], [2, 1, 1], [2, 2, 1], [2, 14, 1], [2, 13, 4], [3, 9, 4], [3, 12, 6], [3, 1, 7], [3, 4, 7], [4, 10, 1], [4, 11, 1], [5, 2, 7], [5, 3, 7], [6, 13, 6], [6, 14, 6]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 4, 3], [2, 10, 4], [3, 1, 7], [4, 11, 7], [6, 13, 5], [7, 2, 6]], [[1, 2, 6], [2, 4, 3], [3, 10, 3], [4, 13, 6], [7, 7, 7], [7, 10, 8]], [[1, 13, 7], [2, 10, 4], [3, 4, 7], [4, 3, 5], [6, 7, 6], [7, 9, 8]], [[1, 4, 2], [2, 13, 2], [3, 3, 5], [4, 12, 8], [7, 6, 3], [6, 8, 6]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
game.Bullet = function () {
};
game.Bullet.prototype.speed = 5;
game.Bullet.prototype.dirx = 0;
game.Bullet.prototype.diry = -1;
game.Bullet.prototype.width = 2;
game.Bullet.prototype.height = 2;
myMovingTiles = [[0], [[2, 4, 7]], [[2, 9, 7]], [[2, 7, 6]], [[2, 10, 6]]];
game.MovingTilep1 = function () {
};
game.MovingTilep1.prototype.speed = 2;
game.MovingTilep1.prototype.dirx = 0;
game.MovingTilep1.prototype.diry = 1;
game.MovingTilep1.prototype.miny = 0;
game.MovingTilep1.prototype.maxy = 2;
game.MovingTilep1.prototype.width = game.tileW / 2;
game.MovingTilep1.prototype.height = game.tileH / 2;
game.MovingTilep2 = function () {
};
game.MovingTilep2.prototype.speed = 2;
game.MovingTilep2.prototype.dirx = 1;
game.MovingTilep2.prototype.diry = 0;
game.MovingTilep2.prototype.minx = -2;
game.MovingTilep2.prototype.maxx = 2;
game.MovingTilep2.prototype.width = game.tileW / 2;
game.MovingTilep2.prototype.height = game.tileH / 2;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 187
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 195
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 197
removeFinal_mc();
bgSoundFunc("bgSound5");
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap5 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 10, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 11, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1], [1, 0, 10, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [1, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 10, 1, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 1], [1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:9, currentMap:1, totalMap:5, itemBottle:20, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:4, gateDoorY:1};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile6 = function () {
};
game.Tile6.prototype = new game.Doors(4, 3);
game.Tile7 = function () {
};
game.Tile7.prototype = new game.Doors(3, 4);
game.Tile8 = function () {
};
game.Tile8.prototype = new game.Doors(5, 4);
game.Tile9 = function () {
};
game.Tile9.prototype = new game.Doors(4, 5);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 2, 2], [1, 13, 2], [2, 1, 2], [2, 14, 2], [2, 12, 3], [2, 3, 3], [3, 6, 2], [3, 7, 2], [3, 1, 3], [3, 14, 3], [4, 1, 6], [4, 2, 6], [5, 1, 9], [5, 14, 9], [6, 11, 2], [6, 12, 2], [7, 3, 8], [7, 4, 8], [10, 13, 5], [11, 13, 5]], [[1, 5, 2], [1, 7, 2], [1, 9, 2], [1, 2, 5], [1, 9, 6], [1, 14, 8], [2, 1, 2], [2, 13, 2], [2, 6, 6], [3, 2, 2], [3, 12, 2], [3, 14, 2], [3, 14, 6], [4, 1, 5], [4, 3, 5], [5, 14, 3], [5, 14, 4], [6, 3, 2], [6, 4, 2], [7, 1, 6], [7, 1, 7], [8, 1, 8]], [[1, 14, 4], [1, 2, 5], [1, 1, 7], [2, 1, 3], [2, 2, 3], [2, 13, 2], [2, 14, 2], [2, 1, 8], [3, 6, 3], [3, 7, 3], [3, 13, 6], [3, 14, 6], [4, 5, 3], [4, 8, 3], [5, 9, 3], [5, 10, 3], [6, 11, 4], [6, 11, 5], [7, 14, 7], [7, 1, 9], [9, 13, 8]], [[1, 13, 2], [1, 14, 5], [1, 9, 6], [1, 3, 8], [2, 1, 3], [2, 2, 3], [2, 14, 2], [2, 13, 5], [3, 3, 3], [3, 12, 5], [3, 1, 6], [3, 2, 6], [4, 11, 2], [4, 12, 2], [5, 9, 2], [5, 10, 2], [6, 8, 8], [6, 9, 8], [7, 7, 4], [7, 8, 4]], [[1, 1, 2], [1, 9, 1], [1, 2, 5], [1, 9, 4], [1, 14, 5], [2, 1, 1], [2, 10, 1], [2, 13, 1], [2, 1, 4], [3, 4, 4], [3, 5, 4], [3, 12, 4], [3, 13, 4], [4, 11, 1], [4, 12, 1], [5, 2, 1], [5, 14, 1], [6, 7, 6], [6, 8, 6], [7, 3, 7], [7, 4, 7]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 4, 3], [2, 10, 3], [3, 3, 5], [4, 11, 5], [5, 2, 9], [6, 8, 4], [7, 5, 7]], [[2, 11, 7], [3, 4, 7], [4, 10, 4], [5, 4, 4], [7, 7, 5], [6, 8, 8]], [[1, 3, 5], [2, 6, 6], [3, 12, 4], [4, 10, 7], [], [6, 6, 8], [7, 11, 2]], [[1, 2, 4], [2, 12, 3], [3, 6, 6], [4, 12, 7], [5, 2, 9], [6, 3, 7], [7, 10, 8]], [[1, 3, 2], [2, 4, 5], [3, 1, 8], [4, 7, 4], [5, 12, 5], [7, 8, 3], [6, 9, 7]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
game.Bullet = function () {
};
game.Bullet.prototype.speed = 5;
game.Bullet.prototype.dirx = 0;
game.Bullet.prototype.diry = -1;
game.Bullet.prototype.width = 2;
game.Bullet.prototype.height = 2;
myMovingTiles = [[0], [[2, 8, 8]], [[2, 7, 4]], [[2, 6, 5]], [[2, 7, 4]], [[2, 12, 3]]];
game.MovingTilep1 = function () {
};
game.MovingTilep1.prototype.speed = 2;
game.MovingTilep1.prototype.dirx = 0;
game.MovingTilep1.prototype.diry = 1;
game.MovingTilep1.prototype.miny = 0;
game.MovingTilep1.prototype.maxy = 2;
game.MovingTilep1.prototype.width = game.tileW / 2;
game.MovingTilep1.prototype.height = game.tileH / 2;
game.MovingTilep2 = function () {
};
game.MovingTilep2.prototype.speed = 2;
game.MovingTilep2.prototype.dirx = 1;
game.MovingTilep2.prototype.diry = 0;
game.MovingTilep2.prototype.minx = -2;
game.MovingTilep2.prototype.maxx = 2;
game.MovingTilep2.prototype.width = game.tileW / 2;
game.MovingTilep2.prototype.height = game.tileH / 2;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 197
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 205
below_mask._y = 320;
var i = 1;
while (i <= 4) {
eval ("below_mask.btn" add i)._visible = false;
i++;
}
stop();
Frame 207
removeFinal_mc();
f_bottleTimeMc = false;
f_unDeadMc = false;
f_enemyStopMc = false;
magicWaterUsed = false;
enemyStop = false;
fscommand ("allowscale", false);
_root.heroLife++;
myMap5 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 10, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 11, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 10, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1]];
myMap4 = [[1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_root.score = 0;
game = {tileW:40, tileH:40, doorclose:true, havingBottle:0, currentGate:10, currentMap:1, totalMap:5, itemBottle:20, totalTimes:120, totalLives:_root.heroLife, totalScores:_root.score, totalBottles:_root.everyGateBottle, bulletcounter:0, gateDoorX:13, gateDoorY:4};
game.bullets = new Array();
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Doors = function (newmap, oldmap) {
this.newmap = newmap;
this.oldmap = oldmap;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 3;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 2);
game.Tile4 = function () {
};
game.Tile4.prototype = new game.Doors(3, 2);
game.Tile5 = function () {
};
game.Tile5.prototype = new game.Doors(2, 3);
game.Tile6 = function () {
};
game.Tile6.prototype = new game.Doors(4, 3);
game.Tile7 = function () {
};
game.Tile7.prototype = new game.Doors(3, 4);
game.Tile8 = function () {
};
game.Tile8.prototype = new game.Doors(5, 4);
game.Tile9 = function () {
};
game.Tile9.prototype = new game.Doors(4, 5);
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 2;
game.Tile10.prototype.ladder = true;
game.Tile10.prototype.item = "ladder";
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.frame = 1;
game.Tile11.prototype.ladder = true;
game.Tile11.prototype.item = "ladder";
myItems = [[0], [[1, 14, 2], [1, 10, 2], [2, 6, 2], [2, 14, 8], [2, 2, 8], [2, 1, 8], [3, 2, 9], [3, 3, 9], [3, 12, 9], [3, 13, 9], [4, 12, 2], [4, 13, 2], [5, 1, 3], [6, 2, 2], [6, 3, 2], [7, 14, 3], [7, 14, 9], [11, 2, 3]], [[1, 2, 2], [1, 14, 2], [1, 2, 4], [1, 13, 4], [1, 9, 6], [2, 1, 2], [2, 13, 2], [2, 6, 6], [3, 8, 2], [3, 9, 2], [3, 10, 2], [3, 11, 2], [4, 4, 6], [4, 5, 3], [5, 2, 9], [5, 7, 5], [5, 8, 5], [6, 1, 3], [6, 1, 4], [7, 4, 7], [7, 14, 7], [8, 14, 9], [10, 10, 6]], [[1, 9, 2], [1, 14, 3], [1, 2, 5], [2, 14, 2], [2, 1, 3], [2, 2, 3], [2, 8, 5], [2, 9, 5], [3, 10, 2], [3, 11, 2], [3, 12, 2], [3, 13, 2], [4, 5, 5], [4, 5, 8], [5, 10, 4], [5, 8, 7], [6, 1, 2], [6, 2, 2], [7, 1, 8], [7, 13, 8], [9, 14, 7]], [[1, 7, 3], [1, 14, 3], [1, 3, 6], [1, 14, 6], [2, 1, 2], [2, 2, 2], [2, 13, 6], [2, 1, 10], [3, 10, 3], [3, 11, 3], [3, 12, 3], [3, 13, 3], [4, 8, 5], [4, 9, 5], [5, 4, 5], [5, 11, 5], [6, 14, 9], [6, 14, 10], [7, 1, 6], [7, 2, 6]], [[1, 5, 1], [1, 14, 1], [1, 9, 4], [1, 2, 5], [1, 1, 8], [1, 14, 8], [2, 9, 1], [2, 10, 1], [2, 1, 6], [2, 4, 7], [3, 1, 1], [3, 7, 6], [3, 8, 6], [3, 9, 6], [4, 1, 7], [4, 13, 1], [5, 10, 5], [5, 11, 5], [6, 2, 1], [6, 3, 1], [7, 1, 3], [7, 2, 3]]];
game.Item1 = function () {
};
game.Item1.prototype.typeNum = 1;
game.Item2 = function () {
};
game.Item2.prototype.typeNum = 2;
game.Item3 = function () {
};
game.Item3.prototype.typeNum = 3;
game.Item4 = function () {
};
game.Item4.prototype.typeNum = 4;
game.Item5 = function () {
};
game.Item5.prototype.typeNum = 5;
game.Item6 = function () {
};
game.Item6.prototype.typeNum = 6;
game.Item7 = function () {
};
game.Item7.prototype.typeNum = 7;
game.Item8 = function () {
};
game.Item8.prototype.typeNum = 8;
game.Item9 = function () {
};
game.Item9.prototype.typeNum = 9;
game.Item10 = function () {
};
game.Item10.prototype.typeNum = 10;
game.Item11 = function () {
};
game.Item11.prototype.typeNum = 11;
myEnemies = [[0], [[1, 10, 6], [2, 2, 6], [3, 11, 4], [4, 5, 4], [5, 7, 2], [6, 2, 5], [7, 13, 5]], [[1, 7, 7], [2, 2, 6], [3, 10, 4], [4, 4, 4], [5, 4, 2], [7, 13, 5], [6, 11, 8]], [[1, 7, 3], [2, 3, 5], [3, 14, 5], [4, 6, 6], [5, 11, 7], [6, 3, 7], [7, 6, 8]], [[1, 8, 3], [2, 2, 4], [3, 12, 4], [4, 7, 6], [5, 12, 7], [7, 10, 8], [6, 2, 7]], [[1, 4, 2], [2, 4, 5], [3, 7, 4], [4, 12, 5], [5, 11, 8], [6, 8, 3], [7, 10, 7]]];
game.Enemyp1 = function () {
};
game.Enemyp1.prototype.xMove = 1;
game.Enemyp1.prototype.yMove = 0;
game.Enemyp1.prototype.speed = -2;
game.Enemyp2 = function () {
};
game.Enemyp2.prototype.xMove = 1;
game.Enemyp2.prototype.yMove = 0;
game.Enemyp2.prototype.speed = 2;
game.Enemyp3 = function () {
};
game.Enemyp3.prototype.xMove = 1;
game.Enemyp3.prototype.yMove = 0;
game.Enemyp3.prototype.speed = 2;
game.Enemyp4 = function () {
};
game.Enemyp4.prototype.xMove = 1;
game.Enemyp4.prototype.yMove = 0;
game.Enemyp4.prototype.speed = 2;
game.Enemyp5 = function () {
};
game.Enemyp5.prototype.xMove = 1;
game.Enemyp5.prototype.yMove = 0;
game.Enemyp5.prototype.speed = -1;
game.Enemyp6 = function () {
};
game.Enemyp6.prototype.xMove = 1;
game.Enemyp6.prototype.yMove = 0;
game.Enemyp6.prototype.speed = -3;
game.Enemyp7 = function () {
};
game.Enemyp7.prototype.xMove = 1;
game.Enemyp7.prototype.yMove = 0;
game.Enemyp7.prototype.speed = 3;
game.Bullet = function () {
};
game.Bullet.prototype.speed = 5;
game.Bullet.prototype.dirx = 0;
game.Bullet.prototype.diry = -1;
game.Bullet.prototype.width = 2;
game.Bullet.prototype.height = 2;
myMovingTiles = [[0], [[2, 8, 9]], [[2, 7, 4]], [[2, 4, 3]], [[2, 8, 3]], [[2, 11, 3]]];
game.MovingTilep1 = function () {
};
game.MovingTilep1.prototype.speed = 2;
game.MovingTilep1.prototype.dirx = 0;
game.MovingTilep1.prototype.diry = 1;
game.MovingTilep1.prototype.miny = 0;
game.MovingTilep1.prototype.maxy = 2;
game.MovingTilep1.prototype.width = game.tileW / 2;
game.MovingTilep1.prototype.height = game.tileH / 2;
game.MovingTilep2 = function () {
};
game.MovingTilep2.prototype.speed = 2;
game.MovingTilep2.prototype.dirx = 1;
game.MovingTilep2.prototype.diry = 0;
game.MovingTilep2.prototype.minx = -2;
game.MovingTilep2.prototype.maxx = 2;
game.MovingTilep2.prototype.width = game.tileW / 2;
game.MovingTilep2.prototype.height = game.tileH / 2;
char = {xtile:7, ytile:5, speed:4, unDead:true, flystart:-14, jumpstart:-10, gravity:1.2, fly:false, jump:false, havinggun:false, shootspeed:1000, climb:false, onMovingTile:false};
buildMap(_root["myMap" + game.currentMap]);
fall(_root.char);
init();
stop();
_root.createEmptyMovieClip("controller", 20002);
controller.onEnterFrame = function () {
controlFunc();
};
_root.onEnterFrame = function () {
if (Key.isDown(17)) {
pauseMc.play();
}
};
Instance of Symbol 1603 MovieClip "bottleTimeMc" in Frame 207
onClipEvent (load) {
this.gotoAndStop(1);
}
Frame 215
stop();
bgSoundFunc("bgSound7");
_root.below_mask.removeMovieClip(this);
stop();
Frame 225
bgSoundFunc("bgSound6");
_root.below_mask.removeMovieClip(this);
Frame 410
stop();
Frame 411
stop();
help_w.onEnterFrame = function () {
var _local1 = this;
trace(_local1._y);
var _local2 = _root._ymouse;
if (_local2 > 200) {
if ((_local1._y - 10) > -3150) {
_local1._y = _local1._y - ((_local2 - 200) / 20);
}
} else if ((_local1._y + 10) < 20) {
_local1._y = _local1._y + ((200 - _local2) / 20);
}
};
Symbol 3 Button
on (release) {
temp = temp + 1;
gate = "t" + temp;
_root.clearScreen();
_root.gotoAndStop(gate);
}
Symbol 4 Button
on (release) {
temp = temp - 1;
gate = "t" + temp;
_root.clearScreen();
_root.gotoAndStop(gate);
}
Symbol 7 MovieClip [test] Frame 1
temp = 1;
Symbol 282 MovieClip Frame 1
MochiAd.showPreGameAd({id:"a87e30e0c9917e13", res:"550x400"});
Symbol 570 MovieClip [char] Frame 1
stop();
Symbol 570 MovieClip [char] Frame 10
stop();
Symbol 570 MovieClip [char] Frame 20
stop();
Symbol 570 MovieClip [char] Frame 30
stop();
Symbol 570 MovieClip [char] Frame 40
stop();
Symbol 570 MovieClip [char] Frame 50
stop();
Symbol 570 MovieClip [char] Frame 60
stop();
Symbol 570 MovieClip [char] Frame 70
stop();
Symbol 570 MovieClip [char] Frame 80
stop();
Symbol 570 MovieClip [char] Frame 90
stop();
Symbol 570 MovieClip [char] Frame 100
stop();
Symbol 936 MovieClip Frame 20
_root.effectSoundFunc("doorOpen");
var temp = _root.game.currentGate;
var gateNum = temp;
if (temp < 10) {
temp = temp + 1;
temp = "gate" + temp;
_root.gotoAndStop(temp);
_root.attachMovie("final_mc", "final_mc", 50000);
_root.final_mc.gotoAndStop("success");
switch (gateNum) {
case 1 :
_root.final_mc.gate_mc.gotoAndStop(1);
break;
case 2 :
_root.final_mc.gate_mc.gotoAndStop(1);
break;
case 3 :
_root.final_mc.gate_mc.gotoAndStop(2);
break;
case 4 :
_root.final_mc.gate_mc.gotoAndStop(2);
break;
case 5 :
_root.final_mc.gate_mc.gotoAndStop(3);
break;
case 6 :
_root.final_mc.gate_mc.gotoAndStop(3);
break;
case 7 :
_root.final_mc.gate_mc.gotoAndStop(4);
break;
case 8 :
_root.final_mc.gate_mc.gotoAndStop(4);
break;
case 9 :
_root.final_mc.gate_mc.gotoAndStop(5);
break;
case 10 :
_root.final_mc.gate_mc.gotoAndStop(5);
}
_root.final_mc._x = 280;
_root.final_mc._y = 200;
_root.score = _root.below_mask.scoreShow;
_root.clearScreen();
} else {
_root.gotoAndPlay("pass");
_root.score = _root.below_mask.scoreShow;
_root.clearScreen();
}
Symbol 937 MovieClip [gateDoor] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _root;
if ((_local1.game.currentMap == _local1.game.totalMap) && (_local1.game.havingBottle >= _local1.game.itemBottle)) {
this.onEnterFrame = null;
this.gotoAndStop(2);
}
};
Symbol 937 MovieClip [gateDoor] Frame 2
stop();
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.game.clip.gateDoor.hitTest(_local1.game.clip.char)) {
this.onEnterFrame = null;
_local1.game.doorclose = false;
this.gotoAndStop(3);
}
};
Symbol 1056 Button
on (release, keyPress "1") {
_root.f_enemyStopMc = true;
_root.enemyStopMc.gotoAndPlay(2);
btn1._visible = false;
}
Symbol 1066 Button
on (release, keyPress "2") {
_parent.magicWaterUsed = true;
_root.f_unDeadMc = true;
_parent.unDeadMc.gotoAndPlay(2);
btn2._visible = false;
}
Symbol 1068 Button
on (release, keyPress "4") {
_root.game.totalTimes = _root.game.totalTimes + 20;
_root.below_mask.timeShow = _root.game.totalTimes;
btn4._visible = false;
}
Symbol 1071 Button
on (release, keyPress "3") {
_root.char.havinggun = true;
btn3._visible = false;
}
Symbol 1075 MovieClip Frame 1
stop();
Symbol 1078 MovieClip [below_mask] Frame 1
point = true;
sound_btn.onPress = function () {
var _local1 = _root;
trace(point);
if (point) {
trace("to stop");
_local1.allowBgSoundFlag = false;
_local1.bgSound.stop();
point = false;
sound_mc.gotoAndStop(2);
} else if (_local1.allowBgSoundFlag == false) {
trace("to play");
_local1.allowBgSoundFlag = true;
_local1.bgSound.start(0, 10000);
point = true;
sound_mc.gotoAndStop(1);
}
};
Symbol 1171 MovieClip Frame 50
stop();
Symbol 1176 Button
on (release) {
getURL ("http://rflash.blogspot.com", _blank);
}
Symbol 1180 Button
on (release) {
getURL ("http://www.koalafun.com", _blank);
}
Symbol 1207 MovieClip Frame 51
stop();
Symbol 1239 MovieClip Frame 50
stop();
Symbol 1269 MovieClip Frame 51
stop();
Symbol 1305 MovieClip Frame 50
stop();
Symbol 1306 MovieClip Frame 1
stop();
Symbol 1307 MovieClip [final_mc] Frame 1
stop();
restart_btn.onRelease = function () {
_root.gotoAndPlay("start");
_root.removeFinal_mc();
};
Symbol 1307 MovieClip [final_mc] Frame 2
stop();
Symbol 1311 Button
on (release) {
_root.pauseMc.play();
}
Symbol 1603 MovieClip Frame 150
_root.below_mask.bottleShow--;
if (_root.below_mask.bottleShow == 0) {
_root.gameOver();
}
Symbol 1607 MovieClip Frame 1
stop();
Symbol 1607 MovieClip Frame 2
_parent.char.clip._alpha = 50;
_root.char.undead = true;
Symbol 1607 MovieClip Frame 300
_parent.magicWaterUsed = false;
_root.f_unDeadMc = false;
Symbol 1609 MovieClip Frame 1
stop();
Symbol 1609 MovieClip Frame 2
_root.enemyStop = true;
Symbol 1609 MovieClip Frame 300
_root.enemyStop = false;
_root.f_enemyStopMc = false;
Symbol 1611 MovieClip Frame 1
stop();
Symbol 1611 MovieClip Frame 2
_root.attachMovie("pause", "pause_mc", 50000);
_root.pause_mc._x = 160;
_root.pause_mc._y = 170;
_root.controller.onEnterFrame = null;
clearInterval(_root.f_timeCounter);
_root.bottleTimeMc.stop();
_root.unDeadMc.stop();
_root.enemyStopMc.stop();
Symbol 1611 MovieClip Frame 16
stop();
Symbol 1611 MovieClip Frame 17
stop();
_root.pause_mc.removeMovieClip(this);
_root.f_timeCounter = setInterval(_root.timeCounter, 1000);
_root.controller.onEnterFrame = function () {
_root.controlFunc();
};
if (_root.f_bottleTimeMc == true) {
_root.bottleTimeMc.play();
}
if (_root.f_unDeadMc == true) {
_root.unDeadMc.play();
}
if (_root.f_enemyStopMc == true) {
_root.enemyStopMc.play();
}
Symbol 1613 MovieClip Frame 10
stop();
Symbol 1615 Button
on (release, keyPress "<Enter>") {
play();
}
Symbol 1634 Button
on (release) {
_root.getURL("http://www.koalafun.com/", "_blank");
}
Symbol 1635 Button
on (release) {
_root.gotoAndPlay("gate1");
}
Symbol 1820 Button
on (release) {
fscommand ("quit");
}
Symbol 1823 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 1831 Button
on (release) {
getURL ("http://red-flash.blogspot.com/", _blank);
}
Symbol 1839 Button
on (release) {
_root.help_w.onEnterFrame = null;
_root.gotoAndPlay("start");
}