Frame 1
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
lbar.gotoAndStop(_local4);
loadedString = (" " + String(_local4)) + " %";
if (_local3 >= _local2) {
clearInterval(loadingCall);
lbar.removeMovieClip();
gotoAndStop (33);
}
}
Stage.showMenu = false;
stop();
maxLevel = 8;
gameUrl = "gameitnow.com";
soulLevel = new Array();
royalsoulLevel = new Array();
royalsoulSingle = new Array();
levelUnlocked = new Array();
loadingBar._xscale = 1;
musicOn = true;
soundOn = true;
var loadingCall = setInterval(preloadSite, 50);
if (indexOf("http://" + gameUrl, _root._url) || (indexOf("http://www." + gameUrl, _root._url))) {
onSpelle = true;
} else {
onSpelle = false;
}
Frame 2
setGameDefaults = function (map) {
game = {gravity:7, friction:1, hS:1, vS:-10, tileW:90, maxV:12, wSpeed:4};
game.flickertime = 6;
game.maxflickertime = 18;
game.gg = 1 + (game.gravity / 100);
m = 0.02 * game.tileW;
playspeed = 0.333333333333333 * game.hS;
d = 2;
_root.attachMovie("game", "level", 1);
game.clip = _root.level;
game.levelName = levelnames[map];
game.level = levelmaps[map];
lvH = game.level.length;
lvW = game.level[0].length;
ec = 0;
cc = 0;
mc = 0;
pc = 0;
if (game.gg < 1) {
ggc = 1;
} else {
ggc = game.gg + 0.1;
}
dir = 1;
upreleased = true;
_root._alpha = 0;
finished = false;
fakefinish = false;
killmotion = false;
prototypes();
};
placeExtraCollectable = function (type, xx, yy) {
name = "col" + cc;
cc++;
game[name] = new game["t" + type]();
game.clip.attachMovie(game[name].clip, name, d++);
game[name].name = name;
game[name].specie = type;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.name = name;
clip._x = xx + game[name].clipxoff;
clip._y = yy + game[name].clipyoff;
name = (("t_" + j) + "_") + i;
game[name] = new game.t0();
game.clip.attachMovie("block", name, d++);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
};
instanceCreate = function (xx, yy, linkageName, objectIndex, newName, placeOver) {
j = Math.floor(yy / game.tileW);
i = Math.floor(xx / game.tileW);
if (newName && (newName != -1)) {
name = newName;
} else {
name = (("t_" + j) + "_") + i;
}
game[name] = new game["t" + objectIndex]();
if (placeOver) {
dInc = 1000000 /* 0x0F4240 */;
} else {
dInc = 0;
}
game.clip.attachMovie(linkageName, name, d + dInc);
d++;
game[name].name = name;
clip = game.clip[name];
clip.name = name;
clip.gotoAndStop(game[name].frame);
clip._x = xx;
clip._y = yy;
clip.startX = i * game.tileW;
clip.startY = j * game.tileW;
return(name);
};
instanceUpdate = function (name, newName, xOffset, yOffset) {
oldname = name;
i = Math.floor(game.clip[name]._x / game.tileW);
j = Math.floor(game.clip[name]._y / game.tileW);
if (xOffset > 0) {
i++;
}
if (yOffset > 0) {
j++;
}
if (newName && (newName != -1)) {
name = newName;
} else {
name = (("t_" + j) + "_") + i;
}
if (name != oldname) {
game[name] = game[oldname];
instanceUnset(oldname);
}
game.clip[oldname]._name = name;
game.clip[name].name = name;
game.clip[name].startX = i * game.tileW;
game.clip[name].startY = j * game.tileW;
return(name);
};
instanceRemove = function (name) {
delete game[name];
game.clip[name].removeMovieClip();
};
instanceUnset = function (name) {
delete game[name];
};
checkCollision = function (objectname1, objectname2) {
ob1 = game.clip[objectname1];
ob2 = game.clip[objectname2];
if ((Math.abs(ob1._x - ob2._x) < (2 * game.tileW)) && (Math.abs(ob1._y - ob2._y) < (2 * game.tileW))) {
if (ob1.hitTest(ob2)) {
return(true);
}
return(false);
}
return(false);
};
tileName = function (x, y) {
xx = Math.floor(x / game.tileW);
yy = Math.floor(y / game.tileW);
return((("t_" + yy) + "_") + xx);
};
tileFree = function (objectname, dx, dy) {
object = game.clip[objectname];
x1 = object._x + dx;
x2 = ((object._x + object._width) + dx) - 1;
y1 = object._y + dy;
y2 = ((object._y + object._height) + dy) - 1;
tx1 = Math.floor(x1 / game.tileW);
ty1 = Math.floor(y1 / game.tileW);
tx2 = Math.floor(x2 / game.tileW);
ty2 = Math.floor(y2 / game.tileW);
return((((game[(("t_" + ty1) + "_") + tx1].solid - 1) * (game[(("t_" + ty2) + "_") + tx2].solid - 1)) * (game[(("t_" + ty1) + "_") + tx2].solid - 1)) * (game[(("t_" + ty2) + "_") + tx1].solid - 1));
};
objectAtPosition = function (objectname, targetname, dx, dy) {
object = game.clip[objectname];
target = game.clip[targetname];
if (dx > 0) {
xx = (object._x + object._width) + dx;
} else {
xx = object._x + dx;
}
if (dy > 0) {
yy = (object._y + object._height) + dy;
} else {
yy = object._y + dy;
}
if (!target) {
return(false);
}
if ((((xx >= target._x) && (xx <= (target._x + target._width))) && (yy >= target._y)) && (yy <= ((target._y + target._height) - 1))) {
return(true);
}
if ((dx != 0) || (dy != 0)) {
return(false);
}
xx = (object._x + object._width) + dx;
yy = (object._y + object._height) + dy;
if ((((xx >= target._x) && (xx <= (target._x + target._width))) && (yy >= target._y)) && (yy <= (target._y + target._height))) {
return(true);
}
return(false);
};
movableAtPosition = function (objectname, dx, dy) {
vi = 0;
while (vi < mc) {
vname = "mov" + vi;
if (game.clip[vname]) {
if (objectAtPosition(objectname, vname, dx, dy)) {
return(vname);
}
}
vi++;
}
return(false);
};
pushableAtPosition = function (objectname, dx, dy) {
vi = 0;
while (vi < pc) {
vname = "push" + vi;
if (game.clip[vname]) {
if (objectAtPosition(objectname, vname, dx, dy)) {
return(vname);
}
}
vi++;
}
return(false);
};
anythingSolidAtPosition = function (objectname, dx, dy) {
val = pushableAtPosition(objectname, dx, dy);
if (!val) {
val = movableAtPosition(objectname, dx, dy);
}
return(val);
};
snap = function (player, dx, dy) {
player = game.clip[player];
player._x = Math.round(player._x / dx) * dx;
player._y = Math.round(player._y / dy) * dy;
};
moveToContact = function (objectname, degrees) {
degrees = (degrees / 180) * Math.PI;
object = game.clip[objectname];
x = object._x + object._hspeed;
y = ((object._y + object._vspeed) + (object._height / 2)) - ((Math.cos(degrees) * object._height) / 2);
tx = Math.floor(x / game.tileW);
ty = Math.floor(y / game.tileW);
if (game[(("t_" + ty) + "_") + tx].solid == 0) {
x = (object._x + object._hspeed) + object._width;
y = ((object._y + object._vspeed) + (object._height / 2)) - ((Math.cos(degrees) * object._height) / 2);
tx = Math.floor(x / game.tileW);
ty = Math.floor(y / game.tileW);
}
tile = game.clip[(("t_" + ty) + "_") + tx];
bx = (tile._x + (tile._width / 2)) + ((Math.sin(degrees - Math.PI) * tile._width) / 2);
by = (tile._y + (tile._height / 2)) - ((Math.cos(degrees - Math.PI) * tile._height) / 2);
object._x = object._x + (((bx + ((object._width / -2) * (Math.sin(degrees) + 1))) - object._x) * Math.abs(Math.sin(degrees)));
object._y = object._y + (((by + ((object._height / 2) * (Math.cos(degrees) - 1))) - object._y) * Math.abs(Math.cos(degrees)));
};
view = function (player, room, roomW, roomH, xBorder, yBorder) {
x = player._x + room._x;
y = player._y + room._y;
if (x < xBorder) {
if (room._x >= 0) {
room._x = 0;
} else {
room._x = room._x - (x - xBorder);
}
} else if (x > (roomW - xBorder)) {
if (room._x <= (((-lvW) * game.tileW) + roomW)) {
room._x = ((-lvW) * game.tileW) + roomW;
} else {
room._x = room._x - ((x - roomW) + xBorder);
}
}
if (y < yBorder) {
if (room._y >= 0) {
room._y = 0;
} else {
room._y = room._y - (y - yBorder);
}
} else if (y > (roomH - yBorder)) {
if (room._y <= (((-lvH) * game.tileW) + roomH)) {
room._y = ((-lvH) * game.tileW) + roomH;
} else {
room._y = room._y - ((y - roomH) + yBorder);
}
}
};
killEnemy = function (targetName, reward) {
placeExtraCollectable(reward, game.clip[targetName]._x - (0.25 * game.tileW), game.clip[targetName]._y - (0.5 * game.tileW));
name = (("releaseSoul" + game.clip[targetName]._x) + "") + game.clip[targetName]._y;
game.clip.attachMovie("releaseSoul", name, d++);
game.clip[name]._x = game.clip[targetName]._x + (game.tileW / 4);
game.clip[name]._y = game.clip[targetName]._y + (game.tileW / 4);
game.clip[name]._xscale = game.tileW / 2;
game.clip[name]._yscale = game.tileW / 2;
game.clip[name]._alpha = 60;
game.clip[targetName + "clip"].removeMovieClip();
game.clip[targetName].removeMovieClip();
};
soundId = new Array();
stopSound = function (id) {
if (id) {
_root[id].stop(soundId[id]);
} else {
_root.sound.stop();
_root.playersound.stop();
_root.bgmusic.stop();
}
};
initSound = function (id) {
_root.createEmptyMovieClip(id, getNextHighestDepth());
_root[id] = new Sound(_root[id]);
soundId[id] = true;
};
playSound = function (id, link, loop) {
if ((soundOn == true) || (id == "bgmusic")) {
if (soundId[id]) {
stopSound(id);
} else {
_root.createEmptyMovieClip(id, getNextHighestDepth());
_root[id] = new Sound(_root[id]);
}
_root[id].attachSound(link);
if (loop == true) {
_root[id].start(0, 999);
} else if (loop) {
_root[id].start(0, loop);
} else {
_root[id].start(0, 1);
}
soundId[id] = link;
}
};
soundVolume = function (id, amount) {
_root[id].setVolume(amount);
};
buildLevel = function (map) {
setGameDefaults(map);
stopSound();
playSound("bgmusic", ("bg" + String(random(10) + 2)) + ".mp3", true);
soundVolume("bgmusic", 50);
skullNr = 1;
k = 0;
j = 1;
while (j <= levelSkulls[map]) {
if (royalsoulSingle[map][j]) {
totalRoyalsoul = totalRoyalsoul + 1;
k = k + 1;
}
skulls = k;
j++;
}
if (!royalsoulSingle[map]) {
royalsoulSingle[map] = new Array();
}
i = 0;
while (i < lvW) {
j = 0;
while (j < lvH) {
if (game.level[j][i] == 2) {
royalsoul = new Array();
k = 1;
while (k <= levelSkulls[map]) {
royalsoul[k] = 0;
k++;
}
name = "player";
game[name] = new game["t" + game.level[j][i]]();
game.clip.attachMovie("player", name, d++);
game.clip.attachMovie("playerclip", "playerclip", 9999999999);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip._visible = false;
clip.stop();
clip.hurt = 0;
game.clip.playerclip._xscale = game.tileW / 1.6;
game.clip.playerclip._yscale = game.tileW / 1.6;
clip._x = i * game.tileW;
clip._y = j * game.tileW;
clip._hspeed = 0;
clip._vspeed = 0;
name = (("t_" + j) + "_") + i;
game[name] = new game.t0();
game.clip.attachMovie("block", name, d++);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
} else if ((game.level[j][i] >= 201) && (game.level[j][i] <= 300)) {
name = "enemy" + ec;
ec++;
game[name] = new game["t" + game.level[j][i]]();
game.clip.attachMovie(game[name].clip, name + "clip", d++);
game.clip.attachMovie(game[name].clipmask, name, d++);
game[name].name = name;
game.clip[name + "clip"].name = name;
game[name].specie = game.level[j][i];
game[name]._hspeed = game[name].hspeed * game[name].moveAtInt;
game[name]._vspeed = game[name].vspeed * game[name].moveAtInt;
clip = game.clip[name];
clip._visible = false;
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.dir = 1;
clip.name = name;
clip._x = (i * game.tileW) + game[name].clipxoff;
clip._y = (j * game.tileW) + game[name].clipyoff;
if (game.level[j][i] == 217) {
clip._y = clip._y + 5;
}
clip = game.clip[name + "clip"];
if (game[name].hspeed != 0) {
clip._xscale = -game.tileW;
} else {
clip._xscale = game.tileW;
}
clip._yscale = game.tileW;
clip._x = (i * game.tileW) + game[name].clipxoff;
clip._y = (j * game.tileW) + game[name].clipyoff;
if (game.level[j][i] == 217) {
clip._y = clip._y - 5;
}
name = (("t_" + j) + "_") + i;
game[name] = new game.t0();
game.clip.attachMovie("block", name, d++);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
} else if ((game.level[j][i] >= 301) && (game.level[j][i] <= 350)) {
name = "mov" + mc;
mc++;
game[name] = new game["t" + game.level[j][i]]();
game.clip.attachMovie(game[name].clip, name, d++);
game[name].name = name;
game[name].specie = game.level[j][i];
game[name]._hspeed = game[name].hspeed * game[name].moveAtInt;
game[name]._vspeed = game[name].vspeed * game[name].moveAtInt;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.name = name;
clip._x = (i * game.tileW) + game[name].clipxoff;
clip._y = (j * game.tileW) + game[name].clipyoff;
if (game.level[j][i] == 311) {
clip._y = clip._y + 1;
}
clip = game.clip[name + "clip"];
clip._xscale = -game.tileW;
clip._yscale = game.tileW;
name = (("t_" + j) + "_") + i;
game[name] = new game.t0();
game.clip.attachMovie("block", name, d++);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
} else if ((game.level[j][i] >= 351) && (game.level[j][i] <= 400)) {
name = "push" + pc;
pc++;
game[name] = new game["t" + game.level[j][i]]();
game.clip.attachMovie(game[name].clip, name, d++);
game[name].name = name;
game[name].specie = game.level[j][i];
clip = game.clip[name];
clip._vspeed = 0;
clip._hspeed = 0;
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.name = name;
clip._x = (i * game.tileW) + game[name].clipxoff;
clip._y = (j * game.tileW) + game[name].clipyoff;
clip = game.clip[name + "clip"];
clip._xscale = -game.tileW;
clip._yscale = game.tileW;
name = (("t_" + j) + "_") + i;
game[name] = new game.t0();
game.clip.attachMovie("block", name, d++);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
} else if ((game.level[j][i] >= 401) && (game.level[j][i] <= 500)) {
name = "col" + cc;
cc++;
game[name] = new game["t" + game.level[j][i]]();
game.clip.attachMovie(game[name].clip, name, d++);
game[name].name = name;
game[name].specie = game.level[j][i];
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.name = name;
if (game.level[j][i] == 404) {
clip.nr = skullNr;
skullNr++;
}
clip._x = (i * game.tileW) + game[name].clipxoff;
clip._y = (j * game.tileW) + game[name].clipyoff;
name = (("t_" + j) + "_") + i;
game[name] = new game.t0();
game.clip.attachMovie("block", name, d++);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
} else if ((game.level[j][i] >= 801) && (game.level[j][i] <= 1000)) {
name = "deco" + d;
game[name] = new game["t" + game.level[j][i]]();
game.clip.attachMovie(game[name].clip, name, d++);
clip = game.clip[name];
clip.name = name;
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip._x = (i * game.tileW) + game[name].clipxoff;
clip._y = (j * game.tileW) + game[name].clipyoff;
name = (("t_" + j) + "_") + i;
game[name] = new game.t0();
game.clip.attachMovie("block", name, d++);
game[name].name = name;
clip = game.clip[name];
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
} else {
name = (("t_" + j) + "_") + i;
game[name] = new game["t" + game.level[j][i]]();
game.clip.attachMovie("block", name, d);
d++;
game[name].name = name;
clip = game.clip[name];
clip.fake = game[name].fake;
clip._xscale = game.tileW;
clip._yscale = game.tileW;
clip.name = name;
clip.gotoAndStop(game[name].frame);
clip._x = i * game.tileW;
clip._y = j * game.tileW;
}
j++;
}
i++;
}
player = game.clip.player;
healthDefault = 75;
player._stamina = 100;
player._health = healthDefault;
_root.attachMovie("statusBar", "statusBar", 99999999);
if (((map <= 4) || (!map)) && (!levelUnlocked[map])) {
statusBar.backtoselect.enabled = false;
statusBar.backtoselect._visible = false;
}
};
step = function () {
if (Key.isDown(82)) {
player._health = -1;
}
if ((_root._alpha < 100) && (!finished)) {
_root._alpha = _root._alpha + 20;
} else if (finished) {
stopSound();
_root.game.clip.removeMovieClip();
_root.statusBar.swapDepths(1);
_root.statusBar.removeMovieClip();
if (!fakefinish) {
if ((map != maxLevel) || (onSpelle)) {
levelUnlocked[map] = true;
}
i = 1;
while (i <= levelSkulls[map]) {
if (royalsoul[i]) {
royalsoulSingle[map][i] = 1;
}
i++;
}
so.data.royalSoulLevel = royalsoulLevel;
so.data.royalSoulSingle = royalsoulSingle;
so.data.levelUnlocked = levelUnlocked;
so.data.soul = soul;
so.data.saved = true;
so.flush();
}
if (levelScreen) {
if ((map == 9) && (!levelUnlocked[10])) {
nextFrame();
} else {
gotoAndStop (12);
}
} else {
_root.nextFrame();
}
}
player._xprevious = player._x;
player._yprevious = player._y;
prevAction = action;
prevActivity = activity;
activity = "idle";
movup = movableAtPosition("player", 0, player._vspeed);
if (!movup) {
movup = movableAtPosition("player", 0.01, player._vspeed);
}
if (!movup) {
movup = pushableAtPosition("player", 0, player._vspeed);
}
if (!movup) {
movup = pushableAtPosition("player", 0.01, player._vspeed);
}
movdown = movableAtPosition("player", 0, 1);
if (!movdown) {
movdown = movableAtPosition("player", 0.01, 1);
}
if (!movdown) {
movdown = pushableAtPosition("player", 0, 1);
}
if (!movdown) {
movdown = pushableAtPosition("player", 0.01, 1);
}
movleft = movableAtPosition("player", (-game.hS) - 1, 0);
if ((!movleft) && (!movdown)) {
movleft = movableAtPosition("player", (-game.hS) - 1, 0.01);
}
movright = movableAtPosition("player", game.hS + 1, 0);
if ((!movright) && (!movdown)) {
movright = movableAtPosition("player", game.hS + 1, 0.01);
}
keyleft = Key.isDown(37);
keyright = Key.isDown(39);
keyup = Key.isDown(38);
keyz = Key.isDown(90);
keyspaceprev = keyspace;
keyspace = Key.isDown(32);
if (keyspace == false) {
smashprev = false;
}
if (smashprev == true) {
keyspace = false;
}
if (blockz) {
keyz = false;
blockz--;
}
if ((keyspace && (keyz)) && (!keyspaceprev)) {
game.hS = game.hS + 3;
}
if ((player._health <= -1) && (player._x)) {
buildLevel(map);
}
if (player._health > healthDefault) {
player._health = healthDefault;
}
if (player._stamina < 0) {
player._health = player._health + player._stamina;
player._stamina = 0;
}
if (player._stamina < 25) {
statusBar.flash.play();
} else {
statusBar.flash.gotoAndStop(1);
}
if (player._stamina < 100) {
if (((map == 1) && (!levelUnlocked[1])) || ((map == 2) && (!levelUnlocked[2]))) {
player._stamina = 100;
}
player._stamina = player._stamina + 0.25;
if ((!keyleft) && (!keyright)) {
player._stamina = player._stamina + 0.35;
}
} else {
player._stamina = 100;
}
if (player._stamina >= 0.5) {
statusBar.sbar.gotoAndStop(Math.round(player._stamina * 5));
} else {
statusBar.sbar.gotoAndStop(1);
}
statusBar.soulField.text = " " + String(soul);
if (levelSkulls[map] > 0) {
statusBar.royalsoulField.text = ((" " + String(skulls)) + "/") + levelSkulls[map];
} else {
statusBar.royalsoulField.text = "0/0";
}
if (player._health >= 0.5) {
statusBar.hbar.gotoAndStop(Math.round(((100 / healthDefault) * player._health) * 5));
} else {
statusBar.hbar.gotoAndStop(1);
}
if (tileFree("player", game[movdown]._hspeed, 0)) {
player._x = player._x + game[movdown]._hspeed;
}
if (keyup && (!blockmovement)) {
if (upreleased) {
if (((!tileFree("player", 0, 1)) || (movdown)) || (action == "wallrun")) {
if (action == "wallrun") {
player._stamina = player._stamina - 10;
game.vS = -14.5 * m;
player._vspeed = game.vS;
if (dir == 1) {
player._hspeed = -12;
} else {
player._hspeed = 12;
}
action = "walljump";
} else {
action = "jump";
if (keyleft || (keyright)) {
game.vS = ((-9.5 - (game.hS / 6)) * m) / (1 + player.slow);
if (game.hS < (3.3 * m)) {
game.hS = 3.5 * m;
}
} else {
game.vS = (-14.5 * m) / (1 + player.slow);
game.hS = game.wSpeed * m;
}
player._stamina = player._stamina + (game.vS / 3);
if (movdown && (game[movdown]._hspeed)) {
game.hS = game.hS + Math.abs(game[movdown]._hspeed);
}
}
} else if (((action != "grabjump") && (tileFree("player", game.hS * dir, -game.tileW) && (!tileFree("player", game.hS * dir, 0)))) || ((!anythingSolidAtPosition("player", game.hS * dir, -game.tileW)) && (anythingSolidAtPosition("player", game.hS * dir, 0)))) {
game.vS = -10.5 * m;
player._stamina = player._stamina + (game.vS / 1.5);
game.hS = game.wSpeed * m;
player._vspeed = game.vS;
name = tileName(player._x + (game.hS * dir), player._y);
if (game[name].solid == 0) {
name = tileName(player._x + (game.hS * dir), player._y + player._height);
}
player._y = game.clip[name]._y + (0.2 * game.tileW);
action = "grabjump";
if (dir == 1) {
player._hspeed = 10;
} else {
player._hspeed = -10;
}
}
}
upreleased = false;
} else {
upreleased = true;
}
if (keyleft && (!blockmovement)) {
if (dir == 1) {
game.hS = (game.wSpeed * m) / (1 + (player.slow * 2));
}
dir = -1;
if ((((action != "wallrun") && (action != "walljump")) && (action != "walljump2")) && (action != "grabjump")) {
activity = "normal";
}
if ((tileFree("player", -game.hS, (-player._vspeed) / Math.abs(player._vspeed - 0.001)) && (!movleft)) && (!((pushleft = pushableAtPosition("player", (-game.hS) - 1, -1))))) {
player._x = player._x - game.hS;
} else if (pushleft && (!tileFree("player", 0, 2))) {
if ((((!game.clip[pushleft]._vspeed) && (tileFree(pushleft, (-5 / game[pushleft].weight) * m, 0))) && (tileFree("player", (-5 / game[pushleft].weight) * m, 0))) && (!movleft)) {
if (!anythingSolidAtPosition(pushleft, (-5 / game[pushleft].weight) * m, 0)) {
player._x = player._x - ((5 / game[pushleft].weight) * m);
game.clip[pushleft]._x = game.clip[pushleft]._x - ((5 / game[pushleft].weight) * m);
}
}
} else if ((((((!tileFree("player", 0, 1)) || (movdown)) && (game.hS > (5.5 * m))) || (action == "wallrun")) && (keyz)) && (!killmotion)) {
if ((tileFree("player", 0, -game.tileW) && (tileFree("player", game.hS * 2, 0))) && (!anythingSolidAtPosition("player", game.hS * 2, 0))) {
if (((action != "wallrun") && (action != "walljump")) && (action != "grabjump")) {
action = "wallrun";
player._stamina = player._stamina - 5;
} else {
player._stamina = player._stamina - 1;
}
player._y = player._y - (game.hS * 2);
}
} else if (action != "jump") {
game.hS = game.wSpeed * m;
}
}
if (keyright && (!blockmovement)) {
if ((dir == -1) && (action != "jump")) {
game.hS = (game.wSpeed * m) / (1 + (player.slow * 2));
}
dir = 1;
if ((((action != "wallrun") && (action != "walljump")) && (action != "walljump2")) && (action != "grabjump")) {
activity = "normal";
}
if ((tileFree("player", game.hS, (-player._vspeed) / Math.abs(player._vspeed - 0.001)) && (!movright)) && (!((pushright = pushableAtPosition("player", game.hS + 1, -1))))) {
player._x = player._x + game.hS;
} else if (pushright && (!tileFree("player", 0, 2))) {
if (((!game.clip[pushright]._vspeed) && (tileFree(pushright, (5 / game[pushright].weight) * m, 0))) && (tileFree("player", (5 / game[pushright].weight) * m, 0))) {
player._x = player._x + ((5 / game[pushright].weight) * m);
game.clip[pushright]._x = game.clip[pushright]._x + ((5 / game[pushright].weight) * m);
}
} else if ((((((!tileFree("player", 0, 1)) || (movdown)) && (game.hS > (5.5 * m))) || (action == "wallrun")) && (keyz)) && (!killmotion)) {
if ((tileFree("player", 0, -game.tileW) && (tileFree("player", (-game.hS) * 2, 0))) && (!anythingSolidAtPosition("player", (-game.hS) * 2, 0))) {
if (action != "wallrun") {
player._stamina = player._stamina - 5;
} else {
player._stamina = player._stamina - 1;
}
player._y = player._y - (game.hS * 2);
}
if ((action != "walljump") && (action != "grabjump")) {
action = "wallrun";
}
} else if (action != "jump") {
game.hS = game.wSpeed * m;
}
}
if (movleft) {
if (((game.clip[movleft]._x + game.clip[movleft]._width) + (game[movleft]._hspeed * 2)) > game.clip.player._x) {
if (tileFree("player", (game.clip[movleft]._x + game.clip[movleft]._width) - game.clip.player._x, 0)) {
game.clip.player._x = (game.clip[movleft]._x + (game[movleft]._hspeed * 2)) + game.clip[movleft]._width;
} else {
player._health = player._health - 20;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
}
} else if (movright) {
if ((game.clip[movright]._x + (game[movright]._hspeed * 2)) < (game.clip.player._x + game.clip.player._width)) {
if (tileFree("player", (game.clip[movright]._x - game.clip.player._width) - game.clip.player._x, 0)) {
game.clip.player._x = (game.clip[movright]._x + (game[movright]._hspeed * 2)) - game.clip.player._width;
} else {
player._health = player._health - 20;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
}
}
if ((((keyz && (!killmotion)) && (!blockmovement)) && ((!tileFree("player", 0, 1)) || (movdown))) && (keyleft || (keyright))) {
if (game.hS < (6.5 * m)) {
game.hS = game.hS + (0.1 * m);
player._stamina = player._stamina - 0.5;
} else if (game.hS < (8 * m)) {
game.hS = game.hS + (0.025 * m);
player._stamina = player._stamina - 0.75;
} else {
player._stamina = player._stamina - 1;
}
if (player.slow) {
game.hS = (game.wSpeed * m) / (1 + player.slow);
}
} else if (((!tileFree("player", 0, 1)) || (movdown)) && (action != "jump")) {
game.hS = (game.wSpeed * m) / (1 + player.slow);
}
if (keyspace) {
action = "smash";
} else {
smash = false;
}
player.slow = 0;
i = 0;
while (i < ec) {
name = "enemy" + i;
room = game.clip;
if ((((((game[name].specie == 201) || (game[name].specie == 214)) || (game[name].specie == 218)) || (game[name].specie == 219)) || (game[name].specie == 220)) || (game[name].specie == 222)) {
if (!game[name].stunned) {
game.clip[name + "clip"].ghosteffect._visible = true;
if (Math.abs(player._x - game.clip[name]._x) > 900) {
movpush = true;
} else if ((!movableAtPosition(name, game[name]._hspeed, 0)) && (!pushableAtPosition(name, game[name]._hspeed, 0))) {
movpush = true;
} else {
movpush = false;
}
if ((tileFree(name, game[name]._hspeed, 0) && (!tileFree(name, (game.clip[name]._width * game[name]._hspeed) / Math.abs(game[name]._hspeed), 1))) && (movpush)) {
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
} else {
game[name]._hspeed = game[name]._hspeed * -1;
game.clip[name + "clip"]._xscale = game.clip[name + "clip"]._xscale * -1;
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
}
game.clip[name + "clip"]._x = game.clip[name]._x + 15;
game.clip[name + "clip"]._y = game.clip[name]._y;
if (game[name].specie == 222) {
game.clip[name + "clip"].rot = game[name]._hspeed;
}
if (checkCollision("player", name)) {
if ((game.clip.player._vspeed > 11) && (game[name].jumpable)) {
if (game[name].specie == 201) {
game[name].stunned = game[name].stuntime;
player._vspeed = -10;
game.clip[name + "clip"].ghosteffect._visible = false;
playSound("sound", "killghost.mp3");
} else if (game[name].specie == 214) {
txx = game.clip[name + "clip"]._x;
tyy = game.clip[name + "clip"]._y;
game.clip[name + "clip"].removeMovieClip();
game.clip.attachMovie("enemy13jumped", name + "clip", d++);
game.clip[name + "clip"]._xscale = ((-Math.abs(game[name]._hspeed)) * 100) / game[name]._hspeed;
game.clip[name + "clip"]._x = txx;
game.clip[name + "clip"]._y = tyy;
game[name].hit = false;
game[name].specie = 215;
playSound("sound", "killghost.mp3");
} else if ((game[name].specie == 219) || (game[name].specie == 220)) {
player._vspeed = -40;
game.clip[name + "clip"].gotoAndPlay(36);
playSound("sound", "killghost.mp3");
}
} else {
player._health = player._health - game[name].damage;
if (game[name].damage) {
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
}
}
} else {
game[name].stunned--;
if (smash) {
player.gotoAndStop(2);
if (checkCollision("player", name)) {
killEnemy(name, 403);
playSound("sound", "killghost.mp3");
}
player.gotoAndStop(1);
}
}
} else if (game[name].specie == 215) {
game.clip[name + "clip"]._x = game.clip[name]._x + 19;
game.clip[name + "clip"]._y = game.clip[name]._y + 19;
if (smash) {
player.gotoAndStop(2);
if (checkCollision("player", name) && (!game[name].hit)) {
game[name].hit = true;
game[name]._hspeed = 14 * dir;
game.clip[name + "clip"].rot = game[name]._hspeed;
}
player.gotoAndStop(1);
} else if (checkCollision("player", name)) {
if (game[name]._hspeed > 10) {
player._health = player._health - (game[name].damage * 3);
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
}
tmov = movableAtPosition(name, game[name]._hspeed * 2, 0);
if ((game[name].hit && (game[tmov].clip == "mov2")) && (Math.abs(game[name]._hspeed) > 10)) {
tclip = game.clip.attachMovie("mov2b", "mov2b", d++);
tclip._x = game.clip[tmov]._x;
tclip._y = game.clip[tmov]._y;
game.clip[tmov].removeMovieClip();
tb = _root.statusBar.textbar;
tb.textField.text = "A wall has been destroyed.";
if (tb._currentframe > 10) {
tb.gotoAndPlay(10);
} else {
tb.play();
}
}
if (Math.abs(player._x - game.clip[name]._x) > 900) {
movpush = true;
} else if ((!movableAtPosition(name, game[name]._hspeed, 0)) && (!pushableAtPosition(name, game[name]._hspeed, 0))) {
movpush = true;
} else {
movpush = false;
}
if ((game[name].hit && (tileFree(name, game[name]._hspeed, 0))) && (movpush)) {
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
if (Math.abs(game[name]._hspeed) > 0) {
if (Math.abs(game[name]._hspeed) > 10) {
if (game[name]._hspeed > 0) {
game[name]._hspeed = game[name]._hspeed - 0.05;
} else {
game[name]._hspeed = game[name]._hspeed + 0.05;
}
} else if (game[name]._hspeed > 0) {
game[name]._hspeed = game[name]._hspeed - 0.15;
} else {
game[name]._hspeed = game[name]._hspeed + 0.15;
}
}
} else if (game[name].hit) {
game[name]._hspeed = game[name]._hspeed / -1.2;
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
}
if (Math.abs(game[name]._hspeed) < 0.1) {
game[name].hit = false;
game.clip[name + "clip"].rot = 0;
}
if ((tileFree(name, 0, game[name]._vspeed + 2) && (!movableAtPosition(name, 0, game[name]._vspeed + 2))) && (!pushableAtPosition(name, 0, game[name]._vspeed + 2))) {
if (game[name]._vspeed == 0) {
game[name]._vspeed = 1;
} else {
game[name]._vspeed = game[name]._vspeed + 0.3;
game[name]._vspeed = game[name]._vspeed * game.gg;
if (game[name]._vspeed > (12 * m)) {
game[name]._vspeed = 12 * m;
}
}
} else {
game[name]._vspeed = 0;
}
game.clip[name]._y = game.clip[name]._y + game[name]._vspeed;
if (game[name].hit) {
game.clip[name + "clip"].rot = game[name]._hspeed * 3;
}
} else if ((game[name].specie == 202) || (game[name].specie == 203)) {
game.clip[name + "clip"]._x = game.clip[name]._x + game.tileW;
game.clip[name + "clip"]._y = game.clip[name]._y;
if (((((player._x > game.clip[name]._x) && (player._x < (game.clip[name]._x + game.clip[name]._width))) && (player._y > game.clip[name]._y)) && (!game[name]._vspeed)) && (!game[name].falling)) {
game[name].falling = true;
game[name]._vspeed = game[name].vspeed * m;
game.clip[name + "clip"].play();
}
if (game[name]._vspeed != 0) {
game[name]._vspeed = game[name]._vspeed * game.gg;
if (game[name]._vspeed > (8 * m)) {
game[name]._vspeed = 8 * m;
}
}
game.clip[name]._y = game.clip[name]._y + game[name]._vspeed;
if ((((((!tileFree(name, 0, 1)) || (movableAtPosition(name, 0, 1))) || (movableAtPosition(name, 0.01, 1))) || (pushableAtPosition(name, 0, 1))) || (pushableAtPosition(name, 0.01, 1))) && (game[name].falling)) {
game[name]._vspeed = 0;
game.clip[name + "clip"]._y = ((Math.ceil(game.clip[name]._y / game.tileW) * game.tileW) - game.clip[name]._height) + (game.tileW / 4);
game.clip[name + "clip"].play();
game.clip[name].removeMovieClip();
}
if (checkCollision(name, "player")) {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
} else if (((game[name].specie == 204) || (game[name].specie == 205)) || (game[name].specie == 223)) {
if (Math.abs(player._y - game.clip[name]._y) < (game.tileW * 2)) {
dd = player._x - game.clip[name]._x;
if ((game[name].specie != 223) || (player._x < game.clip[name]._x)) {
if ((dd < 0) && (dd > ((-game.tileW) * 8))) {
game.clip[name + "clip"].play();
} else if ((dd >= 0) && (dd < (game.tileW * 8))) {
game.clip[name + "clip"].play();
}
}
}
} else if (game[name].specie == 206) {
game.clip[name + "clip"]._x = game.clip[name]._x + game.tileW;
game.clip[name + "clip"]._y = game.clip[name]._y;
if (checkCollision(name, "player")) {
player._health = player._health - game[name].damage;
player._vspeed = -8;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
} else if (game[name].specie == 207) {
playernear = 0;
if (Math.abs((player._x + (player._width / 2)) - (game.clip[name]._x + (game.clip[name]._width / 2))) < 10) {
tooclose = true;
} else {
tooclose = false;
}
game.clip[name + "clip"]._x = game.clip[name]._x;
game.clip[name + "clip"]._y = game.clip[name]._y + game.tileW;
if (game.clip[name].dir < 0) {
game.clip[name + "clip"]._x = game.clip[name + "clip"]._x + game.clip[name + "clip"]._width;
}
game.clip[name + "clip"]._xscale = 40 * game.clip[name].dir;
game.clip[name + "clip"]._yscale = 40;
if (checkCollision(name, "player")) {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
player.slow = 1;
}
if ((Math.abs(player._x - game.clip[name]._x) < 200) && (Math.abs(player._y - game.clip[name]._y) < 200)) {
playernear = 1;
if (!tooclose) {
if (player._x < (game.clip[name]._x + (game.clip[name]._width / 2))) {
game.clip[name].dir = -1;
} else {
game.clip[name].dir = 1;
}
}
}
if (!tooclose) {
if (((tileFree(name, game[name].hspeed * game.clip[name].dir, 0) && (!tileFree(name, game.clip[name]._width * game.clip[name].dir, 1 + game.tileW))) && (!movableAtPosition(name, game[name].hspeed * game.clip[name].dir, 0))) && (!pushableAtPosition(name, game[name].hspeed * game.clip[name].dir, 0))) {
game.clip[name]._x = game.clip[name]._x + (game[name].hspeed * game.clip[name].dir);
} else if (!playernear) {
game.clip[name].dir = game.clip[name].dir * -1;
game.clip[name]._x = game.clip[name]._x + (game[name].hspeed * game.clip[name].dir);
}
}
} else if ((game[name].specie == 208) || (game[name].specie == 213)) {
if (game[name].specie == 208) {
edir = 1;
} else {
edir = -1;
}
game.clip[name + "clip"]._xscale = 100 * edir;
game.clip[name + "clip"]._yscale = 100;
dx = player._x - game.clip[name]._x;
dy = player._y - (game.clip[name]._y + 50);
if ((dx * edir) > 0) {
len = Math.sqrt((dx * dx) + (dy * dy));
rot = (Math.atan((dy / dx) * edir) / Math.PI) * 180;
} else {
len = Math.sqrt((dx * dx) + (dy * dy)) / Math.abs(dx / 8);
rot = (Math.atan((dy / (-dx)) * edir) / Math.PI) * 180;
}
game.clip[name + "clip"].len = len;
game.clip[name + "clip"].rot = rot;
if (game.clip[name + "clip"].worm.head.hitTest(player)) {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
} else if (game[name].specie == 209) {
if (!game[name].stunned) {
game.clip[name + "clip"].ghosteffect._visible = true;
if ((tileFree(name, game[name]._hspeed, 0) && (!tileFree(name, (game.clip[name]._width * game[name]._hspeed) / Math.abs(game[name]._hspeed), 1))) && (!pushableAtPosition(name, game[name]._hspeed, 0))) {
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
} else {
game[name]._hspeed = game[name]._hspeed * -1;
game.clip[name + "clip"]._xscale = game.clip[name + "clip"]._xscale * -1;
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
}
game.clip[name + "clip"]._x = game.clip[name]._x + 15;
game.clip[name + "clip"]._y = game.clip[name]._y;
if (checkCollision("player", name)) {
if (game.clip.player._vspeed > 0.1) {
game[name].stunned = game[name].stuntime;
player._vspeed = -10;
game.clip[name + "clip"].ghosteffect._visible = false;
playSound("sound", "killghost.mp3");
} else {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
}
if (Math.abs(player._y - game.clip[name]._y) < (game.tileW * 2)) {
if (((((player._x - game.clip[name]._x) < 0) && ((player._x - game.clip[name]._x) > -400)) && (game[name]._hspeed < 0)) && (game.clip[name + "clip"].mouth._currentframe == 1)) {
nname = "enemyplasma" + d;
game.clip.attachMovie("enemy9plasma", nname, d++);
game.clip[nname]._x = game.clip[name]._x;
game.clip[nname]._y = game.clip[name]._y + (0.25 * game.tileW);
game.clip[nname].name = nname;
game.clip[nname].damage = game[name].damage * 20;
game.clip[nname].dir = -1;
game.clip[nname]._hspeed = 7;
game.clip[name + "clip"].mouth.play();
} else if (((((player._x - game.clip[name]._x) > 0) && ((player._x - game.clip[name]._x) < 400)) && (game[name]._hspeed > 0)) && (game.clip[name + "clip"].mouth._currentframe == 1)) {
nname = "enemyplasma" + d;
game.clip.attachMovie("enemy9plasma", nname, d++);
game.clip[nname]._x = (game.clip[name]._x + game.clip[name]._width) - game.clip[nname]._width;
game.clip[nname]._y = game.clip[name]._y + (0.25 * game.tileW);
game.clip[nname].name = nname;
game.clip[nname].damage = game[name].damage * 20;
game.clip[nname].dir = 1;
game.clip[nname]._hspeed = 7;
game.clip[name + "clip"].mouth.play();
}
}
} else {
game[name].stunned--;
}
} else if (((game[name].specie == 210) || (game[name].specie == 211)) || (game[name].specie == 212)) {
if ((game[name].specie == 210) || (game[name].specie == 211)) {
game.clip[name + "clip"]._x = (game.clip[name]._x + game.tileW) + 20;
} else {
game.clip[name + "clip"]._x = game.clip[name]._x;
}
game.clip[name + "clip"]._y = game.clip[name]._y;
if (checkCollision(name, "player")) {
if ((game.clip[name + "clip"]._currentframe > 5) && (game.clip[name + "clip"]._currentframe < 12)) {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
game.clip[name + "clip"].play();
}
} else if (game[name].specie == 216) {
game.clip[name + "clip"]._x = game.clip[name]._x + 15;
game.clip[name + "clip"]._y = game.clip[name]._y - 8;
game[name]._vspeed = game[name]._vspeed + game.gg;
if (Math.abs(player._x - game.clip[name]._x) > 900) {
movpush = true;
} else if ((!movableAtPosition(name, game[name]._vspeed, 0)) && (!pushableAtPosition(name, game[name]._vspeed, 0))) {
movpush = true;
} else {
movpush = false;
}
if (tileFree(name, 0, game[name]._vspeed) && movpush) {
if (game[name]._vspeed > 14) {
game[name]._vspeed = 14;
}
} else if (game[name]._vspeed < 0) {
game[name]._vspeed = game[name]._vspeed * -0.5;
} else {
game[name]._vspeed = 0;
}
game.clip[name]._y = game.clip[name]._y + game[name]._vspeed;
if (checkCollision(name, "player")) {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
} else if (game[name].specie == 217) {
if (checkCollision(name, "player")) {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
} else if (game[name].specie == 221) {
if (!game[name].stunned) {
game.clip[name + "clip"].ghosteffect._visible = true;
if (Math.abs(player._x - game.clip[name]._x) > 900) {
movpush = true;
} else if ((!movableAtPosition(name, game[name]._hspeed, 0)) && (!pushableAtPosition(name, game[name]._hspeed, 0))) {
movpush = true;
} else {
movpush = false;
}
if (tileFree(name, game[name]._hspeed, 0) && movpush) {
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
} else {
game[name]._hspeed = game[name]._hspeed * -1;
game.clip[name + "clip"]._xscale = game.clip[name + "clip"]._xscale * -1;
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
}
game.clip[name + "clip"]._x = game.clip[name]._x + 15;
game.clip[name + "clip"]._y = game.clip[name]._y;
if (checkCollision("player", name)) {
player._health = player._health - game[name].damage;
if (game[name].damage) {
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
}
} else {
game[name].stunned--;
if (smash) {
player.gotoAndStop(2);
if (checkCollision("player", name)) {
killEnemy(name, 403);
playSound("sound", "killghost.mp3");
}
player.gotoAndStop(1);
}
}
} else if ((game[name].specie == 224) || (game[name].specie == 225)) {
if (!game.clip[name].time) {
game.clip[name].time = game[name].time;
}
if (game[name].specie == 224) {
game.clip[name + "clip"]._x = game.clip[name]._x + 15;
game.clip[name + "clip"]._y = game.clip[name]._y;
playernear = 0;
if (Math.abs((player._x + (player._width / 2)) - (game.clip[name]._x + (game.clip[name]._width / 2))) < 10) {
tooclose = true;
} else {
tooclose = false;
}
if ((Math.abs(player._x - game.clip[name]._x) < 500) && (Math.abs(player._y - game.clip[name]._y) < 500)) {
playernear = 1;
if (!tooclose) {
if (player._x < (game.clip[name]._x + (game.clip[name]._width / 2))) {
game.clip[name].dir = -1;
} else {
game.clip[name].dir = 1;
}
}
}
if (!tooclose) {
if ((tileFree(name, game[name].hspeed * game.clip[name].dir, 0) && (!movableAtPosition(name, game[name].hspeed * game.clip[name].dir, 0))) && (!pushableAtPosition(name, game[name].hspeed * game.clip[name].dir, 0))) {
game.clip[name]._x = game.clip[name]._x + (game[name].hspeed * game.clip[name].dir);
} else if (!playernear) {
game.clip[name].dir = game.clip[name].dir * -1;
game.clip[name]._x = game.clip[name]._x + (game[name].hspeed * game.clip[name].dir);
}
}
} else {
game.clip[name + "clip"]._x = game.clip[name]._x;
game.clip[name + "clip"]._y = game.clip[name]._y;
}
if (checkCollision(name, "player")) {
if (smash) {
killEnemy(name, 403);
playSound("sound", "killghost.mp3");
} else {
player._health = player._health - game[name].damage;
player.hurt = player.hurt + ((game.flickertime * 2) + 2);
}
}
game.clip[name].time--;
if (game.clip[name].time == 1) {
if (player._y > game.clip[name]._y) {
nname = "enemyplasma" + d;
game.clip.attachMovie("enemy9plasma", nname, d++);
game.clip[nname]._x = game.clip[name]._x + (0.5 * game.tileW);
game.clip[nname]._y = game.clip[name]._y + (0.25 * game.tileW);
game.clip[nname].name = nname;
game.clip[nname].damage = game[name].damage * 20;
if (player._x > game.clip[nname]._x) {
game.clip[nname].dir = 1;
} else {
game.clip[nname].dir = -1;
}
a = Math.atan((game.clip[nname]._y - player._y) / (player._x - game.clip[nname]._x));
game.clip[nname]._hspeed = 8 * Math.cos(a);
game.clip[nname]._vspeed = 8 * Math.sin(a);
game.clip[name + "clip"].mouth.play();
}
}
}
if ((((player._x > game.clip[name]._x) && (player._x < (game.clip[name]._x + game.clip[name]._width))) && (player._y > game.clip[name]._y)) && ((game.clip[name]._y - player._y) > (-game.tileW))) {
game.clip[name + "clip"].play();
}
i++;
}
i = 0;
while (i < pc) {
name = "push" + i;
if (!game.clip[name]._vspeed) {
if (tileFree(name, 0, 1)) {
game.clip[name]._vspeed = game[name].weight;
}
}
if (game.clip[name]._vspeed || (Math.abs(game.clip[name]._x - player._x) < 100)) {
mov = pushableAtPosition(name, 0, game.clip[name]._vspeed);
if (!mov) {
mov = pushableAtPosition(name, 0.01, game.clip[name]._vspeed);
}
if (!mov) {
mov = movableAtPosition(name, 0, game.clip[name]._vspeed);
}
if (!mov) {
mov = movableAtPosition(name, 0.01, game.clip[name]._vspeed);
}
if (game.clip[name]._vspeed != 0) {
if (tileFree(name, 0, game.clip[name]._vspeed)) {
if (!mov) {
game.clip[name]._y = game.clip[name]._y + game.clip[name]._vspeed;
game.clip[name]._vspeed = game.clip[name]._vspeed + (game[name].weight / 15);
game.clip[name]._vspeed = game.clip[name]._vspeed * game.gg;
if (game.clip[name]._vspeed > (7 + (game[name].weight * 3))) {
game.clip[name]._vspeed = 7 + (game[name].weight * 3);
}
} else {
snap(name, 1, game.tileW);
game.clip[name]._vspeed = 0;
playSound("sound", "cratedrop.mp3");
if (tileFree(name, game[mov]._hspeed, 0)) {
game.clip[name]._x = game.clip[name]._x + game[mov]._hspeed;
}
}
} else {
snap(name, 1, game.tileW);
game.clip[name]._vspeed = 0;
playSound("sound", "cratedrop.mp3");
}
} else if (game.clip[name]._hspeed != 0) {
if (tileFree(name, game.clip[mov]._hspeed, 0)) {
game.clip[name]._x = game.clip[name]._x + game.clip[mov]._hspeed;
}
}
}
game[push]._hspeed = 0;
i++;
}
i = 0;
while (i < mc) {
name = "mov" + i;
if (tileFree(name, game[name]._hspeed, 0) && (!((mov = movableAtPosition(name, game[name]._hspeed, 0))))) {
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
if ((push = pushableAtPosition(name, game[name]._hspeed, 0))) {
if (tileFree(push, game[name]._hspeed, 0) && (!((mov = movableAtPosition(push, game[name]._hspeed, 0))))) {
game.clip[push]._x = game.clip[push]._x + game[name]._hspeed;
game[push]._hspeed = game[name]._hspeed;
} else {
game[name]._hspeed = game[name]._hspeed * -1;
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
}
}
} else {
if (mov) {
game[mov]._hspeed = game[mov]._hspeed * -1;
game.clip[mov]._x = game.clip[mov]._x + game[mov]._hspeed;
}
game[name]._hspeed = game[name]._hspeed * -1;
game.clip[name]._x = game.clip[name]._x + game[name]._hspeed;
}
if (tileFree(name, 0, game[name]._vspeed)) {
game.clip[name]._y = game.clip[name]._y + game[name]._vspeed;
} else {
game[name]._vspeed = game[name]._vspeed * -1;
game.clip[name]._y = game.clip[name]._y + game[name]._vspeed;
}
if (((game[name].specie == 306) || (game[name].specie == 309)) || (game[name].specie == 311)) {
if ((((Math.abs((player._y + player._height) - game.clip[name]._y) < 3) && (((player._y + player._height) - 3) < game.clip[name]._y)) && ((player._x + player._width) > game.clip[name]._x)) && (player._x < (game.clip[name]._x + game.clip[name]._width))) {
game.clip[name].crash++;
}
}
if ((game[name].specie == 310) || (game[name].specie == 312)) {
if (((Math.abs((player._y - game.clip[name]._y) - game.clip[name]._height) < 20) && ((player._x + player._width) > game.clip[name]._x)) && (player._x < (game.clip[name]._x + game.clip[name]._width))) {
game.clip[name].crash++;
}
}
i++;
}
i = 0;
while (i < cc) {
name = "col" + i;
if (Math.abs(game.clip[name]._x - player._x) < (350 + game.tileW)) {
if ((checkCollision(name, "player") || (pushableAtPosition(name, 0, -1))) || (pushableAtPosition(name, 0.01, -1))) {
if (game[name].activate && (game.clip[name]._currentframe == 1)) {
game.clip[name].play();
type = game[name].activatetype;
if (type == "mov") {
c = mc;
} else if (type == "enemy") {
c = ec;
}
j = 0;
while (j < c) {
if (game[type + j].specie == game[name].activate) {
game[type + j]._hspeed = game[type + j].hspeed;
game[type + j]._vspeed = game[type + j].vspeed;
if (game.clip[type + j]._currentframe == 1) {
game.clip[type + j].play();
}
}
j++;
}
} else if (!game[name].activate) {
soul = soul + game[name].soul;
if (game[name].soul) {
playSound("sound", ("dot" + (random(1) + 1)) + ".mp3");
}
if (game[name].royalsoul) {
royalsoul[game.clip[name].nr] = 1;
if (!royalsoulSingle[map][game.clip[name].nr]) {
skulls = skulls + 1;
}
playSound("sound", "skull.mp3");
}
game.clip[name].removeMovieClip();
delete game[name];
}
} else if (!game[name].toggle) {
game.clip[name].gotoAndStop(1);
type = game[name].activatetype;
if (type == "mov") {
c = mc;
} else if (type == "enemy") {
c = ec;
}
j = 0;
while (j < c) {
if (game[type + j].specie == game[name].activate) {
game[type + j]._hspeed = 0;
game[type + j]._vspeed = 0;
if (game.clip[type + j]._currentframe != 1) {
game.clip[type + j].play();
}
}
j++;
}
}
}
i++;
}
if ((player._vspeed > 0) && (action != "wallrun")) {
action = "stand";
}
if ((tileFree("player", 0, player._vspeed) && (tileFree("player", 0, 1))) && (!movdown)) {
player._vspeed = player._vspeed + (game.gg * m);
} else if ((!tileFree("player", 0, player._vspeed)) && (player._vspeed > 0)) {
player._vspeed = 0;
action = "stand";
activity = "fall";
if (!keyz) {
game.hS = game.wSpeed * m;
}
player._y = ((Math.floor(player._y / game.tileW) * game.tileW) + game.tileW) - player._height;
} else if ((!tileFree("player", 0, player._vspeed)) && (player._vspeed < 0)) {
player._vspeed = 1;
action = "stand";
game.hS = game.wSpeed * m;
dy = (((Math.floor(player._y / game.tileW) * game.tileW) + game.tileW) - player._height) - player._y;
player._y = Math.floor(player._y / game.tileW) * game.tileW;
}
if ((player._vspeed < 0) && (movup)) {
player._vspeed = 0;
action = "stand";
game.hS = game.wSpeed * m;
player._y = game.clip[movup]._y + game.clip[movup].height;
}
if ((movdown && (((player._y + player._height) + player._vspeed) > game.clip[movdown]._y)) && (player._vspeed > 0)) {
player._vspeed = 0;
action = "stand";
if (!keyz) {
game.hS = game.wSpeed * m;
}
player._y = game.clip[movdown]._y - player._height;
}
if (game.hS > (game.wSpeed * m)) {
activity = "sprint";
}
if ((!tileFree("player", 0, 1)) && (!keyup)) {
action = "stand";
}
if (blockmovement) {
blockmovement--;
}
player._y = player._y + player._vspeed;
if (player._hspeed) {
if (tileFree("player", player._hspeed, 0) && (!anythingSolidAtPosition("player", player._hspeed, 0))) {
player._x = player._x + player._hspeed;
}
}
if (player._hspeed > game.friction) {
player._hspeed = player._hspeed - game.friction;
} else if (player._hspeed < (-game.friction)) {
player._hspeed = player._hspeed + game.friction;
} else {
player._hspeed = 0;
}
if (action == "wallrun") {
if (player._vspeed > (((game.maxV * m) + (game.hS * 2)) * 0.8)) {
activity = "fall";
action = "stand";
game.hS = game.wSpeed * m;
player._vspeed = game.maxV * m;
}
} else {
if (player._vspeed > 0) {
activity = "fall";
}
if (player._vspeed > (game.maxV * m)) {
action = "stand";
game.hS = ((game.hS * 2) + (game.wSpeed * m)) / 3;
player._vspeed = game.maxV * m;
}
}
if ((((prevAction == "wallrun") && (prevAction != action)) && (action != "walljump")) && (action != "grabjump")) {
action = "stand";
game.hS = game.wSpeed * m;
}
if (keyspace) {
action = "smash";
}
if (killmotion) {
action = "stand";
activity = "idle";
game.hS = (game.wSpeed * m) / (1 + player.slow);
killmotion = false;
}
playspeed = (0.2 * game.hS) / m;
if (player.hurt) {
if (player.hurt > game.maxflickertime) {
player.hurt = player.hurt - (game.flickertime * 2);
}
player.hurt--;
if (Math.round(player.hurt / (game.flickertime * 2)) == (Math.round(player.hurt / game.flickertime) / 2)) {
game.clip.playerclip._alpha = 100;
} else {
game.clip.playerclip._alpha = 40;
}
if (player.hurt == 1) {
game.clip.playerclip._alpha = 100;
}
}
if (dir == -1) {
if (activity == "idle") {
if (action == "smash") {
game.clip.playerclip.gotoAndStop(29);
} else if (action == "jump") {
game.clip.playerclip.gotoAndStop(10);
} else if (action == "walljump") {
game.clip.playerclip.gotoAndStop(25);
} else if (action == "grabjump") {
game.clip.playerclip.gotoAndStop(27);
} else {
game.clip.playerclip.gotoAndStop(21);
action == "idle";
}
} else if (activity == "normal") {
if (action == "smash") {
game.clip.playerclip.gotoAndStop(29);
} else if (action == "jump") {
if ((!tileFree("player", 0, 1)) || (movdown)) {
playspeed = playspeed + 0.5;
game.clip.playerclip.gotoAndStop(6);
}
} else {
game.clip.playerclip.gotoAndStop(2);
playspeed = 1.6;
action = "walk";
}
} else if (activity == "sprint") {
if (action == "smash") {
game.clip.playerclip.gotoAndStop(29);
} else if (action == "jump") {
playspeed = playspeed + 0.5;
game.clip.playerclip.gotoAndStop(6);
} else if (action == "wallrun") {
game.clip.playerclip.gotoAndStop(23);
} else if (action == "walljump") {
game.clip.playerclip.gotoAndStop(25);
} else if (action == "grabjump") {
game.clip.playerclip.gotoAndStop(27);
} else {
game.clip.playerclip.gotoAndStop(4);
playspeed = 1.3 + (0.0833333333333333 * game.hS);
action = "run";
}
} else if (activity == "fall") {
game.clip.playerclip.gotoAndStop(8);
}
} else if (dir == 1) {
if (activity == "idle") {
if (action == "smash") {
game.clip.playerclip.gotoAndStop(28);
} else if (action == "jump") {
game.clip.playerclip.gotoAndStop(9);
} else if (action == "walljump") {
game.clip.playerclip.gotoAndStop(24);
} else if (action == "grabjump") {
game.clip.playerclip.gotoAndStop(26);
} else {
game.clip.playerclip.gotoAndStop(20);
action == "idle";
}
} else if (activity == "normal") {
if (action == "smash") {
game.clip.playerclip.gotoAndStop(28);
} else if (action == "jump") {
if ((!tileFree("player", 0, 1)) || (movdown)) {
playspeed = playspeed + 0.5;
game.clip.playerclip.gotoAndStop(5);
}
} else {
game.clip.playerclip.gotoAndStop(1);
playspeed = 1.6;
action = "walk";
}
} else if (activity == "sprint") {
if (action == "smash") {
game.clip.playerclip.gotoAndStop(28);
} else if (action == "jump") {
playspeed = playspeed + 0.5;
game.clip.playerclip.gotoAndStop(5);
} else if (action == "wallrun") {
game.clip.playerclip.gotoAndStop(22);
} else if (action == "walljump") {
game.clip.playerclip.gotoAndStop(24);
} else if (action == "grabjump") {
game.clip.playerclip.gotoAndStop(26);
} else {
game.clip.playerclip.gotoAndStop(3);
playspeed = 1.3 + (0.0833333333333333 * game.hS);
action = "run";
}
} else if (activity == "fall") {
game.clip.playerclip.gotoAndStop(7);
}
}
if (action == "walk") {
if (prevAction != "walk") {
playSound("playersound", "walk.mp3");
}
} else if ((action != "run") && (action != "wallrun")) {
stopSound("playersound");
}
if (action == "run") {
if (prevAction != "run") {
playSound("playersound", "run.mp3");
}
} else if ((action != "walk") && (action != "wallrun")) {
stopSound("playersound");
}
if ((prevActivity == "fall") && (activity == "idle")) {
playSound("playersound", ("jumpdown" + String(random(2) + 1)) + ".mp3");
} else if ((prevActivity == "fall") && ((activity == "sprint") || (activity == "normal"))) {
playSound("playersound", ("jumpdown" + String(random(2) + 1)) + ".mp3");
}
view(game.clip.player, game.clip, 700, 500, 250, 245);
game.t1._visible = false;
game.clip.playerclip._x = player._x - (1 * m);
game.clip.playerclip._y = player._y - (12.5 * m);
};
prototypes = function () {
game.t0 = function () {
};
game.t0.prototype.frame = 1;
game.t0.prototype.solid = 0;
game.t0.prototype.points = 0;
game.t0.prototype.health = 0;
game.t0.prototype.jumpthrough = 0;
game.t0.prototype.damage = 0;
game.t0.prototype.destroyable = 0;
game.t0.prototype.gravity = 0;
game.t0.prototype.special = 0;
game.t1 = function () {
};
game.t1.prototype.frame = 2;
game.t1.prototype.solid = 1;
game.t1.prototype.fake = 0;
game.t1.prototype.points = 0;
game.t1.prototype.health = 0;
game.t1.prototype.jumpthrough = 0;
game.t1.prototype.damage = 0;
game.t1.prototype.destroyable = 0;
game.t1.prototype.gravity = 0;
game.t1.prototype.special = 0;
game.t3 = function () {
};
game.t3.prototype = new game.t1();
game.t3.prototype.frame = 3;
game.t4 = function () {
};
game.t4.prototype = new game.t1();
game.t4.prototype.frame = 4;
game.t5 = function () {
};
game.t5.prototype = new game.t1();
game.t5.prototype.frame = 5;
game.t6 = function () {
};
game.t6.prototype = new game.t1();
game.t6.prototype.frame = 6;
game.t7 = function () {
};
game.t7.prototype = new game.t1();
game.t7.prototype.frame = 7;
game.t8 = function () {
};
game.t8.prototype = new game.t1();
game.t8.prototype.frame = 8;
game.t9 = function () {
};
game.t9.prototype = new game.t1();
game.t9.prototype.frame = 9;
game.t10 = function () {
};
game.t10.prototype = new game.t1();
game.t10.prototype.frame = 10;
game.t11 = function () {
};
game.t11.prototype = new game.t1();
game.t11.prototype.frame = 11;
game.t12 = function () {
};
game.t12.prototype = new game.t1();
game.t12.prototype.frame = 12;
game.t13 = function () {
};
game.t13.prototype = new game.t1();
game.t13.prototype.frame = 13;
game.t14 = function () {
};
game.t14.prototype = new game.t1();
game.t14.prototype.frame = 14;
game.t15 = function () {
};
game.t15.prototype = new game.t1();
game.t15.prototype.frame = 15;
game.t16 = function () {
};
game.t16.prototype = new game.t1();
game.t16.prototype.frame = 16;
game.t17 = function () {
};
game.t17.prototype = new game.t1();
game.t17.prototype.frame = 17;
game.t18 = function () {
};
game.t18.prototype = new game.t1();
game.t18.prototype.frame = 18;
game.t19 = function () {
};
game.t19.prototype = new game.t1();
game.t19.prototype.frame = 19;
game.t20 = function () {
};
game.t20.prototype = new game.t1();
game.t20.prototype.frame = 20;
game.t21 = function () {
};
game.t21.prototype = new game.t1();
game.t21.prototype.frame = 21;
game.t22 = function () {
};
game.t22.prototype = new game.t1();
game.t22.prototype.frame = 15;
game.t22.prototype.solid = 0;
game.t22.prototype.fake = 1;
game.t201 = function () {
};
game.t201.prototype = new game.t1();
game.t201.prototype.clip = "enemy1";
game.t201.prototype.frame = 80;
game.t201.prototype.clipmask = "enemyNormal";
game.t201.prototype.clipxoff = 0;
game.t201.prototype.clipyoff = 25 * m;
game.t201.prototype.moveAtInt = 1;
game.t201.prototype.damage = 1;
game.t201.prototype.jumpable = true;
game.t201.prototype.hspeed = 1 * m;
game.t201.prototype.stuntime = 300;
game.t202 = function () {
};
game.t202.prototype = new game.t1();
game.t202.prototype.clip = "enemy3";
game.t202.prototype.clipmask = "enemyFlatTop";
game.t202.prototype.clipxoff = 0;
game.t202.prototype.clipyoff = 0;
game.t202.prototype.moveAtInt = 0;
game.t202.prototype.damage = 15;
game.t202.prototype.jumpable = true;
game.t202.prototype.vspeed = 2 * m;
game.t202.prototype.stuntime = 300;
game.t203 = function () {
};
game.t203.prototype = new game.t1();
game.t203.prototype.clip = "enemy3";
game.t203.prototype.clipmask = "enemyFlatTop";
game.t203.prototype.clipxoff = 0;
game.t203.prototype.clipyoff = 0;
game.t203.prototype.moveAtInt = 0;
game.t203.prototype.damage = 15;
game.t203.prototype.jumpable = true;
game.t203.prototype.vspeed = 3 * m;
game.t203.prototype.stuntime = 300;
game.t204 = function () {
};
game.t204.prototype = new game.t1();
game.t204.prototype.clip = "enemy4";
game.t204.prototype.clipmask = "enemyNormal";
game.t204.prototype.clipxoff = 0.5 * game.tileW;
game.t204.prototype.clipyoff = 23 * m;
game.t204.prototype.moveAtInt = 0;
game.t204.prototype.damage = 3;
game.t204.prototype.jumpable = false;
game.t204.prototype.vspeed = 0;
game.t204.prototype.stuntime = 300;
game.t205 = function () {
};
game.t205.prototype = new game.t1();
game.t205.prototype.clip = "enemy5";
game.t205.prototype.clipmask = "enemyNormal";
game.t205.prototype.clipxoff = 0.5 * game.tileW;
game.t205.prototype.clipyoff = 23 * m;
game.t205.prototype.moveAtInt = 0;
game.t205.prototype.damage = 4;
game.t205.prototype.jumpable = false;
game.t205.prototype.vspeed = 0;
game.t205.prototype.stuntime = 300;
game.t206 = function () {
};
game.t206.prototype = new game.t1();
game.t206.prototype.clip = "enemy6";
game.t206.prototype.clipmask = "enemyFlatBottom2";
game.t206.prototype.clipxoff = 0;
game.t206.prototype.clipyoff = 0;
game.t206.prototype.moveAtInt = 0;
game.t206.prototype.damage = 35;
game.t206.prototype.jumpable = false;
game.t206.prototype.vspeed = 0;
game.t206.prototype.stuntime = 300;
game.t207 = function () {
};
game.t207.prototype = new game.t1();
game.t207.prototype.clip = "enemy7";
game.t207.prototype.clipmask = "enemyFlatBottom";
game.t207.prototype.clipxoff = 0;
game.t207.prototype.clipyoff = 0;
game.t207.prototype.moveAtInt = 0;
game.t207.prototype.damage = 0.2;
game.t207.prototype.jumpable = false;
game.t207.prototype.vspeed = 0;
game.t207.prototype.hspeed = 2;
game.t207.prototype.stuntime = 500;
game.t208 = function () {
};
game.t208.prototype = new game.t1();
game.t208.prototype.clip = "enemy8";
game.t208.prototype.clipmask = "enemyFlatLeft";
game.t208.prototype.clipxoff = 0;
game.t208.prototype.clipyoff = 0;
game.t208.prototype.moveAtInt = 0;
game.t208.prototype.damage = 3;
game.t208.prototype.jumpable = false;
game.t208.prototype.vspeed = 0;
game.t208.prototype.hspeed = 0;
game.t208.prototype.stuntime = 500;
game.t209 = function () {
};
game.t209.prototype = new game.t1();
game.t209.prototype.clip = "enemy9";
game.t209.prototype.frame = 80;
game.t209.prototype.clipmask = "enemyNormal";
game.t209.prototype.clipxoff = 0;
game.t209.prototype.clipyoff = 25 * m;
game.t209.prototype.moveAtInt = 1;
game.t209.prototype.damage = 1;
game.t209.prototype.jumpable = true;
game.t209.prototype.hspeed = 1 * m;
game.t209.prototype.stuntime = 300;
game.t210 = function () {
};
game.t210.prototype = new game.t1();
game.t210.prototype.clip = "enemy10";
game.t210.prototype.clipmask = "enemyFlatBottom";
game.t210.prototype.clipxoff = 0;
game.t210.prototype.clipyoff = 2 * m;
game.t210.prototype.moveAtInt = 0;
game.t210.prototype.damage = 5;
game.t210.prototype.jumpable = false;
game.t210.prototype.vspeed = 0;
game.t210.prototype.stuntime = 300;
game.t211 = function () {
};
game.t211.prototype = new game.t1();
game.t211.prototype.clip = "enemy11";
game.t211.prototype.clipmask = "enemyFlatBottom";
game.t211.prototype.clipxoff = 0;
game.t211.prototype.clipyoff = 2 * m;
game.t211.prototype.moveAtInt = 0;
game.t211.prototype.damage = 4;
game.t211.prototype.jumpable = false;
game.t211.prototype.vspeed = 0;
game.t211.prototype.stuntime = 300;
game.t212 = function () {
};
game.t212.prototype = new game.t1();
game.t212.prototype.clip = "enemy12";
game.t212.prototype.clipmask = "enemyFlatLeft";
game.t212.prototype.clipxoff = 0;
game.t212.prototype.clipyoff = 0;
game.t212.prototype.moveAtInt = 0;
game.t212.prototype.damage = 8;
game.t212.prototype.jumpable = false;
game.t212.prototype.vspeed = 0;
game.t212.prototype.hspeed = 0;
game.t212.prototype.stuntime = 300;
game.t213 = function () {
};
game.t213.prototype = new game.t1();
game.t213.prototype.clip = "enemy8";
game.t213.prototype.clipmask = "enemyFlatRight";
game.t213.prototype.clipxoff = game.tileW;
game.t213.prototype.clipyoff = 0;
game.t213.prototype.moveAtInt = 0;
game.t213.prototype.damage = 3;
game.t213.prototype.jumpable = false;
game.t213.prototype.vspeed = 0;
game.t213.prototype.hspeed = 0;
game.t213.prototype.stuntime = 500;
game.t214 = function () {
};
game.t214.prototype = new game.t1();
game.t214.prototype.clip = "enemy13";
game.t214.prototype.frame = 80;
game.t214.prototype.clipmask = "enemySmall";
game.t214.prototype.clipxoff = 0;
game.t214.prototype.clipyoff = 25 * m;
game.t214.prototype.moveAtInt = 1;
game.t214.prototype.damage = 1;
game.t214.prototype.jumpable = true;
game.t214.prototype.hspeed = 1 * m;
game.t214.prototype.stuntime = 300;
game.t216 = function () {
};
game.t216.prototype = new game.t1();
game.t216.prototype.clip = "enemy16";
game.t216.prototype.frame = 80;
game.t216.prototype.clipmask = "enemyNormal";
game.t216.prototype.clipxoff = 0.35 * game.tileW;
game.t216.prototype.clipyoff = 0;
game.t216.prototype.moveAtInt = 1;
game.t216.prototype.damage = 6;
game.t216.prototype.jumpable = false;
game.t216.prototype.vspeed = -16;
game.t216.prototype.stuntime = 0;
game.t217 = function () {
};
game.t217.prototype = new game.t1();
game.t217.prototype.clip = "enemy17";
game.t217.prototype.frame = 80;
game.t217.prototype.clipmask = "enemyFull";
game.t217.prototype.clipxoff = 0;
game.t217.prototype.clipyoff = 5;
game.t217.prototype.moveAtInt = 0;
game.t217.prototype.damage = 15;
game.t217.prototype.jumpable = false;
game.t217.prototype.hspeed = 0;
game.t217.prototype.vspeed = 0;
game.t217.prototype.stuntime = 0;
game.t218 = function () {
};
game.t218.prototype = new game.t1();
game.t218.prototype.clip = "enemy18";
game.t218.prototype.frame = 80;
game.t218.prototype.clipmask = "enemyNormal";
game.t218.prototype.clipxoff = 0;
game.t218.prototype.clipyoff = 25 * m;
game.t218.prototype.moveAtInt = 1;
game.t218.prototype.damage = 4;
game.t218.prototype.jumpable = false;
game.t218.prototype.hspeed = 1 * m;
game.t218.prototype.stuntime = 0;
game.t219 = function () {
};
game.t219.prototype = new game.t1();
game.t219.prototype.clip = "enemy19";
game.t219.prototype.frame = 80;
game.t219.prototype.clipmask = "enemyNormal";
game.t219.prototype.clipxoff = 0;
game.t219.prototype.clipyoff = 25 * m;
game.t219.prototype.moveAtInt = 1;
game.t219.prototype.damage = 0;
game.t219.prototype.jumpable = true;
game.t219.prototype.hspeed = 1 * m;
game.t219.prototype.stuntime = 0;
game.t220 = function () {
};
game.t220.prototype = new game.t1();
game.t220.prototype.clip = "enemy20";
game.t220.prototype.frame = 80;
game.t220.prototype.clipmask = "enemyFlatBottom";
game.t220.prototype.clipxoff = 0;
game.t220.prototype.clipyoff = 0;
game.t220.prototype.moveAtInt = 0;
game.t220.prototype.damage = 0;
game.t220.prototype.jumpable = true;
game.t220.prototype.hspeed = 0;
game.t220.prototype.stuntime = 0;
game.t221 = function () {
};
game.t221.prototype = new game.t1();
game.t221.prototype.clip = "enemy21";
game.t221.prototype.frame = 80;
game.t221.prototype.clipmask = "enemyNormal";
game.t221.prototype.clipxoff = 0;
game.t221.prototype.clipyoff = 25 * m;
game.t221.prototype.moveAtInt = 1;
game.t221.prototype.damage = 3;
game.t221.prototype.jumpable = false;
game.t221.prototype.hspeed = 2 * m;
game.t221.prototype.stuntime = 300;
game.t222 = function () {
};
game.t222.prototype = new game.t1();
game.t222.prototype.clip = "enemy22";
game.t222.prototype.frame = 80;
game.t222.prototype.clipmask = "enemyNormal";
game.t222.prototype.clipxoff = 0;
game.t222.prototype.clipyoff = 25 * m;
game.t222.prototype.moveAtInt = 1;
game.t222.prototype.damage = 5;
game.t222.prototype.jumpable = false;
game.t222.prototype.hspeed = 3 * m;
game.t222.prototype.stuntime = 300;
game.t223 = function () {
};
game.t223.prototype = new game.t1();
game.t223.prototype.clip = "enemy23";
game.t223.prototype.clipmask = "enemyNormal";
game.t223.prototype.clipxoff = 0.5 * game.tileW;
game.t223.prototype.clipyoff = 23 * m;
game.t223.prototype.moveAtInt = 0;
game.t223.prototype.damage = 4;
game.t223.prototype.jumpable = false;
game.t223.prototype.vspeed = 0;
game.t223.prototype.stuntime = 300;
game.t224 = function () {
};
game.t224.prototype = new game.t1();
game.t224.prototype.clip = "enemy24";
game.t224.prototype.frame = 80;
game.t224.prototype.clipmask = "enemyNormal";
game.t224.prototype.clipxoff = 0;
game.t224.prototype.clipyoff = 25 * m;
game.t224.prototype.moveAtInt = 1;
game.t224.prototype.damage = 1;
game.t224.prototype.jumpable = true;
game.t224.prototype.hspeed = 3;
game.t224.prototype.time = 30;
game.t224.prototype.stuntime = 300;
game.t225 = function () {
};
game.t225.prototype = new game.t1();
game.t225.prototype.clip = "enemy25";
game.t225.prototype.frame = 80;
game.t225.prototype.clipmask = "enemyFlatTop";
game.t225.prototype.clipxoff = 0;
game.t225.prototype.clipyoff = 0;
game.t225.prototype.moveAtInt = 1;
game.t225.prototype.damage = 1;
game.t225.prototype.jumpable = true;
game.t225.prototype.hspeed = 0;
game.t225.prototype.time = 30;
game.t225.prototype.stuntime = 300;
game.t301 = function () {
};
game.t301.prototype.clip = "mov1";
game.t301.prototype.clipxoff = 0;
game.t301.prototype.clipyoff = 0;
game.t301.prototype.moveAtInt = 1;
game.t301.prototype.hspeed = 2 * m;
game.t301.prototype.vspeed = 0;
game.t302 = function () {
};
game.t302.prototype.clip = "mov1";
game.t302.prototype.clipxoff = 0;
game.t302.prototype.clipyoff = 0;
game.t302.prototype.moveAtInt = 1;
game.t302.prototype.hspeed = -2 * m;
game.t302.prototype.vspeed = 0;
game.t303 = function () {
};
game.t303.prototype.clip = "mov1";
game.t303.prototype.clipxoff = 0;
game.t303.prototype.clipyoff = 0;
game.t303.prototype.moveAtInt = 0;
game.t303.prototype.hspeed = -2 * m;
game.t303.prototype.vspeed = 0;
game.t304 = function () {
};
game.t304.prototype.clip = "mov1";
game.t304.prototype.clipxoff = 0;
game.t304.prototype.clipyoff = 0;
game.t304.prototype.moveAtInt = 1;
game.t304.prototype.hspeed = 0;
game.t304.prototype.vspeed = -1 * m;
game.t305 = function () {
};
game.t305.prototype.clip = "mov2";
game.t305.prototype.clipxoff = 0;
game.t305.prototype.clipyoff = 0;
game.t305.prototype.moveAtInt = 0;
game.t305.prototype.hspeed = 0;
game.t305.prototype.vspeed = 0;
game.t306 = function () {
};
game.t306.prototype.clip = "mov3";
game.t306.prototype.clipxoff = 0;
game.t306.prototype.clipyoff = 1;
game.t306.prototype.moveAtInt = 0;
game.t306.prototype.crash = 20;
game.t306.prototype.hspeed = 0;
game.t306.prototype.vspeed = 0;
game.t307 = function () {
};
game.t307.prototype.clip = "mov4";
game.t307.prototype.clipxoff = 0;
game.t307.prototype.clipyoff = 1;
game.t307.prototype.moveAtInt = 0;
game.t307.prototype.hspeed = 0;
game.t307.prototype.vspeed = 0;
game.t308 = function () {
};
game.t308.prototype.clip = "mov5";
game.t308.prototype.clipxoff = 0;
game.t308.prototype.clipyoff = 1;
game.t308.prototype.moveAtInt = 0;
game.t308.prototype.hspeed = 0;
game.t308.prototype.vspeed = 0;
game.t309 = function () {
};
game.t309.prototype.clip = "mov6";
game.t309.prototype.clipxoff = 0;
game.t309.prototype.clipyoff = 1;
game.t309.prototype.moveAtInt = 0;
game.t309.prototype.crash = 5;
game.t309.prototype.hspeed = 0;
game.t309.prototype.vspeed = 0;
game.t310 = function () {
};
game.t310.prototype.clip = "mov10";
game.t310.prototype.clipxoff = 0;
game.t310.prototype.clipyoff = 0.1;
game.t310.prototype.moveAtInt = 0;
game.t310.prototype.crash = 1;
game.t310.prototype.hspeed = 0;
game.t310.prototype.vspeed = 0;
game.t311 = function () {
};
game.t311.prototype.clip = "mov11";
game.t311.prototype.clipxoff = 0;
game.t311.prototype.clipyoff = 0;
game.t311.prototype.moveAtInt = 0;
game.t311.prototype.crash = 30;
game.t311.prototype.hspeed = 0;
game.t311.prototype.vspeed = 0;
game.t312 = function () {
};
game.t312.prototype.clip = "mov12";
game.t312.prototype.clipxoff = 0;
game.t312.prototype.clipyoff = 0.1;
game.t312.prototype.moveAtInt = 0;
game.t312.prototype.crash = 1;
game.t312.prototype.hspeed = 0;
game.t312.prototype.vspeed = 0;
game.t351 = function () {
};
game.t351.prototype.clip = "push1";
game.t351.prototype.clipxoff = 0;
game.t351.prototype.clipyoff = 0;
game.t351.prototype.weight = 3;
game.t351.prototype.hspeed = -1 * m;
game.t351.prototype.vspeed = 0;
game.t401 = function () {
};
game.t401.prototype.clip = "col1";
game.t401.prototype.clipxoff = 23 * m;
game.t401.prototype.clipyoff = 23 * m;
game.t401.prototype.damage = 0;
game.t401.prototype.score = 4;
game.t401.prototype.soul = 3;
game.t401.prototype.royalsoul = 0;
game.t402 = function () {
};
game.t402.prototype.clip = "col2";
game.t402.prototype.clipxoff = 0;
game.t402.prototype.clipyoff = 48 * m;
game.t402.prototype.damage = 0;
game.t402.prototype.score = 0;
game.t402.prototype.soul = 0;
game.t402.prototype.royalsoul = 0;
game.t402.prototype.activate = 303;
game.t402.prototype.activatetype = "mov";
game.t402.prototype.toggle = true;
game.t403 = function () {
};
game.t403.prototype.clip = "col3";
game.t403.prototype.clipxoff = game.tileW / 2;
game.t403.prototype.clipyoff = game.tileW / 2;
game.t403.prototype.damage = 0;
game.t403.prototype.score = 0;
game.t403.prototype.soul = 1;
game.t403.prototype.royalsoul = 0;
game.t404 = function () {
};
game.t404.prototype.clip = "col4";
game.t404.prototype.clipxoff = game.tileW / 2;
game.t404.prototype.clipyoff = game.tileW / 2;
game.t404.prototype.damage = 0;
game.t404.prototype.score = 20;
game.t404.prototype.soul = 0;
game.t404.prototype.royalsoul = 1;
game.t405 = function () {
};
game.t405.prototype.clip = "col5";
game.t405.prototype.clipxoff = 0;
game.t405.prototype.clipyoff = 48 * m;
game.t405.prototype.damage = 0;
game.t405.prototype.score = 0;
game.t405.prototype.soul = 0;
game.t405.prototype.royalsoul = 0;
game.t405.prototype.activate = 307;
game.t405.prototype.activatetype = "mov";
game.t405.prototype.toggle = false;
game.t406 = function () {
};
game.t406.prototype.clip = "col6";
game.t406.prototype.clipxoff = 0;
game.t406.prototype.clipyoff = 48 * m;
game.t406.prototype.damage = 0;
game.t406.prototype.score = 0;
game.t406.prototype.soul = 0;
game.t406.prototype.royalsoul = 0;
game.t406.prototype.activate = 308;
game.t406.prototype.activatetype = "mov";
game.t406.prototype.toggle = false;
game.t801 = function () {
};
game.t801.prototype.clip = "deco1";
game.t801.prototype.clipxoff = 0;
game.t801.prototype.clipyoff = 0;
game.t801.prototype.damage = 0;
game.t802 = function () {
};
game.t802.prototype.clip = "deco2";
game.t802.prototype.clipxoff = 0;
game.t802.prototype.clipyoff = 0;
game.t802.prototype.damage = 0;
game.t803 = function () {
};
game.t803.prototype.clip = "deco3";
game.t803.prototype.clipxoff = 0;
game.t803.prototype.clipyoff = 0;
game.t803.prototype.damage = 0;
game.t804 = function () {
};
game.t804.prototype.clip = "deco4";
game.t804.prototype.clipxoff = 0;
game.t804.prototype.clipyoff = 0;
game.t804.prototype.damage = 0;
game.t805 = function () {
};
game.t805.prototype.clip = "deco5";
game.t805.prototype.clipxoff = 0;
game.t805.prototype.clipyoff = 0;
game.t805.prototype.damage = 0;
game.t806 = function () {
};
game.t806.prototype.clip = "deco6";
game.t806.prototype.clipxoff = 0;
game.t806.prototype.clipyoff = 0;
game.t806.prototype.damage = 0;
game.t807 = function () {
};
game.t807.prototype.clip = "deco7";
game.t807.prototype.clipxoff = 0;
game.t807.prototype.clipyoff = 0;
game.t807.prototype.damage = 0;
game.t808 = function () {
};
game.t808.prototype.clip = "deco8";
game.t808.prototype.clipxoff = 0;
game.t808.prototype.clipyoff = 0;
game.t808.prototype.damage = 0;
game.t809 = function () {
};
game.t809.prototype.clip = "deco9";
game.t809.prototype.clipxoff = 0;
game.t809.prototype.clipyoff = 0;
game.t809.prototype.damage = 0;
game.t810 = function () {
};
game.t810.prototype.clip = "deco10";
game.t810.prototype.clipxoff = 0;
game.t810.prototype.clipyoff = 0;
game.t810.prototype.damage = 0;
game.t811 = function () {
};
game.t811.prototype.clip = "deco11";
game.t811.prototype.clipxoff = 0;
game.t811.prototype.clipyoff = 0;
game.t811.prototype.damage = 0;
game.t812 = function () {
};
game.t812.prototype.clip = "deco12";
game.t812.prototype.clipxoff = 0;
game.t812.prototype.clipyoff = 0;
game.t812.prototype.damage = 0;
game.t813 = function () {
};
game.t813.prototype.clip = "deco13";
game.t813.prototype.clipxoff = 0;
game.t813.prototype.clipyoff = 0;
game.t813.prototype.damage = 0;
game.t814 = function () {
};
game.t814.prototype.clip = "deco14";
game.t814.prototype.clipxoff = 0;
game.t814.prototype.clipyoff = 0;
game.t814.prototype.damage = 0;
game.t815 = function () {
};
game.t815.prototype.clip = "deco15";
game.t815.prototype.clipxoff = 0;
game.t815.prototype.clipyoff = 0;
game.t815.prototype.damage = 0;
game.t816 = function () {
};
game.t816.prototype.clip = "deco15";
game.t816.prototype.clipxoff = 0;
game.t816.prototype.clipyoff = 0;
game.t816.prototype.damage = 0;
game.t2 = function () {
};
game.t2.prototype.frame = 2;
game.t2.prototype.solid = 1;
game.t2.prototype.points = 0;
game.t2.prototype.health = 0;
game.t2.prototype.jumpthrough = 0;
game.t2.prototype.damage = 0;
game.t2.prototype.destroyable = 0;
game.t2.prototype.gravity = 0;
game.t2.prototype.special = 1;
};
levelSkulls = new Array();
levelSkulls[1] = 0;
levelSkulls[2] = 2;
levelSkulls[3] = 1;
levelSkulls[4] = 2;
levelSkulls[5] = 2;
levelSkulls[6] = 3;
levelSkulls[7] = 1;
levelSkulls[8] = 3;
levelSkulls[9] = 3;
levelSkulls[10] = 2;
levelSkulls[11] = 2;
levelSkulls[12] = 3;
levelSkulls[13] = 2;
levelSkulls[14] = 2;
levelSkulls[15] = 1;
levelSkulls[16] = 2;
levelSkulls[17] = 1;
levelSkulls[18] = 0;
levelFrame = new Array();
levelFrame[1] = 6;
levelFrame[2] = 8;
levelFrame[3] = 9;
levelFrame[4] = 10;
levelFrame[5] = 13;
levelFrame[6] = 14;
levelFrame[7] = 15;
levelFrame[8] = 17;
levelFrame[9] = 18;
levelFrame[10] = 20;
levelFrame[11] = 22;
levelFrame[12] = 23;
levelFrame[13] = 25;
levelFrame[14] = 26;
levelFrame[15] = 27;
levelFrame[16] = 29;
levelFrame[17] = 30;
levelFrame[18] = 31;
levelCost = new Array();
levelCost[1] = 0;
levelCost[2] = 0;
levelCost[3] = 0;
levelCost[4] = 0;
levelCost[5] = 1;
levelCost[6] = 2;
levelCost[7] = 3;
levelCost[8] = 4;
levelCost[9] = 6;
levelCost[10] = 7;
levelCost[11] = 9;
levelCost[12] = 11;
levelCost[13] = 13;
levelCost[14] = 15;
levelCost[15] = 18;
levelCost[16] = 18;
levelCost[17] = 18;
levelCost[18] = 24;
messages = new Array();
messages[1] = 1;
messages[2] = 2;
messages[3] = 3;
messages[4] = 4;
messages[5] = 5;
messages[6] = 6;
levelnames = new Array();
levelnames[1] = "Stage 1\n01 How di d i move again?";
levelnames[2] = "Stage 1\n02 Ghosts";
levelnames[3] = "Stage 1\n03 Athlete";
levelnames[4] = "Stage 1\n04 Bust a move";
levelnames[5] = "Stage 2\n05 Trapdoors";
levelnames[6] = "Stage 2\n06 Crumbling";
levelnames[7] = "Stage 2\n07 Pushing around";
levelnames[8] = "Stage 2\n08 Take a big leap";
levelnames[9] = "Stage 3\n09 Run";
levelnames[10] = "Stage 3\n10 Bridging the gap";
levelnames[11] = "Stage 3\n11 Follow it";
levelnames[12] = "Stage 3\n12 Clearing the way";
levelnames[13] = "Stage 3\n13 Explorer";
levelnames[14] = "Stage 3\n14 Dodging";
levelnames[15] = "Stage 4\n15 Rooms";
levelnames[16] = "Stage 4\n16 Crowded";
levelnames[17] = "Stage 4\n17 The last rebels";
levelnames[18] = "Bonus stage\n18 The Arena";
levelmaps = new Array();
levelmaps[1] = [[7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 6, 6], [7, 0, 0, 0, 0, 0, 0, 0, 801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [7, 0, 0, 0, 0, 0, 0, 401, 13, 6, 6, 6, 10, 401, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [7, 0, 2, 801, 0, 0, 401, 13, 3, 21, 21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [1, 6, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 7, 401, 0, 0, 0, 0, 0, 801, 809, 0, 401, 0, 401, 0, 401, 809, 0, 0, 0, 0, 0, 401, 401, 0, 0, 9, 21, 21], [5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 7, 0, 0, 0, 0, 0, 0, 13, 10, 0, 18, 15, 15, 15, 15, 15, 16, 0, 0, 0, 801, 13, 10, 0, 0, 9, 21, 21], [7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 7, 807, 0, 0, 0, 0, 0, 9, 7, 0, 0, 807, 0, 0, 0, 0, 0, 0, 0, 0, 13, 3, 7, 0, 0, 9, 21, 21], [7, 0, 0, 0, 0, 0, 0, 0, 804, 0, 0, 9, 1, 6, 6, 6, 6, 6, 6, 3, 1, 6, 6, 6, 6, 6, 6, 10, 0, 0, 0, 0, 9, 21, 7, 0, 403, 9, 21, 21], [7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 10, 0, 0, 807, 9, 21, 7, 0, 13, 3, 21, 21], [1, 10, 0, 0, 18, 15, 15, 15, 15, 6, 6, 3, 21, 21, 21, 21, 21, 7, 0, 0, 0, 0, 401, 0, 0, 0, 0, 12, 1, 6, 6, 6, 3, 21, 7, 0, 12, 4, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 8, 8, 8, 8, 8, 11, 0, 0, 0, 13, 10, 401, 0, 0, 0, 0, 12, 8, 8, 8, 8, 8, 11, 0, 0, 9, 21, 21], [21, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 401, 0, 0, 13, 3, 7, 0, 802, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 10, 0, 0, 9, 5, 11, 0, 17, 0, 801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [21, 21, 1, 10, 0, 0, 0, 13, 6, 6, 10, 0, 13, 6, 6, 6, 3, 7, 0, 0, 12, 11, 0, 0, 9, 6, 10, 0, 0, 13, 10, 0, 0, 0, 0, 801, 0, 9, 21, 21], [21, 21, 21, 7, 0, 0, 0, 9, 21, 21, 7, 807, 9, 21, 21, 21, 21, 7, 0, 0, 807, 0, 0, 13, 3, 21, 7, 0, 0, 12, 11, 0, 0, 13, 6, 6, 6, 3, 21, 21], [21, 21, 21, 7, 807, 0, 13, 21, 21, 21, 1, 6, 3, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 3, 21, 21, 7, 807, 0, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21, 21], [21, 21, 21, 1, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21]];
levelmaps[2] = [[21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 5, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 0, 0, 0, 202, 202, 12, 8, 8, 21, 5, 8, 8, 8, 8, 4, 21, 5, 8, 8, 4, 21], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 0, 9, 11, 0, 0, 0, 0, 12, 8, 11, 0, 0, 12, 4], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 810, 0, 801, 0, 0, 0, 0, 0, 17, 404, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [21, 7, 0, 0, 0, 0, 13, 6, 10, 201, 0, 401, 13, 6, 6, 10, 0, 0, 0, 0, 0, 14, 807, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9], [21, 7, 2, 0, 801, 0, 9, 21, 1, 6, 6, 6, 3, 21, 21, 7, 206, 0, 0, 0, 401, 12, 15, 11, 0, 0, 0, 0, 809, 211, 0, 0, 0, 0, 0, 9], [21, 1, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 10, 0, 0, 20, 0, 0, 0, 0, 0, 18, 6, 6, 10, 0, 0, 0, 0, 0, 9], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 401, 9, 21, 7, 0, 0, 0, 0, 0, 9], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 11, 0, 0, 0, 812, 0, 18, 13, 401, 401, 9, 21, 7, 0, 0, 0, 0, 404, 9], [21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 5, 11, 0, 0, 0, 0, 17, 0, 0, 12, 15, 15, 8, 8, 11, 0, 0, 0, 0, 0, 9], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 8, 11, 202, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 3], [21, 7, 0, 0, 0, 806, 0, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 207, 0, 9, 10, 805, 0, 0, 0, 0, 0, 13, 15, 16, 0, 0, 9, 21], [21, 7, 0, 0, 0, 13, 10, 0, 0, 0, 0, 13, 10, 0, 0, 0, 0, 0, 811, 13, 6, 21, 21, 10, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 12, 4], [21, 7, 0, 0, 0, 9, 21, 10, 0, 0, 13, 8, 8, 16, 0, 802, 0, 0, 13, 21, 21, 21, 21, 7, 401, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 9], [21, 7, 0, 0, 18, 8, 8, 8, 15, 15, 11, 0, 0, 0, 18, 15, 15, 15, 8, 8, 8, 8, 8, 8, 16, 0, 0, 13, 16, 0, 0, 0, 0, 0, 0, 9], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 9], [21, 7, 0, 0, 0, 401, 0, 401, 0, 401, 201, 810, 211, 0, 0, 0, 0, 0, 17, 807, 0, 0, 207, 0, 0, 805, 13, 7, 804, 0, 17, 201, 0, 0, 13, 3], [21, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 6, 6, 6, 6, 6, 6, 6, 3, 1, 6, 6, 1, 6, 6, 6, 3, 21]];
levelmaps[3] = [[21, 5, 11, 0, 0, 0, 12, 8, 4, 21, 5, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 9, 5, 11, 0, 12, 4, 5, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21], [21, 1, 10, 0, 0, 0, 0, 0, 9, 11, 0, 0, 0, 9, 11, 0, 0, 0, 0, 0, 0, 9, 21, 21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 12, 8, 4, 21], [21, 5, 11, 0, 401, 401, 0, 0, 19, 0, 0, 0, 806, 14, 0, 809, 0, 216, 0, 0, 0, 9, 21, 5, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 7, 0, 20, 309, 17, 0, 311, 0, 12, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21], [21, 7, 0, 0, 0, 0, 401, 13, 10, 0, 0, 0, 9, 7, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21], [21, 7, 2, 0, 0, 0, 13, 3, 7, 0, 0, 806, 9, 1, 10, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 810, 210, 809, 0, 0, 0, 0, 0, 0, 0, 12, 4], [21, 1, 10, 812, 201, 0, 9, 8, 11, 0, 0, 13, 21, 8, 11, 0, 0, 14, 206, 0, 809, 0, 0, 0, 0, 13, 6, 10, 0, 0, 311, 0, 0, 0, 0, 806, 9], [21, 21, 1, 6, 6, 6, 7, 401, 0, 0, 0, 9, 11, 0, 0, 0, 13, 3, 6, 6, 10, 0, 0, 0, 0, 9, 21, 7, 0, 0, 0, 0, 0, 17, 0, 13, 3], [21, 21, 21, 21, 21, 21, 7, 0, 0, 18, 15, 11, 0, 0, 0, 13, 8, 8, 8, 4, 7, 0, 0, 0, 13, 21, 21, 1, 10, 0, 0, 0, 0, 14, 0, 9, 21], [21, 21, 21, 21, 21, 21, 7, 0, 0, 809, 0, 0, 201, 812, 401, 14, 0, 0, 0, 9, 7, 0, 0, 0, 9, 8, 8, 4, 7, 0, 0, 201, 0, 14, 0, 9, 21], [21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 15, 15, 15, 6, 6, 7, 0, 0, 0, 12, 11, 0, 0, 18, 11, 0, 0, 12, 1, 6, 6, 6, 6, 7, 0, 9, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 404, 0, 12, 8, 11, 0, 0, 0, 0, 351, 0, 0, 0, 0, 401, 401, 0, 9, 5, 8, 8, 8, 11, 0, 9, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 10, 0, 0, 0, 0, 0, 0, 0, 13, 6, 6, 10, 805, 0, 0, 13, 6, 6, 3, 7, 804, 0, 0, 0, 811, 9, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21, 1, 6, 6, 6, 3, 21, 21, 21, 7, 0, 0, 13, 6, 6, 3, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 222, 0, 0, 218, 13, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 3, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[4] = [[21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 5, 11, 202, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 0, 809, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 809, 351, 814, 0, 9, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 401, 17, 0, 0, 0, 0, 0, 809, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 15, 16, 813, 0, 19, 0, 0, 0, 12, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [5, 11, 0, 0, 13, 7, 0, 0, 0, 0, 18, 15, 16, 0, 0, 0, 0, 201, 812, 0, 0, 0, 0, 0, 813, 0, 0, 0, 401, 0, 0, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [7, 0, 0, 404, 9, 7, 0, 0, 0, 0, 0, 0, 0, 0, 18, 15, 15, 15, 15, 16, 0, 0, 0, 0, 813, 0, 0, 0, 17, 0, 0, 9, 21, 21, 21, 5, 8, 8, 8, 4, 21, 21, 21, 21], [7, 0, 0, 13, 3, 7, 0, 351, 807, 805, 0, 403, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 810, 206, 206, 0, 0, 812, 14, 0, 401, 9, 21, 21, 21, 7, 0, 0, 0, 12, 4, 21, 21, 21], [7, 0, 808, 9, 5, 8, 15, 15, 6, 10, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 15, 10, 206, 206, 18, 11, 0, 401, 9, 21, 21, 21, 7, 804, 0, 0, 0, 9, 21, 21, 21], [7, 0, 18, 3, 7, 0, 214, 0, 9, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 811, 0, 0, 0, 0, 12, 6, 16, 0, 0, 0, 0, 9, 21, 21, 21, 21, 10, 0, 403, 0, 9, 21, 21, 21], [7, 0, 0, 9, 1, 6, 6, 6, 3, 7, 0, 803, 0, 17, 802, 0, 207, 0, 0, 13, 10, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 9, 21, 21, 21, 21, 7, 0, 20, 0, 9, 21, 21, 21], [7, 0, 0, 12, 8, 8, 8, 8, 8, 8, 15, 15, 15, 8, 15, 15, 15, 15, 15, 8, 8, 15, 16, 0, 0, 14, 0, 0, 0, 0, 806, 9, 21, 21, 21, 21, 7, 0, 0, 0, 9, 21, 21, 21], [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 802, 14, 0, 0, 0, 0, 18, 8, 8, 8, 8, 8, 7, 401, 0, 0, 9, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 801, 809, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 7, 0, 18, 15, 16, 0, 0, 0, 0, 401, 0, 12, 10, 0, 0, 9, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 15, 16, 306, 17, 0, 0, 0, 0, 0, 0, 0, 0, 9, 7, 807, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 14, 0, 401, 9, 21, 21, 21], [21, 7, 803, 0, 2, 0, 0, 809, 0, 0, 201, 14, 0, 0, 0, 14, 206, 0, 0, 0, 201, 0, 805, 0, 9, 1, 10, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 19, 0, 13, 3, 21, 21, 21], [21, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 306, 18, 15, 8, 15, 15, 15, 15, 6, 6, 6, 6, 3, 21, 1, 6, 6, 6, 10, 812, 0, 807, 14, 0, 0, 0, 0, 9, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 401, 401, 0, 0, 0, 401, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 1, 6, 6, 10, 805, 9, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 10, 0, 404, 13, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 3, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[5] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 11, 0, 0, 0, 12, 8, 8, 8, 8, 8, 4, 21, 21, 5, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 11, 0, 0, 0, 0, 403, 0, 403, 214, 0, 0, 0, 0, 9, 5, 8, 11, 0, 0, 0, 0, 0, 0, 12, 4, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 11, 0, 0, 403, 13, 6, 6, 15, 15, 6, 6, 10, 0, 403, 9, 11, 0, 0, 0, 0, 403, 403, 0, 0, 0, 9, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 11, 0, 0, 0, 0, 9, 21, 11, 0, 0, 12, 8, 7, 0, 403, 14, 0, 351, 0, 0, 0, 0, 0, 0, 18, 6, 3, 21, 21, 21, 21, 21], [21, 21, 21, 5, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 403, 13, 8, 11, 0, 0, 0, 0, 0, 12, 16, 309, 19, 0, 18, 15, 15, 16, 0, 0, 0, 0, 12, 8, 4, 21, 21, 21, 21], [21, 21, 5, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 801, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 0, 9, 21, 21, 21, 21], [21, 21, 7, 0, 0, 806, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 7, 0, 0, 0, 0, 0, 0, 0, 17, 401, 801, 0, 0, 0, 0, 0, 0, 0, 0, 13, 6, 10, 401, 9, 21, 21, 21, 21], [21, 21, 7, 0, 0, 17, 0, 0, 401, 0, 0, 401, 0, 0, 0, 0, 19, 0, 0, 0, 0, 816, 351, 806, 12, 15, 16, 0, 811, 0, 0, 0, 0, 0, 0, 12, 8, 11, 401, 9, 21, 21, 21, 21], [21, 21, 7, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 810, 0, 307, 0, 0, 403, 0, 813, 18, 16, 0, 0, 0, 18, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 9, 21, 21, 21, 21], [21, 21, 7, 0, 0, 14, 0, 302, 0, 0, 0, 302, 0, 0, 13, 6, 15, 16, 0, 0, 0, 813, 0, 0, 0, 0, 201, 0, 803, 810, 0, 0, 351, 802, 0, 0, 201, 0, 0, 9, 21, 21, 21, 21], [21, 21, 1, 16, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 9, 11, 0, 305, 0, 803, 2, 813, 0, 405, 13, 6, 6, 6, 6, 10, 0, 13, 6, 6, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21], [21, 21, 7, 0, 0, 14, 206, 206, 206, 206, 206, 206, 206, 206, 14, 404, 404, 13, 6, 6, 6, 6, 15, 15, 3, 21, 21, 21, 21, 7, 206, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 0, 9, 6, 6, 6, 6, 6, 6, 6, 6, 1, 6, 6, 3, 21, 21, 5, 11, 217, 217, 12, 1, 21, 21, 21, 1, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 18, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 0, 0, 12, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 0, 12, 8, 4, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 4, 21, 7, 804, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 7, 807, 0, 0, 0, 12, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 12, 4, 21, 6, 10, 0, 13, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 11, 0, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 1, 6, 10, 0, 0, 0, 809, 0, 0, 0, 0, 204, 808, 17, 0, 0, 0, 201, 0, 0, 805, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 6, 6, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[6] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21], [21, 21, 5, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 9, 21, 21], [21, 5, 11, 0, 0, 202, 0, 0, 0, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [21, 7, 404, 0, 0, 0, 0, 13, 6, 6, 6, 15, 15, 16, 0, 0, 0, 0, 0, 0, 0, 401, 0, 0, 18, 15, 16, 0, 0, 9, 21, 21], [21, 7, 205, 0, 210, 0, 13, 3, 8, 8, 11, 0, 0, 0, 18, 16, 0, 0, 0, 0, 18, 16, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [21, 1, 6, 6, 6, 6, 8, 11, 0, 0, 305, 0, 0, 811, 0, 305, 0, 811, 214, 0, 811, 0, 0, 17, 0, 0, 0, 0, 13, 3, 21, 21], [21, 21, 21, 21, 21, 7, 0, 0, 806, 18, 15, 15, 15, 15, 15, 6, 6, 6, 6, 6, 15, 15, 15, 11, 310, 18, 15, 6, 3, 21, 21, 21], [21, 21, 21, 21, 5, 11, 0, 0, 20, 0, 0, 351, 814, 0, 0, 12, 8, 8, 8, 11, 202, 0, 0, 0, 805, 0, 207, 9, 21, 21, 21, 21], [21, 21, 21, 21, 7, 0, 0, 17, 0, 0, 13, 16, 813, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 15, 15, 15, 6, 3, 21, 21, 21, 21], [21, 21, 21, 21, 7, 0, 18, 7, 401, 18, 7, 0, 813, 0, 0, 0, 0, 0, 0, 214, 0, 0, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21], [21, 21, 21, 21, 7, 0, 0, 14, 0, 0, 19, 0, 813, 0, 0, 0, 18, 15, 15, 15, 15, 15, 15, 16, 0, 0, 9, 21, 21, 21, 21, 21], [21, 21, 21, 21, 7, 0, 0, 9, 10, 0, 0, 0, 2, 0, 809, 0, 0, 0, 308, 0, 217, 217, 217, 810, 0, 13, 3, 21, 21, 21, 21, 21], [21, 21, 21, 21, 1, 10, 0, 12, 8, 15, 6, 15, 15, 15, 15, 16, 310, 18, 10, 0, 13, 15, 15, 15, 6, 3, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 7, 0, 403, 0, 403, 19, 0, 0, 403, 0, 0, 0, 0, 14, 0, 19, 0, 0, 0, 12, 8, 8, 4, 5, 8, 8, 4], [21, 21, 21, 21, 21, 7, 0, 0, 0, 0, 809, 201, 0, 207, 17, 0, 0, 406, 14, 0, 0, 0, 0, 0, 0, 0, 0, 12, 11, 804, 0, 9], [21, 21, 21, 21, 21, 7, 0, 0, 13, 6, 6, 15, 15, 15, 8, 15, 15, 15, 11, 0, 18, 15, 6, 10, 0, 0, 0, 0, 0, 0, 13, 3], [21, 21, 21, 21, 21, 1, 6, 6, 3, 21, 7, 401, 0, 0, 0, 209, 0, 0, 0, 0, 305, 0, 12, 7, 0, 0, 0, 0, 0, 0, 9, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 404, 401, 13, 6, 6, 6, 6, 6, 6, 10, 0, 404, 9, 10, 0, 218, 0, 0, 0, 9, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 3, 21, 21, 21, 21, 21, 21, 1, 6, 6, 21, 1, 6, 6, 6, 6, 6, 3, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[7] = [[21, 21, 21, 5, 8, 8, 8, 4, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21], [21, 21, 5, 11, 0, 0, 0, 12, 4, 5, 8, 11, 212, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 4, 21, 21, 21, 21], [21, 5, 11, 0, 0, 0, 0, 806, 9, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 351, 0, 0, 12, 4, 21, 21, 21], [21, 7, 212, 0, 0, 0, 2, 13, 7, 209, 207, 0, 0, 351, 815, 814, 0, 0, 0, 0, 0, 13, 10, 0, 0, 9, 21, 21, 21], [21, 7, 0, 0, 0, 0, 18, 8, 8, 15, 15, 15, 15, 6, 10, 813, 0, 0, 0, 0, 0, 9, 7, 0, 0, 9, 21, 21, 21], [21, 7, 0, 221, 0, 0, 0, 0, 0, 221, 0, 0, 0, 12, 11, 813, 0, 18, 16, 0, 0, 12, 7, 0, 18, 8, 4, 21, 21], [21, 1, 10, 0, 0, 0, 809, 0, 0, 401, 401, 809, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 9, 21, 21], [21, 5, 11, 306, 20, 310, 13, 10, 0, 0, 13, 6, 6, 10, 0, 809, 0, 17, 214, 809, 0, 18, 8, 15, 16, 310, 9, 21, 21], [21, 7, 0, 0, 0, 0, 12, 7, 206, 206, 9, 5, 8, 11, 813, 18, 15, 8, 15, 16, 310, 0, 809, 0, 0, 0, 9, 21, 21], [21, 1, 10, 309, 0, 0, 0, 12, 15, 15, 8, 11, 0, 0, 813, 0, 307, 0, 0, 0, 0, 0, 17, 0, 0, 0, 9, 21, 21], [21, 21, 7, 206, 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 813, 0, 17, 0, 13, 15, 15, 15, 7, 0, 0, 18, 3, 21, 21], [21, 21, 1, 6, 8, 8, 15, 15, 16, 0, 0, 0, 0, 0, 813, 0, 12, 15, 11, 0, 0, 401, 9, 10, 0, 804, 9, 21, 21], [21, 21, 21, 7, 0, 0, 0, 0, 305, 0, 0, 0, 812, 405, 0, 0, 0, 0, 0, 0, 210, 401, 9, 1, 6, 6, 3, 21, 21], [21, 21, 5, 11, 0, 0, 0, 13, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 404, 0, 13, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 1, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[8] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 4, 21, 21, 21, 21, 21, 21], [21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 7, 404, 0, 0, 0, 9, 5, 8, 8, 8, 8, 4, 21, 5, 11, 0, 9, 21, 21, 21, 21, 21, 21], [21, 21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 7, 0, 0, 0, 0, 9, 11, 0, 0, 0, 0, 12, 4, 7, 0, 0, 9, 21, 21, 21, 21, 21, 21], [21, 21, 5, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 16, 0, 0, 0, 14, 0, 809, 0, 0, 0, 0, 9, 7, 804, 0, 9, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 0, 0, 2, 0, 0, 809, 0, 0, 0, 0, 0, 0, 0, 351, 0, 0, 0, 14, 0, 20, 0, 0, 0, 0, 9, 7, 0, 0, 9, 21, 21, 21, 21, 21, 21], [21, 21, 1, 6, 6, 6, 6, 10, 206, 13, 6, 10, 0, 0, 0, 0, 0, 18, 16, 212, 0, 14, 0, 0, 221, 0, 0, 0, 9, 7, 0, 13, 5, 8, 8, 4, 21, 21, 21], [21, 21, 21, 21, 21, 5, 8, 8, 15, 8, 8, 11, 0, 0, 0, 0, 401, 0, 204, 0, 401, 14, 0, 0, 0, 206, 206, 0, 9, 7, 0, 12, 11, 0, 0, 12, 4, 21, 21], [21, 5, 8, 8, 8, 11, 0, 0, 0, 351, 814, 0, 0, 0, 0, 0, 18, 6, 6, 15, 15, 21, 6, 16, 0, 13, 16, 0, 9, 7, 0, 0, 203, 0, 0, 0, 9, 21, 21], [21, 7, 0, 401, 0, 0, 0, 18, 15, 16, 813, 0, 0, 0, 0, 0, 0, 9, 11, 0, 401, 12, 11, 0, 0, 14, 0, 0, 12, 8, 16, 0, 0, 0, 0, 0, 9, 21, 21], [21, 1, 10, 0, 0, 0, 806, 0, 0, 0, 813, 0, 0, 0, 0, 0, 0, 19, 212, 0, 20, 0, 307, 0, 0, 14, 809, 0, 0, 0, 0, 805, 401, 17, 0, 0, 9, 21, 21], [21, 21, 1, 15, 16, 0, 13, 10, 0, 0, 0, 814, 0, 0, 204, 809, 0, 0, 0, 809, 0, 0, 17, 0, 220, 9, 10, 306, 13, 6, 6, 6, 15, 11, 0, 13, 3, 21, 21], [21, 21, 21, 0, 0, 0, 9, 11, 217, 18, 16, 217, 18, 15, 15, 15, 15, 6, 6, 10, 312, 18, 11, 310, 18, 3, 7, 306, 9, 21, 21, 11, 0, 0, 223, 9, 21, 21, 21], [21, 21, 7, 0, 17, 0, 19, 0, 0, 0, 0, 813, 0, 0, 810, 0, 0, 12, 8, 11, 0, 0, 308, 0, 404, 9, 7, 0, 9, 21, 7, 0, 0, 0, 0, 9, 21, 21, 21], [21, 21, 7, 0, 12, 16, 0, 0, 216, 0, 0, 0, 0, 405, 17, 212, 0, 406, 0, 401, 0, 401, 17, 0, 0, 9, 7, 206, 9, 21, 7, 404, 0, 223, 13, 3, 21, 21, 21], [21, 21, 7, 0, 0, 809, 0, 13, 6, 6, 6, 6, 6, 6, 1, 6, 6, 6, 6, 6, 6, 6, 3, 6, 6, 21, 1, 6, 3, 21, 1, 6, 10, 309, 9, 21, 21, 21, 21], [21, 21, 1, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 3, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[9] = [[21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 5, 8, 8, 8, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21], [21, 5, 11, 0, 0, 0, 0, 0, 351, 814, 0, 0, 0, 0, 0, 0, 0, 0, 205, 17, 0, 0, 0, 303, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21, 21, 21], [21, 7, 404, 0, 0, 0, 13, 15, 10, 813, 0, 0, 0, 0, 0, 0, 0, 0, 18, 7, 0, 0, 0, 303, 0, 0, 0, 0, 9, 5, 8, 8, 4, 21, 21, 21], [21, 1, 6, 6, 16, 0, 14, 0, 19, 813, 0, 0, 0, 0, 13, 10, 0, 0, 201, 14, 402, 0, 0, 303, 0, 0, 0, 0, 12, 11, 0, 0, 9, 21, 21, 21], [21, 5, 8, 11, 0, 0, 14, 0, 0, 813, 0, 0, 0, 0, 9, 21, 6, 6, 15, 8, 15, 15, 15, 15, 15, 6, 10, 0, 0, 0, 0, 401, 9, 21, 21, 21], [21, 7, 0, 0, 0, 0, 14, 0, 0, 813, 0, 0, 0, 0, 9, 21, 5, 11, 0, 0, 0, 0, 0, 0, 0, 12, 8, 15, 15, 15, 10, 0, 9, 21, 21, 21], [5, 11, 0, 0, 201, 0, 14, 0, 806, 2, 815, 815, 814, 811, 9, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 404, 14, 401, 9, 21, 21, 21], [7, 0, 0, 13, 15, 15, 11, 0, 13, 6, 6, 10, 405, 13, 3, 21, 7, 0, 18, 10, 0, 401, 221, 401, 0, 401, 222, 0, 0, 0, 14, 0, 9, 21, 21, 21], [7, 0, 0, 14, 0, 0, 0, 0, 9, 21, 21, 1, 6, 3, 21, 21, 7, 0, 0, 14, 0, 302, 0, 0, 0, 18, 15, 15, 6, 6, 7, 401, 9, 21, 21, 21], [7, 0, 0, 9, 10, 0, 0, 18, 8, 8, 4, 5, 8, 8, 8, 8, 8, 16, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 7, 0, 9, 21, 21, 21], [1, 10, 0, 9, 11, 0, 0, 0, 0, 0, 12, 11, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 14, 401, 9, 21, 21, 21], [21, 7, 0, 19, 0, 0, 18, 16, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 809, 0, 206, 17, 401, 0, 0, 804, 14, 0, 9, 21, 21, 21], [21, 7, 0, 0, 0, 401, 0, 0, 206, 0, 0, 17, 0, 0, 0, 0, 401, 18, 6, 7, 0, 0, 18, 6, 6, 21, 6, 6, 6, 6, 7, 401, 9, 21, 21, 21], [21, 7, 220, 809, 0, 401, 401, 13, 15, 15, 6, 7, 401, 0, 0, 401, 311, 0, 12, 7, 0, 0, 0, 12, 5, 8, 8, 8, 8, 5, 11, 0, 9, 21, 21, 21], [21, 1, 6, 6, 10, 306, 306, 19, 0, 0, 12, 21, 10, 0, 0, 311, 0, 0, 0, 14, 401, 0, 0, 0, 19, 0, 0, 404, 0, 19, 0, 401, 9, 21, 21, 21], [21, 21, 21, 21, 7, 809, 0, 0, 0, 0, 0, 12, 8, 6, 10, 0, 0, 809, 0, 12, 16, 0, 0, 0, 310, 0, 0, 17, 0, 0, 0, 0, 9, 21, 21, 21], [21, 21, 21, 21, 1, 10, 0, 207, 0, 201, 0, 0, 0, 12, 11, 0, 13, 10, 0, 0, 0, 0, 401, 17, 0, 0, 0, 14, 0, 0, 0, 0, 9, 21, 21, 21], [21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 10, 809, 0, 401, 0, 9, 7, 0, 0, 0, 0, 401, 14, 0, 0, 0, 14, 0, 0, 0, 0, 9, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 3, 1, 6, 10, 222, 805, 0, 9, 10, 0, 206, 9, 10, 0, 0, 13, 3, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 3, 1, 6, 6, 3, 1, 6, 6, 3, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[10] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 11, 0, 12, 4, 21, 21], [21, 21, 5, 8, 8, 8, 4, 5, 8, 11, 0, 0, 0, 0, 0, 0, 12, 5, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [21, 5, 11, 0, 0, 0, 9, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 0, 0, 0, 0, 17, 0, 0, 0, 9, 21, 21], [21, 7, 0, 0, 0, 18, 7, 0, 0, 0, 0, 351, 814, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 310, 18, 15, 15, 15, 10, 0, 17, 0, 9, 6, 10, 310, 9, 21, 21], [21, 7, 0, 0, 17, 0, 19, 0, 401, 13, 15, 16, 813, 0, 0, 311, 0, 0, 401, 0, 13, 6, 7, 0, 0, 0, 0, 0, 12, 15, 11, 0, 12, 5, 11, 0, 9, 21, 21], [21, 5, 15, 4, 11, 0, 0, 0, 0, 14, 2, 401, 813, 0, 0, 0, 0, 0, 20, 0, 12, 8, 11, 311, 311, 20, 0, 0, 0, 0, 0, 0, 0, 19, 0, 404, 9, 21, 21], [21, 7, 0, 19, 0, 0, 0, 20, 401, 9, 10, 401, 813, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 305, 0, 13, 3, 21, 21], [21, 7, 0, 307, 0, 0, 0, 0, 0, 9, 7, 809, 405, 814, 0, 216, 0, 401, 0, 0, 806, 0, 0, 0, 0, 0, 0, 311, 18, 15, 6, 15, 15, 15, 6, 3, 21, 21, 21], [21, 7, 0, 13, 6, 16, 0, 0, 401, 12, 8, 15, 16, 311, 0, 20, 0, 20, 0, 311, 13, 10, 0, 0, 0, 0, 0, 0, 0, 223, 19, 0, 804, 0, 9, 21, 21, 21, 21], [21, 7, 0, 9, 7, 206, 0, 0, 0, 0, 0, 0, 0, 813, 0, 0, 0, 0, 0, 0, 9, 7, 220, 206, 206, 206, 206, 0, 0, 0, 310, 0, 0, 13, 3, 21, 21, 21, 21], [21, 7, 0, 12, 1, 10, 0, 0, 220, 0, 0, 205, 0, 813, 0, 0, 0, 0, 0, 0, 12, 8, 15, 15, 15, 15, 6, 6, 6, 16, 401, 13, 6, 3, 21, 21, 21, 21, 21], [21, 7, 0, 0, 9, 7, 206, 206, 17, 0, 0, 17, 214, 809, 0, 214, 809, 0, 0, 0, 305, 809, 0, 0, 0, 0, 12, 8, 11, 0, 0, 9, 21, 21, 21, 21, 21, 21, 21], [21, 7, 220, 0, 9, 1, 6, 6, 7, 0, 13, 1, 6, 6, 6, 6, 6, 10, 401, 13, 6, 10, 0, 0, 0, 0, 0, 0, 0, 0, 401, 9, 21, 21, 21, 21, 21, 21, 21], [21, 1, 10, 0, 12, 4, 21, 21, 7, 206, 9, 21, 21, 21, 21, 21, 21, 1, 6, 3, 21, 1, 10, 210, 0, 0, 809, 222, 0, 0, 805, 9, 21, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 0, 9, 21, 21, 1, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 404, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 1, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[11] = [[21, 21, 5, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21], [21, 5, 11, 0, 401, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 809, 0, 0, 0, 0, 0, 0, 351, 814, 9, 21, 21, 21, 21, 21], [21, 7, 0, 0, 18, 15, 6, 10, 404, 9, 21, 21, 21, 5, 8, 8, 8, 4, 21, 5, 11, 0, 13, 6, 10, 0, 0, 0, 0, 13, 10, 813, 9, 21, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 12, 7, 0, 12, 8, 8, 8, 11, 0, 0, 0, 12, 8, 11, 0, 0, 12, 8, 8, 15, 15, 15, 6, 5, 11, 813, 9, 8, 8, 4, 21, 21], [21, 7, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 11, 0, 813, 14, 804, 0, 12, 4, 21], [21, 7, 401, 0, 0, 0, 0, 14, 0, 0, 13, 10, 0, 222, 0, 0, 13, 10, 0, 0, 0, 805, 0, 219, 17, 0, 401, 401, 811, 0, 0, 406, 14, 0, 0, 0, 9, 21], [21, 1, 6, 15, 15, 16, 0, 14, 401, 13, 8, 8, 15, 15, 15, 15, 8, 8, 15, 16, 0, 13, 6, 6, 11, 306, 18, 15, 16, 0, 401, 13, 5, 16, 0, 0, 9, 21], [21, 5, 11, 0, 0, 0, 401, 14, 0, 14, 0, 0, 811, 0, 401, 401, 0, 810, 0, 811, 2, 9, 21, 7, 404, 401, 0, 0, 0, 0, 13, 5, 11, 0, 0, 0, 9, 21], [21, 7, 0, 0, 0, 0, 0, 14, 401, 19, 0, 18, 15, 15, 15, 15, 15, 15, 15, 15, 15, 8, 8, 5, 16, 309, 309, 13, 6, 6, 5, 11, 401, 0, 0, 401, 9, 21], [21, 7, 0, 401, 0, 0, 18, 21, 16, 0, 401, 308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 206, 206, 206, 9, 21, 21, 7, 401, 0, 0, 0, 13, 3, 21], [21, 1, 6, 10, 0, 0, 0, 14, 0, 0, 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 351, 0, 0, 12, 6, 6, 6, 8, 8, 8, 8, 10, 0, 216, 0, 9, 21, 21], [21, 21, 21, 7, 0, 0, 0, 9, 6, 6, 21, 7, 809, 0, 401, 0, 401, 0, 401, 18, 16, 401, 0, 0, 9, 21, 7, 0, 0, 0, 0, 12, 15, 16, 0, 9, 21, 21], [21, 21, 21, 7, 401, 18, 15, 3, 21, 21, 21, 5, 16, 302, 0, 0, 0, 302, 0, 0, 0, 302, 206, 206, 9, 8, 11, 0, 0, 0, 0, 0, 0, 0, 805, 9, 21, 21], [21, 21, 21, 7, 0, 0, 0, 12, 8, 4, 5, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 15, 11, 0, 0, 0, 0, 0, 0, 13, 6, 6, 6, 3, 21, 21], [21, 21, 21, 7, 809, 0, 0, 0, 0, 12, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 809, 0, 401, 0, 401, 0, 0, 205, 9, 21, 21, 21, 21, 21, 21], [21, 21, 21, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 810, 0, 0, 0, 0, 0, 17, 0, 0, 222, 0, 0, 13, 6, 3, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 10, 0, 220, 805, 13, 6, 10, 206, 206, 206, 206, 206, 9, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 3, 21, 1, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[12] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 4, 5, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 11, 0, 0, 0, 12, 7, 404, 0, 0, 0, 0, 0, 12, 8, 8, 4, 21, 21, 21], [21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 11, 0, 0, 0, 0, 0, 19, 309, 18, 6, 10, 0, 0, 225, 0, 0, 9, 21, 21, 21], [21, 21, 5, 8, 11, 0, 0, 0, 0, 0, 351, 0, 0, 0, 351, 0, 0, 0, 0, 0, 401, 9, 5, 16, 0, 0, 0, 0, 12, 4, 21, 21], [21, 5, 11, 0, 806, 0, 0, 18, 6, 6, 16, 813, 13, 6, 6, 10, 0, 13, 16, 0, 401, 9, 11, 0, 0, 0, 0, 0, 0, 12, 4, 21], [21, 7, 0, 0, 17, 0, 0, 202, 9, 7, 401, 813, 12, 8, 8, 11, 0, 19, 0, 206, 13, 7, 0, 0, 0, 214, 0, 0, 351, 0, 9, 21], [21, 7, 0, 0, 14, 0, 0, 0, 9, 1, 16, 813, 401, 307, 0, 221, 0, 0, 0, 18, 8, 5, 15, 15, 15, 16, 0, 18, 16, 0, 9, 21], [21, 7, 0, 13, 7, 0, 2, 0, 9, 7, 401, 813, 13, 10, 0, 0, 0, 0, 0, 0, 804, 14, 401, 0, 0, 0, 0, 0, 0, 0, 9, 21], [21, 7, 0, 12, 1, 6, 6, 15, 8, 8, 16, 813, 12, 7, 0, 311, 0, 401, 0, 0, 0, 14, 0, 405, 0, 207, 0, 0, 0, 205, 9, 21], [21, 7, 809, 0, 12, 8, 11, 0, 0, 0, 0, 0, 814, 14, 0, 0, 0, 311, 0, 401, 13, 7, 401, 18, 15, 15, 15, 6, 6, 6, 3, 21], [21, 1, 10, 0, 401, 0, 0, 0, 0, 18, 15, 16, 813, 19, 0, 0, 0, 0, 0, 401, 12, 7, 205, 0, 0, 0, 0, 12, 4, 21, 21, 21], [21, 21, 1, 10, 0, 809, 0, 222, 0, 809, 406, 815, 0, 0, 0, 0, 0, 0, 0, 0, 223, 12, 16, 0, 0, 0, 0, 0, 9, 21, 21, 21], [21, 21, 21, 1, 6, 6, 6, 15, 15, 15, 15, 15, 15, 16, 0, 806, 0, 0, 0, 401, 0, 401, 0, 401, 0, 13, 6, 6, 3, 21, 21, 21], [21, 21, 21, 21, 21, 21, 7, 404, 404, 305, 0, 308, 811, 0, 0, 13, 6, 10, 206, 13, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 6, 6, 3, 21, 1, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[13] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 5, 11, 0, 307, 0, 404, 0, 404, 0, 0, 9, 21, 21, 5, 8, 8, 8, 8, 4, 21, 7, 0, 0, 0, 0, 12, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 7, 0, 0, 13, 6, 6, 6, 10, 0, 18, 8, 8, 8, 11, 0, 0, 0, 0, 12, 4, 7, 0, 0, 351, 0, 0, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 5, 8, 16, 0, 9, 21, 5, 8, 11, 0, 221, 0, 0, 0, 0, 0, 221, 0, 0, 0, 9, 7, 0, 13, 10, 405, 0, 12, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 0, 9, 8, 11, 0, 0, 0, 0, 0, 0, 17, 403, 0, 401, 0, 17, 0, 12, 11, 0, 12, 8, 6, 16, 0, 0, 0, 0, 12, 4, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 311, 14, 0, 0, 0, 0, 0, 0, 0, 223, 14, 403, 0, 311, 0, 14, 0, 816, 351, 401, 0, 0, 14, 0, 0, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 223, 14, 0, 0, 0, 18, 15, 15, 16, 0, 19, 403, 401, 0, 0, 14, 0, 813, 13, 10, 401, 0, 14, 0, 351, 0, 0, 0, 0, 9, 8, 8, 4, 21, 21, 21], [21, 7, 0, 0, 0, 14, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 311, 0, 0, 14, 0, 813, 9, 7, 0, 401, 9, 15, 15, 16, 0, 0, 0, 14, 0, 0, 12, 4, 21, 21], [21, 1, 10, 401, 0, 12, 15, 10, 0, 0, 0, 0, 0, 0, 812, 207, 0, 0, 13, 7, 0, 813, 12, 11, 0, 0, 14, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 9, 21, 21], [21, 21, 7, 0, 0, 0, 0, 9, 6, 15, 15, 15, 15, 15, 15, 15, 15, 15, 3, 7, 0, 813, 0, 0, 0, 401, 14, 0, 0, 351, 809, 401, 0, 308, 0, 221, 0, 9, 21, 21], [21, 21, 7, 401, 206, 0, 0, 12, 11, 0, 0, 0, 0, 0, 0, 401, 401, 0, 12, 11, 0, 813, 13, 6, 6, 6, 7, 0, 18, 16, 312, 20, 0, 13, 10, 0, 0, 9, 21, 21], [21, 21, 1, 6, 10, 0, 0, 0, 0, 0, 0, 0, 214, 0, 0, 13, 10, 0, 0, 0, 0, 813, 9, 21, 21, 21, 11, 0, 0, 0, 0, 0, 0, 21, 7, 804, 0, 9, 21, 21], [21, 21, 21, 21, 1, 6, 6, 10, 0, 0, 0, 18, 15, 15, 15, 8, 8, 15, 15, 6, 10, 306, 9, 21, 21, 7, 0, 0, 0, 406, 0, 0, 223, 9, 1, 6, 6, 3, 21, 21], [21, 21, 21, 21, 21, 21, 21, 7, 210, 809, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 11, 813, 12, 8, 8, 11, 0, 0, 13, 10, 0, 13, 6, 3, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 10, 0, 0, 218, 207, 0, 0, 809, 813, 305, 0, 0, 222, 0, 210, 9, 1, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 10, 0, 13, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[14] = [[21, 21, 21, 8, 8, 8, 8, 8, 8, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 8, 8, 21, 21, 21, 21, 21, 8, 11, 0, 0, 0, 12, 21, 21, 21, 21], [21, 21, 7, 0, 0, 0, 0, 0, 0, 12, 8, 8, 8, 21, 21, 21, 21, 21, 7, 0, 0, 9, 21, 21, 21, 7, 0, 0, 0, 0, 0, 0, 12, 8, 21, 21], [21, 21, 11, 0, 0, 0, 0, 0, 351, 0, 0, 0, 0, 12, 8, 21, 21, 8, 11, 0, 0, 12, 8, 8, 21, 21, 10, 0, 0, 0, 351, 0, 0, 0, 9, 21], [21, 11, 0, 0, 17, 0, 13, 15, 16, 0, 0, 0, 0, 0, 0, 12, 11, 0, 0, 0, 216, 0, 0, 0, 9, 8, 11, 0, 18, 15, 15, 10, 212, 0, 9, 21], [7, 225, 0, 0, 9, 15, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 311, 21, 311, 309, 309, 19, 0, 0, 401, 0, 0, 223, 14, 0, 0, 9, 21], [7, 0, 0, 0, 14, 0, 2, 0, 0, 0, 0, 0, 13, 6, 6, 6, 6, 6, 7, 0, 0, 0, 206, 206, 0, 0, 18, 15, 16, 0, 13, 7, 401, 13, 21, 21], [7, 0, 0, 0, 9, 6, 10, 0, 0, 0, 0, 13, 21, 8, 8, 8, 8, 21, 7, 0, 0, 0, 13, 10, 0, 0, 0, 0, 0, 0, 12, 11, 401, 9, 21, 21], [7, 0, 0, 13, 21, 21, 7, 217, 13, 6, 15, 8, 11, 401, 0, 0, 0, 12, 11, 0, 0, 13, 21, 8, 15, 16, 0, 0, 206, 0, 0, 0, 0, 9, 21, 21], [21, 10, 401, 9, 21, 21, 11, 217, 9, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 811, 0, 12, 11, 0, 0, 0, 0, 401, 13, 10, 0, 13, 6, 21, 21, 21], [21, 7, 401, 12, 8, 11, 0, 813, 19, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 401, 12, 11, 0, 9, 21, 21, 21, 21], [21, 7, 0, 0, 405, 815, 815, 0, 0, 0, 401, 206, 0, 18, 16, 0, 9, 6, 6, 21, 6, 10, 0, 222, 0, 0, 204, 0, 0, 0, 406, 9, 21, 21, 21, 21], [21, 21, 6, 6, 15, 15, 15, 15, 16, 0, 0, 20, 0, 401, 0, 0, 9, 21, 21, 8, 21, 21, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 21, 21, 21], [21, 21, 21, 11, 0, 0, 0, 307, 0, 0, 0, 0, 0, 20, 0, 0, 9, 21, 7, 404, 21, 21, 21, 21, 21, 21, 8, 8, 8, 8, 11, 0, 0, 21, 21, 21], [21, 21, 7, 0, 0, 0, 0, 18, 15, 15, 6, 16, 0, 0, 0, 13, 21, 21, 7, 0, 0, 12, 8, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 804, 9, 21], [21, 21, 7, 0, 214, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 9, 21, 21, 21, 10, 0, 0, 224, 0, 0, 0, 0, 0, 0, 18, 16, 0, 0, 0, 9, 21], [21, 21, 21, 6, 6, 6, 6, 6, 10, 0, 0, 401, 0, 18, 6, 21, 21, 8, 8, 7, 0, 0, 0, 0, 0, 0, 401, 13, 10, 0, 308, 0, 0, 13, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 20, 0, 401, 9, 21, 7, 401, 401, 12, 16, 0, 0, 0, 0, 401, 13, 21, 7, 404, 13, 6, 6, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 11, 0, 0, 0, 0, 18, 8, 8, 11, 401, 0, 0, 0, 0, 0, 0, 0, 401, 9, 21, 21, 6, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 0, 809, 0, 401, 0, 401, 305, 0, 13, 10, 0, 0, 13, 6, 6, 6, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 21, 21, 6, 6, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[15] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 11, 0, 0, 12, 4, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 0, 0, 12, 4, 21, 21, 21, 21], [21, 21, 21, 21, 5, 8, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 21, 21, 21, 21, 21, 7, 0, 0, 214, 0, 0, 9, 21, 21, 21, 21], [21, 5, 8, 8, 11, 0, 12, 5, 11, 0, 0, 0, 225, 0, 0, 0, 9, 21, 21, 21, 21, 21, 21, 5, 8, 11, 0, 18, 15, 16, 0, 9, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 5, 8, 8, 8, 11, 0, 0, 0, 0, 0, 214, 0, 9, 21, 21, 21, 21], [21, 7, 0, 0, 2, 0, 0, 0, 0, 17, 0, 0, 0, 401, 0, 401, 0, 401, 0, 14, 0, 0, 0, 0, 0, 0, 0, 214, 0, 13, 6, 3, 21, 21, 21, 21], [21, 7, 0, 18, 15, 16, 0, 0, 13, 21, 10, 0, 0, 13, 6, 6, 6, 10, 0, 19, 0, 0, 224, 0, 0, 0, 18, 15, 15, 8, 8, 4, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 9, 21, 5, 16, 311, 9, 21, 21, 21, 7, 0, 0, 0, 17, 0, 0, 0, 0, 351, 0, 0, 0, 0, 9, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 9, 5, 11, 0, 0, 12, 8, 4, 21, 7, 0, 0, 0, 19, 0, 0, 0, 0, 13, 15, 15, 16, 401, 12, 4, 21, 21, 21], [21, 1, 10, 0, 0, 0, 0, 13, 5, 11, 0, 0, 0, 0, 0, 12, 5, 8, 16, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 225, 0, 0, 12, 4, 21, 21], [21, 21, 7, 311, 13, 6, 15, 8, 11, 0, 0, 224, 0, 0, 0, 0, 14, 0, 0, 0, 0, 351, 0, 0, 0, 0, 305, 401, 0, 0, 401, 0, 0, 9, 21, 21], [21, 21, 7, 0, 12, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 17, 217, 13, 6, 6, 6, 6, 10, 0, 0, 0, 17, 0, 0, 9, 21, 21], [21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 9, 8, 8, 8, 4, 7, 401, 0, 0, 14, 0, 0, 9, 21, 21], [21, 21, 7, 0, 0, 18, 16, 401, 18, 16, 0, 401, 401, 0, 0, 13, 6, 15, 6, 8, 15, 11, 225, 0, 0, 9, 1, 10, 0, 0, 14, 0, 13, 3, 21, 21], [21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 21, 7, 0, 19, 0, 0, 0, 0, 0, 0, 12, 4, 1, 6, 6, 1, 6, 3, 21, 21, 21], [21, 21, 7, 0, 0, 0, 0, 0, 13, 6, 15, 10, 311, 13, 21, 5, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 8, 8, 4, 21, 21, 21, 21], [21, 21, 7, 0, 0, 0, 0, 18, 8, 11, 0, 14, 0, 12, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 4, 21, 21], [21, 21, 1, 10, 0, 0, 0, 0, 305, 0, 0, 14, 0, 0, 0, 0, 0, 13, 6, 10, 0, 0, 0, 0, 402, 221, 401, 0, 401, 0, 401, 0, 404, 9, 21, 21], [21, 21, 21, 1, 6, 6, 6, 6, 10, 0, 804, 14, 0, 0, 0, 13, 6, 3, 21, 1, 6, 6, 6, 6, 10, 303, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 3, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 7, 206, 206, 206, 206, 206, 206, 206, 206, 9, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 6, 6, 3, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[16] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 4, 21], [21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 21, 5, 11, 0, 0, 0, 0, 0, 9, 21], [21, 21, 5, 8, 8, 8, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 4, 21, 7, 0, 0, 0, 18, 10, 0, 9, 21], [5, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 401, 0, 0, 0, 0, 0, 0, 0, 9, 21, 7, 0, 0, 0, 0, 14, 0, 9, 21], [7, 0, 404, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 10, 0, 0, 18, 16, 0, 224, 0, 0, 0, 0, 0, 12, 5, 8, 16, 0, 0, 223, 14, 0, 9, 21], [7, 0, 18, 6, 10, 212, 0, 0, 0, 0, 0, 224, 0, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 401, 0, 0, 19, 0, 0, 0, 0, 210, 14, 0, 9, 21], [7, 0, 0, 9, 7, 401, 0, 0, 0, 0, 0, 0, 0, 12, 8, 10, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 307, 0, 0, 0, 18, 15, 11, 0, 9, 21], [7, 0, 0, 9, 7, 401, 0, 0, 0, 221, 0, 0, 0, 0, 0, 12, 6, 16, 0, 0, 214, 0, 0, 0, 0, 0, 18, 10, 0, 214, 0, 0, 217, 0, 9, 21], [1, 10, 0, 9, 7, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 18, 15, 15, 10, 0, 0, 0, 0, 12, 15, 6, 15, 15, 16, 0, 9, 21], [21, 7, 0, 9, 8, 6, 10, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 351, 0, 0, 19, 401, 18, 10, 0, 0, 0, 19, 0, 0, 401, 401, 9, 21], [21, 7, 0, 19, 0, 12, 11, 0, 0, 351, 0, 17, 0, 0, 0, 0, 221, 0, 0, 18, 10, 0, 0, 0, 210, 21, 16, 0, 0, 401, 351, 0, 17, 0, 9, 21], [21, 7, 0, 0, 0, 0, 0, 0, 18, 15, 6, 7, 0, 0, 216, 0, 0, 0, 0, 0, 9, 10, 401, 18, 6, 11, 0, 0, 0, 401, 18, 15, 11, 311, 9, 21], [21, 1, 6, 6, 10, 0, 0, 214, 0, 0, 12, 21, 16, 0, 17, 0, 0, 0, 0, 13, 21, 7, 0, 0, 19, 0, 0, 0, 0, 401, 0, 0, 0, 0, 9, 21], [21, 5, 8, 5, 11, 312, 18, 15, 16, 0, 401, 14, 0, 0, 12, 6, 10, 0, 0, 9, 5, 8, 16, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 9, 21], [21, 7, 404, 14, 401, 0, 0, 0, 0, 0, 401, 19, 0, 0, 0, 9, 8, 16, 0, 9, 7, 0, 401, 0, 0, 0, 13, 6, 6, 10, 0, 401, 0, 0, 9, 21], [21, 7, 0, 14, 212, 0, 0, 0, 0, 0, 0, 0, 0, 351, 0, 14, 0, 0, 0, 9, 7, 0, 218, 0, 0, 18, 8, 8, 8, 21, 10, 401, 206, 206, 9, 21], [21, 7, 0, 12, 15, 15, 16, 212, 0, 18, 15, 15, 15, 6, 6, 7, 0, 20, 405, 9, 21, 6, 6, 10, 0, 0, 0, 0, 0, 12, 11, 312, 18, 15, 3, 21], [21, 7, 0, 0, 305, 0, 0, 0, 0, 0, 0, 0, 0, 9, 21, 11, 0, 0, 13, 3, 21, 21, 21, 7, 207, 0, 0, 0, 209, 0, 0, 0, 305, 804, 9, 21], [21, 1, 6, 6, 6, 6, 6, 10, 0, 401, 401, 0, 13, 3, 7, 210, 0, 210, 9, 21, 21, 21, 21, 1, 6, 6, 6, 6, 6, 6, 10, 0, 13, 6, 3, 21], [21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 6, 6, 3, 21, 1, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 3, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[17] = [[21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 4, 21, 21, 5, 8, 5, 11, 0, 0, 0, 0, 0, 12, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 7, 0, 0, 0, 0, 0, 0, 9, 21, 5, 11, 0, 14, 0, 401, 0, 401, 0, 0, 0, 12, 4, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 5, 8, 8, 11, 401, 17, 0, 401, 401, 0, 9, 5, 11, 0, 0, 19, 0, 301, 0, 0, 0, 17, 0, 0, 12, 8, 8, 4, 21, 21, 21, 21, 21, 21], [21, 5, 11, 0, 0, 225, 401, 14, 311, 18, 16, 311, 9, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 223, 9, 5, 8, 4, 21, 21, 21], [21, 7, 0, 0, 0, 0, 401, 14, 0, 0, 0, 0, 14, 401, 221, 0, 0, 0, 17, 401, 0, 0, 0, 14, 306, 13, 16, 0, 0, 9, 7, 0, 12, 4, 21, 21], [21, 7, 0, 0, 0, 0, 401, 14, 0, 0, 0, 0, 14, 401, 401, 0, 221, 0, 12, 16, 216, 0, 211, 14, 0, 19, 0, 0, 18, 3, 11, 0, 0, 9, 21, 21], [21, 7, 401, 18, 15, 15, 15, 8, 10, 401, 18, 15, 11, 206, 0, 214, 0, 0, 0, 0, 18, 15, 15, 7, 0, 351, 0, 0, 0, 19, 0, 0, 223, 9, 21, 21], [21, 7, 401, 0, 0, 0, 0, 0, 19, 401, 351, 0, 0, 18, 15, 15, 15, 16, 0, 0, 0, 0, 0, 12, 15, 16, 0, 0, 0, 0, 0, 0, 0, 9, 21, 21], [21, 1, 10, 0, 2, 0, 0, 0, 0, 18, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 351, 0, 13, 16, 401, 12, 4, 21], [21, 21, 5, 15, 16, 310, 20, 222, 207, 0, 0, 222, 0, 0, 406, 222, 0, 0, 0, 17, 306, 306, 17, 0, 0, 0, 0, 0, 13, 15, 11, 0, 0, 0, 9, 21], [21, 21, 7, 0, 0, 0, 0, 18, 15, 15, 15, 15, 15, 15, 6, 6, 6, 10, 401, 14, 206, 0, 12, 10, 217, 13, 16, 401, 19, 0, 351, 0, 401, 0, 9, 21], [21, 21, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 7, 401, 9, 16, 0, 0, 14, 217, 14, 0, 0, 0, 0, 18, 16, 0, 0, 9, 21], [21, 21, 21, 7, 0, 13, 6, 6, 6, 10, 0, 0, 0, 0, 0, 0, 0, 14, 401, 19, 206, 210, 206, 14, 0, 14, 0, 401, 0, 0, 0, 0, 401, 13, 3, 21], [21, 21, 5, 8, 15, 8, 5, 8, 5, 8, 16, 0, 0, 0, 17, 0, 0, 19, 401, 0, 18, 15, 15, 11, 0, 12, 15, 16, 0, 0, 0, 0, 0, 9, 21, 21], [21, 21, 7, 0, 0, 0, 14, 0, 19, 0, 308, 0, 216, 13, 7, 211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 405, 0, 0, 0, 0, 401, 0, 9, 21, 21], [21, 5, 11, 0, 804, 0, 14, 0, 0, 0, 18, 15, 6, 3, 21, 6, 6, 6, 6, 6, 16, 0, 0, 0, 0, 0, 13, 16, 0, 13, 6, 10, 0, 9, 21, 21], [21, 7, 0, 0, 0, 0, 12, 16, 0, 0, 0, 0, 12, 8, 8, 4, 5, 8, 8, 11, 0, 0, 0, 201, 0, 18, 11, 0, 0, 9, 21, 7, 0, 9, 21, 21], [21, 1, 6, 10, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 204, 9, 7, 0, 0, 305, 0, 0, 13, 10, 0, 0, 351, 0, 13, 3, 21, 7, 206, 9, 21, 21], [21, 21, 21, 7, 0, 0, 13, 6, 6, 6, 6, 6, 6, 6, 6, 3, 7, 404, 0, 13, 6, 6, 3, 1, 6, 6, 6, 6, 3, 21, 21, 1, 6, 3, 21, 21], [21, 21, 21, 1, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
levelmaps[18] = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 4, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 5, 8, 8, 8, 8, 8, 8, 5, 11, 0, 804, 9, 21, 21, 21], [21, 21, 5, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 4, 21, 21, 5, 8, 8, 11, 0, 0, 0, 0, 0, 0, 14, 0, 0, 18, 3, 21, 21, 21], [21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 8, 8, 7, 0, 307, 0, 0, 18, 15, 10, 0, 0, 9, 16, 0, 0, 9, 21, 21, 21], [21, 21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 18, 15, 16, 0, 0, 14, 0, 0, 14, 0, 0, 18, 3, 21, 21, 21], [21, 21, 7, 0, 0, 0, 13, 6, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 0, 0, 0, 14, 0, 0, 9, 16, 0, 0, 9, 21, 21, 21], [21, 21, 7, 0, 0, 0, 9, 21, 7, 0, 0, 0, 13, 10, 0, 0, 0, 13, 6, 6, 15, 15, 16, 0, 0, 14, 0, 0, 14, 0, 0, 18, 3, 21, 21, 21], [21, 5, 11, 0, 18, 15, 8, 8, 7, 212, 0, 0, 9, 7, 0, 0, 0, 9, 21, 7, 0, 0, 0, 0, 0, 14, 0, 0, 12, 16, 0, 0, 9, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 14, 212, 0, 0, 9, 7, 0, 0, 0, 9, 21, 7, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 9, 21, 21, 21], [21, 5, 16, 0, 0, 0, 0, 0, 14, 0, 0, 0, 9, 7, 0, 0, 0, 9, 21, 7, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 18, 3, 21, 21, 21], [21, 7, 0, 0, 0, 0, 221, 0, 12, 15, 16, 0, 9, 7, 0, 0, 0, 9, 21, 7, 0, 0, 0, 18, 15, 7, 0, 0, 0, 206, 206, 206, 9, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 351, 0, 405, 206, 0, 9, 7, 0, 0, 0, 12, 8, 8, 15, 16, 0, 0, 0, 12, 15, 6, 6, 6, 6, 6, 3, 21, 21, 21], [21, 7, 0, 0, 0, 18, 15, 15, 15, 15, 16, 0, 12, 11, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 9, 21, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 16, 0, 0, 206, 9, 21, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 221, 0, 0, 0, 0, 0, 221, 0, 0, 0, 0, 17, 0, 0, 17, 0, 0, 0, 0, 0, 13, 3, 21, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 0, 0, 0, 0, 0, 0, 13, 6, 10, 0, 0, 0, 0, 14, 0, 0, 14, 0, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 7, 0, 0, 2, 0, 0, 0, 209, 0, 9, 21, 7, 0, 0, 209, 0, 14, 0, 0, 14, 0, 0, 0, 218, 0, 9, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 1, 6, 6, 6, 6, 6, 6, 6, 6, 3, 21, 1, 6, 6, 6, 6, 1, 6, 6, 1, 6, 6, 6, 6, 6, 3, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21]];
Frame 3
stop();
playSound("bgmusic", "bg1.mp3", true);
sure._visible = false;
so = SharedObject.getLocal("userData");
onEnterFrame = function () {
mouse._xscale = Math.sqrt(((-10 - _xmouse) * (-10 - _xmouse)) + ((250 - _ymouse) * (250 - _ymouse))) / 6.3;
mouse._rotation = ((-Math.atan((250 - _ymouse) / _xmouse)) * 180) / Math.PI;
};
levelScreen = false;
Frame 4
if (musicOn) {
playSound("bgmusic", "spooky.mp3", true);
}
i = 1;
while (i <= 18) {
levelUnlocked[i] = false;
i++;
}
stop();
Frame 5
stop();
Frame 6
stop();
messageId = messages[1];
buildLevel(1);
map = 1;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Instance of Symbol 766 MovieClip "fog" in Frame 6
onClipEvent (load) {
this.swapDepths(99999991);
}
Frame 7
stop();
levelId = 0;
playspeed = 1;
if (musicOn) {
playSound("bgmusic", "lookout.mp3", true);
}
onEnterFrame = function () {
};
Frame 8
stop();
messageId = messages[2];
buildLevel(2);
map = 2;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 9
stop();
messageId = messages[3];
buildLevel(3);
map = 3;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 10
stop();
messageId = messages[4];
buildLevel(4);
map = 4;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 11
stop();
levelId = 0;
playspeed = 1;
if (musicOn) {
playSound("bgmusic", "lookout.mp3", true);
}
onEnterFrame = function () {
};
Frame 12
stop();
onEnterFrame = function () {
};
game.clip.removeMovieClip();
fog.removeMovieClip();
spendSoul = 0;
spendRoyalsoul = 0;
totalSoul = soul;
levelScreen = true;
soulField.text = totalSoul - spendSoul;
totalRoyalsoul = 0;
i = 1;
while (i <= 18) {
royalsoulLevel = new Array();
royalsoulLevel[i] = 0;
i++;
}
i = 1;
while (i <= 18) {
k = 0;
j = 1;
while (j <= levelSkulls[i]) {
if (royalsoulSingle[i][j]) {
totalRoyalsoul = totalRoyalsoul + 1;
k = k + 1;
}
royalsoulLevel[i] = k;
j++;
}
i++;
}
royalsoulField.text = totalRoyalsoul;
level1Text.text = ((royalsoulLevel[1] + "/") + levelSkulls[1]) + " golden skulls found.";
level2Text.text = ((royalsoulLevel[2] + "/") + levelSkulls[2]) + " golden skulls found.";
level3Text.text = ((royalsoulLevel[3] + "/") + levelSkulls[3]) + " golden skulls found.";
level4Text.text = ((royalsoulLevel[4] + "/") + levelSkulls[4]) + " golden skulls found.";
i = 1;
while (i <= 18) {
_root[("level" + i) + "Text"].color = 13280811 /* 0xCAA62B */;
if (levelUnlocked[i] || (levelUnlocked[i - 1] && (totalRoyalsoul >= levelCost[i]))) {
if (!royalsoulLevel[i]) {
royalsoulLevel[i] = 0;
}
_root[("level" + i) + "Text"].text = ((royalsoulLevel[i] + "/") + levelSkulls[i]) + " golden skulls found.";
if (royalsoulLevel[i] == levelSkulls[i]) {
_root["ind" + i].gotoAndStop(1);
} else if (levelUnlocked[i - 1] && (!levelUnlocked[i])) {
_root["ind" + i].gotoAndStop(3);
} else {
_root["ind" + i].gotoAndStop(2);
}
} else {
_root["ind" + i].gotoAndStop(4);
_root[("level" + i) + "Text"].color = 16765731 /* 0xFFD323 */;
if (levelUnlocked[i - 1]) {
_root[("level" + i) + "Text"].text = ("Locked. Find " + levelCost[i]) + " golden skull";
if (levelCost[i] != 1) {
_root[("level" + i) + "Text"].text = _root[("level" + i) + "Text"].text + "s";
}
_root[("level" + i) + "Text"].text = _root[("level" + i) + "Text"].text + ".";
} else if (levelUnlocked[i - 2]) {
_root[("level" + i) + "Text"].text = "Locked.\nFinish level " + (i - 1);
} else {
_root[("level" + i) + "Text"].text = "Locked.";
}
}
i++;
}
note.text = (("To play further than level " + (maxLevel - 1)) + ", play this game on www.") + gameUrl;
level1Text._visible = false;
button1.onRollOver = function () {
level1Text._visible = true;
ind1._visible = false;
};
button1.onRollOut = function () {
level1Text._visible = false;
ind1._visible = true;
};
level2Text._visible = false;
button2.onRollOver = function () {
level2Text._visible = true;
ind2._visible = false;
};
button2.onRollOut = function () {
level2Text._visible = false;
ind2._visible = true;
};
level3Text._visible = false;
button3.onRollOver = function () {
level3Text._visible = true;
ind3._visible = false;
};
button3.onRollOut = function () {
level3Text._visible = false;
ind3._visible = true;
};
level4Text._visible = false;
button4.onRollOver = function () {
level4Text._visible = true;
ind4._visible = false;
};
button4.onRollOut = function () {
level4Text._visible = false;
ind4._visible = true;
};
level5Text._visible = false;
button5.onRollOver = function () {
level5Text._visible = true;
ind5._visible = false;
};
button5.onRollOut = function () {
level5Text._visible = false;
ind5._visible = true;
};
level6Text._visible = false;
button6.onRollOver = function () {
level6Text._visible = true;
ind6._visible = false;
};
button6.onRollOut = function () {
level6Text._visible = false;
ind6._visible = true;
};
level7Text._visible = false;
button7.onRollOver = function () {
level7Text._visible = true;
ind7._visible = false;
};
button7.onRollOut = function () {
level7Text._visible = false;
ind7._visible = true;
};
level8Text._visible = false;
button8.onRollOver = function () {
level8Text._visible = true;
ind8._visible = false;
};
button8.onRollOut = function () {
level8Text._visible = false;
ind8._visible = true;
};
level9Text._visible = false;
button9.onRollOver = function () {
level9Text._visible = true;
ind9._visible = false;
};
button9.onRollOut = function () {
level9Text._visible = false;
ind9._visible = true;
};
level10Text._visible = false;
button10.onRollOver = function () {
level10Text._visible = true;
ind10._visible = false;
};
button10.onRollOut = function () {
level10Text._visible = false;
ind10._visible = true;
};
level11Text._visible = false;
button11.onRollOver = function () {
level11Text._visible = true;
ind11._visible = false;
};
button11.onRollOut = function () {
level11Text._visible = false;
ind11._visible = true;
};
level12Text._visible = false;
button12.onRollOver = function () {
level12Text._visible = true;
ind12._visible = false;
};
button12.onRollOut = function () {
level12Text._visible = false;
ind12._visible = true;
};
level13Text._visible = false;
button13.onRollOver = function () {
level13Text._visible = true;
ind13._visible = false;
};
button13.onRollOut = function () {
level13Text._visible = false;
ind13._visible = true;
};
level14Text._visible = false;
button14.onRollOver = function () {
level14Text._visible = true;
ind14._visible = false;
};
button14.onRollOut = function () {
level14Text._visible = false;
ind14._visible = true;
};
level15Text._visible = false;
button15.onRollOver = function () {
level15Text._visible = true;
ind15._visible = false;
};
button15.onRollOut = function () {
level15Text._visible = false;
ind15._visible = true;
};
level16Text._visible = false;
button16.onRollOver = function () {
level16Text._visible = true;
ind16._visible = false;
};
button16.onRollOut = function () {
level16Text._visible = false;
ind16._visible = true;
};
level17Text._visible = false;
button17.onRollOver = function () {
level17Text._visible = true;
ind17._visible = false;
};
button17.onRollOut = function () {
level17Text._visible = false;
ind17._visible = true;
};
level18Text._visible = false;
button18.onRollOver = function () {
level18Text._visible = true;
ind18._visible = false;
};
button18.onRollOut = function () {
level18Text._visible = false;
ind18._visible = true;
};
Frame 13
stop();
messageId = messages[5];
buildLevel(5);
map = 5;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Instance of Symbol 766 MovieClip in Frame 13
onClipEvent (load) {
this.swapDepths(99999991);
}
Frame 14
stop();
messageId = messages[6];
buildLevel(6);
map = 6;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 15
stop();
levelId = 0;
if (musicOn) {
playSound("bgmusic", "spooky.mp3", true);
}
onEnterFrame = function () {
};
Frame 16
stop();
messageId = messages[7];
buildLevel(7);
map = 7;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 17
stop();
messageId = messages[8];
buildLevel(8);
map = 8;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 18
stop();
levelId = 0;
playspeed = 1;
if (musicOn) {
playSound("bgmusic", "lookout.mp3", true);
}
onEnterFrame = function () {
};
Frame 19
stop();
messageId = messages[9];
buildLevel(9);
map = 9;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 20
stop();
levelId = 0;
playspeed = 1;
if (musicOn) {
playSound("bgmusic", "spooky.mp3", true);
}
onEnterFrame = function () {
};
Frame 21
stop();
messageId = messages[10];
buildLevel(10);
map = 10;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 22
stop();
messageId = messages[11];
buildLevel(11);
map = 11;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 23
stop();
levelId = 0;
playspeed = 1;
if (musicOn) {
playSound("bgmusic", "lookout.mp3", true);
}
onEnterFrame = function () {
};
Frame 24
stop();
messageId = messages[12];
buildLevel(12);
map = 12;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 25
stop();
messageId = messages[13];
buildLevel(13);
map = 13;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 26
stop();
messageId = messages[14];
buildLevel(14);
map = 14;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 27
stop();
levelId = 0;
playspeed = 1;
if (musicOn) {
playSound("bgmusic", "lookout.mp3", true);
}
onEnterFrame = function () {
};
Frame 28
stop();
messageId = messages[15];
buildLevel(15);
map = 15;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 29
stop();
messageId = messages[16];
buildLevel(16);
map = 16;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 30
stop();
messageId = messages[17];
buildLevel(17);
map = 17;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 31
stop();
levelId = 0;
playspeed = 1;
if (musicOn) {
playSound("bgmusic", "lookout.mp3", true);
}
onEnterFrame = function () {
};
Frame 32
stop();
messageId = messages[18];
buildLevel(18);
map = 18;
fpscount = 0;
fpstotal = 0;
o = getTimer();
onEnterFrame = function () {
step();
t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
o = t;
statusBar.fpsField.text = frameRate;
fpstotal = fpstotal + frameRate;
fpscount++;
statusBar.fpsavField.text = Math.round((fpstotal / fpscount) * 10) / 10;
};
var berekeninterval = setInterval(bereken, 1000);
Frame 33
stop();
t = 0;
Symbol 52 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 62 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 64 MovieClip Frame 1
if ((!_root.placeFree("player", 0, 1)) || (_root.action == "wallrun")) {
_root.player._vspeed = _root.game.vS;
}
Symbol 64 MovieClip Frame 2
_root.playSound("playersound", ("jumpup" + String(random(3) + 1)) + ".mp3");
Symbol 64 MovieClip Frame 13
stop();
Symbol 65 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 65 MovieClip Frame 10
stop();
Symbol 66 MovieClip Frame 1
stop();
frame = 0;
_root.blockmovement = 3;
onEnterFrame = function () {
frame = frame + _root.playspeed;
gotoAndStop(Math.round(frame));
};
Symbol 66 MovieClip Frame 4
stop();
if ((((!_root.placeFree("player", 0, 1)) || (_root.movdown)) || (_root.action == "wallrun")) && (_root.player._vspeed >= 0)) {
_root.player._vspeed = _root.game.vS;
_root.playSound("playersound", ("jumpup" + String(random(3) + 1)) + ".mp3");
}
onEnterFrame = function () {
frame = frame + _root.playspeed;
gotoAndStop(Math.round(frame));
};
Symbol 66 MovieClip Frame 5
stop();
onEnterFrame = function () {
frame = frame + _root.playspeed;
gotoAndStop(Math.round(frame));
};
Symbol 66 MovieClip Frame 17
stop();
Symbol 67 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 68 MovieClip Frame 1
stop();
frame = 0;
playspeed = 2;
onEnterFrame = function () {
frame = frame + _root.playspeed;
gotoAndStop(Math.round(frame));
};
Symbol 68 MovieClip Frame 20
stop();
_root.ducked = true;
stop();
Symbol 69 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 70 MovieClip Frame 1
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 20) {
frame = frame - 20;
}
gotoAndStop(Math.round(frame));
};
Symbol 71 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 72 MovieClip Frame 1
_root.playSound("sounds", "wallrun.mp3");
Symbol 72 MovieClip Frame 31
stop();
_root.playSound("sounds", "grabjump.mp3");
Symbol 73 MovieClip Frame 1
_root.playSound("sounds", ("jumpup" + String(random(3) + 1)) + ".mp3");
Symbol 73 MovieClip Frame 15
stop();
_root.action = "jump";
Symbol 74 MovieClip Frame 1
_root.playSound("sounds", "grabjump.mp3");
Symbol 74 MovieClip Frame 12
stop();
_root.action = "jump";
Symbol 79 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + 2;
gotoAndStop(Math.round(frame));
_root.player._stamina = _root.player._stamina - 1;
};
Symbol 79 MovieClip Frame 8
_root.smash = true;
_root.player._stamina = _root.player._stamina - 10;
_root.playSound("sound", "smash.mp3");
Symbol 79 MovieClip Frame 16
_root.game.hS = _root.game.hS / 2;
_root.blockz = 6;
Symbol 79 MovieClip Frame 22
_root.smash = false;
_root.smashprev = true;
_root.action = "stand";
_root.activity = idle;
_root.blockmovement = 6;
stop();
_root.killmotion = true;
Symbol 94 MovieClip [enemy5] Frame 1
stop();
onEnterFrame = function () {
if (t) {
t--;
}
};
Symbol 94 MovieClip [enemy5] Frame 2
if (t) {
gotoAndStop (1);
}
Symbol 94 MovieClip [enemy5] Frame 9
if (!t) {
ra = random(10000);
name2 = "enemy5" + ra;
_root.game.clip.attachMovie("enemy5ai", name2, _root.d++);
clip = _root.game.clip[name2];
clip._visible = false;
clip._x = _x - 5;
clip._y = _y - 5;
clip.name = name;
clip.name2 = name2;
clip._xscale = _root.game.tileW / 2;
clip._yscale = _root.game.tileW / 2;
clip.dir = (_root.player._x - _x) / Math.abs(_root.player._x - _x);
clip._hspeed = 4.5;
clip._vspeed = 2;
mask = "enemy5mask" + ra;
clip.mask = mask;
_root.game.clip.attachMovie("enemy4mask", mask, _root.d++);
_root.game.clip[mask]._xscale = _root.game.tileW / 2;
_root.game.clip[mask]._yscale = _root.game.tileW / 2;
t = 150;
}
Symbol 101 MovieClip [enemy23] Frame 1
this._rotation = -90;
stop();
onEnterFrame = function () {
if (t) {
t--;
}
};
Symbol 101 MovieClip [enemy23] Frame 2
if (t) {
gotoAndStop (1);
}
Symbol 101 MovieClip [enemy23] Frame 9
if (!t) {
ra = random(10000);
name2 = "enemy4" + ra;
_root.game.clip.attachMovie("enemy23ai", name2, _root.d++);
clip = _root.game.clip[name2];
clip._visible = false;
clip._x = _x - 5;
clip._y = _y - 5;
clip.name = name;
clip.name2 = name2;
clip._xscale = _root.game.tileW / 2;
clip._yscale = _root.game.tileW / 2;
clip.dir = (_root.player._x - _x) / Math.abs(_root.player._x - _x);
clip._hspeed = 4.5;
clip._vspeed = 8;
t = 120;
mask = "enemy4mask" + ra;
clip.mask = mask;
_root.game.clip.attachMovie("enemy4mask", mask, _root.d++);
_root.game.clip[mask]._xscale = _root.game.tileW / 2;
_root.game.clip[mask]._yscale = _root.game.tileW / 2;
}
Symbol 105 MovieClip [enemy4] Frame 1
stop();
onEnterFrame = function () {
if (t) {
t--;
}
};
Symbol 105 MovieClip [enemy4] Frame 2
if (t) {
gotoAndStop (1);
}
Symbol 105 MovieClip [enemy4] Frame 9
if (!t) {
ra = random(10000);
name2 = "enemy4" + ra;
_root.game.clip.attachMovie("enemy4ai", name2, _root.d++);
clip = _root.game.clip[name2];
clip._visible = false;
clip._x = _x - 5;
clip._y = _y - 5;
clip.name = name;
clip.name2 = name2;
clip._xscale = _root.game.tileW / 2;
clip._yscale = _root.game.tileW / 2;
clip.dir = (_root.player._x - _x) / Math.abs(_root.player._x - _x);
clip._hspeed = 4.5;
clip._vspeed = 2;
t = 120;
mask = "enemy4mask" + ra;
clip.mask = mask;
_root.game.clip.attachMovie("enemy4mask", mask, _root.d++);
_root.game.clip[mask]._xscale = _root.game.tileW / 2;
_root.game.clip[mask]._yscale = _root.game.tileW / 2;
}
Symbol 108 MovieClip Frame 1
play();
Symbol 122 MovieClip [enemy9plasma] Frame 1
onEnterFrame = function () {
if (!_vspeed) {
_vspeed = 0;
}
if ((_root.tileFree(name, _hspeed * dir, _vspeed) && (!_root.movableAtPosition(name, _hspeed * dir, _vspeed))) && (!_root.pushableAtPosition(name, _hspeed * dir, _vspeed))) {
_x = (_x + (_hspeed * dir));
_y = (_y + ((-_vspeed) * dir));
} else {
this.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.player._health = _root.player._health - damage;
_root.player._stamina = _root.player._stamina - (damage / 3);
this.removeMovieClip();
}
};
Symbol 123 MovieClip [deco4] Frame 1
onEnterFrame = function () {
xx = _x + (0.5 * _root.game.tileW);
yy = _y + (0.5 * _root.game.tileW);
if (_root.player._x >= xx) {
_root.statusBar.showHeart.arrow._rotation = ((Math.atan((_root.player._y - yy) / (_root.player._x - xx)) * 180) / Math.PI) + 180;
} else {
_root.statusBar.showHeart.arrow._rotation = (Math.atan((_root.player._y - yy) / (_root.player._x - xx)) * 180) / Math.PI;
}
if (_root.checkCollision("player", name)) {
_root.finished = true;
}
};
if (_root.map == 1) {
stop();
} else if (_root.map <= 8) {
gotoAndStop (2);
} else if (_root.map == 9) {
gotoAndStop (5);
} else if (_root.map <= 14) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 152 MovieClip [enemy13jumped] Frame 11
stop();
onEnterFrame = function () {
_rotation = (_rotation + rot);
};
Symbol 165 MovieClip [enemy16] Frame 40
_root.game[name]._vspeed = _root.game[name].vspeed;
Symbol 172 MovieClip [enemy20] Frame 35
gotoAndPlay (1);
Symbol 185 MovieClip [enemy19] Frame 35
gotoAndPlay (1);
Symbol 190 MovieClip [enemy22] Frame 1
onEnterFrame = function () {
rotor._rotation = rotor._rotation + rot;
};
Symbol 192 MovieClip [enemy18] Frame 1
Symbol 202 MovieClip [enemyTransport] Frame 1
_x = (_x + 1);
Symbol 203 MovieClip [enemyFlatBottom2] Frame 1
_x = (_x + 1);
Symbol 204 MovieClip [enemyFlatBottom] Frame 1
_x = (_x + 1);
Symbol 205 MovieClip [enemyFlatRight] Frame 1
_x = (_x + 1);
Symbol 206 MovieClip [enemyFlatLeft] Frame 1
_x = (_x + 1);
Symbol 207 MovieClip [enemyFlatTop] Frame 1
_x = (_x + 1);
Symbol 216 MovieClip [enemy11] Frame 1
stop();
Symbol 217 MovieClip [enemy10] Frame 1
stop();
Symbol 219 MovieClip [enemy6] Frame 1
stop();
Symbol 230 MovieClip [enemy3] Frame 1
stop();
Symbol 230 MovieClip [enemy3] Frame 4
stop();
Symbol 230 MovieClip [enemy3] Frame 10
this.removeMovieClip();
Symbol 247 MovieClip [col6] Frame 1
stop();
Symbol 247 MovieClip [col6] Frame 2
_root.playSound("sound", "button.mp3");
Symbol 247 MovieClip [col6] Frame 5
stop();
Symbol 249 MovieClip [col5] Frame 1
stop();
Symbol 249 MovieClip [col5] Frame 2
_root.playSound("sound", "button.mp3");
Symbol 249 MovieClip [col5] Frame 5
stop();
Symbol 251 MovieClip [col2] Frame 1
stop();
Symbol 251 MovieClip [col2] Frame 2
_root.playSound("sound", "button.mp3");
Symbol 251 MovieClip [col2] Frame 5
tb = _root.statusBar.textbar;
tb.textField.text = "Some platforms started moving.";
if (tb._currentframe > 10) {
tb.gotoAndPlay(10);
} else {
tb.play();
}
Symbol 257 MovieClip [enemy23ai] Frame 1
_root.game.clip[mask]._xscale = ((-_root.game.tileW) / 2) * dir;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
_root.player._health = _root.player._health - _root.game[name].damage;
_root.player.hurt = _root.player.hurt + ((_root.game.flickertime * 2) + 2);
}
if (((_root.player._x < _x) && (dir == -1)) || ((_root.player._x > _x) && (dir == 1))) {
movAllow = true;
} else {
movAllow = false;
}
if ((((_root.player._y - _y) - 5) > _vspeed) && (movAllow)) {
if ((_root.tileFree(name2, _hspeed * dir, _vspeed) && (!_root.movableAtPosition(name2, _hspeed * dir, _vspeed))) && (!_root.pushableAtPosition(name2, _hspeed * dir, _vspeed))) {
_y = (_y + _vspeed);
}
} else if ((((_root.player._y - _y) - 5) < (-_vspeed)) && (movAllow)) {
if ((_root.tileFree(name2, _hspeed * dir, _vspeed) && (!_root.movableAtPosition(name2, _hspeed * dir, _vspeed))) && (!_root.pushableAtPosition(name2, _hspeed * dir, _vspeed))) {
_y = (_y - _vspeed);
}
}
if ((_root.tileFree(name2, _hspeed * dir, 0) && (!_root.movableAtPosition(name2, _hspeed * dir, 0))) && (!_root.pushableAtPosition(name2, _hspeed * dir, 0))) {
_x = (_x + (_hspeed * dir));
_root.game.clip[mask]._x = _x + (_width / 2);
_root.game.clip[mask]._y = _y + (_height / 2);
} else {
name = (("releaseSoul" + _x) + "") + _y;
_root.game.clip.attachMovie("releaseSoul", name2, _root.d++);
_root.game.clip[name]._x = _x + (_root.game.tileW / 4);
_root.game.clip[name]._y = _y + (_root.game.tileW / 4);
_root.game.clip[name]._xscale = _root.game.tileW / 2;
_root.game.clip[name]._yscale = _root.game.tileW / 2;
_root.game.clip[name]._alpha = 60;
_root.game.clip[mask].removeMovieClip();
this.removeMovieClip();
}
};
Symbol 258 MovieClip [enemy5ai] Frame 1
_root.game.clip[mask]._xscale = ((-_root.game.tileW) / 2) * dir;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
_root.player._health = _root.player._health - _root.game[name].damage;
_root.player.hurt = _root.player.hurt + ((_root.game.flickertime * 2) + 2);
}
if (((_root.player._x < _x) && (dir == -1)) || ((_root.player._x > _x) && (dir == 1))) {
movAllow = true;
} else {
movAllow = false;
}
if ((((_root.player._y - _y) - 5) > _vspeed) && (movAllow)) {
if ((_root.tileFree(name2, _hspeed * dir, _vspeed) && (!_root.movableAtPosition(name2, _hspeed * dir, _vspeed))) && (!_root.pushableAtPosition(name2, _hspeed * dir, _vspeed))) {
_y = (_y + _vspeed);
}
} else if ((((_root.player._y - _y) - 5) < (-_vspeed)) && (movAllow)) {
if ((_root.tileFree(name2, _hspeed * dir, _vspeed) && (!_root.movableAtPosition(name2, _hspeed * dir, _vspeed))) && (!_root.pushableAtPosition(name2, _hspeed * dir, _vspeed))) {
_y = (_y - _vspeed);
}
}
if ((_root.tileFree(name2, _hspeed * dir, 0) && (!_root.movableAtPosition(name2, _hspeed * dir, 0))) && (!_root.pushableAtPosition(name2, _hspeed * dir, 0))) {
_x = (_x + (_hspeed * dir));
_root.game.clip[mask]._x = _x + (_width / 2);
_root.game.clip[mask]._y = _y + (_height / 2);
} else {
name = (("releaseSoul" + _x) + "") + _y;
_root.game.clip.attachMovie("releaseSoul", name2, _root.d++);
_root.game.clip[name]._x = _x + (_root.game.tileW / 4);
_root.game.clip[name]._y = _y + (_root.game.tileW / 4);
_root.game.clip[name]._xscale = _root.game.tileW / 2;
_root.game.clip[name]._yscale = _root.game.tileW / 2;
_root.game.clip[name]._alpha = 60;
_root.game.clip[mask].removeMovieClip();
this.removeMovieClip();
}
};
Symbol 259 MovieClip [enemy4ai] Frame 1
_root.game.clip[mask]._xscale = ((-_root.game.tileW) / 2) * dir;
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
_root.player._health = _root.player._health - _root.game[name].damage;
_root.player.hurt = _root.player.hurt + ((_root.game.flickertime * 2) + 2);
}
if ((_root.tileFree(name2, _hspeed * dir, 0) && (!_root.movableAtPosition(name2, _hspeed * dir, 0))) && (!_root.pushableAtPosition(name2, _hspeed * dir, 0))) {
_x = (_x + (_hspeed * dir));
_root.game.clip[mask]._x = _x + (_width / 2);
_root.game.clip[mask]._y = _y + (_height / 2);
} else {
name = (("releaseSoul" + _x) + "") + _y;
_root.game.clip.attachMovie("releaseSoul", name, _root.d++);
_root.game.clip[name]._x = _x + (_root.game.tileW / 4);
_root.game.clip[name]._y = _y + (_root.game.tileW / 4);
_root.game.clip[name]._xscale = _root.game.tileW / 2;
_root.game.clip[name]._yscale = _root.game.tileW / 2;
_root.game.clip[name]._alpha = 60;
_root.game.clip[mask].removeMovieClip();
this.removeMovieClip();
}
};
Symbol 263 MovieClip [releaseSoul] Frame 6
this.removeMovieClip();
Symbol 344 MovieClip Frame 1
textField.text = _root.game.levelName;
Symbol 344 MovieClip Frame 50
stop();
textField.text = _root.game.levelName;
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
this.removeMovieClip();
}
};
Symbol 353 Button
on (release) {
if (_alpha >= 100) {
_alpha = 30;
show = false;
} else {
_alpha = 100;
show = true;
}
}
Symbol 367 MovieClip Frame 1
_alpha = 0;
show = 1;
m = _root.game.tileW / 100;
Symbol 367 MovieClip Frame 50
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x > (1000 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 51
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(2);
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x > (1361 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 52
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(1);
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x > (2000 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 53
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x > (3200 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 54
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._y > (1300 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 55
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x < (2700 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 56
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x < (1600 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 57
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x < (370 * m)) {
play();
}
};
Symbol 367 MovieClip Frame 58
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
};
Symbol 376 MovieClip Frame 1
_alpha = 0;
show = 1;
m = _root.game.tileW / 100;
m90 = _root.game.tileW / 90;
Symbol 376 MovieClip Frame 50
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x > (1300 * m)) {
play();
}
};
Symbol 376 MovieClip Frame 51
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(1);
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x < (1350 * m90)) && (_root.player._y > (800 * m90))) {
play();
}
};
Symbol 376 MovieClip Frame 52
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > (800 * m90)) && (_root.player._y > (1350 * m90))) {
play();
}
};
Symbol 376 MovieClip Frame 53
stop();
onEnterFrame = function () {
if ((_root.player._x > 2380) && (_root.player._y < 500)) {
play();
}
};
Symbol 376 MovieClip Frame 54
stop();
onEnterFrame = function () {
if ((_root.player._x > 2700) && (_root.player._y > 1100)) {
play();
}
};
_root.game.clip.playerclip.baloon.gotoAndStop(4);
Symbol 376 MovieClip Frame 55
stop();
onEnterFrame = function () {
};
_root.game.clip.playerclip.baloon.gotoAndStop(1);
Symbol 385 MovieClip Frame 1
_alpha = 0;
show = 1;
m = _root.game.tileW / 100;
m90 = _root.game.tileW / 90;
Symbol 385 MovieClip Frame 50
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x > 720) {
play();
}
};
Symbol 385 MovieClip Frame 51
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(1);
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > 1620) && (_root.player._y < 500)) {
play();
}
};
Symbol 385 MovieClip Frame 52
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > 2100) || (_root.player._y > 1000)) {
play();
}
};
Symbol 385 MovieClip Frame 53
stop();
onEnterFrame = function () {
if ((_root.player._x > 2500) && (_root.player._y > 1200)) {
play();
}
};
Symbol 385 MovieClip Frame 54
stop();
t = 0;
onEnterFrame = function () {
t++;
if (t > 45) {
play();
}
};
Symbol 385 MovieClip Frame 55
stop();
onEnterFrame = function () {
};
Symbol 400 MovieClip Frame 1
_alpha = 0;
show = 1;
m = _root.game.tileW / 100;
m90 = _root.game.tileW / 90;
Symbol 400 MovieClip Frame 50
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > (940 * m90)) && (_root.player._y < (1200 * m90))) {
play();
}
};
Symbol 400 MovieClip Frame 51
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(5);
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._y < (950 * m90)) {
play();
}
};
Symbol 400 MovieClip Frame 52
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(1);
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > (2050 * m90)) && (_root.player._y < (230 * m90))) {
play();
}
};
Symbol 400 MovieClip Frame 53
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > (2800 * m90)) && (_root.player._y > (1370 * m90))) {
gotoAndStop (54);
}
};
Symbol 400 MovieClip Frame 54
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(6);
onEnterFrame = function () {
};
Symbol 400 MovieClip Frame 55
stop();
onEnterFrame = function () {
};
_root.game.clip.playerclip.baloon.gotoAndStop(1);
Symbol 406 MovieClip [mov4] Frame 1
stop();
Symbol 406 MovieClip [mov4] Frame 4
tb = _root.statusBar.textbar;
tb.textField.text = "A gate has opened.";
if (tb._currentframe > 10) {
tb.gotoAndPlay(10);
} else {
tb.play();
}
_root.playSound("sound", "gateopen.mp3");
Symbol 406 MovieClip [mov4] Frame 29
stop();
Symbol 406 MovieClip [mov4] Frame 36
stop();
tb = _root.statusBar.textbar;
tb.textField.text = "A gate has closed.";
if (tb._currentframe > 10) {
tb.gotoAndPlay(10);
} else {
tb.play();
}
_root.playSound("sound", "gateclose.mp3");
Symbol 410 MovieClip Frame 1
_alpha = 0;
show = 1;
m = _root.game.tileW / 100;
m90 = _root.game.tileW / 90;
Symbol 410 MovieClip Frame 50
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x < 1480) {
play();
}
};
Symbol 410 MovieClip Frame 51
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > 2000) && (_root.player._y > 1500)) {
play();
}
};
Symbol 410 MovieClip Frame 52
stop();
_root.game.clip.playerclip.baloon.gotoAndStop(6);
onEnterFrame = function () {
};
Symbol 433 MovieClip [mov10] Frame 1
crash = 0;
onEnterFrame = function () {
if (crash > _root.game[name].crash) {
_root.playSound("sounds", "stonefall.mp3");
name = "mov3" + _root.d;
_root.game.clip.attachMovie("mov2b", name, _root.d++);
_root.game.clip[name]._x = this._x;
_root.game.clip[name]._y = this._y;
this.removeMovieClip();
}
};
Symbol 442 MovieClip Frame 1
_alpha = 0;
show = 1;
m = _root.game.tileW / 100;
m90 = _root.game.tileW / 90;
Symbol 442 MovieClip Frame 50
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if (_root.player._x > 2000) {
play();
}
};
Symbol 442 MovieClip Frame 51
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x < 2100) && (_root.player._y < 600)) {
play();
}
};
Symbol 442 MovieClip Frame 52
stop();
onEnterFrame = function () {
if ((_alpha < 100) && (show)) {
_alpha = (_alpha + 5);
}
if ((_root.player._x > 2000) && (_root.player._y > 1500)) {
play();
}
};
Symbol 442 MovieClip Frame 53
stop();
onEnterFrame = function () {
};
Symbol 442 MovieClip Frame 54
stop();
onEnterFrame = function () {
};
_root.game.clip.playerclip.baloon.gotoAndStop(7);
Symbol 449 MovieClip Frame 1
stop();
stop();
Instance of Symbol 335 MovieClip "hbar" in Symbol 449 MovieClip Frame 60
onClipEvent (load) {
this.swapDepths(99999998);
}
Symbol 462 MovieClip [col4] Frame 1
play();
Symbol 464 Button
on (press) {
pressed = 1;
}
on (release) {
pressed = 0;
}
on (releaseOutside) {
pressed = 0;
}
on (rollOut) {
pressed = 0;
}
on (dragOut) {
pressed = 0;
}
Symbol 469 Button
on (release) {
_root.finished = 1;
_root.fakefinish = 1;
}
Symbol 475 Button
on (release) {
getURL ("http://www." + _root.gameUrl, "_blank");
}
Symbol 479 Button
on (release) {
_root.bgmusic.setVolume(0);
_root.musicOn = false;
gotoAndStop (2);
}
Symbol 480 Button
on (release) {
_root.bgmusic.setVolume(50);
_root.musicOn = true;
gotoAndStop (1);
}
Symbol 481 MovieClip Frame 1
if (_root.musicOn) {
stop();
} else {
_root.bgmusic.setVolume(0);
gotoAndStop (2);
}
Symbol 484 Button
on (release) {
_root.soundOn = false;
gotoAndStop (2);
}
Symbol 485 Button
on (release) {
_root.soundOn = true;
gotoAndStop (1);
}
Symbol 486 MovieClip Frame 1
if (_root.soundOn) {
stop();
} else {
gotoAndStop (2);
}
Symbol 490 MovieClip Frame 1
stop();
Symbol 498 MovieClip [statusBar] Frame 1
stop();
onEnterFrame = function () {
if (pressed) {
if (_root.soul > 0) {
_root.soul--;
_root.player._health = _root.player._health + 0.5;
}
}
};
Instance of Symbol 335 MovieClip "hbar" in Symbol 498 MovieClip [statusBar] Frame 1
onClipEvent (load) {
this.swapDepths(99999998);
}
Instance of Symbol 340 MovieClip "showHeart" in Symbol 498 MovieClip [statusBar] Frame 1
onClipEvent (load) {
this.swapDepths(999999994);
}
Instance of Symbol 443 MovieClip "showMessage" in Symbol 498 MovieClip [statusBar] Frame 1
onClipEvent (load) {
this.swapDepths(999999993);
if (_root.messageId == 0) {
_visible = false;
}
this.gotoAndStop(_root.messageId);
}
Instance of Symbol 492 MovieClip "sbar" in Symbol 498 MovieClip [statusBar] Frame 1
onClipEvent (load) {
this.swapDepths(99999999);
}
Instance of Symbol 495 MovieClip in Symbol 498 MovieClip [statusBar] Frame 1
onClipEvent (load) {
this.swapDepths(109999999);
}
Instance of Symbol 492 MovieClip "sbar" in Symbol 498 MovieClip [statusBar] Frame 2
onClipEvent (load) {
this.swapDepths(99999999);
}
Instance of Symbol 443 MovieClip "showMessage" in Symbol 498 MovieClip [statusBar] Frame 2
onClipEvent (load) {
this.swapDepths(999999993);
gotoAndStop(level + 1);
}
Symbol 522 MovieClip [enemy8] Frame 1
len = 30;
rot = 0;
onEnterFrame = function () {
if (len > 120) {
if (len > 180) {
len = 30;
} else {
len = 150 - ((len - 120) * 2);
}
} else if (len < 30) {
len = 30;
}
worm._rotation = 0;
worm.body._width = len;
worm.head._x = -5 + len;
worm._rotation = rot;
worm.head._rotation = 180 - rot;
};
Symbol 527 MovieClip [enemy12] Frame 1
stop();
Symbol 535 MovieClip [mov2b] Frame 1
this._xscale = _root.game.tileW + 10;
this._yscale = _root.game.tileW + 10;
this._x = this._x - ((this._width / 110) * 10);
this._y = this._y - ((this._width / 110) * 10);
_root.playSound("sounds", "stonefall.mp3");
Symbol 535 MovieClip [mov2b] Frame 19
this.removeMovieClip();
Symbol 547 MovieClip [mov5] Frame 1
stop();
Symbol 547 MovieClip [mov5] Frame 4
tb = _root.statusBar.textbar;
tb.textField.text = "A gate has opened.";
if (tb._currentframe > 10) {
tb.gotoAndPlay(10);
} else {
tb.play();
}
_root.playSound("sound", "gateopen.mp3");
Symbol 547 MovieClip [mov5] Frame 29
stop();
Symbol 547 MovieClip [mov5] Frame 36
tb = _root.statusBar.textbar;
tb.textField.text = "A gate has closed.";
if (tb._currentframe > 10) {
tb.gotoAndPlay(10);
} else {
tb.play();
}
_root.playSound("sound", "gateclose.mp3");
Symbol 550 MovieClip [mov11] Frame 1
crash = 0;
decr = 0;
inc = 0;
onEnterFrame = function () {
if (Math.abs(_root.player._x - _x) < 200) {
}
if (crash > _root.game[name].crash) {
if (_alpha > 0) {
if (_alpha == 100) {
_root.playSound("sounds", "blockvanish.mp3");
}
this._alpha = this._alpha - 20;
} else {
this._xscale = 0;
this._yscale = 0;
if (inc == 1) {
crash = _root.game[name].crash + 60;
}
decr = 2;
inc = 0;
}
} else if (crash <= 0) {
decr = 0;
inc = 0;
crash = 0;
this._xscale = _root.game.tileW;
this._yscale = _root.game.tileW;
if (_alpha < 100) {
this._alpha = this._alpha + 20;
}
} else {
inc = 1;
}
crash = crash - decr;
crash = crash + inc;
};
Symbol 557 MovieClip [mov12] Frame 1
crash = 0;
onEnterFrame = function () {
if (crash > _root.game[name].crash) {
_root.playSound("sounds", "stonefall.mp3");
name = "enemy" + ec;
ec++;
_root.game[name] = new _root.game.t217();
_root.game.clip.attachMovie(_root.game[name].clip, name + "clip", _root.d++);
_root.game.clip.attachMovie(_root.game[name].clipmask, name, _root.d++);
_root.game[name].name = name;
_root.game.clip[name + "clip"].name = name;
_root.game[name].specie = 217;
_root.game[name]._hspeed = _root.game[name].hspeed * game[name].moveAtInt;
_root.game[name]._vspeed = _root.game[name].vspeed * game[name].moveAtInt;
clip = _root.game.clip[name];
clip._visible = false;
clip._xscale = _root.game.tileW;
clip._yscale = _root.game.tileW;
clip.dir = 1;
clip.name = name;
clip._x = this._x + game[name].clipxoff;
clip._y = (this._y + tileW) + game[name].clipyoff;
clip = _root.game.clip[name + "clip"];
if (_root.game[name].hspeed != 0) {
clip._xscale = -_root.game.tileW;
} else {
clip._xscale = _root.game.tileW;
}
clip._yscale = _root.game.tileW;
clip._x = this._x + game[name].clipxoff;
clip._y = this._y + game[name].clipyoff;
name = "mov3" + _root.d;
_root.game.clip.attachMovie("mov2b", name, _root.d++);
_root.game.clip[name]._x = this._x;
_root.game.clip[name]._y = this._y;
this.removeMovieClip();
}
};
Symbol 572 MovieClip [mov6] Frame 1
crash = 0;
onEnterFrame = function () {
if (crash > _root.game[name].crash) {
_root.playSound("sounds", "stonefall.mp3");
name = "mov3" + _root.d;
_root.game.clip.attachMovie("mov2b", name, _root.d++);
_root.game.clip[name]._x = this._x;
_root.game.clip[name]._y = this._y;
this.removeMovieClip();
}
};
Symbol 573 MovieClip [mov3] Frame 1
if (!crash) {
crash = 0;
}
onEnterFrame = function () {
if (crash > _root.game[name].crash) {
_root.playSound("sounds", "stonefall.mp3");
name = "mov3" + _root.d;
_root.game.clip.attachMovie("mov2b", name, _root.d++);
_root.game.clip[name]._x = this._x;
_root.game.clip[name]._y = this._y;
this.removeMovieClip();
}
};
Symbol 614 MovieClip [block] Frame 1
onEnterFrame = function () {
if (fake) {
if (Key.isDown(67)) {
if (_alpha > 80) {
_alpha = (_alpha-1);
}
} else if (_alpha < 100) {
_alpha = (_alpha+1);
}
}
};
stop();
Symbol 628 Button
on (release) {
getURL ("http://www." + _root.gameUrl, "_blank");
}
Symbol 635 Button
on (release) {
sure._visible = true;
newgame.enabled = false;
loadgame.enabled = false;
sure.yes.enabled = true;
sure.no.enabled = true;
}
Symbol 639 Button
on (release) {
if (so.data.saved != null) {
royalsoulLevel = so.data.royalSoulLevel;
royalsoulSingle = so.data.royalSoulSingle;
levelUnlocked = so.data.levelUnlocked;
soul = so.data.soul;
}
if (levelUnlocked[4]) {
gotoAndStop (12);
} else if (levelUnlocked[3]) {
gotoAndStop (10);
} else if (levelUnlocked[2]) {
gotoAndStop (9);
} else if (levelUnlocked[1]) {
gotoAndStop (8);
} else if (!levelUnlocked[1]) {
soulLevel = new Array();
royalsoulLevel = new Array();
royalsoulSingle = new Array();
levelUnlocked = new Array();
soul = 0;
royalsoul = 0;
gotoAndStop (6);
}
}
Symbol 646 Button
on (release) {
_root.royalsoulLevel = new Array();
_root.royalsoulSingle = new Array();
_root.levelUnlocked = new Array();
_root.royalsoul = 0;
_root.soul = 0;
_root.so.data.royalSoulLevel = _root.royalsoulLevel;
_root.so.data.royalSoulSingle = _root.royalsoulSingle;
_root.so.data.levelUnlocked = _root.levelUnlocked;
_root.so.data.soul = _root.soul;
_root.so.data.saved = true;
_root.so.flush();
_root.play();
}
Symbol 650 Button
on (release) {
this._visible = false;
_root.newgame.enabled = true;
_root.loadgame.enabled = true;
yes.enabled = false;
this.enabled = false;
}
Symbol 667 MovieClip Frame 105
_parent.play();
Symbol 667 MovieClip Frame 130
stop();
Symbol 713 MovieClip Frame 47
stop();
Symbol 727 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + 1.6;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 744 MovieClip Frame 15
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 30
stop();
t = 0;
onEnterFrame = function () {
t++;
if (t > 45) {
if (_currentframe == 30) {
play();
}
}
};
Instance of Symbol 684 MovieClip in Symbol 751 MovieClip Frame 30
onClipEvent (enterFrame) {
_x = (_x + 3);
}
Symbol 751 MovieClip Frame 145
stop();
stop();
tt = 0;
onEnterFrame = function () {
tt++;
if (tt > 60) {
if (_currentframe == 145) {
play();
}
}
};
Instance of Symbol 727 MovieClip in Symbol 751 MovieClip Frame 167
onClipEvent (enterFrame) {
_x = (_x + 6);
}
Symbol 751 MovieClip Frame 300
_parent.play();
Symbol 756 Button
on (release) {
play();
}
Symbol 760 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 764 MovieClip Frame 1
_root.playspeed = 1;
Symbol 764 MovieClip Frame 124
_parent.play();
Symbol 770 MovieClip Frame 1
stop();
Symbol 773 MovieClip Frame 5
stop();
Symbol 781 MovieClip Frame 920
_root.play();
Symbol 782 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 788 MovieClip Frame 910
_root.gotoAndStop(8);
Symbol 791 Button
on (release) {
_root.play();
}
Symbol 804 MovieClip Frame 1
stop();
Symbol 806 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 807 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 809 MovieClip Frame 1
stop();
Symbol 817 MovieClip Frame 1117
_root.nextFrame();
Symbol 822 Button
on (release) {
i = 1;
if (_root.levelUnlocked[i]) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 823 Button
on (release) {
i = 2;
if (_root.levelUnlocked[i]) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 824 Button
on (release) {
i = 3;
if (_root.levelUnlocked[i]) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 825 Button
on (release) {
i = 4;
if (_root.levelUnlocked[i]) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 826 Button
on (release) {
i = 5;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 827 Button
on (release) {
i = 6;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 830 Button
on (release) {
i = 7;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 831 Button
on (release) {
if (onSpelle) {
i = 8;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
} else {
getURL ("http://www.gameitnow.com/Game/8400/Quazl.html", "_self");
}
}
Symbol 832 Button
on (release) {
i = 9;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 833 Button
on (release) {
i = 10;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 834 Button
on (release) {
i = 11;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 835 Button
on (release) {
i = 12;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 836 Button
on (release) {
i = 13;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 837 Button
on (release) {
i = 14;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 838 Button
on (release) {
i = 15;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 839 Button
on (release) {
i = 16;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 840 Button
on (release) {
i = 17;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 841 Button
on (release) {
i = 18;
if (_root.levelUnlocked[i - 1] && (totalRoyalsoul >= _root.levelCost[i])) {
gotoAndStop(levelFrame[i]);
}
}
Symbol 889 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 376
_root.play();
Symbol 954 MovieClip Frame 585
_root.play();
Symbol 966 MovieClip Frame 483
_root.play();
Symbol 975 MovieClip Frame 1
onEnterFrame = function () {
xx = _x + (0.5 * _root.game.tileW);
yy = _y + (0.5 * _root.game.tileW);
if (_root.player._x >= xx) {
_root.statusBar.showHeart.arrow._rotation = ((Math.atan((_root.player._y - yy) / (_root.player._x - xx)) * 180) / Math.PI) + 180;
} else {
_root.statusBar.showHeart.arrow._rotation = (Math.atan((_root.player._y - yy) / (_root.player._x - xx)) * 180) / Math.PI;
}
if (_root.checkCollision("player", name)) {
_root.finished = true;
}
};
Symbol 978 MovieClip Frame 446
_root.play();
Symbol 1029 MovieClip Frame 1070
_root.play();
Symbol 1032 Button
on (release) {
gotoAndStop (550);
}
Symbol 1042 MovieClip Frame 1
stop();
frame = 0;
onEnterFrame = function () {
frame = frame + _root.playspeed;
if (Math.round(frame) > 30) {
frame = frame - 30;
}
gotoAndStop(Math.round(frame));
};
Symbol 1057 Button
on (release) {
_root.gotoAndStop(12);
}
Symbol 1063 Button
on (release) {
_root.play();
}
Symbol 1067 MovieClip Frame 1
if (!_root.levelUnlocked[18]) {
menu.enabled = false;
menu._visible = false;
arena.enabled = false;
arena._visible = false;
}
Instance of Symbol 684 MovieClip in Symbol 1067 MovieClip Frame 58
onClipEvent (enterFrame) {
_x = (_x + 3);
}
Symbol 1067 MovieClip Frame 170
levelUnlocked[18] = true;
stop();
Symbol 1068 MovieClip Frame 550
stop();
Symbol 1074 MovieClip Frame 256
_root.gotoAndPlay(2);
Symbol 1076 Button
on (release) {
_root.getURL("http://www.gameitnow.com", "_blank");
}