Frame 1
function nextStep() {
gotoAndPlay ("firstframe");
}
com.gamezhero.api.as2.GamezheroApi.ini("d403journeyofaservicedroid");
com.gamezhero.api.as2.GamezheroApi.preloader(this, nextStep);
stop();
Frame 5
function Smoke(sinterval, snum, mc, offsetx, offsety) {
this.nsmoke = 0;
this.sinterval = sinterval;
this.mc = mc;
this.offsetx = offsetx;
this.offsety = offsety;
this.mcx = (this.mc._x + r.mc_world.mc_container._x) + this.offsetx;
this.mcy = this.mc._y + this.offsety;
this.snum = snum;
this.smokeArray = [];
this.startSmoke();
}
function wait(duration, mc) {
mc.stop();
this.waitInterval = setInterval(this, "waitCallback", duration, mc);
}
function waitCallback(mc) {
clearInterval(this.waitInterval);
mc.play();
}
function bgFlash() {
this.mc_bg.bgFlash.gotoAndPlay("flash");
}
function submitScore(xp) {
trace("submit score");
var _local2 = {border:{width:2, color:2502460, alpha:100}, background:{topColor:4015958, bottomColor:4015958, topAlpha:100, bottomAlpha:100, cornerRadius:5}, language:"ENG"};
com.gamezhero.api.as2.GamezheroApi.score(this, "155149161152176156200216167132198198153165163202102102100160211170164164156221165153194215199167156155149151156", xp, 170, 46, submitAction, mainMenuAction, errorAction, _local2);
}
function submitAction() {
r.oWorld.backToMainMenu();
}
function mainMenuAction() {
r.oWorld.backToMainMenu();
}
function errorAction() {
r.oWorld.backToMainMenu();
}
function linkZorro() {
com.gamezhero.api.as2.GamezheroApi.linkZorroLogo();
}
function linkPub() {
com.gamezhero.api.as2.GamezheroApi.linkPublish();
}
_global.r = this;
this.buildString = "build 1.05 GamezHero version";
var tileW = 32;
var tileH = 32;
var scrW = 550;
var scrH = 320;
var projectileN = 0;
mc_interface.gotoAndStop(1);
var menuNumItems = 6;
var menuActItem = 0;
var menuOldItem = -1;
setMenu = function () {
var _local1 = mc_interface.mc_titleScreen.mc_menu;
_local1["item" + menuOldItem].gotoAndStop("def");
_local1["item" + menuActItem].gotoAndStop("act");
_local1.m_act.gotoAndStop(menuActItem + 1);
menuOldItem = menuActItem;
};
setMenu();
var menuListener = new Object();
menuListener.onKeyDown = function () {
var _local1 = Key.getCode();
if (mc_interface.mc_titleScreen.infobox_mc._show) {
mc_interface.mc_titleScreen.infobox_mc.gotoAndPlay("hide");
}
if (((_local1 == 83) or (_local1 == 115)) or (_local1 == 32)) {
if (menuActItem == 0) {
gotoAndPlay ("start");
Key.removeListener(menuListener);
} else if (menuActItem == 1) {
loadGame();
} else if (menuActItem == 3) {
com.gamezhero.api.as2.GamezheroApi.linkMoreGames();
} else if (menuActItem == 4) {
com.gamezhero.api.as2.GamezheroApi.linkTopScore();
} else if (menuActItem == 5) {
com.gamezhero.api.as2.GamezheroApi.linkSendToFrined();
}
} else if (_local1 == 40) {
menuActItem++;
if (menuActItem == menuNumItems) {
menuActItem = menuNumItems - 1;
}
setMenu();
} else if (_local1 == 38) {
menuActItem--;
if (menuActItem < 0) {
menuActItem = 0;
}
setMenu();
}
};
Key.addListener(menuListener);
var nLevel = 0;
var levelArray = ["101", "102", "103", "104", "105", "106", "107", "108"];
var levelPasswords = ["58345624", "88453225", "55781325", "33447632", "98769588", "11436698", "98866754", "25499879"];
var indicatorArray = [[105, 161], [154, 161], [202, 161], [250, 161], [302, 161], [350, 161], [398, 161], [446, 161]];
var currentLevel = levelArray[nLevel];
loadGame = function () {
var _local2 = mc_interface.mc_titleScreen.mc_menu.item1.txt_password.text;
var _local1 = false;
i = 0;
while (i < levelPasswords.length) {
if (_local2 == levelPasswords[i]) {
_local1 = true;
nLevel = i;
currentLevel = levelArray[nLevel];
Key.removeListener(menuListener);
Key.removeListener(r.REmenuListener);
if (!oHero) {
gotoAndPlay ("start");
} else {
trace("Restart");
mc_display.gotoAndPlay("fadein");
mc_interface.gotoAndPlay("fadein");
}
}
i++;
}
if (!_local1) {
mc_interface.mc_titleScreen.mc_menu.item1.mc_notvalid.gotoAndPlay("on");
}
};
var settingsListener = new Object();
settingsListener.onKeyDown = function () {
var _local1 = Key.getCode();
if (_local1 == 78) {
if (s.soundOn) {
s.soundOff();
trace("sound off");
} else {
s.turnSoundOn();
trace("sound on");
}
} else if (_local1 == 77) {
if (s.musicOn) {
s.stopBGMusic();
trace("music off");
} else {
s.turnMusicOn();
trace("music on");
}
} else if (_local1 == 84) {
oHero.teleport();
}
};
Key.addListener(settingsListener);
setKeys = function () {
r.REmenuListener = new Object();
menuActItem = 0;
menuOldItem = -1;
setMenu();
r.REmenuListener.onKeyDown = function () {
var _local1 = Key.getCode();
if (mc_interface.mc_titleScreen.infobox_mc._show) {
mc_interface.mc_titleScreen.infobox_mc.gotoAndPlay("hide");
}
if (((_local1 == 83) or (_local1 == 115)) or (_local1 == 32)) {
if (menuActItem == 0) {
trace("reKEYLISTENER");
mc_display.gotoAndPlay("fadein");
mc_interface.gotoAndPlay("fadein");
Key.removeListener(r.REmenuListener);
} else if (menuActItem == 1) {
loadGame();
} else if (menuActItem == 3) {
com.gamezhero.api.as2.GamezheroApi.linkMoreGames();
} else if (menuActItem == 4) {
com.gamezhero.api.as2.GamezheroApi.linkTopScore();
} else if (menuActItem == 5) {
com.gamezhero.api.as2.GamezheroApi.linkSendToFrined();
}
} else if (_local1 == 40) {
menuActItem++;
if (menuActItem == menuNumItems) {
menuActItem = menuNumItems - 1;
}
setMenu();
} else if (_local1 == 38) {
menuActItem--;
if (menuActItem < 0) {
menuActItem = 0;
}
setMenu();
}
};
Key.addListener(r.REmenuListener);
};
activator_mc.onMouseDown = function () {
this.gotoAndStop("hide");
delete this.onMouseDown;
};
Smoke.prototype.genSmoke = function () {
trace(this.mcx);
clearInterval(this.smokeInterval);
this.mcObj = attachMovie("mc_smoke", "mc_smoke" + this.nsmoke, 1000 + this.nsmoke);
this.mcx = (this.mc._x + r.mc_world.mc_container._x) + this.offsetx;
this.mcy = this.mc._y + this.offsety;
this.mcObj._x = (this.mcx + random(32)) - 16;
this.mcObj._y = (this.mcy + random(12)) - 6;
this.mcObj._alpha = 30 + random(70);
if (random(100) < 50) {
this.mcObj._xscale = -100;
}
this.nsmoke++;
this.smokeArray.push(this.mcObj);
if (this.nsmoke > this.snum) {
this.stopSmoke();
} else {
this.startSmoke();
}
};
Smoke.prototype.startSmoke = function () {
this.smokeInterval = setInterval(this, "genSmoke", this.sinterval);
};
Smoke.prototype.stopSmoke = function () {
clearInterval(this.smokeInterval);
this.clearSmokeInterval = setInterval(this, "clearSmoke", 2000);
};
Smoke.prototype.clearSmoke = function () {
clearInterval(this.clearSmokeInterval);
this.smokeArray = null;
i = 0;
while (i < this.nsmoke) {
removeMovieClip(this.smokeArray[i]);
i++;
}
};
var hSpark1 = new Object();
hSpark1.id = "spark1";
hSpark1.Name = "Spark";
hSpark1.Type = "fire";
hSpark1.firingSpeed = 400;
hSpark1.nProj = 1;
hSpark1.yVel = [0];
hSpark1.yOffset = [0];
hSpark1.Velocity = [16];
hSpark1.BaseDamage = 5;
hSpark1.addDamage = 5;
hSpark1.AreaOfEffect = 8;
var hSpark2 = new Object();
hSpark2.id = "spark2";
hSpark2.Name = "Spark2";
hSpark2.Type = "fire";
hSpark2.nProj = 1;
hSpark2.yVel = [0];
hSpark2.yOffset = [0];
hSpark2.firingSpeed = 400;
hSpark2.Velocity = [10];
hSpark2.BaseDamage = 10;
hSpark2.addDamage = 5;
hSpark2.AreaOfEffect = 10;
var hSpark3 = new Object();
hSpark3.id = "spark3";
hSpark3.Name = "Spark3";
hSpark3.Type = "fire";
hSpark3.firingSpeed = 400;
hSpark3.Velocity = [16, 16];
hSpark3.nProj = 2;
hSpark3.yVel = [0, 0];
hSpark3.yOffset = [-6, 6];
hSpark3.BaseDamage = 7;
hSpark3.addDamage = 7;
hSpark3.AreaOfEffect = 8;
var hSpark4 = new Object();
hSpark4.id = "spark4";
hSpark4.Name = "Spark4";
hSpark4.Type = "fire";
hSpark4.firingSpeed = 400;
hSpark4.Velocity = [16, 16, 16];
hSpark4.nProj = 3;
hSpark4.yVel = [-3, 0, 3];
hSpark4.yOffset = [-6, 0, 6];
hSpark4.BaseDamage = 9;
hSpark4.addDamage = 9;
hSpark4.AreaOfEffect = 8;
var hSpark5 = new Object();
hSpark5.id = "spark5";
hSpark5.Name = "Spark5";
hSpark5.Type = "fire";
hSpark5.firingSpeed = 300;
hSpark5.Velocity = [16];
hSpark5.nProj = 1;
hSpark5.yVel = [0];
hSpark5.yOffset = [0];
hSpark5.BaseDamage = 14;
hSpark5.addDamage = 10;
hSpark5.AreaOfEffect = 10;
hSpark5.ticker = 3;
hSpark5.friend = "hGreen1";
var hGreen1 = new Object();
hGreen1.id = "Green1";
hGreen1.Name = "Green1";
hGreen1.Type = "fire";
hGreen1.firingSpeed = 300;
hGreen1.Velocity = [3];
hGreen1.nProj = 1;
hGreen1.yVel = [0];
hGreen1.yOffset = [0];
hGreen1.BaseDamage = 15;
hGreen1.addDamage = 10;
hGreen1.AreaOfEffect = 10;
var hBomb1 = new Object();
hBomb1.id = "Bomb1";
hBomb1.Name = "stickybomb1";
hBomb1.Type = "throw";
hBomb1.firingSpeed = 700;
hBomb1.Velocity = [4];
hBomb1.nProj = 1;
hBomb1.yVel = [0];
hBomb1.yOffset = [0];
hBomb1.BaseDamage = 20;
hBomb1.addDamage = 20;
hBomb1.AreaOfEffect = 10;
hBomb1.BlastArea = 52;
hBomb1.gravity = 0.8;
hBomb1.fallSpeed = -10;
var enemyLight1 = new Object();
enemyLight1.id = "eLight1";
enemyLight1.Name = "enemyLight1";
enemyLight1.Type = "fire";
enemyLight1.firingSpeed = 1000;
enemyLight1.Velocity = [4];
enemyLight1.nProj = 1;
enemyLight1.yVel = [0];
enemyLight1.yOffset = [0];
enemyLight1.BaseDamage = 5;
enemyLight1.addDamage = 2;
enemyLight1.AreaOfEffect = 8;
var enemyLight2 = new Object();
enemyLight2.id = "eLight2";
enemyLight2.Name = "enemyLight2";
enemyLight2.Type = "fire";
enemyLight2.firingSpeed = 800;
enemyLight2.Velocity = [6, 6];
enemyLight2.nProj = 2;
enemyLight2.yVel = [0, 0];
enemyLight2.yOffset = [-6, 6];
enemyLight2.BaseDamage = 10;
enemyLight2.addDamage = 0;
enemyLight2.AreaOfEffect = 7;
var enemyLight3 = new Object();
enemyLight3.id = "eLight3";
enemyLight3.Name = "enemyLight3";
enemyLight3.Type = "fire";
enemyLight3.firingSpeed = 800;
enemyLight3.Velocity = [6, 6, 6];
enemyLight3.nProj = 3;
enemyLight3.yVel = [-3, 0, 3];
enemyLight3.yOffset = [-6, 0, 6];
enemyLight3.BaseDamage = 15;
enemyLight3.addDamage = 0;
enemyLight3.AreaOfEffect = 7;
var enemySpec1 = new Object();
enemySpec1.id = "eSpec1";
enemySpec1.Name = "enemySpec1";
enemySpec1.Type = "fire";
enemySpec1.firingSpeed = 800;
enemySpec1.Velocity = [4, -4, 0];
enemySpec1.nProj = 3;
enemySpec1.yVel = [-8, -8, -8];
enemySpec1.yOffset = [0, 0, 0];
enemySpec1.BaseDamage = 10;
enemySpec1.addDamage = 0;
enemySpec1.AreaOfEffect = 5;
var bossLight1 = new Object();
bossLight1.id = "bossLight1";
bossLight1.Name = "bossLight1";
bossLight1.Type = "fire";
bossLight1.firingSpeed = 800;
bossLight1.Velocity = [8];
bossLight1.nProj = 1;
bossLight1.yVel = [0];
bossLight1.yOffset = [-9];
bossLight1.BaseDamage = 15;
bossLight1.addDamage = 5;
bossLight1.AreaOfEffect = 24;
var bossLight2 = new Object();
bossLight2.id = "bossLight1";
bossLight2.Name = "bossLight1";
bossLight2.Type = "fire";
bossLight2.firingSpeed = 800;
bossLight2.Velocity = [8, 8];
bossLight2.nProj = 2;
bossLight2.yVel = [0, 0];
bossLight2.yOffset = [-15, 9];
bossLight2.BaseDamage = 15;
bossLight2.addDamage = 5;
bossLight2.AreaOfEffect = 24;
bossLight2.ticker = 2;
bossLight2.friend = "RoboBomb1";
var enemyBomb1 = new Object();
enemyBomb1.id = "eBomb";
enemyBomb1.Name = "eBomb";
enemyBomb1.Type = "throw";
enemyBomb1.firingSpeed = 700;
enemyBomb1.Velocity = [4];
enemyBomb1.nProj = 1;
enemyBomb1.yVel = [0];
enemyBomb1.yOffset = [0];
enemyBomb1.BaseDamage = 20;
enemyBomb1.addDamage = 20;
enemyBomb1.AreaOfEffect = 10;
enemyBomb1.BlastArea = 52;
enemyBomb1.gravity = 0.8;
enemyBomb1.fallSpeed = 2;
var enemyFinalBossBomb = new Object();
enemyFinalBossBomb.id = "eBomb";
enemyFinalBossBomb.Name = "eBomb";
enemyFinalBossBomb.Type = "throw";
enemyFinalBossBomb.firingSpeed = 200;
enemyFinalBossBomb.Velocity = [4];
enemyFinalBossBomb.nProj = 1;
enemyFinalBossBomb.yVel = [0];
enemyFinalBossBomb.yOffset = [0];
enemyFinalBossBomb.BaseDamage = 20;
enemyFinalBossBomb.addDamage = 20;
enemyFinalBossBomb.AreaOfEffect = 10;
enemyFinalBossBomb.BlastArea = 52;
enemyFinalBossBomb.gravity = 0.8;
enemyFinalBossBomb.fallSpeed = 2;
var Stone1 = new Object();
Stone1.cname = "Stone1";
Stone1.brainType = "A";
Stone1.creatureH = 16;
Stone1.creatureW = 16;
Stone1.HP = 50;
Stone1.sp = 1;
Stone1.damage = 2;
Stone1.xpValue = 2;
Stone1.jumpstart = -12;
Stone1.gravity = 1.7;
Stone1.dir = null;
Stone1.tempDir = null;
Stone1.walking = false;
Stone1.flying = false;
Stone1.projectile = false;
Stone1.projectileTimer = 0;
Stone1.projectileSpeed = 500;
Stone1.curProjectile = null;
Stone1.fire = false;
Stone1.projXOffset = 0;
Stone1.projYOffset = 0;
Stone1.dirArray = new Array("right", "left");
Stone1.recoilArray = new Array(5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1);
Stone1.petrified = true;
Stone1.sensorCreature = false;
var Stone2 = new Object();
Stone2.cname = "Stone2";
Stone2.brainType = "A";
Stone2.creatureH = 16;
Stone2.creatureW = 16;
Stone2.HP = 400;
Stone2.sp = 1;
Stone2.damage = 2;
Stone2.xpValue = 2;
Stone2.jumpstart = -12;
Stone2.gravity = 1.7;
Stone2.dir = null;
Stone2.tempDir = null;
Stone2.walking = false;
Stone2.flying = false;
Stone2.projectile = false;
Stone2.projectileTimer = 0;
Stone2.projectileSpeed = 500;
Stone2.curProjectile = null;
Stone2.fire = false;
Stone2.projXOffset = 0;
Stone2.projYOffset = 0;
Stone2.dirArray = new Array("right", "left");
Stone2.recoilArray = new Array(5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1);
Stone2.petrified = true;
Stone2.sensorCreature = false;
var Stone3 = new Object();
Stone3.cname = "Stone3";
Stone3.brainType = "A";
Stone3.creatureH = 16;
Stone3.creatureW = 16;
Stone3.HP = 5;
Stone3.sp = 1;
Stone3.damage = 2;
Stone3.xpValue = 2;
Stone3.jumpstart = -12;
Stone3.gravity = 0;
Stone3.dir = null;
Stone3.tempDir = null;
Stone3.walking = false;
Stone3.flying = false;
Stone3.projectile = false;
Stone3.projectileTimer = 0;
Stone3.projectileSpeed = 500;
Stone3.curProjectile = null;
Stone3.fire = false;
Stone3.projXOffset = 0;
Stone3.projYOffset = 0;
Stone3.dirArray = new Array("right", "left");
Stone3.recoilArray = new Array(0, 0);
Stone3.petrified = true;
Stone3.sensorCreature = false;
var Turrent1_l = new Object();
Turrent1_l.cname = "Turrent1_l";
Turrent1_l.brainType = "A";
Turrent1_l.creatureH = 16;
Turrent1_l.creatureW = 16;
Turrent1_l.HP = 15;
Turrent1_l.sp = 0;
Turrent1_l.damage = 5;
Turrent1_l.xpValue = 10;
Turrent1_l.jumpstart = -12;
Turrent1_l.gravity = 0;
Turrent1_l.dir = "left";
Turrent1_l.tempDir = "left";
Turrent1_l.walking = false;
Turrent1_l.flying = false;
Turrent1_l.sensorAreaX = 6;
Turrent1_l.sensorAreaY = 6;
Turrent1_l.projectile = true;
Turrent1_l.projectileTimer = 0;
Turrent1_l.projectileSpeed = 1200;
Turrent1_l.curProjectile = r.enemyLight1;
Turrent1_l.fire = true;
Turrent1_l.projXOffset = 16;
Turrent1_l.projYOffset = 0;
Turrent1_l.dirArray = new Array("left");
Turrent1_l.recoilArray = new Array(0, 0, 0);
Turrent1_l.petrified = false;
Turrent1_l.sensorCreature = false;
var Turrent1_r = new Object();
Turrent1_r.cname = "Turrent1_r";
Turrent1_r.brainType = "A";
Turrent1_r.creatureH = 16;
Turrent1_r.creatureW = 16;
Turrent1_r.HP = 15;
Turrent1_r.sp = 0;
Turrent1_r.damage = 5;
Turrent1_r.xpValue = 10;
Turrent1_r.jumpstart = -12;
Turrent1_r.gravity = 0;
Turrent1_r.dir = "right";
Turrent1_r.tempDir = "right";
Turrent1_r.walking = false;
Turrent1_r.flying = false;
Turrent1_r.sensorAreaX = 6;
Turrent1_r.sensorAreaY = 6;
Turrent1_r.projectile = true;
Turrent1_r.projectileTimer = 0;
Turrent1_r.projectileSpeed = 1200;
Turrent1_r.curProjectile = r.enemyLight1;
Turrent1_r.fire = true;
Turrent1_r.projXOffset = -16;
Turrent1_r.projYOffset = 0;
Turrent1_r.dirArray = new Array("right");
Turrent1_r.recoilArray = new Array(0, 0, 0);
Turrent1_r.petrified = false;
Turrent1_r.sensorCreature = false;
var Blob = new Object();
Blob.cname = "Blob";
Blob.brainType = "A";
Blob.creatureH = 16;
Blob.creatureW = 16;
Blob.HP = 10;
Blob.sp = 1;
Blob.damage = 2;
Blob.xpValue = 5;
Blob.jumpstart = -8;
Blob.gravity = 1;
Blob.dir = "left";
Blob.tempDir = "left";
Blob.walking = false;
Blob.flying = false;
Blob.sensorAreaX = 4;
Blob.sensorAreaY = 1;
Blob.projectile = false;
Blob.projectileTimer = 0;
Blob.projectileSpeed = 1000;
Blob.curProjectile = null;
Blob.fire = false;
Blob.projXOffset = 0;
Blob.projYOffset = 0;
Blob.dirArray = new Array("right", "left");
Blob.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Blob.petrified = false;
Blob.sensorCreature = false;
var Blob2 = new Object();
Blob2.cname = "Blob2";
Blob2.brainType = "C";
Blob2.creatureH = 16;
Blob2.creatureW = 16;
Blob2.HP = 15;
Blob2.sp = 1;
Blob2.damage = 2;
Blob2.xpValue = 15;
Blob2.jumpstart = -12;
Blob2.gravity = 1;
Blob2.dir = "left";
Blob2.tempDir = "left";
Blob2.walking = false;
Blob2.flying = false;
Blob2.sensorAreaX = 5;
Blob2.sensorAreaY = 2;
Blob2.projectile = false;
Blob2.projectileTimer = 0;
Blob2.projectileSpeed = 0;
Blob2.curProjectile = null;
Blob2.fire = false;
Blob2.projXOffset = 0;
Blob2.projYOffset = 0;
Blob2.dirArray = new Array("right", "left");
Blob2.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Blob2.petrified = false;
Blob2.sensorCreature = false;
var Scarabe = new Object();
Scarabe.cname = "Scarabe";
Scarabe.brainType = "B";
Scarabe.creatureH = 16;
Scarabe.creatureW = 16;
Scarabe.HP = 10;
Scarabe.sp = 1;
Scarabe.damage = 2;
Scarabe.xpValue = 5;
Scarabe.jumpstart = -12;
Scarabe.gravity = 1;
Scarabe.dir = "left";
Scarabe.tempDir = "left";
Scarabe.walking = false;
Scarabe.flying = false;
Scarabe.sensorAreaX = 4;
Scarabe.sensorAreaY = 1;
Scarabe.projectile = false;
Scarabe.projectileTimer = 0;
Scarabe.projectileSpeed = 500;
Scarabe.curProjectile = null;
Scarabe.fire = false;
Scarabe.projXOffset = 0;
Scarabe.projYOffset = 0;
Scarabe.dirArray = new Array("right", "left");
Scarabe.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Scarabe.petrified = false;
Scarabe.sensorCreature = false;
var Scarabe2 = new Object();
Scarabe2.cname = "Scarabe2";
Scarabe2.brainType = "D";
Scarabe2.creatureH = 16;
Scarabe2.creatureW = 16;
Scarabe2.HP = 15;
Scarabe2.sp = 1;
Scarabe2.damage = 5;
Scarabe2.xpValue = 15;
Scarabe2.jumpstart = -12;
Scarabe2.gravity = 1;
Scarabe2.dir = "left";
Scarabe2.tempDir = "left";
Scarabe2.walking = false;
Scarabe2.flying = false;
Scarabe2.sensorAreaX = 6;
Scarabe2.sensorAreaY = 2;
Scarabe2.projectile = true;
Scarabe2.projectileTimer = 0;
Scarabe2.projectileSpeed = 500;
Scarabe2.curProjectile = r.enemyLight1;
Scarabe2.fire = true;
Scarabe2.projXOffset = 0;
Scarabe2.projYOffset = 7;
Scarabe2.dirArray = new Array("right", "left");
Scarabe2.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Scarabe2.petrified = false;
Scarabe2.sensorCreature = false;
var Robo1 = new Object();
Robo1.cname = "Robo1";
Robo1.brainType = "C";
Robo1.creatureH = 16;
Robo1.creatureW = 16;
Robo1.HP = 20;
Robo1.sp = 0.5;
Robo1.damage = 5;
Robo1.xpValue = 15;
Robo1.jumpstart = -12;
Robo1.gravity = 2;
Robo1.dir = "left";
Robo1.tempDir = "left";
Robo1.walking = false;
Robo1.flying = false;
Robo1.sensorAreaX = 5;
Robo1.sensorAreaY = 2;
Robo1.projectile = true;
Robo1.projectileTimer = 0;
Robo1.projectileSpeed = 800;
Robo1.curProjectile = r.enemyLight2;
Robo1.fire = true;
Robo1.projXOffset = 0;
Robo1.projYOffset = 0;
Robo1.dirArray = new Array("right", "left");
Robo1.recoilArray = new Array(3, 2, 2, 1, 1);
Robo1.petrified = false;
Robo1.sensorCreature = false;
var Robo2 = new Object();
Robo2.cname = "Robo2";
Robo2.brainType = "D";
Robo2.creatureH = 16;
Robo2.creatureW = 16;
Robo2.HP = 20;
Robo2.sp = 1;
Robo2.damage = 7;
Robo2.xpValue = 20;
Robo2.jumpstart = -12;
Robo2.gravity = 2;
Robo2.dir = "left";
Robo2.tempDir = "left";
Robo2.walking = false;
Robo2.flying = false;
Robo2.sensorAreaX = 7;
Robo2.sensorAreaY = 2;
Robo2.projectile = true;
Robo2.projectileTimer = 0;
Robo2.projectileSpeed = 800;
Robo2.curProjectile = r.enemyLight3;
Robo2.fire = true;
Robo2.projXOffset = 0;
Robo2.projYOffset = 0;
Robo2.dirArray = new Array("right", "left");
Robo2.recoilArray = new Array(3, 2, 2, 1, 1);
Robo2.petrified = false;
Robo2.sensorCreature = false;
var Large = new Object();
Large.cname = "Large";
Large.brainType = "A";
Large.creatureH = 32;
Large.creatureW = 32;
Large.HP = 20;
Large.sp = 1;
Large.damage = 5;
Large.xpValue = 15;
Large.jumpstart = -12;
Large.gravity = 2;
Large.dir = "left";
Large.tempDir = "left";
Large.walking = false;
Large.flying = false;
Large.sensorAreaX = 5;
Large.sensorAreaY = 2;
Large.projectile = false;
Large.projectileTimer = 0;
Large.projectileSpeed = 800;
Large.curProjectile = r.enemyLight1;
Large.fire = false;
Large.projXOffset = 0;
Large.projYOffset = 0;
Large.dirArray = new Array("right", "left");
Large.recoilArray = new Array(3, 2, 2, 1, 1);
Large.petrified = false;
Large.sensorCreature = false;
var Sandworm1 = new Object();
Sandworm1.cname = "Sandworm1";
Sandworm1.brainType = "A";
Sandworm1.creatureH = 16;
Sandworm1.creatureW = 16;
Sandworm1.HP = 10;
Sandworm1.sp = 1;
Sandworm1.damage = 5;
Sandworm1.xpValue = 10;
Sandworm1.jumpstart = -12;
Sandworm1.gravity = 2;
Sandworm1.dir = null;
Sandworm1.tempDir = null;
Sandworm1.walking = false;
Sandworm1.flying = false;
Sandworm1.projectile = false;
Sandworm1.projectileTimer = 0;
Sandworm1.projectileSpeed = 3000;
Sandworm1.curProjectile = null;
Sandworm1.fire = false;
Sandworm1.projXOffset = 0;
Sandworm1.projYOffset = 0;
Sandworm1.dirArray = new Array(null, null);
Sandworm1.recoilArray = new Array(0, 0);
Sandworm1.petrified = false;
Sandworm1.sensorAreaX = 2;
Sandworm1.sensorAreaY = 2;
Sandworm1.sensorCreature = true;
var Sandworm2 = new Object();
Sandworm2.cname = "Sandworm2";
Sandworm2.brainType = "A";
Sandworm2.creatureH = 16;
Sandworm2.creatureW = 16;
Sandworm2.HP = 25;
Sandworm2.sp = 1;
Sandworm2.damage = 10;
Sandworm2.xpValue = 15;
Sandworm2.jumpstart = -12;
Sandworm2.gravity = 2;
Sandworm2.dir = null;
Sandworm2.tempDir = null;
Sandworm2.walking = false;
Sandworm2.flying = false;
Sandworm2.projectile = true;
Sandworm2.projectileTimer = 0;
Sandworm2.projectileSpeed = 3000;
Sandworm2.curProjectile = r.enemySpec1;
Sandworm2.fire = true;
Sandworm2.projXOffset = 0;
Sandworm2.projYOffset = -10;
Sandworm2.dirArray = new Array(null, null);
Sandworm2.recoilArray = new Array(0, 0);
Sandworm2.petrified = false;
Sandworm2.sensorAreaX = 7;
Sandworm2.sensorAreaY = 7;
Sandworm2.sensorCreature = true;
var Mosq1 = new Object();
Mosq1.cname = "Mosq1";
Mosq1.brainType = "A";
Mosq1.creatureH = 16;
Mosq1.creatureW = 16;
Mosq1.HP = 10;
Mosq1.sp = 2;
Mosq1.damage = 5;
Mosq1.xpValue = 15;
Mosq1.jumpstart = -12;
Mosq1.gravity = 2;
Mosq1.dir = "left";
Mosq1.tempDir = "left";
Mosq1.walking = false;
Mosq1.flying = true;
Mosq1.flyingArray = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Mosq1.sensorAreaX = 10;
Mosq1.sensorAreaY = 10;
Mosq1.projectile = true;
Mosq1.projectileTimer = 0;
Mosq1.projectileSpeed = 2000;
Mosq1.curProjectile = r.enemyBomb1;
Mosq1.fire = true;
Mosq1.projXOffset = 0;
Mosq1.projYOffset = 16;
Mosq1.dirArray = new Array("left", "right");
Mosq1.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Mosq1.petrified = false;
Mosq1.sensorCreature = false;
var Mosq2 = new Object();
Mosq2.cname = "Mosq2";
Mosq2.brainType = "D";
Mosq2.creatureH = 16;
Mosq2.creatureW = 16;
Mosq2.HP = 20;
Mosq2.sp = 2;
Mosq2.damage = 5;
Mosq2.xpValue = 15;
Mosq2.jumpstart = -12;
Mosq2.gravity = 2;
Mosq2.dir = "left";
Mosq2.tempDir = "left";
Mosq2.walking = false;
Mosq2.flying = true;
Mosq2.flyingArray = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Mosq2.sensorAreaX = 10;
Mosq2.sensorAreaY = 10;
Mosq2.projectile = false;
Mosq2.projectileTimer = 0;
Mosq2.projectileSpeed = 0;
Mosq2.curProjectile = null;
Mosq2.fire = false;
Mosq2.projXOffset = 0;
Mosq2.projYOffset = 0;
Mosq2.dirArray = new Array("left", "right");
Mosq2.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Mosq2.petrified = false;
Mosq2.sensorCreature = false;
var Mosq3 = new Object();
Mosq3.cname = "Mosq3";
Mosq3.brainType = "C";
Mosq3.creatureH = 16;
Mosq3.creatureW = 16;
Mosq3.HP = 15;
Mosq3.sp = 2;
Mosq3.damage = 5;
Mosq3.xpValue = 15;
Mosq3.jumpstart = -12;
Mosq3.gravity = 2;
Mosq3.dir = "left";
Mosq3.tempDir = "left";
Mosq3.walking = false;
Mosq3.flying = true;
Mosq3.flyingArray = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Mosq3.sensorAreaX = 10;
Mosq3.sensorAreaY = 10;
Mosq3.projectile = true;
Mosq3.projectileTimer = 0;
Mosq3.projectileSpeed = 2000;
Mosq3.curProjectile = r.enemyBomb1;
Mosq3.fire = true;
Mosq3.projXOffset = 0;
Mosq3.projYOffset = 16;
Mosq3.dirArray = new Array("left", "right");
Mosq3.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Mosq3.petrified = false;
Mosq3.sensorCreature = false;
var Mosq4 = new Object();
Mosq4.cname = "Mosq4";
Mosq4.brainType = "D";
Mosq4.creatureH = 16;
Mosq4.creatureW = 16;
Mosq4.HP = 30;
Mosq4.sp = 2;
Mosq4.damage = 5;
Mosq4.xpValue = 20;
Mosq4.jumpstart = -12;
Mosq4.gravity = 2;
Mosq4.dir = "left";
Mosq4.tempDir = "left";
Mosq4.walking = false;
Mosq4.flying = true;
Mosq4.flyingArray = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Mosq4.sensorAreaX = 10;
Mosq4.sensorAreaY = 10;
Mosq4.projectile = true;
Mosq4.projectileTimer = 0;
Mosq4.projectileSpeed = 2000;
Mosq4.curProjectile = r.enemyLight3;
Mosq4.fire = true;
Mosq4.projXOffset = 0;
Mosq4.projYOffset = 0;
Mosq4.dirArray = new Array("left", "right");
Mosq4.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Mosq4.petrified = false;
Mosq4.sensorCreature = false;
var RoboBomb1 = new Object();
RoboBomb1.cname = "RoboBomb1";
RoboBomb1.brainType = "D";
RoboBomb1.creatureH = 16;
RoboBomb1.creatureW = 16;
RoboBomb1.HP = 20;
RoboBomb1.sp = 4;
RoboBomb1.damage = 20;
RoboBomb1.xpValue = 25;
RoboBomb1.jumpstart = -12;
RoboBomb1.gravity = 2;
RoboBomb1.dir = "left";
RoboBomb1.tempDir = "left";
RoboBomb1.walking = false;
RoboBomb1.flying = true;
RoboBomb1.flyingArray = new Array(-1, 0, -1, 0, -1, 0, -1, 0, -1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0);
RoboBomb1.sensorAreaX = 10;
RoboBomb1.sensorAreaY = 10;
RoboBomb1.projectile = false;
RoboBomb1.projectileTimer = 0;
RoboBomb1.projectileSpeed = 0;
RoboBomb1.curProjectile = null;
RoboBomb1.fire = false;
RoboBomb1.projXOffset = 0;
RoboBomb1.projYOffset = 0;
RoboBomb1.dirArray = new Array("left", "right");
RoboBomb1.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
RoboBomb1.petrified = false;
RoboBomb1.sensorCreature = false;
var Spider1 = new Object();
Spider1.cname = "Spider1";
Spider1.brainType = "B";
Spider1.creatureH = 16;
Spider1.creatureW = 16;
Spider1.HP = 10;
Spider1.sp = 2;
Spider1.damage = 2;
Spider1.xpValue = 20;
Spider1.jumpstart = -12;
Spider1.gravity = 1;
Spider1.dir = "left";
Spider1.tempDir = "left";
Spider1.walking = false;
Spider1.flying = false;
Spider1.sensorAreaX = 4;
Spider1.sensorAreaY = 1;
Spider1.projectile = false;
Spider1.projectileTimer = 0;
Spider1.projectileSpeed = 500;
Spider1.curProjectile = r.enemyLight1;
Spider1.fire = false;
Spider1.projXOffset = 0;
Spider1.projYOffset = 0;
Spider1.dirArray = new Array("right", "left");
Spider1.recoilArray = new Array(3, 3, 2, 2, 2, 1, 1, 1);
Spider1.petrified = false;
Spider1.sensorCreature = false;
Frame 8
World = function () {
r.mc_world.createEmptyMovieClip("mc_container", 100);
r.mc_world.mc_container._x = (-tileW) - 1;
this.contOrgX = r.mc_world.mc_container._x;
this.contOrgY = r.mc_world.mc_container._y;
this.loadLevelData();
this.loadLevelData2();
this.loadLevelData3();
this.creatureArray = new Array();
this.elementArray = new Array();
this.itemArray = new Array();
this.dialogArray = new Array();
this.mapLocked = false;
this.gameOn = true;
this.gameWon = false;
this.creatureDlevel = 0;
this.drawMap(this[("level" + r.currentLevel) + "Map"]);
};
World.prototype.drawMap = function (map) {
r.currentMapObj = map;
this.xLen = map[0].length;
this.yLen = map.length;
r.mc_world.mc_container._y = ((this.yLen * tileH) - r.scrH) * -1;
r.levelH = r.mc_world.mc_container._y;
var _local2 = 0;
j = 0;
while (j < this.yLen) {
i = 0;
while (i < this.xLen) {
_local2++;
trace(_local2);
obj = r.mc_world.mc_container.attachMovie("mc_tile", (("mc_t_" + i) + "_") + j, _local2, {_x:i * r.tileW, _y:j * r.tileH});
obj.gotoAndStop(1);
i++;
}
j++;
}
};
World.prototype.newLevel = function (level) {
mc_display.gotoAndPlay("fadein");
this.pauseAll();
};
World.prototype.drawNewLevel = function (level) {
oHero.levelXP = oHero.XP;
oHero.addXP(0);
this.clearAllCreatures();
this.clearAllElements();
this.clearAllDialogs();
map = this[("level" + level) + "Map"];
r.currentMapObj = map;
this.xLen = map[0].length;
this.yLen = map.length;
this.clearMap(map);
var _local2 = 0;
j = 0;
while (j < this.yLen) {
i = 0;
while (i < this.xLen) {
obj = r.mc_world.mc_container[(("mc_t_" + i) + "_") + j];
obj.gotoAndStop(map[j][i] + 1);
_local2++;
i++;
}
j++;
}
trace("Draw: " + _local2);
r.mc_world.mc_container._x = (-tileW) - 1;
oHero.setGodmode(false);
oHero.live();
this.mapLocked = false;
this.initLevel(level);
};
World.prototype.pauseAll = function () {
oHero.setGodmode(true);
oHero.rest();
i = 0;
while (i < this.creatureArray.length) {
this.creatureArray[i].ref.rest();
i++;
}
i = 0;
while (i < this.elementArray.length) {
this.elementArray[i].ref.rest();
i++;
}
i = 0;
while (i < this.dialogArray.length) {
this.dialogArray[i].ref.rest();
i++;
}
};
World.prototype.clearAllCreatures = function () {
this.clearArray(this.creatureArray);
delete this.creatureArray;
this.creatureArray = new Array();
};
World.prototype.clearAllElements = function () {
this.clearArray(this.elementArray);
delete this.elementArray;
this.elementArray = new Array();
};
World.prototype.clearAllDialogs = function () {
this.clearArray(this.dialogArray);
delete this.dialogArray;
this.dialogArray = new Array();
};
World.prototype.clearArray = function (activeArray) {
i = 0;
while (i < activeArray.length) {
removeMovieClip(activeArray[i]);
activeArray[i].ref = null;
i++;
}
};
World.prototype.clearMap = function (map) {
this.xLen = map[0].length;
this.yLen = map.length;
j = 0;
while (j < this.yLen) {
i = 0;
while (i < this.xLen) {
obj = r.mc_world.mc_container[(("mc_t_" + i) + "_") + j];
obj.gotoAndStop(1);
count++;
i++;
}
j++;
}
};
World.prototype.levelDone = function () {
r.nLevel++;
r.currentLevel = levelArray[r.nLevel];
r.projectileN = 0;
oHero.levelXP = this.XP;
this.newLevel(r.currentLevel);
if (!this.gameWon) {
s.fadeInMusic("menu");
}
};
World.prototype.levelFail = function () {
s.fadeInMusic("menu");
if (oHero.lives > 0) {
r.projectileN = 0;
oHero.resetHero();
oHero.XP = oHero.levelXP;
} else {
this.gameOn = false;
}
this.newLevel(r.currentLevel);
};
World.prototype.initLevel = function (level) {
var _local6 = this[("level" + level) + "Background"];
r.mc_bg.gotoAndStop(_local6);
cA = this[("level" + level) + "CreatureArray"];
var _local2 = 0;
while (_local2 < cA.length) {
if (cA[_local2][0] == "Boss1") {
oBoss = new Boss("miniBoss" + _local2, cA[_local2][1], cA[_local2][2], _local2, r.currentMapObj);
} else if (cA[_local2][0] == "FinalBoss") {
oFinalBoss = new FinalBoss("finalBoss" + _local2, cA[_local2][1], cA[_local2][2], _local2, r.currentMapObj);
} else {
obj = this["creature_" + _local2];
obj = new Creature("mc_creature" + _local2, cA[_local2][0], cA[_local2][1], cA[_local2][2], _local2, r.currentMapObj);
}
_local2++;
}
eA = this[("level" + level) + "ItemArray"];
_local2 = 0;
while (_local2 < eA.length) {
obj = this["item_" + _local2];
obj = new Element("mc_element" + _local2, eA[_local2][0], eA[_local2][1], eA[_local2][2], _local2, r.currentMapObj);
_local2++;
}
var _local4 = this[("level" + level) + "HeroArray"];
var _local5 = _local4[0];
var _local7 = _local4[1];
oHero.placeHero(_local5, _local7);
dA = this[("level" + level) + "DialogArray"];
_local2 = 0;
while (_local2 < dA.length) {
obj = this["dialog" + _local2];
obj = new Dialog("mc_dialog" + _local2, dA[_local2][0], dA[_local2][1], _local2, dA[_local2][2]);
_local2++;
}
};
World.prototype.startShakingTheWorld = function (magnitud) {
this.contOrgX = r.mc_world.mc_container._x;
this.contOrgY = r.mc_world.mc_container._y;
this.m = magnitud;
clearInterval(this.shakeInterval);
this.shakeInterval = setInterval(this, "shakeWorld", 20);
};
World.prototype.shakeWorld = function () {
if (this.m > 0) {
r.mc_world.mc_container._x = Math.floor(this.contOrgX + ((-(this.m / 2)) + random(this.m)));
r.mc_world.mc_container._y = Math.floor(this.contOrgY + ((-(this.m / 2)) + random(this.m)));
} else if (this.m < 0) {
this.endShakeWorld();
}
this.m = this.m - 0.5;
};
World.prototype.endShakeWorld = function () {
clearInterval(this.shakeInterval);
r.mc_world.mc_container._x = this.contOrgX;
r.mc_world.mc_container._y = this.contOrgY;
};
World.prototype.lockMap = function () {
this.mapLocked = true;
};
World.prototype.unLockMap = function () {
this.mapLocked = false;
this.centerHero();
};
World.prototype.backToMainMenu = function () {
mc_interface.gotoAndStop(1);
mc_display.gotoAndPlay("fadeout");
this.clearAllCreatures();
this.clearAllElements();
this.clearAllDialogs();
r.setKeys();
r.nLevel = 0;
r.currentLevel = r.levelArray[r.nLevel];
r.projectileN = 0;
oHero.setAttributes();
this.gameOn = true;
this.gameWon = false;
};
World.prototype.centerHero = function () {
this.centerInterval = setInterval(this, "center", 100);
};
World.prototype.center = function () {
dx = (((scrW / 2) - oHero.xpos) - r.mc_world.mc_container._x) / 8;
r.mc_world.mc_container._x = r.mc_world.mc_container._x + dx;
if ((dx < 1) && (dx > -1)) {
clearInterval(this.centerInterval);
}
};
World.prototype.loadLevelData = function () {
this.level101Background = 2;
this.level101Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1], [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 7, 7, 11, 17, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
this.level101CreatureArray = [[Blob, 10, 7], [Blob, 14, 8], [Stone1, 20, 8], [Stone1, 20, 7], [Stone1, 20, 6], [Stone1, 6, 8], [Scarabe, 34, 8], [Scarabe, 38, 8], [Scarabe, 48, 8], [Blob, 57, 5], [Stone1, 55, 8], [Stone1, 55, 7], [Scarabe, 66, 8], [Scarabe, 71, 3], [Scarabe, 85, 2], [Scarabe, 89, 8], [Stone1, 93, 8], [Stone1, 93, 7], [Stone1, 93, 6], [Blob, 102, 4], [Scarabe, 107, 8], [Scarabe, 110, 8], [Scarabe, 113, 8], [Scarabe, 117, 8], [Robo1, 132, 8], [Blob, 142, 2], [Turrent1_l, 77, 8], [Turrent1_r, 110, 7]];
this.level101ItemArray = [["Bomb2", 25, 3], ["Energy2", 63, 1], ["Bomb1", 90, 0], ["Energy1", 115, 8], ["Energy1", 141, 2], ["Bomb1", 109, 6], ["Spark2", 122, 4], ["Forcefield", 99, 6]];
this.level101DialogArray = [["dialog1", "interval5", "_level0.mc_world.mc_container.mcHero"], ["dialog2", "movement", "_level0.mc_world.mc_container.mc_creature5"], ["dialog6", "hurt", "_level0.mc_world.mc_container.mc_creature0"], ["dialog3", "death", "_level0.mc_world.mc_container.mc_element0"], ["dialog4", "death", "_level0.mc_world.mc_container.mc_element1"], ["dialog5", "death", "_level0.mc_world.mc_container.mc_element6"], ["dialog7", "hurt", "_level0.mc_world.mc_container.mc_creature24"], ["dialog8", "death", "_level0.mc_world.mc_container.mc_element7"]];
this.level101HeroArray = [2, 8];
this.level102Background = 2;
this.level102Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 23, 20, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 25, 0, 23, 0, 8, 1, 1, 1, 1, 12, 0, 0, 29, 0, 0, 0, -1], [1, 1, 1, 1, 1, 1, 12, 17, 18, 18, 26, 1, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 17, 18, 18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 7, 7, 7, 7, 7, 7, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 7, 7, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 17, 18, 26, 12, 17, 18, 26, 1, 1, 1, 1, 5, 7, 7, 7, 7, 10, 1, 1, 1, 1, 1, 1, 1, 1, 12, 17, 26, 17, 26, 17, 26, 1, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10, 1, 1, 1, 1, 1, 1, 1, 12, 17, 18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 7, 7, 7, 7, 7, 10, 1, 1, 1, 1, 1, 1]];
this.level102CreatureArray = [[Turrent1_l, 12, 6], [Blob, 9, 6], [Mosq1, 19, 1], [Scarabe2, 28, 8], [Robo1, 32, 2], [Turrent1_r, 22, 8], [Turrent1_r, 39, 3], [Scarabe2, 40, 8], [Mosq1, 66, 1], [Blob, 60, 6], [Blob2, 56, 8], [Stone1, 13, 4], [Stone1, 49, 1], [Stone1, 67, 8], [Stone1, 67, 7], [Stone1, 67, 6], [Stone1, 67, 5], [Stone1, 68, 8], [Robo1, 64, 8], [Mosq1, 79, 1], [Blob2, 44, 0], [Stone1, 75, 8], [Stone1, 75, 7], [Stone1, 79, 8], [Stone1, 79, 7], [Stone1, 94, 8], [Stone1, 94, 7], [Stone1, 94, 6], [Blob2, 83, 4], [Scarabe, 93, 8], [Scarabe2, 73, 8], [Robo1, 118, 3], [Turrent1_l, 111, 7], [Turrent1_l, 115, 5], [Turrent1_r, 120, 7], [Turrent1_r, 120, 8], [Stone1, 128, 3], [Stone1, 128, 2], [Scarabe2, 135, 8], [Sandworm1, 150, 7], [Robo1, 141, 8], [Scarabe, 94, 2], [Robo1, 100, 8], [Blob2, 99, 1], [Blob2, 98, 4], [Stone1, 128, 7], [Stone1, 128, 8], [Stone1, 127, 7], [Stone1, 127, 8], [Mosq2, 157, 1]];
this.level102ItemArray = [["Energy1", 29, 2], ["Bomb1", 33, 2], ["Bomb1", 87, 3], ["Energy1", 103, 1], ["Energy1", 105, 1], ["Spark3", 147, 7]];
this.level102HeroArray = [2, 8];
this.level103Background = 2;
this.level103Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1], [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 9, 4, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
this.level103CreatureArray = [[Sandworm1, 9, 6], [Sandworm1, 5, 8], [Scarabe, 14, 8], [Scarabe, 16, 8], [Scarabe, 18, 8], [Scarabe, 20, 8], [Scarabe, 13, 4], [Stone1, 16, 4], [Stone1, 16, 3], ["Boss1", 85, 8], [Scarabe2, 30, 8], [Sandworm1, 35, 4], [Stone1, 21, 8], [Robo2, 52, 8], [Robo2, 62, 8], [Blob2, 59, 1], [Blob2, 65, 3], [Blob2, 105, 2], [Turrent1_l, 106, 7], [Scarabe, 110, 7], [Scarabe, 112, 8], [Scarabe, 108, 6], [Scarabe, 105, 7], [Scarabe, 103, 8], [Scarabe, 114, 8], [Scarabe, 116, 8], [Mosq2, 117, 4], [Robo1, 101, 4], [Mosq2, 40, 1], [Mosq2, 43, 2], [Mosq1, 46, 1], [Sandworm1, 131, 8], [Sandworm1, 136, 8], [Scarabe, 133, 3], [Scarabe, 135, 3], [Stone1, 143, 8], [Stone1, 143, 7], [Stone1, 143, 6], [Stone1, 143, 5], [Stone1, 143, 4], [Stone1, 144, 8], [Stone1, 144, 7], [Mosq3, 147, 3]];
this.level103ItemArray = [["Energy2", 3, 2], ["Bomb2", 5, 2], ["Energy1", 56, 8], ["Bomb1", 57, 1]];
this.level103HeroArray = [2, 8];
};
World.prototype.loadLevelData2 = function () {
this.level104Background = 2;
this.level104Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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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18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 12, 17, 18, 18, 18, 18, 18, 18, 26, 1, 12, 17, 18, 18, 18, 18, 18, 18, 18, 26, 12, 17, 18, 18, 18, 26, 7, 11, 17, 18, 18, 18, 18, 18, 26, 12, 17, 18, 18, 26, 12, 17, 18, 18, 26, 12, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 7, 7, 7, 7, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
this.level104CreatureArray = [[Sandworm1, 8, 6], [Sandworm1, 11, 6], [Mosq2, 9, 2], [Mosq2, 18, 2], [Blob2, 10, 2], [Mosq2, 37, 1], [Mosq2, 40, 2], [Mosq2, 43, 4], [Mosq1, 46, 1], [Robo2, 41, 8], [Robo2, 77, 8], ["Boss1", 104, 8], [Stone1, 16, 4], [Stone1, 21, 4], [Robo1, 30, 8], [Sandworm1, 69, 3], [Sandworm1, 71, 3], [Blob2, 36, 2], [Turrent1_l, 110, 8], [Turrent1_l, 79, 7], [Turrent1_r, 60, 5], [Turrent1_l, 57, 4], [Turrent1_l, 57, 6], [Turrent1_l, 34, 7], [Turrent1_l, 45, 5], [Turrent1_l, 47, 3], [Turrent1_r, 116, 8], [Mosq3, 88, 3], [Stone1, 120, 8], [Stone1, 121, 7], [Stone1, 122, 6], [Stone1, 121, 8], [Stone1, 122, 8], [Stone1, 122, 7], [Stone1, 123, 8], [Stone1, 123, 7], [Stone1, 123, 6], [Stone1, 123, 5], [Mosq3, 126, 2], [Sandworm1, 140, 8], [Sandworm1, 143, 8], [Sandworm1, 146, 8], [Mosq2, 119, 1], [Mosq2, 120, 2], [Mosq2, 132, 1], [Mosq2, 133, 2], [Mosq2, 136, 3], [Mosq2, 137, 1], [Mosq2, 140, 4], [Mosq3, 155, 3]];
this.level104ItemArray = [["Spark4", 11, 2], ["Energy1", 24, 8], ["Bomb1", 40, 8], ["Bomb1", 52, 4], ["Forcefield", 72, 8], ["Energy1", 89, 6], ["1up", 45, 0], ["Energy2", 66, 8]];
this.level104HeroArray = [2, 8];
this.level105Background = 2;
this.level105Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1], [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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turrent1_l, 16, 4], ["Boss1", 28, 8], ["Boss1", 46, 8], [Turrent1_l, 53, 8], [Turrent1_l, 53, 5], [Sandworm1, 64, 6], [Robo2, 75, 6], [Robo2, 77, 4], [Robo2, 80, 7], [Robo1, 20, 8], [Robo1, 39, 8], [Robo1, 50, 8], [Mosq4, 94, 4], [Mosq4, 105, 3], [Turrent1_l, 107, 8], [Turrent1_l, 109, 7], [Turrent1_l, 111, 6], [Turrent1_l, 113, 5], [Scarabe, 114, 4], [Scarabe, 115, 4], [Scarabe, 113, 5], [Scarabe, 112, 5], [Scarabe, 111, 6], [Scarabe, 110, 6], [Scarabe, 109, 7], [Scarabe, 108, 7], [Turrent1_r, 118, 7], [Turrent1_r, 118, 8], [Mosq4, 134, 5], [Mosq4, 142, 5], [Robo2, 143, 6], [Stone1, 143, 8], [Stone1, 145, 6], [Stone1, 145, 5], [Stone1, 144, 8], [Stone1, 144, 7], [Stone1, 144, 6], [Stone1, 144, 5], [Stone1, 144, 4], [Stone1, 144, 3], [Stone1, 151, 8], [Stone1, 151, 7], [Stone1, 151, 6], [Stone1, 151, 5], [Stone1, 151, 4], [Robo2, 148, 8]];
this.level105ItemArray = [["Bomb2", 15, 8], ["Forcefield", 73, 2], ["Bomb1", 82, 5], ["Energy2", 56, 4], ["1up", 95, 8], ["Energy1", 127, 7]];
this.level105HeroArray = [2, 8];
this.level106Background = 2;
this.level106Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 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 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 26, 1, 12, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 26, 5, 7, 7, 7, 7, 7, 7, 11, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
this.level106CreatureArray = [[Stone1, 148, 8], [Stone1, 148, 7], [Stone1, 148, 6], [Turrent1_l, 26, 6], [Blob2, 16, 6], [Blob2, 19, 6], [Blob2, 23, 6], [Blob2, 28, 5], [Turrent1_l, 61, 4], [Mosq3, 55, 1], [Mosq3, 61, 2], [RoboBomb1, 18, 2], [Turrent1_r, 69, 8], [RoboBomb1, 22, 2], [RoboBomb1, 94, 1], [RoboBomb1, 98, 4], [Sandworm1, 88, 4], [Robo2, 36, 8], [Robo1, 40, 4], [Mosq3, 45, 1], [Stone3, 94, 4], [Stone3, 98, 4], [Stone3, 102, 4], [Mosq4, 110, 4], [Mosq2, 114, 4], [Mosq2, 116, 3], [Mosq2, 118, 5], [Mosq2, 121, 3], [RoboBomb1, 127, 2], [Stone3, 111, 6], [Sandworm1, 130, 3], [Stone3, 135, 3], [Robo2, 151, 8], [Blob2, 137, 5], [Stone3, 80, 6], [Stone2, 73, 6], [Stone2, 76, 3], [Stone2, 80, 5], [Stone2, 94, 3], [Stone2, 94, 2], [Stone2, 98, 3], [Stone2, 98, 2], [Stone2, 102, 3], [Stone2, 102, 2], [Stone2, 107, 6], [Stone2, 111, 5], [Stone2, 135, 2], [Stone2, 111, 4], [Blob2, 125, 1], [Blob2, 119, 1], [Turrent1_l, 128, 4], [Turrent1_r, 117, 3]];
this.level106ItemArray = [["Energy2", 16, 0], ["Bomb1", 35, 1], ["1UP", 41, 6], ["Energy1", 51, 2], ["Forcefield", 33, 3], ["Spark5", 7, 8]];
this.level106HeroArray = [2, 8];
};
World.prototype.loadLevelData3 = function () {
this.level107Background = 2;
this.level107Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 25, 20, 0, 13, 7, 7, 7, 7, 7, 7, 7, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 25, 0, 6, 7, 7, 7, 7, 7, 7, 11, 21, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 6, 7, 7, 7, 7, 7, 14, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0, 6, 7, 7], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 7, 7, 7, 7, 7, 7, 11, 17, 18, 18, 18, 18, 18, 18, 18, 18, 26, 1, 1, 5, 7, 7, 7, 7, 7, 7, 7, 7, 10, 12, 18, 18, 26, 12, 18, 18, 26, 12, 18, 18, 26, 12, 18, 18, 26, 12, 18, 18, 26, 12, 18, 18, 26, 12, 18, 18, 26, 12, 18, 18, 18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 26, 5, 7, 7, 7, 7, 7, 7, 7, 10, 1, 1, 1, 1, 1, 1, 12, 17, 18, 18, 26, 12, 17, 18, 18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 7, 7]];
this.level107CreatureArray = [[Robo2, 16, 7], [Robo2, 19, 4], [Robo2, 22, 1], [Stone3, 29, 6], [Stone3, 31, 6], [Robo2, 67, 8], [Stone3, 64, 5], [Stone3, 65, 5], [Robo2, 70, 8], [Stone3, 68, 5], [Stone3, 69, 5], [RoboBomb1, 51, 3], [RoboBomb1, 60, 3], [RoboBomb1, 74, 2], [RoboBomb1, 76, 6], [Scarabe2, 41, 4], [Scarabe2, 39, 6], [Scarabe2, 45, 6], [Turrent1_l, 37, 7], [Stone2, 24, 1], [Stone2, 24, 0], [Stone2, 29, 5], [Stone2, 31, 5], [Sandworm2, 11, 8], [Stone3, 77, 5], [Stone2, 77, 4], [Sandworm2, 85, 8], ["Boss1", 95, 8], [Turrent1_l, 120, 7], [Turrent1_l, 120, 5], [Turrent1_l, 120, 3], [Stone3, 110, 8], [Stone2, 110, 7], [Stone3, 113, 7], [Stone3, 113, 6], [Stone2, 113, 5], [Stone3, 116, 5], [Stone3, 116, 4], [Stone3, 116, 3], [Stone2, 116, 2], [Sandworm2, 132, 8], [RoboBomb1, 145, 3], [RoboBomb1, 135, 2], [Sandworm2, 140, 8], [Turrent1_l, 156, 8], [Turrent1_l, 157, 6], [Turrent1_l, 158, 4], [Mosq3, 64, 1], [Mosq3, 68, 2], [Mosq3, 149, 1], [RoboBomb1, 146, 5], [Sandworm2, 50, 8], [Stone2, 64, 4], [Stone2, 65, 4], [Stone2, 68, 4], [Stone2, 69, 4]];
this.level107ItemArray = [["Bomb2", 6, 8], ["Energy2", 158, 5], ["Energy1", 43, 4], ["Spark5", 54, 8], ["1up", 122, 2]];
this.level107HeroArray = [2, 8];
this.level108Background = 2;
this.level108Map = [[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 26, 1, 1, 1, 1, 1, 1, 12, 17, 18, 18, 18, 18, 18, 18, 18, 26, 7, 7, 7, 7, 11, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 26, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 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, 0, 0]];
this.level108CreatureArray = [["FinalBoss", 92, 8], [Stone3, 10, 8], [Stone3, 11, 8], [Stone3, 12, 8], [Stone3, 13, 8], [Stone3, 14, 8], [Stone3, 15, 8], [Stone3, 16, 8], [Stone3, 17, 8], [Stone3, 18, 8], [Stone3, 19, 8], [Stone3, 20, 8], [Stone3, 21, 8], [Stone3, 22, 8], [Stone1, 10, 7], [Stone1, 11, 7], [Stone1, 12, 7], [Stone1, 13, 7], [Stone1, 14, 7], [Stone1, 15, 7], [Stone1, 16, 7], [Stone1, 17, 7], [Stone1, 18, 7], [Stone1, 19, 7], [Stone1, 20, 7], [Stone1, 21, 7], [Stone1, 22, 7], [Stone2, 16, 7], [Stone2, 18, 7], [Robo2, 29, 8], [Robo2, 21, 6], [Turrent1_l, 40, 7], [Turrent1_l, 40, 5], [Stone3, 33, 8], [Stone2, 33, 7], [Stone2, 33, 6], [Stone3, 36, 8], [Stone2, 36, 7], [RoboBomb1, 33, 2], [RoboBomb1, 36, 2], [RoboBomb1, 58, 2], [RoboBomb1, 68, 2], [RoboBomb1, 72, 2], [Stone3, 51, 5], [Stone2, 51, 4], [Stone3, 55, 5], [Stone2, 55, 4], [Stone3, 62, 5], [Stone3, 65, 5], [Robo2, 72, 6], [Stone1, 69, 6]];
this.level108ItemArray = [["1up", 33, 3]];
this.level108HeroArray = [2, 8];
};
SoundEngine = function () {
this.soundOn = true;
this.musicOn = true;
this.initSound();
this.orgVol = 30;
this.vol = this.orgVol;
this.currentMusic = undefined;
this.oldMusic = undefined;
};
SoundEngine.prototype.initSound = function () {
this.music_mc = r.createEmptyMovieClip("music_controller", r.getNextHighestDepth());
this.snd_bgTune = new Sound(this.music_mc);
this.snd_bgTune.attachSound("snd_bgTune_lib");
this.snd_MenuTune = new Sound(this.music_mc);
this.snd_MenuTune.attachSound("snd_Menu_lib");
this.snd_boss1Tune = new Sound(this.music_mc);
this.snd_boss1Tune.attachSound("snd_boss1Tune_lib");
this.sound_mc = r.createEmptyMovieClip("soundFX_controller", r.getNextHighestDepth());
this.snd_throwBomb = new Sound(this.sound_mc);
this.snd_throwBomb.attachSound("snd_Spark_lib");
this.snd_Spark = new Sound(this.sound_mc);
this.snd_Spark.attachSound("snd_Shot_lib");
this.snd_Jump = new Sound(this.sound_mc);
this.snd_Jump.attachSound("snd_jump_lib");
this.snd_Expo = new Sound(this.sound_mc);
this.snd_Expo.attachSound("snd_expo_lib");
this.snd_Expo2 = new Sound(this.sound_mc);
this.snd_Expo2.attachSound("snd_expo2_lib");
this.snd_Hurt = new Sound(this.sound_mc);
this.snd_Hurt.attachSound("snd_hurt_lib");
this.snd_ItemPickUp = new Sound(this.sound_mc);
this.snd_ItemPickUp.attachSound("snd_Item_lib");
this.snd_levelStart = new Sound(this.sound_mc);
this.snd_levelStart.attachSound("snd_levelStart_lib");
this.snd_levelDone = new Sound(this.sound_mc);
this.snd_levelDone.attachSound("snd_levelDone_lib");
this.snd_eDie = new Sound(this.sound_mc);
this.snd_eDie.attachSound("snd_eDie_lib");
this.snd_eDie2 = new Sound(this.sound_mc);
this.snd_eDie2.attachSound("snd_eDie2_lib");
};
SoundEngine.prototype.playMusic = function (arg) {
if (arg == "bg") {
this.currentMusic = this.snd_bgTune;
} else if (arg == "menu") {
this.currentMusic = this.snd_MenuTune;
} else if (arg == "boss1") {
this.currentMusic = this.snd_boss1Tune;
}
if (this.musicOn) {
this.setBGVolume(this.vol);
} else {
this.setBGVolume(0);
}
this.currentMusic.stop();
this.oldMusic.stop();
this.currentMusic.start(0, 99999);
this.currentMusic = this.oldMusic;
trace("Playing: " + arg);
};
SoundEngine.prototype.stopBGMusic = function (arg) {
this.setBGVolume(0);
this.musicOn = false;
};
SoundEngine.prototype.setBGVolume = function (arg) {
if (this.musicOn) {
this.snd_bgTune.setVolume(arg);
}
};
SoundEngine.prototype.playSound = function (snd) {
var _local2 = snd;
if (this.soundOn) {
_local2.start();
}
};
SoundEngine.prototype.soundOff = function () {
this.soundOn = false;
};
SoundEngine.prototype.silence = function () {
this.stopSound();
this.stopMusic();
};
SoundEngine.prototype.turnSoundOn = function () {
this.soundOn = true;
};
SoundEngine.prototype.turnMusicOn = function () {
this.musicOn = true;
this.setBGVolume(this.orgVol);
};
SoundEngine.prototype.fadeInAgain = function () {
clearInterval(this.fadeInterval);
this.fadeInterval = setInterval(this, "fadeIn", 15);
};
SoundEngine.prototype.fadeOut = function (fadeTo) {
this.vol--;
this.setBGVolume(this.vol);
if (this.vol < 0) {
clearInterval(this.fadeInterval);
this.playMusic(fadeTo);
this.fadeInAgain();
}
};
SoundEngine.prototype.fadeInMusic = function (fadeTo) {
clearInterval(this.fadeInterval);
this.fadeInterval = setInterval(this, "fadeOut", 15, fadeTo);
};
SoundEngine.prototype.fadeIn = function () {
this.vol++;
this.setBGVolume(this.vol);
if (this.vol > this.orgVol) {
clearInterval(this.fadeInterval);
}
};
var s = new SoundEngine();
s.playMusic("menu");
Frame 9
stop();
Frame 10
if (!oHero) {
oWorld = new World();
}
Frame 13
Hero = function (charName, mapX, mapY) {
this.charName = charName;
this.mapX = mapX;
this.mapY = mapY;
this.map = r.currentMapObj;
this.yLen = this.map.length;
this.charW = 16;
this.charH = 16;
this.mapEnd = (r.currentMapObj[0].length * tileW) - (tileW + 1);
this.setAttributes();
this.mc.ref = this;
this.spawn();
};
Hero.prototype.spawn = function () {
this.depth = r.mc_world.mc_container.getNextHighestDepth();
this.mc = r.mc_world.mc_container.attachMovie("mc_character", this.charName, this.depth, {_x:(this.mapX * tileW) + this.charW, _y:(this.mapY * tileH) + this.charH});
this.xpos = this.mc._x;
this.ypos = this.mc._y;
this.m(this.dir);
this.jump = true;
this.jumpspeed = 0;
this.setBombs();
this.startKeyCheck();
};
Hero.prototype.placeHero = function (mapX, mapY) {
this.xpos = (mapX * tileW) + this.charW;
this.ypos = (mapY * tileH) + this.charH;
this.mc._x = this.xpos;
this.mc._y = this.ypos;
this.map = r.currentMapObj;
this.yLen = this.map.length;
this.mapEnd = (r.currentMapObj[0].length * tileW) - (tileW + 1);
this.dir = "right";
this.mc.gotoAndStop(this.dir);
this.jump = true;
this.jumpspeed = 0;
this.centerX = Math.floor(this.xpos / tileW);
this.centerY = Math.floor(this.ypos / tileH);
};
Hero.prototype.resetHero = function () {
this.HP = this.maxHP;
this.setHP(this.HP);
this.setBombs();
this.deAcivateForceField();
};
Hero.prototype.setAttributes = function () {
this.jumpstart = -13;
this.gravity = 1;
this.jump = false;
this.jumpTimer = 100;
this.jumpInterval = 100;
this.dir = "right";
this.walking = false;
this.projectile = false;
this.projectileTimer = 0;
this.DAMlastTaken = 0;
this.DAMinterval = 2000;
this.DAMBlink = new Array(50, 20, 50, 20, 50, 20, 50, 20);
this.blinkN = 0;
this.hurt = false;
this.immobile = false;
this.immobileTimer = 0;
this.immobileInterval = 400;
this.HP = 60;
this.maxHP = this.HP;
this.lives = 3;
this.maxlives = 6;
this.levelXP = 0;
this.XP = 0;
this.miniBossKilled = 0;
this.sp = 4;
this.impactDamage = 5;
this.curProjectile = r.hSpark1;
this.bombProjectile = r.hBomb1;
this.numBombs = 3;
this.nProjectile = 0;
this.projectileN = 0;
this.availProjectile = new Array();
this.availProjectile[this.nProjectile] = this.curProjectile;
this.changeTimer = 0;
this.changeSpeed = 350;
this.projectileTicker = 0;
this.godmode = false;
this.setHP(this.HP);
this.setBombs();
this.setLives();
r.mc_interface.mc_weapon.gotoAndStop(this.curProjectile.id);
};
Hero.prototype.startKeyCheck = function () {
this.KeyInterval = setInterval(this, "keyCheck", 20);
};
Hero.prototype.stopKeyCheck = function () {
clearInterval(this.KeyInterval);
};
Hero.prototype.rest = function () {
this.stopKeyCheck();
};
Hero.prototype.live = function () {
this.startKeyCheck();
};
Hero.prototype.keyCheck = function () {
if ((!this.melee) || (!this.immobile)) {
if (Key.isDown(39)) {
this.dir = "right";
this.m(this.dir);
this.mc.walk = true;
} else if ((this.dir == "right") && (this.mc.walk)) {
this.mc.walk = false;
}
if (Key.isDown(37)) {
this.dir = "left";
this.m(this.dir);
this.mc.walk = true;
} else if ((this.dir == "left") && (this.mc.walk)) {
this.mc.walk = false;
}
if (Key.isDown(38)) {
if ((!this.jump) && (this.jumpInterval < (getTimer() - this.jumpTimer))) {
s.playSound(s.snd_Jump);
this.jump = true;
this.jumpspeed = this.jumpstart;
}
}
if (Key.isDown(83) && (getTimer() > (this.projectileTimer + this.curProjectile.firingSpeed))) {
s.playSound(s.snd_Spark);
this.projectile = true;
var i = 0;
while (i < this.curProjectile.nProj) {
var pName = ("cFire" + r.projectileN);
r["charProjectileObj" + r.projectileN] = new Projectile(pName, this.curProjectile, this.dir, this.mc._x, this.mc._y, this, this.curProjectile.BaseDamage + random(this.curProjectile.addDamage), i);
i++;
}
this.mc.mc_char.gotoAndPlay("shot");
if (this.curProjectile.friend) {
this.projectileTicker++;
if (this.projectileTicker > (this.curProjectile.ticker - 1)) {
friendPro = eval (this.curProjectile.friend);
var i = 0;
while (i < friendPro.nProj) {
var pName = ("cFire" + r.projectileN);
r["charProjectileFriendObj" + r.projectileN] = new Projectile(pName, friendPro, this.dir, this.mc._x, this.mc._y, this, friendPro.BaseDamage + random(friendPro.addDamage), i);
i++;
}
this.projectileTicker = 0;
}
}
}
if ((Key.isDown(65) && (getTimer() > (this.projectileTimer + this.bombProjectile.firingSpeed))) && (this.numBombs > 0)) {
s.playSound(s.snd_throwBomb);
this.numBombs--;
this.projectile = true;
var pName = ("cFire" + r.projectileN);
r["charProjectileObj" + r.projectileN] = new Projectile(pName, this.bombProjectile, this.dir, this.mc._x, this.mc._y, this, this.bombProjectile.BaseDamage + random(this.bombProjectile.addDamage), 0);
this.mc.mc_char.gotoAndPlay("shot");
this.setBombs();
}
}
if (Key.isDown(32) && (getTimer() > (this.changeTimer + this.changeSpeed))) {
this.changeProjectile();
}
if (this.mc.walk && (!this.walking)) {
this.walkDir = this.dir;
this.mc.gotoAndStop(this.dir);
this.mc.mc_char.gotoAndPlay("walk");
this.walking = true;
}
if ((!this.mc.walk) && (this.walking)) {
this.mc.mc_char.gotoAndPlay("default");
this.walking = false;
}
if (this.walkDir != this.dir) {
this.walking = false;
}
if (this.hurt) {
this.mc._alpha = this.DAMBlink[this.blinkN];
this.blinkN++;
if (this.blinkN > this.DAMBlink.length) {
this.blinkN = 0;
}
if (getTimer() > (this.DAMlastTaken + this.DAMinterval)) {
this.hurt;
this.blinkN = 0;
this.mc._alpha = 100;
}
if ((getTimer() > (this.immobileTimer + this.immobileInterval)) && (this.immobile == true)) {
this.immobile = false;
}
}
if ((!this.jump) && (this.checkMap(this.centerX, this.downY))) {
this.fall();
}
this.collisionCheck();
if (this.jump) {
this.doJump();
}
this.render();
updateAfterEvent();
};
Hero.prototype.collisionCheck = function () {
if (this.map[this.centerY][this.centerX] == 29) {
s.playSound(s.snd_levelDone);
oWorld.levelDone();
}
if (getTimer() > (this.DAMlastTaken + this.DAMinterval)) {
if (!this.checkForWaste(this.centerX, this.centerY)) {
this.takeDamage(10);
}
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
if (!obj.ref.petrified) {
xdist = this.mc._x - obj._x;
ydist = this.mc._y - obj._y;
if (Math.sqrt((xdist * xdist) + (ydist * ydist)) < ((this.charW / 3) + obj.ref.creatureW)) {
this.takeDamage(obj.ref.damage);
var _local3 = this.dir;
if (this.godmode) {
obj.ref.takeDamage(this.impactDamage + 10, this.dir);
} else if (obj.ref.cname == "RoboBomb1") {
obj.ref.die();
} else {
obj.ref.takeDamage(this.impactDamage, this.dir);
}
}
}
_local2++;
}
}
};
Hero.prototype.takeDamage = function (damage) {
if (!this.godmode) {
s.playSound(s.snd_Hurt);
this.DAMlastTaken = getTimer();
this.immobileTimer = getTimer();
this.hurt = true;
this.immobile = true;
this.mc.mc_char.gotoAndPlay("hurt");
this.HP = this.HP - damage;
if (this.HP < 0) {
this.die();
}
this.setHP(this.HP);
}
};
Hero.prototype.addHP = function (heal) {
if ((this.HP + heal) < this.maxHP) {
this.HP = this.HP + heal;
} else {
this.HP = this.maxHP;
}
this.setHP(this.HP);
};
Hero.prototype.setHP = function (hp) {
arg = (hp / this.maxHP) * 100;
r.mc_interface.mc_hp.slide(arg);
};
Hero.prototype.addBombs = function (num) {
this.numBombs = this.numBombs + num;
if (this.numBombs > 5) {
this.numBombs = 5;
}
this.setBombs();
};
Hero.prototype.setBombs = function () {
r.mc_interface.mc_bombs.gotoAndStop(this.numBombs + 1);
};
Hero.prototype.setLives = function () {
r.mc_interface.mc_lives.gotoAndStop(this.lives + 1);
};
Hero.prototype.die = function () {
this.takeLife(1);
this.mc._alpha = 100;
this.stopKeyCheck();
this.mc.mc_char.gotoAndPlay("die");
this.deathInterval = setInterval(this, "executeDeath", 1500);
this.setGodmode(true);
if (oSmoke) {
oSmoke.stopSmoke();
}
};
Hero.prototype.executeDeath = function () {
clearInterval(this.deathInterval);
oWorld.levelFail();
};
Hero.prototype.takeLife = function (arg) {
this.lives = this.lives - arg;
this.setLives();
};
Hero.prototype.addLife = function (arg) {
this.lives = this.lives + arg;
if (this.lives > this.maxLives) {
this.lives = this.maxLives;
}
this.setLives();
};
Hero.prototype.m = function (arg) {
if (!this.immobile) {
this.downY = Math.floor(((this.ypos + this.charH) + 2) / tileH);
this.upY = Math.floor(((this.ypos - this.charH) - 2) / tileH);
this.leftX = Math.floor(((this.xpos - this.charW) - 2) / tileW);
this.rightX = Math.floor(((this.xpos + this.charW) + 2) / tileW);
this.centerX = Math.floor(this.xpos / tileW);
this.centerY = Math.floor(this.ypos / tileH);
if (arg == "right") {
if (this.checkMap(this.rightX, this.centerY)) {
if (((r.mc_world.mc_container._x + this.xpos) + this.sp) < scrW) {
this.xpos = this.xpos + this.sp;
}
this.charXPosOnScr = r.mc_world.mc_container._x + this.xpos;
this.charYPosOnScr = r.mc_world.mc_container._y + this.ypos;
if (((this.charXPosOnScr > 200) && (r.mc_world.mc_container._x > (-Number(this.mapEnd - scrW)))) && (!oWorld.mapLocked)) {
r.mc_world.mc_container._x = r.mc_world.mc_container._x - this.sp;
}
} else {
this.xpos = (this.centerX * tileW) + this.charW;
}
if (this.checkMap(this.centerX, this.downY)) {
this.fall();
}
} else if (arg == "left") {
if (this.checkMap(this.leftX, this.centerY)) {
if (((r.mc_world.mc_container._x + this.xpos) - this.sp) > 0) {
this.xpos = this.xpos - this.sp;
}
this.charXPosOnScr = r.mc_world.mc_container._x + this.xpos;
this.charYPosOnScr = r.mc_world.mc_container._y + this.ypos;
if (((this.charXPosOnScr < 320) && (r.mc_world.mc_container._x < ((-tileW) - 1))) && (!oWorld.mapLocked)) {
r.mc_world.mc_container._x = r.mc_world.mc_container._x + this.sp;
}
} else {
this.xpos = (this.centerX * tileW) + this.charW;
}
if (this.checkMap(this.centerX, this.downY)) {
this.fall();
}
}
}
this.dir = arg;
};
Hero.prototype.render = function () {
this.mc._x = this.xpos;
this.mc._y = this.ypos;
this.charYPosOnScr = this.ypos - scrH;
var _local2 = ((scrH / 3) - this.charYPosOnScr) - scrH;
r.mc_world.mc_container._y = r.mc_world.mc_container._y + Math.floor((_local2 - r.mc_world.mc_container._y) / 4);
if (r.mc_world.mc_container._y < r.levelH) {
r.mc_world.mc_container._y = r.levelH;
}
};
Hero.prototype.checkMap = function (x, y) {
if (((((((((((((((((((this.map[y][x] != 1) && (this.map[y][x] != 2)) && (this.map[y][x] != 3)) && (this.map[y][x] != 4)) && (this.map[y][x] != 5)) && (this.map[y][x] != 6)) && (this.map[y][x] != 7)) && (this.map[y][x] != 8)) && (this.map[y][x] != 9)) && (this.map[y][x] != 10)) && (this.map[y][x] != 11)) && (this.map[y][x] != 12)) && (this.map[y][x] != 13)) && (this.map[y][x] != 14)) && (this.map[y][x] != 15)) && (this.map[y][x] != 16)) && (this.map[y][x] != 26)) && (this.map[y][x] != -1)) && (y < this.yLen)) {
if (this.checkForStone(x, y)) {
return(true);
}
return(false);
}
};
Hero.prototype.checkForStone = function (x, y) {
var _local1 = 0;
while (_local1 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local1];
if (obj.ref.petrified) {
var _local3 = Math.floor(obj._x / tileW);
var _local2 = Math.floor(obj._y / tileH);
if ((x == _local3) && (y == _local2)) {
return(false);
}
}
_local1++;
}
return(true);
};
Hero.prototype.checkCloud = function (x, y) {
if ((this.map[y][x] != 150) && (this.map[y][x] != 160)) {
return(true);
}
return(false);
};
Hero.prototype.checkForWaste = function (x, y) {
if ((this.map[y][x] != 17) && (this.map[y][x] != 18)) {
return(true);
}
return(false);
};
Hero.prototype.doJump = function () {
this.downY = Math.floor(((this.ypos + tileH) - 4) / tileH);
this.upY = Math.floor((this.ypos - tileH) / tileH);
this.centerX = Math.floor(this.xpos / tileW);
this.centerY = Math.floor(this.ypos / tileH);
this.jumpspeed = this.jumpspeed + this.gravity;
if (this.jumpspeed > (tileH - this.charH)) {
this.jumpspeed = tileH - this.charH;
}
if (this.jumpspeed < 0) {
if (this.checkMap(this.centerX, this.upY)) {
this.ypos = this.ypos + this.jumpspeed;
} else {
this.ypos = (this.centerY * tileH) + this.charH;
this.jumpspeed = 0;
}
} else if (this.jumpspeed > 0) {
if (this.checkMap(this.centerX, this.downY) && (this.checkCloud(this.centerX, this.downY))) {
this.ypos = this.ypos + this.jumpspeed;
} else {
this.jump = false;
this.jumpTimer = getTimer();
this.ypos = (this.centerY * tileH) + this.charH;
this.mc.mc_char.gotoAndPlay("jumpland");
}
}
};
Hero.prototype.fall = function () {
if (!this.jump) {
this.jumpspeed = 0;
this.jump = true;
}
};
Hero.prototype.addProjectile = function (projectileObj) {
this.nProjectile = this.availProjectile.length;
this.availProjectile[this.nProjectile] = projectileObj;
this.curProjectile = this.availProjectile[this.nProjectile];
r.mc_interface.mc_weapon.gotoAndStop(this.curProjectile.id);
};
Hero.prototype.changeProjectile = function () {
this.changeTimer = getTimer();
this.nProjectile++;
if (this.nProjectile > (this.availProjectile.length - 1)) {
this.nProjectile = 0;
}
this.curProjectile = this.availProjectile[this.nProjectile];
r.mc_interface.mc_weapon.gotoAndStop(this.curProjectile.id);
};
Hero.prototype.addXP = function (val) {
this.XP = this.XP + val;
r.mc_interface.xp_mc.setXP(this.XP);
};
Hero.prototype.setGodmode = function (arg) {
this.godmode = arg;
};
Hero.prototype.activateForceField = function () {
this.setGodmode(true);
this.forceFieldInterval = setInterval(this, "depleatForceField", 8000);
this.mc.mc_forcefield.gotoAndPlay("on");
trace("=====FORCEFIELD: on");
};
Hero.prototype.depleatForceField = function (arg) {
clearInterval(this.forceFieldInterval);
this.forceFieldInterval = setInterval(this, "deAcivateForceField", 2000);
this.mc.mc_forcefield.gotoAndPlay("depleat");
trace("=====FORCEFIELD: depleating");
};
Hero.prototype.deAcivateForceField = function (arg) {
this.mc.mc_forcefield.gotoAndStop("off");
this.setGodmode(false);
clearInterval(this.forceFieldInterval);
this.mc.mc_forcefield.gotoAndStop("off");
trace("=====FORCEFIELD: off");
};
Hero.prototype.teleport = function () {
};
Projectile = function (projectileName, projectileType, dir, placeX, placeY, mother, damage, nProj) {
r.projectileN++;
this.mother = mother;
this.pName = projectileName;
this.nProj = nProj;
this.curProjectile = projectileType;
this.pType = this.curProjectile.id;
this.dir = dir;
if (this.dir == undefined) {
this.dir = "right";
}
this.placeX = Number(placeX);
this.placeY = Number(placeY);
this.xpos = this.placeX;
this.ypos = this.placeY + this.curProjectile.yOffset[this.nProj];
if (this.mother == oHero) {
this.enemyfire = false;
this.xoffset = this.mother.charW;
} else {
this.enemyfire = true;
if (this.mother.dir != null) {
this.xoffset = this.mother.creatureW;
} else {
this.xoffset = 0;
}
}
this.mother.projectileTimer = getTimer();
this.damage = damage;
this.yVel = this.curProjectile.yVel[this.nProj];
this.AreaOfEffect = this.curProjectile.AreaOfEffect;
this.sp = this.curProjectile.Velocity[this.nProj];
this.BlastArea = this.curProjectile.BlastArea;
this.Type = this.curProjectile.Type;
if (this.Type == "throw") {
this.gravity = this.curProjectile.gravity;
this.fallSpeed = this.curProjectile.fallSpeed;
}
if (this.pType == "Green1") {
this.lockedOnTarget = false;
this.oldDist = 1000000 /* 0x0F4240 */;
this.objTarget = undefined;
this.randTick = 100 + random(200);
this.randFreq = 3 + random(5);
}
this.place();
};
Projectile.prototype.place = function () {
if (this.Type == "fire") {
if (this.dir == "right") {
this.xpos = this.xpos + this.xoffset;
} else if (this.dir == "left") {
this.xpos = this.xpos - this.xoffset;
}
} else {
this.ypos = this.ypos - 4;
if (this.dir == "right") {
this.xpos = this.xpos + 6;
} else if (this.dir == "left") {
this.xpos = this.xpos - 6;
}
}
this.mc = r.mc_world.mc_container.attachMovie("mc_projectile", this.pName, 40000 + r.projectileN, {_x:this.xpos, _y:this.ypos});
this.mc.gotoAndStop(this.pType);
this.mc.mc_projectile.gotoAndStop(this.dir);
this.mc.ref = this;
this.startMove();
};
Projectile.prototype.pMove = function () {
this.collisionCheck();
this.mc._x = this.xpos;
this.mc._y = this.ypos;
this.centerX = Math.floor(this.mc._x / tileW);
this.centerY = Math.floor(this.mc._y / tileH);
this.rightX = Math.floor((this.mc._x + this.sp) / tileW);
this.leftX = Math.floor((this.mc._x - this.sp) / tileW);
this.upY = Math.floor((this.mc._y - this.sp) / tileW);
this.downY = Math.floor((this.mc._y + this.sp) / tileW);
if (this.pType == "Green1") {
if (!this.lockedOnTarget) {
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
if (obj.ref.onScreen && (!obj.ref.petrified)) {
xdist = this.xpos - obj.ref.xpos;
ydist = this.ypos - obj.ref.ypos;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < this.oldDist) {
this.objTarget = obj;
this.oldDist = Math.floor(dist);
}
}
_local2++;
}
if (this.objTarget) {
this.lockedOnTarget = true;
trace(this.objTarget.ref.cname);
}
this.xpos = this.xpos + (Math.cos(getTimer() / this.randTick) * this.randFreq);
this.ypos = this.ypos + (Math.sin(getTimer() / this.randTick) * this.randFreq);
} else {
this.xpos = this.xpos + ((this.objTarget.ref.xpos - this.xpos) / 8);
this.ypos = this.ypos + ((this.objTarget.ref.ypos - this.ypos) / 8);
if (!this.objTarget.ref) {
this.oldDist = 1000000 /* 0x0F4240 */;
this.objTarget = undefined;
this.lockedOnTarget = false;
this.xpos = this.mc._x;
this.ypos = this.mc._y;
}
}
} else if (this.Type == "fire") {
if (this.dir == "right") {
if (!this.checkMap(this.rightX, this.centerY)) {
this.mc._x = (this.centerX * tileW) + tileW;
if (!this.BlastArea) {
this.hit();
} else {
this.Explode();
}
}
} else if (this.dir == "left") {
if (!this.checkMap(this.leftX, this.centerY)) {
this.mc._x = this.centerX * tileW;
if (!this.BlastArea) {
this.hit();
} else {
this.Explode();
}
}
}
if (this.dir == "right") {
this.xpos = this.xpos + this.sp;
}
if (this.dir == "left") {
this.xpos = this.xpos - this.sp;
}
this.ypos = this.ypos + this.yVel;
} else if (this.Type == "throw") {
if (this.dir == "right") {
this.xpos = this.xpos + this.sp;
} else if (this.dir == "left") {
this.xpos = this.xpos - this.sp;
}
this.fallSpeed = this.fallSpeed + this.gravity;
if (this.fallSpeed < 0) {
if (this.checkMap(this.centerX, this.upY)) {
this.ypos = this.ypos + this.fallSpeed;
} else {
this.Explode();
}
} else if (this.fallSpeed > 0) {
if (this.checkMap(this.centerX, this.downY)) {
this.ypos = this.ypos + this.fallSpeed;
} else {
this.Explode();
}
}
}
this.projectileOnScr = r.mc_world.mc_container._x + this.xpos;
if ((this.projectileOnScr < -70) || (this.projectileOnScr > (scrW + 70))) {
this.hit();
}
updateAfterEvent();
};
Projectile.prototype.startMove = function () {
this.moveInterval = setInterval(this, "pMove", 20);
};
Projectile.prototype.stopMove = function () {
clearInterval(this.moveInterval);
};
Projectile.prototype.collisionCheck = function () {
if (!this.enemyfire) {
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
xdist = this.mc._x - obj._x;
ydist = this.mc._y - obj._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist)) - this.AreaOfEffect;
if (dist < obj.ref.creatureW) {
if (!this.BlastArea) {
this.hit();
obj.ref.takeDamage(this.damage, this.dir);
} else {
this.Explode();
}
}
_local2++;
}
} else if (this.enemyfire) {
if (!this.checkForStone(this.centerX, this.centerY)) {
if (!this.BlastArea) {
this.hit();
} else {
this.Explode();
}
}
xdist = this.mc._x - oHero.mc._x;
ydist = this.mc._y - oHero.mc._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist)) - this.AreaOfEffect;
if (dist < oHero.charW) {
if (!this.BlastArea) {
this.hit();
oHero.takeDamage(this.damage);
} else {
this.Explode();
}
}
}
};
Projectile.prototype.checkForStone = function (x, y) {
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
if (obj.ref.petrified && (obj.ref != this)) {
var _local4 = Math.floor(obj._x / tileW);
var _local3 = Math.floor(obj._y / tileH);
if ((x == _local4) && (y == _local3)) {
return(false);
}
}
_local2++;
}
return(true);
};
Projectile.prototype.Explode = function () {
this.stopMove();
this.mc.mc_projectile.gotoAndStop("hit");
if (!this.enemyfire) {
oWorld.startShakingTheWorld(8);
s.playSound(s.snd_Expo2);
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
xdist = this.mc._x - obj._x;
ydist = this.mc._y - obj._y;
if (Math.sqrt((xdist * xdist) + (ydist * ydist)) < this.BlastArea) {
obj.ref.takeDamage(this.damage, this.dir);
}
_local2++;
}
} else if (this.enemyfire) {
xdist = this.mc._x - oHero.mc._x;
ydist = this.mc._y - oHero.mc._y;
if (Math.sqrt((xdist * xdist) + (ydist * ydist)) < this.BlastArea) {
oHero.takeDamage(this.damage);
}
}
};
Projectile.prototype.hit = function () {
this.stopMove();
this.mc.mc_projectile.gotoAndStop("hit");
};
Projectile.prototype.checkMap = function (x, y) {
if (((((((((((((((((this.mother.map[y][x] != 1) && (this.mother.map[y][x] != 2)) && (this.mother.map[y][x] != 3)) && (this.mother.map[y][x] != 4)) && (this.mother.map[y][x] != 5)) && (this.mother.map[y][x] != 6)) && (this.mother.map[y][x] != 7)) && (this.mother.map[y][x] != 8)) && (this.mother.map[y][x] != 9)) && (this.mother.map[y][x] != 10)) && (this.mother.map[y][x] != 11)) && (this.mother.map[y][x] != 12)) && (this.mother.map[y][x] != 13)) && (this.mother.map[y][x] != 14)) && (this.mother.map[y][x] != 15)) && (this.mother.map[y][x] != 16)) && (this.mother.map[y][x] != 26)) {
return(true);
}
return(false);
};
Projectile.prototype.kill = function () {
removeMovieClip(this.mc);
};
Creature = function (creatureName, creatureType, mapX, mapY, depthID, mapObj) {
this.creatName = creatureName;
this.cType = creatureType;
this.mapX = mapX;
this.mapY = mapY;
this.mapObj = mapObj;
this.map = mapObj;
this.yLen = this.map.length;
this.depthID = depthID;
this.hurt = false;
this.activated = false;
this.jump = false;
this.jumpTimer = 100;
this.jumpInterval = 250;
this.onScreen = false;
this.cname = this.cType.cname;
this.brainType = this.cType.brainType;
this.creatureH = this.cType.creatureH;
this.creatureW = this.cType.creatureW;
this.HP = this.cType.HP;
this.sp = this.cType.sp;
this.damage = this.cType.damage;
this.xpValue = this.cType.xpValue;
this.jumpstart = this.cType.jumpstart;
this.gravity = this.cType.gravity;
this.dir = this.cType.dir;
this.tempDir = this.cType.tempDir;
this.walking = this.cType.walking;
this.flying = this.cType.flying;
this.flyingArray = this.cType.flyingArray;
this.sensorAreaX = this.cType.sensorAreaX;
this.sensorAreaY = this.cType.sensorAreaY;
this.sensorCreature = this.cType.sensorCreature;
this.projectile = this.cType.projectile;
this.projectileTimer = this.cType.projectileTimer;
this.projectileSpeed = this.cType.projectileSpeed;
this.curProjectile = this.cType.curProjectile;
this.projXOffset = this.cType.projXOffset;
this.projYOffset = this.cType.projYOffset;
this.fire = this.cType.fire;
this.dirArray = this.cType.dirArray;
this.recoilArray = this.cType.recoilArray;
this.petrified = this.cType.petrified;
if (this.flying) {
this.nFA = 0;
}
this.orgHP = this.HP;
this.recoilPos = 0;
this.recoilDir = null;
this.spawn();
r.oWorld.creatureDlevel++;
};
Creature.prototype.spawn = function () {
this.mcObj = "mc_Creat_" + this.cname;
this.mc = r.mc_world.mc_container.attachMovie(this.mcObj, this.creatName, 20000 + this.depthID, {_x:(this.mapX * tileW) + this.creatureW, _y:(this.mapY * tileH) + this.creatureH});
this.mc.walk = true;
this.xpos = this.mc._x;
this.ypos = this.mc._y;
this.mc.ref = this;
this.brain();
if (!this.sensorCreature) {
this.startAI();
} else {
this.sensorInterval = setInterval(this, "sensorForActivate", 100);
}
oWorld.creatureArray.push(this.mc);
};
Creature.prototype.sensorForActivate = function () {
dArea = Math.abs((oHero.xpos / tileW) - this.mapX);
if (dArea < this.sensorAreaX) {
this.activateCreature();
}
};
Creature.prototype.activateCreature = function () {
clearInterval(this.sensorInterval);
this.mc.mc_creature.gotoAndPlay("activate");
this.startAI();
};
Creature.prototype.startAI = function () {
this.activated = true;
this.AIInterval = setInterval(this, "m", 30);
};
Creature.prototype.stopAI = function () {
clearInterval(this.AIInterval);
};
Creature.prototype.rest = function () {
this.stopAI();
};
Creature.prototype.getNewDir = function () {
if ((this.brainType == "A") or (this.brainType == "C")) {
this.tempDir = this.dirArray[random(2)];
this.brain();
}
this.xpos = (this.centerX * tileW) + this.creatureW;
this.ypos = (this.centerY * tileW) + this.creatureH;
if ((this.brainType == "B") or (this.brainType == "D")) {
if (this.dir == "left") {
if ((((!this.checkMap(this.centerX - 1, this.centerY - 1)) or (!this.checkForWaste(this.centerX - 2, this.centerY + 1))) or (!this.checkMap(this.centerX - 1, this.centerY - 2))) or (!this.checkMap(this.centerX - 2, this.centerY - 1))) {
this.tempDir = this.dirArray[random(2)];
this.brain();
} else {
this.jump = true;
this.jumpspeed = this.jumpstart;
}
} else if (this.dir == "right") {
if ((((!this.checkMap(this.centerX + 1, this.centerY - 1)) or (!this.checkForWaste(this.centerX + 2, this.centerY + 1))) or (!this.checkMap(this.centerX + 1, this.centerY - 2))) or (!this.checkMap(this.centerX + 2, this.centerY - 1))) {
this.tempDir = this.dirArray[random(2)];
this.brain();
} else {
this.jump = true;
this.jumpspeed = this.jumpstart;
}
}
}
};
Creature.prototype.turnAround = function (arg) {
if ((arg > 0) && (this.dir == "left")) {
this.dir = "right";
this.mc.gotoAndStop(this.dir);
} else if ((arg < 0) && (this.dir == "right")) {
this.dir = "left";
this.mc.gotoAndStop(this.dir);
}
};
Creature.prototype.brain = function () {
if (this.tempDir == "right") {
this.dir = "right";
this.m();
this.mc.walk = true;
} else if ((this.dir == "right") && (this.mc.walk)) {
this.mc.walk = false;
}
if (this.tempDir == "left") {
this.dir = "left";
this.m();
this.mc.walk = true;
} else if ((this.dir == "left") && (this.mc.walk)) {
this.mc.walk = false;
}
if (this.mc.walk) {
this.walkDir = this.dir;
this.mc.gotoAndStop(this.dir);
this.mc.mc_creature.gotoAndPlay("walk");
this.walking = true;
}
updateAfterEvent();
};
Creature.prototype.m = function () {
this.mc.hitPoints = this.HP;
this.downY = Math.floor(((this.ypos + this.creatureH) + 2) / tileH);
this.upY = Math.floor(((this.ypos - this.creatureH) - 2) / tileH);
this.leftX = Math.floor(((this.xpos - this.creatureW) - 2) / tileW);
this.rightX = Math.floor(((this.xpos + this.creatureW) + 2) / tileW);
this.centerX = Math.floor(this.xpos / tileW);
this.centerY = Math.floor(this.ypos / tileH);
var _local6 = Math.abs(r.mc_world.mc_container._x);
var _local8 = _local6 + r.scrW;
if ((this.xpos > (_local6 - 30)) && (this.xpos < (_local8 + 30))) {
this.onScreen = true;
} else {
this.onScreen = false;
}
if (this.onScreen) {
if ((!this.hurt) && (!this.jump)) {
if (!this.flying) {
if (this.dir == "right") {
if (this.checkMap(this.rightX, this.centerY)) {
this.xpos = this.xpos + this.sp;
} else {
this.getNewDir();
}
if ((this.brainType == "A") or (this.brainType == "C")) {
if (this.checkMap(this.rightX, this.downY)) {
this.getNewDir();
}
} else if ((this.brainType == "B") or (this.brainType == "D")) {
if (!this.checkForWaste(this.rightX, this.downY)) {
this.getNewDir();
}
}
} else if (this.dir == "left") {
if (this.checkMap(this.leftX, this.centerY)) {
this.xpos = this.xpos - this.sp;
} else {
this.getNewDir();
}
if ((this.brainType == "A") or (this.brainType == "C")) {
if (this.checkMap(this.leftX, this.downY)) {
this.getNewDir();
}
} else if ((this.brainType == "B") or (this.brainType == "D")) {
if (!this.checkForWaste(this.leftX, this.downY)) {
this.getNewDir();
}
}
}
} else if (this.flying) {
if (this.dir == "left") {
this.xpos = this.xpos - this.sp;
} else if (this.dir == "right") {
this.xpos = this.xpos + this.sp;
}
this.ypos = this.ypos + this.flyingArray[this.nFA];
this.nFA++;
if (this.nFA > (this.flyingArray.length - 1)) {
this.nFA = 0;
}
}
if ((this.brainType == "C") or (this.brainType == "D")) {
var _local5 = Math.floor((oHero.xpos / tileW) - this.centerX);
var _local7 = Math.floor((oHero.ypos / tileH) - this.centerY);
if ((Math.abs(_local5) < this.sensorAreaX) && (Math.abs(_local7) < this.sensorAreaY)) {
this.turnAround(_local5);
if ((!this.fire) && (this.projectile)) {
this.fire = true;
this.projectileTimer = getTimer() - this.projectileSpeed;
}
if (this.flying && (this.brainType == "D")) {
if ((this.ypos - oHero.ypos) < 7) {
this.ypos = this.ypos + this.sp;
}
if ((this.ypos - oHero.ypos) > -7) {
this.ypos = this.ypos - this.sp;
}
}
} else if (this.fire && (this.projectile)) {
this.fire = false;
}
}
if ((this.projectile && (this.fire)) && (getTimer() > ((this.projectileTimer + this.curProjectile.firingSpeed) + this.projectileSpeed))) {
var _local2 = 0;
while (_local2 < this.curProjectile.nProj) {
var _local3 = (("eFire _" + this.creatName) + "_") + projectileN;
r[(("enemyFire_" + this.creatName) + "_") + projectileN] = new Projectile(_local3, this.curProjectile, this.dir, this.mc._x + this.projXOffset, this.mc._y + this.projYOffset, this, this.curProjectile.BaseDamage + random(this.curProjectile.addDamage), _local2);
_local2++;
}
}
}
}
if (this.hurt) {
var _local4 = this.recoilArray[this.recoilPos];
if (this.recoilDir == "right") {
if (this.checkMap(Math.floor(((this.xpos + _local4) + this.creatureW) / tileW), this.centerY)) {
this.xpos = this.xpos + _local4;
}
if (!this.checkMap(Math.floor((this.xpos + this.creatureW) / tileW), this.centerY)) {
this.recoilPos = 0;
this.recoilDir = null;
}
} else if (this.recoilDir == "left") {
if (this.checkMap(Math.floor(((this.xpos - _local4) - this.creatureW) / tileW), this.centerY)) {
this.xpos = this.xpos - _local4;
}
if (!this.checkMap(Math.floor((this.xpos - this.creatureW) / tileW), this.centerY)) {
this.recoilPos = 0;
this.recoilDir = null;
}
} else if (this.recoilDir == null) {
}
this.recoilPos++;
if (this.recoilPos > (this.recoilArray.length - 1)) {
this.hurt = false;
this.recoilPos = 0;
}
}
if ((!this.hurt) && (!this.checkForWaste(this.centerX, this.centerY))) {
this.takeDamage(5, null);
}
if ((((!this.jump) && (this.checkMap(this.centerX, this.downY))) && (!this.flying)) && (this.gravity != 0)) {
this.fall();
}
if (this.jump) {
this.doJump();
}
this.render();
};
Creature.prototype.render = function () {
this.mc._x = this.xpos;
this.mc._y = this.ypos;
};
Creature.prototype.checkMap = function (x, y) {
if (((((((((((((((((((this.map[y][x] != 1) && (this.map[y][x] != 2)) && (this.map[y][x] != 3)) && (this.map[y][x] != 4)) && (this.map[y][x] != 5)) && (this.map[y][x] != 6)) && (this.map[y][x] != 7)) && (this.map[y][x] != 8)) && (this.map[y][x] != 9)) && (this.map[y][x] != 10)) && (this.map[y][x] != 11)) && (this.map[y][x] != 12)) && (this.map[y][x] != 13)) && (this.map[y][x] != 14)) && (this.map[y][x] != 15)) && (this.map[y][x] != 16)) && (this.map[y][x] != 26)) && (this.map[y][x] != -1)) && (y < this.yLen)) {
if (this.checkForStone(x, y)) {
return(true);
}
return(false);
}
};
Creature.prototype.checkForStone = function (x, y) {
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
if (obj.ref.petrified && (obj.ref != this)) {
var _local4 = Math.floor(obj._x / tileW);
var _local3 = Math.floor(obj._y / tileH);
if ((x == _local4) && (y == _local3)) {
return(false);
}
}
_local2++;
}
return(true);
};
Creature.prototype.checkForWaste = function (x, y) {
if ((this.map[y][x] != 17) && (this.map[y][x] != 18)) {
return(true);
}
return(false);
};
Creature.prototype.takeDamage = function (damage, dir) {
if (this.activated) {
this.HP = this.HP - damage;
this.mc.gotoAndPlay("hurt_" + this.dir);
if (this.HP <= 0) {
this.die();
}
this.hurt = true;
this.recoilDir = dir;
this.recoilPos = 0;
} else {
this.activateCreature();
}
};
Creature.prototype.die = function () {
s.playSound(s.snd_eDie2);
this.stopAI();
this.mc.gotoAndPlay("die");
oHero.addXP(this.xpValue);
};
Creature.prototype.removeReference = function () {
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
if (obj == this.mc) {
this.id = _local2;
oWorld.creatureArray.splice(this.id, 1);
}
_local2++;
}
};
Creature.prototype.kill = function () {
removeMovieClip(this.mc);
this.mc = undefined;
};
Creature.prototype.doJump = function () {
this.downY = Math.floor(((this.ypos + tileH) - 4) / tileH);
this.upY = Math.floor((this.ypos - tileH) / tileH);
this.centerX = Math.floor(this.xpos / tileW);
this.centerY = Math.floor(this.ypos / tileH);
this.jumpspeed = this.jumpspeed + this.gravity;
if (this.dir == "left") {
this.xpos = this.xpos - (this.sp * 2.5);
} else if (this.dir == "right") {
this.xpos = this.xpos + (this.sp * 2.5);
}
if (this.jumpspeed > (tileH - this.charH)) {
this.jumpspeed = tileH - this.charH;
}
if (this.jumpspeed < 0) {
if (this.checkMap(this.centerX, this.upY)) {
this.ypos = this.ypos + this.jumpspeed;
} else {
this.ypos = (this.centerY * tileH) + this.creatureH;
this.jumpspeed = 0;
}
} else if (this.jumpspeed > 0) {
if (this.checkMap(this.centerX, this.downY)) {
this.ypos = this.ypos + this.jumpspeed;
} else {
this.jump = false;
this.jumpTimer = getTimer();
this.ypos = (this.centerY * tileH) + this.creatureH;
this.mc.gotoAndStop(this.dir);
this.mc.mc_creature.gotoAndPlay("jumpland");
}
}
};
Creature.prototype.fall = function () {
if (!this.jump) {
this.jumpspeed = 0;
this.jump = true;
}
};
Element = function (elName, elType, mapX, mapY, depthID, mapObj) {
this.elName = elName;
this.mapX = mapX;
this.mapY = mapY;
this.mapObj = mapObj;
this.elType = elType;
this.depthID = depthID;
this.place();
};
Element.prototype.place = function (c) {
this.mc = r.mc_world.mc_container.attachMovie("mc_Element", this.elName, 30000 + this.depthID, {_x:(this.mapX * tileW) + (tileW / 2), _y:(this.mapY * tileH) + (tileH / 2)});
this.mc.gotoAndStop(this.elType);
this.mc.ref = this;
this.xpos = this.mc._x;
this.ypos = this.mc._y;
this.startCollisionCheck();
oWorld.elementArray.push(this.mc);
};
Element.prototype.startCollisionCheck = function () {
this.collisionInterval = setInterval(this, "collisionCheck", 20);
};
Element.prototype.stopCollisionCheck = function () {
clearInterval(this.collisionInterval);
};
Element.prototype.rest = function () {
this.stopCollisionCheck();
};
Element.prototype.collisionCheck = function () {
var _local3 = this.xpos - r.oHero.mc._x;
var _local2 = this.ypos - r.oHero.mc._y;
if (Math.sqrt((_local3 * _local3) + (_local2 * _local2)) < (this.mc._width / 1.5)) {
this.pickUp();
}
};
Element.prototype.pickUp = function () {
s.playSound(s.snd_ItemPickUp);
if (this.elType == "Spark2") {
oHero.addProjectile(r.hSpark2);
oHero.addXP(1);
} else if (this.elType == "Spark3") {
oHero.addProjectile(r.hSpark3);
oHero.addXP(1);
} else if (this.elType == "Spark4") {
oHero.addProjectile(r.hSpark4);
oHero.addXP(1);
} else if (this.elType == "Energy1") {
oHero.addHP(10);
oHero.addXP(1);
} else if (this.elType == "Energy2") {
oHero.addHP(1000);
oHero.addXP(5);
} else if (this.elType == "Bomb1") {
oHero.addBombs(1);
oHero.addXP(1);
} else if (this.elType == "Bomb2") {
oHero.addBombs(10);
oHero.addXP(5);
} else if (this.elType == "Forcefield") {
oHero.activateForceField();
oHero.addXP(5);
} else if (this.elType == "Spark5") {
oHero.addProjectile(r.hSpark5);
oHero.addXP(1);
trace("spark5");
} else if (this.elType == "1up") {
oHero.addLife(1);
oHero.addXP(5);
trace("1UP");
}
this.stopCollisionCheck();
removeMovieClip(this.mc);
var _local2 = 0;
while (_local2 < oWorld.elementArray.length) {
obj = oWorld.elementArray[_local2];
if (obj == this.mc) {
oWorld.elementArray.splice(_local2, 1);
}
_local2++;
}
};
FinalBoss = function (bossname, mapX, mapY, depthID, mapObj) {
this.bossname = bossname;
this.mapX = mapX;
this.mapY = mapY;
this.mapObj = mapObj;
this.map = mapObj;
this.yLen = this.map.length;
this.depthID = depthID;
this.hurt = false;
this.jump = false;
this.jumping = false;
this.jumpTimer = 100;
this.jumpInterval = 250;
this.creatureH = 48;
this.creatureW = 48;
this.HP = 1300;
this.oHP = this.HP;
this.sp = 0.5;
this.damage = 10;
this.xpValue = 120;
this.jumpstart = -15;
this.gravity = 0.8;
this.dir = "left";
this.tempDir = 0;
this.walk = true;
this.walking = 0;
this.flying = false;
this.flyingArray = 0;
this.sensorAreaX = 5;
this.sensorAreaY = 5;
this.activated = false;
this.xdeg = 0;
this.ydeg = 0;
this.projectile = 0;
this.projectileTimer = 0;
this.projectileSpeed = 0;
this.curProjectile = r.bossLight1;
this.projectileTicker = 0;
this.fire = 0;
this.onScreen = true;
this.dirArray = ["left", "right"];
this.recoilArray = [3, 2, 1];
this.petrified = 0;
this.orgHP = this.HP;
this.recoilPos = 0;
this.recoilDir = null;
this.curBossEvent = 0;
this.bossEventList = new Array("wait", "seek", "fire", "fire", "fire");
this.phase = 0;
this.actionSpeed = 1000;
this.spawn();
};
FinalBoss.prototype.spawn = function () {
this.mcObj = "boss_FinalBoss";
this.mc = r.mc_world.mc_container.attachMovie(this.mcObj, this.bossname, 20000 + this.depthID, {_x:this.mapX * tileW, _y:this.mapY * tileH});
this.xpos = this.mc._x;
this.ypos = this.mc._y;
this.mc.ref = this;
this.mc.mc.gotoAndStop(this.dir);
this.startSensorInterval = setInterval(this, "sensorForActivate", 200);
oWorld.creatureArray.push(this.mc);
};
FinalBoss.prototype.sensorForActivate = function () {
dArea = Math.abs((oHero.xpos / tileW) - this.mapX);
if (dArea < this.sensorAreaX) {
this.activateBoss();
}
};
FinalBoss.prototype.activateBoss = function () {
this.mc.mc.mc.mc.gotoAndPlay("activate");
this.activated = true;
this.startAI();
clearInterval(this.startSensorInterval);
s.fadeInMusic("boss1");
};
FinalBoss.prototype.startAI = function () {
clearInterval(this.startInterval);
this.aiInterval = setInterval(this, "mainLoop", 30);
this.EventHandler();
};
FinalBoss.prototype.stopAI = function () {
clearInterval(this.aiInterval);
clearInterval(this.waitInterval);
};
FinalBoss.prototype.rest = function () {
this.stopAI();
};
FinalBoss.prototype.setJump = function () {
var _local3 = Math.abs(oHero.xpos - this.xpos);
var _local2 = 157 / _local3;
if (_local2 < 0.7) {
this.gravity = 0.7;
} else {
this.gravity = _local2;
}
this.jump = true;
this.jumpspeed = this.jumpstart;
this.jumping = true;
this.mc.mc.gotoAndPlay("jump");
s.playSound(s.snd_throwBomb);
};
FinalBoss.prototype.mainLoop = function () {
this.downY = Math.floor(((this.ypos + this.creatureH) + 2) / tileH);
this.upY = Math.floor(((this.ypos - this.creatureH) - 2) / tileH);
this.centerX = Math.floor(this.xpos / tileW);
this.centerY = Math.floor(this.ypos / tileH);
this.leftX = Math.floor(((this.xpos - this.creatureW) - 2) / tileW);
this.rightX = Math.floor(((this.xpos + this.creatureW) + 2) / tileW);
this.mc._x = this.xpos;
this.mc._y = this.ypos;
if ((this.phase == 0) && (this.HP < (this.oHP * 0.66))) {
this.setPhase(1);
} else if ((this.phase == 1) && (this.HP < (this.oHP * 0.33))) {
this.setPhase(2);
}
if (this.jump) {
this.doJump();
}
if (this.phase == 1) {
this.mov();
} else if (this.phase == 3) {
this.doFlying();
}
this.downY = Math.floor(((this.ypos + this.creatureH) + 2) / tileH);
if ((!this.cMap(this.centerX, this.downY)) && (!this.flying)) {
this.fall();
}
};
FinalBoss.prototype.setPhase = function (arg) {
this.mc.gotoAndStop("phase" + arg);
this.mc.mc.gotoAndStop(this.dir);
this.mc.mc.mc.gotoAndStop("def");
this.phase = arg;
if (arg == 1) {
this.actionSpeed = 900;
this.curProjectile = r.bossLight2;
this.bossEventList = new Array("seek", "fire", "fire", "fire", "wait");
oSmoke = new Smoke(80, 500, this.mc, 0, -52);
} else if (arg == 2) {
oSmoke = new Smoke(80, 500, this.mc, 0, -52);
this.flying = true;
this.animateTo("ypos", 100);
clearInterval(this.waitInterval);
} else if (arg == 3) {
this.actionSpeed = 500;
this.curProjectile = r.enemyFinalBossBomb;
this.bossEventList = new Array("seek", "fire");
this.curBossEvent = 0;
this.EventHandler();
}
};
FinalBoss.prototype.doFire = function () {
this.mc.mc.mc.gotoAndPlay("shot");
var i = 0;
while (i < this.curProjectile.nProj) {
var pName = ((("eFire_" + this.bossname) + "_") + r.projectileN);
r[(("enemyFire_" + this.bossname) + "_") + projectileN] = new Projectile(pName, this.curProjectile, this.dir, this.mc._x, this.mc._y, this, this.curProjectile.BaseDamage + random(this.curProjectile.addDamage), i);
i++;
}
if (this.curProjectile.friend) {
this.projectileTicker++;
if (this.projectileTicker > (this.curProjectile.ticker - 1)) {
friendPro = eval (this.curProjectile.friend);
obj = this["projectileSpawn_" + r.projectileN];
obj = new Creature("mc_projectileSpawn" + r.projectileN, friendPro, this.centerX, this.centerY - 2, r.oWorld.creatureDlevel + 1, r.currentMapObj);
this.projectileTicker = 0;
}
}
};
FinalBoss.prototype.EventHandler = function () {
clearInterval(this.waitInterval);
if (this.HP > 0) {
var _local2 = this.bossEventList[this.curBossEvent];
this.curBossEvent++;
if (this.curBossEvent > (this.bossEventList.length - 1)) {
this.curBossEvent = 0;
}
if (_local2 == "seek") {
trace("--Seek Hero");
this.seekHero();
} else if (_local2 == "wait") {
trace("--Wait for 2000");
this.waitInterval = setInterval(this, "EventHandler", this.actionSpeed + random(this.actionSpeed));
} else if (_local2 == "fire") {
trace("--Fire");
this.doFire();
this.waitInterval = setInterval(this, "EventHandler", this.actionSpeed + random(this.actionSpeed));
} else if (_local2 == "jump") {
trace("--Jump");
this.setJump();
}
}
};
FinalBoss.prototype.seekHero = function () {
if (this.xpos < oHero.xpos) {
this.dir = "right";
} else {
this.dir = "left";
}
this.mc.mc.gotoAndStop(this.dir);
this.EventHandler();
};
FinalBoss.prototype.mov = function () {
if (this.dir == "left") {
if (this.cMap(this.leftX, this.downY)) {
this.xpos = this.xpos - this.sp;
}
} else if (this.dir == "right") {
if (this.cMap(this.rightX, this.downY)) {
this.xpos = this.xpos + this.sp;
}
}
};
FinalBoss.prototype.doFlying = function () {
this.xdeg = this.xdeg + 2;
this.ydeg = this.ydeg + 6;
this.xpos = this.xpos + (Math.cos(this.xdeg * (Math.PI/180)) * 7);
this.ypos = this.ypos + (Math.sin(this.ydeg * (Math.PI/180)) * 4);
};
FinalBoss.prototype.getNewDir = function () {
var _local2 = random(this.dirArray.length);
this.dir = this.dirArray[_local2];
this.mc.gotoAndStop(this.dir);
};
FinalBoss.prototype.cMap = function (x, y) {
if (((((((((((((((((((this.map[y][x] != 1) && (this.map[y][x] != 2)) && (this.map[y][x] != 3)) && (this.map[y][x] != 4)) && (this.map[y][x] != 5)) && (this.map[y][x] != 6)) && (this.map[y][x] != 7)) && (this.map[y][x] != 8)) && (this.map[y][x] != 9)) && (this.map[y][x] != 10)) && (this.map[y][x] != 11)) && (this.map[y][x] != 12)) && (this.map[y][x] != 13)) && (this.map[y][x] != 14)) && (this.map[y][x] != 15)) && (this.map[y][x] != 16)) && (this.map[y][x] != 26)) && (this.map[y][x] != -1)) && (y < this.yLen)) {
return(false);
}
return(true);
};
FinalBoss.prototype.doJump = function () {
this.jumpspeed = this.jumpspeed + this.gravity;
if ((this.dir == "left") && (this.jumping)) {
if (!this.cMap(this.leftX, this.centerY)) {
this.xpos = this.xpos - (this.sp * 2.5);
} else {
this.jumpspeed = 0;
this.jumping = false;
this.getNewDir();
}
} else if ((this.dir == "right") && (this.jumping)) {
if (!this.cMap(this.rightX, this.centerY)) {
this.xpos = this.xpos + (this.sp * 2.5);
} else {
this.jumpspeed = 0;
this.jumping = false;
this.getNewDir();
}
}
if (this.jumpspeed < 0) {
if (!this.cMap(this.centerX, this.upY)) {
this.ypos = this.ypos + this.jumpspeed;
}
} else if (this.jumpspeed > 0) {
if (!this.cMap(this.centerX, this.downY)) {
this.ypos = this.ypos + this.jumpspeed;
} else {
oWorld.startShakingTheWorld(12);
this.jump = false;
this.jumping = false;
this.jumpTimer = getTimer();
this.ypos = this.centerY * tileH;
s.playSound(s.snd_Expo);
this.mc.mc.mc.gotoAndPlay("jumpland");
this.EventHandler();
}
}
};
FinalBoss.prototype.takeDamage = function (damage, id, dir) {
if (this.activated) {
this.id = id;
this.HP = this.HP - damage;
this.mc.mc.gotoAndPlay("hurt_" + this.dir);
if (this.HP <= 0) {
this.die();
}
this.hurt = true;
this.recoilDir = dir;
this.recoilPos = 0;
} else {
this.activateBoss();
}
};
FinalBoss.prototype.die = function () {
s.fadeInMusic("bg");
s.playSound(s.snd_eDie);
oSmoke.stopSmoke();
this.removeReference();
this.stopAI();
oHero.addXP(this.xpValue);
this.mc.mc.gotoAndPlay("die");
r.bgFlash();
};
FinalBoss.prototype.removeReference = function () {
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
if (obj == this.mc) {
this.id = _local2;
oWorld.creatureArray.splice(this.id, 1);
trace("Boss removed");
}
_local2++;
}
};
FinalBoss.prototype.kill = function () {
removeMovieClip(this.mc);
this.pauseInterval = setInterval(this, "executeDeathAction", 500);
};
FinalBoss.prototype.executeDeathAction = function () {
oWorld.gameWon = true;
oWorld.levelDone();
clearInterval(this.pauseInterval);
};
FinalBoss.prototype.fall = function () {
if (!this.jump) {
this.jumpspeed = 0;
this.jump = true;
this.mc.mc.mc.gotoAndPlay("jump");
}
};
FinalBoss.prototype.animateTo = function (arg, val) {
this.animateInterval = setInterval(this, "animateAction", 100, arg, val);
};
FinalBoss.prototype.animateAction = function (arg, val) {
var _local2 = (val - this[arg]) / 4;
this[arg] = this[arg] + _local2;
trace(_local2);
if ((_local2 < 0.5) && (_local2 > -0.5)) {
clearInterval(this.animateInterval);
this.setPhase(3);
}
};
Boss = function (bossname, mapX, mapY, depthID, mapObj) {
this.bossname = bossname;
this.mapX = mapX;
this.mapY = mapY;
this.mapObj = mapObj;
this.map = mapObj;
this.yLen = this.map.length;
this.depthID = depthID;
this.hurt = false;
this.jump = false;
this.jumping = false;
this.jumpTimer = 100;
this.jumpInterval = 250;
this.creatureH = 32;
this.creatureW = 32;
this.HP = 550;
this.sp = 2;
this.damage = 10;
this.xpValue = 120;
this.jumpstart = -15;
this.gravity = 0.8;
this.dir = "left";
this.tempDir = 0;
this.walk = true;
this.walking = 0;
this.flying = 0;
this.flyingArray = 0;
this.sensorAreaX = 5;
this.sensorAreaY = 5;
this.activated = false;
this.projectile = 0;
this.projectileTimer = 0;
this.projectileSpeed = 0;
this.curProjectile = r.bossLight1;
this.fire = 0;
this.dirArray = ["left", "right"];
this.recoilArray = [3, 2, 1];
this.petrified = 0;
this.orgHP = this.HP;
this.recoilPos = 0;
this.recoilDir = null;
this.onScreen = false;
this.curBossEvent = 0;
var _local2 = random(3);
if (_local2 == 0) {
this.bossEventList = new Array("seek", "wait", "fire", "fire", "fire", "wait", "seek", "jump", "wait");
} else if (_local2 == 1) {
this.bossEventList = new Array("seek", "fire", "fire", "wait", "fire", "fire", "jump");
} else if (_local2 == 2) {
this.bossEventList = new Array("seek", "wait", "fire", "fire", "fire", "wait", "seek", "jump", "wait");
}
this.spawn();
};
Boss.prototype.spawn = function () {
this.mcObj = "boss_Boss1";
this.mc = r.mc_world.mc_container.attachMovie(this.mcObj, this.bossname, 20000 + this.depthID, {_x:this.mapX * tileW, _y:this.mapY * tileH});
this.xpos = this.mc._x;
this.ypos = this.mc._y;
this.mc.ref = this;
this.mc.gotoAndStop(this.dir);
this.startSensorInterval = setInterval(this, "sensorForActivate", 200);
oWorld.creatureArray.push(this.mc);
};
Boss.prototype.sensorForActivate = function () {
dArea = Math.abs((oHero.xpos / tileW) - this.mapX);
if (dArea < this.sensorAreaX) {
this.activateBoss();
}
};
Boss.prototype.activateBoss = function () {
this.mc.mc.mc.gotoAndPlay("activate");
this.activated = true;
this.onScreen = true;
this.startAI();
clearInterval(this.startSensorInterval);
s.fadeInMusic("boss1");
};
Boss.prototype.startAI = function () {
oWorld.lockMap();
clearInterval(this.startInterval);
this.aiInterval = setInterval(this, "mainLoop", 30);
this.EventHandler();
};
Boss.prototype.stopAI = function () {
clearInterval(this.aiInterval);
clearInterval(this.waitInterval);
};
Boss.prototype.rest = function () {
this.stopAI();
};
Boss.prototype.setJump = function () {
var _local3 = Math.abs(oHero.xpos - this.xpos);
var _local2 = 157 / _local3;
if (_local2 < 0.7) {
this.gravity = 0.7;
} else {
this.gravity = _local2;
}
this.jump = true;
this.jumpspeed = this.jumpstart;
this.jumping = true;
this.mc.mc.gotoAndPlay("jump");
s.playSound(s.snd_throwBomb);
};
Boss.prototype.mainLoop = function () {
this.downY = Math.floor(((this.ypos + this.creatureH) + 2) / tileH);
this.upY = Math.floor(((this.ypos - this.creatureH) - 2) / tileH);
this.centerX = Math.floor(this.xpos / tileW);
this.centerY = Math.floor(this.ypos / tileH);
this.leftX = Math.floor(((this.xpos - this.creatureW) - 2) / tileW);
this.rightX = Math.floor(((this.xpos + this.creatureW) + 2) / tileW);
this.mc._x = this.xpos;
this.mc._y = this.ypos;
if (this.jump) {
this.doJump();
}
this.downY = Math.floor(((this.ypos + this.creatureH) + 2) / tileH);
if (!this.cMap(this.centerX, this.downY)) {
this.fall();
}
};
Boss.prototype.doFire = function () {
this.mc.mc.gotoAndPlay("shot");
var _local2 = 0;
while (_local2 < this.curProjectile.nProj) {
var _local3 = (("eFire_" + this.bossname) + "_") + projectileN;
r[(("enemyFire_" + this.bossname) + "_") + projectileN] = new Projectile(_local3, this.curProjectile, this.dir, this.mc._x, this.mc._y, this, this.curProjectile.BaseDamage + random(this.curProjectile.addDamage), _local2);
_local2++;
}
};
Boss.prototype.EventHandler = function () {
clearInterval(this.waitInterval);
if (this.HP > 0) {
var _local2 = this.bossEventList[this.curBossEvent];
this.curBossEvent++;
if (this.curBossEvent > (this.bossEventList.length - 1)) {
this.curBossEvent = 0;
}
if (_local2 == "seek") {
trace("--Seek Hero");
this.seekHero();
} else if (_local2 == "wait") {
trace("--Wait for 2000");
this.waitInterval = setInterval(this, "EventHandler", 1000 + random(1000));
} else if (_local2 == "fire") {
trace("--Fire");
this.doFire();
this.waitInterval = setInterval(this, "EventHandler", 1000 + random(1000));
} else if (_local2 == "jump") {
trace("--Jump");
this.setJump();
}
}
};
Boss.prototype.seekHero = function () {
if (this.xpos < oHero.xpos) {
this.dir = "right";
} else {
this.dir = "left";
}
this.mc.gotoAndStop(this.dir);
this.EventHandler();
};
Boss.prototype.mov = function () {
if (this.dir == "left") {
if (!this.cMap(this.leftX, this.centerY)) {
this.xpos = this.xpos - this.sp;
} else {
this.getNewDir();
}
} else if (this.dir == "right") {
if (!this.cMap(this.rightX, this.centerY)) {
this.xpos = this.xpos + this.sp;
} else {
this.getNewDir();
}
}
};
Boss.prototype.getNewDir = function () {
var _local2 = random(this.dirArray.length);
this.dir = this.dirArray[_local2];
this.mc.gotoAndStop(this.dir);
};
Boss.prototype.cMap = function (x, y) {
if (((((((((((((((((((this.map[y][x] != 1) && (this.map[y][x] != 2)) && (this.map[y][x] != 3)) && (this.map[y][x] != 4)) && (this.map[y][x] != 5)) && (this.map[y][x] != 6)) && (this.map[y][x] != 7)) && (this.map[y][x] != 8)) && (this.map[y][x] != 9)) && (this.map[y][x] != 10)) && (this.map[y][x] != 11)) && (this.map[y][x] != 12)) && (this.map[y][x] != 13)) && (this.map[y][x] != 14)) && (this.map[y][x] != 15)) && (this.map[y][x] != 16)) && (this.map[y][x] != 26)) && (this.map[y][x] != -1)) && (y < this.yLen)) {
return(false);
}
return(true);
};
Boss.prototype.doJump = function () {
this.jumpspeed = this.jumpspeed + this.gravity;
if ((this.dir == "left") && (this.jumping)) {
if (!this.cMap(this.leftX, this.centerY)) {
this.xpos = this.xpos - (this.sp * 2.5);
} else {
this.jumpspeed = 0;
this.jumping = false;
this.getNewDir();
}
} else if ((this.dir == "right") && (this.jumping)) {
if (!this.cMap(this.rightX, this.centerY)) {
this.xpos = this.xpos + (this.sp * 2.5);
} else {
this.jumpspeed = 0;
this.jumping = false;
this.getNewDir();
}
}
if (this.jumpspeed < 0) {
if (!this.checkMap(this.centerX, this.upY)) {
this.ypos = this.ypos + this.jumpspeed;
}
} else if (this.jumpspeed > 0) {
if (!this.cMap(this.centerX, this.downY)) {
this.ypos = this.ypos + this.jumpspeed;
} else {
oWorld.startShakingTheWorld(12);
this.jump = false;
this.jumping = false;
this.jumpTimer = getTimer();
this.ypos = this.centerY * tileH;
s.playSound(s.snd_Expo);
this.mc.mc.gotoAndPlay("jumpland");
this.EventHandler();
}
}
};
Boss.prototype.checkMap = function (x, y) {
if (((((((((((((((((((this.map[y][x] != 1) && (this.map[y][x] != 2)) && (this.map[y][x] != 3)) && (this.map[y][x] != 4)) && (this.map[y][x] != 5)) && (this.map[y][x] != 6)) && (this.map[y][x] != 7)) && (this.map[y][x] != 8)) && (this.map[y][x] != 9)) && (this.map[y][x] != 10)) && (this.map[y][x] != 11)) && (this.map[y][x] != 12)) && (this.map[y][x] != 13)) && (this.map[y][x] != 14)) && (this.map[y][x] != 15)) && (this.map[y][x] != 16)) && (this.map[y][x] != 26)) && (this.map[y][x] != -1)) && (y < this.yLen)) {
return(false);
}
};
Boss.prototype.takeDamage = function (damage, id, dir) {
if (this.activated) {
this.id = id;
this.HP = this.HP - damage;
this.mc.gotoAndPlay("hurt_" + this.dir);
if (this.HP <= 0) {
this.die();
}
this.hurt = true;
this.recoilDir = dir;
this.recoilPos = 0;
} else {
this.activateBoss();
}
};
Boss.prototype.die = function () {
s.fadeInMusic("bg");
s.playSound(s.snd_eDie);
this.removeReference();
this.stopAI();
oHero.addXP(this.xpValue);
oHero.miniBossKilled++;
this.mc.gotoAndPlay("die");
r.bgFlash();
};
Boss.prototype.removeReference = function () {
var _local2 = 0;
while (_local2 < oWorld.creatureArray.length) {
obj = oWorld.creatureArray[_local2];
if (obj == this.mc) {
this.id = _local2;
oWorld.creatureArray.splice(this.id, 1);
trace("Boss removed");
}
_local2++;
}
};
Boss.prototype.kill = function () {
removeMovieClip(this.mc);
this.pauseInterval = setInterval(this, "executeDeathAction", 500);
};
Boss.prototype.executeDeathAction = function () {
clearInterval(this.pauseInterval);
};
Boss.prototype.fall = function () {
if (!this.jump) {
this.jumpspeed = 0;
this.jump = true;
this.mc.mc.gotoAndPlay("jump");
}
};
Dialog = function (dialogName, dialogType, trigg, depthID, parentObject) {
this.dialogName = dialogName;
this.dialogType = dialogType;
this.refMc = eval (parentObject);
this.trigg = trigg;
this.orgX = this.refMc._x;
this.orgHP = this.refMc.ref.HP;
this.depthID = depthID;
this.place();
};
Dialog.prototype.place = function () {
this.depth = 2000 + this.depthID;
this.mc = r.mc_world.mc_container.attachMovie("mc_dialog", this.dialogName, this.depth);
this.mc.ref = this;
this.mc.gotoAndStop(this.dialogType);
this.mc._x = this.refMc._x;
this.mc._y = (this.refMc._y - (this.refMc._height / 2)) - 10;
this.startBrain();
oWorld.dialogArray.push(this.mc);
};
Dialog.prototype.startBrain = function () {
this.brainInterval = setInterval(this, "brain", 10);
};
Dialog.prototype.rest = function () {
clearInterval(this.brainInterval);
};
Dialog.prototype.brain = function () {
this.destX = this.refMc._x;
this.destY = (this.refMc._y - (this.refMc._height / 2)) - 15;
this.dx = Math.floor((this.destX - this.mc._x) / 6);
this.dy = Math.floor((this.destY - this.mc._y) / 6);
this.mc._x = this.mc._x + this.dx;
this.mc._y = this.mc._y + this.dy;
if (this.trigg == "death") {
if (this.refMc._x == undefined) {
this.kill();
}
} else if (this.trigg == "movement") {
if (this.refMc._x != this.orgX) {
this.kill();
}
} else if (this.trigg == "interval5") {
this.suddenDeath = setInterval(this, "kill", 5000);
} else if (this.trigg == "interval10") {
this.suddenDeath = setInterval(this, "kill", 10000);
} else if (this.trigg == "hurt") {
if (this.refMc.ref.HP != this.orgHP) {
this.kill();
}
}
};
Dialog.prototype.kill = function () {
clearInterval(this.suddenDeath);
clearInterval(this.brainInterval);
var _local2 = 0;
while (_local2 < oWorld.dialogArray.length) {
obj = oWorld.dialogArray[_local2];
if (obj == this.mc) {
oWorld.dialogArray.splice(_local2, 1);
}
_local2++;
}
removeMovieClip(this.mc);
};
Frame 18
if (!oHero) {
oHero = new Hero("mcHero", 2, 8);
oWorld.newLevel(currentLevel);
mc_interface.gotoAndPlay("fadein");
}
stop();
Symbol 31 MovieClip [mc_smoke] Frame 1
Symbol 31 MovieClip [mc_smoke] Frame 26
stop();
Symbol 97 MovieClip [mc_tile] Frame 1
stop();
Symbol 97 MovieClip [mc_tile] Frame 2
stop();
Symbol 97 MovieClip [mc_tile] Frame 3
stop();
Symbol 97 MovieClip [mc_tile] Frame 4
stop();
Symbol 97 MovieClip [mc_tile] Frame 5
stop();
Symbol 97 MovieClip [mc_tile] Frame 6
stop();
Symbol 97 MovieClip [mc_tile] Frame 7
stop();
Symbol 97 MovieClip [mc_tile] Frame 8
stop();
Symbol 97 MovieClip [mc_tile] Frame 9
stop();
Symbol 97 MovieClip [mc_tile] Frame 10
stop();
Symbol 97 MovieClip [mc_tile] Frame 11
stop();
Symbol 97 MovieClip [mc_tile] Frame 12
stop();
Symbol 97 MovieClip [mc_tile] Frame 13
stop();
Symbol 97 MovieClip [mc_tile] Frame 14
stop();
Symbol 97 MovieClip [mc_tile] Frame 15
stop();
Symbol 97 MovieClip [mc_tile] Frame 16
stop();
Symbol 97 MovieClip [mc_tile] Frame 17
stop();
Symbol 97 MovieClip [mc_tile] Frame 18
stop();
Symbol 97 MovieClip [mc_tile] Frame 19
stop();
Symbol 97 MovieClip [mc_tile] Frame 20
stop();
Symbol 97 MovieClip [mc_tile] Frame 21
stop();
Symbol 97 MovieClip [mc_tile] Frame 22
stop();
Symbol 97 MovieClip [mc_tile] Frame 23
stop();
Symbol 97 MovieClip [mc_tile] Frame 24
stop();
Symbol 97 MovieClip [mc_tile] Frame 25
stop();
Symbol 97 MovieClip [mc_tile] Frame 26
stop();
Symbol 97 MovieClip [mc_tile] Frame 27
stop();
Symbol 97 MovieClip [mc_tile] Frame 28
stop();
Symbol 97 MovieClip [mc_tile] Frame 29
stop();
Symbol 97 MovieClip [mc_tile] Frame 30
stop();
Symbol 97 MovieClip [mc_tile] Frame 31
stop();
Symbol 97 MovieClip [mc_tile] Frame 32
stop();
Symbol 97 MovieClip [mc_tile] Frame 33
stop();
Symbol 97 MovieClip [mc_tile] Frame 34
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 6
stop();
Symbol 110 MovieClip Frame 11
stop();
Symbol 110 MovieClip Frame 16
stop();
Symbol 110 MovieClip Frame 21
play();
Symbol 110 MovieClip Frame 27
stop();
this.ref.kill();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 4
stop();
Symbol 117 MovieClip Frame 7
stop();
Symbol 117 MovieClip Frame 10
stop();
Symbol 117 MovieClip Frame 13
play();
r.generateSparks(10, _parent.ref.xpos + 20, _parent.ref.ypos + 20, "spark");
Symbol 117 MovieClip Frame 22
stop();
this.ref.kill();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 6
stop();
Symbol 121 MovieClip Frame 11
stop();
Symbol 121 MovieClip Frame 16
stop();
Symbol 121 MovieClip Frame 21
play();
Symbol 121 MovieClip Frame 27
stop();
this.ref.kill();
Symbol 136 MovieClip Frame 15
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 4
stop();
Symbol 141 MovieClip Frame 7
stop();
Symbol 141 MovieClip Frame 10
stop();
Symbol 141 MovieClip Frame 13
play();
Symbol 141 MovieClip Frame 23
stop();
this.ref.kill();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 4
stop();
Symbol 154 MovieClip Frame 7
stop();
Symbol 154 MovieClip Frame 10
stop();
Symbol 154 MovieClip Frame 13
play();
Symbol 154 MovieClip Frame 20
stop();
this.ref.kill();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 4
stop();
Symbol 160 MovieClip Frame 7
stop();
Symbol 160 MovieClip Frame 10
stop();
Symbol 160 MovieClip Frame 13
play();
Symbol 160 MovieClip Frame 19
stop();
this.ref.kill();
Symbol 175 MovieClip Frame 14
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 4
stop();
Symbol 180 MovieClip Frame 7
stop();
Symbol 180 MovieClip Frame 10
stop();
Symbol 180 MovieClip Frame 13
play();
Symbol 180 MovieClip Frame 23
stop();
this.ref.kill();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 4
stop();
Symbol 187 MovieClip Frame 7
stop();
Symbol 187 MovieClip Frame 10
stop();
Symbol 187 MovieClip Frame 13
play();
Symbol 187 MovieClip Frame 19
stop();
this.ref.kill();
Symbol 188 MovieClip [mc_projectile] Frame 1
stop();
Symbol 188 MovieClip [mc_projectile] Frame 2
stop();
Symbol 188 MovieClip [mc_projectile] Frame 3
stop();
Symbol 188 MovieClip [mc_projectile] Frame 4
stop();
Symbol 188 MovieClip [mc_projectile] Frame 5
stop();
Symbol 188 MovieClip [mc_projectile] Frame 6
stop();
Symbol 188 MovieClip [mc_projectile] Frame 7
stop();
Symbol 188 MovieClip [mc_projectile] Frame 8
stop();
Symbol 188 MovieClip [mc_projectile] Frame 9
stop();
Symbol 188 MovieClip [mc_projectile] Frame 10
stop();
Symbol 188 MovieClip [mc_projectile] Frame 11
stop();
Symbol 188 MovieClip [mc_projectile] Frame 12
stop();
Symbol 188 MovieClip [mc_projectile] Frame 13
stop();
Symbol 214 MovieClip Frame 8
stop();
Symbol 215 MovieClip Frame 15
stop();
Symbol 216 MovieClip [mc_Creat_Robo2] Frame 1
stop();
Symbol 216 MovieClip [mc_Creat_Robo2] Frame 5
stop();
Symbol 216 MovieClip [mc_Creat_Robo2] Frame 11
this.gotoAndStop("right");
Symbol 216 MovieClip [mc_Creat_Robo2] Frame 14
this.gotoAndStop("left");
Symbol 216 MovieClip [mc_Creat_Robo2] Frame 15
play();
this.ref.removeReference();
Symbol 216 MovieClip [mc_Creat_Robo2] Frame 31
stop();
this.ref.kill();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 11
stop();
_parent.gotoAndPlay("def");
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 8
stop();
Symbol 231 MovieClip Frame 15
play();
Symbol 231 MovieClip Frame 19
this.gotoAndStop("def");
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 6
stop();
Symbol 232 MovieClip Frame 15
this.gotoAndStop("right");
Symbol 232 MovieClip Frame 20
this.gotoAndStop("left");
Symbol 232 MovieClip Frame 21
play();
Symbol 232 MovieClip Frame 30
r.oWorld.unLockMap();
Symbol 232 MovieClip Frame 37
stop();
this.ref.kill();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 10
play();
Symbol 250 MovieClip Frame 14
this.gotoAndStop("def");
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 6
stop();
Symbol 251 MovieClip Frame 15
this.gotoAndStop("right");
Symbol 251 MovieClip Frame 20
this.gotoAndStop("left");
Symbol 251 MovieClip Frame 21
play();
Symbol 251 MovieClip Frame 37
stop();
this.ref.kill();
Symbol 261 MovieClip Frame 10
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 35
stop();
Symbol 262 MovieClip Frame 71
this.gotoAndStop("right");
Symbol 262 MovieClip Frame 76
this.gotoAndStop("left");
Symbol 262 MovieClip Frame 77
play();
Symbol 262 MovieClip Frame 93
stop();
this.ref.kill();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 12
play();
Symbol 263 MovieClip Frame 15
this.gotoAndStop("def");
Symbol 276 MovieClip Frame 1
stop();
var p1_dx = -3;
var p1_dy = -4;
var p2_dx = -3;
var p2_dy = 9;
var p3_dx = 4;
var p3_dy = -4;
var p4_dx = 6;
var p4_dy = 9;
p1Interval = setInterval(this, "scatter", 10, this.p1, p1_dx, p1_dy);
p2Interval = setInterval(this, "scatter", 10, this.p2, p2_dx, p2_dy);
p3Interval = setInterval(this, "scatter", 10, this.p3, p3_dx, p3_dy);
p4Interval = setInterval(this, "scatter", 10, this.p4, p4_dx, p4_dy);
scatter = function (mc, dx, dy) {
mc._x = mc._x + dx;
mc._y = mc._y + dy;
};
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 6
stop();
Symbol 277 MovieClip Frame 15
this.gotoAndStop("right");
Symbol 277 MovieClip Frame 20
this.gotoAndStop("left");
Symbol 277 MovieClip Frame 21
play();
Symbol 277 MovieClip Frame 30
r.bgFlash();
Symbol 277 MovieClip Frame 46
r.bgFlash();
Symbol 277 MovieClip Frame 62
stop();
this._parent.ref.kill();
Symbol 278 MovieClip [boss_FinalBoss] Frame 1
stop();
Symbol 278 MovieClip [boss_FinalBoss] Frame 7
stop();
Symbol 278 MovieClip [boss_FinalBoss] Frame 13
stop();
Symbol 278 MovieClip [boss_FinalBoss] Frame 19
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 15
stop();
_parent.gotoAndPlay("def");
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 8
stop();
Symbol 300 MovieClip Frame 15
play();
Symbol 300 MovieClip Frame 24
this.gotoAndStop("def");
Symbol 300 MovieClip Frame 25
stop();
Symbol 300 MovieClip Frame 31
play();
Symbol 300 MovieClip Frame 34
this.gotoAndStop("def");
Symbol 301 MovieClip [boss_Boss1] Frame 1
stop();
Symbol 301 MovieClip [boss_Boss1] Frame 6
stop();
Symbol 301 MovieClip [boss_Boss1] Frame 15
this.gotoAndStop("right");
Symbol 301 MovieClip [boss_Boss1] Frame 20
this.gotoAndStop("left");
Symbol 301 MovieClip [boss_Boss1] Frame 21
play();
Symbol 301 MovieClip [boss_Boss1] Frame 30
r.oWorld.unLockMap();
Symbol 301 MovieClip [boss_Boss1] Frame 37
stop();
this.ref.kill();
Symbol 302 MovieClip [mc_Creat_Robo1] Frame 1
stop();
Symbol 302 MovieClip [mc_Creat_Robo1] Frame 5
stop();
Symbol 302 MovieClip [mc_Creat_Robo1] Frame 11
this.gotoAndStop("right");
Symbol 302 MovieClip [mc_Creat_Robo1] Frame 14
this.gotoAndStop("left");
Symbol 302 MovieClip [mc_Creat_Robo1] Frame 15
play();
this.ref.removeReference();
Symbol 302 MovieClip [mc_Creat_Robo1] Frame 31
stop();
this.ref.kill();
Symbol 305 MovieClip [mc_Creat_Large] Frame 1
stop();
Symbol 305 MovieClip [mc_Creat_Large] Frame 5
stop();
Symbol 305 MovieClip [mc_Creat_Large] Frame 12
this.gotoAndStop("right");
Symbol 305 MovieClip [mc_Creat_Large] Frame 15
this.gotoAndStop("left");
Symbol 305 MovieClip [mc_Creat_Large] Frame 16
play();
this.ref.removeReference();
Symbol 305 MovieClip [mc_Creat_Large] Frame 21
stop();
this.ref.kill();
Symbol 311 MovieClip [mc_Creat_RoboBomb1] Frame 1
stop();
Symbol 311 MovieClip [mc_Creat_RoboBomb1] Frame 5
stop();
Symbol 311 MovieClip [mc_Creat_RoboBomb1] Frame 11
this.gotoAndStop("right");
Symbol 311 MovieClip [mc_Creat_RoboBomb1] Frame 14
this.gotoAndStop("left");
Symbol 311 MovieClip [mc_Creat_RoboBomb1] Frame 15
play();
this.ref.removeReference();
Symbol 311 MovieClip [mc_Creat_RoboBomb1] Frame 32
stop();
this.ref.kill();
Symbol 321 MovieClip [mc_Creat_Mosq4] Frame 1
stop();
Symbol 321 MovieClip [mc_Creat_Mosq4] Frame 5
stop();
Symbol 321 MovieClip [mc_Creat_Mosq4] Frame 12
this.gotoAndStop("right");
Symbol 321 MovieClip [mc_Creat_Mosq4] Frame 15
this.gotoAndStop("left");
Symbol 321 MovieClip [mc_Creat_Mosq4] Frame 16
play();
this.ref.removeReference();
Symbol 321 MovieClip [mc_Creat_Mosq4] Frame 33
stop();
this.ref.kill();
Symbol 322 MovieClip [mc_Creat_Mosq3] Frame 1
stop();
Symbol 322 MovieClip [mc_Creat_Mosq3] Frame 5
stop();
Symbol 322 MovieClip [mc_Creat_Mosq3] Frame 12
this.gotoAndStop("right");
Symbol 322 MovieClip [mc_Creat_Mosq3] Frame 15
this.gotoAndStop("left");
Symbol 322 MovieClip [mc_Creat_Mosq3] Frame 16
play();
this.ref.removeReference();
Symbol 322 MovieClip [mc_Creat_Mosq3] Frame 33
stop();
this.ref.kill();
Symbol 323 MovieClip [mc_Creat_Mosq2] Frame 1
stop();
Symbol 323 MovieClip [mc_Creat_Mosq2] Frame 5
stop();
Symbol 323 MovieClip [mc_Creat_Mosq2] Frame 12
this.gotoAndStop("right");
Symbol 323 MovieClip [mc_Creat_Mosq2] Frame 15
this.gotoAndStop("left");
Symbol 323 MovieClip [mc_Creat_Mosq2] Frame 16
play();
this.ref.removeReference();
Symbol 323 MovieClip [mc_Creat_Mosq2] Frame 33
stop();
this.ref.kill();
Symbol 324 MovieClip [mc_Creat_Mosq1] Frame 1
stop();
Symbol 324 MovieClip [mc_Creat_Mosq1] Frame 5
stop();
Symbol 324 MovieClip [mc_Creat_Mosq1] Frame 12
this.gotoAndStop("right");
Symbol 324 MovieClip [mc_Creat_Mosq1] Frame 15
this.gotoAndStop("left");
Symbol 324 MovieClip [mc_Creat_Mosq1] Frame 16
play();
this.ref.removeReference();
Symbol 324 MovieClip [mc_Creat_Mosq1] Frame 33
stop();
this.ref.kill();
Symbol 334 MovieClip [mc_Creat_Scarabe2] Frame 1
stop();
Symbol 334 MovieClip [mc_Creat_Scarabe2] Frame 5
stop();
Symbol 334 MovieClip [mc_Creat_Scarabe2] Frame 12
this.gotoAndStop("right");
Symbol 334 MovieClip [mc_Creat_Scarabe2] Frame 15
this.gotoAndStop("left");
Symbol 334 MovieClip [mc_Creat_Scarabe2] Frame 16
play();
this.ref.removeReference();
Symbol 334 MovieClip [mc_Creat_Scarabe2] Frame 33
stop();
this.ref.kill();
Symbol 335 MovieClip [mc_Creat_Scarabe] Frame 1
stop();
Symbol 335 MovieClip [mc_Creat_Scarabe] Frame 5
stop();
Symbol 335 MovieClip [mc_Creat_Scarabe] Frame 12
this.gotoAndStop("right");
Symbol 335 MovieClip [mc_Creat_Scarabe] Frame 15
this.gotoAndStop("left");
Symbol 335 MovieClip [mc_Creat_Scarabe] Frame 16
play();
this.ref.removeReference();
Symbol 335 MovieClip [mc_Creat_Scarabe] Frame 33
stop();
this.ref.kill();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 6
play();
Symbol 354 MovieClip Frame 91
this.gotoAndStop("loop");
Symbol 355 MovieClip [mc_Creat_Sandworm2] Frame 1
stop();
Symbol 355 MovieClip [mc_Creat_Sandworm2] Frame 6
this.gotoAndStop("null");
Symbol 355 MovieClip [mc_Creat_Sandworm2] Frame 7
play();
this.ref.removeReference();
Symbol 355 MovieClip [mc_Creat_Sandworm2] Frame 22
this.ref.kill();
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 6
play();
Symbol 372 MovieClip Frame 91
this.gotoAndStop("loop");
Symbol 373 MovieClip [mc_Creat_Sandworm1] Frame 1
stop();
Symbol 373 MovieClip [mc_Creat_Sandworm1] Frame 6
this.gotoAndStop("null");
Symbol 373 MovieClip [mc_Creat_Sandworm1] Frame 7
play();
this.ref.removeReference();
Symbol 373 MovieClip [mc_Creat_Sandworm1] Frame 22
this.ref.kill();
stop();
Symbol 377 MovieClip [mc_Creat_Turrent1_r] Frame 1
stop();
Symbol 377 MovieClip [mc_Creat_Turrent1_r] Frame 8
this.gotoAndStop("right");
Symbol 377 MovieClip [mc_Creat_Turrent1_r] Frame 9
play();
this.ref.removeReference();
Symbol 377 MovieClip [mc_Creat_Turrent1_r] Frame 14
this.ref.kill();
stop();
Symbol 378 MovieClip [mc_Creat_Turrent1_l] Frame 1
stop();
Symbol 378 MovieClip [mc_Creat_Turrent1_l] Frame 8
this.gotoAndStop("left");
Symbol 378 MovieClip [mc_Creat_Turrent1_l] Frame 9
play();
this.ref.removeReference();
Symbol 378 MovieClip [mc_Creat_Turrent1_l] Frame 14
this.ref.kill();
stop();
Symbol 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 4
stop();
Symbol 385 MovieClip Frame 7
stop();
Symbol 386 MovieClip [mc_Creat_Stone3] Frame 1
stop();
Symbol 386 MovieClip [mc_Creat_Stone3] Frame 6
this.gotoAndStop("null");
Symbol 386 MovieClip [mc_Creat_Stone3] Frame 7
play();
this.ref.removeReference();
Symbol 386 MovieClip [mc_Creat_Stone3] Frame 12
this.ref.kill();
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 4
stop();
Symbol 393 MovieClip Frame 7
stop();
Symbol 394 MovieClip [mc_Creat_Stone2] Frame 1
if (this.ref.HP < (this.ref.orgHP * 0.66)) {
this.mc_creature.gotoAndStop("stage2");
}
if (this.ref.HP < (this.ref.orgHP * 0.33)) {
this.mc_creature.gotoAndStop("stage3");
}
stop();
Symbol 394 MovieClip [mc_Creat_Stone2] Frame 6
this.gotoAndStop("null");
Symbol 394 MovieClip [mc_Creat_Stone2] Frame 7
play();
this.ref.removeReference();
Symbol 394 MovieClip [mc_Creat_Stone2] Frame 12
this.ref.kill();
stop();
Symbol 395 MovieClip [mc_Creat_Stone1] Frame 1
if (this.ref.HP < (this.ref.orgHP * 0.66)) {
this.mc_creature.gotoAndStop("stage2");
}
if (this.ref.HP < (this.ref.orgHP * 0.33)) {
this.mc_creature.gotoAndStop("stage3");
}
stop();
Symbol 395 MovieClip [mc_Creat_Stone1] Frame 6
this.gotoAndStop("null");
Symbol 395 MovieClip [mc_Creat_Stone1] Frame 7
play();
this.ref.removeReference();
Symbol 395 MovieClip [mc_Creat_Stone1] Frame 12
this.ref.kill();
stop();
Symbol 405 MovieClip [mc_Creat_Spider1] Frame 1
stop();
Symbol 405 MovieClip [mc_Creat_Spider1] Frame 5
stop();
Symbol 405 MovieClip [mc_Creat_Spider1] Frame 12
this.gotoAndStop("right");
Symbol 405 MovieClip [mc_Creat_Spider1] Frame 15
this.gotoAndStop("left");
Symbol 405 MovieClip [mc_Creat_Spider1] Frame 16
play();
this.ref.removeReference();
Symbol 405 MovieClip [mc_Creat_Spider1] Frame 32
stop();
this.ref.kill();
Symbol 413 MovieClip [mc_Creat_Blob2] Frame 1
stop();
Symbol 413 MovieClip [mc_Creat_Blob2] Frame 5
stop();
Symbol 413 MovieClip [mc_Creat_Blob2] Frame 12
this.gotoAndStop("right");
Symbol 413 MovieClip [mc_Creat_Blob2] Frame 15
this.gotoAndStop("left");
Symbol 413 MovieClip [mc_Creat_Blob2] Frame 16
play();
this.ref.removeReference();
Symbol 413 MovieClip [mc_Creat_Blob2] Frame 32
stop();
this.ref.kill();
Symbol 414 MovieClip [mc_Creat_Blob] Frame 1
stop();
Symbol 414 MovieClip [mc_Creat_Blob] Frame 5
stop();
Symbol 414 MovieClip [mc_Creat_Blob] Frame 12
this.gotoAndStop("right");
Symbol 414 MovieClip [mc_Creat_Blob] Frame 15
this.gotoAndStop("left");
Symbol 414 MovieClip [mc_Creat_Blob] Frame 16
play();
this.ref.removeReference();
Symbol 414 MovieClip [mc_Creat_Blob] Frame 32
stop();
this.ref.kill();
Symbol 415 MovieClip [mc_creature] Frame 1
stop();
Symbol 415 MovieClip [mc_creature] Frame 5
stop();
Symbol 415 MovieClip [mc_creature] Frame 12
this.gotoAndStop("right");
Symbol 415 MovieClip [mc_creature] Frame 15
this.gotoAndStop("left");
Symbol 415 MovieClip [mc_creature] Frame 16
play();
this.ref.removeReference();
Symbol 415 MovieClip [mc_creature] Frame 21
stop();
this.ref.kill();
Symbol 428 MovieClip Frame 5
stop();
Symbol 429 MovieClip Frame 15
this.gotoAndPlay("walk");
Symbol 429 MovieClip Frame 23
this.gotoAndPlay("walk");
Symbol 429 MovieClip Frame 28
this.gotoAndPlay("walk");
Symbol 429 MovieClip Frame 31
this.gotoAndPlay("walk");
Symbol 429 MovieClip Frame 44
stop();
Symbol 432 MovieClip Frame 1
function forceRemove() {
clearInterval(this.forceRemoveInterval);
this.gotoAndStop("off");
trace("========FORCEFIELD: forceRemove");
}
stop();
Symbol 432 MovieClip Frame 6
this.forceRemoveInterval = setInterval(this, "forceRemove", 10000);
Symbol 432 MovieClip Frame 21
this.gotoAndPlay("loop");
Symbol 432 MovieClip Frame 22
play();
Symbol 432 MovieClip Frame 29
this.gotoAndPlay("depleat");
Symbol 433 MovieClip [mc_character] Frame 1
stop();
Symbol 433 MovieClip [mc_character] Frame 5
stop();
Symbol 453 MovieClip [mc_Element] Frame 1
stop();
Symbol 453 MovieClip [mc_Element] Frame 2
stop();
Symbol 453 MovieClip [mc_Element] Frame 3
stop();
Symbol 453 MovieClip [mc_Element] Frame 4
stop();
Symbol 453 MovieClip [mc_Element] Frame 5
stop();
Symbol 453 MovieClip [mc_Element] Frame 6
stop();
Symbol 453 MovieClip [mc_Element] Frame 7
stop();
Symbol 453 MovieClip [mc_Element] Frame 8
stop();
Symbol 453 MovieClip [mc_Element] Frame 9
stop();
Symbol 453 MovieClip [mc_Element] Frame 10
stop();
Symbol 470 MovieClip [mc_dialog] Frame 1
stop();
Symbol 470 MovieClip [mc_dialog] Frame 2
stop();
Symbol 470 MovieClip [mc_dialog] Frame 3
stop();
Symbol 470 MovieClip [mc_dialog] Frame 4
stop();
Symbol 470 MovieClip [mc_dialog] Frame 5
stop();
Symbol 470 MovieClip [mc_dialog] Frame 6
stop();
Symbol 470 MovieClip [mc_dialog] Frame 7
stop();
Symbol 470 MovieClip [mc_dialog] Frame 8
stop();
Symbol 470 MovieClip [mc_dialog] Frame 9
stop();
Symbol 715 MovieClip [__Packages.com.gamezhero.api.as2.GamezheroApi] Frame 0
class com.gamezhero.api.as2.GamezheroApi
{
static var _preloader_goal, _preloader_next_step_function, _score_goal, _score_submit_function, _score_continue_function, _score_error_function;
function GamezheroApi () {
}
static function ini(gameName) {
System.security.allowDomain("www.gamezhero.com", "gamezhero.com", "files.gamezhero.com", "data.gamezhero.com", "*.gamezhero.com");
System.security.allowInsecureDomain("www.gamezhero.com", "gamezhero.com", "files.gamezhero.com", "data.gamezhero.com", "*.gamezhero.com");
com.gamezhero.api.as2.GamezheroGlobal.setGameName(gameName);
}
static function preloader(target, nextStep) {
_preloader_goal = target;
_preloader_next_step_function = nextStep;
if (com.gamezhero.api.as2.GamezheroGlobal.getGameName() == "unset") {
trace("Error. GamezheroApi don't ini !");
} else {
var _local1 = new com.gamezhero.api.as2.GamePreloader(_preloader_goal);
_local1.continueAction = preloaderNextStep;
}
}
static function preloaderNextStep() {
_preloader_next_step_function.apply();
}
static function score(target, gameCode, scoreValue, scoreX, scoreY, submitAction, continueAction, errorAction, scoreSkin) {
com.gamezhero.api.as2.GamezheroGlobal.setGameCode(gameCode);
_score_goal = target;
_score_submit_function = submitAction;
_score_continue_function = continueAction;
_score_error_function = errorAction;
trace(com.gamezhero.api.as2.GamezheroGlobal.getGameName());
if (com.gamezhero.api.as2.GamezheroGlobal.getGameName() == "unset") {
trace("Error. GamezheroApi don't ini !");
} else {
var _local5 = scoreValue;
var _local4 = scoreX;
var _local3 = scoreY;
var _local1 = scoreSkin;
if (_local1 == undefined) {
_local1 = {border:{width:4, color:16777215, alpha:100}, background:{topColor:10066329, bottomColor:6710886, topAlpha:100, bottomAlpha:100, cornerRadius:10}, language:"ENG"};
}
var _local2 = new com.gamezhero.api.as2.SubmitArea(_score_goal, _local4, _local3, _local5, _local1);
_local2.submitAction = scoreSubmitAction;
_local2.continueAction = scoreContinueAction;
_local2.errorAction = scoreErrorAction;
}
}
static function scoreSubmitAction() {
_score_submit_function.apply();
}
static function scoreContinueAction() {
_score_continue_function.apply();
}
static function scoreErrorAction() {
_score_error_function.apply();
}
static function linkTopScore() {
com.gamezhero.api.as2.GamezheroGlobal.getURL(((((("http://www.gamezhero.com/topscore/" + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "/top100.html?utm_campaign=") + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "&utm_source=") + com.gamezhero.api.as2.GamezheroGlobal.getDomain()) + "&utm_medium=top_score", "_blank");
}
static function linkZorroLogo() {
com.gamezhero.api.as2.GamezheroGlobal.getURL(((("http://www.gamezhero.com/?utm_campaign=" + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "&utm_source=") + com.gamezhero.api.as2.GamezheroGlobal.getDomain()) + "&utm_medium=zorro_logo", "_blank");
}
static function linkSendToFrined() {
com.gamezhero.api.as2.GamezheroGlobal.getURL(((((("http://www.gamezhero.com/sendtofriends/" + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "-games.html?utm_campaign=") + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "&utm_source=") + com.gamezhero.api.as2.GamezheroGlobal.getDomain()) + "&utm_medium=send_to_friend", "_blank");
}
static function linkPublish() {
com.gamezhero.api.as2.GamezheroGlobal.getURL(((((("http://www.gamezhero.com/freewebsitegames/" + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "-games.html?utm_campaign=") + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "&utm_source=") + com.gamezhero.api.as2.GamezheroGlobal.getDomain()) + "&utm_medium=free_web_site_games", "_blank");
}
static function linkMoreGames() {
com.gamezhero.api.as2.GamezheroGlobal.getURL(((("http://www.gamezhero.com/?utm_campaign=" + com.gamezhero.api.as2.GamezheroGlobal.getGameName()) + "&utm_source=") + com.gamezhero.api.as2.GamezheroGlobal.getDomain()) + "&utm_medium=more_free_games", "_blank");
}
}
Symbol 716 MovieClip [__Packages.com.gamezhero.api.as2.GamezheroGlobal] Frame 0
class com.gamezhero.api.as2.GamezheroGlobal
{
function GamezheroGlobal () {
}
static function setGameName(name) {
gameNameVar = name;
}
static function getGameName() {
return(gameNameVar);
}
static function setGameCode(id) {
gameCodeVar = id;
}
static function getGameCode(id) {
return(gameCodeVar);
}
static function getURL(link, target) {
getURL (link, target);
}
static function getDomain() {
if (host != "error") {
return(host);
}
try {
var _local2 = new com.gamezhero.api.as2.utils.URL(_root._url);
host = _local2.getHost();
if (((host == null) || (host == undefined)) || (host == "")) {
host = "local";
}
} catch(e:Error) {
host = "error";
}
return(host);
}
static function toText(arr) {
var _local3 = "";
var _local1 = 0;
while (_local1 < arr.length) {
_local3 = _local3 + String.fromCharCode(arr[_local1]);
_local1++;
}
return(_local3);
}
static function getBrowser() {
if (browser == "unset") {
if (flash.external.ExternalInterface.available) {
try {
var _local1 = String(flash.external.ExternalInterface.call("function (){ return navigator['userAgent']}"));
_local1 = _local1.toLowerCase();
if (_local1.indexOf("firefox") != -1) {
browser = FIREFOX;
} else if (_local1.indexOf("chrome") != -1) {
browser = CHROME;
} else if (_local1.indexOf("safari") != -1) {
browser = SAFARI;
} else if (_local1.indexOf("opera") != -1) {
browser = OPERA;
} else {
browser = IE;
}
} catch(e:Error) {
browser = IE;
}
} else {
browser = IE;
}
}
return(browser);
}
static function fromText(txt) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < txt.length) {
_local3.push(txt.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var gameNameVar = "unset";
static var gameCodeVar = "unset";
static var host = "error";
static var browser = "unset";
static var IE = "ie";
static var FIREFOX = "firefox";
static var OPERA = "opera";
static var SAFARI = "safari";
static var CHROME = "chrome";
}
Symbol 717 MovieClip [__Packages.com.gamezhero.api.as2.utils.URL] Frame 0
class com.gamezhero.api.as2.utils.URL
{
var url;
function URL (url) {
if (url.length == 0) {
throw new Error(("Invalid URL: '" + url) + "'];");
}
this.url = url;
query = ((url.indexOf("?") >= 0) ? (url.substring(url.indexOf("?") + 1)) : "");
if (query.indexOf("#") >= 0) {
query = query.substring(0, query.indexOf("#"));
}
var _local4 = url.indexOf("://");
if (_local4 >= 0) {
protocol = url.substring(0, _local4).toLowerCase();
host = url.substring(_local4 + 3);
if (host.indexOf("/") >= 0) {
host = host.substring(0, host.indexOf("/"));
}
var _local5 = host.indexOf("@");
if (_local5 >= 0) {
var _local3 = host.substring(0, _local5);
var _local6 = _local3.indexOf(":");
if (_local6 >= 0) {
username = _local3.substring(0, _local6);
password = _local3.substring(_local6 + 1);
} else {
username = _local3;
}
host = host.substring(_local5 + 1);
}
var _local7 = host.indexOf(":");
if (_local7 >= 0) {
port = Number(host.substring(_local7));
host = host.substring(0, _local7);
}
file = url.substring(_local4 + 3);
file = file.substring(file.indexOf("/"));
} else {
file = url;
}
if (file.indexOf("?") >= 0) {
file = file.substring(0, file.indexOf("?"));
}
var _local8 = url.indexOf("#");
if (_local8 >= 0) {
file = file.substring(0, _local8);
reference = url.substring(_local8 + 1);
} else {
reference = "";
}
path = file;
if (query.length > 0) {
file = file + ("?" + query);
}
if (reference.length > 0) {
file = file + ("#" + reference);
}
}
function getPort() {
return(port);
}
function getQuery() {
return(query);
}
function getProtocol() {
return(protocol);
}
function getHost() {
return(host);
}
function getUserName() {
return(username);
}
function getPassword() {
return(password);
}
function getFile() {
return(file);
}
function getReference() {
return(reference);
}
function getPath() {
return(path);
}
function getArgumentValue(key) {
var _local3 = getArgumentValues();
if (_local3.length < 1) {
return("");
}
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2][0] == key) {
return(_local3[_local2][1]);
}
_local2++;
}
return("");
}
function getArgumentValues() {
var _local5 = new Array();
var _local4 = query.split("&");
var _local3 = "";
if (_local4.length < 1) {
return(_local5);
}
var _local2 = 0;
while (_local2 < _local4.length) {
_local3 = _local4[_local2].split("=");
_local5[_local2] = new Array(_local3[0], ((_local3.length == 1) ? (_local3[0]) : (_local3[1])));
_local2++;
}
return(_local5);
}
function toString() {
return(url);
}
var port = -1;
var query = "";
var protocol = "";
var host = "";
var file = "";
var path = "";
var reference = "";
var username = "";
var password = "";
}
Symbol 718 MovieClip [__Packages.com.gamezhero.api.as2.GamePreloader] Frame 0
class com.gamezhero.api.as2.GamePreloader
{
var _par, _loader_preloader_skin, _bg, _indicator, _gamezhero_code_preloader, _recived_name_connection_preloader, _send_name_connection_preloader, _recive_localconnection_preloader, _send_localconnection_preloader, _in_target, parent, _scale_old, _align_old, _quality_old, _ads, _loader_preloader_skin_loader, _timer, continueAction;
function GamePreloader (par, iniObject) {
_par = par;
if (iniObject != null) {
_obj = iniObject;
}
if (_obj.debug != undefined) {
_debug_flag = _obj.debug;
} else {
_debug_flag = false;
}
_loader_preloader_skin = _par.createEmptyMovieClip("gamezhero_preloader", _par.getNextHighestDepth());
_bg = new com.gamezhero.api.as2.gui.Background(_loader_preloader_skin);
_indicator = new com.gamezhero.api.as2.gui.Indicator(_loader_preloader_skin);
_gamezhero_code_preloader = new Date().getTime();
_recived_name_connection_preloader = "_recived_gamezhero_preloader_" + _gamezhero_code_preloader;
_send_name_connection_preloader = "_send_gamezhero_preloader_" + _gamezhero_code_preloader;
iniLocalConnectionsPreloader();
iniEvents();
iniStage();
}
function iniLocalConnectionsPreloader() {
_recive_localconnection_preloader = new LocalConnection();
_recive_localconnection_preloader.parent = this;
_recive_localconnection_preloader.preloaderOk = function () {
this=this.parent;//parameter overwritten
this.parent;
this._send_localconnection_preloader.send(this._send_name_connection_preloader, com.gamezhero.api.as2.GamezheroGlobal.toText([105, 110, 105, 80, 114, 101, 108, 111, 97, 100, 101, 114]), this.getInfo());
this.beginScenario1();
};
_recive_localconnection_preloader.preloaderGetUrlAction = function (url, target) {
this=this.parent;//parameter overwritten
this.parent;
this.gotoActionIni(url, target);
};
_recive_localconnection_preloader.finishAction = function (val) {
this=this.parent;//parameter overwritten
this.parent;
this.action();
};
try {
_recive_localconnection_preloader.connect(_recived_name_connection_preloader);
} catch(e) {
beginScenario2();
}
_send_localconnection_preloader = new LocalConnection();
}
function gotoActionIni(url, target) {
_in_url = url;
_in_target = target;
gotoAction();
}
function gotoAction() {
if (parent != undefined) {
this=parent;//parameter overwritten
parent;
}
if (_in_url != "null") {
getURL (_in_url, _in_target);
_in_url = undefined;
}
}
function onErrorRecivePreloader() {
beginScenario2();
}
function onStatusRecivePreloader(infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
beginScenario2();
}
}
function onErrorSendPreloader() {
beginScenario2();
}
function onStatusSendPreloader(infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
beginScenario2();
}
}
function checkDomain(sendingDomain) {
if (sendingDomain == com.gamezhero.api.as2.GamezheroGlobal.toText([102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109])) {
return(true);
}
return(false);
}
function iniEvents() {
_obj_listener_resize = new Object();
_obj_listener_resize.parent = this;
_obj_listener_resize.onResize = resizeAction;
_recive_localconnection_preloader.onStatus = onStatusRecivePreloader;
_recive_localconnection_preloader.allowInsecureDomain = checkDomain;
_recive_localconnection_preloader.allowDomain = checkDomain;
_send_localconnection_preloader.onStatus = onStatusSendPreloader;
_send_localconnection_preloader.allowInsecureDomain = checkDomain;
_send_localconnection_preloader.allowDomain = checkDomain;
}
function clearEvents() {
Stage.removeListener(_obj_listener_resize);
delete _obj_listener_resize.onResize;
delete _recive_localconnection_preloader.onStatus;
delete _recive_localconnection_preloader.allowInsecureDomain;
delete _recive_localconnection_preloader.allowDomain;
_recive_localconnection_preloader.close();
delete _send_localconnection_preloader.onStatus;
delete _send_localconnection_preloader.allowInsecureDomain;
delete _send_localconnection_preloader.allowDomain;
}
function iniStageEvents() {
Stage.addListener(_obj_listener_resize);
resizeAction(this);
}
function clearStageEvents() {
Stage.removeListener(_obj_listener_resize);
}
function iniTopEvents() {
}
function clearTopEvents() {
}
function moveAction() {
}
function iniStage() {
getStageSettings();
iniStageSettings();
iniContextMenu();
if (_debug_flag == false) {
loadPreloaderSkin();
} else {
beginScenario2();
}
iniStageEvents();
}
function iniStageSettings() {
Stage.scaleMode = "noScale";
Stage.align = "TL";
_root._quality = "BEST";
}
function setStageSettings() {
Stage.scaleMode = _scale_old;
Stage.align = _align_old;
_root._quality = _quality_old;
}
function getStageSettings() {
_scale_old = Stage.scaleMode;
_align_old = Stage.align;
_quality_old = _root._quality;
}
function iniContextMenu() {
var _local5 = com.gamezhero.api.as2.GamezheroGlobal.getGameName();
var _local7 = com.gamezhero.api.as2.GamezheroGlobal.getDomain();
_obj.gamezhero_menu = new Object();
(_obj.gamezhero_menu["Free Online Games @ Gamezhero.com"] = ((("http://www.gamezhero.com/?utm_campaign=" + _local5) + "&utm_source=") + _local7) + "&utm_medium=context_menu");
(_obj.gamezhero_menu["Send To Friends"] = ((((("http://www.gamezhero.com/sendtofriends/" + _local5) + "-games.html?utm_campaign=") + _local5) + "&utm_source=") + _local7) + "&utm_medium=send_to_friends_context_menu");
(_obj.gamezhero_menu["Put This Game To Your Blog or Site"] = ((((("http://www.gamezhero.com/freewebsitegames/" + _local5) + "-games.html?utm_campaign=") + _local5) + "&utm_source=") + _local7) + "&utm_medium=free_web_site_games_context");
var _local4 = new ContextMenu();
_local4.builtInItems.forward_back = false;
_local4.builtInItems.loop = false;
_local4.builtInItems.play = false;
_local4.builtInItems.print = false;
_local4.builtInItems.rewind = false;
_local4.builtInItems.zoom = false;
_local4.builtInItems.save = false;
var _local3 = 0;
for (var _local6 in _obj.gamezhero_menu) {
_root["url" + _local3] = _obj.gamezhero_menu[_local6];
_local4.customItems.push(new ContextMenuItem(_local6, this["goto" + _local3]));
_local3++;
}
_root.menu = _local4;
}
function goto0() {
getURL (_root.url0, "_blank");
}
function goto1() {
getURL (_root.url1, "_blank");
}
function goto2() {
getURL (_root.url2, "_blank");
}
function loadPreloaderSkin() {
var _local2 = com.gamezhero.api.as2.GamezheroGlobal.toText([104, 116, 116, 112, 58, 47, 47, 102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109, 47, 112, 114, 101, 108, 111, 97, 100, 101, 114, 47, 112, 114, 101, 108, 111, 97, 100, 101, 114, 95, 118, 49, 46, 115, 119, 102, 63, 103, 97, 109, 101, 122, 104, 101, 114, 111, 67, 111, 100, 101, 61]) + String(_gamezhero_code_preloader);
_ads = _loader_preloader_skin.createEmptyMovieClip("ads", _loader_preloader_skin.getNextHighestDepth());
_loader_preloader_skin_loader = new MovieClipLoader();
_obj_listener_preloader = new Object();
_obj_listener_preloader.parent = this;
_obj_listener_preloader.onLoadInit = function (how) {
this=this.parent;//parameter overwritten
this.parent;
this.preloaderLoaderInit();
};
_obj_listener_preloader.onLoadError = function () {
this=this.parent;//parameter overwritten
this.parent;
this.beginScenario2();
};
_loader_preloader_skin_loader.addListener(_obj_listener_preloader);
_loader_preloader_skin_loader.loadClip(_local2, _ads);
}
function preloaderLoaderInit() {
try {
_send_localconnection_preloader.send(_send_name_connection_preloader, com.gamezhero.api.as2.GamezheroGlobal.toText([112, 114, 101, 108, 111, 97, 100, 101, 114, 73, 115, 79, 107]), null);
} catch(e) {
beginScenario2();
}
}
function getInfo() {
var _local2 = new com.gamezhero.api.as2.UserInfo(_par);
return(Object(_local2));
}
function clearTimers() {
clearInterval(_timer);
}
function beginScenario1() {
_preloader_active_flag = true;
clearTimers();
_timer = setInterval(this, "updatePreloader1", 100);
resizeAction(this);
}
function beginScenario2() {
_error_flag = true;
clearTimers();
_timer = setInterval(this, "updatePreloader2", 100);
}
function updatePreloader1() {
iniStageSettings();
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
_indicator.setVal("Loading...");
var _local3 = new Object();
_local3.width = Stage.width;
_local3.height = Stage.height;
_local3.loaded = _local4;
_send_localconnection_preloader.send(_send_name_connection_preloader, com.gamezhero.api.as2.GamezheroGlobal.toText([117, 112, 100, 97, 116, 101, 80, 114, 101, 108, 111, 97, 100, 101, 114]), _local3);
updateAfterEvent();
}
function updatePreloader2() {
iniStageSettings();
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
_indicator.setVal(Math.round(_local3 * 100) + " %");
if (_local3 >= 1) {
action();
}
var _local4 = new Object();
_local4.width = Stage.width;
_local4.height = Stage.height;
_local4.loaded = _local3;
updateAfterEvent();
}
function resizeAction(g) {
if (g != undefined) {
this=g;//parameter overwritten
} else {
this=parent;//parameter overwritten
parent;
}
var _local2 = new Object();
_local2.width = Stage.width;
_local2.height = Stage.height;
if ((_error_flag == false) && (_preloader_active_flag == true)) {
_send_localconnection_preloader.send(_send_name_connection_preloader, com.gamezhero.api.as2.GamezheroGlobal.toText([117, 112, 100, 97, 116, 101, 80, 111, 115]), _local2);
}
_indicator.update(_local2.width, _local2.height);
_bg.update(_local2.width, _local2.height);
}
function action() {
clearTimers();
_timer = setInterval(this, "actionDone", 100);
}
function actionDone() {
_loader_preloader_skin._alpha = _loader_preloader_skin._alpha - 100;
updateAfterEvent();
if (_loader_preloader_skin._alpha <= 100) {
_loader_preloader_skin._alpha = 0;
clearEvents();
clearStageEvents();
clearTopEvents();
clearTimers();
setStageSettings();
_indicator.remove();
_bg.remove();
_loader_preloader_skin.removeMovieClip();
continueAction.call(null);
}
}
var _error_flag = false;
var _preloader_active_flag = false;
var _obj = new Object();
var _urls = new Array();
static var finish = "PRELOAD_COMPLETE";
var _in_url = "null";
var _debug_flag = false;
var _obj_listener_preloader = new Object();
var _obj_listener_resize = new Object();
var _obj_listener_mouse = new Object();
}
Symbol 719 MovieClip [__Packages.com.gamezhero.api.as2.gui.Indicator] Frame 0
class com.gamezhero.api.as2.gui.Indicator
{
var _goal, _indicator, _info_text, _timer, _timer_2;
function Indicator (g) {
_goal = g;
ini();
iniEvents();
}
function ini() {
_indicator = _goal.createEmptyMovieClip("gamezhero_indicator", _goal.getNextHighestDepth());
_indicator._visible = false;
getBorder();
_arr = new Array();
var _local2 = 0;
while (_local2 < _n) {
var _local3 = getItem(_local2);
_local3._rotation = _dalpha * _local2;
_local3._alpha = 20;
_arr.push(_local3);
_local2++;
}
createInfoText();
}
function getItem(indx) {
var _local2 = _indicator.createEmptyMovieClip("gamezhero_indicator_" + indx, _indicator.getNextHighestDepth());
_local2.beginFill(16777215, 100);
_local2.lineStyle(0, 0, 0);
_local2.moveTo(32.3, -5.7);
_local2.curveTo(30, -3.3, 30, 0);
_local2.curveTo(30, 3.3, 32.3, 5.6);
_local2.curveTo(34.7, 8, 38.05, 8);
_local2.lineTo(57, 8);
_local2.curveTo(60.3, 8, 62.6, 5.6);
_local2.curveTo(65, 3.3, 65, 0);
_local2.curveTo(65, -3.3, 62.6, -5.7);
_local2.curveTo(60.3, -8, 57, -8);
_local2.lineTo(38.05, -8);
_local2.curveTo(34.7, -8, 32.3, -5.7);
_local2.endFill();
return(_local2);
}
function getBorder() {
var _local3 = 10;
var _local4 = 150;
var _local5 = 150;
var _local2 = _indicator.createEmptyMovieClip("gamezhero_indicator_bg", _indicator.getNextHighestDepth());
_local2.beginFill(3355443, 100);
_local2.moveTo(_local3, 0);
_local2.lineTo(_local4 - _local3, 0);
_local2.curveTo(_local4, 0, _local4, _local3);
_local2.lineTo(_local4, _local3);
_local2.lineTo(_local4, _local5 - _local3);
_local2.curveTo(_local4, _local5, _local4 - _local3, _local5);
_local2.lineTo(_local4 - _local3, _local5);
_local2.lineTo(_local3, _local5);
_local2.curveTo(0, _local5, 0, _local5 - _local3);
_local2.lineTo(0, _local5 - _local3);
_local2.lineTo(0, _local3);
_local2.curveTo(0, 0, _local3, 0);
_local2.lineTo(_local3, 0);
_local2.endFill();
_local2._x = (-_local4) / 2;
_local2._y = (-_local5) / 2;
return(_local2);
}
function createInfoText() {
var _local3 = _indicator.getNextHighestDepth();
_indicator.createTextField("infoText_txt", _local3, -50, -10, 100, 20);
_info_text = _indicator.infoText_txt;
_info_text.autoSize = "center";
var _local2 = new TextFormat();
_local2.color = 16777215 /* 0xFFFFFF */;
_local2.size = 11;
_local2.font = "Arial";
_info_text.setNewTextFormat(_local2);
}
function iniEvents() {
_timer = setInterval(this, "updateIndicator", 33.3333333333333);
updateIndicator();
_timer_2 = setInterval(this, "updateCurrent", 66.6666666666667);
updateCurrent();
}
function clearEvents() {
clearInterval(_timer);
clearInterval(_timer_2);
}
function remove() {
clearEvents();
_indicator.removeMovieClip();
}
function updateCurrent() {
_current++;
if (_current >= _arr.length) {
_current = 0;
}
_arr[_current]._alpha = 100;
updateAfterEvent();
}
function updateIndicator() {
var _local2 = 0;
while (_local2 < _n) {
_arr[_local2]._alpha = _arr[_local2]._alpha - 7;
if (_arr[_local2]._alpha <= 0) {
_arr[_local2]._alpha = 0;
}
_local2++;
}
updateAfterEvent();
}
function update(w, h) {
_indicator._visible = true;
_indicator._x = w / 2;
_indicator._y = h / 2;
}
function setSize(w, h) {
_indicator._visible = true;
_indicator._width = w;
_indicator._height = h;
}
function setVal(val) {
_info_text.text = val;
}
function setPos(x, y) {
_indicator._visible = true;
_indicator._x = x;
_indicator._y = y;
}
var _n = 10;
var _dalpha = 360 / com.gamezhero.api.as2.gui.Indicator.prototype._n;
var _arr = new Array();
var _current = 0;
}
Symbol 720 MovieClip [__Packages.com.gamezhero.api.as2.gui.Background] Frame 0
class com.gamezhero.api.as2.gui.Background
{
var _goal, _bg;
function Background (g) {
_goal = g;
ini();
iniEvents();
}
function ini() {
_bg = getBg();
}
function getBg() {
var _local2 = _goal.createEmptyMovieClip("gamezhero_bg", _goal.getNextHighestDepth());
_local2.beginFill(0, 100);
_local2.lineStyle(0, 0, 0);
_local2.moveTo(0, 0);
_local2.lineTo(1000, 0);
_local2.lineTo(1000, 1000);
_local2.lineTo(0, 1000);
_local2.lineTo(0, 0);
_local2.endFill();
return(_local2);
}
function iniEvents() {
}
function clearEvents() {
}
function remove() {
clearEvents();
_bg.removeMovieClip();
}
function update(w, h) {
_bg._x = 0;
_bg._y = 0;
_bg._width = w + 100;
_bg._height = h + 100;
}
}
Symbol 721 MovieClip [__Packages.com.gamezhero.api.as2.UserInfo] Frame 0
class com.gamezhero.api.as2.UserInfo
{
var ad_zone, api_version, flash_vars, capabilities, href, browser, referrer, game_name, flash_width, flash_height, flash_url, flash_domain;
function UserInfo (g) {
iniInfo();
}
function iniInfo() {
publisher = "gamezhero";
ad_zone = "preloader";
api_version = "AS2 - v3.0";
flash_vars = new Object();
capabilities = System.capabilities.serverString;
if (flash.external.ExternalInterface.available) {
try {
href = String(flash.external.ExternalInterface.call("function (){return document.location.href}"));
if (href == undefined) {
href = "-1";
}
} catch(e:Error) {
href = "-1";
}
try {
browser = String(flash.external.ExternalInterface.call("function (){var st = ''; for (i in navigator){ if (typeof(navigator[i])!='function'){ st+=i+'='+navigator[i]+'&'; }} return st}"));
if (browser == undefined) {
browser = "-1";
}
} catch(e:Error) {
browser = "-1";
}
try {
referrer = String(flash.external.ExternalInterface.call("function (){return document.referrer}"));
if (referrer == undefined) {
referrer = "-1";
}
} catch(e:Error) {
referrer = "-1";
}
} else {
href = "-1";
browser = "-1";
referrer = "-1";
}
game_name = com.gamezhero.api.as2.GamezheroGlobal.getGameName();
flash_width = Stage.width;
flash_height = Stage.height;
flash_url = _root._url;
flash_domain = com.gamezhero.api.as2.GamezheroGlobal.getDomain();
for (var _local3 in _level0) {
if (!((typeof(_level0[_local3]) == "movieclip") || (typeof(_level0[_local3]) == "function"))) {
flash_vars[_local3] = _level0[_local3];
}
}
}
var publisher = "gamezhero";
}
Symbol 722 MovieClip [__Packages.com.gamezhero.api.as2.SubmitArea] Frame 0
class com.gamezhero.api.as2.SubmitArea
{
var gamezheroCode_skin, gamezheroCode_engine, recivedNameConnection_skin, sendNameConnection_skin, recivedNameConnection_engine, sendNameConnection_engine, reciveLocalConnection_skin, sendLocalConnection_skin, reciveLocalConnection_engine, sendLocalConnection_engine, _loader, parent, continueAction, skin_mc, infoText, _indicator, submitAction, errorAction, skin, goal, engine_mc;
function SubmitArea (g, x_, y_, score_, skin_) {
System.security.allowDomain("www.gamezhero.com", "gamezhero.com", "files.gamezhero.com", "data.gamezhero.com", "*.gamezhero.com");
gamezheroCode_skin = new Date().getTime();
gamezheroCode_engine = gamezheroCode_skin;
recivedNameConnection_skin = "_send_gamezhero_skin_" + gamezheroCode_skin;
sendNameConnection_skin = "_recive_gamezhero_skin_" + gamezheroCode_skin;
recivedNameConnection_engine = "_send_gamezhero_engine_" + gamezheroCode_engine;
sendNameConnection_engine = "_recive_gamezhero_engine_" + gamezheroCode_engine;
iniEvents();
iniLocalConnectionsSkin();
iniLocalConnectionsEngine();
iniSubmitArea(g, x_, y_, score_, skin_);
}
function iniEvents() {
}
function clearEvents() {
}
function iniLocalConnectionsSkin() {
reciveLocalConnection_skin = new LocalConnection();
reciveLocalConnection_skin.parent = this;
reciveLocalConnection_skin.allowDomain = checkDomain;
reciveLocalConnection_skin.allowInsecureDomain = checkDomain;
reciveLocalConnection_skin.onStatus = function (infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
this=this.parent;//parameter overwritten
this.parent;
this.infoText.text = "Error Connections 'Recive From Skin'";
this.errorActionFoo();
}
};
reciveLocalConnection_skin.skinOk = function () {
this=this.parent;//parameter overwritten
this.parent;
this.loadEngine();
};
reciveLocalConnection_skin.submitAction = function (userName) {
this=this.parent;//parameter overwritten
this.parent;
this.sendLocalConnection_engine.send(this.sendNameConnection_engine, "sendScore", userName);
};
reciveLocalConnection_skin.errorInputActin = function () {
this=this.parent;//parameter overwritten
this.parent;
};
reciveLocalConnection_skin.continueAction = function () {
this=this.parent;//parameter overwritten
this.parent;
this.continueActionFoo();
};
reciveLocalConnection_skin.connect(recivedNameConnection_skin);
sendLocalConnection_skin = new LocalConnection();
sendLocalConnection_skin.parent = this;
sendLocalConnection_skin.allowInsecureDomain = checkDomain;
sendLocalConnection_skin.allowDomain = checkDomain;
sendLocalConnection_skin.onStatus = function (infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
this=this.parent;//parameter overwritten
this.parent;
this.infoText.text = "Error Connections 'Send To Skin'";
this.errorActionFoo();
}
};
}
function iniLocalConnectionsEngine() {
reciveLocalConnection_engine = new LocalConnection();
reciveLocalConnection_engine.allowDomain = checkDomain;
reciveLocalConnection_engine.allowInsecureDomain = checkDomain;
reciveLocalConnection_engine.onStatus = function (infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
this=this.parent;//parameter overwritten
this.parent;
this.infoText.text = "Error Connections 'Recive From Engine'";
this.errorActionFoo();
}
};
reciveLocalConnection_engine.parent = this;
reciveLocalConnection_engine.engineOk = function () {
this=this.parent;//parameter overwritten
this.parent;
this.sendLocalConnection_engine.send(this.sendNameConnection_engine, com.gamezhero.api.as2.GamezheroGlobal.toText([105, 110, 105, 69, 110, 103, 105, 110, 101]), this.skin);
this.infoText.text = "Engine Connections...";
};
reciveLocalConnection_engine.engineError = function () {
this=this.parent;//parameter overwritten
this.parent;
this.infoText.text = "Error Engine...";
};
reciveLocalConnection_engine.submitActionDone = function (obj) {
this=this.parent;//parameter overwritten
this.parent;
this.sendScore(obj);
};
reciveLocalConnection_engine.engineActivated = function () {
this=this.parent;//parameter overwritten
this.parent;
this.iniSkin();
};
reciveLocalConnection_engine.connect(recivedNameConnection_engine);
sendLocalConnection_engine = new LocalConnection();
sendLocalConnection_engine.parent = this;
sendLocalConnection_engine.allowDomain = checkDomain;
sendLocalConnection_engine.allowInsecureDomain = checkDomain;
sendLocalConnection_engine.onStatus = function (infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
this=this.parent;//parameter overwritten
this.parent;
this.infoText.text = "Error Connections 'Send To Engine'";
this.errorActionFoo();
}
};
}
function sendScore(obj) {
_loader = new LoadVars();
_loader_url = obj.url;
for (var _local3 in obj.vars) {
_loader[_local3] = obj.vars[_local3];
}
sendScoreAction();
}
function sendScoreAction() {
if (parent != undefined) {
this=parent;//parameter overwritten
parent;
}
if (_loader_url != "null") {
_loader.send(_loader_url, "_blank", "POST");
_loader_url = "null";
_loader = new LoadVars();
submitActionFoo();
}
}
function toText(arr) {
var _local3 = "";
var _local1 = 0;
while (_local1 < arr.length) {
_local3 = _local3 + String.fromCharCode(arr[_local1]);
_local1++;
}
return(_local3);
}
function checkDomain(sendingDomain) {
if (sendingDomain == com.gamezhero.api.as2.GamezheroGlobal.toText([102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109])) {
return(true);
}
return(false);
}
function continueActionFoo() {
continueAction.call(null);
skin_mc.removeMovieClip();
infoText.removeTextField();
_indicator.remove();
clearEvents();
}
function submitActionFoo() {
submitAction.call(null);
skin_mc.removeMovieClip();
infoText.removeTextField();
_indicator.remove();
clearEvents();
}
function errorActionFoo() {
errorAction.call(null);
skin_mc.removeMovieClip();
infoText.removeTextField();
_indicator.remove();
clearEvents();
}
function iniSkin() {
skin_mc._x = x_pos;
skin_mc._y = y_pos;
infoText.removeTextField();
_indicator.remove();
trace("iniSkin");
sendLocalConnection_skin.send(sendNameConnection_skin, com.gamezhero.api.as2.GamezheroGlobal.toText([105, 110, 105, 83, 107, 105, 110]), skin);
}
function loadEngine() {
infoText.text = "Loading Engine...";
var _local5 = toText([104, 116, 116, 112, 58, 47, 47, 102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109, 47, 115, 99, 111, 114, 101, 47, 101, 110, 103, 105, 110, 101, 47, 101, 110, 103, 105, 110, 101, 95, 118, 49, 46, 115, 119, 102, 63, 103, 97, 109, 101, 122, 104, 101, 114, 111, 67, 111, 100, 101, 61]) + gamezheroCode_engine;
var _local4 = goal.getNextHighestDepth();
goal.createEmptyMovieClip("engine_mc", _local4);
engine_mc = goal.engine_mc;
var _local2 = new Object();
_local2.parent = this;
_local2.onLoadInit = function () {
this=this.parent;//parameter overwritten
this.parent;
this.sendLocalConnection_engine.send(this.sendNameConnection_engine, com.gamezhero.api.as2.GamezheroGlobal.toText([101, 110, 103, 105, 110, 101, 73, 115, 79, 107]));
this.infoText.text = "Check Engine Connection...";
};
_local2.onLoadError = function () {
this=this.parent;//parameter overwritten
this.parent;
this.infoText.text = "Error Loading Engine...";
this.errorActionFoo();
};
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
_local3.loadClip(_local5, engine_mc);
}
function loadSkin() {
infoText.text = "Loading Skin...";
var _local5 = toText([104, 116, 116, 112, 58, 47, 47, 102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109, 47, 115, 99, 111, 114, 101, 47, 115, 107, 105, 110, 47, 115, 107, 105, 110, 95, 118, 49, 46, 115, 119, 102, 63, 103, 97, 109, 101, 122, 104, 101, 114, 111, 67, 111, 100, 101, 61]) + gamezheroCode_skin;
var _local4 = goal.getNextHighestDepth();
goal.createEmptyMovieClip("skin_mc", _local4);
skin_mc = goal.skin_mc;
var _local2 = new Object();
_local2.parent = this;
_local2.onLoadInit = function (target) {
this=this.parent;//parameter overwritten
this.parent;
this.sendLocalConnection_skin.send(this.sendNameConnection_skin, com.gamezhero.api.as2.GamezheroGlobal.toText([115, 107, 105, 110, 73, 115, 79, 107]));
this.infoText.text = "Check Skin Connection... ";
};
_local2.onLoadError = function () {
this=this.parent;//parameter overwritten
this.parent;
this.infoText.text = "Error Loading Skin...";
this.errorActionFoo();
};
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
_local3.loadClip(_local5, skin_mc);
}
function iniSubmitArea(g, x_, y_, score_, skin_) {
goal = g;
x_pos = x_;
y_pos = y_;
score_value = Math.abs(Math.round(score_));
skin = skin_;
skin.score = score_value;
skin.gameName = com.gamezhero.api.as2.GamezheroGlobal.getGameName();
skin.gameCode = com.gamezhero.api.as2.GamezheroGlobal.getGameCode();
skin.domain = com.gamezhero.api.as2.GamezheroGlobal.getDomain();
_indicator = new com.gamezhero.api.as2.gui.Indicator(goal);
_indicator.setSize(50, 50);
_indicator.setPos(30, 30);
infoText = createInfoText();
loadSkin();
}
function createInfoText() {
var _local4 = goal.getNextHighestDepth();
goal.createTextField("infoText_txt", _local4, 0, 0, 100, 100);
var _local2 = goal.infoText_txt;
_local2.autoSize = "left";
var _local3 = new TextFormat();
_local3.color = 16777215 /* 0xFFFFFF */;
_local3.size = 11;
_local3.font = "arial";
_local2.setNewTextFormat(_local3);
_local2._x = 10;
_local2._y = 10;
_local2._visible = false;
return(_local2);
}
var versionGame = "2.0";
var score_value = 0;
var x_pos = 0;
var y_pos = 0;
var _obj_listener_mouse = new Object();
var _loader_url = "null";
}
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
play();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 3
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 3
stop();
Symbol 490 MovieClip Frame 4
stop();
Symbol 490 MovieClip Frame 5
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 2
stop();
Symbol 493 MovieClip Frame 3
stop();
Symbol 493 MovieClip Frame 4
stop();
Symbol 493 MovieClip Frame 5
stop();
Symbol 493 MovieClip Frame 6
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 3
stop();
Symbol 514 MovieClip Frame 4
stop();
Symbol 514 MovieClip Frame 5
stop();
Symbol 514 MovieClip Frame 6
stop();
Symbol 514 MovieClip Frame 7
stop();
Symbol 514 MovieClip Frame 8
stop();
Symbol 514 MovieClip Frame 9
stop();
Symbol 514 MovieClip Frame 10
stop();
Symbol 515 MovieClip Frame 1
stop();
setXP = function (n) {
var _local1 = Math.floor(n / 1000);
var _local2 = Math.floor((n - (_local1 * 1000)) / 100);
var _local4 = Math.floor(((n - (_local1 * 1000)) - (_local2 * 100)) / 10);
var _local5 = Math.floor(((n - (_local1 * 1000)) - (_local2 * 100)) - (_local4 * 10));
thoth_mc.gotoAndStop(_local1 + 1);
hunth_mc.gotoAndStop(_local2 + 1);
tenth_mc.gotoAndStop(_local4 + 1);
oneth_mc.gotoAndStop(_local5 + 1);
};
Symbol 525 Button
on (press) {
if (r.s.soundOn) {
r.s.soundOff();
} else {
r.s.turnSoundOn();
}
}
Symbol 526 Button
on (press) {
if (r.s.musicOn) {
r.s.stopBGMusic();
} else {
r.s.turnMusicOn();
}
}
Symbol 535 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 1
this.slide = function (arg) {
this.hpbar.gotoAndPlay("hit");
this.onEnterFrame = function () {
this.dArg = arg - this.mc_mask._xscale;
this.mc_mask._xscale = this.mc_mask._xscale + (this.dArg / 4);
if ((this.dArg > -0.1) && (this.dArg < 0.1)) {
delete this.onEnterFrame;
}
};
};
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 549 MovieClip Frame 3
stop();
Symbol 549 MovieClip Frame 4
stop();
Symbol 549 MovieClip Frame 5
stop();
Symbol 549 MovieClip Frame 6
stop();
Symbol 549 MovieClip Frame 7
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 3
stop();
Symbol 579 MovieClip Frame 4
stop();
Symbol 579 MovieClip Frame 5
stop();
Symbol 579 MovieClip Frame 6
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 2
stop();
Symbol 587 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 2
stop();
Selection.setFocus(txt_password);
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 2
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 2
stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 2
stop();
Symbol 623 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 2
this._show = true;
this.play();
Symbol 623 MovieClip Frame 8
stop();
Symbol 623 MovieClip Frame 9
this._show = false;
play();
Symbol 624 MovieClip Frame 1
mc_menu.onPress = function () {
if (!this._parent.infobox_mc._show) {
this._parent.infobox_mc.gotoAndPlay("show");
}
};
this.txt_build.text = r.buildString;
gamezheroBtn2.onRelease = function () {
trace("zorro");
r.linkZorro();
};
publishBtn.onRelease = function () {
trace("pub");
r.linkPub();
};
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 2
play();
Symbol 630 MovieClip Frame 30
stop();
Symbol 632 MovieClip Frame 13
stop();
Symbol 632 MovieClip Frame 27
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 2
play();
Symbol 633 MovieClip Frame 27
stop();
Symbol 633 MovieClip Frame 28
play();
m18.gotoAndPlay("out");
Symbol 633 MovieClip Frame 29
m17.gotoAndPlay("out");
Symbol 633 MovieClip Frame 30
m16.gotoAndPlay("out");
Symbol 633 MovieClip Frame 31
m15.gotoAndPlay("out");
Symbol 633 MovieClip Frame 32
m14.gotoAndPlay("out");
Symbol 633 MovieClip Frame 33
m13.gotoAndPlay("out");
Symbol 633 MovieClip Frame 34
m12.gotoAndPlay("out");
Symbol 633 MovieClip Frame 35
m11.gotoAndPlay("out");
Symbol 633 MovieClip Frame 36
m10.gotoAndPlay("out");
Symbol 633 MovieClip Frame 37
m9.gotoAndPlay("out");
Symbol 633 MovieClip Frame 38
m8.gotoAndPlay("out");
Symbol 633 MovieClip Frame 39
m7.gotoAndPlay("out");
Symbol 633 MovieClip Frame 40
m6.gotoAndPlay("out");
Symbol 633 MovieClip Frame 41
m5.gotoAndPlay("out");
Symbol 633 MovieClip Frame 42
m4.gotoAndPlay("out");
Symbol 633 MovieClip Frame 43
m3.gotoAndPlay("out");
Symbol 633 MovieClip Frame 44
m2.gotoAndPlay("out");
Symbol 633 MovieClip Frame 45
m1.gotoAndPlay("out");
Symbol 633 MovieClip Frame 51
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 5
play();
if (r.nLevel == 0) {
password_indicator._visible = false;
} else {
password_indicator._visible = true;
password_indicator.password_txt.text = r.levelPasswords[r.nLevel];
password_indicator.password_txt2.text = r.levelPasswords[r.nLevel];
}
Symbol 653 MovieClip Frame 37
r.submitScore(r.oHero.XP);
stop();
Symbol 668 MovieClip Frame 57
r.submitScore(r.oHero.XP);
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 5
stop();
Symbol 670 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 2
play();
this.mc_maskTrans.gotoAndStop("maskIn");
if (!r.oWorld.gameWon) {
if (r.oWorld.gameOn) {
this.mc_gameOverScreen.gotoAndStop("Hide");
this.mc_endGameScreen.gotoAndStop("Hide");
this.mc_indicator._x = r.indicatorArray[r.nLevel][0];
this.mc_indicator._y = r.indicatorArray[r.nLevel][1];
} else {
this.mc_gameOverScreen.gotoAndPlay("Show");
}
} else {
this.mc_endGameScreen.gotoAndStop("Show");
}
if (r.nLevel == 0) {
mc_indicator.password_indicator._visible = false;
} else {
mc_indicator.password_indicator._visible = true;
mc_indicator.password_indicator.password_txt.text = r.levelPasswords[r.nLevel];
mc_indicator.password_indicator.password_txt2.text = r.levelPasswords[r.nLevel];
}
Symbol 670 MovieClip Frame 36
stop();
Key.removeListener(menuListener);
var keyListener = new Object();
keyListener.onKeyUp = function () {
var _local1 = Key.getAscii();
if ((_local1 == 83) or (_local1 == 115)) {
r.mc_display.gotoAndPlay("fadeout");
Key.removeListener(keyListener);
if (!r.oWorld.gameWon) {
if (r.oWorld.gameOn) {
r.oWorld.drawNewLevel(r.currentLevel);
r.s.fadeInMusic("bg");
r.s.playSound(r.s.snd_levelStart);
} else {
r.oWorld.backToMainMenu();
}
} else {
r.oWorld.backToMainMenu();
}
}
};
trace(r.oWorld.gameWon);
if (r.oWorld.gameOn) {
Key.addListener(keyListener);
}
Symbol 670 MovieClip Frame 37
play();
this.mc_maskTrans.gotoAndStop("maskOut");
if (r.nLevel == 0) {
mc_indicator.password_indicator._visible = false;
} else {
mc_indicator.password_indicator._visible = true;
mc_indicator.password_indicator.password_txt.text = r.levelPasswords[r.nLevel];
mc_indicator.password_indicator.password_txt2.text = r.levelPasswords[r.nLevel];
}
if (this.gameWon) {
s.fadeInMusic("menu");
}
Symbol 670 MovieClip Frame 74
stop();
Symbol 707 MovieClip Frame 242
stop();
_parent.play();
Symbol 711 MovieClip Frame 531
stop();
Symbol 714 MovieClip Frame 1
stop();
Symbol 714 MovieClip Frame 5
stop();