Frame 1
function cargando() {
var _local2;
var _local4;
var _local3;
_local3 = _root.getBytesTotal();
_local4 = _root.getBytesLoaded();
_local2 = Math.floor((_local4 * 100) / _local3);
porcentaje_txt.text = _local2 + " %";
barra_mc.gotoAndStop(_local2);
loader.gotoAndStop(_local2);
if (_local4 == _local3) {
clearInterval(hiloPrecarga);
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if ((((((((domain != "armorgames.com") && (domain != "dropboxusercontent.com")) && (domain != "*.armorgames.com")) && (domain != "games.armorgames.com")) && (domain != "preview.armorgames.com")) && (domain != "cache.armorgames.com")) && (domain != "cdn.armorgames.com")) && (domain != "gamemedia.armorgames.com")) {
if (_root.years > 2013) {
aviso = true;
}
if (_root.years == 2013) {
if (_root.dates > 7) {
aviso = true;
}
}
if (aviso == true) {
mochi.as2.MochiAd.showPreGameAd({id:"b7afe765eb388d6d", res:"600x400", background:16448221, color:14100520, outline:0, no_bg:false});
} else {
_root.play();
}
} else {
_root.play();
}
}
}
prueba = false;
_root.thedate = new Date();
_root.dayt = _root.thedate.getDate();
_root.dates = _root.thedate.getUTCMonth();
_root.years = _root.thedate.getUTCFullYear();
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
_root.dominio = domain;
};
_root.grabar = false;
_root.loadmusica = false;
if (prueba == true) {
_root.vidas = 9;
_root.salto = 26;
_root.balas = 50;
_root.MaxVidas = 9;
_root.pistola = 1;
_root.balas = 500;
_root.snorkel1 = true;
} else {
_root.vidas = 5;
_root.GPS = false;
_root.pistola = 0;
_root.pistola1 = false;
_root.arma1 = false;
_root.MaxVidas = 2;
_root.salto = 5.8;
_root.snorkel1 = false;
}
_root.heartlost = 0;
_root.tutorial1 = false;
_root.infolevel1 = false;
_root.infolevel2 = false;
_root.arma = 1;
_root.PCEXP = 0;
_root.rango = 0;
_root.expetotal = 0;
_root.expe = 0;
pre._visible = false;
_root.balas = 50;
_root.puntos = 0;
stop();
_root.KILLS = 0;
_root.salpicaagua = false;
trace("test");
_root.ticks = 0;
_root.lang = "en";
_root.volumen = 100;
_root.sfxstat = true;
_root.mutedmusic = false;
_root._quality = "BEST";
_root.scores = 0;
_root.BOSSMODE = false;
aviso = false;
var hiloPrecarga = setInterval(cargando, 1);
_root.r2 = true;
_root.r3 = true;
_root.r4 = true;
_root.r5 = true;
_root.r6 = true;
_root.r7 = true;
_root.r8 = true;
_root.r9 = true;
_root.r10 = true;
_root.r11 = true;
_root.r12 = true;
_root.r13 = true;
_root.r14 = true;
_root.r15 = true;
_root.r16 = true;
_root.r17 = true;
_root.r18 = true;
_root.r19 = true;
_root.r20 = true;
_root.r21 = true;
_root.r22 = true;
_root.r23 = true;
_root.r24 = true;
_root.r25 = true;
_root.r26 = true;
_root.r27 = true;
_root.r28 = true;
_root.r29 = true;
_root.r30 = true;
_root.r31 = true;
_root.r32 = true;
_root.r33 = true;
_root.r34 = true;
_root.r35 = true;
_root.r36 = true;
_root.r37 = true;
_root.r38 = true;
_root.r39 = true;
_root.r40 = true;
_root.r41 = true;
_root.r42 = true;
_root.r43 = true;
_root.r44 = true;
_root.r45 = true;
_root.r46 = true;
_root.r47 = true;
_root.r48 = true;
_root.r49 = true;
_root.r50 = true;
_root.r51 = true;
_root.r52 = true;
_root.r53 = true;
_root.r54 = true;
_root.r55 = true;
_root.r56 = true;
_root.r57 = true;
_root.r58 = true;
_root.r59 = true;
_root.r60 = true;
_root.r61 = true;
_root.r62 = true;
_root.r63 = true;
_root.r64 = true;
_root.r65 = true;
_root.r66 = true;
_root.r67 = true;
_root.r68 = true;
_root.r69 = true;
_root.r70 = true;
_root.r71 = true;
_root.r72 = true;
_root.r73 = true;
_root.r74 = true;
_root.r75 = true;
_root.r76 = true;
_root.r77 = true;
_root.r78 = true;
_root.r79 = true;
_root.r80 = true;
_root.r81 = true;
_root.r82 = true;
_root.r83 = true;
_root.r84 = true;
_root.r85 = true;
_root.r86 = true;
_root.r87 = true;
_root.r88 = true;
_root.r89 = true;
_root.r90 = true;
_root.r91 = true;
_root.r92 = true;
_root.r93 = true;
_root.r94 = true;
_root.r95 = true;
_root.r96 = true;
_root.r97 = true;
_root.r98 = true;
_root.r99 = true;
_root.r100 = true;
_root.r101 = true;
_root.r102 = true;
_root.r103 = true;
_root.r104 = true;
_root.r105 = true;
_root.r106 = true;
_root.r107 = true;
_root.r108 = true;
_root.r109 = true;
_root.r110 = true;
lg.onRollOver = function () {
lg.gotoAndStop(2);
};
lg.onRollOut = function () {
lg.gotoAndStop(1);
};
ag.onRollOver = function () {
ag.gotoAndStop(2);
};
ag.onRollOut = function () {
ag.gotoAndStop(1);
};
lgtw.onRollOver = function () {
lgtw.gotoAndStop(2);
};
lgtw.onRollOut = function () {
lgtw.gotoAndStop(1);
};
agtw.onRollOver = function () {
agtw.gotoAndStop(2);
};
agtw.onRollOut = function () {
agtw.gotoAndStop(1);
};
lgfb.onRollOver = function () {
lgfb.gotoAndStop(2);
};
lgfb.onRollOut = function () {
lgfb.gotoAndStop(1);
};
agfb.onRollOver = function () {
agfb.gotoAndStop(2);
};
agfb.onRollOut = function () {
agfb.gotoAndStop(1);
};
Instance of Symbol 66 MovieClip "ag" in Frame 1
on (release) {
getURL ("http://armor.ag/MoreGames", _blank);
}
Instance of Symbol 72 MovieClip "lg" in Frame 1
on (release) {
getURL ("http://www.lartargames.com", _blank);
}
Instance of Symbol 81 MovieClip "agfb" in Frame 1
on (release) {
getURL ("https://www.facebook.com/ArmorGames", _blank);
}
Instance of Symbol 83 MovieClip "agtw" in Frame 1
on (release) {
getURL ("https://twitter.com/ArmorGames", _blank);
}
Instance of Symbol 81 MovieClip "lgfb" in Frame 1
on (release) {
getURL ("https://www.facebook.com/pages/Lartargamescom/188722906339", _blank);
}
Instance of Symbol 83 MovieClip "lgtw" in Frame 1
on (release) {
getURL ("https://twitter.com/lartargames", _blank);
}
Frame 2
function playSFXb(sfx, v) {
if (_root.sfxstat == true) {
if (sfxPlaying[sfx] || (MUTE)) {
return(undefined);
}
sfx_id++;
if (sfx_id > 100) {
sfx_id = 0;
}
var _local2 = new Sound(_sfxcont.createEmptyMovieClip("_sfx" + sfx_id, 0));
_local2.attachSound("sfx_" + sfx);
_local2.setVolume(60);
_local2.start();
sfxPlaying[sfx] = true;
} else {
return(undefined);
}
}
_root._quality = "BEST";
stop();
Instance of Symbol 588 MovieClip in Frame 2
on (release) {
_root.playSFXb("boton");
_root.lang = "en";
_root.gotoAndStop("TITLE");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 591 MovieClip in Frame 2
on (release) {
_root.playSFXb("boton");
_root.lang = "es";
_root.gotoAndStop("TITLE");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 3
function DrawMap(special) {
if (_root.bg[2] == 0) {
_root.fondo.gotoAndStop(8);
}
if (_root.bg[2] == 3) {
_root.fondo.gotoAndStop(2);
}
if (_root.bg[2] == 1) {
_root.fondo.gotoAndStop(3);
}
if (_root.bg[2] == 4) {
_root.fondo.gotoAndStop(4);
}
if (_root.bg[2] == 5) {
_root.fondo.gotoAndStop(5);
}
if (_root.bg[2] == 6) {
_root.fondo.gotoAndStop(6);
}
if (_root.bg[2] == 7) {
_root.fondo.gotoAndStop(7);
}
if (EDITOR_MODE) {
gotoAndStop ("editor");
E_DrawMap();
return(undefined);
}
if (special.music) {
playMusic(special.music);
} else if (!special.MUTE) {
}
if (CLEAR[area] == null) {
CLEAR[area] = new Array(BADDIES.length);
}
RefreshGUI();
for (var _local6 in cont) {
for (var _local19 in cont[_local6]) {
if (_local19 != "PC") {
cont[_local6][_local19].removeMovieClip();
}
}
}
cont.FG.createEmptyMovieClip("H2O", 10);
PARALLAX1._x = 0;
PARALLAX2._x = 0;
PARALLAX3._x = 0;
TSBMP = flash.display.BitmapData.loadBitmap(tileset);
WATERBMP = flash.display.BitmapData.loadBitmap("water");
_global.WALLS = [];
_global.WATER = [];
AQUEOUS = _water != null;
var y = 0;
while (y < map.length) {
WALLS[y] = new Array(map[y].length);
WATER[y] = new Array(map[y].length);
var x = 0;
while (x < map[0].length) {
WALLS[y][x] = map[y][x];
WATER[y][x] = _water[y][x];
x++;
}
y++;
}
var _local20 = (STAGEW / TILESIZE) * OFFSET[1];
var _local24 = (STAGEH / TILESIZE) * OFFSET[2];
var x = (-2 + _local20);
while (x < (((STAGEW / TILESIZE) + 2) + _local20)) {
DrawTileColumn(x);
x++;
}
var _local17 = flash.display.BitmapData.loadBitmap("bg");
var _local14 = -1;
while (_local14 <= 3) {
var _local7 = PARALLAX1.createEmptyMovieClip("panel" + _local14, 100 + _local14);
_local7._x = 200 * _local14;
_local7.bmp = new flash.display.BitmapData(100, 200, true);
_local7.bmp.copyPixels(_local17, new flash.geom.Rectangle(100 * bg[0], 0, 100, 200), new flash.geom.Point(0, 0));
_local7.attachBitmap(_local7.bmp, 100);
_local7._width = _local7._width * 2;
_local7._height = _local7._height * 2;
_local14++;
}
_local17 = flash.display.BitmapData.loadBitmap("bg2");
_local14 = -1;
while (_local14 <= 6) {
var _local7 = PARALLAX2.createEmptyMovieClip("panel" + _local14, 100 + _local14);
_local7._x = 120 * _local14;
_local7.bmp = new flash.display.BitmapData(60, 400, true);
_local7.bmp.copyPixels(_local17, new flash.geom.Rectangle(60 * bg[1], 0, 60, 400), new flash.geom.Point(0, 0));
_local7.attachBitmap(_local7.bmp, 100);
_local7._width = _local7._width * 2;
_local7._height = _local7._height * 2;
_local14++;
}
PARALLAX1.scrolled = 0;
PARALLAX1.MAX = [4, 3, 1000, 200];
PARALLAX2.scrolled = 0;
PARALLAX2.MAX = [6, 5, 840, 120];
PARALLAX3.scrolled = 0;
PARALLAX3.MAX = [6, 5, 840, 120];
PARALLAX1.Scroll = (PARALLAX2.Scroll = (PARALLAX3.Scroll = function (x) {
if (x == 0) {
return(undefined);
}
this._x = this._x + x;
this.scrolled = this.scrolled + x;
if (this.scrolled > this.MAX[3]) {
this.scrolled = this.scrolled - this.MAX[3];
var _local2 = this["panel" + this.MAX[1]];
_local2._x = _local2._x - this.MAX[2];
this.MAX[1] = this.MAX[1] - 1;
_local2._name = "panel" + (this.MAX[1] - this.MAX[0]);
} else if (this.scrolled < (-this.MAX[3])) {
this.scrolled = this.scrolled + this.MAX[3];
var _local2 = this["panel" + (this.MAX[1] - this.MAX[0])];
_local2._x = _local2._x + this.MAX[2];
this.MAX[1] = this.MAX[1] + 1;
_local2._name = "panel" + this.MAX[1];
}
}));
if (PC == null) {
PC = cont.LIFE.attachMovie("anibal", "PC", 2000);
PC._x = CHECKPOINT[1] * TILESIZE;
PC._y = (CHECKPOINT[2] * TILESIZE) - 12;
}
PC.scrolled = [0, 0];
PC.pos = [-2 + _local20, -2 + _local24];
var _local9 = 0;
while (_local9 < BADDIES.length) {
if (CLEAR[area][_local9]) {
} else {
var _local13 = cont.LIFE.attachMovie(((BADDIES[_local9].type.substr(0, 4) == "boss") ? (BADDIES[_local9].type + "mc") : "sprite"), "BADDIE" + _local9, 1000 + _local9);
_local13.BID = _local9;
_local13.props = BADDIES[_local9];
_local13._x = (BADDIES[_local9].x + 0.5) * TILESIZE;
_local13._y = BADDIES[_local9].y * TILESIZE;
}
_local9++;
}
DOORS = {};
SIGNS = {};
GUSTS = {};
MOVING = {};
CHECKPOINTS = {};
MAP_SWITCHES = {};
DOOR_BMP = flash.display.BitmapData.loadBitmap("door");
var _local6 = 0;
while (_local6 < OBJECTS.length) {
var _local4 = OBJECTS[_local6];
if (_local4.type == "bluedrak") {
var _local12 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local12.attachBitmap(flash.display.BitmapData.loadBitmap("bluedrak"), 1);
_local12._width = _local12._width * 2;
_local12._height = _local12._height * 2;
_local12._x = _local4.x * TILESIZE;
_local12._y = _local4.y * TILESIZE;
} else if (_local4.type == "door2") {
var _local5 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local5.createEmptyMovieClip("box", 10);
_local5.box._y = -20;
_local5.bmp = new flash.display.BitmapData(20, 40, true);
_local5.bmp.copyPixels(DOOR_BMP, new flash.geom.Rectangle(40, 80, 20, 40), new flash.geom.Point(0, 0));
_local5.box.attachBitmap(_local5.bmp, 1);
_local5._width = _local5._width * 2;
_local5._height = _local5._height * 2;
_local5._x = _local4.x * TILESIZE;
_local5._y = _local4.y * TILESIZE;
_local5.open = false;
} else if (_local4.type == "door") {
var _local5 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local5.createEmptyMovieClip("box", 10);
_local5.box._y = -20;
_local5.bmp = new flash.display.BitmapData(20, 40, true);
_local5.bmp.copyPixels(DOOR_BMP, new flash.geom.Rectangle(0, 0, 20, 40), new flash.geom.Point(0, 0));
_local5.box.attachBitmap(_local5.bmp, 1);
_local5._width = _local5._width * 2;
_local5._height = _local5._height * 2;
_local5._x = _local4.x * TILESIZE;
_local5._y = _local4.y * TILESIZE;
_local5.open = true;
_local5.Close = function (mod) {
this.count = 0;
this.onEnterFrame = function () {
this.bmp.copyPixels(_root.DOOR_BMP, new flash.geom.Rectangle(20 * Math.floor(this.count / 3), 40 * _root.CHAPTER, 20, 40), new flash.geom.Point(0, 0));
this.count++;
if (this.count >= 9) {
this.onEnterFrame = false;
}
};
};
_local5.Open = function (mod) {
this.count = 9;
this.onEnterFrame = function () {
this.bmp.copyPixels(_root.DOOR_BMP, new flash.geom.Rectangle(20 * Math.floor(this.count / 3), 40 * _root.CHAPTER, 20, 40), new flash.geom.Point(0, 0));
this.count--;
if (this.count <= 0) {
this.bmp.copyPixels(_root.DOOR_BMP, new flash.geom.Rectangle(0, 0, 20, 40), new flash.geom.Point(0, 0));
this.onEnterFrame = false;
}
};
};
DOORS[(("D_" + _local4.x) + "_") + _local4.y] = _local4.dest;
} else if (_local4.type == "gust") {
GUSTS[(("D_" + _local4.x) + "_") + _local4.y] = _local4.dir;
} else if (_local4.type == "moving") {
var _local8 = cont.ETC.createEmptyMovieClip("MOVING" + _local6, _local6);
_local8.bmp = new flash.display.BitmapData(20, 20, true);
_local8.bmp.copyPixels((_local8.sheet = flash.display.BitmapData.loadBitmap("moving")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local8.attachBitmap(_local8.bmp, 10);
_local8._width = (_local8._height = TILESIZE);
_local8._x = _local4.x * TILESIZE;
_local8._y = _local4.y * TILESIZE;
_local8.c = 0;
MOVING["M" + _local6] = _local8;
(_local8.wait = 0);
(_local8.pos = 0);
_local8.moves = _local4.moves;
_local8.touch = _local4.touch;
_local8.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if ((this.dontloop || (this.touch)) && (!(this.moving[0] || this.moving[1]))) {
this.c++;
if (this.c > 20) {
this.c = 0;
}
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle(20 * (((this.c >= 10) || this.dontloop) ? 1 : 0), 0, 20, 20), new flash.geom.Point(0, 0));
} else {
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle(20 * (this.wait ? 1 : 0), 0, 20, 20), new flash.geom.Point(0, 0));
}
if (this.wait > 0) {
this.wait--;
return(undefined);
}
if (this.moving[0] || (this.moving[1])) {
var _local3 = [2 * ((this.moving[0] == 0) ? 0 : (this.moving[0] / Math.abs(this.moving[0]))), 2 * ((this.moving[1] == 0) ? 0 : (this.moving[1] / Math.abs(this.moving[1])))];
this._x = this._x + _local3[0];
this._y = this._y + _local3[1];
this.moving[0] = this.moving[0] - _local3[0];
this.moving[1] = this.moving[1] - _local3[1];
if ((_root.PC.StuckTo == this) && (!_root.PC.dying)) {
_root.PC.Move(_local3[0], _local3[1]);
}
if ((this.moving[0] == 0) && (this.moving[1] == 0)) {
this.wait = 40;
}
} else {
if (this.moves == null) {
return(undefined);
}
this.moving = [this.moves[this.pos][0] * TILESIZE, this.moves[this.pos][1] * TILESIZE];
this.pos++;
if ((this.pos == this.moves.length) && (!this.dontloop)) {
this.pos = 0;
}
}
};
} else if (_local4.type == "checkpoint") {
var _local18 = cont.ETC.createEmptyMovieClip("MOVING" + _local6, _local6);
_local18.checked = (CHECKPOINT[1] == _local4.x) && (CHECKPOINT[2] == _local4.y);
_local18.bmp1 = new flash.display.BitmapData(20, 40, true);
_local18.bmp2 = flash.display.BitmapData.loadBitmap("checkpoint");
_local18.MODE = ((_root.DIFFICULTY == 3) ? 0 : (int(_local4.mode)));
_local18.bmp1.copyPixels(_local18.bmp2, new flash.geom.Rectangle(int(_local18.checked) * 40, int(_local18.MODE) * 40, 40, 40), new flash.geom.Point(0, 0));
_local18.attachBitmap(_local18.bmp1, 0);
_local18._width = _local18._width * 2;
_local18._height = _local18._height * 2;
_local18._x = _local4.x * TILESIZE;
_local18._y = _local4.y * TILESIZE;
_local18.PLACE = [area, _local4.x, _local4.y, {}, {}, {}, 0];
CHECKPOINTS[(("C_" + _local4.x) + "_") + _local4.y] = _local18;
_local18.f = [0, 0];
_local18.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (this.checked) {
if (this.f[0] == 0) {
this.bmp1.copyPixels(this.bmp2, new flash.geom.Rectangle(20 + (this.f[1] * 20), 40 * this.MODE, 20, 40), new flash.geom.Point(0, 0));
this.f[1] = !this.f[1];
this.f[0] = 10;
}
this.f[0]--;
} else if (this.hitTest(_root.PC)) {
this.Check();
}
};
_local18.Check = function () {
this.checked = true;
this.PLACE[3] = {};
for (var _local5 in _root.SWITCHES) {
this.PLACE[3][_local5] = _root.SWITCHES[_local5];
}
this.PLACE[4] = Clone(_root.CLEAR);
this.PLACE[5] = Clone(_root.GOT_RELICS);
this.PLACE[6] = _root.RELICS;
_root.CHECKPOINT = this.PLACE;
if (this.MODE == 1) {
_root.STARTPOINT = this.PLACE;
}
_root.playSFX("checkpoint1");
if (_root.area.substr(2, 1) == "T") {
return(undefined);
}
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.checkpoint = true;
_local6.flush();
_root.SO.data.CAPSULE[_root.CHAPTER] = {};
var _local3 = 0;
while (_local3 < _root.SAVE_CAPSULE.length) {
_root.grabar = true;
var _local4 = _root.SAVE_CAPSULE[_local3];
_root.SO.data.CAPSULE[_root.CHAPTER][_local4] = Omniclone(_root[_local4]);
_local3++;
}
_root.SO.flush();
};
} else if (_local4.type == "K_z") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_z"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "K_x") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_x"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "K_c") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_c"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "K_space") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_space"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "K_up") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_up"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "K_left") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_left"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "K_down") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_down"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "K_right") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("K_right"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "signpost") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("signpost"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "signpostUP") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("signUP"), 0);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "signpostDOWN") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("signDOWN"), 1);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "signpostLEFT") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("signLEFT"), 2);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (_local4.type == "signpostRIGHT") {
var _local10 = cont.ETC.createEmptyMovieClip("O" + _local6, _local6);
_local10.createEmptyMovieClip("box", 10);
_local10.box.attachBitmap(flash.display.BitmapData.loadBitmap("signRIGHT"), 3);
_local10._width = _local10._width * 2;
_local10._height = _local10._height * 2;
_local10._x = _local4.x * TILESIZE;
_local10._y = _local4.y * TILESIZE;
SIGNS[(("S_" + _local4.x) + "_") + _local4.y] = _local4.words;
} else if (((_local4.type == "relic") && (!_root.GOT_RELICS["R" + _local4.id])) || ((_local4.type == "tablet") && (!_root.GOT_RELICS["TABLET_" + _local4.id]))) {
MakeRelic(cont.ETC.createEmptyMovieClip("O" + _local6, _local6), _local4);
} else if (_local4.type == "forceblockT") {
var _local5 = cont.ETC.createEmptyMovieClip("FORCEBLOCK" + _local6, _local6);
_local5.bmp = new flash.display.BitmapData(20, 20, true);
_local5.bmp.copyPixels((_local5.sheet = flash.display.BitmapData.loadBitmap("forceblock1")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local5.attachBitmap(_local5.bmp, 10);
_local5._width = (_local5._height = TILESIZE);
_local5._x = TILESIZE * _local4.x;
_local5._y = TILESIZE * _local4.y;
for (var _local19 in _local4) {
_local5[_local19] = _local4[_local19];
}
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
WALLS[this.y][this.x] = (_root.llaveT ? 1 : _root.map[this.y][this.x]);
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle((_root.llaveT ? 0 : 20), 0, 20, 20), new flash.geom.Point(0, 0));
};
_local5.onEnterFrame();
} else if (_local4.type == "forceblockF") {
var _local5 = cont.ETC.createEmptyMovieClip("FORCEBLOCK" + _local6, _local6);
_local5.bmp = new flash.display.BitmapData(20, 20, true);
_local5.bmp.copyPixels((_local5.sheet = flash.display.BitmapData.loadBitmap("forceblock1")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local5.attachBitmap(_local5.bmp, 10);
_local5._width = (_local5._height = TILESIZE);
_local5._x = TILESIZE * _local4.x;
_local5._y = TILESIZE * _local4.y;
for (var _local19 in _local4) {
_local5[_local19] = _local4[_local19];
}
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
WALLS[this.y][this.x] = (_root.llaveF ? 1 : _root.map[this.y][this.x]);
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle((_root.llaveF ? 0 : 20), 0, 20, 20), new flash.geom.Point(0, 0));
};
_local5.onEnterFrame();
} else if (_local4.type == "forceblock1") {
var _local5 = cont.ETC.createEmptyMovieClip("FORCEBLOCK" + _local6, _local6);
_local5.bmp = new flash.display.BitmapData(20, 20, true);
_local5.bmp.copyPixels((_local5.sheet = flash.display.BitmapData.loadBitmap("forceblock1")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local5.attachBitmap(_local5.bmp, 10);
_local5._width = (_local5._height = TILESIZE);
_local5._x = TILESIZE * _local4.x;
_local5._y = TILESIZE * _local4.y;
for (var _local19 in _local4) {
_local5[_local19] = _local4[_local19];
}
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
WALLS[this.y][this.x] = (_root.llave1 ? 1 : _root.map[this.y][this.x]);
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle((_root.llave1 ? 0 : 20), 0, 20, 20), new flash.geom.Point(0, 0));
};
_local5.onEnterFrame();
} else if (_local4.type == "forceblock2") {
var _local5 = cont.ETC.createEmptyMovieClip("FORCEBLOCK" + _local6, _local6);
_local5.bmp = new flash.display.BitmapData(20, 20, true);
_local5.bmp.copyPixels((_local5.sheet = flash.display.BitmapData.loadBitmap("forceblock2")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local5.attachBitmap(_local5.bmp, 10);
_local5._width = (_local5._height = TILESIZE);
_local5._x = TILESIZE * _local4.x;
_local5._y = TILESIZE * _local4.y;
for (var _local19 in _local4) {
_local5[_local19] = _local4[_local19];
}
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
WALLS[this.y][this.x] = (_root.llave2 ? 1 : _root.map[this.y][this.x]);
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle((_root.llave2 ? 0 : 20), 0, 20, 20), new flash.geom.Point(0, 0));
};
_local5.onEnterFrame();
} else if (_local4.type == "forceblock3") {
var _local5 = cont.ETC.createEmptyMovieClip("FORCEBLOCK" + _local6, _local6);
_local5.bmp = new flash.display.BitmapData(20, 20, true);
_local5.bmp.copyPixels((_local5.sheet = flash.display.BitmapData.loadBitmap("forceblock3")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local5.attachBitmap(_local5.bmp, 10);
_local5._width = (_local5._height = TILESIZE);
_local5._x = TILESIZE * _local4.x;
_local5._y = TILESIZE * _local4.y;
for (var _local19 in _local4) {
_local5[_local19] = _local4[_local19];
}
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
WALLS[this.y][this.x] = (_root.llave3 ? 1 : _root.map[this.y][this.x]);
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle((_root.llave3 ? 0 : 20), 0, 20, 20), new flash.geom.Point(0, 0));
};
_local5.onEnterFrame();
} else if (_local4.type == "forceblock4") {
var _local5 = cont.ETC.createEmptyMovieClip("FORCEBLOCK4" + _local6, _local6);
_local5.bmp = new flash.display.BitmapData(20, 20, true);
_local5.bmp.copyPixels((_local5.sheet = flash.display.BitmapData.loadBitmap("forceblock4")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local5.attachBitmap(_local5.bmp, 10);
_local5._width = (_local5._height = TILESIZE);
_local5._x = TILESIZE * _local4.x;
_local5._y = TILESIZE * _local4.y;
for (var _local19 in _local4) {
_local5[_local19] = _local4[_local19];
}
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
WALLS[this.y][this.x] = (_root.llave4 ? 1 : _root.map[this.y][this.x]);
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle((_root.llave4 ? 0 : 20), 0, 20, 20), new flash.geom.Point(0, 0));
};
_local5.onEnterFrame();
} else if (_local4.type == "forceblock5") {
var _local5 = cont.ETC.createEmptyMovieClip("FORCEBLOCK" + _local6, _local6);
_local5.bmp = new flash.display.BitmapData(20, 20, true);
_local5.bmp.copyPixels((_local5.sheet = flash.display.BitmapData.loadBitmap("forceblock5")), new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local5.attachBitmap(_local5.bmp, 10);
_local5._width = (_local5._height = TILESIZE);
_local5._x = TILESIZE * _local4.x;
_local5._y = TILESIZE * _local4.y;
for (var _local19 in _local4) {
_local5[_local19] = _local4[_local19];
}
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
WALLS[this.y][this.x] = (_root.llave5 ? 1 : _root.map[this.y][this.x]);
this.bmp.copyPixels(this.sheet, new flash.geom.Rectangle((_root.llave5 ? 0 : 20), 0, 20, 20), new flash.geom.Point(0, 0));
};
_local5.onEnterFrame();
}
_local6++;
}
if (dialogue && (!SPOKEN[area])) {
if (SPOKEN == null) {
SPOKEN = {};
}
SPOKEN[area] = true;
var _local22 = ((GUI.conv.dialogue = dialogue)).shift();
GUI.conv.Speak(_local22[0], _local22[1]);
}
dialogue = null;
if (snow) {
_root.createEmptyMovieClip("SNOW", 112);
_local14 = 0;
while (_local14 < 40) {
var f = SNOW.createEmptyMovieClip("flake" + _local14, _local14);
var _local15 = 2 + random(3);
f._alpha = 20 + (_local15 * 20);
f.attachBitmap(new flash.display.BitmapData(_local15, _local15, false, 4294967000), 1);
f._x = (f.xroot = Math.random() * Stage.width);
f._y = Math.random() * Stage.height;
f.speed = [1 + Math.random(), 10 + (Math.random() * 5), Math.random() * 300, 10 + (Math.random() * 10)];
f.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
this._y = this._y + this.speed[0];
this._x = this.xroot + (Math.sin(((this._y + this.speed[2]) / Stage.height) * this.speed[3]) * this.speed[1]);
if (this._y > Stage.height) {
this._y = -20;
}
};
_local14++;
}
} else {
SNOW.removeMovieClip();
}
snow = null;
_water = null;
if (special.DARKROOM) {
cont.createEmptyMovieClip("DARK_LAYER", 6083);
var bmp = (new flash.display.BitmapData(STAGEW, STAGEH, true, 4278190000));
bmp.fillRect(new flash.geom.Rectangle(240, 0, 120, 360), 0);
cont.DARK_LAYER.attachBitmap(bmp, 0);
cont.DARK_LAYER._alpha = 70;
} else {
cont.DARK_LAYER.removeMovieClip();
}
}
function AddTile(x, y) {
var _local4 = map[y][x];
if (_local4 == 0) {
return(undefined);
}
var _local3 = cont.FG.createEmptyMovieClip((("T_" + x) + "_") + y, ((10000 * y) + x) + 200);
_local3._x = TILESIZE * x;
_local3._y = TILESIZE * y;
_local3.TILE = _local4;
var _local7 = new flash.display.BitmapData(20, 20, true);
_local7.copyPixels(TSBMP, new flash.geom.Rectangle(((_local4 - 1) % 10) * 20, 20 * Math.floor((_local4 - 1) / 10), 20, 20), new flash.geom.Point(0, 0));
_local3.attachBitmap(_local7, 221);
_local3._width = (_local3._height = TILESIZE);
_local3.C = [x, y];
if (Math.floor(_local3.TILE / 10) == 10) {
_local3.createEmptyMovieClip("bb", 8);
_local3.bb.attachBitmap(new flash.display.BitmapData(10, 10, true, 0), 5);
_local3.bb._x = [5, 0, 5, 10][(_local3.TILE % 100) - 1];
_local3.bb._y = [10, 5, 0, 5][(_local3.TILE % 100) - 1];
_local3.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (this.bb.hitTest(_root.PC.bb)) {
_root.PC.Hurt([1, 2, 99][_root.DIFFICULTY]);
}
};
}
}
function AddWTile(x, y) {
if (this.hitTest(_root.GUI)) {
this._visible = true;
} else {
this._visible = false;
}
var _local4 = WATER[y][x];
if (_local4 == 0) {
return(undefined);
}
var _local3 = cont.FG.H2O.createEmptyMovieClip((("T_" + x) + "_") + y, ((10000 * y) + x) + 200);
_local3._x = TILESIZE * x;
_local3._y = TILESIZE * y;
_local3.TILE = _local4;
var _local5 = new flash.display.BitmapData(20, 20, true);
_local5.copyPixels(WATERBMP, new flash.geom.Rectangle((_local4 - 1) * 20, 0, 20, 20), new flash.geom.Point(0, 0));
_local3.attachBitmap(_local5, 221);
_local3._width = (_local3._height = TILESIZE);
if ((_local4 == 9) || (_local4 == 10)) {
_local3._alpha = 100;
} else {
_local3._alpha = 90;
}
}
function DrawTileColumn(x, erase) {
var _local1 = 0;
while (_local1 < map.length) {
if (erase) {
cont.FG[(("T_" + erase) + "_") + _local1].removeMovieClip();
cont.FG.H2O[(("T_" + erase) + "_") + _local1].removeMovieClip();
}
AddTile(x, _local1);
if (AQUEOUS) {
AddWTile(x, _local1);
}
_local1++;
}
}
function DrawTileRow(y, erase) {
var _local1 = 0;
while (_local1 < map[0].length) {
if (erase) {
cont.FG[(("T_" + _local1) + "_") + erase].removeMovieClip();
cont.FG.H2O[(("T_" + _local1) + "_") + erase].removeMovieClip();
}
AddTile(_local1, y);
if (AQUEOUS) {
AddWTile(_local1, y);
}
_local1++;
}
}
function Flash(target, rgb, speed, endFunction) {
if (speed == null) {
speed = 10;
}
var _local3 = 72493 /* 0x011B2D */;
while (target.getInstanceAtDepth(_local3) != null) {
_local3++;
}
target.createEmptyMovieClip("__flasher", _local3);
target.__flasher.RGB = rgb;
target.__flasher.tint = new flash.geom.Transform(target);
target.__flasher.hue = new flash.geom.ColorTransform();
target.__flasher.C = 0;
target.__flasher.S = speed;
target.__flasher.endFunction = endFunction;
target.__flasher.onEnterFrame = function () {
var _local2 = this.S;
this.C++;
this.hue.redOffset = this.hue.redOffset + (int(this.RGB[0] / _local2) * ((this.C > _local2) ? -1 : 1));
this.hue.greenOffset = this.hue.greenOffset + (int(this.RGB[1] / _local2) * ((this.C > _local2) ? -1 : 1));
this.hue.blueOffset = this.hue.blueOffset + (int(this.RGB[2] / _local2) * ((this.C > _local2) ? -1 : 1));
if (this.RGB[3]) {
this.hue.alphaOffset = this.hue.alphaOffset + (int(this.RGB[3] / _local2) * ((this.C > _local2) ? -1 : 1));
}
this.tint.colorTransform = this.hue;
if (this.C >= _local2) {
this._parent[this.endFunction]();
}
if (this.C >= (_local2 * 2)) {
this.tint.colorTransform = new flash.geom.ColorTransform();
this.removeMovieClip();
}
};
}
function MakeRelic(RELIC, O, smallsize) {
RELIC.createEmptyMovieClip("box", 10);
var _local10 = new flash.display.BitmapData(20, 20, true);
_local10.copyPixels(flash.display.BitmapData.loadBitmap(((O.type == "tablet") ? "tablet" : "relics")), new flash.geom.Rectangle(20 * O.id, 0, 20, 20), new flash.geom.Point(0, 0));
RELIC.box.attachBitmap(_local10, 1);
if (!smallsize) {
RELIC._width = RELIC._width * 2;
RELIC._height = RELIC._height * 2;
}
if (O.x != null) {
RELIC._x = O.x * TILESIZE;
}
if (O.y != null) {
RELIC._y = O.y * TILESIZE;
}
RELIC.props = O;
if (_root.PAUSED) {
RELIC.hover = [0, 0];
} else {
RELIC.hover = [1, 0];
}
if (_root.PAUSED) {
RELIC.sparkle = 1000000000000;
} else {
RELIC.sparkle = 5;
RELIC.sparklesheet = flash.display.BitmapData.loadBitmap("goldsparkle");
}
RELIC.gleams = 0;
RELIC.onEnterFrame = function () {
if (!_root.PAUSED) {
if (this.diecount) {
this.diecount--;
if (this.diecount == 0) {
this.removeMovieClip();
}
return(undefined);
}
if (((this.props.name == "ARMA2") && (_root.arma2 == true)) || ((this.props.name == "R1") && (_root.arma2 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "ARMA3") && (_root.arma3 == true)) || ((this.props.name == "R2") && (_root.arma3 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "SNORKEL1") && (_root.snorkel1 == true)) || ((this.props.name == "R4") && (_root.snorkel1 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "SNORKEL2") && (_root.snorkel2 == true)) || ((this.props.name == "R5") && (_root.snorkel2 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "PISTOLA2") && (_root.pistola2 == true)) || ((this.props.name == "R8") && (_root.pistola2 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "PISTOLA3") && (_root.pistola3 == true)) || ((this.props.name == "R9") && (_root.pistola3 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "CORAZON2") && (_root.corazon2 == true)) || ((this.props.name == "R15") && (_root.corazon2 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "CORAZON3") && (_root.corazon3 == true)) || ((this.props.name == "R16") && (_root.corazon3 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "CORAZON4") && (_root.corazon4 == true)) || ((this.props.name == "R17") && (_root.corazon4 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if (((this.props.name == "CORAZON5") && (_root.corazon5 == true)) || ((this.props.name == "R18") && (_root.corazon5 == true))) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if ((this.props.name == "CORAZON6") && (_root.corazon6 == true)) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
if ((this.props.name == "CORAZON7") && (_root.corazon7 == true)) {
_root.GOT_RELICS[this.props.name] = true;
this.removeMovieClip();
}
}
if ((!this.noTouch) && (this.hitTest(_root.PC.bb))) {
if (!_root.PAUSED) {
if (this.props.type == "tablet") {
_root.GOT_RELICS["TABLET_" + this.props.id] = true;
var _local7 = ((_root.GUI.conv.dialogue = this.props.conv)).shift();
_root.GUI.conv.Speak(_local7[0], _local7[1]);
} else {
_root.GOT_RELICS[this.props.name] = true;
if (this.props.name == "GPS") {
_root.playSFX("relic");
_root.GPS = true;
_root.GOT_RELICS["R" + this.props.id] = true;
}
if (this.props.name == "SALTO1") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.salto = 8;
_root.salto1 = true;
}
if (this.props.name == "SALTO2") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.salto = 10;
_root.salto2 = true;
}
if (this.props.name == "SALTO3") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.salto = 17;
_root.salto3 = true;
}
if (this.props.name == "LLAVE1") {
_root.playSFX("llave");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.llave1 = false;
}
if (this.props.name == "LLAVE2") {
_root.playSFX("llave");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.llave2 = false;
}
if (this.props.name == "LLAVE3") {
_root.playSFX("llave");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.llave3 = false;
}
if (this.props.name == "LLAVE4") {
_root.playSFX("llave");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.llave4 = false;
}
if (this.props.name == "LLAVE5") {
_root.playSFX("llave");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.llave5 = false;
}
if (this.props.name == "LLAVET") {
_root.playSFX("llave");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.llaveT = false;
}
if (this.props.name == "CORAZON1") {
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.MaxVidas = _root.MaxVidas;
_local6.data.corazon1 = _root.corazon1;
_local6.flush();
_root.playSFX("corazon");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.vidas = _root.vidas + 1;
_root.MaxVidas = _root.MaxVidas + 1;
_root.corazon1 = true;
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.PCHP[0] = _root.PCHP[1];
RefreshGUI();
}
if (this.props.name == "CORAZON2") {
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.MaxVidas = _root.MaxVidas;
_local6.data.corazon2 = _root.corazon2;
_local6.flush();
_root.playSFX("corazon");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.vidas = _root.vidas + 1;
_root.MaxVidas = _root.MaxVidas + 1;
_root.corazon2 = true;
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.PCHP[0] = _root.PCHP[1];
RefreshGUI();
}
if (this.props.name == "CORAZON3") {
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.MaxVidas = _root.MaxVidas;
_local6.data.corazon3 = _root.corazon3;
_local6.flush();
_root.playSFX("corazon");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.vidas = _root.vidas + 1;
_root.MaxVidas = _root.MaxVidas + 1;
_root.corazon3 = true;
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.PCHP[0] = _root.PCHP[1];
RefreshGUI();
}
if (this.props.name == "CORAZON4") {
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.MaxVidas = _root.MaxVidas;
_local6.data.corazon4 = _root.corazon4;
_local6.flush();
_root.playSFX("corazon");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.vidas = _root.vidas + 1;
_root.MaxVidas = _root.MaxVidas + 1;
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.corazon4 = true;
RefreshGUI();
}
if (this.props.name == "CORAZON5") {
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.MaxVidas = _root.MaxVidas;
_local6.data.corazon5 = _root.corazon5;
_local6.flush();
_root.playSFX("corazon");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.vidas = _root.vidas + 1;
_root.MaxVidas = _root.MaxVidas + 1;
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.corazon5 = true;
RefreshGUI();
}
if (this.props.name == "CORAZON6") {
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.MaxVidas = _root.MaxVidas;
_local6.data.corazon6 = _root.corazon6;
_local6.flush();
_root.playSFX("corazon");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.vidas = _root.vidas + 1;
_root.MaxVidas = _root.MaxVidas + 1;
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.corazon6 = true;
RefreshGUI();
}
if (this.props.name == "CORAZON7") {
var _local6 = SharedObject.getLocal("CP_1");
_local6.data.MaxVidas = _root.MaxVidas;
_local6.data.corazon7 = _root.corazon7;
_local6.flush();
_root.playSFX("corazon");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.vidas = _root.vidas + 1;
_root.MaxVidas = _root.MaxVidas + 1;
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.corazon7 = true;
RefreshGUI();
}
if (this.props.name == "PISTOLA1") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.pistola = 1;
_root.pistola1 = true;
}
if (this.props.name == "PISTOLA2") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.pistola = 2;
_root.pistola2 = true;
}
if (this.props.name == "PISTOLA3") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.pistola = 3;
_root.pistola3 = true;
}
if (this.props.name == "ARMA1") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.arma = 1;
_root.arma1 = true;
}
if (this.props.name == "ARMA2") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.arma = 2;
_root.arma2 = true;
}
if (this.props.name == "ARMA3") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.arma = 3;
_root.arma3 = true;
}
if (this.props.name == "SNORKEL1") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.snorkel1 = true;
}
if (this.props.name == "SNORKEL2") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.snorkel2 = true;
}
if (this.props.name == "TAMUS") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.tamus = true;
}
if (this.props.name == "DRAKE") {
_root.playSFX("relic");
_root.GOT_RELICS["R" + this.props.id] = true;
_root.drake = true;
}
trace(this.props.name);
var _local7 = ((_root.GUI.conv.dialogue = this.props.conv)).shift();
_root.GUI.conv.Speak(_local7[0], _local7[1]);
_root.test = this.props.id;
if (_root.SO.data.RELICS == null) {
_root.SO.data.RELICS = new Array(21);
}
_root.SO.data.RELICS[this.props.id] = true;
_root.SO.flush();
_root.grabar = true;
_root.RELICS++;
_root.kongregateStats.submit("Relics", _root.RELICS);
}
this.box.removeMovieClip();
this.diecount = 100;
var _local3 = 0;
while (_local3 < 8) {
var _local5 = 0.7853982;
var _local4 = 4;
this.MakeSparkle(10 + (Math.cos(_local5 * _local3) * _local4), 10 + (Math.sin(_local5 * _local3) * _local4), Math.cos(_local5 * _local3) * _local4, Math.sin(_local5 * _local3) * _local4);
_local3++;
}
return(undefined);
}
}
this.box._y = this.box._y + (0.1 * this.hover[0]);
this.hover[1]++;
if (this.hover[1] >= 20) {
this.hover[1] = 0;
this.hover[0] = this.hover[0] * -1;
}
this.sparkle--;
if (this.sparkle <= 0) {
this.sparkle = 10 + random(20);
this.MakeSparkle(random(21), random(21), 0, 0);
}
};
RELIC.MakeSparkle = function (x, y, xmod, ymod) {
this.gleams++;
var _local2 = this.createEmptyMovieClip("GLEAM" + this.gleams, 10 + this.gleams);
_local2.createEmptyMovieClip("box", 8);
_local2.box._x = (_local2.box._y = -2.5);
_local2.bmp = new flash.display.BitmapData(5, 5, true);
_local2.bmp.copyPixels(this.sparklesheet, new flash.geom.Rectangle(0, 5 * ((_local2.ID = ((this.props.type == "tablet") ? (this.props.id) : 0))), 5, 5), new flash.geom.Point(0, 0));
_local2.box.attachBitmap(_local2.bmp, 0);
_local2.c = 0;
_local2._x = x;
_local2._y = y;
_local2.mod = [xmod, ymod];
_local2.onEnterFrame = function () {
this.c++;
this._x = this._x + this.mod[0];
this._y = this._y + this.mod[1];
this.bmp.copyPixels(this._parent.sparklesheet, new flash.geom.Rectangle(Math.floor(this.c / 2) * 5, 5 * this.ID, 5, 5), new flash.geom.Point(0, 0));
if (this.c >= 10) {
this.removeMovieClip();
}
};
};
}
function hms(secs) {
return((((Math.floor(secs / 3600) + ":") + _00(Math.floor((secs % 3600) / 60))) + ":") + _00(secs % 60));
}
function GetAchievement(n) {
SO.data.ACHIEVEMENTS.GOT[n] = true;
}
function RestartSetup() {
TIMER = 0;
EXPTOTAL = 0;
LIVESLOST = 0;
RELICS = 0;
RECORDS = {USED_SWORD:0, USED_BLASTER:0, DIED_AGAINST_BOSS:0, HURT_BY_BOSS:0, KILLS:0, FOES_ENCOUNTERED:{}};
SWITCHES = {};
CLEAR = {};
GOT_RELICS = {};
SPOKEN = {};
}
function RefreshGUI(f) {
if (GUI == null) {
_root.attachMovie("GUI", "GUI", 300);
GUI._width = GUI._width * 2;
GUI._height = GUI._height * 2;
}
GUI.NUMLIVES = _root.PCLIVES;
GUI.gotoAndStop((f ? (f) : 1));
if (GUI.RelicDisplay.Get == null) {
GUI.RelicDisplay.gotoAndStop(2);
GUI.RelicDisplay.Get = function (name, id) {
this.gotoAndStop(1);
this._alpha = 0;
this.delay = 110;
this.Relic = name;
this.Amount = _root.RELICS + "/4 Relics";
var _local3 = new flash.display.BitmapData(20, 20, true);
_local3.copyPixels(flash.display.BitmapData.loadBitmap("relics"), new flash.geom.Rectangle(20 * id, 0, 20, 20), new flash.geom.Point(0, 0));
this.icon.attachBitmap(_local3, 0);
this.onEnterFrame = function () {
this.delay--;
if (this.delay >= 100) {
this._alpha = this._alpha + 10;
} else if (this.delay <= 10) {
this._alpha = this._alpha - 10;
} else {
this._alpha = 100;
}
if (this.delay <= 0) {
this.onEnterFrame = null;
this.gotoAndStop(2);
}
};
};
}
GUI.c = 0;
GUI.onEnterFrame = function () {
if (this.conv.fade) {
this.conv._visible = true;
this.conv._alpha = this.conv._alpha + (10 * this.conv.fade);
if ((this.conv.fade == 1) && (this.conv._alpha >= 100)) {
this.conv._alpha = 100;
this.conv.fade = 0;
}
if ((this.conv.fade == -1) && (this.conv._alpha <= 0)) {
this.conv._visible = false;
this.conv.fade = 0;
if (!_root.RECORDS.LEVEL_INTRO) {
var _local4 = {lv1:["Hindalarr Starship", "10:00"], lv4:["Planet Erydaasia", "15:00"], lvT:["Tutorial", "No puedes morir en este nivel"]}[_root.area.substr(0, 3)];
if (_local4[0] != null) {
_root.RECORDS.LEVEL_INTRO = true;
this.LevelIntro.gotoAndPlay(2);
this.LevelIntro.PlanetName = _local4[0];
this.LevelIntro.IdealTime = _local4[1];
}
}
}
} else if ((Key.isDown(KEYS.SPACE) || (Key.isDown(KEYS.Y))) && (this.conv._visible)) {
this.conv.fade = -1;
this.conv._alpha = 100;
_root.cutfreeze = false;
if (this.conv.dialogue[this.conv.dialogue.length - 1] == "END") {
this.conv._visible = false;
_root.EndLevel();
return(undefined);
}
} else if (this.conv.toShow.length > 0) {
if (Key.isDown(KEYNAMES.X) && (!this.Adown)) {
this.conv.words = this.conv.words + this.conv.toShow;
this.conv.toShow = "";
this.Adown = true;
} else {
var _local5 = 2;
this.conv.words = this.conv.words + this.conv.toShow.substr(0, _local5);
this.conv.toShow = this.conv.toShow.substr(_local5);
}
} else if ((Key.isDown(KEYNAMES.X) && (this.conv._visible)) && (!this.Adown)) {
var _local3 = this.conv.dialogue.shift();
if (_local3 == "END") {
this.conv._visible = false;
_root.EndLevel();
return(undefined);
}
if (typeof(_local3) == "function") {
_local3();
_local3 = this.conv.dialogue.shift();
}
this.conv.Speak(_local3[0], _local3[1]);
this.Adown = true;
}
if (this.Adown && (!Key.isDown(KEYNAMES.X))) {
this.Adown = false;
}
if (this.signal == true) {
this.time = getTimer();
} else {
this.rate = int(1000 / (getTimer() - this.time));
}
this.signal = !this.signal;
if (this.c > 0) {
this.c--;
} else {
this.FPS = this.rate + "fps";
this.c = 5;
}
};
GUI.conv._visible = false;
GUI.conv.Speak = function (name, words) {
if (words == null) {
this.fade = -1;
this._alpha = 100;
_root.cutfreeze = false;
return(undefined);
}
this.words = "";
this.speaker = {ANIBAL:"ANIBAL", GHOST:"Wraith", KAREN:"Karen", FGUARDIAN:"Dr.Kunas", TUTORIAL:"Tutorial"}[name];
if (this.speaker == "ANIBAL") {
_root.playSFX("anibal");
}
if (this.speaker == KAREN) {
_root.playSFX("karen");
}
this.toShow = words;
if (this.CURRENT_SPEAKER != this.speaker) {
GUI.conv.avatar.createEmptyMovieClip("img", 0);
GUI.conv.avatar.img.attachBitmap(flash.display.BitmapData.loadBitmap("conv_" + name), 0);
GUI.conv.avatar.img._alpha = 0;
GUI.conv.avatar.img.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
this.onEnterFrame = null;
}
}
};
this.CURRENT_SPEAKER = this.speaker;
}
if (!this._visible) {
this.fade = 1;
this._alpha = 0;
this._visible = true;
}
this.skipinfo = "";
_root.convtut = true;
};
if (f) {
return(undefined);
}
if (_root.snorkel1 == true) {
var _local5 = GUI.createEmptyMovieClip("breathBar", 297);
_local5._x = 10.1;
_local5._y = 23.8;
}
var _local6 = GUI.createEmptyMovieClip("xpBar", 298);
_local6._x = 59;
_local6._y = 19;
GUI.AREA = area.substr(4);
}
function PauseGame(mute) {
PAUSED = true;
_root.attachMovie("PAUSED", "PAUSEDGUI", 212);
_root.createEmptyMovieClip("snap", 211);
snap.onPress = function () {
return(undefined);
};
if (mute) {
MusicPausedAt = MUSIC.position;
MUSIC.stop();
}
PAUSEDGUI._width = 650;
PAUSEDGUI._height = STAGEH;
PAUSEDGUI.gotoAndStop(2);
var _local8 = new flash.display.BitmapData(640, 400, true);
_local8.draw(_root);
snap.attachBitmap(_local8, 1);
snap.filters = [new flash.filters.BlurFilter(8, 8)];
PAUSEDGUI.gotoAndStop(1);
var _local3 = 0;
for (var _local7 in _root.GOT_RELICS) {
var _local4 = int(_local7.substr(1));
var _local2 = PAUSEDGUI.RLIST.createEmptyMovieClip("R" + _local3, _local3);
MakeRelic(_local2, ((_local7.substr(0, 6) == "TABLET") ? ({id:_local7.substr(-1), type:"tablet"}) : ({id:_local4})), true);
_local2.noTouch = true;
_local2._x = -20 - (25 * _local3);
_local3++;
}
}
function EndLevel() {
PauseGame();
PAUSEDGUI.gotoAndStop(3);
PAUSEDGUI.WIN.TIME = _root.SHOWNTIMER;
PAUSEDGUI.WIN.LIVES = _root.LIVESLOST;
PAUSEDGUI.WIN.RELICS = _root.RELICS;
PAUSEDGUI.WIN.DIFFMOD = [-100, 0, 20][_root.DIFFICULTY];
PAUSEDGUI.WIN.EXPTOTAL = _root.EXPTOTAL;
idealTime = [10, 15][CHAPTER - 1] * 60;
SCORE = (PAUSEDGUI.WIN.P0 = Math.floor((idealTime / TIMER) * 100));
SCORE = SCORE + ((PAUSEDGUI.WIN.P1 = 50 - (10 * _root.LIVESLOST)));
SCORE = SCORE + ((PAUSEDGUI.WIN.P2 = 20 * _root.RELICS));
SCORE = SCORE + ((PAUSEDGUI.WIN.P3 = PAUSEDGUI.WIN.DIFFMOD));
PAUSEDGUI.WIN.PT = 0;
var _local3 = 0;
while (_local3 <= 3) {
PAUSEDGUI.WIN.PT = PAUSEDGUI.WIN.PT + PAUSEDGUI.WIN["P" + _local3];
PAUSEDGUI.WIN["P" + _local3] = PAUSEDGUI.WIN["P" + _local3] + "pts";
_local3++;
}
PAUSEDGUI.WIN.PT = PAUSEDGUI.WIN.PT + "pts";
var _local8 = Math.floor(SCORE / 50);
if (_local8 > 5) {
_local8 = 5;
}
if (_local8 < 0) {
_local8 = 0;
}
if (!RECORDS.LOADED) {
PAUSEDGUI.WIN.RANK = ShowRank(_local8);
PAUSEDGUI.WIN.NoRank = "";
_root.kongregateScores.submit(SCORE);
_root.kongregateStats.submit("Points", SCORE);
_root.kongregateStats.submit("GameComplete" + ["Easy", "Medium", "Hard"][_root.DIFFICULTY], 1);
_root.kongregateStats.submit("FinalRank", _local8);
if ((SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].RANK == null) || (SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].RANK < _local8)) {
SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].RANK = _local8;
}
if ((SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].TIME == null) || (SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].TIME > TIMER)) {
SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].TIME = TIMER;
}
if ((SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].DEATHS == null) || (SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].DEATHS > LIVESLOST)) {
SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].DEATHS = LIVESLOST;
}
SO.data.ACHIEVEMENTS.TOTALS.COMPLETE++;
} else {
PAUSEDGUI.WIN.RANK = "";
PAUSEDGUI.WIN.NoRank = "No Rank, since you loaded.";
}
var _local5 = new Array(21);
_local5[0] = true;
if (!RECORDS.LOADED) {
var _local2 = 0;
while (_local2 <= _local8) {
_local5[1 + _local2] = true;
_local2++;
}
}
if (LIVESLOST == 0) {
_local5[7] = true;
}
if (TIMER <= idealTime) {
_local5[8] = true;
}
if (RELICS == 4) {
_local5[9] = true;
}
if (RECORDS.DIED_AGAINST_BOSS == 0) {
_local5[10] = true;
}
if (RECORDS.HURT_BY_BOSS == 0) {
_local5[11] = true;
}
_local5[14 + DIFFICULTY] = true;
if (RECORDS.KILLS == 0) {
_local5[17] = true;
}
var _local9 = true;
for (var _local11 in RECORDS.FOES_ENCOUNTERED) {
if (RECORDS._ENCOUNTERED[_local11] != 1) {
_local9 = false;
}
}
if (_local9) {
_local5[18] = true;
}
if (RECORDS.USED_BLASTER == 0) {
_local5[19] = true;
}
if (RECORDS.USED_SWORD == 0) {
_local5[20] = true;
}
var _local4 = 0;
var _local10 = flash.display.BitmapData.loadBitmap("achievements");
var _local2 = 0;
while (_local2 < 21) {
if (_local5[_local2] && (!SO.data.ACHIEVEMENTS.GOT[_local2])) {
GetAchievement(_local2);
var _local6 = PAUSEDGUI.WIN.ALIST.createEmptyMovieClip("a" + _local4, _local4);
var _local7 = new flash.display.BitmapData(20, 20);
_local7.copyPixels(_local10, new flash.geom.Rectangle(20 * _local2, 0, 20, 20), new flash.geom.Point(0, 0));
_local6.attachBitmap(_local7, 0);
_local6._x = 25 * _local4;
_local4++;
}
_local2++;
}
SO.data.CAPSULE[_root.CHAPTER] = null;
SO.flush();
PC.removeMovieClip();
cont.removeMovieClip();
PARALLAX1.removeMovieClip();
PARALLAX2.removeMovieClip();
PARALLAX3.removeMovieClip();
GUI.removeMovieClip();
}
function ExitToMainMenu() {
var _local3 = _root.createEmptyMovieClip("SNAPFADE", 23437);
var _local4 = new flash.display.BitmapData(600, 400, true);
_local4.draw(_root);
_local3.attachBitmap(_local4, 1);
_local3.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
PC.removeMovieClip();
cont.removeMovieClip();
PARALLAX1.removeMovieClip();
PARALLAX2.removeMovieClip();
PARALLAX3.removeMovieClip();
GUI.removeMovieClip();
_root.PAUSEDGUI.removeMovieClip();
snap.removeMovieClip();
_root.gotoAndStop("TITLE");
}
function ExitToEnding() {
var _local3 = _root.createEmptyMovieClip("SNAPFADE", 23437);
var _local4 = new flash.display.BitmapData(600, 400, true);
_local4.draw(_root);
_local3.attachBitmap(_local4, 1);
_local3.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
PC.removeMovieClip();
cont.removeMovieClip();
PARALLAX1.removeMovieClip();
PARALLAX2.removeMovieClip();
PARALLAX3.removeMovieClip();
GUI.removeMovieClip();
_root.PAUSEDGUI.removeMovieClip();
snap.removeMovieClip();
_root.gotoAndStop("ending");
}
function playSFX(sfx, v) {
if (_root.sfxstat == true) {
if (sfxPlaying[sfx] || (MUTE)) {
return(undefined);
}
sfx_id++;
if (sfx_id > 100) {
sfx_id = 0;
}
var _local2 = new Sound(_sfxcont.createEmptyMovieClip("_sfx" + sfx_id, 0));
_local2.attachSound("sfx_" + sfx);
_local2.setVolume(60);
_local2.start();
sfxPlaying[sfx] = true;
} else {
return(undefined);
}
}
function playMusic(track, v, bypass) {
if (MUTE) {
MUSIC.stop();
}
if ((track == currentMusic) && (!bypass)) {
if (_root._currentframe != 7) {
return(undefined);
}
}
_root.currentMusic = track;
MUSIC.stop();
if ((track != "none") && (!MUTE)) {
MUSIC.attachSound(track);
if (MUTE == true) {
MUSIC.setVolume(0);
}
if (MUTE == false) {
if (_root.mutedmusic == true) {
MUSIC.setVolume(0);
} else {
MUSIC.setVolume(100);
}
}
MUSIC.start();
SO.data.ACHIEVEMENTS.MUSIC[track] = true;
SO.flush();
}
MUSIC.onSoundComplete = function () {
this.start(0);
};
}
function CreateParticle(x, y, sx, sy, type, from) {
PD++;
if (PD > 1000) {
PD = 0;
}
var _local5 = cont.LIFE.createEmptyMovieClip("particle" + PD, 7000 + PD);
_local5._x = x;
_local5._y = y;
_local5.s = [sx, sy];
_local5.bmp = new flash.display.BitmapData(8, 8, true);
_local5.bmp.copyPixels(PFXBMP, new flash.geom.Rectangle(0, 8 * ((_local5.type = type)), 8, 8), new flash.geom.Point(0, 0));
_local5.createEmptyMovieClip("box", 21);
_local5.box.attachBitmap(_local5.bmp, 100);
_local5.box._x = (_local5.box._y = -4);
_local5._width = _local5._width * 2;
_local5._height = _local5._height * 2;
_local5.from = from;
if (sx > 0) {
_local5._xscale = _local5._xscale * -1;
}
(_local5.L = 0);
(_local5.f = 0);
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
var _local5 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local5);
this._x = this._x + this.s[0];
this._y = this._y + this.s[1];
if ((((_local5.x < -100) || (_local5.x > (Stage.width + 100))) || (_local5.y < -100)) || (_local5.y > (Stage.height + 100))) {
this.removeMovieClip();
}
var _local6 = WALLS[Math.floor(this._y / TILESIZE)][Math.floor(this._x / TILESIZE)];
if ((_local6 < 50) && (_local6 != 0)) {
_root.Explosion(this._x, this._y, this.type, "yow");
this.removeMovieClip();
}
this.L++;
if (this.L > 3) {
this.L = 0;
this.f = !this.f;
this.bmp.copyPixels(_root.PFXBMP, new flash.geom.Rectangle(8 * this.f, 8 * this.type, 8, 8), new flash.geom.Point(0, 0));
}
var _local4 = 0;
while (_local4 < _root.BADDIES.length) {
var _local3 = _root.cont.LIFE["BADDIE" + _local4];
if (this.hitTest(_local3) && (!_local3.noshothit)) {
_local3.Hurt(1, true);
_root.Explosion(_local3._x, this._y, this.type, true);
this.removeMovieClip();
}
_local4++;
}
if (this.hitTest(_root.PC.bb) && (this.from != "PC")) {
_root.PC.Hurt(1);
_root.Explosion(_root.PC._x, this._y, this.type, true);
this.removeMovieClip();
}
if (this.hitTest(_root.boxhit)) {
_root.Explosion(this._x, this._y, this.type, true);
this.removeMovieClip();
}
if (this.hitTest(_root.boxhit1)) {
_root.Explosion(this._x, this._y, this.type, true);
this.removeMovieClip();
}
if (this.hitTest(_root.boxhit2)) {
_root.Explosion(this._x, this._y, this.type, true);
this.removeMovieClip();
}
};
}
function Explosion(x, y, type, silent, deadly) {
if (!(silent === true)) {
_root.playSFX((silent ? (silent) : "explode"));
}
PD++;
if (PD > 1000) {
PD = 0;
}
var _local3 = cont.LIFE.createEmptyMovieClip("particle" + PD, 7000 + PD);
_local3._x = x;
_local3._y = y;
_local3.bmp = new flash.display.BitmapData(20, 20, true);
_local3.bmp.copyPixels(BOOMSHEET, new flash.geom.Rectangle(0, ((_local3.type = type)) * 20, 20, 20), new flash.geom.Point(0, 0));
_local3.createEmptyMovieClip("box", 2);
_local3.box.attachBitmap(_local3.bmp, 20);
_local3.box._x = (_local3.box._y = -10);
_local3._width = (_local3._height = TILESIZE);
_local3.f = 0;
_local3.deadly = deadly;
_local3.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
this.f++;
this.bmp.copyPixels(_root.BOOMSHEET, new flash.geom.Rectangle(20 * this.f, this.type * 20, 20, 20), new flash.geom.Point(0, 0));
if (this.f > 5) {
this.removeMovieClip();
}
if (this.deadly) {
if (this.hitTest(_root.PC.bb)) {
_root.PC.Hurt(1);
}
}
};
}
function BreathBubble(x, y) {
PD++;
if (PD > 1000) {
PD = 0;
}
var _local3 = cont.LIFE.createEmptyMovieClip("particle" + PD, 7000 + PD);
_local3._x = x;
_local3._y = y;
_local3.bmp = new flash.display.BitmapData(4, 4, true);
_local3.bmp.copyPixels(BUBBLESHEET, new flash.geom.Rectangle(4 * random(3), 0, 4, 4), new flash.geom.Point(0, 0));
_local3.createEmptyMovieClip("box", 2);
_local3.box.attachBitmap(_local3.bmp, 20);
_local3.box._x = (_local3.box._y = -2);
_local3._width = (_local3._height = 8);
_local3.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
this._y = this._y - 1;
if (!WATER[Math.floor((this._y - 10) / TILESIZE)][Math.floor(this._x / TILESIZE)]) {
this.removeMovieClip();
}
};
}
function Splash(x, y, V) {
_root.playSFX("splash", V);
_root.PD++;
var _local3 = _root.cont.LIFE.createEmptyMovieClip("particle" + _root.PD, 7000 + _root.PD);
_local3.createEmptyMovieClip("box", 1);
if (_root.salpicaagua == true) {
_local3.box.attachBitmap(flash.display.BitmapData.loadBitmap("splash1"), 1);
} else {
_local3.box.attachBitmap(flash.display.BitmapData.loadBitmap("splash"), 1);
}
(_local3.box._y = -20);
(_local3.box._x = -10);
_local3._width = (_local3._height = TILESIZE);
_local3._x = x;
_local3._y = y;
_local3.c = 10;
_local3.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
this.c--;
this._alpha = this._alpha - 10;
this._height--;
this._width++;
if (this.c <= 0) {
this.removeMovieClip();
}
};
}
if (_root.lang == "en") {
_root.tx_play = "PLAY";
_root.tx_lag1 = "IMPORTANT!";
_root.tx_lag2 = "The game may lag in Windows 7. To COMPLETELY ELIMINATE LAG, please set the slider to Unlimited (the furthest right point). You can also do this by right-clicking, and selecting the 'Settings' option.";
_root.tx_moregames = "MORE GAMES";
_root.tx_likeus = "LIKE US!";
_root.tx_gameover = "GAME OVER";
_root.tx_loadgame = "LOAD GAME";
_root.tx_options = "OPTIONS";
_root.tx_options2 = "Options";
_root.tx_credits = "CREDITS";
_root.tx_newgame = "NEW GAME";
_root.tx_dific = "CHOOSE DIFFICULTY";
_root.tx_easy = "EASY";
_root.tx_normal = "NORMAL";
_root.tx_hard = "HARD";
_root.tx_rango = "Rank";
_root.tx_newgame2 = "This will erase your current data.";
_root.tx_howto = "HOW TO";
_root.tx_skip = "Press Z to SKIP";
_root.tx_intro1 = "A regular kid takes a ride in his town...";
_root.tx_intro2 = "...suddenly, something took his attention...";
_root.tx_intro3 = "...was about a strange house, he never saw something like that...";
_root.tx_intro4 = "...he looked at the house, and decided to explore it...";
_root.tx_intro5 = "...suddenly a strange transmission activated. It was about a scientist asking for help";
_root.tx_intro6 = "...the doctor created an incredible armor capable to fend off many attacks, ideal for her rescue...";
_root.tx_intro6b = "...at a cursed island was making some experiments. She went to investigate, but she was captured...";
_root.tx_intro7 = "...the kid takes some courage, took the armor and went to rescue the doctor.";
_root.tx_llaves = "Keys";
_root.tx_pausa = "GAME PAUSED";
_root.tx_controls = "Game Controls";
_root.tx_menu = "MENU";
_root.tx_controls1 = "JUMP";
_root.tx_controls2 = "ATTACK";
_root.tx_controls3 = "SHOOT";
_root.tx_controls4 = "LEFT";
_root.tx_controls5 = "RIGHT";
_root.tx_controls6 = "UP";
_root.tx_controls7 = "DOWN";
_root.tx_controls8 = "PAUSE";
_root.tx_controls9 = "Press the HIHGLIGHTED zone to change each key.";
_root.tx_controls10 = "MUTE/UNMUTE";
_root.tx_music = "Music";
_root.tx_musicON = "ON";
_root.tx_musicOFF = "OFF";
_root.tx_SFX = "SFX";
_root.tx_SET = "SET";
_root.tx_LANG = "Language";
_root.tx_ESP = "ESP";
_root.tx_EN = "EN";
_root.tx_score = "Score";
_root.tx_rank = "Rank";
_root.tx_kills = "Kills";
_root.tx_coins = "Coins";
_root.tx_upgrades = "Items";
_root.tx_stats = "Stats";
_root.tx_exp = "Time Played";
_root.tx_shots = "Total Shots";
_root.tx_slash = "Sword Slashes";
_root.tx_hearts = "Hearts Lost";
_root.tx_deaths = "Deaths";
_root.tx_coinscollected = "Coins Collected";
_root.tx_zombieskilled = "Zombies Killed";
_root.tx_map = "GPS Map";
_root.tx_paused1 = "Press ESC to Main Menu - Spacebar to Resume";
_root.tx_zombiepedia = "ZOMBIPEDIA";
}
if (_root.lang == "es") {
_root.tx_moregames = "MAS JUEGOS";
_root.tx_likeus = "ME GUSTA!";
_root.tx_lag1 = "IMPORTANTE!";
_root.tx_lag2 = "El juego puede producir LAG en Windows 7. Para ELIMINAR LAG, tienes que poner almacenamiento de flash en ILIMITADO (el punto mas alejado a la derecha). Puedes hacer lo mismo con click boton derecho y seleccionar 'Configuracion'.";
_root.tx_play = "JUGAR";
_root.tx_gameover = "JUEGO TERMINADO";
_root.tx_options = "OPCIONES";
_root.tx_options2 = "Opciones";
_root.tx_credits = "CREDITOS";
_root.tx_newgame = "NUEVO JUEGO";
_root.tx_easy = "FACIL";
_root.tx_normal = "NORMAL";
_root.tx_rango = "Rango";
_root.tx_hard = "DIFICIL";
_root.tx_dific = "ELIGE DIFICULTAD";
_root.tx_newgame2 = "Esto borrar tu progeso actual. Quieres continuar? Presiona para confirmar";
_root.tx_howto = "COMO JUGAR";
_root.tx_loadgame = "CARGAR";
_root.tx_skip = "Presiona Z para SALTAR";
_root.tx_intro1 = "Un chico comun y corrriente da un paseo por la ciudad...";
_root.tx_intro2 = "...de pronto, se encuentra con algo que llama su atencion...";
_root.tx_intro3 = "...se trata de la casa mas extrana que jamas habia visto en su vida...";
_root.tx_intro4 = "...la curiosidad se apodero del chico y decidio entrar...";
_root.tx_intro5 = "...repentinamente una rara transmision se activo, se trataba de una cientifica pidiendo ayuda...";
_root.tx_intro6 = "...en la isla maldita se hacian terribles experimentos y la doctora acudio a investigar, pero fue capturada......";
_root.tx_intro6b = "...la doctora creo una super armadura capaz de repeler muchos ataques, ideal para el rescate de aquella mujer...";
_root.tx_intro7 = "...el chico se armo de valor, tomo la armadura y se dirigio a rescatar a la doctora.";
_root.tx_llaves = "Teclas";
_root.tx_pausa = "JUEGO PAUSADO";
_root.tx_controls = "Controles del Juego";
_root.tx_menu = "MENU";
_root.tx_controls1 = "SALTAR";
_root.tx_controls2 = "ATACAR";
_root.tx_controls3 = "DISPARAR";
_root.tx_controls4 = "IZQUIERDA";
_root.tx_controls5 = "DERECHA";
_root.tx_controls6 = "ARRIBA";
_root.tx_controls7 = "ABAJO";
_root.tx_controls8 = "PAUSA";
_root.tx_controls9 = "Presiona la zona DESTACADA para cambiar cada tecla.";
_root.tx_controls10 = "MUTE/UNMUTE";
_root.tx_music = "Musica";
_root.tx_musicON = "ON";
_root.tx_musicOFF = "OFF";
_root.tx_SFX = "SFX";
_root.tx_SET = "SET";
_root.tx_LANG = "Lenguaje";
_root.tx_ESP = "ESP";
_root.tx_EN = "EN";
_root.tx_score = "Puntaje";
_root.tx_rank = "Rango";
_root.tx_kills = "Muertes";
_root.tx_coins = "Monedas";
_root.tx_upgrades = "Items";
_root.tx_stats = "Estadisticas";
_root.tx_exp = "Tiempo Jugado";
_root.tx_shots = "Disparos Hechos";
_root.tx_slash = "Espadazos";
_root.tx_hearts = "Corazones Perdidos";
_root.tx_deaths = "Muertes";
_root.tx_coinscollected = "Monedas Atrapadas";
_root.tx_zombieskilled = "Zombies Eliminados";
_root.tx_map = "Mapa GPS";
_root.tx_paused1 = "ESC para Menu - Espaciadora para volver al juego";
_root.tx_zombiepedia = "ZOMBIPEDIA";
}
OFFSET = ["lv0_0", 0, 0];
_global.TILESIZE = 40;
_global.STAGEW = 600;
_global.STAGEH = 400;
_global.STAGE_TW = 16;
_global.STAGE_TH = 10;
PC = null;
_root.createEmptyMovieClip("cont", 100);
cont.createEmptyMovieClip("LIFE", 100);
cont.createEmptyMovieClip("ETC", 99);
cont.createEmptyMovieClip("FG", 90);
cont.createEmptyMovieClip("BG", 80);
_root.createEmptyMovieClip("PARALLAX1", 70);
_root.createEmptyMovieClip("PARALLAX2", 60);
_root.createEmptyMovieClip("PARALLAX3", 50);
_global.VWall = function (w) {
return(((w > 0) && (w < 51)) || (w == null));
};
_global.IsVoid = function (w) {
return((!w) || (w > 110));
};
tick = 0;
onEnterFrame = function () {
sfxPlaying = {};
if ((!Mdown) && (Key.isDown(KEYS.M))) {
Mdown = true;
if (_root.TOPBAR.MuteButton != null) {
_root.TOPBAR.MuteButton.onRelease();
} else {
MUTE = !MUTE;
playMusic(currentMusic, null, true);
}
}
if (Mdown && (!Key.isDown(KEYS.M))) {
Mdown = false;
}
tick++;
if (tick >= 40) {
tick = 0;
IncreaseTimer();
}
};
_global.Clone = function (object) {
var _local2 = {};
for (o in object) {
_local2[o] = ((typeof(object[o]) == "object") ? (((object[o].pop != undefined) ? (CloneA(object[o])) : (Clone(object[o])))) : (object[o]));
}
return(_local2);
};
_global.CloneA = function (array) {
var _local3 = [];
var _local1 = 0;
while (_local1 < array.length) {
_local3[_local1] = ((typeof(array[_local1]) == "object") ? (Clone(array[_local1])) : (((array[_local1].pop != null) ? (ClonaA(array[_local1])) : (array[_local1]))));
_local1++;
}
return(_local3);
};
_global.Omniclone = function (object) {
if (typeof(object.pop) == "function") {
return(CloneA(object));
}
if (typeof(object.pop) == "object") {
return(Clone(object));
}
return(object);
};
_global._00 = function (n) {
return(((n < 10) ? ("0" + n) : (n)));
};
if (KEYS == null) {
_global.KEYS = {BACKSPACE:8, CAPSLOCK:20, CONTROL:17, DELETEKEY:46, DOWN:40, END:35, ENTER:13, ESCAPE:27, HOME:36, INSERT:45, LEFT:37, PGDN:34, PGUP:33, RIGHT:39, SHIFT:16, SPACE:32, TAB:9, UP:38};
var k = 65;
while (k <= 90) {
KEYS[String.fromCharCode(k)] = k;
k++;
}
_global.KEYNAMES = Clone(KEYS);
}
_global.Hex2RGB = function (hex) {
return([hex >> 16, (hex >> 8) & 255, hex & 255]);
};
_global.RGB2Hex = function (rgb) {
return(((rgb[0] << 16) | (rgb[1] << 8)) | rgb[2]);
};
SAVE_CAPSULE = ["CHECKPOINT", "PCLIVES", "PCHP", "PCEXP", "DIFFICULTY", "TIMER", "EXPTOTAL", "LIVESLOST", "RELICS", "RECORDS", "SWITCHES", "CLEAR", "GOT_RELICS", "SPOKEN"];
Diff_INITIAL_HP = [_root.MaxVidas, _root.MaxVidas, _root.MaxVidas];
Diff_INITIAL_LIVES = [9, 6, 3];
if (_root.lang == "es") {
RELIC_LIST = [["Espada Ligera", "Tu arma de cuerpor a cuerpo que te ayudara desde el comienzo a sortear las dificultades del castillo encantado."], ["Hacha Medieval", "Esta impresionante Hacha incrementara tu poder de ataque +1. Hara morir algunos enemigos con un solo ataque."], ["Tridente de Mano", "Es un arma de dioses. Usala con precaucion, esta incrementara tu poder de ataque +2. Te ayudara a derrotar al Dr.Kunas"], ["Sistema de Posicionamiento Global", "Este dispostivo te ayudara a saber donde estas. Usalo para averiguar donde estan las llaves y salas sin recorrer."], ["Snorkel turistico", "Si quieres ir bajo el agua necesitaras algo para mantener la respiracion. Esto te dara hasta 8 segundos para ir bajo el agua"], ["Camara de Buceo", "El traje perfecto para explorar la piscina de sangre. Puedes mantener la respiracion hasta 30 segundos."], ["Corazon", "Este corazon extra te ayudara a incrementar la cantidad de ataques enemigos que puedes resistir."], ["Pistola", "Tu pistola principal. Esto te dara un ataque de distancia, pero las balas no son limitadas, tendras que encontrar algunas."], ["Pistola Laser", "Esta pistola laser, te dara un mayor rango de ataque y un mayor poder de ataque."], ["Magnum de laboratorio", "La ultima Arma. Gran disparo, gran poder de ataque menor demora de disparo. Te ayudara mucho para eliminar algunos enemigos."], ["Cabeza de Drake", "Drake y Los Magos, con sobre 100 millones de visitas. Si aun no lo juegas hazlo ahora."], ["Cabeza de Tamus", "Tamus es nuestro personaje principal en 2 de nuestros juegos."], ["Salto de Pulga", "Con este item tendras un poder de salto de 7.5. Como una pulga."], ["Salto de Saltamontes", "Con este item tendras un poder de salto de 11. Con este item puedes explorar la otra mitad del castillo."], ["Salto de Canguro", "Con este item tendras un poder de salto de 20. Con este ya estas a un SALTO de derrotar al Dr.Kunas."], ["Corazon", "Este corazon extra te ayudara a incrementar la cantidad de ataques enemigos que puedes resistir."], ["Corazon", "Este corazon extra te ayudara a incrementar la cantidad de ataques enemigos que puedes resistir."], ["Corazon", "Este corazon extra te ayudara a incrementar la cantidad de ataques enemigos que puedes resistir."], ["Llave Dorada", "Esta llave abre los candados Dorados."], ["Llave Blanca", "Esta llave abre los candados Blancos."], ["Llave Verde", "Esta llave abre los candados Verdes."], ["Llave Roja", "Esta llave abre los candados Rojos."], ["Llave Gris", "Esta llave abre los candados Grises."], ["Llave Morada", "Esta llave abre los candados Morados."], ["Corazon", "Este corazon extra te ayudara a incrementar la cantidad de ataques enemigos que puedes resistir."]];
}
if (_root.lang == "en") {
RELIC_LIST = [["Scimitar", "Your main weapon. One slash will take some blood out of those zombies."], ["Hand Axe", "This awesome Axe will increase your power attack +1. Also will make some enemies die with just one slash."], ["Hand Trident", "The weapon of gods. Use with caution, this will increase your power attack by +2. Will help you to defeat Dr.Kunas"], ["GPS Device", "This device will help you out to know where you are. Use it to check for keys and see how many rooms still unexplored."], ["Snorkel", "If you want to go under water you need something to hold your breath. This will give you up to 8 seconds to go underwater"], ["Dry Suit", "The perfect suit to explore blood pool. You can hold your breath up to 30 seconds."], ["Extra Heart", "This extra Heart will help you to increase the damage you can get."], ["Gun", "Your main gun. This will give you range attack, but bullets are not limited you need to find some of them."], ["Laser Gun", "This Laser Gun will give you an increased fire rate, and extra gun power +1."], ["Magnum", "The ultimate weapon. Great shot, great power +2 and great shoot rate. This will help you a lot against some enemies"], ["Drake's Head", "Drake and the Wizards, has over 100millions views. If you still dont play it, do it now."], ["Tamus's Head", "Tamus is our main chrachter in two of our games, check it out."], ["Flea Jump", "With this item you will have 7.5 points of jump power. Like a flea."], ["GrassHopper Jump", "With this item you will have 11 points of jump power. You can explore the other half of the island with this."], ["Kangaroo Jump", "With this item you will have 20 points of jump power. You have the ultima jump upgrade. Go to defeat Dr.Kunas."], ["Extra Heart", "This extra Heart will help you to increase the damage you can get."], ["Extra Heart", "This extra Heart will help you to increase the damage you can get."], ["Extra Heart", "This extra Heart will help you to increase the damage you can get."], ["Extra Heart", "This extra Heart will help you to increase the damage you can get."], ["Golden Key", "This will open Golden Locks."], ["White Key", "This will open White Locks."], ["Green Key", "This will open Green Locks."], ["Red Key", "This will open Red Locks."], ["Grey Key", "This will open Grey Locks."], ["Purple Key", "This will open Purple Locks."], ["Extra Heart", "This extra Heart will help you to increase the damage you can get."]];
}
IncreaseTimer = function () {
if (((_root.PAUSED || (_root.GUI.conv._visible)) || (_root.cutfreeze)) || (_root.PC == null)) {
return(undefined);
}
_root.TIMER++;
_root.SHOWNTIMER = _root.hms(_root.TIMER);
_root.SO.data.ACHIEVEMENTS.TOTALS.TIME++;
_root.SO.flush();
_root.SHOWNTIME = SO.data.ACHIEVEMENTS.TOTALS.TIME;
_root.SHOWNTIME2 = (((Math.floor(_root.SHOWNTIME / 3600) + ":") + _00(Math.floor((_root.SHOWNTIME % 3600) / 60))) + ":") + _00(_root.SHOWNTIME % 60);
};
PAUSED = (cutfreeze = (CUTMODE = (BOSSMODE = false)));
sfx_id = 0;
SFXs = {};
if (MUTE == null) {
MUTE = false;
}
_root.createEmptyMovieClip("_sfxcont", 18);
if (_musicont == null) {
_root.createEmptyMovieClip("_musicont", 19);
MUSIC = new Sound(_musicont);
}
PD = 0;
PFXBMP = flash.display.BitmapData.loadBitmap("particle");
BOOMSHEET = flash.display.BitmapData.loadBitmap("explosion");
BUBBLESHEET = flash.display.BitmapData.loadBitmap("bubbles");
CHAPTER = 2;
if (_root.loadgame == true) {
STARTPOINT = (LEVEL_BEGINNING = ["lv2_0", 5, 4, {}]);
} else {
STARTPOINT = (LEVEL_BEGINNING = ["lvT_2", 8, 6, {}]);
}
EpisodeN = "Episode " + CHAPTER;
_quality = "LOW";
SO = SharedObject.getLocal("CP2b", "/");
if (SO.data.CHAPTER_ACHIEVEMENTS == null) {
SO.data.CHAPTER_ACHIEVEMENTS = new Array(5);
SO.data.CHAPTER_ACHIEVEMENTS[CHAPTER] = Omniclone(SO.data.ACHIEVEMENTS);
}
if (SO.data.CHAPTER_ACHIEVEMENTS[CHAPTER] == null) {
SO.data.CHAPTER_ACHIEVEMENTS[CHAPTER] = {TOTALS:{COMPLETE:0, TIME:0, DEATHS:0, JUMPS:0, SHOTS:0, SLASHES:0}, BESTS:{}};
}
SO.data.ACHIEVEMENTS = SO.data.CHAPTER_ACHIEVEMENTS[CHAPTER];
if (SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER] == null) {
SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER] = {RANK:null, TIME:null, DEATHS:null};
}
if (SO.data.ACHIEVEMENTS.GOT == null) {
SO.data.ACHIEVEMENTS.GOT = new Array(21);
}
BTMBAR.BEST_RANK = (BEST_RANK = ((SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].RANK == null) ? "-" : (ShowRank(SO.data.ACHIEVEMENTS.BESTS["CH" + CHAPTER].RANK))));
if (SO.data.KEYS) {
_global.KEYS = SO.data.KEYS;
}
LEVELINKS = ["NO", "NO", "NO", "NO", "NO"];
stop();
if (_root.DIFFICULTY == 0) {
PCLIVES = 9;
}
if (_root.DIFFICULTY == 1) {
PCLIVES = 5;
}
if (_root.DIFFICULTY == 2) {
PCLIVES = 3;
}
PCHP = [_root.vidas, _root.MaxVidas];
PCEXP = 0;
SWITCHES = {};
CLEAR = {};
GOT_RELICS = {};
SPOKEN = {};
GOTOCUTSCENE = null;
area = null;
if (SO.data.CAPSULE.pop == null) {
SO.data.CAPSULE = new Array(5);
}
if (SO.data.ReadReadMe) {
BTMBAR.PleaseReadMe._visible = false;
} else {
SO.data.ReadReadMe = true;
SO.flush();
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("menu");
}
_root._quality = "BEST";
ag.onRollOver = function () {
ag.gotoAndStop(2);
};
ag.onRollOut = function () {
ag.gotoAndStop(1);
};
if (SO.data.LagAlarm == null) {
SO.data.LagAlarm = true;
SO.flush();
_root.attachMovie("LagAlarm", "LagAlarm", 6789014);
LagAlarm.CloseBtn.onRelease = function () {
this._parent.removeMovieClip();
};
System.showSettings(1);
}
playbt.onRollOver = function () {
playbt.gotoAndStop(2);
_root.playSFX("blip");
};
playbt.onRollOut = function () {
playbt.gotoAndStop(1);
};
options.onRollOver = function () {
options.gotoAndStop(2);
_root.playSFX("blip");
};
options.onRollOut = function () {
options.gotoAndStop(1);
};
credits.onRollOver = function () {
credits.gotoAndStop(2);
_root.playSFX("blip");
};
credits.onRollOut = function () {
credits.gotoAndStop(1);
};
howto.onRollOver = function () {
howto.gotoAndStop(2);
_root.playSFX("blip");
};
howto.onRollOut = function () {
howto.gotoAndStop(1);
};
zombie.onRollOver = function () {
zombie.gotoAndStop(2);
_root.playSFX("blip");
};
zombie.onRollOut = function () {
zombie.gotoAndStop(1);
};
likeus.onRollOver = function () {
likeus.gotoAndStop(2);
_root.playSFX("blip");
};
likeus.onRollOut = function () {
likeus.gotoAndStop(1);
};
moregames.onRollOver = function () {
moregames.gotoAndStop(2);
_root.playSFX("blip");
};
moregames.onRollOut = function () {
moregames.gotoAndStop(1);
};
Instance of Symbol 102 MovieClip "playbt" in Frame 3
on (release) {
_root.playSFX("boton");
_root.gotoAndStop(4);
}
Instance of Symbol 468 MovieClip "options" in Frame 3
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("options");
}
Instance of Symbol 640 MovieClip "credits" in Frame 3
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("credits");
}
Instance of Symbol 644 MovieClip "howto" in Frame 3
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("howto");
}
Instance of Symbol 657 MovieClip "zombie" in Frame 3
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("zombiepedia");
}
Instance of Symbol 661 MovieClip "likeus" in Frame 3
on (release) {
_root.playSFX("boton");
getURL ("http://www.facebook.com/ArmorGames", _blank);
}
Instance of Symbol 665 MovieClip "moregames" in Frame 3
on (release) {
_root.playSFX("boton");
getURL ("http://armor.ag/MoreGames", _blank);
}
Instance of Symbol 66 MovieClip "ag" in Frame 3
on (release) {
getURL ("http://armor.ag/MoreGames", _blank);
}
Frame 4
var savefile = SharedObject.getLocal("CP_1");
_root.llave1 = savefile.data.llave1;
loadbt._alpha = 100;
loadbt.onPress = function () {
if (_root.llave1 == false) {
_root.loadgame = true;
var _local2 = SharedObject.getLocal("CP_1");
_root.scores = _local2.data.scores;
_root.expetotal = _local2.data.expetotal;
_root.KILLS = _local2.data.kills;
_root.coins = _local2.data.coins;
_root.llave1 = _local2.data.llave1;
_root.llave2 = _local2.data.llave2;
_root.llave3 = _local2.data.llave3;
_root.llave4 = _local2.data.llave4;
_root.llave5 = _local2.data.llave5;
_root.llaveT = _local2.data.llaveT;
_root.MaxVidas = _local2.data.MaxVidas;
_root.vidas = _local2.data.MaxVidas;
_root.salto1 = _local2.data.salto1;
_root.salto2 = _local2.data.salto2;
_root.salto3 = _local2.data.salto3;
_root.arma1 = _local2.data.arma1;
_root.arma = _local2.data.arma;
_root.arma2 = _local2.data.arma2;
_root.arma3 = _local2.data.arma3;
_root.pistola = _local2.data.pistola;
_root.pistola1 = _local2.data.pistola1;
_root.pistola2 = _local2.data.pistola2;
_root.pistola3 = _local2.data.pistola3;
_root.snorkel1 = _local2.data.snorkel1;
_root.snorkel2 = _local2.data.snorkel2;
_root.corazon1 = _local2.data.corazon1;
_root.corazon2 = _local2.data.corazon2;
_root.corazon3 = _local2.data.corazon3;
_root.corazon4 = _local2.data.corazon4;
_root.corazon5 = _local2.data.corazon5;
_root.corazon6 = _local2.data.corazon6;
_root.corazon7 = _local2.data.corazon7;
_root.rango = _local2.data.rango;
_root.DIFFICULTY = _local2.data.dificultad;
_root.PCLIVES = _local2.data.anibalvidas;
_root.drake = _local2.data.drake;
_root.tamus = _local2.data.tamus;
_root.GPS = _local2.data.GPS;
_root.heartlost = _local2.data.heartlost;
_root.r2 = _local2.data.r2;
_root.r3 = _local2.data.r3;
_root.r4 = _local2.data.r4;
_root.r5 = _local2.data.r5;
_root.r6 = _local2.data.r6;
_root.r8 = _local2.data.r8;
_root.r9 = _local2.data.r9;
_root.r10 = _local2.data.r10;
_root.r11 = _local2.data.r11;
_root.r12 = _local2.data.r12;
_root.r14 = _local2.data.r14;
_root.r15 = _local2.data.r15;
_root.r16 = _local2.data.r16;
_root.r17 = _local2.data.r17;
_root.r18 = _local2.data.r18;
_root.r20 = _local2.data.r20;
_root.r21 = _local2.data.r21;
_root.r22 = _local2.data.r22;
_root.r23 = _local2.data.r23;
_root.r24 = _local2.data.r24;
_root.r25 = _local2.data.r25;
_root.r26 = _local2.data.r26;
_root.r27 = _local2.data.r27;
_root.r28 = _local2.data.r28;
_root.r29 = _local2.data.r29;
_root.r30 = _local2.data.r30;
_root.r32 = _local2.data.r32;
_root.r33 = _local2.data.r33;
_root.r34 = _local2.data.r34;
_root.r35 = _local2.data.r35;
_root.r36 = _local2.data.r36;
_root.r37 = _local2.data.r37;
_root.r38 = _local2.data.r38;
_root.r39 = _local2.data.r39;
_root.r40 = _local2.data.r40;
_root.r41 = _local2.data.r41;
_root.r42 = _local2.data.r42;
_root.r43 = _local2.data.r43;
_root.r44 = _local2.data.r44;
_root.r45 = _local2.data.r45;
_root.r46 = _local2.data.r46;
_root.r47 = _local2.data.r47;
_root.r48 = _local2.data.r48;
_root.r49 = _local2.data.r49;
_root.r50 = _local2.data.r50;
_root.r51 = _local2.data.r51;
_root.r52 = _local2.data.r52;
_root.r53 = _local2.data.r53;
_root.r54 = _local2.data.r54;
_root.r55 = _local2.data.r55;
_root.r56 = _local2.data.r56;
_root.r57 = _local2.data.r57;
_root.r58 = _local2.data.r58;
_root.r59 = _local2.data.r59;
_root.r60 = _local2.data.r60;
_root.r61 = _local2.data.r61;
_root.r62 = _local2.data.r62;
_root.r63 = _local2.data.r63;
_root.r64 = _local2.data.r64;
_root.r65 = _local2.data.r65;
_root.r66 = _local2.data.r66;
_root.r67 = _local2.data.r67;
_root.r68 = _local2.data.r68;
_root.r71 = _local2.data.r71;
_root.r72 = _local2.data.r72;
_root.r73 = _local2.data.r73;
_root.r74 = _local2.data.r74;
_root.r75 = _local2.data.r75;
_root.r76 = _local2.data.r76;
_root.r77 = _local2.data.r77;
_root.r78 = _local2.data.r78;
_root.r80 = _local2.data.r80;
_root.r81 = _local2.data.r81;
_root.r82 = _local2.data.r82;
_root.r83 = _local2.data.r83;
_root.r85 = _local2.data.r85;
_root.r86 = _local2.data.r86;
_root.r87 = _local2.data.r87;
_root.r88 = _local2.data.r88;
_root.r89 = _local2.data.r89;
_root.r91 = _local2.data.r91;
_root.r92 = _local2.data.r92;
_root.r93 = _local2.data.r93;
_root.r97 = _local2.data.r97;
_root.r99 = _local2.data.r99;
_root.r103 = _local2.data.r103;
_root.r104 = _local2.data.r104;
_root.r105 = _local2.data.r105;
_root.MUSIC.stop();
if (_root.DIFFICULTY == 0) {
PCLIVES = 9;
}
if (_root.DIFFICULTY == 1) {
PCLIVES = 5;
}
if (_root.DIFFICULTY == 2) {
PCLIVES = 3;
}
for (var _local3 in _root.SO.data.CAPSULE[_root.CHAPTER]) {
_root[_local3] = _root.SO.data.CAPSULE[_root.CHAPTER][_local3];
}
PCHP = [_root.MaxVidas, _root.MaxVidas];
_root.PCHP[0] = _root.PCHP[1];
_root.RECORDS.LOADED = true;
_root.OFFSET = [_root.CHECKPOINT[0], Math.floor(_root.CHECKPOINT[1] / STAGE_TW), Math.floor(_root.CHECKPOINT[2] / STAGE_TH)];
_root.cont._x = (-STAGEW) * _root.OFFSET[1];
_root.cont._y = (-STAGEH) * _root.OFFSET[2];
_root.gotoAndStop(_root.CHECKPOINT[0]);
} else {
loadbt.onPress = function () {
_root.playSFX("botonb");
};
loadbt._alpha = 30;
}
};
playbt.onPress = function () {
_root.gotoAndStop(6);
};
Frame 5
stop();
_root.playMusic("intro");
Frame 6
easybt.onPress = function () {
PCLIVES = 9;
_root.DIFFICULTY = 0;
_root.loadgame = false;
var _local2 = SharedObject.getLocal("CP_1");
_local2.clear();
_local2.flush();
_local2 = SharedObject.getLocal("CP_1");
_root.r2 = true;
_root.r3 = true;
_root.r4 = true;
_root.r5 = true;
_root.r6 = true;
_root.r8 = true;
_root.r9 = true;
_root.r10 = true;
_root.r11 = true;
_root.r12 = true;
_root.r14 = true;
_root.r15 = true;
_root.r16 = true;
_root.r17 = true;
_root.r18 = true;
_root.r20 = true;
_root.r21 = true;
_root.r22 = true;
_root.r23 = true;
_root.r24 = true;
_root.r25 = true;
_root.r26 = true;
_root.r27 = true;
_root.r28 = true;
_root.r29 = true;
_root.r30 = true;
_root.r32 = true;
_root.r33 = true;
_root.r34 = true;
_root.r35 = true;
_root.r36 = true;
_root.r37 = true;
_root.r38 = true;
_root.r39 = true;
_root.r40 = true;
_root.r41 = true;
_root.r42 = true;
_root.r43 = true;
_root.r44 = true;
_root.r45 = true;
_root.r46 = true;
_root.r47 = true;
_root.r48 = true;
_root.r49 = true;
_root.r50 = true;
_root.r51 = true;
_root.r52 = true;
_root.r53 = true;
_root.r54 = true;
_root.r55 = true;
_root.r56 = true;
_root.r57 = true;
_root.r58 = true;
_root.r59 = true;
_root.r60 = true;
_root.r61 = true;
_root.r62 = true;
_root.r63 = true;
_root.r64 = true;
_root.r65 = true;
_root.r66 = true;
_root.r67 = true;
_root.r68 = true;
_root.r71 = true;
_root.r72 = true;
_root.r73 = true;
_root.r74 = true;
_root.r75 = true;
_root.r76 = true;
_root.r77 = true;
_root.r78 = true;
_root.r80 = true;
_root.r81 = true;
_root.r82 = true;
_root.r83 = true;
_root.r85 = true;
_root.r86 = true;
_root.r87 = true;
_root.r88 = true;
_root.r89 = true;
_root.r91 = true;
_root.r92 = true;
_root.r93 = true;
_root.r97 = true;
_root.r99 = true;
_root.r103 = true;
_root.r104 = true;
_root.r105 = true;
_root.playerName = "player";
_root.llave1 = true;
_root.llave2 = true;
_root.llave3 = true;
_root.llave4 = true;
_root.llave5 = true;
_root.llaveT = true;
_root.MaxVidas = 5;
_root.pistola1 = false;
_root.arma1 = false;
_root.pistola2 = false;
_root.arma2 = false;
_root.pistola3 = false;
_root.arma3 = false;
_root.corazon1 = false;
_root.corazon2 = false;
_root.corazon3 = false;
_root.corazon4 = false;
_root.corazon5 = false;
_root.corazon6 = false;
_root.corazon7 = false;
_root.snorkel1 = false;
_root.snorkel2 = false;
_root.GPS = false;
_root.salto1 = false;
_root.salto2 = false;
_root.salto3 = false;
_root.drake = false;
_root.tamus = false;
_root.arma = 1;
_root.pistola = 1;
_root.KILLS = 0;
_root.coins = 0;
_root.expetotal = 0;
_root.rango = 0;
_local2.data.rango = _root.rango;
_local2.data.expetotal = _root.expetotal;
_local2.data.coins = _root.coins;
_local2.data.kills = _root.KILLS;
_local2.data.dificultad = _root.DIFFICULTY;
_local2.data.llave1 = _root.llave1;
_local2.data.llave2 = _root.llave2;
_local2.data.llave3 = _root.llave3;
_local2.data.llave4 = _root.llave4;
_local2.data.llave5 = _root.llave5;
_local2.data.llaveT = _root.llaveT;
_local2.data.MaxVidas = _root.MaxVidas;
_local2.data.salto1 = _root.salto1;
_local2.data.salto2 = _root.salto2;
_local2.data.salto3 = _root.salto3;
_local2.data.arma = _root.arma;
_local2.data.arma1 = _root.arma1;
_local2.data.arma2 = _root.arma2;
_local2.data.arma3 = _root.arma3;
_local2.data.pistola = _root.pistola;
_local2.data.pistola1 = _root.pistola1;
_local2.data.pistola2 = _root.pistola2;
_local2.data.pistola3 = _root.pistola3;
_local2.data.snorkel1 = _root.snorkel1;
_local2.data.snorkel2 = _root.snorkel2;
_local2.data.corazon1 = _root.corazon1;
_local2.data.corazon2 = _root.corazon2;
_local2.data.corazon3 = _root.corazon3;
_local2.data.corazon4 = _root.corazon4;
_local2.data.corazon5 = _root.corazon5;
_local2.data.corazon6 = _root.corazon6;
_local2.data.corazon7 = _root.corazon7;
_local2.data.drake = _root.drake;
_local2.data.tamus = _root.tamus;
_local2.data.GPS = _root.GPS;
_local2.data.anibalvidas = _root.PCLIVES;
_local2.data.playerName = _root.playerName;
_local2.data.r2 = _root.r2;
_local2.data.r3 = _root.r3;
_local2.data.r4 = _root.r4;
_local2.data.r5 = _root.r5;
_local2.data.r6 = _root.r6;
_local2.data.r8 = _root.r8;
_local2.data.r9 = _root.r5;
_local2.data.r10 = _root.r10;
_local2.data.r11 = _root.r11;
_local2.data.r12 = _root.r12;
_local2.data.r13 = _root.r13;
_local2.data.r14 = _root.r14;
_local2.data.r15 = _root.r15;
_local2.data.r16 = _root.r16;
_local2.data.r17 = _root.r17;
_local2.data.r18 = _root.r18;
_local2.data.r20 = _root.r20;
_local2.data.r21 = _root.r21;
_local2.data.r22 = _root.r22;
_local2.data.r23 = _root.r23;
_local2.data.r24 = _root.r24;
_local2.data.r25 = _root.r25;
_local2.data.r26 = _root.r26;
_local2.data.r27 = _root.r27;
_local2.data.r28 = _root.r28;
_local2.data.r29 = _root.r29;
_local2.data.r30 = _root.r30;
_local2.data.r32 = _root.r32;
_local2.data.r33 = _root.r33;
_local2.data.r34 = _root.r34;
_local2.data.r35 = _root.r35;
_local2.data.r36 = _root.r36;
_local2.data.r37 = _root.r37;
_local2.data.r38 = _root.r38;
_local2.data.r39 = _root.r39;
_local2.data.r40 = _root.r40;
_local2.data.r41 = _root.r41;
_local2.data.r42 = _root.r42;
_local2.data.r43 = _root.r43;
_local2.data.r44 = _root.r44;
_local2.data.r45 = _root.r45;
_local2.data.r46 = _root.r46;
_local2.data.r47 = _root.r47;
_local2.data.r48 = _root.r48;
_local2.data.r49 = _root.r49;
_local2.data.r50 = _root.r50;
_local2.data.r51 = _root.r51;
_local2.data.r52 = _root.r52;
_local2.data.r53 = _root.r53;
_local2.data.r54 = _root.r54;
_local2.data.r55 = _root.r55;
_local2.data.r56 = _root.r56;
_local2.data.r57 = _root.r57;
_local2.data.r58 = _root.r58;
_local2.data.r59 = _root.r59;
_local2.data.r60 = _root.r60;
_local2.data.r61 = _root.r61;
_local2.data.r62 = _root.r62;
_local2.data.r63 = _root.r63;
_local2.data.r64 = _root.r64;
_local2.data.r65 = _root.r65;
_local2.data.r66 = _root.r66;
_local2.data.r67 = _root.r67;
_local2.data.r68 = _root.r68;
_local2.data.r71 = _root.r71;
_local2.data.r72 = _root.r72;
_local2.data.r73 = _root.r73;
_local2.data.r74 = _root.r74;
_local2.data.r75 = _root.r75;
_local2.data.r76 = _root.r76;
_local2.data.r77 = _root.r77;
_local2.data.r78 = _root.r78;
_local2.data.r80 = _root.r80;
_local2.data.r81 = _root.r81;
_local2.data.r82 = _root.r82;
_local2.data.r83 = _root.r83;
_local2.data.r84 = _root.r84;
_local2.data.r85 = _root.r85;
_local2.data.r86 = _root.r86;
_local2.data.r87 = _root.r87;
_local2.data.r88 = _root.r88;
_local2.data.r89 = _root.r89;
_local2.data.r91 = _root.r91;
_local2.data.r92 = _root.r92;
_local2.data.r93 = _root.r93;
_local2.data.r97 = _root.r97;
_local2.data.r99 = _root.r99;
_local2.data.r103 = _root.r103;
_local2.data.r104 = _root.r104;
_local2.data.r105 = _root.r105;
_local2.flush();
SO.data.CAPSULE[_root.CHAPTER] = null;
SO.data.RELICS = null;
var _local3 = SharedObject.getLocal("CP2b", "/");
_root.MUSIC.stop();
_local3.flush();
_root.playSFX("boton");
_root.vidas = _root.MaxVidas;
_root.gotoAndStop(5);
};
normalbt.onPress = function () {
PCLIVES = 5;
_root.DIFFICULTY = 1;
_root.loadgame = false;
var _local2 = SharedObject.getLocal("CP_1");
_local2.clear();
_local2.flush();
_local2 = SharedObject.getLocal("CP_1");
_root.r2 = true;
_root.r3 = true;
_root.r4 = true;
_root.r5 = true;
_root.r6 = true;
_root.r8 = true;
_root.r9 = true;
_root.r10 = true;
_root.r11 = true;
_root.r12 = true;
_root.r14 = true;
_root.r15 = true;
_root.r16 = true;
_root.r17 = true;
_root.r18 = true;
_root.r20 = true;
_root.r21 = true;
_root.r22 = true;
_root.r23 = true;
_root.r24 = true;
_root.r25 = true;
_root.r26 = true;
_root.r27 = true;
_root.r28 = true;
_root.r29 = true;
_root.r30 = true;
_root.r32 = true;
_root.r33 = true;
_root.r34 = true;
_root.r35 = true;
_root.r36 = true;
_root.r37 = true;
_root.r38 = true;
_root.r39 = true;
_root.r40 = true;
_root.r41 = true;
_root.r42 = true;
_root.r43 = true;
_root.r44 = true;
_root.r45 = true;
_root.r46 = true;
_root.r47 = true;
_root.r48 = true;
_root.r49 = true;
_root.r50 = true;
_root.r51 = true;
_root.r52 = true;
_root.r53 = true;
_root.r54 = true;
_root.r55 = true;
_root.r56 = true;
_root.r57 = true;
_root.r58 = true;
_root.r59 = true;
_root.r60 = true;
_root.r61 = true;
_root.r62 = true;
_root.r63 = true;
_root.r64 = true;
_root.r65 = true;
_root.r66 = true;
_root.r67 = true;
_root.r68 = true;
_root.r71 = true;
_root.r72 = true;
_root.r73 = true;
_root.r74 = true;
_root.r75 = true;
_root.r76 = true;
_root.r77 = true;
_root.r78 = true;
_root.r80 = true;
_root.r81 = true;
_root.r82 = true;
_root.r83 = true;
_root.r85 = true;
_root.r86 = true;
_root.r87 = true;
_root.r88 = true;
_root.r89 = true;
_root.r91 = true;
_root.r92 = true;
_root.r93 = true;
_root.r97 = true;
_root.r99 = true;
_root.r103 = true;
_root.r104 = true;
_root.r105 = true;
_root.playerName = "player";
_root.llave1 = true;
_root.llave2 = true;
_root.llave3 = true;
_root.llave4 = true;
_root.llave5 = true;
_root.llaveT = true;
_root.MaxVidas = 4;
_root.pistola1 = false;
_root.arma1 = false;
_root.pistola2 = false;
_root.arma2 = false;
_root.pistola3 = false;
_root.arma3 = false;
_root.corazon1 = false;
_root.corazon2 = false;
_root.corazon3 = false;
_root.corazon4 = false;
_root.corazon5 = false;
_root.corazon6 = false;
_root.corazon7 = false;
_root.snorkel1 = false;
_root.snorkel2 = false;
_root.GPS = false;
_root.salto1 = false;
_root.salto2 = false;
_root.salto3 = false;
_root.drake = false;
_root.tamus = false;
_root.arma = 1;
_root.pistola = 1;
_root.coins = 0;
_root.KILLS = 0;
_root.expetotal = 0;
_root.rango = 0;
_local2.data.rango = _root.rango;
_local2.data.expetotal = _root.expetotal;
_local2.data.coins = _root.coins;
_local2.data.kills = _root.KILLS;
_local2.data.dificultad = _root.DIFFICULTY;
_local2.data.llave1 = _root.llave1;
_local2.data.llave2 = _root.llave2;
_local2.data.llave3 = _root.llave3;
_local2.data.llave4 = _root.llave4;
_local2.data.llave5 = _root.llave5;
_local2.data.llaveT = _root.llaveT;
_local2.data.MaxVidas = _root.MaxVidas;
_local2.data.salto1 = _root.salto1;
_local2.data.salto2 = _root.salto2;
_local2.data.salto3 = _root.salto3;
_local2.data.arma = _root.arma;
_local2.data.arma1 = _root.arma1;
_local2.data.arma2 = _root.arma2;
_local2.data.arma3 = _root.arma3;
_local2.data.pistola = _root.pistola;
_local2.data.pistola1 = _root.pistola1;
_local2.data.pistola2 = _root.pistola2;
_local2.data.pistola3 = _root.pistola3;
_local2.data.snorkel1 = _root.snorkel1;
_local2.data.snorkel2 = _root.snorkel2;
_local2.data.corazon1 = _root.corazon1;
_local2.data.corazon2 = _root.corazon2;
_local2.data.corazon3 = _root.corazon3;
_local2.data.corazon4 = _root.corazon4;
_local2.data.corazon5 = _root.corazon5;
_local2.data.corazon6 = _root.corazon6;
_local2.data.corazon7 = _root.corazon7;
_local2.data.drake = _root.drake;
_local2.data.tamus = _root.tamus;
_local2.data.GPS = _root.GPS;
_local2.data.playerName = _root.playerName;
_local2.data.r3 = _root.r3;
_local2.data.r4 = _root.r4;
_local2.data.r5 = _root.r5;
_local2.data.r6 = _root.r6;
_local2.data.r8 = _root.r8;
_local2.data.r9 = _root.r5;
_local2.data.r10 = _root.r10;
_local2.data.r11 = _root.r11;
_local2.data.r12 = _root.r12;
_local2.data.r13 = _root.r13;
_local2.data.r14 = _root.r14;
_local2.data.r15 = _root.r15;
_local2.data.r16 = _root.r16;
_local2.data.r17 = _root.r17;
_local2.data.r18 = _root.r18;
_local2.data.r20 = _root.r20;
_local2.data.r21 = _root.r21;
_local2.data.r22 = _root.r22;
_local2.data.r23 = _root.r23;
_local2.data.r24 = _root.r24;
_local2.data.r25 = _root.r25;
_local2.data.r26 = _root.r26;
_local2.data.r27 = _root.r27;
_local2.data.r28 = _root.r28;
_local2.data.r29 = _root.r29;
_local2.data.r30 = _root.r30;
_local2.data.r32 = _root.r32;
_local2.data.r33 = _root.r33;
_local2.data.r34 = _root.r34;
_local2.data.r35 = _root.r35;
_local2.data.r36 = _root.r36;
_local2.data.r37 = _root.r37;
_local2.data.r38 = _root.r38;
_local2.data.r39 = _root.r39;
_local2.data.r40 = _root.r40;
_local2.data.r41 = _root.r41;
_local2.data.r42 = _root.r42;
_local2.data.r43 = _root.r43;
_local2.data.r44 = _root.r44;
_local2.data.r45 = _root.r45;
_local2.data.r46 = _root.r46;
_local2.data.r47 = _root.r47;
_local2.data.r48 = _root.r48;
_local2.data.r49 = _root.r49;
_local2.data.r50 = _root.r50;
_local2.data.r51 = _root.r51;
_local2.data.r52 = _root.r52;
_local2.data.r53 = _root.r53;
_local2.data.r54 = _root.r54;
_local2.data.r55 = _root.r55;
_local2.data.r56 = _root.r56;
_local2.data.r57 = _root.r57;
_local2.data.r58 = _root.r58;
_local2.data.r59 = _root.r59;
_local2.data.r60 = _root.r60;
_local2.data.r61 = _root.r61;
_local2.data.r62 = _root.r62;
_local2.data.r63 = _root.r63;
_local2.data.r64 = _root.r64;
_local2.data.r65 = _root.r65;
_local2.data.r66 = _root.r66;
_local2.data.r67 = _root.r67;
_local2.data.r68 = _root.r68;
_local2.data.r71 = _root.r71;
_local2.data.r72 = _root.r72;
_local2.data.r73 = _root.r73;
_local2.data.r74 = _root.r74;
_local2.data.r75 = _root.r75;
_local2.data.r76 = _root.r76;
_local2.data.r77 = _root.r77;
_local2.data.r78 = _root.r78;
_local2.data.r80 = _root.r80;
_local2.data.r81 = _root.r81;
_local2.data.r82 = _root.r82;
_local2.data.r83 = _root.r83;
_local2.data.r84 = _root.r84;
_local2.data.r85 = _root.r85;
_local2.data.r86 = _root.r86;
_local2.data.r87 = _root.r87;
_local2.data.r88 = _root.r88;
_local2.data.r89 = _root.r89;
_local2.data.r91 = _root.r91;
_local2.data.r92 = _root.r92;
_local2.data.r93 = _root.r93;
_local2.data.r97 = _root.r97;
_local2.data.r99 = _root.r99;
_local2.data.r103 = _root.r103;
_local2.data.r104 = _root.r104;
_local2.data.r105 = _root.r105;
_local2.flush();
SO.data.CAPSULE[_root.CHAPTER] = null;
SO.data.RELICS = null;
var _local3 = SharedObject.getLocal("CP2b", "/");
_root.MUSIC.stop();
_local3.flush();
_root.playSFX("boton");
_root.vidas = _root.MaxVidas;
_root.gotoAndStop(5);
};
hardbt.onPress = function () {
PCLIVES = 3;
_root.DIFFICULTY = 2;
_root.loadgame = false;
var _local2 = SharedObject.getLocal("CP_1");
_local2.clear();
_local2.flush();
_local2 = SharedObject.getLocal("CP_1");
_root.r2 = true;
_root.r3 = true;
_root.r4 = true;
_root.r5 = true;
_root.r6 = true;
_root.r8 = true;
_root.r9 = true;
_root.r10 = true;
_root.r11 = true;
_root.r12 = true;
_root.r14 = true;
_root.r15 = true;
_root.r16 = true;
_root.r17 = true;
_root.r18 = true;
_root.r20 = true;
_root.r21 = true;
_root.r22 = true;
_root.r23 = true;
_root.r24 = true;
_root.r25 = true;
_root.r26 = true;
_root.r27 = true;
_root.r28 = true;
_root.r29 = true;
_root.r30 = true;
_root.r32 = true;
_root.r33 = true;
_root.r34 = true;
_root.r35 = true;
_root.r36 = true;
_root.r37 = true;
_root.r38 = true;
_root.r39 = true;
_root.r40 = true;
_root.r41 = true;
_root.r42 = true;
_root.r43 = true;
_root.r44 = true;
_root.r45 = true;
_root.r46 = true;
_root.r47 = true;
_root.r48 = true;
_root.r49 = true;
_root.r50 = true;
_root.r51 = true;
_root.r52 = true;
_root.r53 = true;
_root.r54 = true;
_root.r55 = true;
_root.r56 = true;
_root.r57 = true;
_root.r58 = true;
_root.r59 = true;
_root.r60 = true;
_root.r61 = true;
_root.r62 = true;
_root.r63 = true;
_root.r64 = true;
_root.r65 = true;
_root.r66 = true;
_root.r67 = true;
_root.r68 = true;
_root.r71 = true;
_root.r72 = true;
_root.r73 = true;
_root.r74 = true;
_root.r75 = true;
_root.r76 = true;
_root.r77 = true;
_root.r78 = true;
_root.r80 = true;
_root.r81 = true;
_root.r82 = true;
_root.r83 = true;
_root.r85 = true;
_root.r86 = true;
_root.r87 = true;
_root.r88 = true;
_root.r89 = true;
_root.r91 = true;
_root.r92 = true;
_root.r93 = true;
_root.r97 = true;
_root.r99 = true;
_root.r103 = true;
_root.r104 = true;
_root.r105 = true;
_root.playerName = "player";
_root.llave1 = true;
_root.llave2 = true;
_root.llave3 = true;
_root.llave4 = true;
_root.llave5 = true;
_root.llaveT = true;
_root.MaxVidas = 2;
_root.pistola1 = false;
_root.arma1 = false;
_root.pistola2 = false;
_root.arma2 = false;
_root.pistola3 = false;
_root.arma3 = false;
_root.corazon1 = false;
_root.corazon2 = false;
_root.corazon3 = false;
_root.corazon4 = false;
_root.corazon5 = false;
_root.corazon6 = false;
_root.corazon7 = false;
_root.snorkel1 = false;
_root.snorkel2 = false;
_root.GPS = false;
_root.salto1 = false;
_root.salto2 = false;
_root.salto3 = false;
_root.drake = false;
_root.tamus = false;
_root.arma = 1;
_root.pistola = 1;
_root.coins = 0;
_root.KILLS = 0;
_root.expetotal = 0;
_root.rango = 0;
_local2.data.rango = _root.rango;
_local2.data.expetotal = _root.expetotal;
_local2.data.coins = _root.coins;
_local2.data.kills = _root.KILLS;
_local2.data.dificultad = _root.DIFFICULTY;
_local2.data.llave1 = _root.llave1;
_local2.data.llave2 = _root.llave2;
_local2.data.llave3 = _root.llave3;
_local2.data.llave4 = _root.llave4;
_local2.data.llave5 = _root.llave5;
_local2.data.llaveT = _root.llaveT;
_local2.data.MaxVidas = _root.MaxVidas;
_local2.data.salto1 = _root.salto1;
_local2.data.salto2 = _root.salto2;
_local2.data.salto3 = _root.salto3;
_local2.data.arma = _root.arma;
_local2.data.arma1 = _root.arma1;
_local2.data.arma2 = _root.arma2;
_local2.data.arma3 = _root.arma3;
_local2.data.pistola = _root.pistola;
_local2.data.pistola1 = _root.pistola1;
_local2.data.pistola2 = _root.pistola2;
_local2.data.pistola3 = _root.pistola3;
_local2.data.snorkel1 = _root.snorkel1;
_local2.data.snorkel2 = _root.snorkel2;
_local2.data.corazon1 = _root.corazon1;
_local2.data.corazon2 = _root.corazon2;
_local2.data.corazon3 = _root.corazon3;
_local2.data.corazon4 = _root.corazon4;
_local2.data.corazon5 = _root.corazon5;
_local2.data.corazon6 = _root.corazon6;
_local2.data.corazon7 = _root.corazon7;
_local2.data.drake = _root.drake;
_local2.data.tamus = _root.tamus;
_local2.data.GPS = _root.GPS;
_local2.data.playerName = _root.playerName;
_local2.data.r3 = _root.r3;
_local2.data.r4 = _root.r4;
_local2.data.r5 = _root.r5;
_local2.data.r6 = _root.r6;
_local2.data.r8 = _root.r8;
_local2.data.r9 = _root.r5;
_local2.data.r10 = _root.r10;
_local2.data.r11 = _root.r11;
_local2.data.r12 = _root.r12;
_local2.data.r13 = _root.r13;
_local2.data.r14 = _root.r14;
_local2.data.r15 = _root.r15;
_local2.data.r16 = _root.r16;
_local2.data.r17 = _root.r17;
_local2.data.r18 = _root.r18;
_local2.data.r20 = _root.r20;
_local2.data.r21 = _root.r21;
_local2.data.r22 = _root.r22;
_local2.data.r23 = _root.r23;
_local2.data.r24 = _root.r24;
_local2.data.r25 = _root.r25;
_local2.data.r26 = _root.r26;
_local2.data.r27 = _root.r27;
_local2.data.r28 = _root.r28;
_local2.data.r29 = _root.r29;
_local2.data.r30 = _root.r30;
_local2.data.r32 = _root.r32;
_local2.data.r33 = _root.r33;
_local2.data.r34 = _root.r34;
_local2.data.r35 = _root.r35;
_local2.data.r36 = _root.r36;
_local2.data.r37 = _root.r37;
_local2.data.r38 = _root.r38;
_local2.data.r39 = _root.r39;
_local2.data.r40 = _root.r40;
_local2.data.r41 = _root.r41;
_local2.data.r42 = _root.r42;
_local2.data.r43 = _root.r43;
_local2.data.r44 = _root.r44;
_local2.data.r45 = _root.r45;
_local2.data.r46 = _root.r46;
_local2.data.r47 = _root.r47;
_local2.data.r48 = _root.r48;
_local2.data.r49 = _root.r49;
_local2.data.r50 = _root.r50;
_local2.data.r51 = _root.r51;
_local2.data.r52 = _root.r52;
_local2.data.r53 = _root.r53;
_local2.data.r54 = _root.r54;
_local2.data.r55 = _root.r55;
_local2.data.r56 = _root.r56;
_local2.data.r57 = _root.r57;
_local2.data.r58 = _root.r58;
_local2.data.r59 = _root.r59;
_local2.data.r60 = _root.r60;
_local2.data.r61 = _root.r61;
_local2.data.r62 = _root.r62;
_local2.data.r63 = _root.r63;
_local2.data.r64 = _root.r64;
_local2.data.r65 = _root.r65;
_local2.data.r66 = _root.r66;
_local2.data.r67 = _root.r67;
_local2.data.r68 = _root.r68;
_local2.data.r71 = _root.r71;
_local2.data.r72 = _root.r72;
_local2.data.r73 = _root.r73;
_local2.data.r74 = _root.r74;
_local2.data.r75 = _root.r75;
_local2.data.r76 = _root.r76;
_local2.data.r77 = _root.r77;
_local2.data.r78 = _root.r78;
_local2.data.r80 = _root.r80;
_local2.data.r81 = _root.r81;
_local2.data.r82 = _root.r82;
_local2.data.r83 = _root.r83;
_local2.data.r84 = _root.r84;
_local2.data.r85 = _root.r85;
_local2.data.r86 = _root.r86;
_local2.data.r87 = _root.r87;
_local2.data.r88 = _root.r88;
_local2.data.r89 = _root.r89;
_local2.data.r91 = _root.r91;
_local2.data.r92 = _root.r92;
_local2.data.r93 = _root.r93;
_local2.data.r97 = _root.r97;
_local2.data.r99 = _root.r99;
_local2.data.r103 = _root.r103;
_local2.data.r104 = _root.r104;
_local2.data.r105 = _root.r105;
_local2.flush();
SO.data.CAPSULE[_root.CHAPTER] = null;
SO.data.RELICS = null;
var _local3 = SharedObject.getLocal("CP2b", "/");
_root.MUSIC.stop();
_local3.flush();
_root.playSFX("boton");
_root.vidas = _root.MaxVidas;
_root.gotoAndStop(5);
};
Instance of Symbol 735 MovieClip in Frame 6
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("TITLE");
}
Frame 7
_root.ONbt.onPress = function () {
if (_root.ONbt._currentframe == 1) {
_root.OFFbt.gotoAndStop(1);
_root.mutedmusic = false;
_root.playMusic("menu");
_root.playSFX("boton");
_root.ONbt.gotoAndStop(2);
return(undefined);
}
if (_root.ONbt._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
_root.OFFbt.onPress = function () {
if (_root.OFFbt._currentframe == 1) {
_root.mutedmusic = true;
_root.ONbt.gotoAndStop(1);
_root.playMusic("menu");
_root.playSFX("boton");
_root.OFFbt.gotoAndStop(2);
return(undefined);
}
if (_root.OFFbt._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
_root.ONsfx.onPress = function () {
if (_root.ONsfx._currentframe == 1) {
_root.playSFX("boton");
_root.OFFsfx.gotoAndStop(1);
_root.sfxstat = true;
_root.ONsfx.gotoAndStop(2);
return(undefined);
}
if (_root.ONsfx._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
_root.OFFsfx.onPress = function () {
if (_root.OFFsfx._currentframe == 1) {
_root.playSFX("boton");
_root.sfxstat = false;
_root.ONsfx.gotoAndStop(1);
_root.OFFsfx.gotoAndStop(2);
return(undefined);
}
if (_root.OFFsfx._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
_root.ESP.onPress = function () {
if (_root.ESP._currentframe == 1) {
_root.playSFX("boton");
_root.EN.gotoAndStop(1);
_root.ESP.gotoAndStop(2);
_root.lang = "es";
return(undefined);
}
if (_root.ESP._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
_root.EN.onPress = function () {
if (_root.EN._currentframe == 1) {
_root.playSFX("boton");
_root.EN.gotoAndStop(2);
_root.ESP.gotoAndStop(1);
_root.lang = "en";
return(undefined);
}
if (_root.EN._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
Instance of Symbol 738 MovieClip in Frame 7
on (release) {
_root.playSFX("boton");
_root.gotoAndStop(8);
}
Instance of Symbol 735 MovieClip in Frame 7
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("TITLE");
}
Frame 8
function SelectKeyBox(b) {
SELECTED.gotoAndStop(1);
SELECTED = b;
b.gotoAndStop(2);
}
keys = ["Z", "X", "C", "UP", "DOWN", "LEFT", "RIGHT", "SPACE"];
for (var k in keys) {
var found = false;
for (var k2 in KEYNAMES) {
if (KEYNAMES[k2] == KEYS[keys[k]]) {
found = k2;
}
}
var K = keys[k];
this["box_" + K].code = found;
this["box_" + K].onPress = function () {
this._parent.SelectKeyBox(this);
};
this["box_" + K].gotoAndStop(1);
this["box_" + K].K = K;
}
SELECTED = null;
EAR = new Object();
EAR.onKeyDown = function () {
var _local2 = Key.getCode();
if (SELECTED) {
var _local1 = false;
for (var _local3 in KEYNAMES) {
if (KEYNAMES[_local3] == _local2) {
_local1 = _local3;
}
}
if (_local1) {
KEYS[SELECTED.K] = _local2;
SELECTED.code = _local1;
SELECTED.gotoAndStop(1);
SELECTED = null;
ArrowDown = true;
}
return(undefined);
}
};
Key.addListener(EAR);
Instance of Symbol 735 MovieClip in Frame 8
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("TITLE");
}
Instance of Symbol 735 MovieClip in Frame 9
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("TITLE");
}
Frame 10
gotoAndStop ("TITLE");
Frame 11
if (_root.DIFFICULTY == 0) {
PCLIVES = 9;
}
if (_root.DIFFICULTY == 1) {
PCLIVES = 5;
}
if (_root.DIFFICULTY == 2) {
PCLIVES = 3;
}
_root.gotoAndStop(((_root.CHECKPOINT = (pt ? (pt) : (STARTPOINT))))[0]);
Frame 16
gotoAndStop ("TITLE");
Frame 18
area = "lv2_0";
_root.areaxy = "0, 5";
map = [[17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 21, 18], [15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18], [15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 92, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 21, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [14, 20, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [17, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 91, 18], [15, 48, 9, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 18], [17, 17, 11, 11, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 18], [14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 47], [17, 20, 0, 0, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14], [15, 20, 0, 0, 91, 0, 115, 0, 115, 0, 115, 0, 0, 0, 18, 14], [17, 20, 0, 0, 91, 8, 9, 9, 9, 9, 9, 9, 9, 9, 47, 15]];
BADDIES = [{type:"coin", x:2, y:22}, {type:"coin", x:2, y:23}, {type:"coin", x:4, y:21}, {type:"coin", x:2, y:21}, {type:"coin", x:4, y:22}, {type:"coin", x:4, y:23}, {type:"coin", x:3, y:23}];
if (_root.lang == "es") {
var b = [["KAREN", "Has obtenido a DRAKE, prueba el juego Drake y los Magos. Te regalamos 10.000pts y un poder extra para tu pistola"]];
var a = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
_root.tx_sign1 = "El Letrero dice: \"Esta escalera es solo para aquellos que pueden hacer un gran salto, todos los demas mantenganse alejados de aqui.\"";
}
if (_root.lang == "en") {
var b = [["KAREN", "You have obtained DRAKE, try the game -Drake And The Wizards-. We grant you 10.000pts and you get extra power for your GUN"]];
var a = [["KAREN", "This EXTRA HEART will give you extra resistance against enemy attacks"]];
_root.tx_sign1 = "The Sign said: \"This stair is only for those who can make a big jump, everyone else keeps out of here.\"";
}
if (_root.salto3 == true) {
OBJECTS = [{type:"moving", x:5, y:26, moves:[[6, 0], [-6, 0]]}, {type:"relic", x:12, y:3, id:26, conv:a, name:"CORAZON7"}, {type:"relic", x:3, y:22, id:10, conv:b, name:"DRAKE"}, {type:"door2", x:12, y:28, dest:["lv2_10", 56, 8]}, {type:"signpost", x:13, y:28, words:[["ANIBAL", _root.tx_sign1]]}, {type:"signpostDOWN", x:5, y:28}];
} else {
OBJECTS = [{type:"relic", x:12, y:3, id:26, conv:a, name:"CORAZON7"}, {type:"relic", x:3, y:22, id:10, conv:b, name:"DRAKE"}, {type:"door2", x:12, y:28, dest:["lv2_10", 56, 8]}, {type:"signpost", x:13, y:28, words:[["ANIBAL", _root.tx_sign1]]}, {type:"signpostDOWN", x:5, y:28}];
}
EXITS = {S:["lv2_1", 0, 1]};
bg = [7, 2, 3];
_root.arma1 = true;
_root.pistola1 = true;
tileset = "tileset1";
DrawMap();
if (_root.currentMusic == "isla") {
} else {
_root.playMusic("isla");
}
Frame 19
area = "lv2_1";
_root.areaxy = "0, 6";
map = [[14, 12, 128, 128, 94, 4, 11, 11, 11, 11, 11, 11, 6, 14, 14, 14], [14, 12, 128, 128, 94, 128, 128, 128, 128, 128, 128, 21, 13, 14, 15, 14], [14, 12, 21, 21, 21, 128, 128, 128, 128, 128, 128, 21, 13, 14, 14, 14], [15, 14, 1, 1, 3, 21, 128, 128, 128, 128, 128, 21, 13, 15, 14, 14], [14, 14, 14, 14, 12, 21, 21, 128, 128, 128, 128, 21, 13, 14, 14, 14], [14, 15, 14, 15, 12, 21, 21, 21, 128, 128, 128, 21, 4, 11, 11, 11], [14, 14, 11, 11, 5, 21, 21, 21, 128, 128, 128, 21, 21, 21, 21, 21], [14, 12, 21, 21, 21, 21, 21, 21, 21, 128, 128, 128, 128, 128, 128, 128], [15, 12, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [14, 12, 128, 128, 128, 128, 128, 128, 128, 128, 21, 21, 21, 21, 21, 21], [14, 12, 128, 128, 128, 128, 128, 128, 2, 1, 14, 14, 14, 14, 14, 14], [14, 12, 128, 128, 2, 1, 1, 1, 14, 15, 14, 14, 14, 14, 15, 14], [15, 12, 128, 128, 4, 11, 11, 11, 11, 11, 11, 14, 15, 14, 14, 14], [14, 14, 3, 128, 128, 128, 147, 147, 147, 147, 147, 4, 11, 11, 11, 11], [14, 14, 14, 3, 128, 128, 147, 117, 118, 119, 147, 128, 128, 128, 128, 128], [14, 15, 14, 14, 3, 128, 147, 127, 128, 129, 147, 128, 128, 128, 128, 128], [14, 14, 14, 14, 14, 3, 147, 127, 128, 129, 147, 128, 128, 128, 128, 128], [14, 14, 14, 14, 14, 14, 1, 1, 1, 1, 1, 3, 128, 128, 128, 128], [14, 14, 14, 15, 14, 14, 14, 14, 14, 15, 14, 14, 1, 1, 1, 1], [14, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14]];
BADDIES = [{type:"coin", x:7, y:1}, {type:"coin", x:8, y:2}, {type:"coin", x:9, y:3}, {type:"coin", x:10, y:4}];
if (_root.lang == "es") {
var c = [["KAREN", "Esta mejora te ayudara a SALTAR mas alto y llegar a lugares que antes no podias"]];
_root.tx_sign1 = "El letrero dice: \"Necesitas la LLAVE DORADA para abrir estos candados.\"";
_root.tx_sign2 = "Hay una marca abajo que dice \"X5, Y6.\"";
}
if (_root.lang == "en") {
var c = [["KAREN", "This will UPGRADE your JUMP POWER so you can reach places that before you couldn\u2019t"]];
_root.tx_sign1 = "Sign said: \"You need the GOLDEN KEY to open this locks.\"";
_root.tx_sign2 = "There is a small message at the bottom: \"X5, Y6.\"";
}
OBJECTS = [{type:"signpost", x:10, y:8, words:[["ANIBAL", _root.tx_sign1], ["ANIBAL", _root.tx_sign2]]}, {type:"signpostRIGHT", x:13, y:8}, {type:"signpostDOWN", x:4, y:10}, {type:"forceblock1", x:7, y:8, colour:0}, {type:"forceblock1", x:7, y:9, colour:0}, {type:"forceblock1", x:7, y:10, colour:0}, {type:"relic", x:8, y:15, id:12, conv:c, name:"SALTO1"}];
EXITS = {N:["lv2_0", 0, 2], E0:["lv2_2", 0, 0], E1:["lv2_1b", 0, 0]};
bg = [6, 6];
tileset = "tileset1";
DrawMap();
Frame 20
area = "lv2_1b";
_root.areaxy = "1, 7";
map = [[29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29], [29, 29, 29, 29, 29, 29, 39, 29, 39, 29, 39, 29, 39, 29, 29, 29], [29, 29, 29, 29, 29, 39, 29, 39, 29, 39, 29, 39, 29, 39, 29, 29], [23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 29], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 29], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 29], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 29], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 29], [21, 21, 21, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 29], [29, 29, 29, 22, 25, 21, 21, 21, 21, 21, 21, 21, 21, 26, 28, 29]];
if (_root.lang == "es") {
_root.tx_sign1 = "El Letrero dice: \"ACCESO A HABITACION PRINCIPAL DEL DR.KUNAS. Ingreso requiere autorizacion o LLAVE MAESTRA GRIS.\"";
}
if (_root.lang == "en") {
_root.tx_sign1 = "Sign said: \"ACCESS TO MAIN ROOM OF DR.KUNAS. To enter you need authorization or the GREY MASTER KEY.\"";
}
BADDIES = [];
OBJECTS = [{type:"signpost", x:1, y:7, words:[["ANIBAL", _root.tx_sign1]]}, {type:"door", x:7, y:8, dest:["lv2_21", 1, 8]}, {type:"forceblock5", x:2, y:7, colour:0}, {type:"forceblock5", x:2, y:6, colour:0}, {type:"forceblock5", x:2, y:5, colour:0}, {type:"forceblock5", x:2, y:4, colour:0}];
EXITS = {W:["lv2_1", 0, 1]};
bg = [2, 9, 3];
tileset = "tileset2";
DrawMap();
if (_root.currentMusic == "castillo") {
_root.playMusic("isla");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("isla");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("isla");
}
Frame 21
area = "lv2_2";
_root.areaxy = "1, 6";
if (_root.DIFFICULTY == 0) {
map = [[14, 15, 14, 45, 1, 46, 6, 15, 14, 45, 14, 47, 14, 14, 14, 14, 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, 91, 18, 14, 14, 14, 14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 139, 0, 0, 0, 0, 8, 9, 9, 47, 15, 14, 116, 116, 14, 116, 116, 15, 116, 116, 14, 14], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 15, 14, 20, 0, 111, 112, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 124, 122, 123, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 9, 10, 0, 0, 0, 21, 18, 14, 14, 14, 45, 14, 17, 11, 11, 11, 11, 11, 11, 11, 11, 11], [5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 11, 11, 30, 0, 121, 122, 123, 0, 0, 0, 125, 126, 0, 0, 0, 0, 131, 132, 134, 134, 133, 0, 0, 8, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14, 14, 30, 0, 0, 0, 0, 18, 45, 15, 14, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 132, 133, 0, 0, 0, 135, 136, 0, 0, 0, 0, 141, 142, 144, 142, 143, 0, 0, 18, 20, 0, 0, 0, 0, 0, 0, 115, 0, 0, 0, 0, 115, 0, 18, 20, 0, 0, 0, 0, 0, 8, 9, 9, 9, 9, 47, 116, 20, 0, 0, 0, 0, 104, 18, 45, 14, 45, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 115, 0, 115, 0, 115, 0, 0, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 141, 142, 143, 0, 0, 0, 145, 146, 0, 0, 8, 9, 9, 9, 9, 9, 9, 9, 9, 47, 48, 10, 0, 0, 0, 0, 8, 9, 9, 9, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 118, 119, 0, 0, 0, 0, 0, 115, 0, 18, 45, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 112, 114, 112, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 0, 0, 0, 0, 8, 9, 9, 47, 15, 14, 116, 116, 14, 116, 116, 15, 116, 116, 14, 14], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 15, 14, 20, 0, 111, 112, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 124, 122, 123, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 9, 10, 0, 0, 0, 21, 18, 14, 14, 14, 45, 14, 17, 11, 11, 11, 11, 11, 11, 11, 11, 11], [5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 11, 11, 30, 0, 121, 122, 123, 0, 0, 0, 125, 126, 0, 0, 0, 0, 131, 132, 134, 134, 133, 0, 0, 8, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14, 14, 20, 0, 0, 0, 0, 18, 45, 15, 14, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 132, 133, 0, 0, 0, 135, 136, 0, 0, 0, 0, 141, 142, 144, 142, 143, 0, 0, 18, 20, 0, 0, 0, 0, 0, 0, 115, 0, 0, 0, 0, 115, 0, 18, 20, 0, 0, 0, 0, 0, 8, 9, 9, 9, 9, 47, 116, 14, 20, 0, 0, 0, 104, 18, 45, 14, 45, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 115, 0, 115, 0, 115, 0, 0, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 141, 142, 143, 0, 0, 0, 145, 146, 0, 0, 8, 9, 9, 9, 9, 9, 9, 9, 9, 47, 48, 10, 0, 0, 0, 0, 8, 9, 9, 9, 9, 9, 9, 9, 47, 48, 9, 9, 9, 9, 9, 47, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 0, 18, 45, 14, 14, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 47, 15, 14, 14, 45, 14, 14, 14, 15, 14, 46, 48, 9, 9, 9, 9, 47, 15, 14, 14, 45, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 15, 14, 14, 15, 14, 14, 14, 20, 21, 21, 21, 21, 18, 45, 14, 14, 15, 14, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_water = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 9, 9, 9, 9, 47, 14, 14, 14, 45, 14, 14], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 48, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 118, 119, 0, 0, 0, 0, 0, 115, 0, 18, 45, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 112, 114, 112, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 139, 0, 0, 0, 0, 8, 9, 9, 47, 15, 14, 116, 116, 14, 116, 116, 15, 116, 116, 14, 14], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 15, 14, 20, 0, 111, 112, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 124, 122, 123, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 9, 10, 0, 0, 0, 21, 18, 14, 14, 14, 45, 14, 17, 11, 11, 11, 11, 11, 11, 11, 11, 11], [5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 11, 11, 30, 0, 121, 122, 123, 0, 0, 0, 125, 126, 0, 0, 0, 0, 131, 132, 134, 134, 133, 0, 0, 8, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14, 14, 20, 0, 0, 0, 104, 18, 45, 15, 14, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 132, 133, 0, 0, 0, 135, 136, 0, 0, 0, 0, 141, 142, 144, 142, 143, 0, 0, 18, 20, 0, 0, 0, 0, 0, 0, 115, 0, 0, 0, 0, 115, 0, 18, 20, 0, 0, 0, 0, 0, 8, 9, 9, 9, 9, 47, 116, 14, 20, 0, 0, 0, 104, 18, 45, 14, 45, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 115, 0, 115, 0, 115, 0, 0, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 141, 142, 143, 0, 0, 0, 145, 146, 0, 0, 8, 9, 9, 9, 9, 9, 9, 9, 9, 47, 48, 10, 0, 0, 0, 0, 8, 9, 9, 9, 9, 9, 9, 9, 47, 48, 9, 9, 9, 9, 9, 47, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 104, 18, 45, 14, 14, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 47, 15, 14, 14, 45, 14, 14, 14, 15, 14, 46, 48, 9, 9, 9, 9, 47, 15, 14, 14, 45, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 15, 14, 14, 15, 14, 14, 14, 20, 21, 21, 21, 21, 18, 45, 14, 14, 15, 14, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_water = [[0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 1, 3, 1, 2, 3, 1, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
}
BADDIES = [{type:"orbot", x:36, y:7}, {type:"orbot", x:33, y:7}, {type:"orbot", x:44, y:8}, {type:"gum", x:59, y:7}, {type:"gum", x:70, y:8}, {type:"gum", x:73, y:8}, {type:"gum", x:71, y:8}, {type:"gum", x:72, y:8}, {type:"coin", x:3, y:6}, {type:"coin", x:3, y:5}, {type:"coin", x:3, y:4}, {type:"coin", x:13, y:6}, {type:"coin", x:13, y:5}, {type:"coin", x:13, y:4}, {type:"coin", x:17, y:1}, {type:"coin", x:17, y:2}, {type:"coin", x:17, y:0}, {type:"coin", x:22, y:6}, {type:"coin", x:24, y:6}, {type:"coin", x:26, y:6}, {type:"coin", x:39, y:3}, {type:"coin", x:40, y:3}, {type:"coin", x:49, y:5}, {type:"coin", x:50, y:5}, {type:"coin", x:54, y:3}, {type:"coin", x:55, y:3}, {type:"coin", x:62, y:4}, {type:"coin", x:64, y:4}, {type:"coin", x:71, y:2}, {type:"coin", x:72, y:2}, {type:"waterB", x:81, y:6}, {type:"waterB", x:82, y:6}, {type:"waterB", x:83, y:6}, {type:"waterB", x:84, y:6}, {type:"waterB", x:85, y:6}, {type:"waterB", x:86, y:6}, {type:"waterB", x:87, y:6}, {type:"waterB", x:88, y:6}, {type:"waterB", x:89, y:6}];
if (_root.lang == "es") {
var a = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
var b = [["KAREN", "Esta mejora te ayudara a incrementar mas aun tu poder de SALTO y llegar a lugares que antes no podias"]];
var c = [["KAREN", "Esta llave abrira los candados de color Dorado"]];
_root.tx_sign1 = "Dice: \"Para poder saltar la fosa de los -MedioCuerpos- necesitas un Salto Mejorado.\"";
_root.tx_sign2 = "Dice: \"PELIGRO: CabezasPerros cuidando los jardines del castillo. NO LOS ALIMEMTEN.\"";
}
if (_root.lang == "en") {
var a = [["KAREN", "This EXTRA HEART will give you extra resistance against enemy attacks"]];
var b = [["KAREN", "This will UPGRADE your JUMP POWER so you can reach places that before you couldn\u2019t"]];
var c = [["KAREN", "This GOLDEN MASTER KEY will open all the GOLDEN LOCKS"]];
_root.tx_sign1 = "Sign Said: \"To jump over the pit of the -HalfBody- you need to improve your JUMP.\"";
_root.tx_sign2 = "Sign said: \"WATCH OUT: HeadDogs watch the Castle Gardens. DO NOT FEED THEM.\"";
}
if (_root.DIFFICULTY == 0) {
if (_root.llave1 == true) {
OBJECTS = [{type:"relic", x:8, y:4, id:15, conv:a, name:"CORAZON2"}, {type:"relic", x:18, y:1, id:16, conv:a, name:"CORAZON3"}, {type:"relic", x:82, y:7, id:14, conv:b, name:"SALTO3"}, {type:"signpost", x:66, y:4, words:[["ANIBAL", _root.tx_sign1]]}, {type:"signpost", x:29, y:8, words:[["ANIBAL", _root.tx_sign2]]}, {type:"signpostRIGHT", x:63, y:6}, {type:"signpostUP", x:80, y:1}, {type:"door", x:69, y:8, dest:["lv2_0", 12, 28]}, {type:"relic", x:68, y:4, id:19, conv:c, name:"LLAVE1"}, {type:"checkpoint", x:8, y:7}];
} else {
OBJECTS = [{type:"door", x:69, y:8, dest:["lv2_0", 12, 28]}, {type:"relic", x:8, y:4, id:15, conv:a, name:"CORAZON2"}, {type:"relic", x:18, y:1, id:16, conv:a, name:"CORAZON3"}, {type:"relic", x:82, y:7, id:14, conv:b, name:"SALTO3"}, {type:"signpost", x:66, y:4, words:[["ANIBAL", _root.tx_sign1]]}, {type:"signpost", x:29, y:8, words:[["ANIBAL", _root.tx_sign2]]}, {type:"signpostRIGHT", x:63, y:6}, {type:"signpostUP", x:80, y:1}, {type:"checkpoint", x:8, y:7}];
}
} else if (_root.llave1 == true) {
OBJECTS = [{type:"relic", x:8, y:4, id:15, conv:a, name:"CORAZON2"}, {type:"relic", x:18, y:1, id:16, conv:a, name:"CORAZON3"}, {type:"relic", x:82, y:7, id:14, conv:b, name:"SALTO3"}, {type:"signpost", x:66, y:4, words:[["ANIBAL", _root.tx_sign1]]}, {type:"signpost", x:29, y:8, words:[["ANIBAL", _root.tx_sign2]]}, {type:"signpostRIGHT", x:63, y:6}, {type:"signpostUP", x:80, y:1}, {type:"relic", x:68, y:4, id:19, conv:c, name:"LLAVE1"}, {type:"checkpoint", x:8, y:7}];
} else {
OBJECTS = [{type:"relic", x:8, y:4, id:15, conv:a, name:"CORAZON2"}, {type:"relic", x:18, y:1, id:16, conv:a, name:"CORAZON3"}, {type:"relic", x:82, y:7, id:14, conv:b, name:"SALTO3"}, {type:"signpost", x:66, y:4, words:[["ANIBAL", _root.tx_sign1]]}, {type:"signpost", x:29, y:8, words:[["ANIBAL", _root.tx_sign2]]}, {type:"signpostRIGHT", x:63, y:6}, {type:"signpostUP", x:80, y:1}, {type:"checkpoint", x:8, y:7}];
}
EXITS = {W:["lv2_1", 0, 0], E:["lv2_12", 0, 0], N0:["lv2_3", 0, 0], N1:["lv2_3", 1, 0], N2:["lv2_3", 2, 0], N3:["lv2_3", 3, 0], N4:["lv2_3", 4, 0], N5:["lv2_3", 5, 0]};
bg = [1, 2, 3];
tileset = "tileset1";
DrawMap();
if (_root.currentMusic == "menu") {
_root.playMusic("isla");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("isla");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("isla");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("isla");
}
Frame 22
area = "lv2_3";
_root.areaxy = "2, 6";
map = [[6, 6, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 21, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0], [14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 47], [14, 14, 15, 14, 46, 14, 14, 14, 14, 47, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 0, 0, 8, 9, 47, 14, 14], [14, 14, 14, 14, 116, 14, 45, 14, 14, 14, 14, 14, 116, 14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 21, 0, 0, 0, 21, 21, 0, 0, 0, 21, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 8, 9, 47, 14, 45, 14, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 46, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 18, 14, 45, 14, 14, 14, 14]];
BADDIES = [{type:"crystoise", x:88, y:5}, {type:"lostsoul", x:87, y:3}, {type:"crystoise", x:82, y:4}, {type:"lostsoul", x:74, y:2}, {type:"icicles", x:71, y:1}, {type:"icicles", x:55, y:3}, {type:"coin", x:5, y:2}, {type:"coin", x:6, y:1}, {type:"coin", x:7, y:2}, {type:"coin", x:8, y:1}, {type:"coin", x:9, y:2}, {type:"coin", x:10, y:1}, {type:"coin", x:11, y:2}, {type:"coin", x:12, y:1}, {type:"coin", x:13, y:2}, {type:"coin", x:14, y:1}, {type:"coin", x:20, y:4}, {type:"coin", x:22, y:4}, {type:"coin", x:18, y:4}, {type:"coin", x:32, y:5}, {type:"coin", x:18, y:8}, {type:"coin", x:36, y:5}, {type:"coin", x:37, y:5}, {type:"coin", x:41, y:5}, {type:"coin", x:45, y:5}, {type:"coin", x:46, y:5}, {type:"coin", x:57, y:6}, {type:"coin", x:79, y:1}, {type:"coin", x:78, y:1}, {type:"coin", x:79, y:2}, {type:"coin", x:84, y:1}, {type:"coin", x:83, y:1}, {type:"coin", x:83, y:2}, {type:"coin", x:71, y:3}];
if (_root.lang == "es") {
var a = [["KAREN", "Este SNORKEL te permitira aguantar la respiracion unos segundos para poder nadar bajo el agua"]];
var b = [["KAREN", "Esta llave te abrira los candados de color Blanco"]];
_root.tx_sign1 = "El Letrero dice: \"La paciencia es una virtud que te ayudara\"";
}
if (_root.lang == "en") {
var a = [["KAREN", "This SNORKEL will make you hold your breath for a few seconds to swim"]];
var b = [["KAREN", "This WHITE MASTER KEY will open all the WHITE LOCKS"]];
_root.tx_sign1 = "Sign said: \"Patience is something that will always help you\"";
}
OBJECTS = [{type:"forceblock2", x:15, y:1, colour:1}, {type:"forceblock2", x:15, y:2, colour:1}, {type:"relic", x:81, y:2, id:20, conv:b, name:"LLAVE2"}, {type:"relic", x:3, y:1, id:4, conv:a, name:"SNORKEL1"}, {type:"door", x:2, y:2, dest:["lv2_6", 2, 3]}, {type:"signpostRIGHT", x:89, y:1}, {type:"signpostLEFT", x:45, y:7}, {type:"signpostRIGHT", x:57, y:1}, {type:"signpost", x:24, y:2, words:[["ANIBAL", _root.tx_sign1]]}, {type:"moving", x:2, y:5, moves:[[20, 0], [-20, 0]]}];
EXITS = {E:["lv2_5", 0, 0], S0:["lv2_2", 0, 0], S1:["lv2_2", 1, 0], S2:["lv2_2", 2, 0], S3:["lv2_2", 3, 0], S4:["lv2_2", 4, 0], S5:["lv2_2", 5, 0], N0:["lv2_4", 0, 0], N1:["lv2_4", 1, 0], N2:["lv2_4", 2, 0], N3:["lv2_4", 3, 0], N4:["lv2_4", 4, 0], N5:["lv2_4", 5, 0]};
bg = [7, 2, 3];
tileset = "tileset1";
DrawMap();
Frame 23
area = "lv2_4";
_root.areaxy = "1, 7";
map = [[6, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 45, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 0, 91, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 91, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 15]];
BADDIES = [{type:"crystoise", x:75, y:4}, {type:"orbot", x:83, y:4}, {type:"orbot", x:85, y:4}, {type:"lostsoul", x:91, y:3}, {type:"icicles", x:79, y:1}, {type:"icicles", x:69, y:2}, {type:"icicles", x:71, y:2}, {type:"icicles", x:73, y:2}, {type:"icicles", x:75, y:2}, {type:"coin", x:66, y:2}, {type:"coin", x:77, y:1}, {type:"coin", x:82, y:0}, {type:"coin", x:94, y:4}, {type:"coin", x:95, y:4}];
if (_root.lang == "es") {
var a = [["KAREN", "Esta mejora te ayudara a incrementar mas aun tu poder de SALTO y llegar a lugares que antes no podias"]];
}
if (_root.lang == "en") {
var a = [["KAREN", "This will UPGRADE your JUMP POWER so you can reach places that before you couldn\u2019t"]];
}
OBJECTS = [{type:"relic", x:118, y:5, id:13, conv:a, name:"SALTO2"}, {type:"signpostRIGHT", x:92, y:2}];
EXITS = {S0:["lv2_3", 0, 0], S1:["lv2_3", 1, 0], S2:["lv2_3", 2, 0], S3:["lv2_3", 3, 0], S4:["lv2_3", 4, 0], N4:["lv2_9b", 4, 0], S5:["lv2_3", 5, 0], S6:["lv2_5", 0, 0], S7:["lv2_5", 1, 0]};
bg = [7, 0, 1];
tileset = "tileset1";
DrawMap();
Frame 24
area = "lv2_5";
_root.areaxy = "3, 6";
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14], [9, 9, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14], [14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 111, 112, 114, 112, 114, 112, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 11], [15, 14, 14, 48, 9, 10, 0, 0, 0, 0, 0, 0, 121, 122, 124, 122, 124, 122, 123, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [14, 14, 14, 14, 14, 20, 0, 115, 0, 115, 0, 0, 131, 132, 134, 132, 134, 132, 133, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [14, 46, 14, 14, 14, 48, 9, 9, 9, 9, 10, 0, 141, 142, 144, 142, 144, 142, 143, 0, 0, 125, 126, 0, 125, 126, 0, 0, 8, 29], [14, 14, 14, 14, 46, 14, 14, 14, 14, 14, 48, 9, 9, 9, 9, 9, 9, 9, 9, 10, 0, 135, 136, 0, 135, 136, 0, 0, 18, 46], [14, 14, 14, 15, 14, 14, 14, 14, 14, 45, 14, 14, 14, 14, 14, 14, 14, 15, 45, 20, 0, 145, 146, 0, 145, 146, 0, 0, 18, 14], [46, 14, 14, 14, 14, 45, 14, 14, 15, 14, 14, 14, 45, 15, 14, 14, 14, 14, 14, 48, 9, 9, 9, 9, 9, 9, 9, 9, 47, 14]];
BADDIES = [{type:"lostsoul", x:13, y:20}, {type:"lostsoul", x:7, y:18}, {type:"lostsoul", x:13, y:16}, {type:"orbot", x:8, y:5}, {type:"orbot", x:10, y:5}, {type:"hawkstatue", x:27, y:8}, {type:"coin", x:21, y:7}, {type:"coin", x:22, y:7}, {type:"coin", x:23, y:7}, {type:"coin", x:24, y:7}, {type:"coin", x:25, y:7}, {type:"coin", x:26, y:7}, {type:"orbot", x:15, y:6}];
OBJECTS = [{type:"signpostRIGHT", x:29, y:5}];
EXITS = {W:["lv2_3", 5, 0], E:["lv2_6", 0, 0], N0:["lv2_4", 6, 0], N1:["lv2_4", 7, 0]};
bg = [7, 2, 3];
tileset = "tileset1";
DrawMap();
if (_root.currentMusic == "castillo") {
_root.playMusic("isla");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("isla");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("isla");
}
Frame 25
area = "lv2_6";
_root.areaxy = "4, 6";
map = [[13, 13, 46, 13, 20, 49, 48, 20, 18, 19, 13, 20, 13, 13, 20], [54, 59, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 58, 13], [56, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 13], [11, 6, 0, 31, 137, 138, 0, 0, 0, 137, 138, 31, 0, 2, 18], [0, 0, 31, 31, 147, 140, 0, 0, 0, 147, 140, 31, 31, 2, 20], [0, 0, 0, 0, 149, 136, 0, 0, 0, 149, 136, 0, 0, 2, 13], [4, 0, 0, 0, 145, 146, 0, 0, 0, 145, 146, 0, 0, 5, 11], [49, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [56, 49, 1, 1, 1, 1, 1, 1, 4, 0, 0, 0, 0, 0, 0], [20, 18, 19, 20, 46, 20, 20, 20, 49, 1, 1, 1, 1, 1, 1]];
if (_root.lang == "es") {
var a = [["ANIBAL", "El Letrero dice: \"Las rocas usadas en este Castillo han sido traidas desde isla Chilena de Rapa Nui.\" Hay una Firma del Arquitecto"]];
}
if (_root.lang == "en") {
var a = [["ANIBAL", "The Sign said:\"The rocks used on this Castle has been brought from Rapa Nui, Chilean Island.\" Arquitech Signature at the bottom"]];
}
BADDIES = [];
OBJECTS = [{type:"door2", x:2, y:3, dest:["lv2_10", 56, 8]}, {type:"door2", x:12, y:3, dest:["lv2_10", 56, 8]}, {type:"signpost", x:2, y:7, words:a}, {type:"checkpoint", x:7, y:6}];
EXITS = {W:["lv2_5", 1, 0], E:["lv2_7", 0, 0]};
bg = [6, 0, 0];
tileset = "tileset2";
DrawMap();
if (_root.currentMusic == "menu") {
_root.playMusic("castillo");
}
if (_root.currentMusic == "isla") {
_root.playMusic("castillo");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("castillo");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("castillo");
}
Frame 26
area = "lv2_7";
_root.areaxy = "5, 6";
map = [[13, 13, 59, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 6, 0, 0, 2], [59, 11, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 124, 0, 0, 0, 0, 0, 0, 0, 3, 48], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 0, 0, 143, 144, 0, 0, 0, 0, 0, 0, 0, 2, 13], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 58, 1, 1, 1, 1, 4, 0, 143, 144, 0, 0, 0, 0, 0, 0, 3, 48, 20], [12, 0, 0, 30, 30, 0, 0, 0, 0, 0, 0, 0, 5, 58, 13, 46, 13, 6, 31, 31, 31, 31, 31, 0, 113, 114, 0, 2, 13, 13], [12, 31, 0, 40, 40, 0, 0, 0, 30, 0, 0, 0, 0, 5, 58, 13, 12, 0, 0, 121, 122, 0, 0, 0, 3, 1, 1, 48, 20, 18], [6, 0, 0, 40, 40, 0, 0, 0, 40, 30, 0, 0, 0, 0, 5, 11, 6, 0, 0, 131, 132, 0, 0, 0, 2, 20, 13, 46, 13, 13], [0, 0, 31, 50, 50, 0, 0, 0, 50, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 31, 31, 5, 11, 11, 58, 20, 46], [112, 0, 31, 3, 4, 0, 0, 0, 3, 4, 0, 97, 0, 97, 0, 112, 3, 1, 1, 1, 4, 0, 0, 0, 0, 0, 91, 2, 13, 13], [1, 1, 1, 48, 49, 1, 1, 1, 48, 49, 1, 1, 1, 1, 1, 1, 48, 13, 13, 13, 49, 1, 1, 1, 1, 4, 91, 2, 18, 19]];
BADDIES = [{type:"lava", x:5, y:8}, {type:"lava", x:6, y:8}, {type:"lava", x:7, y:8}, {type:"coin", x:6, y:2}, {type:"coin", x:7, y:2}, {type:"coin", x:11, y:1}, {type:"coin", x:16, y:1}, {type:"coin", x:16, y:2}, {type:"crystoise", x:19, y:3}, {type:"icicles", x:18, y:1}, {type:"icicles", x:20, y:1}, {type:"icicles", x:22, y:1}, {type:"gum", x:12, y:8}, {type:"gum", x:15, y:8}, {type:"hawkstatue", x:23, y:6}];
if (_root.lang == "es") {
var a = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
}
if (_root.lang == "en") {
var a = [["KAREN", "This EXTRA HEART will give you extra resistance against enemies attacks"]];
}
OBJECTS = [{type:"forceblock3", x:12, y:1, colour:3}, {type:"forceblock3", x:14, y:1, colour:3}, {type:"forceblock3", x:14, y:2, colour:3}, {type:"relic", x:13, y:2, id:17, conv:a, name:"CORAZON4"}];
EXITS = {W:["lv2_6", 0, 0], S1:["lv2_12", 4, 0], N1:["lv2_8", 2, 0]};
bg = [6, 0, 0];
tileset = "tileset2";
DrawMap();
if (_root.currentMusic == "isla") {
_root.playMusic("castillo");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("castillo");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("castillo");
}
Frame 27
area = "lv2_8";
_root.areaxy = "6, 6";
map = [[59, 11, 6, 0, 0, 2, 13, 13, 13, 13, 13, 13, 13, 13, 13, 20, 59, 11, 11, 11, 11, 11, 11, 11, 11, 11, 58, 20, 13, 13, 13, 18, 19, 13, 20, 13, 20, 59, 11, 58, 59, 11, 11, 58, 13], [12, 0, 0, 0, 31, 5, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 18, 19, 13, 20, 59, 11, 11, 11, 11, 11, 6, 0, 5, 6, 0, 0, 2, 20], [12, 0, 0, 33, 34, 0, 5, 11, 11, 11, 11, 11, 11, 11, 11, 11, 6, 0, 33, 34, 33, 34, 33, 34, 31, 0, 2, 20, 13, 20, 59, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 58], [49, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 11, 58, 13, 12, 31, 31, 0, 0, 0, 31, 31, 31, 31, 31, 0, 0, 0, 2], [13, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 33, 34, 33, 34, 33, 34, 33, 34, 0, 0, 31, 0, 2, 20, 12, 0, 0, 0, 31, 0, 31, 31, 31, 31, 31, 0, 31, 0, 2], [13, 49, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 58, 12, 0, 0, 0, 31, 0, 30, 0, 0, 0, 0, 0, 0, 0, 2], [13, 13, 12, 0, 0, 31, 0, 0, 0, 3, 1, 4, 0, 3, 48, 12, 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 4, 0, 0, 5, 6, 0, 0, 3, 4, 0, 40, 0, 31, 31, 31, 31, 31, 31, 2], [13, 13, 12, 101, 101, 31, 101, 101, 101, 2, 13, 12, 0, 2, 13, 49, 4, 0, 5, 11, 11, 11, 11, 11, 11, 11, 6, 0, 0, 0, 0, 0, 0, 2, 12, 0, 98, 0, 0, 0, 0, 0, 0, 0, 2], [13, 13, 49, 1, 1, 1, 1, 1, 1, 48, 13, 12, 0, 2, 13, 13, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 48, 49, 1, 1, 1, 1, 4, 0, 0, 0, 0, 2], [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 12, 101, 2, 13, 13, 49, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 20, 13, 20, 18, 19, 13, 20, 49, 1, 4, 0, 0, 2]];
BADDIES = [{type:"turret", x:32, y:2}, {type:"turret", x:16, y:6}, {type:"ishish", x:25, y:5}, {type:"ishish", x:21, y:3}, {type:"turret_roof", x:5, y:2}, {type:"coin", x:19, y:1}, {type:"coin", x:21, y:1}, {type:"coin", x:23, y:1}, {type:"coin", x:27, y:5}, {type:"coin", x:38, y:1}, {type:"coin", x:42, y:1}, {type:"coin", x:35, y:4}, {type:"coin", x:35, y:5}];
OBJECTS = [];
EXITS = {S2:["lv2_7", 1, 0], N0:["lv2_9", 0, 0]};
bg = [6, 0, 0];
tileset = "tileset2";
DrawMap();
Frame 28
area = "lv2_9";
_root.areaxy = "7, 6";
map = [[13, 13, 13, 42, 91, 0, 0, 43, 11, 45, 11, 11, 11, 58, 13], [13, 13, 13, 42, 93, 0, 0, 0, 0, 0, 0, 0, 0, 5, 58], [13, 13, 59, 44, 31, 0, 33, 34, 33, 34, 31, 0, 0, 0, 2], [13, 59, 6, 0, 0, 0, 0, 0, 0, 0, 31, 31, 0, 0, 2], [59, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 2], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [12, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 2], [49, 4, 0, 33, 34, 37, 0, 0, 0, 0, 0, 0, 0, 0, 2], [13, 12, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 2], [13, 49, 4, 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 48]];
BADDIES = [{type:"prismblock", x:7, y:6}, {type:"prismblock2", x:10, y:7}, {type:"prismblock", x:12, y:6}, {type:"lava", x:6, y:8}, {type:"lava", x:8, y:8}, {type:"lava", x:7, y:8}, {type:"lava", x:9, y:8}, {type:"lava", x:10, y:8}, {type:"lava", x:11, y:8}, {type:"lava", x:12, y:8}, {type:"lava", x:13, y:8}, {type:"coin", x:7, y:4}, {type:"coin", x:12, y:3}, {type:"turretB2", x:11, y:2}];
OBJECTS = [];
EXITS = {S:["lv2_8", 0, 0], N:["lv2_10", 3, 0]};
bg = [6, 0, 0];
tileset = "tileset2";
DrawMap();
if (_root.currentMusic == "isla") {
_root.playMusic("castillo");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("castillo");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("castillo");
}
Frame 29
area = "lv2_9b";
map = [[14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14]];
BADDIES = [];
if (_root.lang == "es") {
var a = [["ANIBAL", "El Letrero dice: \"Has practicado el don de la Paciencia antes?.\""]];
}
if (_root.lang == "en") {
var a = [["ANIBAL", "Sign said: \"Will you try to practice your patience again?.\""]];
}
OBJECTS = [{type:"signpost", x:58, y:6, words:a}, {type:"door", x:5, y:6, dest:["lv2_10", 56, 8]}, {type:"moving", x:11, y:2, moves:[[46, 0], [0, 3], [0, -3], [-46, 0]]}];
EXITS = {S1:["lv2_4", 1, 0], S2:["lv2_4", 2, 0], S3:["lv2_4", 3, 0], S4:["lv2_4", 4, 0], S5:["lv2_4", 5, 0], S6:["lv2_4", 5, 0], S7:["lv2_4", 7, 0]};
bg = [7, 0, 1];
tileset = "tileset1";
DrawMap();
Frame 30
area = "lv2_10";
_root.areaxy = "7, 5";
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 0, 0, 0, 0, 0, 0, 145, 146, 13, 12, 118, 118, 118, 118, 13, 12, 141, 142, 143, 0, 0, 145, 146, 0, 141, 142, 143, 2, 3, 0, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 14], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 9, 10, 115, 0, 0, 0, 0, 8, 9, 47, 12, 128, 128, 128, 128, 13, 16, 19, 9, 29, 1, 1, 19, 29, 1, 19, 9, 29, 7, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 50], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14, 14, 48, 9, 10, 92, 0, 0, 18, 15, 14, 12, 148, 148, 148, 148, 13, 15, 14, 14, 14, 14, 14, 46, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 14], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 14, 15, 14, 48, 20, 91, 0, 0, 18, 14, 14, 14, 1, 1, 1, 1, 14, 14, 14, 14, 15, 14, 14, 45, 14, 14, 14, 46, 15, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14, 16, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 15]];
BADDIES = [{type:"gum", x:70, y:6}, {type:"gum", x:68, y:6}, {type:"gum", x:66, y:6}, {type:"gum", x:64, y:6}, {type:"orbot", x:65, y:6}, {type:"orbot", x:67, y:6}, {type:"orbot", x:69, y:6}, {type:"gum", x:72, y:6}, {type:"gum", x:62, y:6}, {type:"icicles", x:65, y:2}, {type:"icicles", x:69, y:2}, {type:"hawkstatue", x:87, y:2}, {type:"hawkstatue2", x:78, y:2}, {type:"coin", x:59, y:6}, {type:"coin", x:56, y:6}, {type:"coin", x:57, y:6}, {type:"coin", x:58, y:6}, {type:"coin", x:80, y:1}, {type:"coin", x:83, y:1}, {type:"coin", x:82, y:1}, {type:"coin", x:85, y:1}, {type:"coin", x:90, y:4}, {type:"coin", x:91, y:4}, {type:"gum", x:85, y:4}, {type:"coin", x:42, y:4}, {type:"coin", x:41, y:5}];
if (_root.lang == "es") {
var a = [["ANIBAL", "El Letrero dice: \"Los saltos de fe siempre recompensaran.\""]];
var c = [["KAREN", "Has obtenido a TAMUS, prueba el juego Las Aventuras de Tamus y Mitta. Te regalamos 10.000pts y un poder extra para tu golpe cuerpo a cuerpo"]];
}
if (_root.lang == "en") {
var c = [["KAREN", "You have obtained TAMUS, try our game -TAMUS AND MITTA- we will give you 10.000pts and extra power for your sword"]];
var a = [["ANIBAL", "Sign said: \"Leap of faith will always reward you.\""]];
}
OBJECTS = [{type:"signpost", x:44, y:6, words:a}, {type:"relic", x:58, y:7, id:11, conv:c, name:"TAMUS"}, {type:"door", x:56, y:8, dest:["lv2_9b", 5, 6]}];
EXITS = {S1:["lv2_9b", 6, 0], S2:["lv2_9b", 7, 0], S3:["lv2_9", 0, 0], S6:["lv2_11", 1, 0], S7:["lv2_11", 2, 0]};
bg = [7, 0, 5];
tileset = "tileset1";
DrawMap();
if (_root.currentMusic == "menu") {
_root.playMusic("isla");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("isla");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("isla");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("isla");
}
Frame 31
area = "lv2_11";
_root.areaxy = "6, 5";
map = [[14, 15, 14, 14, 14, 14, 14, 14, 14, 15, 14, 14, 14, 14, 14, 14, 14, 14, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 14, 14], [17, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 6, 14, 16, 14, 14, 40, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 14, 14], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 14, 14, 14, 14, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 14, 15], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 14, 14, 14, 14, 16, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 11, 11], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 4, 11, 11, 11, 11, 11, 11, 5, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 32, 32, 32, 32, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 38], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 7, 14, 14, 14, 14, 14, 14, 14, 12, 0, 0, 0, 0, 0, 0, 37, 38, 38, 49, 14, 14], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 7, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 3, 0, 0, 0, 0, 37, 49, 15, 14, 14, 14, 14], [50, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 49, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 3, 0, 0, 0, 27, 14, 14, 14, 14, 15, 14]];
BADDIES = [{type:"coin", x:25, y:3}, {type:"coin", x:26, y:3}, {type:"coin", x:31, y:3}, {type:"coin", x:30, y:3}, {type:"crystoise", x:41, y:6}, {type:"crystoise", x:19, y:6}];
if (_root.lang == "es") {
var c = [["KAREN", "Esta HACHA DE MANO le dara un poder superior a tu ataque cuerpo a cuerpo."]];
}
if (_root.lang == "en") {
var c = [["KAREN", "This HAND AXE will give you a superior power to your attack."]];
}
OBJECTS = [{type:"checkpoint", x:7, y:7}, {type:"door2", x:12, y:3, dest:["lv2_11", 56, 8]}, {type:"forceblock4", x:43, y:4, colour:1}, {type:"forceblock4", x:43, y:5, colour:1}, {type:"relic", x:28, y:3, id:1, conv:c, name:"ARMA2"}];
EXITS = {N1:["lv2_10", 6, 0], S2:["lv2_13", 0, 0], E:["lv2_15", 0, 0]};
bg = [7, 0, 1];
tileset = "tileset1";
DrawMap();
if (_root.currentMusic == "menu") {
_root.playMusic("isla");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("isla");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("isla");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("isla");
}
Frame 32
area = "lv2_12";
map = [[38, 29, 38, 38, 29, 38, 38, 38, 29, 38, 38, 38, 38, 38, 38, 29, 38, 38, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 38, 29, 22, 31, 31, 31, 31, 31, 31, 41, 18, 19, 20, 13, 55, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 44, 91, 43, 45, 45, 45, 45, 54, 13, 18, 19, 13, 13, 20, 13, 13, 13, 13, 13, 20], [29, 38, 38, 38, 38, 29, 38, 38, 38, 38, 29, 38, 29, 38, 38, 38, 29, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 38, 22, 31, 0, 0, 0, 0, 31, 43, 45, 45, 54, 20, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 0, 0, 0, 0, 31, 41, 20, 13, 13, 13, 13, 13, 13, 13, 20, 46, 13, 13], [38, 38, 29, 38, 29, 38, 38, 38, 38, 38, 38, 38, 38, 38, 29, 38, 27, 0, 0, 0, 0, 35, 36, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 24, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 46, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 41, 13, 20, 13, 20, 13, 18, 19, 13, 13, 13, 20, 13], [38, 38, 38, 38, 38, 38, 38, 29, 29, 29, 38, 38, 29, 38, 38, 27, 0, 0, 0, 0, 35, 56, 57, 32, 32, 56, 57, 36, 0, 0, 0, 0, 0, 0, 24, 22, 0, 31, 35, 36, 31, 31, 0, 0, 0, 41, 20, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 36, 51, 53, 0, 0, 0, 0, 0, 0, 0, 51, 53, 31, 0, 0, 0, 0, 31, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 54, 20, 13], [39, 39, 38, 39, 39, 38, 39, 39, 38, 29, 29, 29, 38, 38, 22, 0, 0, 0, 0, 35, 56, 55, 45, 45, 45, 45, 54, 57, 36, 0, 0, 0, 0, 0, 24, 22, 0, 0, 41, 42, 0, 0, 0, 31, 31, 41, 13, 42, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 41, 42, 105, 106, 0, 51, 53, 0, 51, 53, 0, 105, 106, 31, 31, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 45, 45], [23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 27, 0, 0, 0, 35, 56, 13, 42, 0, 0, 0, 0, 41, 20, 57, 36, 0, 0, 0, 0, 28, 27, 31, 0, 41, 42, 0, 0, 31, 0, 0, 43, 45, 44, 31, 0, 0, 0, 0, 0, 101, 101, 31, 31, 41, 42, 105, 106, 0, 105, 106, 0, 105, 106, 0, 105, 106, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 55, 45, 44, 0, 0, 0, 0, 43, 45, 54, 42, 0, 0, 0, 0, 0, 0, 0, 0, 41, 42, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 41, 42, 105, 106, 0, 105, 106, 0, 105, 106, 0, 31, 31, 0, 0, 0, 31, 31, 31, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 56, 42, 0, 0, 0, 0, 0, 0, 0, 0, 41, 57, 36, 0, 0, 0, 0, 0, 0, 31, 41, 42, 31, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 42, 105, 106, 0, 105, 106, 0, 105, 106, 0, 31, 31, 31, 0, 0, 0, 0, 0, 0, 41, 57, 36, 0, 0, 0, 0, 0, 0, 35, 32, 32], [0, 0, 0, 101, 0, 0, 101, 0, 0, 101, 0, 101, 0, 0, 101, 0, 35, 56, 13, 42, 0, 0, 0, 0, 0, 0, 0, 0, 41, 20, 57, 32, 32, 32, 32, 32, 32, 32, 56, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 41, 42, 105, 106, 0, 105, 106, 0, 105, 106, 0, 31, 31, 31, 31, 0, 0, 0, 0, 31, 41, 20, 57, 36, 0, 0, 0, 0, 35, 56, 20, 20], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 32, 56, 20, 46, 42, 7, 14, 14, 14, 14, 14, 14, 8, 41, 20, 13, 20, 13, 20, 46, 20, 13, 20, 20, 57, 32, 32, 32, 32, 32, 36, 101, 101, 31, 101, 101, 31, 101, 31, 0, 101, 101, 31, 41, 42, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 35, 32, 56, 18, 19, 57, 36, 0, 0, 35, 56, 18, 19, 20]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, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
BADDIES = [{type:"waterB", x:17, y:2}, {type:"waterB", x:18, y:2}, {type:"waterB", x:19, y:2}, {type:"waterB", x:20, y:2}, {type:"waterB", x:27, y:2}, {type:"waterB", x:28, y:2}, {type:"waterB", x:29, y:2}, {type:"waterB", x:30, y:2}, {type:"waterB", x:31, y:2}, {type:"waterB", x:32, y:2}, {type:"waterB", x:33, y:2}, {type:"waterB", x:48, y:3}, {type:"waterB", x:49, y:3}, {type:"waterB", x:50, y:3}, {type:"waterB", x:51, y:3}, {type:"waterB", x:52, y:3}, {type:"waterB", x:53, y:3}, {type:"waterB", x:54, y:3}, {type:"waterB", x:55, y:3}, {type:"waterB", x:56, y:3}, {type:"waterB", x:57, y:3}, {type:"waterB", x:62, y:6}, {type:"waterB", x:65, y:6}, {type:"waterB", x:68, y:6}, {type:"khgnippa", x:62, y:7}, {type:"khgnippa", x:68, y:7}, {type:"ishish", x:48, y:6}, {type:"ishish", x:37, y:2}, {type:"ishish", x:19, y:3}, {type:"hawkstatue", x:76, y:5}, {type:"hawkstatue2", x:71, y:6}, {type:"hawkstatue", x:76, y:2}, {type:"coin", x:3, y:6}, {type:"coin", x:6, y:6}, {type:"coin", x:9, y:6}, {type:"coin", x:11, y:6}, {type:"ishish", x:17, y:5}, {type:"coin", x:32, y:5}, {type:"coin", x:31, y:4}, {type:"coin", x:30, y:3}, {type:"coin", x:39, y:1}, {type:"coin", x:57, y:7}, {type:"coin", x:57, y:6}, {type:"coin", x:57, y:8}, {type:"khgnippa", x:65, y:9}, {type:"hawkstatue2", x:72, y:7}, {type:"coin", x:83, y:6}, {type:"coin", x:84, y:6}, {type:"coin", x:83, y:5}, {type:"coin", x:84, y:5}, {type:"swordtrap", x:54, y:9}];
if (_root.lang == "es") {
var b = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
var c = [["KAREN", "El SNORKEL te ayudara a poder respirar bajo el agua"]];
var a = [["KAREN", "Esta llave te abrira los candados de color ROJO"]];
var d = [["ANIBAL", "El Letrero dice: \"Todos los nadadores deben usar el SNORKEL antes de entrar al agua.\""], ["ANIBAL", "\"Se presume existe un SNORKEL en coordenadas X1 , Y5.\""]];
}
if (_root.lang == "en") {
var b = [["KAREN", "This EXTRA HEART will give you extra resistance against enemies attacks"]];
var c = [["KAREN", "This DRY SUIT will make you hold your breath for a long amount of time under water"]];
var a = [["KAREN", "This RED MASTER KEY will open all the RED LOCKS"]];
var d = [["ANIBAL", "Sign said: \"If you want to swim you must use something to hold your breath.\""], ["ANIBAL", "\"Maybe an SNORKEL can be at coordinates X1 , Y5.\""]];
}
OBJECTS = [{type:"door", x:23, y:2, dest:["lv2_6", 12, 3]}, {type:"signpost", x:58, y:2, words:d}, {type:"relic", x:24, y:1, id:22, conv:a, name:"LLAVE4"}, {type:"relic", x:24, y:7, id:5, conv:c, name:"SNORKEL2"}, {type:"forceblock3", x:7, y:6, colour:3}, {type:"forceblock3", x:7, y:7, colour:3}, {type:"forceblock3", x:7, y:8, colour:3}, {type:"forceblock2", x:79, y:4, colour:2}, {type:"forceblock2", x:79, y:5, colour:2}, {type:"forceblock3", x:88, y:5, colour:2}, {type:"forceblock3", x:88, y:6, colour:2}, {type:"door", x:21, y:8, dest:["lv2_13", 43, 8]}];
EXITS = {N4:["lv2_7", 1, 0], S5:["lv2_20", 0, 0], W0:["lv2_2", 5, 0], E:["lv2_17", 0, 0]};
bg = [6, 0, 0];
tileset = "tileset2";
DrawMap();
_root.salpicaagua = true;
if (_root.currentMusic == "isla") {
_root.playMusic("castillo");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("castillo");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("castillo");
}
Frame 33
area = "lv2_13";
map = [[126, 35, 35, 7, 21, 0, 0, 0, 21, 3, 126, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 120, 49, 26, 0, 21, 21, 21, 120, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 21, 0, 0, 21, 27], [26, 0, 0, 0, 21, 0, 0, 0, 21, 3, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 49, 26, 0, 0, 0, 0, 37, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 21, 21, 0, 21, 21], [26, 0, 0, 0, 21, 21, 0, 21, 21, 37, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 49, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0], [26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 13, 13, 13, 14, 0, 0, 0, 0, 3, 49, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21], [26, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 3, 49, 49, 49, 26, 0, 0, 0, 0, 3, 49, 118, 14, 0, 0, 0, 8, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8], [26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 3, 49, 49, 49, 118, 14, 0, 0, 0, 37, 35, 120, 26, 21, 0, 8, 119, 136, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18], [26, 0, 21, 0, 0, 0, 0, 0, 21, 0, 21, 0, 0, 3, 49, 49, 49, 49, 26, 0, 0, 0, 0, 0, 3, 26, 0, 0, 18, 136, 136, 119, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18], [26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 49, 49, 49, 49, 118, 14, 0, 0, 0, 0, 3, 26, 0, 21, 18, 136, 136, 136, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18], [26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 49, 49, 49, 49, 49, 26, 0, 0, 0, 0, 3, 26, 0, 0, 18, 136, 136, 136, 119, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18], [26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 49, 49, 49, 49, 49, 118, 13, 14, 0, 0, 3, 26, 21, 0, 18, 136, 136, 136, 136, 136, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 119]];
_water = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
BADDIES = [{type:"lava", x:1, y:8}, {type:"lava", x:2, y:8}, {type:"lava", x:3, y:8}, {type:"lava", x:4, y:8}, {type:"lava", x:5, y:8}, {type:"lava", x:6, y:8}, {type:"lava", x:7, y:8}, {type:"lava", x:8, y:8}, {type:"lava", x:9, y:8}, {type:"lava", x:10, y:8}, {type:"lava", x:11, y:8}, {type:"lava", x:12, y:8}, {type:"icetar", x:37, y:5}, {type:"icetar", x:39, y:5}, {type:"icetar", x:37, y:3}, {type:"icetar", x:36, y:7}, {type:"icetar", x:35, y:5}, {type:"icetar", x:38, y:7}, {type:"icetar", x:34, y:3}, {type:"gumrusch", x:15, y:1}, {type:"waterM", x:22, y:9}, {type:"waterM", x:23, y:9}, {type:"waterM", x:27, y:9}, {type:"khgnippa", x:9, y:9}, {type:"khgnippa", x:11, y:9}, {type:"khgnippa", x:4, y:9}, {type:"turret_roof", x:26, y:1}, {type:"khgnippa", x:3, y:9}, {type:"coin", x:9, y:4}, {type:"coin", x:11, y:4}, {type:"coin", x:4, y:4}, {type:"ishish", x:21, y:4}, {type:"ishish", x:23, y:7}];
if (_root.lang == "es") {
var b = [["KAREN", "Esta Llave Maestra Verde te abrira los candados de color VERDE"]];
var a = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
var d = [["ANIBAL", "El Letrero dice: \"Todos los nadadores deben usar el SNORKEL antes de entrar al agua.\""], ["ANIBAL", "\"Existe un TRAJE DE BUCEO en coordenadas X8 , Y6.\""]];
}
if (_root.lang == "en") {
var b = [["KAREN", "This RED MASTER KEY will open all the RED LOCKS"]];
var a = [["KAREN", "This EXTRA HEART will give you extra resistance against enemies attacks"]];
var d = [["ANIBAL", "Sign said: \"If you want to swim you must use something to hold your breath.\""], ["ANIBAL", "\"There is a DRY SUIT at some room at coordinates X8 , Y6.\""]];
}
OBJECTS = [{type:"relic", x:25, y:0, id:18, conv:a, name:"CORAZON5"}, {type:"door", x:43, y:8, dest:["lv2_12", 20, 8]}, {type:"signpost", x:21, y:8, words:d}, {type:"relic", x:2, y:4, id:21, conv:b, name:"LLAVE3"}];
EXITS = {N0:["lv2_11", 2, 0], N2:["lv2_15", 1, 0], S1:["lv2_14", 1, 0], E:["lv2_16", 0, 0]};
bg = [4, 0, 7];
tileset = "tileset3";
DrawMap();
_root.salpicaagua = false;
if (_root.currentMusic == "isla") {
_root.playMusic("cavernas");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("cavernas");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("cavernas");
}
Frame 34
area = "lv2_14";
map = [[125, 125, 125, 125, 125, 125, 125, 127, 59, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 36, 0, 0, 37, 7, 0, 0, 28, 119, 136, 136, 136, 136, 136, 136, 136, 20, 0, 0, 0, 18, 136, 136, 136], [127, 35, 35, 35, 35, 35, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 28, 29, 29, 29, 29, 29, 29, 29, 30, 0, 0, 0, 28, 29, 119, 136], [50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 136], [50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 16, 97, 99, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 21, 101, 21, 0, 0, 18, 136], [50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 16, 17, 0, 15, 17, 0, 24, 117, 23, 23, 23, 23, 23, 23, 23, 117, 117, 117, 23, 23, 23, 23, 23, 22, 0, 0, 0, 0, 0, 18, 136], [50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 117, 25, 0, 24, 25, 0, 24, 25, 21, 11, 21, 11, 21, 11, 21, 24, 117, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 119, 136], [50, 0, 0, 0, 15, 17, 0, 0, 0, 0, 0, 0, 0, 24, 117, 25, 0, 24, 25, 0, 24, 25, 11, 0, 0, 0, 0, 0, 11, 24, 117, 25, 0, 21, 21, 21, 21, 21, 21, 21, 0, 18, 136, 136, 136], [50, 0, 0, 0, 24, 25, 0, 0, 0, 0, 0, 0, 0, 24, 117, 99, 16, 97, 99, 16, 97, 25, 21, 0, 0, 0, 0, 0, 21, 24, 117, 25, 0, 0, 0, 0, 0, 0, 0, 21, 0, 18, 136, 136, 136], [50, 0, 0, 15, 97, 25, 101, 101, 101, 101, 101, 101, 101, 24, 117, 117, 117, 117, 117, 117, 117, 25, 11, 0, 21, 0, 21, 0, 11, 24, 117, 25, 21, 21, 21, 21, 0, 0, 0, 21, 0, 18, 136, 136, 136], [50, 0, 0, 24, 117, 25, 21, 21, 21, 21, 21, 21, 21, 24, 117, 117, 117, 117, 117, 117, 117, 25, 21, 0, 0, 0, 0, 0, 21, 24, 117, 25, 21, 21, 21, 21, 21, 21, 0, 21, 101, 18, 136, 136, 136]];
_water = [[8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,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8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8]];
BADDIES = [{type:"swordtrap", x:19, y:4}, {type:"turret_roof", x:39, y:0}, {type:"prismblock", x:6, y:6}, {type:"prismblock2", x:9, y:6}, {type:"prismblock", x:12, y:6}, {type:"swordtrap", x:16, y:4}, {type:"swordtrap", x:40, y:6}];
if (_root.lang == "es") {
var a = [["KAREN", "Esta MAGNUM te dara un ataque mas rapido y poderoso contra los enemigos"]];
}
if (_root.lang == "en") {
var a = [["KAREN", "This MAGNUM will give you a powerful shoot against enemies"]];
}
OBJECTS = [{type:"relic", x:25, y:7, id:9, conv:a, name:"PISTOLA3"}, {type:"forceblock3", x:24, y:1, colour:3}, {type:"forceblock3", x:24, y:2, colour:3}];
EXITS = {N1:["lv2_13", 1, 0], S0:["lv2_17", 0, 0], S1:["lv2_17", 1, 0], S2:["lv2_17", 2, 0]};
bg = [4, 0, 7];
tileset = "tileset3";
DrawMap();
_root.salpicaagua = false;
if (_root.currentMusic == "isla") {
_root.playMusic("cavernas");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("cavernas");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("cavernas");
}
Frame 35
area = "lv2_15";
map = [[125, 125, 125, 125, 125, 125, 125, 125, 49, 125, 125, 125, 125, 125, 125, 125, 125, 125, 26, 0, 0, 27, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 117], [125, 125, 125, 125, 125, 115, 125, 125, 125, 125, 125, 125, 115, 125, 125, 125, 125, 125, 26, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [125, 125, 125, 125, 125, 125, 125, 125, 115, 125, 125, 125, 125, 125, 125, 49, 125, 125, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 21, 0, 0, 0, 0, 24], [35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 120, 125, 125, 125, 125, 26, 21, 0, 0, 21, 0, 21, 0, 21, 0, 21, 0, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 125, 125, 126, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 15, 16, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 15, 97], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 125, 125, 26, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 24, 117, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 24, 117], [13, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 35, 35, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 24, 117, 25, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 21, 24, 117], [125, 125, 118, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 24, 117, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 117], [115, 125, 125, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 24, 117, 25, 0, 0, 21, 101, 101, 101, 101, 101, 101, 101, 101, 24, 117], [125, 125, 125, 118, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 0, 0, 11, 24, 117, 25, 21, 0, 21, 15, 16, 16, 16, 16, 16, 16, 17, 24, 117]];
BADDIES = [{type:"turret_roof", x:34, y:3}, {type:"turret_roof", x:18, y:5}, {type:"turret_roof", x:22, y:5}, {type:"turret_roof", x:27, y:5}, {type:"gumrusch", x:7, y:7}, {type:"icicles", x:21, y:1}, {type:"icicles", x:23, y:1}, {type:"icicles", x:25, y:1}, {type:"icicles", x:27, y:1}, {type:"icicles", x:29, y:1}, {type:"coin", x:6, y:5}, {type:"coin", x:8, y:5}, {type:"coin", x:10, y:5}, {type:"coin", x:25, y:5}, {type:"coin", x:20, y:5}, {type:"coin", x:43, y:1}, {type:"coin", x:43, y:3}, {type:"swordtrap", x:42, y:4}, {type:"coin", x:42, y:2}];
bg = [4, 0, 7];
EXITS = {N1:["lv2_19", 0, 0], S1:["lv2_13", 2, 0], S2:["lv2_16", 0, 0], W0:["lv2_11", 2, 0]};
if (_root.lang == "es") {
var a = [["ANIBAL", "El Letrero dice: \"Para acceder a esta zona requieres de un gran salto.\" Hay unos numeros que dicen 6,6"]];
}
if (_root.lang == "en") {
var a = [["ANIBAL", "Sign said: \"To access this area is required big jump.\" There are 2 number at the botom \"6,6\""]];
}
OBJECTS = [{type:"signpost", x:32, y:8, words:a}];
tileset = "tileset3";
DrawMap();
if (_root.currentMusic == "isla") {
_root.playMusic("cavernas");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("cavernas");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("cavernas");
}
Frame 36
area = "lv2_16";
map = [[23, 23, 21, 0, 21, 24, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 25], [21, 21, 0, 0, 21, 24, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 25], [0, 0, 0, 21, 21, 24, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 25], [21, 21, 21, 21, 21, 27, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 22], [8, 10, 0, 0, 103, 0, 103, 0, 103, 0, 103, 0, 103, 0, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [18, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [18, 119, 10, 0, 0, 0, 0, 21, 0, 0, 0, 21, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [18, 136, 119, 10, 0, 21, 0, 0, 0, 21, 0, 0, 0, 21, 0, 21, 0, 21, 0, 0, 21, 0, 0, 21, 0, 0, 0, 0, 0, 0], [18, 136, 136, 20, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 21, 101, 101, 21, 101, 101, 21, 101, 101, 21, 0, 0, 0], [18, 136, 136, 119, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10]];
BADDIES = [];
bg = [4, 0, 7];
EXITS = {W:["lv2_13", 2, 0], E:["lv2_18", 0, 2], N:["lv2_15", 2, 0]};
if (_root.lang == "es") {
var b = [["KAREN", "Esta LLAVE MAESTRA te da acceso a la subterraneo del castillo donde puede estar la DRA."]];
}
if (_root.lang == "en") {
var b = [["ANIBAL", "This GREY MASTER KEY will give you access to the room of DR.KUNAS, where must be KAREN"]];
}
OBJECTS = [{type:"door", x:2, y:5, dest:["lv2_11", 12, 3]}, {type:"relic", x:3, y:5, id:23, conv:b, name:"LLAVE5"}];
tileset = "tileset3";
DrawMap();
if (_root.currentMusic == "menu") {
_root.playMusic("cavernas");
}
Frame 37
area = "lv2_17";
map = [[25, 0, 0, 24, 117, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 22, 11, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 21, 0, 21, 21, 28, 29, 29, 119], [25, 0, 0, 24, 25, 106, 103, 103, 21, 0, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 21, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 103, 0, 0, 0, 0, 21, 0, 0, 0, 0, 18], [25, 11, 0, 24, 25, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 21, 11, 21, 11, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 0, 21, 0, 21, 18], [99, 16, 16, 97, 25, 106, 0, 21, 101, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 18], [23, 23, 23, 23, 22, 106, 0, 0, 21, 21, 21, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 21, 0, 0, 21, 0, 0, 11, 21, 21, 21, 21, 0, 0, 18], [0, 112, 0, 112, 0, 21, 101, 21, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 21, 11, 21, 11, 21, 11, 21, 11, 21, 11, 21, 11, 21, 11, 0, 8, 119], [0, 122, 0, 122, 0, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 21, 137, 138, 139, 0, 0, 0, 0, 0, 0, 0, 0, 131, 132, 133, 134, 135, 131, 132, 133, 134, 135, 131, 132, 133, 134, 0, 18, 136], [10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 0, 111, 0, 0, 0, 147, 148, 149, 0, 0, 111, 0, 0, 111, 0, 0, 141, 142, 143, 144, 145, 141, 142, 143, 144, 145, 141, 142, 143, 144, 8, 119, 136], [119, 10, 0, 0, 0, 0, 0, 0, 21, 0, 121, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
BADDIES = [{type:"lava", x:29, y:4}, {type:"lava", x:30, y:4}, {type:"lava", x:32, y:4}, {type:"lava", x:33, y:4}, {type:"lava", x:35, y:4}, {type:"lava", x:36, y:4}, {type:"lava", x:2, y:2}, {type:"waterM", x:40, y:2}, {type:"gumrusch", x:4, y:7}, {type:"gumrusch", x:5, y:7}, {type:"gumrusch", x:33, y:7}, {type:"hindalarrskeleton", x:22, y:8}, {type:"hindalarrskeleton", x:23, y:8}, {type:"hindalarrskeleton", x:11, y:8}, {type:"hindalarrskeleton", x:12, y:8}, {type:"hindalarrskeleton", x:15, y:8}, {type:"ishish", x:24, y:0}, {type:"coin", x:28, y:2}, {type:"coin", x:32, y:1}, {type:"coin", x:33, y:1}, {type:"coin", x:30, y:6}, {type:"hawkstatue", x:43, y:1}, {type:"coin", x:34, y:6}, {type:"coin", x:37, y:6}, {type:"coin", x:21, y:4}, {type:"coin", x:19, y:2}, {type:"coin", x:17, y:2}, {type:"coin", x:9, y:1}, {type:"coin", x:7, y:2}];
EXITS = {W0:["lv2_12", 5, 0], N0:["lv2_14", 0, 0], N1:["lv2_14", 1, 0], N2:["lv2_14", 2, 0]};
if (_root.lang == "es") {
var b = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
var a = [["KAREN", "Esta TRIDENTE DE MANO le dara un poder superior a tu ataque cuerpo a cuerpo."]];
}
if (_root.lang == "en") {
var b = [["KAREN", "This EXTRA HEART will give you extra resistance against enemies attacks"]];
var a = [["KAREN", "This HAND TRIDENT will give you a stronger attack against enemies."]];
}
bg = [4, 0, 7];
OBJECTS = [{type:"relic", x:7, y:4, id:2, conv:a, name:"ARMA3"}, {type:"relic", x:1, y:1, id:25, conv:b, name:"CORAZON6"}];
tileset = "tileset3";
DrawMap();
if (_root.currentMusic == "isla") {
_root.playMusic("cavernas");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("cavernas");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("cavernas");
}
Frame 38
area = "lv2_18";
map = [[23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 117], [0, 0, 0, 0, 21, 103, 103, 0, 0, 0, 0, 0, 0, 0, 24], [0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [0, 0, 0, 0, 21, 92, 0, 0, 0, 92, 0, 0, 0, 92, 24], [16, 17, 0, 92, 0, 91, 21, 101, 101, 91, 101, 101, 0, 93, 24], [117, 25, 101, 91, 0, 91, 21, 21, 21, 93, 21, 21, 0, 0, 24], [117, 25, 21, 93, 101, 93, 21, 0, 21, 101, 21, 0, 92, 0, 24], [117, 25, 21, 21, 21, 21, 21, 0, 103, 21, 93, 0, 93, 0, 24], [117, 25, 0, 93, 0, 93, 0, 92, 0, 0, 0, 0, 101, 101, 24], [117, 25, 0, 0, 0, 0, 0, 93, 0, 92, 0, 101, 21, 21, 24], [117, 25, 92, 101, 101, 101, 101, 21, 21, 93, 101, 21, 93, 0, 24], [117, 25, 93, 21, 21, 21, 21, 21, 21, 21, 21, 93, 0, 0, 24], [117, 25, 0, 0, 93, 0, 93, 0, 93, 0, 93, 0, 101, 92, 24], [117, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 21, 93, 24], [117, 25, 0, 101, 101, 101, 101, 101, 101, 101, 101, 21, 91, 0, 24], [117, 25, 21, 21, 21, 21, 21, 21, 21, 21, 21, 93, 93, 0, 24], [117, 25, 0, 0, 93, 0, 0, 93, 0, 0, 93, 0, 0, 101, 24], [117, 25, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 21, 24], [117, 25, 91, 101, 101, 101, 101, 101, 101, 101, 101, 101, 21, 0, 24], [117, 25, 93, 21, 21, 21, 21, 21, 21, 21, 21, 21, 0, 92, 24], [117, 25, 0, 93, 103, 0, 103, 0, 103, 0, 0, 93, 0, 91, 24], [117, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 91, 24], [117, 25, 0, 0, 101, 0, 101, 0, 101, 0, 0, 101, 21, 91, 24], [23, 22, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 91, 24], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 24], [0, 0, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 24], [0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 24], [0, 0, 91, 0, 0, 0, 92, 0, 0, 92, 0, 0, 0, 91, 24], [0, 0, 93, 101, 101, 0, 93, 101, 101, 93, 0, 101, 101, 91, 24], [16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 97]];
BADDIES = [{type:"icicles", x:12, y:1}, {type:"coin", x:10, y:1}, {type:"coin", x:13, y:1}, {type:"coin", x:7, y:6}, {type:"coin", x:2, y:14}, {type:"coin", x:2, y:24}, {type:"coin", x:12, y:24}, {type:"swordtrap", x:5, y:29}, {type:"swordtrap", x:10, y:29}];
OBJECTS = [{type:"checkpoint", x:1, y:27}];
EXITS = {W0:["lv2_19", 2, 0], W2:["lv2_16", 1, 0]};
bg = [4, 0, 7];
tileset = "tileset3";
DrawMap();
Frame 39
area = "lv2_19";
map = [[125, 125, 125, 26, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23], [125, 125, 125, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 21, 103, 103, 103, 103, 103, 103, 103, 103, 0, 0, 0, 0, 0, 0, 21, 93, 0, 0, 93, 0, 0, 93, 0, 0, 93, 0], [125, 125, 125, 26, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 101, 101, 101, 101, 101, 101, 101, 101, 0], [125, 125, 125, 26, 0, 0, 15, 16, 16, 17, 0, 0, 0, 0, 21, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 17, 0, 0, 0, 21, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 0], [125, 125, 125, 26, 0, 0, 24, 117, 117, 25, 0, 0, 0, 21, 21, 0, 0, 0, 21, 0, 0, 0, 21, 0, 0, 0, 0, 0, 24, 25, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15], [125, 125, 125, 26, 0, 11, 24, 117, 117, 25, 0, 0, 0, 0, 21, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 25, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [125, 125, 125, 26, 0, 0, 24, 117, 117, 25, 21, 0, 0, 0, 21, 0, 0, 21, 21, 21, 0, 0, 0, 0, 0, 21, 0, 0, 24, 25, 21, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 0, 24], [125, 125, 125, 26, 0, 0, 24, 117, 117, 25, 0, 0, 0, 0, 21, 0, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [125, 125, 125, 26, 0, 0, 24, 117, 117, 25, 0, 0, 0, 0, 0, 0, 21, 21, 21, 101, 101, 101, 101, 101, 101, 101, 101, 101, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [125, 125, 125, 26, 11, 0, 24, 117, 117, 99, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 97, 99, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 97]];
BADDIES = [{type:"icicles", x:29, y:1}, {type:"gumrusch", x:7, y:1}, {type:"lostsoul", x:12, y:7}, {type:"lostsoul", x:12, y:3}, {type:"crystoise", x:25, y:5}, {type:"gum", x:32, y:3}, {type:"orbot", x:33, y:8}, {type:"gum", x:36, y:8}, {type:"hindalarrskeleton", x:40, y:8}, {type:"gum", x:38, y:5}, {type:"gum", x:36, y:5}, {type:"gum", x:40, y:5}, {type:"gum", x:42, y:5}, {type:"gum", x:31, y:8}, {type:"orbot", x:42, y:8}, {type:"gum", x:22, y:3}];
EXITS = {S0:["lv2_15", 1, 0], E:["lv2_18", 0, 0]};
bg = [4, 0, 7];
tileset = "tileset3";
DrawMap();
OBJECTS = [];
if (_root.currentMusic == "isla") {
_root.playMusic("cavernas");
}
if (_root.currentMusic == "castillo") {
_root.playMusic("cavernas");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("cavernas");
}
Frame 40
area = "lv2_20";
if (_root.pistola2 == false) {
map = [[55, 45, 45, 45, 45, 45, 44, 0, 0, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 54], [42, 0, 0, 0, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 91, 41], [42, 0, 0, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 41], [42, 0, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 41], [42, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41], [42, 0, 31, 31, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41], [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41], [42, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41], [42, 0, 0, 0, 0, 0, 0, 31, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 41], [57, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 56]];
} else {
map = [[55, 45, 45, 45, 45, 45, 44, 0, 0, 43, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 54], [42, 0, 0, 0, 0, 0, 0, 0, 33, 34, 0, 0, 93, 0, 93, 0, 93, 0, 91, 0, 91, 0, 91, 0, 91, 0, 91, 0, 91, 41], [42, 0, 0, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 0, 93, 0, 93, 0, 93, 0, 91, 0, 91, 41], [42, 0, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 93, 41], [42, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 0, 0, 41], [42, 0, 31, 31, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41], [42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41], [42, 31, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41], [42, 31, 0, 0, 0, 0, 0, 31, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 41], [57, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 56]];
}
BADDIES = [{type:"prismblock", x:8, y:7}, {type:"prismblock2", x:11, y:6}, {type:"prismblock", x:15, y:5}, {type:"prismblock2", x:19, y:6}, {type:"prismblock", x:23, y:5}, {type:"prismblock2", x:27, y:7}, {type:"coin", x:11, y:2}, {type:"coin", x:13, y:1}, {type:"coin", x:15, y:2}, {type:"coin", x:17, y:1}, {type:"coin", x:19, y:2}, {type:"coin", x:21, y:1}, {type:"coin", x:23, y:2}, {type:"coin", x:25, y:1}, {type:"swordtrap", x:3, y:9}, {type:"swordtrap", x:5, y:9}];
if (_root.lang == "es") {
var a = [["KAREN", "Esta nueva PISTOLA LASER le dara un poder superior a tu disparo, lo que hara mas facil tu viaje por ciertas zonas del castillo"]];
}
if (_root.lang == "en") {
var a = [["KAREN", "This LASER GUN will give you a powerful shoot against enemies"]];
}
OBJECTS = [{type:"relic", x:27, y:1, id:8, conv:a, name:"PISTOLA2"}];
EXITS = {N:["lv2_12", 5, 0]};
bg = [6, 0, 0];
tileset = "tileset2";
DrawMap();
if (_root.GOT_RELICS.PISTOLA2 == true) {
DrawMap();
}
Frame 41
_root.llaveF = true;
area = "lv2_21";
map = [[13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 59, 11, 6, 28, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 38], [59, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 6, 0, 0, 0, 0, 0, 125, 126, 0, 125, 126, 0, 125, 126, 0, 125, 126, 0, 125, 126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 124, 0, 123, 124, 0, 123, 124, 0, 123, 124, 0, 123, 124, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [12, 0, 137, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 138, 0, 0, 0, 137, 138, 0, 0, 0, 137, 138, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 113, 114, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [12, 0, 149, 140, 0, 0, 0, 31, 31, 31, 0, 0, 0, 149, 140, 0, 0, 0, 149, 140, 0, 0, 0, 135, 140, 0, 0, 0, 0, 137, 138, 0, 0, 143, 144, 0, 121, 122, 0, 143, 144, 0, 121, 122, 0, 143, 144, 0, 121, 122, 0, 113, 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [12, 0, 149, 140, 0, 0, 0, 0, 0, 0, 0, 0, 0, 149, 140, 0, 0, 0, 149, 140, 0, 0, 0, 139, 140, 0, 0, 0, 0, 135, 140, 0, 0, 143, 144, 0, 121, 122, 0, 143, 144, 0, 121, 122, 0, 143, 144, 0, 121, 122, 0, 121, 122, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [12, 0, 149, 140, 0, 0, 0, 0, 152, 153, 154, 0, 0, 135, 140, 0, 0, 0, 135, 140, 0, 0, 0, 147, 136, 0, 0, 0, 0, 147, 136, 0, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 121, 122, 0, 113, 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [12, 0, 145, 150, 0, 30, 0, 161, 162, 163, 164, 30, 0, 145, 150, 0, 97, 0, 145, 146, 0, 97, 0, 145, 146, 0, 97, 0, 0, 145, 146, 0, 0, 131, 132, 0, 131, 132, 0, 131, 132, 0, 131, 132, 0, 131, 132, 0, 131, 132, 0, 131, 132, 0, 131, 132, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [12, 0, 0, 0, 0, 50, 0, 171, 172, 173, 174, 98, 0, 0, 0, 0, 50, 0, 0, 0, 0, 98, 0, 0, 0, 0, 98, 0, 0, 0, 0, 0, 0, 141, 142, 0, 141, 142, 0, 141, 142, 0, 141, 142, 0, 141, 142, 0, 141, 142, 0, 141, 142, 0, 141, 142, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [49, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0, 0, 0, 0, 25, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 38]];
_water = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
BADDIES = [{type:"clockstones", x:60, y:1}, {type:"clockstones", x:60, y:2}, {type:"clockstones", x:60, y:3}, {type:"clockstones", x:61, y:3}, {type:"clockstones", x:62, y:3}, {type:"clockstones", x:63, y:3}, {type:"clockstones", x:64, y:3}, {type:"clockstones", x:65, y:3}, {type:"lava", x:28, y:9}, {type:"lava", x:29, y:9}, {type:"lava", x:30, y:9}, {type:"lava", x:28, y:9}, {type:"lava", x:29, y:9}, {type:"lava", x:30, y:9}, {type:"lava", x:31, y:9}, {type:"khgnippa", x:31, y:4}, {type:"khgnippa", x:28, y:7}, {type:"clockstones", x:5, y:2}, {type:"clockstones", x:5, y:3}, {type:"clockstones", x:5, y:4}, {type:"clockstones", x:9, y:5}, {type:"clockstones", x:6, y:4}, {type:"clockstones", x:7, y:5}, {type:"clockstones", x:10, y:4}, {type:"clockstones", x:11, y:4}, {type:"clockstones", x:11, y:3}, {type:"clockstones", x:11, y:2}, {type:"clockstones", x:8, y:5}, {type:"clockstones", x:66, y:3}, {type:"clockstones", x:67, y:3}, {type:"clockstones", x:68, y:3}, {type:"clockstones", x:69, y:3}, {type:"clockstones", x:70, y:3}, {type:"clockstones", x:71, y:3}, {type:"clockstones", x:72, y:3}, {type:"clockstones", x:73, y:3}, {type:"clockstones", x:74, y:3}, {type:"clockstones", x:75, y:3}, {type:"clockstones", x:76, y:3}, {type:"clockstones", x:77, y:3}, {type:"clockstones", x:78, y:3}, {type:"clockstones", x:79, y:3}, {type:"clockstones", x:80, y:3}, {type:"clockstones", x:81, y:3}, {type:"clockstones", x:82, y:3}, {type:"clockstones", x:83, y:3}, {type:"clockstones", x:84, y:3}, {type:"clockstones", x:85, y:3}, {type:"clockstones", x:86, y:3}, {type:"clockstones", x:86, y:2}, {type:"clockstones", x:86, y:1}, {type:"gum", x:61, y:2}, {type:"orbot", x:62, y:2}, {type:"orbot", x:63, y:2}, {type:"orbot", x:75, y:2}, {type:"gum", x:65, y:2}, {type:"gumrusch", x:66, y:1}, {type:"gum", x:70, y:2}, {type:"orbot", x:69, y:2}, {type:"clockstones", x:68, y:2}, {type:"clockstones", x:71, y:2}, {type:"khgnippa", x:85, y:8}, {type:"khgnippa", x:86, y:6}, {type:"khgnippa", x:88, y:5}, {type:"hindalarrskeleton", x:76, y:1}, {type:"hindalarrskeleton", x:64, y:1}, {type:"gum", x:79, y:2}, {type:"gum", x:73, y:2}, {type:"gum", x:81, y:2}, {type:"gumrusch", x:77, y:1}, {type:"orbot", x:84, y:2}, {type:"clockstones", x:88, y:8, SWITCH:20}, {type:"clockstones", x:9, y:3, SWITCH:20}, {type:"swordtrap", x:60, y:9}, {type:"swordtrap", x:68, y:9}, {type:"swordtrap", x:71, y:9}, {type:"swordtrap", x:80, y:9}];
OBJECTS = [{type:"door", x:8, y:3, dest:["lv2_22", 3, 8]}, {type:"door", x:1, y:8, dest:["lv2_1b", 7, 8]}];
bg = [2, 9, 3];
tileset = "tileset2C";
DrawMap();
if (_root.bg[2] == 0) {
_root.fondo.gotoAndStop(8);
}
if (_root.bg[2] == 3) {
_root.fondo.gotoAndStop(2);
}
if (_root.bg[2] == 1) {
_root.fondo.gotoAndStop(3);
}
if (_root.bg[2] == 4) {
_root.fondo.gotoAndStop(4);
}
if (_root.bg[2] == 5) {
_root.fondo.gotoAndStop(5);
}
if (_root.bg[2] == 6) {
_root.fondo.gotoAndStop(6);
}
if (_root.bg[2] == 7) {
_root.fondo.gotoAndStop(7);
}
Frame 42
area = "lv2_22";
map = [[39, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 39], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [39, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 39]];
BADDIES = [];
OBJECTS = [{type:"door", x:3, y:8, dest:["lv2_21", 8, 3]}, {type:"door", x:11, y:8, dest:["lv2_boss", 2, 8]}, {type:"checkpoint", x:6, y:7}];
bg = [2, 9, 3];
tileset = "tileset2C";
DrawMap();
if (_root.currentMusic == "jefe") {
_root.playMusic("castillo");
}
if (_root.currentMusic == "cavernas") {
_root.playMusic("castillo");
}
if ((_root.currentMusic == null) && (!MUTE)) {
_root.playMusic("castillo");
}
Frame 43
area = "lv2_boss";
map = [[39, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 39], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [22, 0, 25, 21, 21, 21, 26, 0, 25, 21, 21, 21, 26, 0, 24]];
BADDIES = [{type:"lava", x:1, y:9}, {type:"lava", x:7, y:9}, {type:"lava", x:13, y:9}, {type:"clockstones", x:1, y:9}, {type:"clockstones", x:7, y:9}, {type:"clockstones", x:13, y:9}, {type:"boss2", x:9, y:4}, {type:"clockstones", x:88, y:8, SWITCH:20}];
OBJECTS = [{type:"door", x:3, y:8, dest:["lv2_21", 8, 3]}, {type:"door", x:11, y:8, dest:["lv2_tbl", 2, 8]}];
EXITS = {};
bg = [2, 9, 3];
tileset = "tileset2";
DrawMap();
_root.playMusic("jefe");
Frame 44
area = "lv2_tbl";
map = [[39, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 22], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 21, 22], [22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 21, 39, 38, 22], [22, 0, 0, 0, 0, 0, 0, 0, 25, 21, 38, 38, 38, 38, 22], [22, 0, 0, 0, 0, 0, 25, 21, 38, 38, 38, 38, 38, 38, 22], [22, 0, 0, 0, 25, 21, 39, 38, 38, 38, 38, 38, 38, 38, 22], [39, 21, 21, 21, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 22]];
BADDIES = [];
OBJECTS = [{type:"door", x:13, y:3, dest:["lv2_ending"]}, {type:"door2", x:2, y:8}];
EXITS = {};
bg = [2, 2];
tileset = "tileset2";
DrawMap();
Frame 45
ExitToEnding();
Frame 48
_root.tutorial1 = true;
_root.gotoAndStop(CHECKPOINT[0]);
Frame 50
_root.gotoAndStop("lv2_1");
Frame 51
area = "lvT_1";
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 51, 52, 53, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 3, 0, 0, 0, 0], [108, 108, 108, 13, 15, 14, 15, 14, 15, 14, 16, 1, 1, 1, 1]];
BADDIES = [{type:"waterB", x:2, y:9}, {type:"waterB", x:1, y:9}, {type:"waterB", x:0, y:9}];
if (_root.lang == "es") {
var b = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
var c = [["ANIBAL", "\"Para obtener todas las mejoras sera necesaria tu curiosidad.\""]];
}
if (_root.lang == "en") {
var b = [["KAREN", "This EXTRA HEART will give you extra resistance against enemy attacks"]];
var c = [["ANIBAL", "The Sign said: \"To get All Upgrades you need to explore all areas.\""]];
}
OBJECTS = [{type:"K_z", x:11, y:3}, {type:"K_up", x:12, y:6}, {type:"relic", x:6, y:5, id:6, conv:b, name:"CORAZON1"}, {type:"signpost", x:12, y:8, words:c}];
EXITS = {E:["lvT_2", 0, 0]};
bg = [1, 2, 3];
tileset = "tileset1B";
DrawMap();
_root.OFFSET[0] = "lvT_1";
Frame 52
_root.llaveT = true;
area = "lvT_2";
map = [[0, 0, 4, 11, 15, 14, 14, 14, 15, 15, 14, 14, 15, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 11, 11, 11, 11, 6, 17, 11, 11, 11, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 14, 14, 14, 14], [0, 0, 0, 0, 4, 11, 11, 11, 11, 11, 11, 11, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 14, 14, 14], [0, 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, 0, 91, 13, 15, 12, 0, 0, 13, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 14, 14, 14], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 123, 0, 0, 0, 0, 0, 91, 13, 14, 12, 0, 0, 4, 5, 0, 0, 0, 0, 115, 0, 51, 52, 53, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 14, 14, 14], [0, 0, 0, 0, 0, 51, 52, 52, 52, 52, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 132, 133, 0, 0, 0, 0, 0, 91, 4, 11, 5, 0, 0, 0, 0, 0, 0, 0, 8, 9, 29, 1, 1, 1, 19, 9, 9, 9, 29, 3, 0, 0, 0, 0, 0, 51, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 14, 14, 14], [0, 0, 0, 0, 51, 52, 52, 52, 52, 52, 52, 52, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 51, 52, 53, 0, 0, 21, 0, 115, 0, 0, 115, 0, 141, 142, 143, 0, 21, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 115, 0, 0, 8, 47, 14, 11, 11, 11, 11, 15, 14, 11, 11, 11, 15, 3, 0, 0, 0, 0, 151, 152, 153, 0, 0, 0, 0, 0, 0, 0, 31, 32, 53, 0, 0, 0, 0, 13, 14, 14, 14, 14], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19, 9, 9, 29, 19, 29, 1, 1, 19, 9, 9, 9, 9, 9, 9, 9, 29, 1, 1, 1, 1, 1, 19, 9, 9, 29, 1, 19, 9, 47, 14, 12, 0, 0, 0, 0, 13, 12, 0, 0, 0, 13, 14, 19, 9, 29, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 14, 14, 14, 14]];
BADDIES = [{type:"orbot", x:43, y:2}, {type:"orbot", x:48, y:2}, {type:"gum", x:46, y:8}, {type:"gum", x:63, y:8}, {type:"waterB", x:68, y:9}, {type:"waterB", x:69, y:9}, {type:"waterB", x:70, y:9}, {type:"waterB", x:71, y:9}, {type:"waterB", x:74, y:9}, {type:"waterB", x:75, y:9}, {type:"waterB", x:76, y:9}, {type:"skelletor", x:84, y:2}, {type:"orbot", x:88, y:8}, {type:"gum", x:58, y:2}];
if (_root.lang == "es") {
var a = [["KAREN", "Esta PISTOLA te da el poder de atacar desde lejos. Usa la tecla C para disparar."]];
var b = [["KAREN", "Este CORAZON EXTRA te otorgara mayor capacidad para resistir los ataques enemigos"]];
var c = [["KAREN", "Esta ARMA te da la posibilidad de atacar a los enemigos, tiene un gran poder. Presiona X para usarla."]];
var d = [["KAREN", "Este dispostivo GPS te ayudara para saber exactamente donde estas en la isla"]];
var e = [["ANIBAL", "El letrero dice: \"Para ocupar la PISTOLA LASER debes apretar la letra C. \""]];
var f = [["ANIBAL", "El letrero dice: \"Para atacar con tu ESPADA debes apretar la letra X.\""]];
var g = [["ANIBAL", "El letrero dice: \"Si apretas la FLECHA ARRIBA podras leer variados mensajes que estan en la isla. Presiona ESPACIO para Pausa/Unpausa el juego.\""]];
var h = [["ANIBAL", "El letrero dice: \"Si apretas la FLECHA ARRIBA podras leer variados mensajes que estan en la isla. Presiona ESPACIO para Pausa/Unpausa el juego.\""]];
}
if (_root.lang == "en") {
var a = [["KAREN", "This GUN gives you the ability to range attack. Press C to SHOOT."]];
var b = [["KAREN", "This EXTRA HEART will give you extra resistance against enemy attacks"]];
var c = [["KAREN", "This SCIMITAR will give you the ability to attack enemies from short distance. Press X to USE."]];
var d = [["KAREN", "This GPS device will help you to know where you are at the cursed island"]];
var e = [["ANIBAL", "The Sign said: \"To use the GUN you must press C key. \""]];
var f = [["ANIBAL", "The Sign said: \"To attack with your SCIMITAR you must press X key.\""]];
var g = [["ANIBAL", "The Sign said: \"If you press UP ARROW you can read all the sign messages at the island.\""]];
var h = [["ANIBAL", "The Sign said: \" You can press SPACE to Pause/Unpause the game.\""]];
}
OBJECTS = [{type:"K_up", x:16, y:6}, {type:"K_x", x:36, y:4}, {type:"door2", x:8, y:6}, {type:"K_left", x:3, y:3}, {type:"K_right", x:13, y:3}, {type:"K_z", x:24, y:4}, {type:"K_up", x:55, y:1}, {type:"relic", x:36, y:6, id:0, conv:c, name:"ARMA1"}, {type:"forceblockT", x:27, y:8, colour:0}, {type:"forceblockT", x:40, y:1, colour:0}, {type:"forceblockT", x:40, y:2, colour:0}, {type:"forceblockT", x:40, y:3, colour:0}, {type:"forceblockT", x:40, y:4, colour:0}, {type:"forceblockT", x:41, y:4, colour:0}, {type:"forceblockT", x:42, y:4, colour:0}, {type:"forceblockT", x:43, y:4, colour:0}, {type:"forceblockT", x:44, y:4, colour:0}, {type:"forceblockT", x:47, y:4, colour:0}, {type:"forceblockT", x:48, y:4, colour:0}, {type:"forceblockT", x:49, y:4, colour:0}, {type:"forceblockT", x:50, y:4, colour:0}, {type:"forceblockT", x:51, y:4, colour:0}, {type:"forceblockT", x:51, y:3, colour:0}, {type:"forceblockT", x:51, y:2, colour:0}, {type:"forceblockT", x:51, y:1, colour:0}, {type:"forceblockT", x:56, y:8, colour:0}, {type:"forceblockT", x:89, y:1, colour:0}, {type:"forceblockT", x:89, y:2, colour:0}, {type:"forceblockT", x:89, y:3, colour:0}, {type:"forceblockT", x:89, y:4, colour:0}, {type:"forceblockT", x:89, y:5, colour:0}, {type:"forceblockT", x:89, y:6, colour:0}, {type:"forceblockT", x:89, y:7, colour:0}, {type:"forceblockT", x:89, y:8, colour:0}, {type:"K_c", x:70, y:2}, {type:"relic", x:70, y:4, id:7, conv:a, name:"PISTOLA1"}, {type:"K_c", x:77, y:1}, {type:"door", x:98, y:8, dest:["lv2_0", 12, 28]}, {type:"K_up", x:98, y:5}, {type:"signpost", x:76, y:6, words:e}, {type:"relic", x:94, y:6, id:3, conv:d, name:"GPS"}, {type:"relic", x:84, y:6, id:24, conv:b, name:"LLAVET"}, {type:"signpost", x:40, y:7, words:f}, {type:"signpost", x:16, y:8, words:g}, {type:"signpost", x:21, y:8, words:h}];
EXITS = {W0:["lvT_1", 0, 0]};
bg = [1, 2, 3];
tileset = "tileset1B";
DrawMap();
_root.OFFSET[0] = "lvT_1";
Frame 53
var cmMenu = new ContextMenu();
cmMenu.hideBuiltInItems();
cmMenu.builtInItems.quality = true;
menu = cmMenu;
Instance of Symbol 735 MovieClip in Frame 55
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("TITLE");
}
Instance of Symbol 735 MovieClip in Frame 56
on (release) {
_root.playSFX("boton");
_root.gotoAndStop("TITLE");
}
Frame 58
lg.onRollOver = function () {
lg.gotoAndStop(2);
};
lg.onRollOut = function () {
lg.gotoAndStop(1);
};
ag.onRollOver = function () {
ag.gotoAndStop(2);
};
ag.onRollOut = function () {
ag.gotoAndStop(1);
};
Instance of Symbol 66 MovieClip "ag" in Frame 58
on (release) {
getURL ("http://armor.ag/MoreGames", _blank);
}
Instance of Symbol 838 MovieClip "lg" in Frame 58
on (release) {
getURL ("http://www.lartargames.com", _blank);
}
Symbol 34 MovieClip [anibal] Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
function Move(x, y) {
_root.gpsx = _root.PC._x;
_root.gpsy = _root.PC._y;
if (((_root.salto1 == false) && (_root.salto2 == false)) && (_root.salto3 == false)) {
_root.salto = 5.4;
}
if (((_root.salto1 == true) && (_root.salto2 == false)) && (_root.salto3 == false)) {
_root.salto = 8;
}
if ((_root.salto2 == true) && (_root.salto3 == false)) {
_root.salto = 10;
}
if (_root.salto3 == true) {
_root.salto = 17;
}
last_x = _x;
last_y = _y;
_x = (_x + (x * (inWater ? 0.5 : 1)));
_y = (_y + (y * ((inWater && (!laddering)) ? 0.5 : 1)));
var _local5 = _y + (HEIGHT * 2);
var _local13 = _y + ((HEIGHT - 20) * 2);
var _local7 = _x + (SIZE[0] / 2);
var _local6 = _x - (SIZE[0] / 2);
var _local9 = [0, 0];
if (x < 0) {
var _local10 = false;
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor((_local13 + 1) / TILESIZE)];
var _local4 = [Math.floor(_local6 / TILESIZE), Math.floor((_local5 - 1) / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || (((Math.floor(_local6 / TILESIZE) < 0) && (_root.EXITS.W == null)) && (_root.EXITS["W" + Math.floor(_y / STAGEH)] == null))) {
_x = (((Math.floor(_local6 / TILESIZE) + 1) * TILESIZE) + 10);
Collision_Left();
_local10 = true;
} else {
_local9[0] = -1;
}
if (ChecksForEdges && (!_local10)) {
if (airborne == "roof") {
if (Math.ceil(WALLS[_local4[1] - 1][_local3[0]] / 80) != 1) {
Collision_Left();
}
} else if (airborne) {
if (Math.ceil(WALLS[_local3[1]][_local3[0]] / 50) == 1) {
Collision_Left();
}
} else if (Math.ceil(WALLS[_local4[1] + 1][_local3[0]] / 80) != 1) {
Collision_Left();
}
}
} else if (x > 0) {
var _local10 = false;
var _local3 = [Math.floor(_local7 / TILESIZE), Math.floor((_local13 + 1) / TILESIZE)];
var _local4 = [Math.floor(_local7 / TILESIZE), Math.floor((_local5 - 1) / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || (((Math.floor(_local7 / TILESIZE) >= _root.map[0].length) && (_root.EXITS.E == null)) && (_root.EXITS["E" + Math.floor(_y / STAGEH)] == null))) {
_x = ((Math.floor(_local7 / TILESIZE) * TILESIZE) - 10);
Collision_Right();
_local10 = true;
} else {
_local9[0] = 1;
}
if (ChecksForEdges && (!_local10)) {
if (airborne == "roof") {
if (Math.ceil(WALLS[_local4[1] - 1][_local3[0]] / 80) != 1) {
Collision_Right();
}
} else if (airborne) {
if (Math.ceil(WALLS[_local3[1]][_local3[0]] / 50) == 1) {
Collision_Right();
}
} else if (Math.ceil(WALLS[_local4[1] + 1][_local3[0]] / 80) != 1) {
Collision_Right();
}
}
}
if (y > 0) {
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor(_local5 / TILESIZE)];
var _local4 = [Math.floor((_local7 - 1) / TILESIZE), Math.floor(_local5 / TILESIZE)];
var _local11 = WALLS[_local3[1]][_local3[0]];
var _local12 = WALLS[_local4[1]][_local4[0]];
var _local16 = WALLS[Math.floor((_y + HEIGHT) / TILESIZE)][int(_x / TILESIZE)];
if ((laddering && (Math.floor(_local16 / 10) != 9)) && (_local16 != null)) {
_y = (_y - y);
} else if ((((_local11 && (_local11 < 90)) || ((_local11 == null) && (Math.floor(WALLS[_local3[1] - 1][_local3[0]] / 10) == 10))) && ((_local3[1] * TILESIZE) >= (_local5 - y))) || (((_local12 && (_local12 < 90)) || ((_local12 == null) && (Math.floor(WALLS[_local4[1] - 1][_local4[0]] / 10) == 10))) && ((_local4[1] * TILESIZE) >= (_local5 - y)))) {
_y = ((Math.floor(_local5 / TILESIZE) * TILESIZE) - (HEIGHT * 2));
LandOnGround();
StuckTo = null;
laddering = false;
onIce = (Math.floor(_local11 / 10) == 4) || (Math.floor(_local12 / 10) == 4);
} else {
var _local8 = false;
for (var _local14 in _root.MOVING) {
var _local2 = _root.MOVING[_local14];
if ((((_local5 >= _local2._y) && (_local5 <= (_local2._y + 14))) && (_local7 >= _local2._x)) && (_local6 <= (_local2._x + TILESIZE))) {
_local8 = true;
_y = (_local2._y - (HEIGHT * 2));
if (!laddering) {
StuckTo = _local2;
}
if (_local2.touch) {
_local2.moves = _local2.touch;
_local2.dontloop = true;
_local2.touch = null;
}
if (!laddering) {
LandOnGround();
}
}
}
if (!_local8) {
StuckTo = null;
_local9[1] = 1;
}
}
} else if (y < 0) {
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor(_local13 / TILESIZE)];
var _local4 = [Math.floor((_local7 - 1) / TILESIZE), Math.floor(_local13 / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || ((laddering && (Math.floor(WALLS[_local3[1]][_local3[0]] / 10) != 9)) && (WALLS[_local3[1]][_local3[0]] != null))) {
_y = (((Math.floor(_local5 / TILESIZE) + 1) * TILESIZE) - (HEIGHT * 2));
} else {
_local9[1] = -1;
}
}
ScrollMap(_x - last_x, _y - last_y);
return(_local9);
}
function LandOnGround() {
if (!landed) {
jdelay = 5;
DrawFrame(1);
jmom = 0;
jumping = false;
jump = 0;
jboost = 0;
falling = false;
jumped = false;
landed = true;
ladderjump = false;
if (ladderX != null) {
ladderX = null;
UpDown = true;
}
}
}
function Hurt(amount, force) {
if ((hurt && (!force)) || (dying)) {
return(undefined);
}
if ((_root.heartlost == null) || (_root.heartlost == undefined)) {
_root.heartlost = 0;
}
var _local3 = SharedObject.getLocal("CP_1");
_root.heartlost++;
_local3.data.heartlost = _root.heartlost;
_local3.flush();
_root.playSFX("hitplayer");
hurt = 66;
DrawFrame(14, true);
hf = 0;
jumping = false;
laddering = false;
if (_root.area.substr(2, 1) != "T") {
_root.PCHP[0] = _root.PCHP[0] - amount;
_root.vidas = _root.vidas - amount;
}
if (_root.BOSSMODE) {
_root.RECORDS.HURT_BY_BOSS++;
}
if (_root.vidas <= 0) {
if (_root.MUTE == false) {
musicasi = true;
_root.MUTE = true;
MusicPaused = MUSIC.position;
_root.MUSIC.stop();
_root.MUTE = false;
_root.playSFX("muerte");
}
moving = 0;
dying = 1;
_parent.attachMovie("DEATHFADE", "FADEOUT", 1999);
_parent.FADEOUT._alpha = 0;
_parent.FADEOUT._x = -_root.cont._x;
_parent.FADEOUT._y = -_root.cont._y;
(f = 0);
(r = 0);
_alpha = 100;
if (_root.BOSSMODE) {
_root.RECORDS.DIED_AGAINST_BOSS++;
if ((!_root.DIFFICULTY) && (_root.BOSS_TRIES >= 0)) {
_root.BOSS_TRIES--;
}
}
_root.SO.data.ACHIEVEMENTS.TOTALS.DEATHS++;
_root.SO.flush();
}
_root.RefreshGUI();
}
function Turn(d) {
_xscale = (XSCALE * ((dir = d)));
}
function Respawn(restart) {
if (restart) {
_root.CHECKPOINT = (_root.STARTPOINT = _root.LEVEL_BEGINNING);
_root.vidas = _root.MaxVidas;
}
var _local3 = SharedObject.getLocal("CP_1");
_root.coins = _local3.data.coins;
_root.KILLS = _local3.data.kills;
_root.DIFFICULTY = _local3.data.dificultad;
_root.llave1 = _local3.data.llave1;
_root.llave2 = _local3.data.llave2;
_root.llave3 = _local3.data.llave3;
_root.llave4 = _local3.data.llave4;
_root.llave5 = _local3.data.llave5;
_root.llaveT = _local3.data.llaveT;
_root.MaxVidas = _local3.data.MaxVidas;
_root.salto1 = _local3.data.salto1;
_root.salto2 = _local3.data.salto2;
_root.salto3 = _local3.data.salto3;
_root.arma1 = _local3.data.arma1;
_root.arma = _local3.data.arma;
_root.arma2 = _local3.data.arma2;
_root.arma3 = _local3.data.arma3;
_root.pistola = _local3.data.pistola;
_root.pistola1 = _local3.data.pistola1;
_root.pistola2 = _local3.data.pistola2;
_root.pistola3 = _local3.data.pistola3;
_root.snorkel1 = _local3.data.snorkel1;
_root.snorkel2 = _local3.data.snorkel2;
_root.corazon1 = _local3.data.corazon1;
_root.corazon2 = _local3.data.corazon2;
_root.corazon3 = _local3.data.corazon3;
_root.corazon4 = _local3.data.corazon4;
_root.corazon5 = _local3.data.corazon5;
_root.corazon6 = _local3.data.corazon6;
_root.corazon7 = _local3.data.corazon7;
_root.drake = _local3.data.drake;
_root.tamus = _local3.data.tamus;
_root.expetotal = _local3.data.exptotal;
if ((_root.PCLIVES < 0) && (_root.DIFFICULTY == 0)) {
_root.vidas = _root.MaxVidas;
_root.CHECKPOINT = _root.STARTPOINT;
_root.PCLIVES = _root.Diff_INITIAL_LIVES[_root.DIFFICULTY];
_root.PCEXP = 0;
_root.SWITCHES = {};
}
dissolving = "away";
Adown = true;
_root.vidas = _root.MaxVidas;
_root.PCHP[0] = _root.PCHP[1];
if (_root.area.substr(2, 1) == "T") {
_x = (((_root.CHECKPOINT[1] * TILESIZE) + (TILESIZE / 2)) + 500);
_y = ((_root.CHECKPOINT[2] * TILESIZE) - 12);
_root.cont._x = ((-STAGEW) * _root.OFFSET[1]) + 500;
_root.cont._y = (-STAGEH) * _root.OFFSET[2];
} else {
_root.OFFSET = [_root.CHECKPOINT[0], Math.floor(_root.CHECKPOINT[1] / (STAGEW / TILESIZE)), Math.floor(_root.CHECKPOINT[2] / (STAGEH / TILESIZE))];
_x = ((_root.CHECKPOINT[1] * TILESIZE) + (TILESIZE / 2));
_y = ((_root.CHECKPOINT[2] * TILESIZE) - 12);
_root.cont._x = (-STAGEW) * _root.OFFSET[1];
_root.cont._y = (-STAGEH) * _root.OFFSET[2];
}
_root.gotoAndStop("RESPAWN");
_root.SWITCHES = {};
for (var _local4 in _root.CHECKPOINT[3]) {
_root.SWITCHES[_local4] = _root.CHECKPOINT[3][_local4];
}
_root.CLEAR = ((_root.CHECKPOINT[4] == null) ? ({}) : (Clone(_root.CHECKPOINT[4])));
dying = false;
hurt = 40;
_parent.FADEOUT.removeMovieClip();
inWater = (last_inWater = false);
nosplash = true;
if (!_root.MUTE) {
_root.MUSIC.start(_root.MusicPaused / 1000);
}
if (_root.snorkel1 == false) {
_root.breath = 100;
} else if (_root.snorkel1 == true) {
_root.breath = 100;
} else if (_root.snorkel1 == true) {
_root.breath = 100;
}
_root.BOSSMODE = false;
_root.RefreshGUI();
}
function RespawnLite() {
Adown = true;
_root.PCHP[0] = _root.PCHP[1];
var _local3 = [3, 5];
_x = ((_local3[0] * TILESIZE) + (TILESIZE / 2));
_y = ((_local3[1] * TILESIZE) - 12);
dying = false;
hurt = 40;
_parent.FADEOUT.removeMovieClip();
inWater = (last_inWater = false);
nosplash = true;
_root.breath = 100;
_root.RefreshGUI();
}
function ScrollMap(x, y) {
var _local6 = {x:_x, y:_y};
_parent.localToGlobal(_local6);
if (_root.map[0].length > (STAGEW / TILESIZE)) {
var _local9 = _root.cont._x;
if (((x < 0) && (_local6.x < (STAGEW * 0.5))) || ((x > 0) && (_local6.x > (STAGEW * 0.5)))) {
_root.cont._x = _root.cont._x - x;
}
if (_root.cont._x > 0) {
_root.cont._x = 0;
}
if (_root.cont._x < ((-(_root.map[0].length - (STAGEW / TILESIZE))) * TILESIZE)) {
_root.cont._x = (-(_root.map[0].length - (STAGEW / TILESIZE))) * TILESIZE;
}
var _local5 = _local9 - _root.cont._x;
_root.PARALLAX1.Scroll((-_local5) / 4);
_root.PARALLAX2.Scroll((-_local5) / 6);
_root.PARALLAX3.Scroll((-_local5) / 8);
scrolled[0] = scrolled[0] - _local5;
var _local3 = STAGEW / TILESIZE;
while (scrolled[0] < (-TILESIZE)) {
_root.DrawTileColumn((_local3 + pos[0]) + 4, pos[0]);
pos[0]++;
scrolled[0] = scrolled[0] + TILESIZE;
}
while (scrolled[0] > TILESIZE) {
_root.DrawTileColumn(pos[0], (_local3 + pos[0]) + 4);
pos[0]--;
scrolled[0] = scrolled[0] - TILESIZE;
}
}
if (_root.map.length > (STAGEH / TILESIZE)) {
if (((y < 0) && (_local6.y < (STAGEH * 0.5))) || ((y > 0) && (_local6.y > (STAGEH * 0.5)))) {
_root.cont._y = _root.cont._y - y;
}
if (_root.cont._y > 0) {
_root.cont._y = 0;
}
if (_root.cont._y < ((-(_root.map.length - (STAGEH / TILESIZE))) * TILESIZE)) {
_root.cont._y = (-(_root.map.length - (STAGEH / TILESIZE))) * TILESIZE;
}
var _local5 = oldY - _root.cont._y;
scrolled[1] = scrolled[1] - _local5;
var _local4 = STAGEH / TILESIZE;
while (scrolled[1] < (-TILESIZE)) {
_root.DrawTileRow((_local4 + pos[1]) + 4, pos[1]);
pos[1]++;
scrolled[1] = scrolled[1] + TILESIZE;
}
while (scrolled[1] > TILESIZE) {
_root.DrawTileRow(pos[1], (_local4 + pos[1]) + 4);
pos[1]--;
scrolled[1] = scrolled[1] - TILESIZE;
}
}
}
function SwingSword() {
this.createEmptyMovieClip("wpn", 800);
wpn.R = 0;
wpn._x = -10;
wpn._y = 6;
if (_root.arma == 1) {
wpn.wBmp = flash.display.BitmapData.loadBitmap("swordslash");
}
if (_root.arma == 2) {
wpn.wBmp = flash.display.BitmapData.loadBitmap("swordslash1");
}
if (_root.arma == 3) {
wpn.wBmp = flash.display.BitmapData.loadBitmap("swordslash2");
}
DrawFrame(10);
wpn.onEnterFrame = function () {
this.R++;
if (this.R == 5) {
this.abmp = new flash.display.BitmapData(40, 20, true);
this.abmp.copyPixels(this.wBmp, new flash.geom.Rectangle(0, 0, 40, 20), new flash.geom.Point(0, 0));
this.attachBitmap(this.abmp, 100);
this.createEmptyMovieClip("bb", 110);
this.bb.attachBitmap(new flash.display.BitmapData(30, 20, true, 0), 11);
this.bb._x = 10;
this._parent.DrawFrame(11);
if (_root.arma == 1) {
_root.playSFX("swish1");
}
if (_root.arma == 2) {
_root.playSFX("swish2");
}
if (_root.arma == 3) {
_root.playSFX("swish3");
}
_root.RECORDS.USED_SWORD++;
_root.SO.data.ACHIEVEMENTS.TOTALS.SLASHES++;
_root.SO.flush();
}
if (this.R == 8) {
this.abmp.copyPixels(this.wBmp, new flash.geom.Rectangle(0, 20, 40, 20), new flash.geom.Point(0, 0));
}
if (this.R == 10) {
this.abmp.copyPixels(this.wBmp, new flash.geom.Rectangle(0, 40, 40, 20), new flash.geom.Point(0, 0));
}
if (this.R >= 15) {
this._parent.DrawFrame(1);
swording = false;
this.removeMovieClip();
}
};
}
function ShootBlaster() {
shootdir = cdir;
this.createEmptyMovieClip("wpn", 800);
wpn.R = 0;
wpn._x = 4;
wpn._y = 9;
if (_root.pistola == 1) {
wpn.wBmp = flash.display.BitmapData.loadBitmap("blaster");
}
if (_root.pistola == 2) {
wpn.wBmp = flash.display.BitmapData.loadBitmap("blaster1");
}
if (_root.pistola == 3) {
wpn.wBmp = flash.display.BitmapData.loadBitmap("blaster2");
}
wpn.abmp = new flash.display.BitmapData(12, 10, true);
wpn.abmp.copyPixels(wpn.wBmp, new flash.geom.Rectangle(0, 0, 12, 10), new flash.geom.Point(0, 0));
wpn.attachBitmap(wpn.abmp, 100);
DrawFrame((laddering ? (18 + r) : 12));
wpn.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (this._parent.dying) {
this.removeMovieClip();
}
this.R++;
if (this.R == 5) {
if (_root.balas < 1) {
} else {
this.abmp.copyPixels(wpn.wBmp, new flash.geom.Rectangle(0, 10, 12, 10), new flash.geom.Point(0, 0));
this._parent.DrawFrame((this._parent.laddering ? (18 + this._parent.r) : 13));
if (_root.pistola == 1) {
_root.playSFX("blaster1");
_root.CreateParticle(_x + ((shootdir == 1) ? 28 : -38), _y + 24, 10 * shootdir, 0, 1, "PC");
}
if (_root.pistola == 2) {
_root.playSFX("blaster2");
_root.CreateParticle(_x + ((shootdir == 1) ? 28 : -38), _y + 24, 10 * shootdir, 0, 4, "PC");
}
if ((_root.pistola == 3) || (_root.pistola > 3)) {
_root.CreateParticle(_x + ((shootdir == 1) ? 28 : -38), _y + 24, 10 * shootdir, 0, 5, "PC");
_root.playSFX("blaster3");
}
_root.RECORDS.USED_BLASTER++;
_root.balas--;
_root.SO.data.ACHIEVEMENTS.TOTALS.SHOTS++;
_root.SO.flush();
}
}
if (this.R >= 10) {
if (Key.isDown(KEYS.C) && (dir == cdir)) {
ShootBlaster();
} else {
this._parent.DrawFrame((this._parent.laddering ? (16 + this._parent.r) : 13));
swording = false;
this.removeMovieClip();
}
}
};
}
HEIGHT = 26;
SIZE = [20, 26];
bmp = new flash.display.BitmapData(20, 26, true);
LoadSheets("s_Anibal");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, 20, 26), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -10;
this.createEmptyMovieClip("bb", 3);
bb._x = -8;
bb._y = 3;
bb.attachBitmap(new flash.display.BitmapData(16, 20, true, 0), 12);
_width = (_width * 2);
_height = (_height * 2);
scrolled = [0, 0];
pos = [-2, -2];
c = 0;
(f = 0);
(f2 = 0);
(hf = 0);
m = 5;
r = 0;
dir = 1;
cdir = 1;
jumping = false;
jump = 0;
jmom = 0;
jdelay = 10;
landed = true;
XSCALE = _xscale;
mom = 0;
moving = 0;
last_inWater = false;
_root.breath = 100;
_root.ab = 0;
onEnterFrame = function () {
if (dissolving) {
if (dissolving == "away") {
dissolving = null;
}
var _local4 = 0;
while (_local4 < 30) {
bmp.setPixel32(random(SIZE[0]), random(SIZE[1]), 0);
_local4++;
}
return(undefined);
}
if (SpaceDown && (!Key.isDown(KEYS.SPACE))) {
SpaceDown = false;
}
if (_root.PAUSED) {
if (Key.isDown(27)) {
_root.PAUSED = false;
_root.ExitToMainMenu();
return(undefined);
}
if ((!SpaceDown) && (Key.isDown(KEYS.SPACE))) {
_root.PAUSEDGUI.removeMovieClip();
_root.snap.removeMovieClip();
_root.PAUSED = false;
if (!_root.MUTE) {
_root.MUSIC.start(_root.MusicPausedAt / 1000);
}
SpaceDown = true;
}
return(undefined);
}
if ((!SpaceDown) && (Key.isDown(KEYS.SPACE))) {
_root.playSFX("pausado");
_root.PauseGame(true);
SpaceDown = true;
return(undefined);
}
if (_root.GUI.conv._visible) {
return(undefined);
}
if (AT) {
AT--;
return(undefined);
}
var _local16 = WALLS[Math.floor((_y + HEIGHT) / TILESIZE)][int(_x / TILESIZE)];
if (ladderX) {
if (ladderX != _local16) {
ladderX = "YES";
}
if (ladderX == "YES") {
UpDown = false;
}
}
var _local14 = WATER[Math.floor(((_y + (HEIGHT * 2)) - 5) / TILESIZE)][Math.floor(_x / TILESIZE)];
inWater = Boolean(int(_local14));
if (_local14 == null) {
nosplash = true;
inWater = last_inWater;
}
if (nosplash) {
nosplash = false;
} else if (inWater != last_inWater) {
_root.Splash(_x, ((Math.floor(((_y + (HEIGHT * 2)) - 5) / TILESIZE) + (inWater ? 0 : 1)) * TILESIZE) + 6);
}
last_inWater = inWater;
if (inWater) {
breathb = breathb - 0.1;
if ((_root.snorkel1 == false) && (_root.snorkel2 == false)) {
_root.breath = _root.breath - 1;
}
if ((_root.snorkel1 == true) && (_root.snorkel2 == false)) {
_root.breath = _root.breath - 0.16;
}
if (_root.snorkel2 == true) {
_root.breath = _root.breath - 0.05;
}
if ((_root.breath <= 0) && (((int(_root.breath * 10) / 10) % 10) == 0)) {
Hurt(99, true);
}
if (((int(_root.breath * 10) / 10) % 5) == 0) {
_root.BreathBubble(_x + (dir * 20), _y);
}
} else if (_root.breath < 100) {
_root.breath = _root.breath + 1;
}
if (_root.breath > 100) {
_root.breath = 100;
}
if (_root.breath != old__root.breath) {
_root.RefreshGUI();
}
old__root.breath = _root.breath;
if (dying) {
DrawFrame(14, f);
r++;
if ((r % 3) == 0) {
f = !f;
}
if (((!_root.BOSSMODE) || ((_root.PCLIVES - 1) < 0)) || (_root.BOSSMODE && (_root.BOSS_TRIES < 0))) {
_parent.FADEOUT._alpha = _parent.FADEOUT._alpha + 3;
}
if (r == 40) {
if (_root.BOSSMODE && (_root.BOSS_TRIES >= 0)) {
r = r + 20;
} else {
_root.BOSSMODE = false;
_root.GUI.BOSSHPBAR.removeMovieClip();
for (var _local9 in _root.cont) {
for (var _local8 in _root.cont[_local9]) {
if (!{PC:1, FADEOUT:1}[_local8]) {
_root.cont[_local9][_local8].removeMovieClip();
}
}
}
}
}
if (r == 160) {
if (((_root.DIFFICULTY == 0) || (_root.DIFFICULTY == 1)) || (_root.DIFFICULTY == 2)) {
_root.PCLIVES--;
Respawn();
}
_root.LIVESLOST++;
_root.RefreshGUI();
}
return(undefined);
}
if (Dooring != null) {
DrawFrame(((Dooring[0] == 1) ? 15 : 8));
_alpha = (_alpha - (10 * Dooring[0]));
if ((Dooring[0] == 1) && (_alpha <= 0)) {
var _local7 = Dooring[1];
if (_local7 == "MAINMENU") {
if (_root.area.substr(2, 1) == "T") {
_root.GetAchievement(12);
_root.SO.flush();
}
_root.ExitToMainMenu();
return(undefined);
}
_root.OFFSET = [_local7[0], Math.floor(_local7[1] / (STAGEW / TILESIZE)), Math.floor(_local7[2] / (STAGEH / TILESIZE))];
_root.gotoAndStop(_local7[0]);
_x = ((_local7[1] * TILESIZE) + 20);
_y = ((_local7[2] * TILESIZE) - 12);
_root.cont._x = (-STAGEW) * Math.floor(_local7[1] / (STAGEW / TILESIZE));
_root.cont._y = (-STAGEH) * Math.floor(_local7[2] / (STAGEH / TILESIZE));
Dooring[0] = -1;
}
if ((Dooring[0] == -1) && (_alpha >= 100)) {
_alpha = 100;
Dooring = null;
DrawFrame(0);
}
return(undefined);
}
Skip = false;
if ((!jumping) && (!laddering)) {
falling = Move(0, 10)[1] == 1;
}
if (falling) {
landed = false;
}
if (hurt) {
if (hurt > 51) {
DrawFrame(14, (hurt % 3) == 0);
}
if (hurt == 51) {
DrawFrame(14);
}
if (hurt > 50) {
Skip = true;
}
if ((hurt % 3) == 0) {
hf = !hf;
}
_alpha = (100 * hf);
hurt--;
if (hurt == 0) {
_alpha = 100;
}
}
if (LookingUp) {
LookingUp--;
DrawFrame((LookingUp ? 15 : 0));
return(undefined);
}
if (_root.cutfreeze) {
return(undefined);
}
if (!Skip) {
if ((((Key.isDown(KEYS.UP) && (!UpDown)) && (!swording)) && (!laddering)) && (!_root.BOSSMODE)) {
var _local10 = (int(_x / TILESIZE) + "_") + Math.floor((_y + HEIGHT) / TILESIZE);
if (ladderX != "YES") {
var _local20 = _root.SIGNS["S_" + _local10];
if ((_local20 != null) && (landed)) {
UpDown = true;
var _local15 = ((_root.GUI.conv.dialogue = CloneA(_local20))).shift();
_root.GUI.conv.Speak(_local15[0], _local15[1]);
DrawFrame(15);
return(undefined);
}
var _local13 = _root.CHECKPOINTS["C_" + _local10];
if ((_local13 != null) && (landed)) {
UpDown = true;
_local13.Check();
DrawFrame(15);
LookingUp = 8;
return(undefined);
}
var _local19 = _root.MAP_SWITCHES["S_" + _local10];
if ((_local19 != null) && (landed)) {
UpDown = true;
_local19.Switch(true);
_root.playSFX("switch");
DrawFrame(15);
LookingUp = 8;
return(undefined);
}
var _local7 = _root.DOORS["D_" + _local10];
if (((_local7 != null) && (landed)) && (!_root.CUTMODE)) {
UpDown = true;
_x = ((int(_x / TILESIZE) * TILESIZE) + 20);
Dooring = [1, _local7];
moving = 0;
return(undefined);
}
}
if (Math.floor(WALLS[Math.floor((_y + (HEIGHT / 2)) / TILESIZE)][int(_x / TILESIZE)] / 10) == 9) {
UpDown = true;
laddering = true;
moving = 0;
onIce = false;
StuckTo = null;
Adown = true;
LandOnGround();
moving = 0;
DrawFrame(16);
var _local23 = _x;
_x = ((int(_x / TILESIZE) * TILESIZE) + 20);
ScrollMap(-(_local23 - _x), 0);
}
}
if ((UpDown && (!laddering)) && (!Key.isDown(KEYS.UP))) {
UpDown = false;
}
if (((!swording) || (onIce)) || (!landed)) {
if ((cdir != dir) && (!swording)) {
cdir = dir;
if (!laddering) {
_xscale = (XSCALE * dir);
turn = 4;
}
}
if (moving) {
if (!swording) {
DrawFrame((laddering ? (16 + r) : ((2 + r) + (r ? (f2) : 0))));
}
c++;
if (c >= 5) {
c = 0;
r = !r;
if (r == 1) {
f2 = !f2;
}
}
if (laddering) {
Move(0, moving);
} else {
Move(moving, 0);
}
} else if ((!laddering) && (!swording)) {
c++;
if (c > 12) {
c = 0;
f = !f;
DrawFrame(f);
}
}
}
if ((!crouching) && (!swording)) {
if (_root.arma1 == false) {
} else {
if (((!Sdown) && (Key.isDown(KEYS.X))) && (!laddering)) {
swording = true;
Sdown = true;
SwingSword();
}
if (Sdown && (!Key.isDown(KEYS.X))) {
Sdown = false;
}
}
if (_root.pistola1 == false) {
} else if (Key.isDown(KEYS.C)) {
swording = true;
ShootBlaster();
}
}
if (jdelay > 0) {
jdelay--;
}
if ((!falling) && (!jdelay)) {
if (Key.isDown(KEYS.T) && (!Adown)) {
_root.salto = 30;
_root.vidas = 20;
_root.MaxVidas = 20;
_root.salto1 = true;
_root.arma = 3;
_root.pistola = 3;
_root.snorkel1 = true;
}
if (Key.isDown(KEYS.Z) && (!Adown)) {
if (crouching) {
var _local18 = Math.floor(((_y + (HEIGHT * 2)) + 5) / TILESIZE);
var _local21 = WALLS[_local18][Math.floor((_x - 8) / TILESIZE)];
var _local22 = WALLS[_local18][Math.floor((_x + 8) / TILESIZE)];
if ((((Math.ceil(_local21 / 50) != 1) && (Math.ceil(_local22 / 50) != 1)) && (_local21 != null)) && (_local22 != null)) {
_y = (_y + 20);
ScrollMap(0, 20);
jumped = true;
jmom = 11;
landed = false;
crouching = false;
DrawFrame(6);
}
}
var _local11 = (inWater ? (_root.salto * 2) : (_root.salto));
if (Key.isDown(KEYS.SHIFT) && (jmom < (_local11 - 3))) {
jmom = _local11 - 3;
}
if ((!jumped) && (jmom < _local11)) {
if (!jumping) {
_root.playSFX((inWater ? "swim" : "jump"));
_root.SO.data.ACHIEVEMENTS.TOTALS.JUMPS++;
_root.SO.flush();
}
jump = (jboost ? (jboost) : 10);
jumping = true;
jmom++;
landed = false;
crouching = false;
if (laddering) {
moving = 0;
ladderjump = true;
ladderX = _local16;
}
laddering = false;
StuckTo = null;
} else {
Adown = true;
}
}
if (((!Key.isDown(KEYS.Z)) && (jumping)) && (!landed)) {
jumped = true;
}
if (jumping && (!landed)) {
DrawFrame(((jump > 0) ? 5 : 6));
Move(0, -jump);
jump = jump - 2;
if (jump <= -10) {
jumping = false;
jump = 0;
}
}
}
if (Adown && (!Key.isDown(KEYS.Z))) {
Adown = false;
}
if (laddering) {
if (Key.isDown(KEYS.DOWN)) {
moving = m;
} else if (Key.isDown(KEYS.UP)) {
moving = -m;
} else {
moving = 0;
}
if (!swording) {
if (Key.isDown(KEYS.LEFT)) {
_xscale = (XSCALE * ((dir = -1)));
} else if (Key.isDown(KEYS.RIGHT)) {
_xscale = (XSCALE * ((dir = 1)));
}
}
} else {
var _local17 = (ladderjump ? (m) : ((onIce ? 0.2 : 1)));
if (Key.isDown(KEYS.RIGHT)) {
dir = 1;
if ((!crouching) && ((!swording) || (!landed))) {
if (isNaN(moving)) {
moving = 0;
}
moving = moving + _local17;
if (moving > m) {
moving = m;
}
}
} else if (Key.isDown(KEYS.LEFT)) {
dir = -1;
if ((!crouching) && ((!swording) || (!landed))) {
if (isNaN(moving)) {
moving = 0;
}
moving = moving - _local17;
if (moving < (-m)) {
moving = -m;
}
}
} else {
if (((moving && (!jumping)) && (!falling)) && (!swording)) {
DrawFrame(f);
}
var _local12 = moving / Math.abs(moving);
moving = moving - (_local12 / (onIce ? 10 : 0.5));
if (((_local12 == 1) && (moving < 0)) || ((_local12 == -1) && (moving > 0))) {
moving = 0;
}
}
if (falling) {
DrawFrame(6);
}
if ((landed && (!moving)) && (!swording)) {
if (Key.isDown(KEYS.DOWN)) {
crouching = true;
DrawFrame(7);
} else if (crouching) {
crouching = false;
DrawFrame(1);
}
}
if (turn) {
turn--;
DrawFrame(((turn == 0) ? ((crouching ? 7 : 1)) : ((crouching ? 9 : 8))));
}
}
}
bb._height = (crouching ? 16 : 22);
bb._y = (crouching ? 6 : 2);
var _local3 = _root.EXITS["E" + Math.floor(_y / STAGEH)];
_local3 = (_local3 ? (_local3) : (_root.EXITS.E));
if ((_x > (_root.map[0].length * TILESIZE)) && (_local3)) {
AT = 2;
_root.gotoAndStop(((_root.OFFSET = _local3))[0]);
_x = (_x - (_root.map[0].length * TILESIZE));
_y = ((_y % STAGEH) + (STAGEH * _root.OFFSET[2]));
_root.cont._x = 0;
_root.cont._y = (-STAGEH) * _root.OFFSET[2];
return(undefined);
}
_local3 = _root.EXITS["W" + Math.floor(_y / STAGEH)];
_local3 = (_local3 ? (_local3) : (_root.EXITS.W));
if ((_x < 0) && (_local3)) {
AT = 2;
_root.gotoAndStop(((_root.OFFSET = _local3))[0]);
_x = (((_root.OFFSET[1] + 1) * (STAGEW / TILESIZE)) * TILESIZE);
_y = ((_y % STAGEH) + (STAGEH * _root.OFFSET[2]));
_root.cont._x = (-STAGEW) * _root.OFFSET[1];
_root.cont._y = (-STAGEH) * _root.OFFSET[2];
return(undefined);
}
_local3 = _root.EXITS["S" + Math.floor(_x / STAGEW)];
_local3 = (_local3 ? (_local3) : (_root.EXITS.S));
if ((_y > (_root.map.length * TILESIZE)) && (_local3)) {
AT = 2;
_root.gotoAndStop(((_root.OFFSET = _local3))[0]);
_y = (_y - ((_root.map.length * TILESIZE) + 20));
_x = ((_x % STAGEW) + (STAGEW * _root.OFFSET[1]));
_root.cont._y = 0;
_root.cont._x = (-STAGEW) * _root.OFFSET[1];
nosplash = true;
return(undefined);
}
_local3 = _root.EXITS["N" + Math.floor(_x / STAGEW)];
_local3 = (_local3 ? (_local3) : (_root.EXITS.N));
if ((_y < (-_height)) && (_local3)) {
AT = 2;
_root.gotoAndStop(((_root.OFFSET = _local3))[0]);
_y = ((((_root.OFFSET[2] + 1) * (STAGEH / TILESIZE)) * TILESIZE) - 20);
_x = ((_x % STAGEW) + (STAGEW * _root.OFFSET[1]));
_root.cont._y = (-STAGEH) * _root.OFFSET[2];
_root.cont._x = (-STAGEW) * _root.OFFSET[1];
jmom = 0;
return(undefined);
}
};
Symbol 45 MovieClip [GamesChart-AS2] Frame 1
#initclip 16
Object.registerClass("GamesChart-AS2", GCComponent);
#endinitclip
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
if (_root.grabar == false) {
} else {
var savefile = SharedObject.getLocal("CP_1");
savefile.data.coins = _root.coins;
savefile.data.scores = _root.scores;
savefile.data.dificultad = _root.DIFFICULTY;
savefile.data.kills = _root.KILLS;
savefile.data.scores = _root.scores;
savefile.data.llave1 = _root.llave1;
savefile.data.llave2 = _root.llave2;
savefile.data.llave3 = _root.llave3;
savefile.data.llave4 = _root.llave4;
savefile.data.llave5 = _root.llave5;
savefile.data.llaveT = _root.llaveT;
savefile.data.MaxVidas = _root.MaxVidas;
savefile.data.salto1 = _root.salto1;
savefile.data.salto2 = _root.salto2;
savefile.data.salto3 = _root.salto3;
savefile.data.arma = _root.arma;
savefile.data.arma1 = _root.arma1;
savefile.data.arma2 = _root.arma2;
savefile.data.arma3 = _root.arma3;
savefile.data.pistola = _root.pistola;
savefile.data.pistola1 = _root.pistola1;
savefile.data.pistola2 = _root.pistola2;
savefile.data.pistola3 = _root.pistola3;
savefile.data.snorkel1 = _root.snorkel1;
savefile.data.snorkel2 = _root.snorkel2;
savefile.data.corazon1 = _root.corazon1;
savefile.data.corazon2 = _root.corazon2;
savefile.data.corazon3 = _root.corazon3;
savefile.data.corazon4 = _root.corazon4;
savefile.data.corazon5 = _root.corazon5;
savefile.data.corazon6 = _root.corazon6;
savefile.data.corazon7 = _root.corazon7;
savefile.data.drake = _root.drake;
savefile.data.tamus = _root.tamus;
savefile.data.GPS = _root.GPS;
savefile.data.anibalvidas = _root.PCLIVES;
savefile.data.playerName = _root.playerName;
savefile.data.expetotal = _root.expetotal;
savefile.data.rango = _root.rango;
savefile.flush();
_root.grabar = false;
}
_root.gpsvar = _root.OFFSET[0];
_root.gpsa = (_root.CHECKPOINT[1] * TILESIZE) + (TILESIZE / 2);
if ((_root.OFFSET[0] == "lv2_0") || (_root.OFFSET[0] == "lv0_0")) {
if (_root.r2 == true) {
_root.r2 = false;
_root.r3 = false;
_root.r4 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r2 = _root.r2;
savefile.data.r3 = _root.r3;
savefile.data.r4 = _root.r4;
savefile.flush();
}
_root.gpsX = 0;
if (_root.gpsy < 400) {
_root.gpsY = 3;
} else if (_root.gpsy < 800) {
_root.gpsY = 4;
} else if (_root.gpsy > 800) {
_root.gpsY = 5;
}
}
if (_root.OFFSET[0] == "lv2_1") {
_root.gpsX = 0;
if (_root.r5 == true) {
_root.r5 = false;
_root.r6 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r5 = _root.r5;
savefile.data.r6 = _root.r6;
savefile.flush();
}
if (_root.gpsy < 400) {
_root.gpsY = 6;
} else if (_root.gpsy < 800) {
_root.gpsY = 7;
}
}
if (_root.OFFSET[0] == "lv2_1b") {
_root.gpsX = 0;
_root.gpsY = 7;
if (_root.r12 == true) {
_root.r12 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r12 = _root.r12;
savefile.flush();
}
}
if (_root.OFFSET[0] == "lv2_2") {
_root.gpsY = 6;
if (_root.r11 == true) {
_root.r11 = false;
_root.r17 = false;
_root.r23 = false;
_root.r29 = false;
_root.r35 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r11 = _root.r11;
savefile.data.r17 = _root.r17;
savefile.data.r23 = _root.r23;
savefile.data.r29 = _root.r29;
savefile.data.r35 = _root.r35;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 1;
} else if (_root.gpsx < 1200) {
_root.gpsX = 2;
} else if (_root.gpsx < 1800) {
_root.gpsX = 3;
} else if (_root.gpsx < 2400) {
_root.gpsX = 4;
} else if (_root.gpsx < 3000) {
_root.gpsX = 5;
}
}
if (_root.OFFSET[0] == "lv2_3") {
_root.gpsY = 5;
if (_root.r10 == true) {
_root.r10 = false;
_root.r16 = false;
_root.r22 = false;
_root.r28 = false;
_root.r34 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r10 = _root.r10;
savefile.data.r16 = _root.r16;
savefile.data.r22 = _root.r22;
savefile.data.r28 = _root.r28;
savefile.data.r34 = _root.r34;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 1;
} else if (_root.gpsx < 1200) {
_root.gpsX = 2;
} else if (_root.gpsx < 1800) {
_root.gpsX = 3;
} else if (_root.gpsx < 2400) {
_root.gpsX = 4;
} else if (_root.gpsx < 3400) {
_root.gpsX = 5;
} else if (_root.gpsx < 4000) {
_root.gpsX = 5;
}
}
if (_root.OFFSET[0] == "lv2_4") {
_root.gpsY = 4;
if (_root.r9 == true) {
_root.r9 = false;
_root.r15 = false;
_root.r21 = false;
_root.r27 = false;
_root.r33 = false;
_root.r39 = false;
_root.r45 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r9 = _root.r9;
savefile.data.r15 = _root.r15;
savefile.data.r21 = _root.r21;
savefile.data.r27 = _root.r27;
savefile.data.r33 = _root.r33;
savefile.data.r39 = _root.r39;
savefile.data.r45 = _root.r45;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 1;
} else if (_root.gpsx < 1200) {
_root.gpsX = 2;
} else if (_root.gpsx < 1800) {
_root.gpsX = 3;
} else if (_root.gpsx < 2400) {
_root.gpsX = 4;
} else if (_root.gpsx < 3000) {
_root.gpsX = 5;
} else if (_root.gpsx < 3600) {
_root.gpsX = 6;
} else if (_root.gpsx < 4200) {
_root.gpsX = 7;
}
}
if (_root.OFFSET[0] == "lv2_5") {
_root.gpsY = 5;
if (_root.r40 == true) {
_root.r40 = false;
_root.r46 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r40 = _root.r40;
savefile.data.r46 = _root.r46;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 6;
} else if (_root.gpsx < 1400) {
_root.gpsX = 7;
}
}
if (_root.OFFSET[0] == "lv2_6") {
if (_root.r52 == true) {
_root.r52 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r52 = _root.r52;
savefile.flush();
}
_root.gpsY = 5;
_root.gpsX = 8;
}
if (_root.OFFSET[0] == "lv2_7") {
_root.gpsY = 5;
if (_root.r58 == true) {
_root.r58 = false;
_root.r64 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r58 = _root.r58;
savefile.data.r64 = _root.r64;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 9;
} else if (_root.gpsx < 1200) {
_root.gpsX = 10;
}
}
if (_root.OFFSET[0] == "lv2_8") {
_root.gpsY = 4;
if (_root.r51 == true) {
_root.r51 = false;
_root.r57 = false;
_root.r63 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r51 = _root.r51;
savefile.data.r57 = _root.r57;
savefile.data.r63 = _root.r63;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 8;
} else if (_root.gpsx < 1200) {
_root.gpsX = 9;
} else if (_root.gpsx < 1800) {
_root.gpsX = 10;
}
}
if (_root.OFFSET[0] == "lv2_9") {
if (_root.r50 == true) {
_root.r50 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r50 = _root.r50;
savefile.flush();
}
_root.gpsY = 3;
_root.gpsX = 8;
}
if (_root.OFFSET[0] == "lv2_9b") {
_root.gpsY = 3;
if (_root.r8 == true) {
_root.r8 = false;
_root.r14 = false;
_root.r20 = false;
_root.r26 = false;
_root.r32 = false;
_root.r38 = false;
_root.r44 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r8 = _root.r8;
savefile.data.r14 = _root.r14;
savefile.data.r20 = _root.r20;
savefile.data.r26 = _root.r26;
savefile.data.r32 = _root.r32;
savefile.data.r38 = _root.r38;
savefile.data.r44 = _root.r44;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 1;
} else if (_root.gpsx < 1200) {
_root.gpsX = 2;
} else if (_root.gpsx < 1800) {
_root.gpsX = 3;
} else if (_root.gpsx < 2400) {
_root.gpsX = 4;
} else if (_root.gpsx < 3000) {
_root.gpsX = 5;
} else if (_root.gpsx < 3600) {
_root.gpsX = 6;
} else if (_root.gpsx < 4200) {
_root.gpsX = 7;
} else if (_root.gpsx < 4800) {
_root.gpsX = 7;
}
}
if (_root.OFFSET[0] == "lv2_10") {
_root.gpsY = 2;
if (_root.r31 == true) {
_root.r31 = false;
_root.r37 = false;
_root.r43 = false;
_root.r49 = false;
_root.r55 = false;
_root.r61 = false;
_root.r67 = false;
_root.r73 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r31 = _root.r31;
savefile.data.r37 = _root.r37;
savefile.data.r43 = _root.r43;
savefile.data.r49 = _root.r49;
savefile.data.r55 = _root.r55;
savefile.data.r61 = _root.r61;
savefile.data.r67 = _root.r67;
savefile.data.r73 = _root.r73;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 5;
} else if (_root.gpsx < 1200) {
_root.gpsX = 6;
} else if (_root.gpsx < 1800) {
_root.gpsX = 7;
} else if (_root.gpsx < 2400) {
_root.gpsX = 8;
} else if (_root.gpsx < 3000) {
_root.gpsX = 9;
} else if (_root.gpsx < 3600) {
_root.gpsX = 10;
}
}
if (_root.OFFSET[0] == "lv2_11") {
_root.gpsY = 3;
if (_root.r62 == true) {
_root.r62 = false;
_root.r68 = false;
_root.r74 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r62 = _root.r62;
savefile.data.r68 = _root.r68;
savefile.data.r74 = _root.r74;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 10;
} else if (_root.gpsx < 1200) {
_root.gpsX = 11;
} else if (_root.gpsx < 1800) {
_root.gpsX = 12;
}
}
if (_root.OFFSET[0] == "lv2_12") {
_root.gpsY = 6;
if (_root.r31 == true) {
_root.r41 = false;
_root.r47 = false;
_root.r53 = false;
_root.r59 = false;
_root.r65 = false;
_root.r71 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r41 = _root.r41;
savefile.data.r47 = _root.r47;
savefile.data.r53 = _root.r53;
savefile.data.r59 = _root.r59;
savefile.data.r65 = _root.r65;
savefile.data.r71 = _root.r71;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 6;
} else if (_root.gpsx < 1200) {
_root.gpsX = 7;
} else if (_root.gpsx < 1800) {
_root.gpsX = 8;
} else if (_root.gpsx < 2400) {
_root.gpsX = 9;
} else if (_root.gpsx < 3000) {
_root.gpsX = 10;
} else if (_root.gpsx < 3600) {
_root.gpsX = 11;
}
}
if (_root.OFFSET[0] == "lv2_13") {
_root.gpsY = 4;
if (_root.r75 == true) {
_root.r75 = false;
_root.r81 = false;
_root.r87 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r75 = _root.r75;
savefile.data.r81 = _root.r81;
savefile.data.r87 = _root.r87;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 12;
} else if (_root.gpsx < 1200) {
_root.gpsX = 13;
} else if (_root.gpsx < 1800) {
_root.gpsX = 14;
}
}
if (_root.OFFSET[0] == "lv2_14") {
_root.gpsY = 5;
if (_root.r76 == true) {
_root.r76 = false;
_root.r82 = false;
_root.r88 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r76 = _root.r76;
savefile.data.r82 = _root.r82;
savefile.data.r88 = _root.r88;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 12;
} else if (_root.gpsx < 1200) {
_root.gpsX = 13;
} else if (_root.gpsx < 1800) {
_root.gpsX = 14;
}
}
if (_root.OFFSET[0] == "lv2_15") {
_root.gpsY = 3;
if (_root.r80 == true) {
_root.r80 = false;
_root.r86 = false;
_root.r92 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r80 = _root.r80;
savefile.data.r86 = _root.r86;
savefile.data.r92 = _root.r92;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 13;
} else if (_root.gpsx < 1200) {
_root.gpsX = 14;
} else if (_root.gpsx < 1800) {
_root.gpsX = 15;
}
}
if (_root.OFFSET[0] == "lv2_16") {
_root.gpsY = 4;
if (_root.r93 == true) {
_root.r93 = false;
_root.r99 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r93 = _root.r93;
savefile.data.r99 = _root.r99;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 15;
} else if (_root.gpsx < 1200) {
_root.gpsX = 16;
}
}
if (_root.OFFSET[0] == "lv2_17") {
_root.gpsY = 6;
if (_root.r77 == true) {
_root.r77 = false;
_root.r83 = false;
_root.r89 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r77 = _root.r77;
savefile.data.r83 = _root.r83;
savefile.data.r89 = _root.r89;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 12;
} else if (_root.gpsx < 1200) {
_root.gpsX = 13;
} else if (_root.gpsx < 1800) {
_root.gpsX = 14;
}
}
if (_root.OFFSET[0] == "lv2_18") {
_root.gpsX = 18;
if (_root.r103 == true) {
_root.r103 = false;
_root.r104 = false;
_root.r105 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r103 = _root.r103;
savefile.data.r104 = _root.r104;
savefile.data.r105 = _root.r105;
savefile.flush();
}
if (_root.gpsY < 601) {
_root.gpsY = 2;
} else if (_root.gpsY < 1200) {
_root.gpsY = 3;
} else if (_root.gpsY < 1800) {
_root.gpsY = 4;
}
}
if (_root.OFFSET[0] == "lv2_19") {
_root.gpsY = 2;
if (_root.r85 == true) {
_root.r85 = false;
_root.r91 = false;
_root.r97 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r85 = _root.r85;
savefile.data.r91 = _root.r91;
savefile.data.r97 = _root.r97;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 14;
} else if (_root.gpsx < 1200) {
_root.gpsX = 15;
} else if (_root.gpsx < 1800) {
_root.gpsX = 16;
}
}
if (_root.OFFSET[0] == "lv2_20") {
_root.gpsY = 7;
if (_root.r72 == true) {
_root.r72 = false;
_root.r78 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r72 = _root.r72;
savefile.data.r78 = _root.r78;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 11;
} else if (_root.gpsx < 1200) {
_root.gpsX = 12;
}
}
if (_root.OFFSET[0] == "lv2_21") {
_root.gpsY = 7;
if (_root.r18 == true) {
_root.r18 = false;
_root.r24 = false;
_root.r30 = false;
_root.r36 = false;
_root.r42 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r18 = _root.r18;
savefile.data.r24 = _root.r24;
savefile.data.r30 = _root.r30;
savefile.data.r36 = _root.r36;
savefile.data.r42 = _root.r42;
savefile.flush();
}
if (_root.gpsx < 601) {
_root.gpsX = 2;
} else if (_root.gpsx < 1200) {
_root.gpsX = 3;
} else if (_root.gpsx < 1800) {
_root.gpsX = 4;
} else if (_root.gpsx < 2400) {
_root.gpsX = 5;
} else if (_root.gpsx < 3000) {
_root.gpsX = 6;
} else if (_root.gpsx < 3600) {
_root.gpsX = 7;
}
}
if (_root.OFFSET[0] == "lv2_22") {
_root.gpsY = 7;
_root.gpsX = 7;
if (_root.r48 == true) {
_root.r48 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r48 = _root.r48;
savefile.flush();
}
}
if (_root.OFFSET[0] == "lv2_boss") {
_root.gpsY = 7;
_root.gpsX = 8;
if (_root.r54 == true) {
_root.r54 = false;
var savefile = SharedObject.getLocal("CP_1");
savefile.data.r54 = _root.r54;
savefile.flush();
}
}
if (_root.OFFSET[0] == "lvT_1") {
_root.gpsY = 0;
if (_root.gpsx < 601) {
_root.gpsX = 0;
} else if (_root.gpsx < 1200) {
_root.gpsX = 0;
} else if (_root.gpsx < 1800) {
_root.gpsX = 0;
}
}
Symbol 843 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 844 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 845 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("4.1.1 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
onError("NotConnected");
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError("IOError");
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError(errorCode);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError("IOError");
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError("NotConnected");
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError("NotConnected");
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 846 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function getAchievements(properties) {
mochi.as2.MochiServices.send("events_getAchievements", properties);
}
static function unlockAchievement(properties) {
mochi.as2.MochiServices.send("events_unlockAchievement", properties);
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function showAwards(options) {
mochi.as2.MochiServices.send("events_showAwards", options, null, null);
}
static function setNotifications(style) {
mochi.as2.MochiServices.send("events_setNotifications", style, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENTS_OWNED = "AchievementOwned";
static var ACHIEVEMENT_NEW = "AchievementReceived";
static var GAME_ACHIEVEMENTS = "GameAchievements";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var IO_PENDING = "IOPending";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var FORMAT_NONE = "NoForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 847 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 848 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function showProfile(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showProfile", options);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 35 MovieClip [__Packages.GCComponent] Frame 0
class GCComponent extends MovieClip
{
var _preview;
function GCComponent () {
super();
GCBrainInterface.apiType = "AS2-MXP";
gameKey = ("");
}
function set gameKey(k) {
_gameKey = k;
if (((_gameKey == undefined) || (_gameKey == null)) || (_gameKey == "")) {
_preview.txt.text = "You need to set your gameID for the API to work.";
} else if (_global.isLivePreview) {
_preview.txt.text = ("Your gameID has been set to '" + _gameKey) + "'. This message will be hidden when the game is run.";
} else {
GamesChart.setup(_gameKey);
_preview._visible = false;
}
//return(gameKey);
}
function get gameKey() {
return(_gameKey);
}
var _gameKey = "";
}
Symbol 46 MovieClip [__Packages.GamesChart] Frame 0
class GamesChart
{
static var _interface;
function GamesChart () {
}
static function setup(gameIDKey) {
if (_interface == null) {
if (((gameIDKey == undefined) || (gameIDKey == null)) || (gameIDKey == "")) {
trace(_errors.noGameIDHash);
return(undefined);
}
_interface = new GCBrainInterface();
_interface.begin(gameIDKey);
} else {
trace(_errors.alreadyDefinedInterface);
}
}
static function showTab(xPos, yPos) {
if (_interface == null) {
trace(_errors.noInterface);
return(undefined);
}
_interface.sendNotification(GCNotificationTypes.SHOW_TAB, {xPos:xPos, yPos:yPos});
}
static function hideTab() {
if (_interface == null) {
trace(_errors.noInterface);
return(undefined);
}
_interface.sendNotification(GCNotificationTypes.HIDE_TAB);
}
static function openCharts() {
if (_interface == null) {
trace(_errors.noInterface);
return(undefined);
}
_interface.sendNotification(GCNotificationTypes.SHOW_CHART_LISTS);
}
static var VERSION = "0.2.0";
static var onGCEvent = null;
static var _errors = {noInterface:"[GC-API] ERROR! Please call gc.setup() first. See: http://wiki.gameschart.com/index.php/Static_Functions", alreadyDefinedInterface:"[GC-API] ERROR! Can only call setup once! See: http://wiki.gameschart.com/index.php/Static_Functions", noContainerMC:"[GC-API] ERROR! You must supply a container to hold GamesChart! See: http://wiki.gameschart.com/index.php/Static_Functions#Setup", noGameIDHash:"[GC-API] ERROR! You must supply the game ID key associated with this game! http://wiki.gameschart.com/index.php/Static_Functions#Setup"};
}
Symbol 47 MovieClip [__Packages.gc.utils.Events.IEventDispatcher] Frame 0
interface gc.utils.Events.IEventDispatcher
{
}
Symbol 48 MovieClip [__Packages.gc.utils.Events.Event] Frame 0
class gc.utils.Events.Event extends Object
{
var type, target, data;
function Event (target, type, data) {
super();
this.type = type;
this.target = target;
if (data != undefined) {
this.data = data;
}
}
static function get ADDED_TO_STAGE() {
return("addedToStage");
}
static function get ENTER_FRAME() {
return("enterFrame");
}
static function get UNLOAD() {
return("unload");
}
}
Symbol 49 MovieClip [__Packages.gc.utils.Events.EventDispatcher] Frame 0
class gc.utils.Events.EventDispatcher implements gc.utils.Events.IEventDispatcher
{
var registeredListeners, _parent;
function EventDispatcher (parent) {
registeredListeners = new Object();
_parent = parent;
}
function addEventListener(eventType, listenerObj, methodName) {
if (((eventType == undefined) || (listenerObj == undefined)) || (methodName == undefined)) {
throw new Error("All parameters must be defined.");
}
if (registeredListeners[eventType] == undefined) {
registeredListeners[eventType] = new Array();
}
registeredListeners[eventType].push({listenerObj:listenerObj, methodName:methodName});
}
function dispatchEvent(event, bubbles) {
((bubbles == undefined) ? (bubbles = true) : 0);
var _local7 = event.type;
var _local4 = null;
var _local5 = "";
if (hasEventListener(_local7)) {
var _local3 = registeredListeners[_local7];
var _local2 = 0;
while (_local2 < _local3.length) {
_local4 = _local3[_local2].listenerObj;
_local5 = _local3[_local2].methodName;
_local4[_local5](event);
_local2++;
}
} else if (bubbles && (_parent instanceof gc.utils.Events.EventDispatcher)) {
gc.utils.Events.EventDispatcher(_parent).dispatchEvent(event, bubbles);
}
}
function removeEventListener(eventType, listenerObj, methodName) {
if (hasEventListener(eventType)) {
var _local3 = registeredListeners[eventType];
var _local2 = _local3.length - 1;
while (_local2 >= 0) {
if ((_local3[_local2].listenerObj == listenerObj) && (_local3[_local2].methodName == methodName)) {
_local3.splice(_local2, 1);
if (_local3.length == 0) {
registeredListeners[eventType] = null;
}
break;
}
_local2--;
}
}
}
function hasEventListener(eventType) {
var _local2 = Array(registeredListeners[eventType]);
return((_local2 != null) && (_local2 != undefined));
}
}
Symbol 50 MovieClip [__Packages.gc.utils.GCDelegate] Frame 0
class gc.utils.GCDelegate
{
function GCDelegate () {
}
static function create(target, handler) {
var _local2 = function () {
var _local2 = arguments.callee;
var _local3 = arguments.concat(_local2.initArgs);
return(_local2.handler.apply(_local2.target, _local3));
};
_local2.target = target;
_local2.handler = handler;
_local2.initArgs = arguments.slice(2);
return(_local2);
}
}
Symbol 51 MovieClip [__Packages.gc.utils.GCSWFConnection] Frame 0
class gc.utils.GCSWFConnection extends gc.utils.Events.EventDispatcher
{
var _connected, _logName, _host, _queuedMessages, _close, _client, _version, _baseID, _traceLog, _lc, _myID, _extID, clientVersion, dispatchEvent;
function GCSWFConnection (connectionID, client, version, logName, traceTheLog) {
super();
_connected = false;
_logName = logName;
_host = true;
_queuedMessages = [];
_close = false;
_client = client;
_version = version;
_baseID = connectionID.split(":").join("");
_traceLog = traceTheLog;
}
function startConnection() {
_lc = new LocalConnection();
var _local2 = this;
_lc.allowDomain = function (s) {
return(true);
};
_lc.allowInsecureDomain = function (s) {
return(true);
};
_lc.GC_utils_GCSWFConnection_init = gc.utils.GCDelegate.create(this, GC_utils_GCSWFConnection_init);
_lc.GC_utils_GCSWFConnection_receive = gc.utils.GCDelegate.create(this, GC_utils_GCSWFConnection_receive);
_host = _lc.connect(_baseID + "_HOST");
_myID = _baseID + (_host ? "_HOST" : "_CLIENT");
_extID = _baseID + (_host ? "_CLIENT" : "_HOST");
if (!_host) {
_lc.connect(_myID);
_lc.send(_extID, "GC_utils_GCSWFConnection_init", _version);
report(("[" + _logName) + "] [GCSWFConnection] Connected as client..");
} else {
report(("[" + _logName) + "] [GCSWFConnection] Connected as host..");
}
}
function bridgeConnected() {
var _local2 = 0;
while (_local2 < _queuedMessages.length) {
var _local5 = _queuedMessages[_local2].methodName;
var _local4 = _queuedMessages[_local2].methodArgs;
var _local3 = [_local5];
if (_local4) {
_local3 = _local3.concat(_local4);
}
send.apply(null, _local3);
_local2++;
}
_queuedMessages = [];
if (_close) {
close();
}
}
function send() {
var _local3 = arguments.slice(0);
if (_connected) {
_local3.unshift("GC_utils_GCSWFConnection_receive");
_local3.unshift(_extID);
_lc.send.apply(_lc, _local3);
} else {
_queuedMessages.push(_local3);
}
}
function GC_utils_GCSWFConnection_receive() {
var _local3 = arguments.slice(0);
var _local4 = String(_local3.shift());
_client[_local4].apply(_client, _local3);
}
function GC_utils_GCSWFConnection_init(version) {
report(("[" + _logName) + "] [GCSWFConnection] Reccieved Init");
if (_host) {
_lc.send(_extID, "GC_utils_GCSWFConnection_init", _version);
}
clientVersion = version;
_connected = true;
bridgeConnected();
report(("[" + _logName) + "] Dispatching Connect Event");
dispatchEvent(new gc.utils.Events.Event(this, CONNECTED));
}
function close() {
report(("[" + _logName) + "] [GCSWFConnection] Connection Closing");
if (_queuedMessages.length != 0) {
_close = true;
return(undefined);
}
_lc.close();
_connected = false;
delete _client;
delete _lc;
}
function report(s) {
if (_traceLog) {
trace(s);
}
}
function get id() {
return(_baseID);
}
function get connected() {
return(_connected);
}
static var CONNECTED = "CONNECTED";
}
Symbol 52 MovieClip [__Packages.GCNotificationTypes] Frame 0
class GCNotificationTypes
{
function GCNotificationTypes () {
}
static var BEGIN_LOAD = "BEGIN_LOAD";
static var STARTUP = "STARTUP";
static var LOAD_SKIN_AND_STYLE = "LOAD_SKIN_AND_STYLE";
static var SKIN_AND_STYLE_LOADED = "SKIN_AND_STYLE_LOADED";
static var SHOW_TAB = "SHOW_TAB";
static var HIDE_TAB = "HIDE_TAB";
static var SHOW_CHART_LISTS = "SHOW_CHART_LISTS";
static var LAUNCH_GAME = "LAUNCH_GAME";
static var DISPATCH_DEVELOPER_API_EVENT = "DISPATCH_DEVELOPER_API_EVENT";
}
Symbol 53 MovieClip [__Packages.GCBrainInterface] Frame 0
class GCBrainInterface
{
var _container, _lcRand, _brainLoaded, _brainLoader, _notificationBuffer, _conn;
function GCBrainInterface () {
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
trace("[GC-API] Games Chart v." + GamesChart.VERSION);
_container = _root.createEmptyMovieClip("GC_API_MC", _root.getNextHighestDepth());
_container.onEnterFrame = gc.utils.GCDelegate.create(this, onEnterFrame);
_lcRand = int(Math.random() * 10000);
loadBrain();
startLC();
}
function onEnterFrame() {
var _local4 = _container.getDepth();
var _local3 = _root.getNextHighestDepth() - 1;
if (_local4 < _local3) {
_container.swapDepths(_local3 + 1);
}
}
function loadBrain() {
var _local2 = BRAIN_URL;
_brainLoaded = false;
_brainLoader = new MovieClipLoader();
_brainLoader.addListener({onLoadInit:gc.utils.GCDelegate.create(this, onFinishedLoading)});
_brainLoader.loadClip((_local2 + "?r=") + _lcRand, _container.createEmptyMovieClip("GCBrain_mc", _container.getNextHighestDepth()));
trace("[GC-API] Loading Brain.. ");
}
function onFinishedLoading(brainMC) {
_brainLoaded = true;
trace("[GC-API] Brain Loaded!");
}
function startLC() {
_notificationBuffer = [];
_conn = new gc.utils.GCSWFConnection("_GamesChartLC" + _lcRand, this, GamesChart.VERSION, "GC-API", true);
_conn.addEventListener(gc.utils.GCSWFConnection.CONNECTED, this, "onLCConnected");
_conn.startConnection();
}
function onLCConnected(e) {
trace("[GC-API] API Connected to Brain!");
while (_notificationBuffer.length > 0) {
var _local2 = _notificationBuffer.pop();
sendNotification(_local2.name, _local2.body, _local2.type);
}
}
function onGCEvent(type, data) {
if (GamesChart.onGCEvent != null) {
GamesChart.onGCEvent.apply(null, [type, data]);
}
}
function begin(gID) {
sendNotification(GCNotificationTypes.BEGIN_LOAD, {gameIDHash:gID, apiType:apiType, apiVersion:GamesChart.VERSION, swfURL:getRunningOnURL()}, "");
}
function sendNotification(n, body, type) {
if (_conn.__get__connected()) {
_conn.send("sendNotification", n, body, type);
} else {
_notificationBuffer.push({name:n, body:body, type:type});
}
}
function getRunningOnURL() {
var _local2 = String(flash.external.ExternalInterface.call("window.location.href.toString"));
if (_local2 == "null") {
return(_root._url);
}
return(_local2);
}
static var BRAIN_URL = "http://gameschart.com/flash_client/getBrain.php";
static var apiType = "AS2-API";
}
Symbol 102 MovieClip Frame 1
tx_play.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 102 MovieClip Frame 2
tx_play.textColor = 16776960 /* 0xFFFF00 */;
Symbol 166 MovieClip [pickup] Frame 1
function Move(x, y) {
last_x = _x;
last_y = _y;
_x = (_x + x);
_y = (_y + y);
var _local3 = _y + 6;
var _local11 = _y - 30;
var _local7 = _x + 10;
var _local6 = _x - 10;
if (y > 0) {
var _local9 = [Math.floor(_local6 / TILESIZE), Math.floor(_local3 / TILESIZE)];
var _local8 = [Math.floor((_local7 - 1) / TILESIZE), Math.floor(_local3 / TILESIZE)];
if (((WALLS[_local9[1]][_local9[0]] && (WALLS[_local9[1]][_local9[0]] < 90)) && ((_local9[1] * TILESIZE) >= (_local3 - y))) || ((WALLS[_local8[1]][_local8[0]] && (WALLS[_local8[1]][_local8[0]] < 90)) && ((_local8[1] * TILESIZE) >= (_local3 - y)))) {
_y = ((Math.floor(_local3 / TILESIZE) * TILESIZE) - 24);
} else {
var _local5 = false;
for (var _local10 in _root.MOVING) {
var _local2 = _root.MOVING[_local10];
if (((int(_local2._y / 10) == int((_local3 - y) / 10)) && (_local7 >= _local2._x)) && (_local6 <= (_local2._x + TILESIZE))) {
_local5 = true;
_y = (_local2._y - HEIGHT);
StuckTo = _local2;
if (_local2.touch) {
_local2.moves = _local2.touch;
_local2.dontloop = true;
_local2.touch = null;
}
LandOnGround();
}
}
if (!_local5) {
StuckTo = null;
R[1] = 1;
}
}
}
}
_root.R = random(16);
type = _root.R;
if (type == 5) {
type = 4;
}
if (type == 6) {
type = 4;
}
if (type == 7) {
type = 4;
}
if (type == 8) {
type = 0;
}
if (type == 9) {
type = 0;
}
if (type == 10) {
type = 0;
}
if (type == 11) {
type = 0;
}
if (type == 12) {
type = 0;
}
if (type == 13) {
type = 0;
}
if (type == 14) {
type = 0;
}
if (type == 15) {
type = 0;
}
if (type == 16) {
type = 0;
}
sheet = flash.display.BitmapData.loadBitmap("greenpill");
bmp = new flash.display.BitmapData(12, 12, true);
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, type * 12, 12, 12), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 6);
box.attachBitmap(bmp, 24);
box._x = -5;
_height = 24;
_width = 24;
f = 0;
c = 0;
onEnterFrame = function () {
Move(0, 24);
c++;
if (c >= 5) {
c = 0;
f = !f;
bmp.copyPixels(sheet, new flash.geom.Rectangle(f * 12, type * 12, 12, 24), new flash.geom.Point(0, 0));
}
if (this.hitTest(_root.PC.bb)) {
if (type == 0) {
_root.playSFX("ling");
_root.puntos = _root.puntos + 10;
_root.scores = _root.scores + 100;
}
if (type == 1) {
if (_root.PCLIVES < 99) {
_root.playSFX("1up");
_root.PCLIVES++;
_root.scores = _root.scores + 1000;
}
}
if (type == 2) {
_root.playSFX("hpup");
_root.PCHP[0] = _root.PCHP[0] + 1;
if (_root.MaxVidas > _root.vidas) {
_root.vidas = _root.vidas + 1;
_root.scores = _root.scores + 200;
_root.PCHP[0] = _root.PCHP[1];
}
}
if (type == 3) {
_root.playSFX("fullhp");
_root.PCHP[0] = _root.PCHP[0] + 10;
if (_root.PCHP[0] > _root.PCHP[1]) {
_root.vidas = _root.MaxVidas;
_root.PCHP[0] = _root.PCHP[1];
_root.scores = _root.scores + 300;
}
}
if (type == 4) {
_root.playSFX("bt");
_root.balas = _root.balas + 10;
_root.scores = _root.scores + 100;
}
_root.RefreshGUI();
this.removeMovieClip();
}
};
Symbol 167 MovieClip [sprite] Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
function Move(x, y) {
last_x = _x;
last_y = _y;
_x = (_x + (x * (inWater ? 0.5 : 1)));
_y = (_y + (y * ((inWater && (!laddering)) ? 0.5 : 1)));
var _local5 = _y + (HEIGHT * 2);
var _local13 = _y + ((HEIGHT - 20) * 2);
var _local7 = _x + (SIZE[0] / 2);
var _local6 = _x - (SIZE[0] / 2);
var _local9 = [0, 0];
if (x < 0) {
var _local10 = false;
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor((_local13 + 1) / TILESIZE)];
var _local4 = [Math.floor(_local6 / TILESIZE), Math.floor((_local5 - 1) / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || (((Math.floor(_local6 / TILESIZE) < 0) && (_root.EXITS.W == null)) && (_root.EXITS["W" + Math.floor(_y / STAGEH)] == null))) {
_x = (((Math.floor(_local6 / TILESIZE) + 1) * TILESIZE) + 10);
Collision_Left();
_local10 = true;
} else {
_local9[0] = -1;
}
if (ChecksForEdges && (!_local10)) {
if (airborne == "roof") {
if (Math.ceil(WALLS[_local4[1] - 1][_local3[0]] / 80) != 1) {
Collision_Left();
}
} else if (airborne) {
if (Math.ceil(WALLS[_local3[1]][_local3[0]] / 50) == 1) {
Collision_Left();
}
} else if (Math.ceil(WALLS[_local4[1] + 1][_local3[0]] / 80) != 1) {
Collision_Left();
}
}
} else if (x > 0) {
var _local10 = false;
var _local3 = [Math.floor(_local7 / TILESIZE), Math.floor((_local13 + 1) / TILESIZE)];
var _local4 = [Math.floor(_local7 / TILESIZE), Math.floor((_local5 - 1) / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || (((Math.floor(_local7 / TILESIZE) >= _root.map[0].length) && (_root.EXITS.E == null)) && (_root.EXITS["E" + Math.floor(_y / STAGEH)] == null))) {
_x = ((Math.floor(_local7 / TILESIZE) * TILESIZE) - 10);
Collision_Right();
_local10 = true;
} else {
_local9[0] = 1;
}
if (ChecksForEdges && (!_local10)) {
if (airborne == "roof") {
if (Math.ceil(WALLS[_local4[1] - 1][_local3[0]] / 80) != 1) {
Collision_Right();
}
} else if (airborne) {
if (Math.ceil(WALLS[_local3[1]][_local3[0]] / 50) == 1) {
Collision_Right();
}
} else if (Math.ceil(WALLS[_local4[1] + 1][_local3[0]] / 80) != 1) {
Collision_Right();
}
}
}
if (y > 0) {
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor(_local5 / TILESIZE)];
var _local4 = [Math.floor((_local7 - 1) / TILESIZE), Math.floor(_local5 / TILESIZE)];
var _local11 = WALLS[_local3[1]][_local3[0]];
var _local12 = WALLS[_local4[1]][_local4[0]];
var _local16 = WALLS[Math.floor((_y + HEIGHT) / TILESIZE)][int(_x / TILESIZE)];
if ((laddering && (Math.floor(_local16 / 10) != 9)) && (_local16 != null)) {
_y = (_y - y);
} else if ((((_local11 && (_local11 < 90)) || ((_local11 == null) && (Math.floor(WALLS[_local3[1] - 1][_local3[0]] / 10) == 10))) && ((_local3[1] * TILESIZE) >= (_local5 - y))) || (((_local12 && (_local12 < 90)) || ((_local12 == null) && (Math.floor(WALLS[_local4[1] - 1][_local4[0]] / 10) == 10))) && ((_local4[1] * TILESIZE) >= (_local5 - y)))) {
_y = ((Math.floor(_local5 / TILESIZE) * TILESIZE) - (HEIGHT * 2));
LandOnGround();
StuckTo = null;
laddering = false;
onIce = (Math.floor(_local11 / 10) == 4) || (Math.floor(_local12 / 10) == 4);
} else {
var _local8 = false;
for (var _local14 in _root.MOVING) {
var _local2 = _root.MOVING[_local14];
if ((((_local5 >= _local2._y) && (_local5 <= (_local2._y + 14))) && (_local7 >= _local2._x)) && (_local6 <= (_local2._x + TILESIZE))) {
_local8 = true;
_y = (_local2._y - (HEIGHT * 2));
if (!laddering) {
StuckTo = _local2;
}
if (_local2.touch) {
_local2.moves = _local2.touch;
_local2.dontloop = true;
_local2.touch = null;
}
if (!laddering) {
LandOnGround();
}
}
}
if (!_local8) {
StuckTo = null;
_local9[1] = 1;
}
}
} else if (y < 0) {
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor(_local13 / TILESIZE)];
var _local4 = [Math.floor((_local7 - 1) / TILESIZE), Math.floor(_local13 / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || ((laddering && (Math.floor(WALLS[_local3[1]][_local3[0]] / 10) != 9)) && (WALLS[_local3[1]][_local3[0]] != null))) {
_y = (((Math.floor(_local5 / TILESIZE) + 1) * TILESIZE) - (HEIGHT * 2));
} else {
_local9[1] = -1;
}
}
ScrollMap(_x - last_x, _y - last_y);
return(_local9);
}
function LandOnGround() {
if (!landed) {
jdelay = 5;
DrawFrame(1);
jmom = 0;
jumping = false;
jump = 0;
falling = false;
jumped = false;
landed = true;
}
}
function Hurt(amount, projectile) {
OnHit();
if (invulnerable || (projectile && (immuneToBlaster))) {
absorbedHits++;
return(undefined);
}
if (((HP == null) || (hurt)) || (sworded)) {
return(undefined);
}
if (projectile) {
amount = _root.pistola;
}
if (!projectile) {
sworded = 10;
}
hurt = 6;
hf = 0;
HP = HP - amount;
if (HP <= 0) {
Die();
}
}
function Die() {
dying = 1;
_root.RECORDS.KILLS++;
_root.RECORDS.FOES_ENCOUNTERED[(_root.area + "__") + BID] = 1;
_root.Rdie = random(10);
if (props.type == "coin") {
if ((_root.coins == null) || (_root.coins == undefined)) {
_root.coins = 0;
}
_root.scores = _root.scores + 100;
_root.coins++;
var _local2 = SharedObject.getLocal("CP_1");
_local2.data.coins = _root.coins;
_local2.flush();
_root.CLEAR[_root.area][BID] = true;
return(undefined);
}
if ((_root.KILLS == null) || (_root.KILLS == undefined)) {
_root.KILLS = 0;
}
_root.KILLS++;
var _local2 = SharedObject.getLocal("CP_1");
_local2.data.kills = _root.KILLS;
_local2.flush();
if (props.type == "skelletor") {
_root.expe = _root.expe + 10;
_root.expetotal = _root.expetotal + 10;
_root.scores = _root.scores + 100;
}
if (props.type == "orbot") {
_root.expe = _root.expe + 20;
_root.expetotal = _root.expetotal + 20;
_root.scores = _root.scores + 300;
}
if (props.type == "turret") {
_root.expe = _root.expe + 25;
_root.expetotal = _root.expetotal + 25;
_root.scores = _root.scores + 400;
}
if (props.type == "turretB") {
_root.expe = _root.expe + 25;
_root.expetotal = _root.expetotal + 25;
_root.scores = _root.scores + 200;
}
if (props.type == "turretB2") {
_root.expe = _root.expe + 25;
_root.expetotal = _root.expetotal + 25;
_root.scores = _root.scores + 200;
}
if (props.type == "turret_roof") {
_root.expe = _root.expe + 25;
_root.expetotal = _root.expetotal + 25;
_root.scores = _root.scores + 300;
}
if (props.type == "hindalarrskeleton") {
_root.expe = _root.expe + 50;
_root.expetotal = _root.expetotal + 50;
_root.scores = _root.scores + 900;
}
if (props.type == "gumrusch") {
_root.expe = _root.expe + 100;
_root.expetotal = _root.expetotal + 100;
_root.scores = _root.scores + 1500;
}
if (props.type == "gum") {
_root.expe = _root.expe + 10;
_root.expetotal = _root.expetotal + 10;
_root.scores = _root.scores + 100;
}
if (props.type == "crystoise") {
_root.expe = _root.expe + 50;
_root.expetotal = _root.expetotal + 50;
_root.scores = _root.scores + 500;
}
if (props.type == "khgnippa") {
_root.expe = _root.expe + 100;
_root.expetotal = _root.expetotal + 100;
_root.scores = _root.scores + 800;
}
if (props.type == "icetar") {
_root.expe = _root.expe + 50;
_root.expetotal = _root.expetotal + 50;
_root.scores = _root.scores + 500;
}
_local2 = SharedObject.getLocal("CP_1");
_local2.data.expetotal = _root.expetotal;
_local2.data.scores = _root.scores;
_local2.flush();
if (_root.Rdie <= 6) {
_root.PD++;
if (_root.PD > 1000) {
_root.PD = 0;
}
var _local3 = _root.cont.LIFE.attachMovie("pickup", "PICKUP" + _root.PD, 7000 + _root.PD);
_local3._x = _x;
_local3._y = _y;
}
_root.grabar = true;
}
function DyingCheck() {
if (dying) {
DrawFrame(1, (dying % 2) == 0);
if (props.type == "coin") {
_root.playSFX("coin");
this.removeMovieClip();
dying++;
return(true);
}
if (((dying - 1) % 6) == 0) {
_root.Explosion((_x + random(31)) - 15, (_y + 5) + random(31), 9);
}
if (dying > 10) {
_alpha = 0;
}
if (dying > 18) {
this.removeMovieClip();
}
dying++;
return(true);
}
return(false);
}
function OnScreen() {
var _local3 = 100;
var _local2 = {x:_x, y:_y};
_parent.localToGlobal(_local2);
return((((_local2.x > (-_local3)) && (_local2.x < (STAGEW + _local3))) && (_local2.y > (-_local3))) && (_local2.y < (STAGEH + _local3)));
}
if (_root.DIFFICULTY == 0) {
stats = {skelletor:{SIZE:[20, 20], HP:1, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true}, orbot:{SIZE:[20, 20], HP:2, POW:1, ChecksForEdges:true, dir:-1, speed:random(4), walkanim:true}, turret:{SIZE:[20, 20], HP:2, POW:1, dir:((_x > _root.PC._x) ? -1 : 1), sx:true, speed:0, shotrate:60, shotdir:[10, 0], shot_type:6, airborne:true}, turretB:{SIZE:[20, 20], HP:2, POW:1, dir:-1, sx:true, speed:0, shotrate:60, shotdir:[10, 0], shot_type:6, airborne:true}, turretB2:{SIZE:[20, 20], HP:2, POW:1, dir:1, sx:true, speed:0, shotrate:60, shotdir:[10, 0], shot_type:6, airborne:true}, turret_roof:{SIZE:[20, 20], HP:1, POW:1, ChecksForEdges:true, dir:-1, speed:3, shotrate:40, shotdir:[0, 10], shot_type:2, airborne:"roof", noflip:true}, lostsoul:{SIZE:[20, 20], invulnerable:true, POW:1, ChecksForEdges:true, dir:-1, speed:2, airborne:true, walkanim:true}, hindalarrskeleton:{SIZE:[20, 26], HP:5, POW:1, ChecksForEdges:true, dir:1, speed:_root.hspeed, walkanim:true, immuneToBlaster:true, walkdelay:12}, gumrusch:{SIZE:[40, 40], HP:8, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true}, gum:{SIZE:[20, 20], HP:1, POW:1, ChecksForEdges:true, dir:-1, speed:random(7), walkanim:true, walkdelay:4}, hawkstatue:{SIZE:[20, 20], solid:true, invulnerable:true, POW:2, dir:-1, airborne:true, sx:true, speed:0, shotrate:60, shotdir:[10, 0], shot_type:0, shot_sfx:"fireball", easyNoFire:true}, hawkstatue2:{SIZE:[20, 20], solid:true, invulnerable:true, POW:2, dir:1, airborne:true, sx:true, speed:0, shotrate:60, shotdir:[10, 0], shot_type:0, shot_sfx:"fireball", easyNoFire:true}, swordtrap:{SIZE:[20, 60], invulnerable:true, POW:2, speed:0, noshothit:true}, crystoise:{SIZE:[20, 20], HP:3, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true, shotrate:35, shotdir:[10, 0], shot_type:8}, khgnippa:{SIZE:[20, 20], HP:1, POW:1}, icetar:{SIZE:[20, 20], HP:2, POW:1}, ishish:{SIZE:[20, 20], invulnerable:true, POW:1, ChecksForEdges:true, dir:-1, speed:4, airborne:true, walkanim:true}, icicles:{SIZE:[20, 20], invulnerable:true}, lava:{SIZE:[20, 20], invulnerable:true, POW:99, fullsizeBB:true}, waterM:{SIZE:[20, 20], invulnerable:true, POW:0, fullsizeBB:true}, waterB:{SIZE:[20, 20], invulnerable:true, POW:0, fullsizeBB:true}, prismblock:{SIZE:[20, 20], invulnerable:true}, prismblock2:{SIZE:[20, 20], invulnerable:true}, clockstones:{SIZE:[20, 20], invulnerable:true}, coin:{SIZE:[16, 16], ChecksForEdges:false, invulnerable:false, noshothit:true}}[props.type];
}
if (_root.DIFFICULTY == 1) {
stats = {skelletor:{SIZE:[20, 20], HP:2, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true}, orbot:{SIZE:[20, 20], HP:3, POW:1, ChecksForEdges:true, dir:-1, speed:random(4), walkanim:true}, turret:{SIZE:[20, 20], HP:4, POW:1, dir:((_x > _root.PC._x) ? -1 : 1), sx:true, speed:0, shotrate:50, shotdir:[10, 0], shot_type:6, airborne:true}, turretB:{SIZE:[20, 20], HP:4, POW:1, dir:-1, sx:true, speed:0, shotrate:50, shotdir:[10, 0], shot_type:6, airborne:true}, turretB2:{SIZE:[20, 20], HP:4, POW:1, dir:1, sx:true, speed:0, shotrate:50, shotdir:[10, 0], shot_type:6, airborne:true}, turret_roof:{SIZE:[20, 20], HP:3, POW:1, ChecksForEdges:true, dir:-1, speed:3, shotrate:30, shotdir:[0, 10], shot_type:2, airborne:"roof", noflip:true}, lostsoul:{SIZE:[20, 20], invulnerable:true, POW:1, ChecksForEdges:true, dir:-1, speed:2, airborne:true, walkanim:true}, hindalarrskeleton:{SIZE:[20, 26], HP:9, POW:1, ChecksForEdges:true, dir:1, speed:_root.hspeed, walkanim:true, immuneToBlaster:true, walkdelay:12}, gumrusch:{SIZE:[40, 40], HP:12, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true}, gum:{SIZE:[20, 20], HP:2, POW:1, ChecksForEdges:true, dir:-1, speed:random(7), walkanim:true, walkdelay:4}, hawkstatue:{SIZE:[20, 20], solid:true, invulnerable:true, POW:2, dir:-1, airborne:true, sx:true, speed:0, shotrate:50, shotdir:[10, 0], shot_type:0, shot_sfx:"fireball", easyNoFire:true}, hawkstatue2:{SIZE:[20, 20], solid:true, invulnerable:true, POW:2, dir:1, airborne:true, sx:true, speed:0, shotrate:50, shotdir:[10, 0], shot_type:0, shot_sfx:"fireball", easyNoFire:true}, swordtrap:{SIZE:[20, 60], invulnerable:true, POW:2, speed:0, noshothit:true}, crystoise:{SIZE:[20, 20], HP:4, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true, shotrate:35, shotdir:[10, 0], shot_type:8}, khgnippa:{SIZE:[20, 20], HP:2, POW:1}, icetar:{SIZE:[20, 20], HP:3, POW:1}, ishish:{SIZE:[20, 20], invulnerable:true, POW:1, ChecksForEdges:true, dir:-1, speed:4, airborne:true, walkanim:true}, icicles:{SIZE:[20, 20], invulnerable:true}, lava:{SIZE:[20, 20], invulnerable:true, POW:99, fullsizeBB:true}, waterM:{SIZE:[20, 20], invulnerable:true, POW:0, fullsizeBB:true}, waterB:{SIZE:[20, 20], invulnerable:true, POW:0, fullsizeBB:true}, prismblock:{SIZE:[20, 20], invulnerable:true}, prismblock2:{SIZE:[20, 20], invulnerable:true}, clockstones:{SIZE:[20, 20], invulnerable:true}, coin:{SIZE:[16, 16], ChecksForEdges:false, invulnerable:false, noshothit:true}}[props.type];
}
if (_root.DIFFICULTY == 2) {
stats = {skelletor:{SIZE:[20, 20], HP:4, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true}, orbot:{SIZE:[20, 20], HP:5, POW:1, ChecksForEdges:true, dir:-1, speed:random(4), walkanim:true}, turret:{SIZE:[20, 20], HP:5, POW:1, dir:((_x > _root.PC._x) ? -1 : 1), sx:true, speed:0, shotrate:40, shotdir:[10, 0], shot_type:6, airborne:true}, turretB:{SIZE:[20, 20], HP:5, POW:1, dir:-1, sx:true, speed:0, shotrate:40, shotdir:[10, 0], shot_type:6, airborne:true}, turretB2:{SIZE:[20, 20], HP:5, POW:1, dir:1, sx:true, speed:0, shotrate:40, shotdir:[10, 0], shot_type:6, airborne:true}, turret_roof:{SIZE:[20, 20], HP:4, POW:1, ChecksForEdges:true, dir:-1, speed:3, shotrate:25, shotdir:[0, 10], shot_type:2, airborne:"roof", noflip:true}, lostsoul:{SIZE:[20, 20], invulnerable:true, POW:1, ChecksForEdges:true, dir:-1, speed:2, airborne:true, walkanim:true}, hindalarrskeleton:{SIZE:[20, 26], HP:9, POW:1, ChecksForEdges:true, dir:1, speed:_root.hspeed, walkanim:true, immuneToBlaster:true, walkdelay:12}, gumrusch:{SIZE:[40, 40], HP:16, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true}, gum:{SIZE:[20, 20], HP:3, POW:1, ChecksForEdges:true, dir:-1, speed:random(7), walkanim:true, walkdelay:4}, hawkstatue:{SIZE:[20, 20], solid:true, invulnerable:true, POW:2, dir:-1, airborne:true, sx:true, speed:0, shotrate:30, shotdir:[10, 0], shot_type:0, shot_sfx:"fireball", easyNoFire:true}, hawkstatue2:{SIZE:[20, 20], solid:true, invulnerable:true, POW:2, dir:1, airborne:true, sx:true, speed:0, shotrate:30, shotdir:[10, 0], shot_type:0, shot_sfx:"fireball", easyNoFire:true}, swordtrap:{SIZE:[20, 60], invulnerable:true, POW:2, speed:0, noshothit:true}, crystoise:{SIZE:[20, 20], HP:6, POW:1, ChecksForEdges:true, dir:-1, speed:1, walkanim:true, shotrate:25, shotdir:[10, 0], shot_type:8}, khgnippa:{SIZE:[20, 20], HP:4, POW:1}, icetar:{SIZE:[20, 20], HP:6, POW:1}, ishish:{SIZE:[20, 20], invulnerable:true, POW:1, ChecksForEdges:true, dir:-1, speed:4, airborne:true, walkanim:true}, icicles:{SIZE:[20, 20], invulnerable:true}, lava:{SIZE:[20, 20], invulnerable:true, POW:99, fullsizeBB:true}, waterM:{SIZE:[20, 20], invulnerable:true, POW:0, fullsizeBB:true}, waterB:{SIZE:[20, 20], invulnerable:true, POW:0, fullsizeBB:true}, prismblock:{SIZE:[20, 20], invulnerable:true}, prismblock2:{SIZE:[20, 20], invulnerable:true}, clockstones:{SIZE:[20, 20], invulnerable:true}, coin:{SIZE:[16, 16], ChecksForEdges:false, invulnerable:false, noshothit:true}}[props.type];
}
for (var o in stats) {
this[o] = stats[o];
}
if (props.BLIND) {
ChecksForEdges = false;
}
if (!invulnerable) {
_root.RECORDS.FOES_ENCOUNTERED[(_root.area + "__") + BID] = 0;
}
HEIGHT = SIZE[1];
var bmp = (new flash.display.BitmapData(SIZE[0], SIZE[1], true));
LoadSheets("s_" + props.type);
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.createEmptyMovieClip("img", 8);
box.img.attachBitmap(bmp, 50);
if (props.invertV) {
box.img._yscale = box.img._yscale * -1;
box.img._y = box.img._y + box.img._height;
}
box._x = (-SIZE[0]) / 2;
DrawFrame(1);
this.createEmptyMovieClip("bb", 3);
bb._x = -((SIZE[0] / 2) - 5);
bb._y = (SIZE[1] / 2) - 5;
var edge = (fullsizeBB ? 0 : 10);
bb.attachBitmap(new flash.display.BitmapData(SIZE[0] - edge, SIZE[1] - edge, true, 0), 12);
_width = (_width * 2);
_height = (_height * 2);
if ((dir == 1) && (sx)) {
_xscale = (_xscale * -1);
}
if (solid) {
WALLS[props.y][props.x] = 5;
}
absorbedHits = 0;
Collision_Left = (Collision_Right = function () {
dir = dir * -1;
if (!noflip) {
_xscale = (_xscale * -1);
}
});
f = 0;
foot = 0;
c = 0;
d = 0;
hurt = 0;
shot = 0;
if ((SIZE[1] % 20) != 0) {
_y = (_y - ((SIZE[1] - 20) * 2));
}
if (props.type == "swordtrap") {
onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (OnScreen()) {
this._visible = true;
} else {
this._visible = false;
return(undefined);
}
d++;
if (d < 20) {
_y = (_y - 4);
} else if (d < 24) {
_y = (_y - 1);
} else if (d < 104) {
_y = (_y + 1);
} else if (d < 140) {
_y = (_y + 0);
} else if (d == 140) {
d = 0;
}
if (d == 20) {
_root.playSFX("swish1");
}
f++;
if (f == 0) {
c = 0;
}
if (f == 5) {
c = 1;
}
if (f == 10) {
c = 2;
}
if (f == 15) {
c = 0;
f = 0;
}
DrawFrame(c);
if (this.hitTest(_root.PC.bb)) {
_root.PC.Hurt([1, 2, 3][_root.DIFFICULTY]);
}
};
onEnterFrame();
} else if (props.type == "khgnippa") {
onEnterFrame = function () {
if (OnScreen()) {
this._visible = true;
} else {
this._visible = false;
return(undefined);
}
if (_root.PAUSED) {
return(undefined);
}
if (DyingCheck()) {
return(undefined);
}
if (!setup) {
jump = 0;
last_inWater = Boolean(int(WATER[Math.floor(((_y + (HEIGHT * 2)) - 5) / TILESIZE)][Math.floor(_x / TILESIZE)]));
setup = true;
}
_y = (_y - jump);
jump = jump + (inWater ? 1 : -0.5);
if (hurt) {
hurt--;
if ((hurt == 0) && (HP <= 0)) {
Die();
}
}
if (sworded) {
sworded--;
}
var _local3 = WATER[Math.floor(((_y + (HEIGHT * 2)) - 5) / TILESIZE)][Math.floor(_x / TILESIZE)];
inWater = Boolean(int(_local3));
if (_local3 == null) {
nosplash = true;
inWater = last_inWater;
}
if (nosplash) {
nosplash = false;
} else if (inWater != last_inWater) {
if (inWater) {
jump = -10;
}
if (OnScreen()) {
_root.Splash(_x, ((Math.floor(((_y + (HEIGHT * 2)) - 5) / TILESIZE) + (inWater ? 0 : 1)) * TILESIZE) + 6, 20);
}
}
last_inWater = inWater;
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
}
DrawFrame(f + (f ? (foot) : 0), hurt);
if (bb.hitTest(_root.PC.bb)) {
_root.PC.Hurt([1, 2, 3][_root.DIFFICULTY]);
}
if (bb.hitTest(_root.PC.wpn.bb)) {
if (!sworded) {
Hurt(10);
}
}
};
} else if (props.type == "coin") {
f = 0;
delay = 10;
DrawFrame(f);
onEnterFrame = function () {
if (OnScreen()) {
this._visible = true;
} else {
this._visible = false;
return(undefined);
}
if (DyingCheck()) {
return(undefined);
}
if (bb.hitTest(_root.PC.bb)) {
_root.puntos = _root.puntos + 10;
Die();
}
delay--;
if (delay <= 0) {
delay = 10;
f++;
if (f > 3) {
f = 0;
}
DrawFrame(f);
}
};
} else if (props.type == "icetar") {
onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (DyingCheck()) {
return(undefined);
}
if (hurt) {
hurt--;
if ((hurt == 0) && (HP <= 0)) {
Die();
}
}
if (sworded) {
sworded--;
}
if (OnScreen()) {
c++;
if (c >= 100) {
invulnerable = false;
DrawFrame(1 + int((Math.floor(c / 10) % 2) == 0), hurt);
var _local3 = _root.PC._x - _x;
var _local4 = _root.PC._y - _y;
var _local2 = Math.sqrt(Math.pow(_local3, 2) + Math.pow(_local4, 2));
var _local5 = 2;
_x = (_x + ((_local3 / _local2) * _local5));
_y = (_y + ((_local4 / _local2) * _local5));
} else {
invulnerable = true;
DrawFrame(0, hurt);
}
if (c >= 200) {
c = 0;
}
}
if (bb.hitTest(_root.PC.bb)) {
_root.PC.Hurt([1, 2, 3][_root.DIFFICULTY]);
}
if (bb.hitTest(_root.PC.wpn.bb)) {
if (!sworded) {
Hurt(_root.arma);
}
}
};
} else if (props.type == "icicles") {
onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (bb.hitTest(_root.PC.bb)) {
_root.PC.Hurt([1, 2, 3][_root.DIFFICULTY]);
}
if (this.falling) {
var _local6 = WATER[Math.floor(this._y / TILESIZE)][Math.floor(this._x / TILESIZE)];
if ((!this.dropped) && (this.falling < (_local6 ? 40 : 20))) {
this.box._x = ((-this.SIZE[0]) / 2) + (2 * (((this.falling % 2) == 0) ? 1 : -1));
} else {
this.dropped = true;
this.box._x = (-this.SIZE[0]) / 2;
this._y = this._y + (_local6 ? 8 : 10);
var _local5 = WALLS[Math.floor((this._y + (this.SIZE[1] / 2)) / TILESIZE)][Math.floor(this._x / TILESIZE)];
if ((_local5 < 90) && (_local5 != 0)) {
_root.playSFX("icicle");
var _local4 = 0;
while (_local4 < 8) {
_root.PD++;
var _local3 = _root.cont.LIFE.createEmptyMovieClip("particle" + _root.PD, 7000 + _root.PD);
_local3.createEmptyMovieClip("box", 1);
_local3.box.attachBitmap((_local3.bmp = new flash.display.BitmapData(10, 10, true)), 1);
_local3.box._x = (_local3.box._y = -5);
_local3.bmp.copyPixels(this.sheet, new flash.geom.Rectangle(20 + (10 * random(2)), 10 * random(2), 10, 10), new flash.geom.Point(0, 0));
_local3._x = (this._x - (this.SIZE[0] / 2)) + (Math.random() * this.SIZE[0]);
_local3._width = (_local3._height = 20);
_local3._y = (this._y - (this.SIZE[1] / 2)) + (Math.random() * this.SIZE[1]);
_local3.mom = [_local3._x - this._x, _local3._y - this._y, -(3 + random(4))];
_local3.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
this._x = this._x + this.mom[0];
this._y = this._y + (this.mom[1] + this.mom[2]);
this.mom[2]++;
if (this._y > ((TILESIZE * _root.map.length) + 100)) {
this.removeMovieClip();
}
};
_local4++;
}
this.removeMovieClip();
}
}
this.falling++;
} else if ((((_root.PC._x > (this._x - 40)) && (_root.PC._x < (this._x + 40))) && ((_root.PC._y - this._y) < 150)) && ((_root.PC._y - this._y) > 0)) {
this.falling = 1;
}
DrawFrame(0);
};
DrawFrame(0);
} else if (props.type == "lava") {
_alpha = 80;
if (OnScreen()) {
this._visible = true;
} else {
this._visible = false;
return(undefined);
}
f = 0;
delay = 10;
DrawFrame(f);
onEnterFrame = function () {
delay--;
if (delay <= 0) {
delay = 10;
f++;
if (f > 2) {
f = 0;
}
DrawFrame(f);
}
if (bb.hitTest(_root.PC.bb)) {
_root.PC.Hurt(POW, true);
}
};
} else if (props.type == "waterM") {
_alpha = 60;
f = 0;
delay = 10;
DrawFrame(f);
onEnterFrame = function () {
if (OnScreen()) {
this._visible = true;
} else {
this._visible = false;
return(undefined);
}
_alpha = 60;
delay--;
if (delay <= 0) {
delay = 10;
f++;
if (f > 2) {
f = 0;
}
DrawFrame(f);
}
};
} else if (props.type == "waterB") {
_alpha = 60;
f = 0;
delay = 10;
DrawFrame(f);
onEnterFrame = function () {
if (OnScreen()) {
this._visible = true;
} else {
this._visible = false;
return(undefined);
}
_alpha = 60;
delay--;
if (delay <= 0) {
delay = 10;
f++;
if (f > 2) {
f = 0;
}
DrawFrame(f);
}
};
} else if (props.type == "prismblock") {
onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (!setup) {
_alpha = 0;
setup = true;
}
c++;
if (c < 10) {
_alpha = (_alpha + 10);
} else if ((c > 50) && (c < 60)) {
_alpha = (_alpha - 10);
} else if (c == 60) {
_alpha = 0;
} else if (c >= 75) {
c = 0;
} else if (c == 10) {
_alpha = 100;
}
WALLS[Math.floor(_y / TILESIZE)][Math.floor(_x / TILESIZE)] = ((_alpha == 0) ? 0 : 1);
};
onEnterFrame();
} else if (props.type == "prismblock2") {
onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (!setup) {
_alpha = 0;
setup = true;
}
c++;
if ((c < 50) && (c > 40)) {
_alpha = (_alpha + 10);
} else if ((c > 70) && (c < 85)) {
_alpha = (_alpha - 10);
} else if (c == 85) {
_alpha = 0;
} else if (c >= 100) {
c = 0;
} else if (c < 40) {
_alpha = 100;
}
WALLS[Math.floor(_y / TILESIZE)][Math.floor(_x / TILESIZE)] = ((_alpha == 0) ? 0 : 1);
};
onEnterFrame();
} else if (props.type == "clockstones") {
onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (!setup) {
if (props.SWITCH) {
Tick = function () {
_root.playSFX((f ? "Tock" : "Tick"));
f = !f;
_root.CLOCKSWITCH--;
trace(_root.CLOCKSWITCH);
if (_root.CLOCKSWITCH == 0) {
ticking = 0;
}
};
OnHit = function () {
if (!_root.CLOCKSWITCH) {
_root.CLOCKSWITCH = this.props.SWITCH;
Tick();
ticking = 1;
}
};
_root.CLOCKSWITCH = false;
}
setup = true;
}
if (props.SWITCH) {
if (ticking) {
ticking++;
if ((ticking % 40) == 0) {
Tick();
}
}
if (bb.hitTest(_root.PC.wpn.bb)) {
if (!sworded) {
Hurt(3);
}
}
DrawFrame((_root.CLOCKSWITCH ? 2 : 1));
} else {
_visible = (props.anti ? _root.CLOCKSWITCH : (!_root.CLOCKSWITCH));
DrawFrame(0);
}
WALLS[Math.floor(_y / TILESIZE)][Math.floor(_x / TILESIZE)] = (_visible ? 1 : 0);
};
onEnterFrame();
} else {
onEnterFrame = function () {
if (OnScreen()) {
this._visible = true;
} else {
this._visible = false;
return(undefined);
}
if (_root.PAUSED) {
return(undefined);
}
if (DyingCheck()) {
return(undefined);
}
if (!airborne) {
falling = Move(0, 10)[1] == 1;
if (falling) {
landed = false;
}
}
if (hurt) {
if (!speed) {
DrawFrame(1, true);
}
hurt--;
if ((hurt == 0) && (HP <= 0)) {
Die();
}
} else if ((!speed) && (shot < shotrate)) {
DrawFrame(0);
}
if (sworded) {
sworded--;
}
if (props.type == "hindalarrskeleton") {
_root.ticks++;
if (_root.ticks < 15) {
_root.hspeed = 1;
} else if (_root.ticks < 30) {
_root.hspeed = 2;
} else if (_root.ticks < 60) {
_root.hspeed = 3;
} else if (_root.ticks < 80) {
_root.hspeed = 4;
} else if (_root.ticks < 100) {
_root.hspeed = 5;
} else if (_root.ticks < 120) {
_root.ticks = 0;
}
speed = _root.hspeed;
}
if (props.type == "gum") {
if (speed == 0) {
speed = 1;
}
}
if (props.type == "orbot") {
if (speed == 0) {
speed = 2;
}
if (speed == 1) {
speed = 2;
}
}
if (speed) {
Move(speed * dir, 0);
}
var _local3 = (props.DELAY ? props.DELAY : shotrate);
if ((shotrate && OnScreen()) && ((!easyNoFire) || _root.DIFFICULTY)) {
shot++;
if (shot == _local3) {
_root.playSFX((shot_sfx ? shot_sfx : "sfxhurtp"));
if (props.type == "crystoise") {
_root.CreateParticle(_x + (shotdir[1] ? 0 : ((dir == 1) ? 26 : -36)), _y + (shotdir[1] ? 45 : 15), dir * shotdir[0], shotdir[1], shot_type);
} else {
_root.CreateParticle(_x + (shotdir[1] ? 0 : ((dir == 1) ? 28 : -38)), _y + (shotdir[1] ? 48 : 20), dir * shotdir[0], shotdir[1], shot_type);
}
shotanim = 6;
}
if (shot == shotrate) {
shot = 0;
}
}
if (shotanim) {
shotanim--;
}
c++;
if (c >= ((walkdelay != null) ? walkdelay : 8)) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
}
DrawFrame((walkanim ? (f + (f ? foot : 0)) : (shotanim ? 1 : 0)), hurt);
if ((!solid) && bb.hitTest(_root.PC.bb)) {
if (props.type == "hindalarrskeleton") {
_root.PC.Hurt([1, 2, 3][_root.DIFFICULTY]);
} else if (props.type == "crystoise") {
_root.PC.Hurt([1, 1, 2][_root.DIFFICULTY]);
} else if (props.type == "gum") {
_root.PC.Hurt([1, 2, 3][_root.DIFFICULTY]);
} else if (props.type == "gumrusch") {
_root.PC.Hurt([1, 2, 4][_root.DIFFICULTY]);
} else if (props.type == "lostsoul") {
_root.PC.Hurt([1, 2, 3][_root.DIFFICULTY]);
} else if (props.type == "orbot") {
_root.PC.Hurt([1, 1, 1][_root.DIFFICULTY]);
} else if (props.type == "skelletor") {
_root.PC.Hurt([1, 1, 3][_root.DIFFICULTY]);
} else if (props.type == "icetar") {
_root.PC.Hurt([1, 1, 3][_root.DIFFICULTY]);
} else if (props.type == "hawkstatue") {
_root.PC.Hurt([1, 1, 1][_root.DIFFICULTY]);
} else if (props.type == "hawkstatue2") {
_root.PC.Hurt([1, 1, 1][_root.DIFFICULTY]);
} else if (props.type == "turret") {
_root.PC.Hurt([1, 1, 2][_root.DIFFICULTY]);
} else {
_root.PC.Hurt([1, 1, 3][_root.DIFFICULTY]);
}
}
if (bb.hitTest(_root.PC.wpn.bb)) {
if (!sworded) {
Hurt(_root.arma);
}
}
};
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 2
_root.PAUSED = true;
Symbol 205 MovieClip Frame 116
_root.PAUSED = false;
Symbol 208 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Instance of Symbol 208 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.BOSSHP[1]);
}
Instance of Symbol 211 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.BOSSHP[0]);
}
Symbol 221 MovieClip Frame 1
stop();
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round(_root.breath));
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.MaxVidas + 1);
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.vidas + 1);
}
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 100
_root.playSFX("1up");
if (PCLIVES < 99) {
_root.rango = _root.rango + 1;
_root.vidas = _root.MaxVidas;
_root.grabar = true;
PCLIVES++;
}
_root.expe = 0;
Instance of Symbol 249 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.rango == null) || (_root.rango == 0)) {
gotoAndStop(_root.expe);
}
if (_root.rango == 1) {
gotoAndStop(Math.round(_root.expe / 2));
}
if (_root.rango == 2) {
gotoAndStop(Math.round(_root.expe / 3));
}
if (_root.rango == 3) {
gotoAndStop(Math.round(_root.expe / 4));
}
if (_root.rango == 5) {
gotoAndStop(Math.round(_root.expe / 5));
}
if (_root.rango == 6) {
gotoAndStop(Math.round(_root.expe / 6));
}
if (_root.rango == 7) {
gotoAndStop(Math.round(_root.expe / 7));
}
if (_root.rango == 8) {
gotoAndStop(Math.round(_root.expe / 8));
}
if (_root.rango == 9) {
gotoAndStop(Math.round(_root.expe / 9));
}
if (_root.rango == 10) {
gotoAndStop(Math.round(_root.expe / 10));
}
if (_root.rango == 11) {
gotoAndStop(Math.round(_root.expe / 11));
}
if (_root.rango == 12) {
gotoAndStop(Math.round(_root.expe / 12));
}
if (_root.rango == 13) {
gotoAndStop(Math.round(_root.expe / 13));
}
if (_root.rango == 14) {
gotoAndStop(Math.round(_root.expe / 14));
}
if (_root.rango == 15) {
gotoAndStop(Math.round(_root.expe / 15));
}
if (_root.rango == 16) {
gotoAndStop(Math.round(_root.expe / 16));
}
if (_root.rango == 17) {
gotoAndStop(Math.round(_root.expe / 17));
}
if (_root.rango == 18) {
gotoAndStop(Math.round(_root.expe / 18));
}
if (_root.rango == 19) {
gotoAndStop(Math.round(_root.expe / 19));
}
if (_root.rango == 20) {
gotoAndStop(Math.round(_root.expe / 20));
}
}
Symbol 257 MovieClip [GUI] Frame 1
scor.textColor = 16777215 /* 0xFFFFFF */;
Instance of Symbol 205 MovieClip in Symbol 257 MovieClip [GUI] Frame 1
onClipEvent (enterFrame) {
if ((_root.OFFSET[0] == "lvT_1") && (_root.infolevel1 == false)) {
if (_root.lang == "en") {
var _loc4 = ["Tutorial", "I Must Learn How To Play to be able to rescue Karen"];
}
if (_root.lang == "es") {
var _loc4 = ["Tutorial", "Debo aprender para poder rescatar a Dra.Karen"];
}
play();
_root.PlanetName = _loc4[0];
_root.IdealTime = _loc4[1];
_root.infolevel1 = true;
}
if (((_root.OFFSET[0] == "lv2_0") && (_root.infolevel2 == false)) && (_root.llave1 == true)) {
if (_root.lang == "en") {
var _loc4 = ["The Island", "I must explore the island to find Karen"];
}
if (_root.lang == "es") {
var _loc4 = ["La Isla", "Debo explorarla para poder encontrar a la Dra.Karen "];
}
play();
_root.PlanetName = _loc4[0];
_root.IdealTime = _loc4[1];
_root.infolevel2 = true;
}
}
Instance of Symbol 212 MovieClip in Symbol 257 MovieClip [GUI] Frame 1
onClipEvent (enterFrame) {
_visible = _root.BOSSMODE;
}
Instance of Symbol 222 MovieClip in Symbol 257 MovieClip [GUI] Frame 1
onClipEvent (enterFrame) {
if (_root.BOSSMODE == false) {
_visible = _root.snorkel1;
} else {
_visible = false;
}
}
Instance of Symbol 240 MovieClip in Symbol 257 MovieClip [GUI] Frame 1
onClipEvent (enterFrame) {
_visible = _root.GPS;
}
Instance of Symbol 251 MovieClip in Symbol 257 MovieClip [GUI] Frame 1
onClipEvent (enterFrame) {
if (_root.BOSSMODE == false) {
if (_root.area.substr(2, 1) != "T") {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 256 MovieClip in Symbol 257 MovieClip [GUI] Frame 1
onClipEvent (enterFrame) {
if (_root.pistola1 == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 263 MovieClip Frame 1
tx_pausa.textColor = 16776960 /* 0xFFFF00 */;
Symbol 266 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 269 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 272 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 275 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 303 MovieClip Frame 1
onEnterFrame = function () {
if (_root.MUSIC.getVolume() > 0) {
_root.MUSIC.setVolume(_root.MUSIC.getVolume() - 1);
}
};
_root.LevelNComplete = ("Episode " + _root.CHAPTER) + " Complete!";
Symbol 303 MovieClip Frame 120
onEnterFrame = null;
_root.playMusic("R2Theme");
Symbol 303 MovieClip Frame 241
stop();
Adown = true;
onEnterFrame = function () {
if (fading) {
_parent._alpha = _parent._alpha - 2;
_root.snap._alpha = _root.snap._alpha - 2;
if (_parent._alpha <= 0) {
_root.snap.removeMovieClip();
_parent.removeMovieClip();
}
return(undefined);
}
if (Adown && (!Key.isDown(KEYS.A))) {
Adown = false;
}
if ((!Adown) && (Key.isDown(KEYS.A))) {
_root.gotoAndStop("TITLE");
fading = true;
}
};
ALIST._y = 145;
if (_root.LEVELINKS[_root.CHAPTER] != "NO") {
EpBtn.label = _root.CHAPTER + 1;
NextEp = "Next episode:";
EpBtn.gotoAndStop(1);
EpBtn.dest = _root.LEVELINKS[_root.CHAPTER];
EpBtn.onRollOver = function () {
this.gotoAndStop(2);
this._parent.EpPopup._y = this._y;
};
EpBtn.onRollOut = function () {
this.gotoAndStop(1);
this._parent.EpPopup._y = 1000;
};
EpBtn.onRelease = function () {
getURL (this.dest, "_blank");
};
} else {
EpBtn._visible = false;
}
Symbol 312 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 433 MovieClip Frame 1
stop();
Instance of Symbol 244 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root.gpsX * 15;
this._y = (_root.gpsY * 10) - 20;
}
Symbol 436 MovieClip Frame 1
room2._visible = _root.r2;
room3._visible = _root.r3;
room4._visible = _root.r4;
room5._visible = _root.r5;
room6._visible = _root.r6;
room7._visible = _root.r7;
room8._visible = _root.r8;
room9._visible = _root.r9;
room10._visible = _root.r10;
room11._visible = _root.r11;
room12._visible = _root.r12;
room13._visible = _root.r13;
room14._visible = _root.r14;
room15._visible = _root.r15;
room16._visible = _root.r16;
room17._visible = _root.r17;
room18._visible = _root.r18;
room19._visible = _root.r19;
room20._visible = _root.r20;
room21._visible = _root.r21;
room22._visible = _root.r22;
room23._visible = _root.r23;
room24._visible = _root.r24;
room25._visible = _root.r25;
room26._visible = _root.r26;
room27._visible = _root.r27;
room28._visible = _root.r28;
room29._visible = _root.r29;
room30._visible = _root.r30;
room31._visible = _root.r31;
room32._visible = _root.r32;
room33._visible = _root.r33;
room34._visible = _root.r34;
room35._visible = _root.r35;
room36._visible = _root.r36;
room37._visible = _root.r37;
room38._visible = _root.r38;
room39._visible = _root.r39;
room40._visible = _root.r40;
room41._visible = _root.r41;
room42._visible = _root.r42;
room43._visible = _root.r43;
room44._visible = _root.r44;
room45._visible = _root.r45;
room46._visible = _root.r46;
room47._visible = _root.r47;
room48._visible = _root.r48;
room49._visible = _root.r49;
room50._visible = _root.r50;
room51._visible = _root.r51;
room52._visible = _root.r52;
room53._visible = _root.r53;
room54._visible = _root.r54;
room55._visible = _root.r55;
room56._visible = _root.r56;
room57._visible = _root.r57;
room58._visible = _root.r58;
room59._visible = _root.r59;
room60._visible = _root.r60;
room61._visible = _root.r61;
room62._visible = _root.r62;
room63._visible = _root.r63;
room64._visible = _root.r64;
room65._visible = _root.r65;
room66._visible = _root.r66;
room67._visible = _root.r67;
room68._visible = _root.r68;
room69._visible = _root.r69;
room70._visible = _root.r70;
room71._visible = _root.r71;
room72._visible = _root.r72;
room73._visible = _root.r73;
room74._visible = _root.r74;
room75._visible = _root.r75;
room76._visible = _root.r76;
room77._visible = _root.r77;
room78._visible = _root.r78;
room79._visible = _root.r79;
room80._visible = _root.r80;
room81._visible = _root.r81;
room82._visible = _root.r82;
room83._visible = _root.r83;
room84._visible = _root.r84;
room85._visible = _root.r85;
room86._visible = _root.r86;
room87._visible = _root.r87;
room88._visible = _root.r88;
room89._visible = _root.r89;
room90._visible = _root.r90;
room91._visible = _root.r91;
room92._visible = _root.r92;
room93._visible = _root.r93;
room94._visible = _root.r94;
room95._visible = _root.r95;
room96._visible = _root.r96;
room97._visible = _root.r97;
room98._visible = _root.r98;
room99._visible = _root.r99;
room100._visible = _root.r100;
room101._visible = _root.r101;
room102._visible = _root.r102;
room103._visible = _root.r103;
room104._visible = _root.r104;
room105._visible = _root.r105;
room106._visible = _root.r106;
room107._visible = _root.r107;
Symbol 446 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 448 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 450 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 452 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 454 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 456 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 458 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 460 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 464 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 468 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 468 MovieClip Frame 2
tx_options.textColor = 16776960 /* 0xFFFF00 */;
Symbol 471 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 474 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 100;
tx_options2._alpha = 100;
stop();
if (_root.mutedmusic == false) {
_root.ONbt.gotoAndStop(2);
}
Symbol 474 MovieClip Frame 2
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 20;
tx_options2._alpha = 20;
Symbol 477 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 100;
tx_options2._alpha = 100;
stop();
if (_root.mutedmusic == false) {
_root.ONbt.gotoAndStop(1);
}
Symbol 477 MovieClip Frame 2
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 20;
tx_options2._alpha = 20;
Symbol 480 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 483 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 100;
tx_options2._alpha = 100;
if (_root.sfxstat == false) {
_root.OFFsfx.gotoAndStop(2);
}
Symbol 483 MovieClip Frame 2
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 20;
tx_options2._alpha = 20;
stop();
Symbol 486 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 100;
tx_options2._alpha = 100;
stop();
if (_root.sfxstat == false) {
_root.ONsfx.gotoAndStop(1);
}
Symbol 486 MovieClip Frame 2
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 20;
tx_options2._alpha = 20;
stop();
Symbol 489 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 492 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 100;
tx_options2._alpha = 100;
if (_root.lang == "es") {
gotoAndStop (2);
}
Symbol 492 MovieClip Frame 2
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 20;
tx_options2._alpha = 20;
stop();
if (_root.lang == "en") {
gotoAndStop (1);
}
Symbol 495 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 100;
tx_options2._alpha = 100;
stop();
if (_root.lang == "es") {
gotoAndStop (1);
}
if (_root.lang == "en") {
gotoAndStop (2);
}
Symbol 495 MovieClip Frame 2
tx_options.textColor = 16777215 /* 0xFFFFFF */;
tx_options._alpha = 20;
tx_options2._alpha = 20;
stop();
if (_root.lang == "es") {
gotoAndStop (1);
}
Instance of Symbol 498 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.arma1 == true) {
_visible = false;
}
}
Instance of Symbol 500 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.arma2 == true) {
_visible = false;
}
}
Instance of Symbol 502 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.arma3 == true) {
_visible = false;
}
}
Instance of Symbol 504 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.GPS == true) {
_visible = false;
}
}
Instance of Symbol 506 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.snorkel1 == true) {
_visible = false;
}
}
Instance of Symbol 508 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.snorkel2 == true) {
_visible = false;
}
}
Instance of Symbol 510 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.corazon1 == true) {
_visible = false;
}
}
Instance of Symbol 512 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.pistola1 == true) {
_visible = false;
}
}
Instance of Symbol 514 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.pistola2 == true) {
_visible = false;
}
}
Instance of Symbol 516 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.pistola3 == true) {
_visible = false;
}
}
Instance of Symbol 518 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.drake == true) {
_visible = false;
}
}
Instance of Symbol 520 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.tamus == true) {
_visible = false;
}
}
Instance of Symbol 522 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.salto1 == true) {
_visible = false;
}
}
Instance of Symbol 524 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.salto2 == true) {
_visible = false;
}
}
Instance of Symbol 526 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.salto3 == true) {
_visible = false;
}
}
Instance of Symbol 528 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.corazon2 == true) {
_visible = false;
}
}
Instance of Symbol 529 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.corazon3 == true) {
_visible = false;
}
}
Instance of Symbol 530 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.corazon4 == true) {
_visible = false;
}
}
Instance of Symbol 531 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.corazon5 == true) {
_visible = false;
}
}
Instance of Symbol 533 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.llave1 == false) {
_visible = false;
}
}
Instance of Symbol 535 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.llave2 == false) {
_visible = false;
}
}
Instance of Symbol 537 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.llave3 == false) {
_visible = false;
}
}
Instance of Symbol 538 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.llave4 == false) {
_visible = false;
}
}
Instance of Symbol 539 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.llave5 == false) {
_visible = false;
}
}
Instance of Symbol 540 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.llaveT == false) {
_visible = false;
}
}
Instance of Symbol 531 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.corazon6 == true) {
_visible = false;
}
}
Instance of Symbol 531 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
if (_root.corazon7 == true) {
_visible = false;
}
}
Instance of Symbol 266 MovieClip in Symbol 546 MovieClip [PAUSED] Frame 1
on (release) {
_root.playSFX("boton");
_parent.gotoAndStop("relics");
}
Instance of Symbol 269 MovieClip in Symbol 546 MovieClip [PAUSED] Frame 1
on (release) {
_root.playSFX("boton");
_parent.gotoAndStop("stats");
}
Instance of Symbol 272 MovieClip in Symbol 546 MovieClip [PAUSED] Frame 1
on (release) {
_root.playSFX("boton");
_parent.gotoAndStop("mapa");
}
Instance of Symbol 275 MovieClip in Symbol 546 MovieClip [PAUSED] Frame 1
on (release) {
_root.playSFX("boton");
_parent.gotoAndStop("options");
}
Instance of Symbol 66 MovieClip "ag" in Symbol 546 MovieClip [PAUSED] Frame 1
on (release) {
getURL ("http://armor.ag/MoreGames", _blank);
}
Instance of Symbol 81 MovieClip "agfb" in Symbol 546 MovieClip [PAUSED] Frame 1
on (release) {
getURL ("https://www.facebook.com/ArmorGames", _blank);
}
Instance of Symbol 83 MovieClip "agtw" in Symbol 546 MovieClip [PAUSED] Frame 1
on (release) {
getURL ("https://twitter.com/ArmorGames", _blank);
}
Instance of Symbol 312 MovieClip in Symbol 546 MovieClip [PAUSED] Frame 4
on (release) {
_root.playSFX("boton");
_parent.gotoAndStop("mapa");
}
Instance of Symbol 464 MovieClip in Symbol 546 MovieClip [PAUSED] Frame 5
on (release) {
_parent.gotoAndStop("relics");
}
Symbol 546 MovieClip [PAUSED] Frame 6
ONbt.onPress = function () {
if (ONbt._currentframe == 1) {
OFFbt.gotoAndStop(1);
_root.mutedmusic = false;
_root.playMusic("menu");
_root.playSFX("boton");
ONbt.gotoAndStop(2);
return(undefined);
}
if (ONbt._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
OFFbt.onPress = function () {
if (OFFbt._currentframe == 1) {
_root.mutedmusic = true;
ONbt.gotoAndStop(1);
_root.playMusic("menu");
_root.playSFX("boton");
OFFbt.gotoAndStop(2);
return(undefined);
}
if (OFFbt._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
ONsfx.onPress = function () {
if (ONsfx._currentframe == 1) {
_root.playSFX("boton");
OFFsfx.gotoAndStop(1);
_root.sfxstat = true;
ONsfx.gotoAndStop(2);
return(undefined);
}
if (ONsfx._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
OFFsfx.onPress = function () {
if (OFFsfx._currentframe == 1) {
_root.playSFX("boton");
_root.sfxstat = false;
ONsfx.gotoAndStop(1);
OFFsfx.gotoAndStop(2);
return(undefined);
}
if (OFFsfx._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
ESP.onPress = function () {
if (ESP._currentframe == 1) {
_root.playSFX("boton");
EN.gotoAndStop(1);
ESP.gotoAndStop(2);
_root.lang = "es";
return(undefined);
}
if (ESP._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
EN.onPress = function () {
if (EN._currentframe == 1) {
_root.playSFX("boton");
EN.gotoAndStop(2);
ESP.gotoAndStop(1);
_root.lang = "en";
return(undefined);
}
if (EN._currentframe == 2) {
_root.playSFX("botonb");
return(undefined);
}
};
Symbol 546 MovieClip [PAUSED] Frame 7
RelicName = "";
RelicDesc = "";
RelicList = _root.RELIC_LIST;
var i = 0;
if (_root.lang == "es") {
RelicName = "Items Atrapados";
RelicDesc = "Aca podras encontrar la informacion de los items que obtengas en el transcurso del juego.";
}
if (_root.lang == "en") {
RelicName = "Items Collected";
RelicDesc = "You can find here all the info of the items you get along your journey.";
}
while (i < 26) {
if ((RelicList[i] == null) || (!_root.SO.data.RELICS[i])) {
} else {
var R = RCONT.createEmptyMovieClip("R" + i, i);
_root.MakeRelic(R, {id:i, name:RelicList[i][0], desc:RelicList[i][1]}, true);
R._x = 30 * (i % 9);
R._y = Math.floor(i / 9) * 30;
if (i < 9) {
R._y = 0;
}
if ((i > 8) && (i < 18)) {
R._y = 30;
}
if (i > 17) {
R._y = 60;
}
R.onRollOver = function () {
_root.playSFX("pickup");
this._parent._parent.RelicName = this.props.name;
this._parent._parent.RelicDesc = this.props.desc;
};
R.onRollOut = function () {
if (_root.lang == "es") {
this._parent._parent.RelicName = "Items Atrapados";
this._parent._parent.RelicDesc = "Aca podras encontrar la informacion de los items que obtengas en el transcurso del juego.";
}
if (_root.lang == "en") {
this._parent._parent.RelicName = "Items Collected";
this._parent._parent.RelicDesc = "You can find here all the info of the items you get along your journey.";
}
};
}
i++;
}
Symbol 547 MovieClip [boss2mc] Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
function Move(x, y) {
last_x = _x;
last_y = _y;
_x = (_x + (x * (inWater ? 0.5 : 1)));
_y = (_y + (y * ((inWater && (!laddering)) ? 0.5 : 1)));
var _local5 = _y + (HEIGHT * 2);
var _local13 = _y + ((HEIGHT - 20) * 2);
var _local7 = _x + (SIZE[0] / 2);
var _local6 = _x - (SIZE[0] / 2);
var _local9 = [0, 0];
if (x < 0) {
var _local10 = false;
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor((_local13 + 1) / TILESIZE)];
var _local4 = [Math.floor(_local6 / TILESIZE), Math.floor((_local5 - 1) / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || (((Math.floor(_local6 / TILESIZE) < 0) && (_root.EXITS.W == null)) && (_root.EXITS["W" + Math.floor(_y / STAGEH)] == null))) {
_x = (((Math.floor(_local6 / TILESIZE) + 1) * TILESIZE) + 10);
Collision_Left();
_local10 = true;
} else {
_local9[0] = -1;
}
if (ChecksForEdges && (!_local10)) {
if (airborne == "roof") {
if (Math.ceil(WALLS[_local4[1] - 1][_local3[0]] / 80) != 1) {
Collision_Left();
}
} else if (airborne) {
if (Math.ceil(WALLS[_local3[1]][_local3[0]] / 50) == 1) {
Collision_Left();
}
} else if (Math.ceil(WALLS[_local4[1] + 1][_local3[0]] / 80) != 1) {
Collision_Left();
}
}
} else if (x > 0) {
var _local10 = false;
var _local3 = [Math.floor(_local7 / TILESIZE), Math.floor((_local13 + 1) / TILESIZE)];
var _local4 = [Math.floor(_local7 / TILESIZE), Math.floor((_local5 - 1) / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || (((Math.floor(_local7 / TILESIZE) >= _root.map[0].length) && (_root.EXITS.E == null)) && (_root.EXITS["E" + Math.floor(_y / STAGEH)] == null))) {
_x = ((Math.floor(_local7 / TILESIZE) * TILESIZE) - 10);
Collision_Right();
_local10 = true;
} else {
_local9[0] = 1;
}
if (ChecksForEdges && (!_local10)) {
if (airborne == "roof") {
if (Math.ceil(WALLS[_local4[1] - 1][_local3[0]] / 80) != 1) {
Collision_Right();
}
} else if (airborne) {
if (Math.ceil(WALLS[_local3[1]][_local3[0]] / 50) == 1) {
Collision_Right();
}
} else if (Math.ceil(WALLS[_local4[1] + 1][_local3[0]] / 80) != 1) {
Collision_Right();
}
}
}
if (y > 0) {
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor(_local5 / TILESIZE)];
var _local4 = [Math.floor((_local7 - 1) / TILESIZE), Math.floor(_local5 / TILESIZE)];
var _local11 = WALLS[_local3[1]][_local3[0]];
var _local12 = WALLS[_local4[1]][_local4[0]];
var _local16 = WALLS[Math.floor((_y + HEIGHT) / TILESIZE)][int(_x / TILESIZE)];
if ((laddering && (Math.floor(_local16 / 10) != 9)) && (_local16 != null)) {
_y = (_y - y);
} else if ((((_local11 && (_local11 < 90)) || ((_local11 == null) && (Math.floor(WALLS[_local3[1] - 1][_local3[0]] / 10) == 10))) && ((_local3[1] * TILESIZE) >= (_local5 - y))) || (((_local12 && (_local12 < 90)) || ((_local12 == null) && (Math.floor(WALLS[_local4[1] - 1][_local4[0]] / 10) == 10))) && ((_local4[1] * TILESIZE) >= (_local5 - y)))) {
_y = ((Math.floor(_local5 / TILESIZE) * TILESIZE) - (HEIGHT * 2));
LandOnGround();
StuckTo = null;
laddering = false;
onIce = (Math.floor(_local11 / 10) == 4) || (Math.floor(_local12 / 10) == 4);
} else {
var _local8 = false;
for (var _local14 in _root.MOVING) {
var _local2 = _root.MOVING[_local14];
if ((((_local5 >= _local2._y) && (_local5 <= (_local2._y + 14))) && (_local7 >= _local2._x)) && (_local6 <= (_local2._x + TILESIZE))) {
_local8 = true;
_y = (_local2._y - (HEIGHT * 2));
if (!laddering) {
StuckTo = _local2;
}
if (_local2.touch) {
_local2.moves = _local2.touch;
_local2.dontloop = true;
_local2.touch = null;
}
if (!laddering) {
LandOnGround();
}
}
}
if (!_local8) {
StuckTo = null;
_local9[1] = 1;
}
}
} else if (y < 0) {
var _local3 = [Math.floor(_local6 / TILESIZE), Math.floor(_local13 / TILESIZE)];
var _local4 = [Math.floor((_local7 - 1) / TILESIZE), Math.floor(_local13 / TILESIZE)];
if (((WALLS[_local3[1]][_local3[0]] && (WALLS[_local3[1]][_local3[0]] < 51)) || (WALLS[_local4[1]][_local4[0]] && (WALLS[_local4[1]][_local4[0]] < 51))) || ((laddering && (Math.floor(WALLS[_local3[1]][_local3[0]] / 10) != 9)) && (WALLS[_local3[1]][_local3[0]] != null))) {
_y = (((Math.floor(_local5 / TILESIZE) + 1) * TILESIZE) - (HEIGHT * 2));
} else {
_local9[1] = -1;
}
}
ScrollMap(_x - last_x, _y - last_y);
return(_local9);
}
function Hurt(amount, projectile) {
_root.playSFX("hit1");
if (((HP == null) || (hurt)) || (sworded)) {
return(undefined);
}
if (!projectile) {
sworded = 10;
}
hurt = 6;
hf = 0;
HP = HP - amount;
if (HP <= 0) {
Die();
}
_root.BOSSHP = [HP, MAXHP];
_root.RefreshGUI();
}
function Die() {
muerto = true;
dying = 1;
_root.GiveEXP(1);
_root.CLEAR[_root.area][BID] = true;
DrawFrame(1);
}
function Fireball(x, y, xmod, ymod, FLAMETHROWER) {
FR = [((phase == 10) ? 6 : ((FLAMETHROWER ? 5 : (3 + gun)))), 10];
_root.PD++;
if (_root.PD > 1000000) {
_root.PD = 0;
}
var _local8 = _root.cont.LIFE.createEmptyMovieClip("particle" + _root.PD, 7000 + _root.PD);
_local8._x = x;
_local8._y = y;
_local8.createEmptyMovieClip("box", 1);
_local8.box._x = (_local8.box._y = -10);
_local8.box.bmp = new flash.display.BitmapData(20, 20, true);
_local8.box.bmp.copyPixels(_root.ZAPBMP, new flash.geom.Rectangle(0, 0, 20, 20), new flash.geom.Point(0, 0));
_local8.box.attachBitmap(_local8.box.bmp, 1);
_local8.mod = [xmod, ymod];
_local8._width = (_local8._height = 40);
_local8._rotation = 90 * random(4);
_local8.createEmptyMovieClip("bb", 4);
_local8.bb.attachBitmap(new flash.display.BitmapData(10, 10, true, 0), 1);
_local8.bb._x = (_local8.bb._y = -10);
if (!FLAMETHROWER) {
_root.playSFX("fireball");
}
if (!FLAMETHROWER) {
_local8.SmallFireball = function () {
_root.PD++;
if (_root.PD > 1000000) {
_root.PD = 0;
}
var _local3 = _root.cont.LIFE.createEmptyMovieClip("particle" + _root.PD, 7000 + _root.PD);
_local3._x = this._x;
_local3._y = this._y;
_local3.createEmptyMovieClip("box", 1);
_local3.box._x = (_local3.box._y = -5);
_local3.box.bmp = new flash.display.BitmapData(10, 10, true);
_local3.box.bmp.copyPixels(_root.ZAPBMP, new flash.geom.Rectangle(20, 0, 10, 10), new flash.geom.Point(0, 0));
_local3.box.attachBitmap(_local3.box.bmp, 1);
_local3._width = (_local3._height = 20);
_local3._rotation = random(4) * 90;
return(_local3);
};
}
_local8.FThF = FLAMETHROWER;
_local8.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
this._rotation = 90 * random(4);
if (!this.FThF) {
var _local8 = this.SmallFireball();
_local8.count = 0;
_local8.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
this.count++;
if (this.count >= 2) {
this.removeMovieClip();
}
};
}
var _local9 = [Math.floor((this._x + this.mod[0]) / TILESIZE), Math.floor((this._y + this.mod[1]) / TILESIZE)];
if (VWall(WALLS[_local9[1]][_local9[0]])) {
if (!this.FThF) {
_root.playSFX("flame1");
}
if (!this.FThF) {
var _local3 = 0;
while (_local3 < 8) {
var _local6 = 0.7853982 * _local3;
var _local4 = 8;
var _local5 = this.SmallFireball();
_local5.mod = [Math.cos(_local6) * _local4, Math.sin(_local6) * _local4];
_local5.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
var _local3 = false;
if (this.hitTest(_root.PC.bb)) {
_root.PC.Hurt(1);
_local3 = true;
}
if (this._rotation == 0) {
this._yscale = this._yscale * -1;
} else {
this._xscale = this._xscale * -1;
}
this._x = this._x + this.mod[0];
this._y = this._y + this.mod[1];
var _local4 = [Math.floor(this._x / TILESIZE), Math.floor(this._y / TILESIZE)];
if (VWall(WALLS[_local4[1]][_local4[0]])) {
_local3 = true;
}
if (_local3) {
_root.Explosion(this._x, this._y, 0, true);
this.removeMovieClip();
}
};
_local3++;
}
}
this.removeMovieClip();
}
this._x = this._x + this.mod[0];
this._y = this._y + this.mod[1];
if (this.bb.hitTest(_root.PC.bb)) {
_root.PC.Hurt(1);
}
};
}
function RemoteMine(x, y, xmod, ymod, life) {
FR = [3 + gun, 10];
_root.PD++;
if (_root.PD > 1000000) {
_root.PD = 0;
}
var _local3 = _root.cont.LIFE.createEmptyMovieClip("particle" + _root.PD, 7000 + _root.PD);
_local3._x = x;
_local3._y = y;
_local3.createEmptyMovieClip("box", 1);
_local3.box._x = (_local3.box._y = -5);
_local3.box.bmp = new flash.display.BitmapData(10, 10, true);
_local3.box.bmp.copyPixels(_root.ZAPBMP, new flash.geom.Rectangle(20, 10, 10, 10), new flash.geom.Point(0, 0));
_local3.box.attachBitmap(_local3.box.bmp, 1);
_local3.mod = [xmod, ymod];
_local3._width = (_local3._height = 20);
_local3.createEmptyMovieClip("bb", 4);
_local3.bb.attachBitmap(new flash.display.BitmapData(10, 10, true, 0), 1);
_local3.bb._x = (_local3.bb._y = -5);
_root.playSFX("blaster1");
_local3.LIFE = life;
_local3.tick = [0, 0];
_local3.onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (this.exploding) {
if ((this.exploding % 4) == 0) {
_root.Explosion((this._x - 20) + (Math.random() * 40), (this._y - 20) + (Math.random() * 40), 0, false, true);
}
this.exploding--;
if (this.exploding <= 0) {
this.removeMovieClip();
}
return(undefined);
}
if (!this.LANDED) {
this._x = this._x + this.mod[0];
this._y = this._y + this.mod[1];
var _local3 = [Math.floor(this._x / TILESIZE), Math.floor(this._y / TILESIZE)];
if (VWall(WALLS[_local3[1]][_local3[0]])) {
this.LANDED = true;
this._y = Math.floor(this._y / TILESIZE) * TILESIZE;
}
}
this.LIFE--;
this.tick[0]++;
if (this.tick[0] >= 10) {
this.tick[0] = 0;
this.tick[1] = !this.tick[1];
this.box.bmp.copyPixels(_root.ZAPBMP, new flash.geom.Rectangle(20 + (10 * this.tick[1]), 10, 10, 10), new flash.geom.Point(0, 0));
}
if (this.bb.hitTest(_root.PC.bb)) {
_root.PC.Hurt(1);
this.exploding = 20;
this.box.removeMovieClip();
}
if (this.LIFE <= 0) {
this.exploding = 32;
this.box.removeMovieClip();
}
};
}
SIZE = [40, 40];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("boss2");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
this.createEmptyMovieClip("bb", 3);
bb._x = -10;
bb._y = 5;
bb.attachBitmap(new flash.display.BitmapData(20, 30, true, 0), 12);
_width = (_width * 2);
_height = (_height * 2);
_root.playMusic("Hindalarr");
startup = false;
if ((_root.lang = "en")) {
dialogue = [["FGUARDIAN", "What are you looking for, kiddo?"], function () {
_root.PC.Turn(1);
}, ["ANIBAL", "Hmm. So you are the evil 'DR.Kunas'? Yes, I suppose so. I like your jetpack, looks evil than I was expecting, but i probably defeat you."], ["FGUARDIAN", "YOU DARE TO CHALLENGE ME? REALLY? YOU WILL NEVER LEAVE THIS ROOM."], ["ANIBAL", "I suppose that means I have to fight you?."], ["FGUARDIAN", "YOU WILL DIE, KIDDO."]];
}
if ((_root.lang = "es")) {
dialogue = [["FGUARDIAN", "Ques estas buscando, enano?"], function () {
_root.PC.Turn(1);
}, ["ANIBAL", "Hmm. Asi que tu eres el malvado 'DR.Kunas'? Si, supongo que lo eres. Me gusta tu jetpack, se ve mas malvado de lo que esperaba, aun asi igual ganare."], ["FGUARDIAN", "TE ATREVES A DESAFIARME? ESTAS SEGURO? NUNCA SALDRAS DE ESTA HABITACION."], ["ANIBAL", "Supongo que eso significa que tengo que pelear contigo?."], ["FGUARDIAN", "MORIRAS, ENANO."]];
}
_root.cutfreeze = true;
_root.jefe = true;
var talkdelay = 60;
HP = (MAXHP = 50);
_root.BOSSHP = [HP, MAXHP];
_root.ZAPBMP = flash.display.BitmapData.loadBitmap("fireball");
phase = 0;
moveto = [0, 0];
moving = 0;
dir = 1;
bomb = 0;
hover = [-1, 0];
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
muerto = false;
onEnterFrame = function () {
if (_root.PAUSED) {
return(undefined);
}
if (dying) {
if (((dying - 1) % 6) == 0) {
_root.Explosion((_x + random(SIZE[0] * 2)) - SIZE[0], _y + random(SIZE[1] * 2), 0);
}
if (dying > 120) {
_alpha = 0;
}
var _local3 = 0;
while (_local3 < 30) {
bmp.setPixel32(random(SIZE[0]), random(SIZE[1]), 0);
_local3++;
}
if (dying > 140) {
_root.BOSSMODE = false;
_root.cont.ETC.O0.Open();
_root.cont.ETC.O1.Open();
_root.RefreshGUI();
this.removeMovieClip();
}
if (_root.MUSIC.getVolume() > 0) {
_root.MUSIC.setVolume(_root.MUSIC.getVolume() - 1);
}
dying++;
return(undefined);
}
box._y = box._y + (hover[0] * 0.2);
hover[1] = hover[1] + 0.2;
if (hover[1] >= 10) {
hover[0] = hover[0] * -1;
hover[1] = 0;
}
if (talkdelay) {
talkdelay--;
if (talkdelay <= 0) {
var _local9 = ((_root.GUI.conv.dialogue = dialogue)).shift();
_root.GUI.conv.Speak(_local9[0], _local9[1]);
}
return(undefined);
}
if (_root.GUI.conv._visible) {
return(undefined);
}
if (!startup) {
startup = true;
_root.playMusic("Boss");
_root.BOSSMODE = true;
if (!_root.DIFFICULTY) {
_root.BOSS_TRIES = 3;
}
_root.RefreshGUI();
_root.cont.ETC.O0.Close();
_root.cont.ETC.O1.Close();
}
_xscale = (xscale * (-dir));
if ((!moving) && (bb.hitTest(_root.PC.bb))) {
_root.PC.Hurt(1);
}
if (hurt) {
hurt--;
if ((hurt == 0) && (HP <= 0)) {
Die();
}
}
if (sworded) {
sworded--;
}
if (bb.hitTest(_root.PC.wpn.bb)) {
if (!sworded) {
Hurt(3);
}
}
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
}
DrawFrame(f + (f ? (foot) : 0), hurt);
if (FR[0] != 0) {
FR[1]--;
if (FR[1] == 0) {
FR[0] = 0;
}
c = 0;
DrawFrame(FR[0]);
}
if (delay) {
delay--;
if (delay == 0) {
phase++;
}
return(undefined);
}
if (moving) {
moving--;
_x = (_x + ((mx = ((moveto[0] * TILESIZE) - _x) * 0.2)));
_y = (_y + ((my = ((moveto[1] * TILESIZE) - _y) * 0.1)));
if ((my > 10) || (mx > 10)) {
DrawFrame(4);
}
if (moving == 0) {
phase++;
}
return(undefined);
}
if (muerto == false) {
if (phase > ((HP > 30) ? 4 : 10)) {
phase = 0;
}
if (phase == 0) {
dir = -1;
moving = 30;
moveto = [13, 6.5];
angle = 0;
AngleDelay = 0;
} else if (phase == 1) {
if ((AngleDelay % 50) == 0) {
Fireball(_x - 20, _y + 60, -20, -6 * angle);
gun = !gun;
angle++;
if (angle > 2) {
delay = 30;
}
}
AngleDelay++;
} else if (phase == 2) {
dir = -1;
moving = 30;
moveto = [7, 2];
flamethrower = 250;
flamethrower_delay = 0;
} else if (phase == 3) {
dir = 1;
var _local8 = (flamethrower - 90) * 0.01745329;
var _local6 = 16;
Fireball(_x - 30, _y + 60, Math.cos(_local8) * _local6, Math.sin(_local8) * _local6, true);
flamethrower_delay++;
if ((flamethrower_delay % 10) == 0) {
_root.playSFX("fireball");
}
if (flamethrower_delay > 20) {
flamethrower = flamethrower - 2;
if (flamethrower < 150) {
delay = 30;
flamethrower = 110;
flamethrower_delay = 0;
}
}
} else if (phase == 4) {
dir = -1;
var _local8 = (flamethrower - 90) * 0.01745329;
var _local6 = 16;
Fireball(_x + 30, _y + 60, Math.cos(_local8) * _local6, Math.sin(_local8) * _local6, true);
flamethrower_delay++;
if ((flamethrower_delay % 10) == 0) {
_root.playSFX("fireball");
}
if (flamethrower_delay > 20) {
flamethrower = flamethrower + 2;
if (flamethrower > 210) {
delay = 30;
}
}
} else if (phase == 5) {
_root.CLOCKSWITCH = true;
dir = ((_root.PC._x > _x) ? 1 : -1);
var _local4 = [_root.PC._x - _x, _root.PC._y - _y];
var _local5 = Math.sqrt(Math.pow(_local4[0], 2) + Math.pow(_local4[1], 2));
var _local7 = 10;
RemoteMine(_x + (30 * dir), _y + 50, (_local4[0] / _local5) * _local7, (_local4[1] / _local5) * _local7, 1000);
delay = 30;
} else if (phase == 6) {
dir = ((_root.PC._x > _x) ? 1 : -1);
var _local4 = [_root.PC._x - _x, _root.PC._y - _y];
var _local5 = Math.sqrt(Math.pow(_local4[0], 2) + Math.pow(_local4[1], 2));
var _local7 = 10;
Fireball(_x + (30 * dir), _y + 50, (_local4[0] / _local5) * _local7, (_local4[1] / _local5) * _local7);
delay = 30;
} else if (phase == 7) {
dir = 1;
moving = 30;
moveto = [2, 6.5];
angle = 0;
AngleDelay = 0;
} else if (phase == 8) {
if ((AngleDelay % 50) == 0) {
Fireball(_x + 20, _y + 60, 20, -6 * angle);
gun = !gun;
angle++;
if (angle > 2) {
delay = 30;
}
}
AngleDelay++;
} else if (phase == 9) {
dir = -1;
moving = 30;
moveto = [7, 2];
flamethrower = 250;
flamethrower_delay = 0;
} else if (phase == 10) {
Fireball(_x - 10, _y + 50, -15, 8);
Fireball(_x + 10, _y + 50, 15, 8);
delay = 50;
}
}
};
Symbol 548 MovieClip [DEATHFADE] Frame 1
stop();
Symbol 548 MovieClip [DEATHFADE] Frame 2
_root.gotoAndStop("gameover");
Symbol 548 MovieClip [DEATHFADE] Frame 3
_root.gotoAndStop("gameover");
Symbol 581 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 593 Button
on (release) {
getURL ("http://armor.ag/MoreGames", _blank);
}
Symbol 633 MovieClip Frame 1
play();
Symbol 633 MovieClip Frame 241
stop();
Symbol 640 MovieClip Frame 1
tx_credits.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 640 MovieClip Frame 2
tx_credits.textColor = 16776960 /* 0xFFFF00 */;
Symbol 644 MovieClip Frame 1
tx_credits.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 644 MovieClip Frame 2
tx_credits.textColor = 16776960 /* 0xFFFF00 */;
Symbol 652 MovieClip Frame 1
gotoAndStop((_root.MUTE ? 2 : 1));
onRelease = function () {
_root.MUTE = !_root.MUTE;
_root.playMusic(_root.currentMusic, null, true);
gotoAndStop((_root.MUTE ? 2 : 1));
};
Symbol 657 MovieClip Frame 1
tx_credits.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 657 MovieClip Frame 2
tx_credits.textColor = 16776960 /* 0xFFFF00 */;
Symbol 661 MovieClip Frame 1
tx_credits.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 661 MovieClip Frame 2
tx_credits.textColor = 16776960 /* 0xFFFF00 */;
Symbol 665 MovieClip Frame 1
tx_credits.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 665 MovieClip Frame 2
tx_credits.textColor = 16776960 /* 0xFFFF00 */;
Symbol 671 MovieClip Frame 1
tx_loadgame.textColor = 16777215 /* 0xFFFFFF */;
Symbol 677 MovieClip Frame 1
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 677 MovieClip Frame 2
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Instance of Symbol 678 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(KEYS.Z)) {
_root.playMusic("isla");
_root.gotoAndStop(11);
}
}
Symbol 712 MovieClip Frame 1380
_root.playMusic("isla");
_root.gotoAndStop(11);
stop();
Symbol 717 MovieClip Frame 1
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 720 MovieClip Frame 1
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 723 MovieClip Frame 1
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 726 MovieClip Frame 1
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 729 MovieClip Frame 1
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 732 MovieClip Frame 1
tx_newgame.textColor = 16777215 /* 0xFFFFFF */;
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 735 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 738 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 764 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 787 MovieClip Frame 1
stop();
Symbol 787 MovieClip Frame 8
stop();
Symbol 792 MovieClip Frame 334
_root.gotoAndStop("gameover");
Symbol 796 MovieClip Frame 1
tx_options.textColor = 16777215 /* 0xFFFFFF */;
Symbol 812 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [40, 40];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("boss2");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = 0;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
hover = [-1, 0];
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
muerto = false;
d = 0;
e = 0;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
hover[1] = hover[1] + 0.2;
if (hover[1] >= 10) {
hover[0] = hover[0] * -1;
hover[1] = 0;
}
_xscale = (xscale * (-dir));
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
}
d++;
if (d == 0) {
e = 0;
}
if (d == 90) {
e = 3;
}
if (d == 95) {
e = 4;
}
if (d == 100) {
e = 3;
}
if (d == 105) {
e = 4;
}
if (d == 110) {
e = 3;
}
if (d == 115) {
e = 4;
}
if (d == 120) {
e = 5;
}
if (d == 125) {
e = 6;
}
if (d == 130) {
e = 5;
}
if (d == 135) {
e = 6;
}
if (d < 90) {
DrawFrame(f + (f ? (foot) : 0), hurt);
}
if (d > 89) {
DrawFrame(e);
}
if (d == 220) {
e = 0;
d = 0;
}
};
Symbol 818 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_gum");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
DrawFrame(f + (f ? (foot) : 0), hurt);
}
d++;
if ((d > 10) && (d < 139)) {
_x = (_x - 2);
_xscale = (xscale * 1);
}
if ((d > 145) && (d < 274)) {
_x = (_x + 2);
_xscale = (xscale * -1);
}
if (d == 277) {
d = 0;
}
};
Symbol 821 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_orbot");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
DrawFrame(f + (f ? (foot) : 0), hurt);
}
d++;
if ((d > 10) && (d < 139)) {
_x = (_x - 3.3);
_xscale = (xscale * 1);
}
if ((d > 145) && (d < 274)) {
_x = (_x + 3.3);
_xscale = (xscale * -1);
}
if (d == 277) {
d = 0;
}
};
Symbol 823 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_hawkstatue");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
muerto = false;
shot = 0;
shotrate = 22;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
_xscale = (xscale * 1);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
}
DrawFrame(f);
shot++;
if (shot == 8) {
_root.playSFX("fireball");
_root.CreateParticle(this._x + 228, this._y + 92, -10, 0, 0);
shotanim = 6;
}
if (shot == shotrate) {
shot = 0;
}
if (shotanim) {
shotanim--;
}
};
Symbol 824 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_crystoise");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
shotrate = 40;
shot = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
DrawFrame(f + (f ? (foot) : 0), hurt);
}
d++;
if (d == 2) {
shot = 0;
}
if ((d > 10) && (d < 139)) {
_x = (_x - 3.3);
_xscale = (xscale * 1);
if (shot == 8) {
_root.playSFX("fireball");
_root.CreateParticle(this._x + 228, this._y + 84, -10, 0, 8);
shotanim = 6;
}
if (shot == shotrate) {
shot = 0;
}
if (shotanim) {
shotanim--;
}
}
if (d == 140) {
shot = 0;
}
if ((d > 145) && (d < 274)) {
if (shot == 8) {
_root.playSFX("fireball");
_root.CreateParticle(this._x + 305, this._y + 84, 10, 0, 8);
shotanim = 6;
}
if (shot == shotrate) {
shot = 0;
}
if (shotanim) {
shotanim--;
}
_x = (_x + 3.3);
_xscale = (xscale * -1);
}
if (d == 277) {
shot = 0;
d = 0;
}
shot++;
};
Symbol 825 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [40, 40];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_gumrusch");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
DrawFrame(f + (f ? (foot) : 0), hurt);
}
d++;
if ((d > 10) && (d < 369)) {
_x = (_x - 1);
_xscale = (xscale * 1);
}
if ((d > 365) && (d < 724)) {
_x = (_x + 1);
_xscale = (xscale * -1);
}
if (d == 727) {
d = 0;
}
};
Symbol 826 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_icetar");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
DrawFrame(f + (f ? (foot) : 0), hurt);
}
d++;
if ((d > 10) && (d < 114)) {
_x = (_x - 4);
_xscale = (xscale * 1);
}
if ((d > 119) && (d < 223)) {
_x = (_x + 4);
_xscale = (xscale * -1);
}
if ((d > 10) && (d < 55)) {
_y = (_y - 1);
}
if ((d > 60) && (d < 105)) {
_y = (_y + 1);
}
if ((d > 110) && (d < 155)) {
_y = (_y - 1);
}
if ((d > 160) && (d < 205)) {
_y = (_y + 1);
}
if (d == 222) {
d = 0;
}
};
Symbol 827 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_lostsoul");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
DrawFrame(f + (f ? (foot) : 0), hurt);
}
d++;
if ((d > 10) && (d < 114)) {
_x = (_x - 3.5);
_xscale = (xscale * 1);
}
if ((d > 119) && (d < 223)) {
_x = (_x + 3.5);
_xscale = (xscale * -1);
}
if ((d > 10) && (d < 55)) {
_y = (_y - 0.7);
}
if ((d > 60) && (d < 105)) {
_y = (_y + 0.7);
}
if ((d > 110) && (d < 155)) {
_y = (_y - 0.7);
}
if ((d > 160) && (d < 205)) {
_y = (_y + 0.7);
}
if (d == 222) {
d = 0;
}
};
Symbol 828 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 26];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_hindalarrskeleton");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
DrawFrame(f + (f ? (foot) : 0), hurt);
}
d++;
if (d < 15) {
_x = (_x - 1);
_xscale = (xscale * 1);
} else if (d < 30) {
_x = (_x - 2);
_xscale = (xscale * 1);
} else if (d < 60) {
_x = (_x - 3);
_xscale = (xscale * 1);
} else if (d < 80) {
_x = (_x - 4);
_xscale = (xscale * 1);
} else if (d < 100) {
_x = (_x - 5);
_xscale = (xscale * 1);
} else if (d < 110) {
_x = (_x + 0.1);
} else if (d < 120) {
_x = (_x + 1);
_xscale = (xscale * -1);
} else if (d < 135) {
_x = (_x + 1);
_xscale = (xscale * -1);
} else if (d < 145) {
_x = (_x + 2);
_xscale = (xscale * -1);
} else if (d < 175) {
_x = (_x + 3);
_xscale = (xscale * -1);
} else if (d < 195) {
_x = (_x + 4);
_xscale = (xscale * -1);
} else if (d < 215) {
_x = (_x + 5);
_xscale = (xscale * -1);
} else if (d < 217) {
_x = (_x - 1);
_xscale = (xscale * -1);
}
if (d == 220) {
d = 0;
}
};
Symbol 829 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_turret");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
muerto = false;
shot = 0;
shotrate = 22;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
_xscale = (xscale * -1);
c++;
if (c >= 8) {
c = 0;
f = !f;
if (f) {
foot = !foot;
}
}
DrawFrame(f);
shot++;
if (shot == 8) {
_root.playSFX("fireball");
_root.CreateParticle(this._x + 298, this._y + 92, 10, 0, 6);
shotanim = 6;
}
if (shot == shotrate) {
shot = 0;
}
if (shotanim) {
shotanim--;
}
};
Symbol 830 MovieClip Frame 1
function LoadSheets(s) {
sheet = flash.display.BitmapData.loadBitmap(s);
isheet = flash.display.BitmapData.loadBitmap(s);
var _local2 = 0;
while (_local2 < sheet.height) {
var _local1 = 0;
while (_local1 < sheet.width) {
isheet.setPixel(_local1, _local2, 16777215 - isheet.getPixel(_local1, _local2));
_local1++;
}
_local2++;
}
}
function DrawFrame(F, inverse) {
bmp.copyPixels((inverse ? (isheet) : (sheet)), new flash.geom.Rectangle(F * SIZE[0], 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
cframe = F;
}
SIZE = [20, 20];
bmp = new flash.display.BitmapData(SIZE[0], SIZE[1], true);
LoadSheets("s_turret_roof");
bmp.copyPixels(sheet, new flash.geom.Rectangle(0, 0, SIZE[0], SIZE[1]), new flash.geom.Point(0, 0));
this.createEmptyMovieClip("box", 100);
box.attachBitmap(bmp, 50);
box._x = -20;
_width = (_width * 2);
_height = (_height * 2);
phase = 0;
xscale = _xscale;
(foot = 1);
(gun = 0);
(c = 0);
(f = 0);
(FR = [0, 0]);
d = 0;
e = 0;
shotrate = 39;
shot = 0;
muerto = false;
onEnterFrame = function () {
box._y = box._y + (hover[0] * 0.2);
c++;
if (c == 20) {
f = 0;
}
if (c == 40) {
f = 1;
}
if (c == 41) {
c = 0;
}
DrawFrame(f);
d++;
if (d == 2) {
shot = 0;
}
if ((d > 10) && (d < 139)) {
_x = (_x - 3.3);
_xscale = (xscale * 1);
if (shot == 8) {
_root.playSFX("fireball");
_root.CreateParticle(this._x + 238, this._y + 99, 0, 10, 2);
shotanim = 6;
}
if (shot == shotrate) {
shot = 0;
}
if (shotanim) {
shotanim--;
}
}
if (d == 140) {
shot = 0;
}
if ((d > 145) && (d < 274)) {
if (shot == 8) {
_root.playSFX("fireball");
_root.CreateParticle(this._x + 289, this._y + 99, 0, 10, 2);
shotanim = 6;
}
if (shot == shotrate) {
shot = 0;
}
if (shotanim) {
shotanim--;
}
_x = (_x + 3.3);
_xscale = (xscale * -1);
}
if (d == 277) {
shot = 0;
d = 0;
}
shot++;
};
Symbol 832 MovieClip Frame 1
onEnterFrame = function () {
if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (2);
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "HalfBody";
_parent.desc.desc_enemy = "Is a failed experiment, Dr.Kunas look for a HeadDog and this come out. There still some of them around the island, they are week but has an strong attack. HP: 1-3 , ATTACK: Bite: 1-3, WEAKNESS: ALL";
} else {
_parent.desc.enemyname = "MedioCuerpo";
_parent.desc.desc_enemy = "Es un experimento fallido para lograr un CabezaPerro, aun asi alguno deambulan por la isla, son debiles pero tienen fuerte ataque. HP: 1-3 , ATAQUE: Morder: 1-3, DEBILIDAD: Todo";
}
stop();
Symbol 832 MovieClip Frame 2
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (1);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (3);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "HeadDog";
_parent.desc.desc_enemy = "HeadDog is Dr.Kunas Best Friend. They love gardens as much of a good bite. ________________________________________________________ HP: 2-5 , ATTACK: Bite: 1, WEAKNESS: Magnum";
} else {
_parent.desc.enemyname = "CabezaPerro";
_parent.desc.desc_enemy = "CabezaPerro es el mejor amigo de Dr.Kunas. Aman los jardines tanto como una buena mordida. _______________________________________________________ HP: 2-5 , ATAQUE: Morder: 1, DEBILIDAD: Magnum";
}
stop();
Symbol 832 MovieClip Frame 3
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (2);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (4);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "Statueda";
_parent.desc.desc_enemy = "Take one rock from Rapa Nui and mix with a HalfBody and you get a nice Statueda. ________________________________________________________ HP: Invulnerable , ATTACK: Firespit: 1, WEAKNESS: None";
} else {
_parent.desc.enemyname = "Estatueda";
_parent.desc.desc_enemy = "Toma una roca desde Rapa Nui y mezclala con un MitadCuerpo y obtienes una Estatueda. ______________________________________________________ HP: Invulnerable , ATAQUE: Escupefuego: 1, DEBILIDAD: Ninguna";
}
Symbol 832 MovieClip Frame 4
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (3);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (5);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "Spitter";
_parent.desc.desc_enemy = "Dr.Kunas assitant was a nice guy. He gets late one day and the Dr. gets mad. ______________________________________________________ HP: 3-6 , ATTACK: Spit: 1-2, WEAKNESS: Laser Gun";
} else {
_parent.desc.enemyname = "Escupidor";
_parent.desc.desc_enemy = "El asistente del Dr.Kunas era un bun tipo. Llego tarde un dia y el Dr. se enojo. ______________________________________________________ HP: 3-6, ATAQUE: Escupo: 1-2, DEBILIDAD: Pistola Laser";
}
Symbol 832 MovieClip Frame 5
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (4);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (6);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "BigThing";
_parent.desc.desc_enemy = "Is a \u00B4Big Thing\u00B4 said Dr.Kunas when he see it. Big, slow and powerful a real beast. _______________________________________________________ HP: 6-12 , ATTACK: Crush: 1-3, WEAKNESS: Trident";
} else {
_parent.desc.enemyname = "Gran Cosa";
_parent.desc.desc_enemy = "Es una \u00B4Gran Cosa\u00B4 dijo el Dr.Kunas cuando lo vio. Grande, lento y poderosa esta bestia. ________________________________________________________ HP: 6-12, ATAQUE: Aplastar: 1-3, DEBILIDAD: Tridente";
}
Symbol 832 MovieClip Frame 6
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (5);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (7);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "Mr.Hand";
_parent.desc.desc_enemy = "A really nice guy, he is too friendly and want to say hello to everyone. _______________________________________________________ HP: 2-6 , ATTACK: Handshake: 1-3, WEAKNESS: All";
} else {
_parent.desc.enemyname = "Sr.Mano";
_parent.desc.desc_enemy = "Realmente un buen tipo, es muy amisto y quiere saludar a todos. ________________________________________________________ HP: 2-6, ATAQUE: Apreton: 1-3, DEBILIDAD: All";
}
Symbol 832 MovieClip Frame 7
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (6);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (8);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "GhostZel";
_parent.desc.desc_enemy = "Is a long and beatiful blond hair, she is also a flying dead head. _______________________________________________________ HP: Invulnerable , ATTACK: Hairpunch: 1, WEAKNESS: None";
} else {
_parent.desc.enemyname = "FantasmaZel";
_parent.desc.desc_enemy = "Es una larga y hermosa cabellera rubia, ella tambien es una cabeza voladora muerta. ________________________________________________________ HP: Invulberable, ATAQUE: Golpe De Pelo: 1, DEBILIDAD: Ninguna";
}
Symbol 832 MovieClip Frame 8
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (7);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (9);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "Doll-dead-y";
_parent.desc.desc_enemy = "A cute doll made of cotton. Be aware he moves in a strange way. _______________________________________________________ HP: 6-12 , ATTACK: 1-3, WEAKNESS: Hand Attack";
} else {
_parent.desc.enemyname = "Peponilla";
_parent.desc.desc_enemy = "Una tierna pepona hecha de algodon. Cuidado con sus raros movimientos. ________________________________________________________ HP: 6-12, ATAQUE: 1-3, DEBILIDAD: Ataques de mano";
}
Symbol 832 MovieClip Frame 9
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (8);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (10);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "CheesyHead";
_parent.desc.desc_enemy = "Another Dr.Kunas experiment, he takes one HalfBody and Cheese and mix it. ________________________________________________________ HP: 2-5 , ATTACK: CheesePunch: 1-2, WEAKNESS: All";
} else {
_parent.desc.enemyname = "EstatueQuesa";
_parent.desc.desc_enemy = "Otro experimento del Dr.Kunas, el tomo un MedioCuerpo y Queso y los mezclo. ______________________________________________________ HP: 2-5 , ATAQUE: EscupeQueso: 1-2, DEBILIDAD: Todas";
}
Symbol 832 MovieClip Frame 10
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (9);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (11);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "Blood Spitter";
_parent.desc.desc_enemy = "Some HeadDogs take this form and lives on some roof of the castle. Creepy, ah? ________________________________________________________ HP: 1-3 , ATTACK: Bloodspit: 1, WEAKNESS: All";
} else {
_parent.desc.enemyname = "Escupe Sangre";
_parent.desc.desc_enemy = "Algunos CabezaPerro tomaron esta forma y viven en los techos. Escalofriante no?. ______________________________________________________ HP: 1-3 , ATAQUE: EscupeSangre: 1, DEBILIDAD: Todas";
}
Symbol 832 MovieClip Frame 11
d = 0;
onEnterFrame = function () {
d++;
if (d > 10) {
if (Key.isDown(KEYS.LEFT)) {
gotoAndStop (10);
} else if (Key.isDown(KEYS.RIGHT)) {
gotoAndStop (12);
}
}
};
if (_root.lang == "en") {
_parent.desc.enemyname = "Dr.Kunas";
_parent.desc.desc_enemy = "Dr.Kunas is the main Boss. The evil scientist has laser powers and bombs. ________________________________________________________ HP: 40 , ATTACK: (Laser: 1) (Bombs: 3), WEAKNESS: Trident";
} else {
_parent.desc.enemyname = "Dr.Kunas";
_parent.desc.desc_enemy = "Dr.Kunas es el jefe principal. El malvado cientefico tiene lasers y bombas. ______________________________________________________ HP: 40 , ATAQUE: (Laser: 1)(Bombas: 3), DEBILIDAD: Tridente";
}
stop();
Symbol 838 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 1
tx_credits.textColor = 16777215 /* 0xFFFFFF */;
stop();
Symbol 842 MovieClip Frame 2
tx_credits.textColor = 16776960 /* 0xFFFF00 */;