Section 1
//Baldoza (Baldozas.Baldoza)
package Baldozas {
import flash.display.*;
public class Baldoza extends MovieClip {
private var smb:Simbolo;
private var valor:int;
public function Baldoza(_arg1:int=0){
addFrameScript(22, frame23);
if (_arg1 == 0){
_arg1 = (int((Math.random() * 6)) + 1);
};
this.valor = _arg1;
this.gotoAndStop((Math.floor((Math.random() * 6)) + 1));
this.smb = new Simbolo();
this.smb.x = 25;
this.smb.y = 25;
this.addChild(this.smb);
this.smb.gotoAndStop(valor);
}
function frame23(){
stop();
}
public function romper():void{
switch (this.valor){
case 1:
this.smb.gotoAndPlay("brillo1");
break;
case 2:
this.smb.gotoAndPlay("brillo2");
break;
case 3:
this.smb.gotoAndPlay("brillo3");
break;
case 4:
this.smb.gotoAndPlay("brillo4");
break;
case 5:
this.smb.gotoAndPlay("brillo5");
break;
case 6:
this.smb.gotoAndPlay("brillo6");
break;
case 7:
this.smb.gotoAndPlay("brillo7");
break;
};
this.gotoAndPlay("romper");
}
}
}//package Baldozas
Section 2
//Pared (Baldozas.Pared)
package Baldozas {
import flash.display.*;
public class Pared extends MovieClip {
private var smb:Simbolo;
private var valor:int;
public function Pared(_arg1:int=1){
addFrameScript(22, frame23);
this.valor = _arg1;
this.gotoAndStop((Math.floor((Math.random() * 6)) + 1));
this.smb = new Simbolo();
this.smb.x = 33;
this.smb.y = 17;
if (valor < 8){
this.addChild(this.smb);
this.smb.gotoAndStop(valor);
};
}
function frame23(){
stop();
}
public function romper():void{
switch (this.valor){
case 8:
break;
case 9:
break;
case 1:
this.smb.gotoAndPlay("brillo1");
break;
case 2:
this.smb.gotoAndPlay("brillo2");
break;
case 3:
this.smb.gotoAndPlay("brillo3");
break;
case 4:
this.smb.gotoAndPlay("brillo4");
break;
case 5:
this.smb.gotoAndPlay("brillo5");
break;
case 6:
this.smb.gotoAndPlay("brillo6");
break;
case 7:
this.smb.gotoAndPlay("brillo7");
break;
};
this.gotoAndPlay("romper");
}
}
}//package Baldozas
Section 3
//Simbolo (Baldozas.Simbolo)
package Baldozas {
import flash.display.*;
public class Simbolo extends MovieClip {
public function Simbolo(){
addFrameScript(17, frame18, 27, frame28, 38, frame39, 49, frame50, 60, frame61, 71, frame72, 82, frame83);
}
function frame72(){
stop();
}
function frame18(){
stop();
}
function frame83(){
stop();
}
function frame28(){
stop();
}
function frame39(){
stop();
}
function frame50(){
stop();
}
function frame61(){
stop();
}
}
}//package Baldozas
Section 4
//Suelo (Baldozas.Suelo)
package Baldozas {
import flash.display.*;
public class Suelo extends MovieClip {
public function Suelo(){
this.gotoAndStop((Math.floor((Math.random() * 6)) + 1));
}
}
}//package Baldozas
Section 5
//esferaSimbolo (Esferas.esferaSimbolo)
package Esferas {
import flash.display.*;
public class esferaSimbolo extends MovieClip {
private var valor:int;
public function esferaSimbolo(_arg1:int=0){
addFrameScript(19, frame20);
if (_arg1 == 0){
_arg1 = (int((Math.random() * 6)) + 1);
};
this.valor = _arg1;
this.gotoAndStop(this.valor);
}
function frame20(){
stop();
}
public function cojer():void{
this.gotoAndPlay("cojer");
}
}
}//package Esferas
Section 6
//Tipito (Player.Tipito)
package Player {
import flash.display.*;
public class Tipito extends MovieClip {
private const VEL:int = 4;
private const DIST:int = 50;
private var y1:int;
private var direccion:String;
private var listuli:Boolean;
private var x1:int;
private var x0:int;
private var y0:int;
public function Tipito(){
addFrameScript(5, frame6, 11, frame12, 17, frame18, 23, frame24, 39, frame40, 55, frame56, 71, frame72, 87, frame88);
this.listuli = true;
x0 = x;
y0 = y;
x1 = x;
y1 = y;
direccion = "abajo";
gotoAndStop(direccion);
}
public function apuntarAbajo():void{
if (listuli){
direccion = "abajo";
gotoAndStop(direccion);
};
}
function frame72(){
stop();
}
public function moverIzquierda(_arg1:int=50){
if (listuli){
x0 = x;
y0 = y;
x1 = (x0 - _arg1);
y1 = y0;
direccion = "izquierda";
gotoAndPlay(direccion);
listuli = false;
};
}
function frame88(){
stop();
}
function frame12(){
gotoAndPlay("izquierda");
}
public function apuntarDerecha():void{
if (listuli){
direccion = "derecha";
gotoAndStop(direccion);
};
}
function frame6(){
gotoAndPlay("derecha");
}
public function moverAbajo(_arg1:int=50){
if (listuli){
x0 = x;
y0 = y;
x1 = x0;
y1 = (y0 + _arg1);
direccion = "abajo";
gotoAndPlay(direccion);
listuli = false;
};
}
function frame18(){
gotoAndPlay("abajo");
}
public function apuntarArriba():void{
if (listuli){
direccion = "arriba";
gotoAndStop(direccion);
};
}
function frame24(){
gotoAndPlay("arriba");
}
public function get listo():Boolean{
return (listuli);
}
public function moverArriba(_arg1:int=50){
if (listuli){
x0 = x;
y0 = y;
x1 = x0;
y1 = (y0 - _arg1);
direccion = "arriba";
gotoAndPlay(direccion);
listuli = false;
};
}
public function caer(_arg1:String):void{
gotoAndPlay(("caer" + _arg1));
direccion = "cayendo";
listuli = false;
}
public function moverDerecha(_arg1:int=50){
if (listuli){
x0 = x;
y0 = y;
x1 = (x0 + _arg1);
y1 = y0;
direccion = "derecha";
gotoAndPlay(direccion);
listuli = false;
};
}
function frame40(){
stop();
}
public function apuntarIzquierda():void{
if (listuli){
direccion = "izquierda";
gotoAndStop(direccion);
};
}
function frame56(){
stop();
}
public function accion():void{
if (!listuli){
switch (direccion){
case "derecha":
x = (x + VEL);
if (x >= (x1 - 4)){
x = x1;
listuli = true;
gotoAndStop(direccion);
};
break;
case "izquierda":
x = (x - VEL);
if (x <= (x1 + 4)){
x = x1;
listuli = true;
gotoAndStop(direccion);
};
break;
case "arriba":
y = (y - VEL);
if (y <= (y1 + 4)){
y = y1;
listuli = true;
gotoAndStop(direccion);
};
break;
case "abajo":
y = (y + VEL);
if (y >= (y1 - 4)){
y = y1;
listuli = true;
gotoAndStop(direccion);
};
break;
};
};
}
}
}//package Player
Section 7
//candado_48 (temp0001_fla.candado_48)
package temp0001_fla {
import flash.display.*;
public dynamic class candado_48 extends MovieClip {
public function candado_48(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package temp0001_fla
Section 8
//fgjpre_as3_bomb_preloader_4 (temp0001_fla.fgjpre_as3_bomb_preloader_4)
package temp0001_fla {
import flash.display.*;
public dynamic class fgjpre_as3_bomb_preloader_4 extends MovieClip {
public var loaderbar:MovieClip;
public function fgjpre_as3_bomb_preloader_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package temp0001_fla
Section 9
//MainTimeline (temp0001_fla.MainTimeline)
package temp0001_fla {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var LVL:LVLlauncher;
public var restart:Boolean;
public var nvbl:Array;
public var btnLogo:SimpleButton;
public var meda:Medalla;
public var btnWT:SimpleButton;
public var hudPlata:TextField;
public var so:SharedObject;
public var i:int;
public var j:int;
public var nivel1:nivel;
public var hudOro:TextField;
public var preloader:Preloader;
public var txtSonido:TextField;
public var gameLoaded:Boolean;
public var btnSalir:SimpleButton;
public var hudMov:TextField;
public var hudBronce:TextField;
public var txtCalidad:TextField;
public var btnDenuevo:SimpleButton;
public var btnNo:SimpleButton;
public var Oros:Array;
public var medallas:Array;
public var clipPrueba:MovieClip;
public var btn1:SimpleButton;
public var btn2:SimpleButton;
public var btnCalidad:SimpleButton;
public var btn4:SimpleButton;
public var btn6:SimpleButton;
public var btn7:SimpleButton;
public var btn9:SimpleButton;
public var menu:Boolean;
public var btn8:SimpleButton;
public var btnSonido:SimpleButton;
public var btn3:SimpleButton;
public var muted:Boolean;
public var btnMoreGames:SimpleButton;
public var btn5:SimpleButton;
public var btn11:SimpleButton;
public var btn12:SimpleButton;
public var btn14:SimpleButton;
public var btn16:SimpleButton;
public var btn10:SimpleButton;
public var btn18:SimpleButton;
public var btn19:SimpleButton;
public var btn13:SimpleButton;
public var btn15:SimpleButton;
public var btn17:SimpleButton;
public var msg:MovieClip;
public var candado:trabado;
public var nvme:Array;
public var btn20:SimpleButton;
public var btn21:SimpleButton;
public var btn22:SimpleButton;
public var btn23:SimpleButton;
public var btn24:SimpleButton;
public var btn25:SimpleButton;
public var nvbtn:Array;
public var btnPlay:SimpleButton;
public var nivelActivo:int;
public var btnBorrar:SimpleButton;
public var btnSi:SimpleButton;
public var Mganada:int;
public var cantOros:int;
public var candados:Array;
public var btnInv:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 265, frame266, 266, frame267, 267, frame268, 268, frame269, 269, frame270, 270, frame271, 271, frame272, 272, frame273, 273, frame274, 345, frame346, 346, frame347, 347, frame348, 348, frame349, 357, frame358, 374, frame375, 375, frame376, 376, frame377, 404, frame405, 405, frame406, 406, frame407, 417, frame418, 425, frame426, 426, frame427);
}
function frame272(){
gotoAndPlay(1, "Scene 1");
}
function frame273(){
btnPlay.removeEventListener(MouseEvent.CLICK, fnPlay);
btnCalidad.removeEventListener(MouseEvent.CLICK, fnCalidad);
btnSonido.removeEventListener(MouseEvent.CLICK, fnSonido);
btnBorrar.removeEventListener(MouseEvent.CLICK, fnBorrar);
btnMoreGames.removeEventListener(MouseEvent.CLICK, fnFGJ);
}
function frame274(){
stop();
btnSi.addEventListener(MouseEvent.CLICK, fnSi);
btnNo.addEventListener(MouseEvent.CLICK, fnNo);
}
public function fnPlay(_arg1:MouseEvent):void{
play();
}
function frame2(){
gameLoaded = false;
this.stop();
preloader.stop();
preloader.logo_mc.stop();
preloader.logo_mc.loaderbar.stop();
preloader.addEventListener(Event.ENTER_FRAME, updatePreloader, false, 0, true);
preloader.link_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoArc, false);
}
function frame1(){
stage.showDefaultContextMenu = false;
stage.quality = StageQuality.HIGH;
stage.stageFocusRect = false;
}
function frame3(){
btnInv.addEventListener(MouseEvent.MOUSE_DOWN, gotoArc, false);
}
public function fnFGJWT(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.freegamesjungle.com/mystic_temple_walkthrough.html"), "_blank");
}
public function fnSalir1(_arg1:MouseEvent):void{
this.removeEventListener(MouseEvent.CLICK, apreto);
btnSonido.removeEventListener(MouseEvent.CLICK, fnSonido);
btnSalir.removeEventListener(MouseEvent.CLICK, fnSalir1);
sacarCandados();
gotoAndPlay(2, "Scene 2");
}
public function apreto(_arg1:MouseEvent):void{
if (((!(msg)) || (msg.listo))){
i = 1;
while (i < 26) {
if (xySobre(nvbtn[i], _arg1.stageX, _arg1.stageY)){
if (nvbl[i] == 1){
nivelActivo = i;
} else {
if (i == 25){
if (cantOros < 15){
msg = new WTMsgBox(this, (("You have " + String(cantOros)) + " gold medals, collect at least 15 of them to unlock this room."), "Final Room");
} else {
msg = new WTMsgBox(this, "Unlock this room reaching the proper exit in the previous one!", "Final Room");
};
} else {
msg = new WTMsgBox(this, "Unlock this room reaching the proper exit in the previous one!", "Room Locked!");
};
};
};
i++;
};
};
if (nivelActivo != 0){
sacarCandados();
nivel1 = LVL.dalePower(nivelActivo, clipPrueba);
play();
};
}
public function fnNo(_arg1:MouseEvent):void{
btnSi.removeEventListener(MouseEvent.CLICK, fnSi);
btnNo.removeEventListener(MouseEvent.CLICK, fnNo);
gotoAndPlay(2, "Scene 2");
}
function frame406(){
this.addEventListener(Event.ENTER_FRAME, accion);
stage.addEventListener(KeyboardEvent.KEY_DOWN, tecla);
btnSonido.addEventListener(MouseEvent.CLICK, fnSonido);
btnDenuevo.addEventListener(MouseEvent.CLICK, fnDenuevo);
btnSalir.addEventListener(MouseEvent.CLICK, fnSalir);
btnWT.addEventListener(MouseEvent.CLICK, fnFGJWT);
stop();
}
function frame407(){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, tecla);
btnSonido.removeEventListener(MouseEvent.CLICK, fnSonido);
btnDenuevo.removeEventListener(MouseEvent.CLICK, fnDenuevo);
btnSalir.removeEventListener(MouseEvent.CLICK, fnSalir);
btnWT.removeEventListener(MouseEvent.CLICK, fnFGJWT);
}
public function sacarCandados():void{
i = 0;
while (i < medallas.length) {
this.removeChild(medallas[i]);
i++;
};
medallas = new Array();
i = 1;
while (i < 26) {
if (this.contains(candados[i])){
this.removeChild(candados[i]);
};
i++;
};
}
function frame405(){
if (nivelActivo == 1){
msg = new WTMsgBox(this, "Use the arrow keys to move. Collect all spheres to go into the next room.", "First Steps:");
};
if (nivelActivo == 2){
msg = new WTMsgBox(this, "Each way out will unlock a different room.", "Multiple Ways:");
};
if ((((((nivelActivo == 3)) || ((nivelActivo == 14)))) || ((nivelActivo == 6)))){
msg = new WTMsgBox(this, "Sometimes you need to break some walls to reach the exit.", "Breakable Walls:");
};
}
public function fnSonido(_arg1:MouseEvent):void{
if (muted){
SoundMixer.soundTransform = new SoundTransform(1);
muted = false;
txtSonido.text = "On";
} else {
SoundMixer.soundTransform = new SoundTransform(0);
muted = true;
txtSonido.text = "Off";
};
}
function frame418(){
this.removeEventListener(Event.ENTER_FRAME, accion);
if (((!(restart)) && (!(menu)))){
if (nivel1.salida == "caida"){
msg = new WTMsgBox(this, "Suicide is not an option here, golden arrows are the only way out!", "Oops!");
} else {
if (nivelActivo != 25){
msg = new WTMsgMedal(this, nivel1.mov, Mganada);
};
};
};
}
public function fnDenuevo(_arg1:MouseEvent):void{
restart = true;
play();
}
function frame426(){
if (((!(msg)) || (msg.listo))){
if (restart){
play();
} else {
if (menu){
gotoAndPlay(2, "Scene 2");
menu = false;
} else {
gotoAndPlay(2);
};
};
} else {
gotoAndPlay(79);
};
}
public function tecla(_arg1:KeyboardEvent){
if (((!(msg)) || (msg.listo))){
if (_arg1.keyCode == 32){
restart = true;
play();
};
switch (_arg1.keyCode){
case 38:
nivel1.arriba();
break;
case 40:
nivel1.abajo();
break;
case 37:
nivel1.izquierda();
break;
case 39:
nivel1.derecha();
break;
};
hudMov.text = String(nivel1.mov);
};
}
function frame427(){
gotoAndPlay(31);
}
public function fnBorrar(_arg1:MouseEvent):void{
gotoAndPlay(7);
}
public function fnSi(_arg1:MouseEvent):void{
btnSi.removeEventListener(MouseEvent.CLICK, fnSi);
btnNo.removeEventListener(MouseEvent.CLICK, fnNo);
so.data.saved = "NO";
play();
}
public function fnCalidad(_arg1:MouseEvent):void{
if (stage.quality == "HIGH"){
txtCalidad.text = "Low";
stage.quality = StageQuality.LOW;
} else {
txtCalidad.text = "High";
stage.quality = StageQuality.HIGH;
};
}
function frame347(){
if ((((so.data.saved == null)) || ((so.data.saved == undefined)))){
so.data.saved = "NO";
so.flush();
};
if (so.data.saved == "NO"){
so.data.saved = "SI";
so.flush();
so.data.n1 = 1;
so.data.n2 = 0;
so.data.n3 = 0;
so.data.n4 = 0;
so.data.n5 = 0;
so.data.n6 = 0;
so.data.n7 = 0;
so.data.n8 = 0;
so.data.n9 = 0;
so.data.n10 = 0;
so.data.n11 = 0;
so.data.n12 = 0;
so.data.n13 = 0;
so.data.n14 = 0;
so.data.n15 = 0;
so.data.n16 = 0;
so.data.n17 = 0;
so.data.n18 = 0;
so.data.n19 = 0;
so.data.n20 = 0;
so.data.n21 = 0;
so.data.n22 = 0;
so.data.n23 = 0;
so.data.n24 = 0;
so.data.n25 = 0;
so.data.m1 = 0;
so.data.m2 = 0;
so.data.m3 = 0;
so.data.m4 = 0;
so.data.m5 = 0;
so.data.m6 = 0;
so.data.m7 = 0;
so.data.m8 = 0;
so.data.m9 = 0;
so.data.m10 = 0;
so.data.m11 = 0;
so.data.m12 = 0;
so.data.m13 = 0;
so.data.m14 = 0;
so.data.m15 = 0;
so.data.m16 = 0;
so.data.m17 = 0;
so.data.m18 = 0;
so.data.m19 = 0;
so.data.m20 = 0;
so.data.m21 = 0;
so.data.m22 = 0;
so.data.m23 = 0;
so.data.m24 = 0;
so.data.m25 = 0;
so.flush();
};
nvbl = new Array(1, so.data.n1, so.data.n2, so.data.n3, so.data.n4, so.data.n5, so.data.n6, so.data.n7, so.data.n8, so.data.n9, so.data.n10, so.data.n11, so.data.n12, so.data.n13, so.data.n14, so.data.n15, so.data.n16, so.data.n17, so.data.n18, so.data.n19, so.data.n20, so.data.n21, so.data.n22, so.data.n23, so.data.n24, so.data.n25);
nvme = new Array(1, so.data.m1, so.data.m2, so.data.m3, so.data.m4, so.data.m5, so.data.m6, so.data.m7, so.data.m8, so.data.m9, so.data.m10, so.data.m11, so.data.m12, so.data.m13, so.data.m14, so.data.m15, so.data.m16, so.data.m17, so.data.m18, so.data.m19, so.data.m20, so.data.m21, so.data.m22, so.data.m23, so.data.m24, so.data.m25);
restart = false;
menu = false;
Oros = new Array(50, 18, 17, 24, 26, 21, 26, 29, 32, 57, 49, 51, 34, 51, 42, 46, 47, 51, 31, 63, 51, 40, 40, 70, 50, 56);
nvbtn = new Array(this.btn1, this.btn1, this.btn2, this.btn3, this.btn4, this.btn5, this.btn6, this.btn7, this.btn8, this.btn9, this.btn10, this.btn11, this.btn12, this.btn13, this.btn14, this.btn15, this.btn16, this.btn17, this.btn18, this.btn19, this.btn20, this.btn21, this.btn22, this.btn23, this.btn24, this.btn25);
candados = new Array(28);
medallas = new Array();
i = 1;
while (i < 26) {
candado = new trabado();
candado.x = this.nvbtn[i].x;
candado.y = this.nvbtn[i].y;
candados[i] = candado;
candado = null;
i++;
};
candado = new trabado();
candado.x = -50;
candado.y = 200;
candados[26] = candado;
candado = null;
nivelActivo = 0;
}
function frame348(){
SoundMixer.stopAll();
nivelActivo = 0;
}
function frame349(){
so.data.m1 = nvme[1];
so.data.m2 = nvme[2];
so.data.m3 = nvme[3];
so.data.m4 = nvme[4];
so.data.m5 = nvme[5];
so.data.m6 = nvme[6];
so.data.m7 = nvme[7];
so.data.m8 = nvme[8];
so.data.m9 = nvme[9];
so.data.m10 = nvme[10];
so.data.m11 = nvme[11];
so.data.m12 = nvme[12];
so.data.m13 = nvme[13];
so.data.m14 = nvme[14];
so.data.m15 = nvme[15];
so.data.m16 = nvme[16];
so.data.m17 = nvme[17];
so.data.m18 = nvme[18];
so.data.m19 = nvme[19];
so.data.m20 = nvme[20];
so.data.m21 = nvme[21];
so.data.m22 = nvme[22];
so.data.m23 = nvme[23];
so.data.m24 = nvme[24];
so.data.m25 = nvme[25];
so.flush();
}
function frame346(){
btnLogo.removeEventListener(MouseEvent.CLICK, fnFGJ);
gotoAndPlay(2, "Scene 2");
}
function frame358(){
if (muted){
txtSonido.text = "Off";
} else {
txtSonido.text = "On";
};
cantOros = 0;
i = 1;
while (i < 26) {
if (this.nvbl[i] == 0){
this.addChildAt(candados[i], this.getChildIndex(btnMoreGames));
};
if (this.nvme[i] != 0){
meda = new Medalla(1, this.nvme[i]);
meda.x = (nvbtn[i].x + 10);
meda.y = (nvbtn[i].y - 20);
this.addChildAt(meda, this.getChildIndex(btnMoreGames));
medallas.push(meda);
meda = null;
};
if ((((this.nvme[i] == 1)) || ((this.nvme[i] == 4)))){
cantOros++;
};
if (this.nvbl[i] == 2){
if (i != 25){
this.addChildAt(candados[i], this.getChildIndex(btnMoreGames));
candados[i].gotoAndPlay(2);
nvbl[i] = 1;
} else {
if (i == 25){
if (cantOros >= 15){
this.addChildAt(candados[i], this.getChildIndex(btnMoreGames));
candados[i].gotoAndPlay(2);
this.nvbl[i] = 1;
so.data.n25 = 1;
so.flush();
} else {
this.addChildAt(candados[i], this.getChildIndex(btnMoreGames));
this.nvbl[i] = 2;
so.data.n25 = 2;
so.flush();
};
};
};
};
i++;
};
}
public function fnSalir(_arg1:MouseEvent):void{
menu = true;
play();
}
public function updatePreloader(_arg1:Event):void{
var _local2:Number;
_local2 = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
if (_local2 != 100){
preloader.logo_mc.loaderbar.gotoAndStop(int(_local2));
} else {
if (!gameLoaded){
gameLoaded = true;
preloader.removeEventListener(Event.ENTER_FRAME, updatePreloader, false);
this.play();
};
};
}
function frame376(){
this.removeEventListener(MouseEvent.CLICK, apreto);
btnSonido.removeEventListener(MouseEvent.CLICK, fnSonido);
btnSalir.removeEventListener(MouseEvent.CLICK, fnSalir1);
btnMoreGames.removeEventListener(MouseEvent.CLICK, fnFGJ);
}
function frame377(){
hudOro.text = (String(Oros[nivelActivo]) + " moves");
hudPlata.text = (String((Oros[nivelActivo] + 2)) + " moves");
hudBronce.text = (String((Oros[nivelActivo] + 7)) + " moves");
if (muted){
txtSonido.text = "Off";
} else {
txtSonido.text = "On";
};
if (restart){
restart = false;
nivel1 = LVL.dalePower(nivelActivo, clipPrueba);
play();
};
}
public function xySobre(_arg1:DisplayObject, _arg2:int, _arg3:int):Boolean{
var _local4:Number;
var _local5:Number;
_local4 = (_arg1.x - _arg1.width);
_local5 = (_arg1.y - _arg1.height);
return ((((((((_arg2 > _local4)) && ((_arg3 > _local5)))) && ((_arg2 < (_local4 + (_arg1.width * 2)))))) && ((_arg3 < (_local5 + (_arg1.height * 2))))));
}
function frame375(){
this.addEventListener(MouseEvent.CLICK, apreto);
btnSonido.addEventListener(MouseEvent.CLICK, fnSonido);
btnSalir.addEventListener(MouseEvent.CLICK, fnSalir1);
btnMoreGames.addEventListener(MouseEvent.CLICK, fnFGJ);
stop();
}
public function fnFGJ(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.freegamesjungle.com"), "_blank");
}
function frame266(){
btnInv.removeEventListener(MouseEvent.MOUSE_DOWN, gotoArc, false);
}
function frame267(){
so = SharedObject.getLocal("so");
SoundMixer.soundTransform = new SoundTransform(1);
muted = false;
play();
}
public function accion(_arg1:Event){
stage.focus = this;
nivel1.accion();
if (nivel1.juegoFin){
if (nivel1.salida == "caida"){
play();
} else {
if (nivel1.mov < Oros[nivelActivo]){
Mganada = 4;
} else {
if (nivel1.mov == Oros[nivelActivo]){
Mganada = 1;
} else {
if (nivel1.mov < (Oros[nivelActivo] + 3)){
Mganada = 2;
} else {
if (nivel1.mov < (Oros[nivelActivo] + 8)){
Mganada = 3;
} else {
Mganada = 5;
};
};
};
};
if (nvme[nivelActivo] == 0){
nvme[nivelActivo] = Mganada;
} else {
if (Mganada == 4){
nvme[nivelActivo] = 4;
} else {
if ((((nvme[nivelActivo] > Mganada)) && (!((nvme[nivelActivo] == 4))))){
nvme[nivelActivo] = Mganada;
};
};
};
if (nivelActivo != 25){
LVL.ganaJuego(nivelActivo, nivel1.salida, so, nvbl, this);
} else {
if (nivel1.salida == "derecha"){
msg = new WTMsgBox(this, "You managed to escape from the temple! You have completed the game.", "Congratulations!");
};
play();
};
};
};
}
function frame269(){
SoundMixer.stopAll();
}
function frame268(){
btnPlay.addEventListener(MouseEvent.CLICK, fnPlay);
btnCalidad.addEventListener(MouseEvent.CLICK, fnCalidad);
btnSonido.addEventListener(MouseEvent.CLICK, fnSonido);
btnBorrar.addEventListener(MouseEvent.CLICK, fnBorrar);
btnLogo.addEventListener(MouseEvent.CLICK, fnFGJ);
btnMoreGames.addEventListener(MouseEvent.CLICK, fnFGJ);
if (muted){
txtSonido.text = "Off";
} else {
txtSonido.text = "On";
};
if (stage.quality == "HIGH"){
txtCalidad.text = "High";
} else {
txtCalidad.text = "Low";
};
}
public function gotoArc(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.freegamesjungle.com"), "_blank");
}
function frame270(){
stop();
}
function frame271(){
btnPlay.removeEventListener(MouseEvent.CLICK, fnPlay);
btnCalidad.removeEventListener(MouseEvent.CLICK, fnCalidad);
btnSonido.removeEventListener(MouseEvent.CLICK, fnSonido);
btnBorrar.removeEventListener(MouseEvent.CLICK, fnBorrar);
btnMoreGames.removeEventListener(MouseEvent.CLICK, fnFGJ);
btnLogo.removeEventListener(MouseEvent.CLICK, fnFGJ);
}
}
}//package temp0001_fla
Section 10
//Symbol2_44 (temp0001_fla.Symbol2_44)
package temp0001_fla {
import flash.display.*;
public dynamic class Symbol2_44 extends MovieClip {
public var clipPrueba:MovieClip;
}
}//package temp0001_fla
Section 11
//flecha (flecha)
package {
import flash.display.*;
public class flecha extends MovieClip {
public function flecha(){
addFrameScript(39, frame40, 79, frame80, 119, frame120, 159, frame160);
this.stop();
}
function frame160(){
gotoAndPlay("izquierda");
}
function frame80(){
gotoAndPlay("derecha");
}
function frame40(){
gotoAndPlay("abajo");
}
function frame120(){
gotoAndPlay("arriba");
}
}
}//package
Section 12
//LVLlauncher (LVLlauncher)
package {
import flash.display.*;
import flash.net.*;
public class LVLlauncher extends MovieClip {
public function ganaJuego(_arg1:int, _arg2:String, _arg3:SharedObject, _arg4:Array, _arg5:MovieClip):void{
if (_arg1 == 1){
if (_arg4[2] == 0){
_arg4[2] = 2;
_arg3.data.n2 = 1;
};
_arg5.play();
} else {
if (_arg1 == 2){
if (_arg2 == "derecha"){
if (_arg4[3] == 0){
_arg4[3] = 2;
_arg3.data.n3 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[6] == 0){
_arg4[6] = 2;
_arg3.data.n6 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[14] == 0){
_arg4[14] = 2;
_arg3.data.n14 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 3){
if (_arg2 == "derecha"){
if (_arg4[4] == 0){
_arg4[4] = 2;
_arg3.data.n4 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 4){
if (_arg2 == "derecha"){
if (_arg4[5] == 0){
_arg4[5] = 2;
_arg3.data.n5 = 1;
};
} else {
if (_arg2 == "izquierda"){
if (_arg4[3] == 0){
_arg4[3] = 2;
_arg3.data.n3 = 1;
};
};
};
_arg5.play();
} else {
if (_arg1 == 5){
if (_arg2 == "derecha"){
if (_arg4[20] == 0){
_arg4[20] = 2;
_arg3.data.n20 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[4] == 0){
_arg4[4] = 2;
_arg3.data.n4 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[10] == 0){
_arg4[10] = 2;
_arg3.data.n10 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[17] == 0){
_arg4[17] = 2;
_arg3.data.n17 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 6){
if (_arg2 == "derecha"){
if (_arg4[7] == 0){
_arg4[7] = 2;
_arg3.data.n7 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 7){
if (_arg2 == "derecha"){
if (_arg4[8] == 0){
_arg4[8] = 2;
_arg3.data.n8 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[6] == 0){
_arg4[6] = 2;
_arg3.data.n6 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[11] == 0){
_arg4[11] = 2;
_arg3.data.n11 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 8){
if (_arg2 == "derecha"){
if (_arg4[9] == 0){
_arg4[9] = 2;
_arg3.data.n9 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[7] == 0){
_arg4[7] = 2;
_arg3.data.n7 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[12] == 0){
_arg4[12] = 2;
_arg3.data.n12 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 9){
if (_arg2 == "derecha"){
if (_arg4[10] == 0){
_arg4[10] = 2;
_arg3.data.n10 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[8] == 0){
_arg4[8] = 2;
_arg3.data.n8 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[13] == 0){
_arg4[13] = 2;
_arg3.data.n13 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 10){
if (_arg2 == "derecha"){
if (_arg4[21] == 0){
_arg4[21] = 2;
_arg3.data.n21 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[12] == 0){
_arg4[12] = 2;
_arg3.data.n12 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[9] == 0){
_arg4[9] = 2;
_arg3.data.n9 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[5] == 0){
_arg4[5] = 2;
_arg3.data.n5 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 11){
_arg5.play();
} else {
if (_arg1 == 12){
if (_arg2 == "derecha"){
if (_arg4[10] == 0){
_arg4[10] = 2;
_arg3.data.n10 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[8] == 0){
_arg4[8] = 2;
_arg3.data.n8 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 13){
_arg5.play();
} else {
if (_arg1 == 14){
if (_arg2 == "derecha"){
if (_arg4[15] == 0){
_arg4[15] = 2;
_arg3.data.n15 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[2] == 0){
_arg4[2] = 2;
_arg3.data.n2 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[18] == 0){
_arg4[18] = 2;
_arg3.data.n18 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 15){
if (_arg2 == "derecha"){
if (_arg4[16] == 0){
_arg4[16] = 2;
_arg3.data.n16 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[14] == 0){
_arg4[14] = 2;
_arg3.data.n14 = 1;
};
if (_arg4[18] == 0){
_arg4[18] = 2;
_arg3.data.n18 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 16){
if (_arg2 == "izquierda"){
if (_arg4[15] == 0){
_arg4[15] = 2;
_arg3.data.n15 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[17] == 0){
_arg4[17] = 2;
_arg3.data.n17 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[19] == 0){
_arg4[19] = 2;
_arg3.data.n19 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 17){
if (_arg2 == "izquierda"){
if (_arg4[16] == 0){
_arg4[16] = 2;
_arg3.data.n16 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[5] == 0){
_arg4[5] = 2;
_arg3.data.n5 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 18){
if (_arg2 == "derecha"){
if (_arg4[15] == 0){
_arg4[15] = 2;
_arg3.data.n15 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[14] == 0){
_arg4[14] = 2;
_arg3.data.n14 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 19){
_arg5.play();
} else {
if (_arg1 == 20){
if (_arg2 == "derecha"){
if (_arg4[24] == 0){
_arg4[24] = 2;
_arg3.data.n24 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[5] == 0){
_arg4[5] = 2;
_arg3.data.n5 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[21] == 0){
_arg4[21] = 2;
_arg3.data.n21 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[23] == 0){
_arg4[23] = 2;
_arg3.data.n23 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 21){
if (_arg2 == "derecha"){
if (_arg4[24] == 0){
_arg4[24] = 2;
_arg3.data.n24 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[10] == 0){
_arg4[10] = 2;
_arg3.data.n10 = 1;
};
};
if (_arg2 == "arriba"){
if (_arg4[22] == 0){
_arg4[22] = 2;
_arg3.data.n22 = 1;
};
};
if (_arg2 == "abajo"){
if (_arg4[20] == 0){
_arg4[20] = 2;
_arg3.data.n20 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 22){
_arg5.play();
} else {
if (_arg1 == 23){
_arg5.play();
} else {
if (_arg1 == 24){
if (_arg2 == "derecha"){
if (_arg4[25] == 0){
_arg4[25] = 2;
_arg3.data.n25 = 1;
};
};
if (_arg2 == "izquierda"){
if (_arg4[20] == 0){
_arg4[20] = 2;
_arg3.data.n20 = 1;
};
if (_arg4[21] == 0){
_arg4[21] = 2;
_arg3.data.n21 = 1;
};
};
_arg5.play();
} else {
if (_arg1 == 25){
if (_arg2 == "derecha"){
_arg5.play();
} else {
_arg5.play();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_arg3.flush();
}
public function dalePower(_arg1:int, _arg2:MovieClip):nivel{
var _local3:nivel;
switch (_arg1){
case 0:
break;
case 1:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(8, 8, 2, 1, 8, 8, 8, 8, 8, 8), new Array(8, 8, 1, 1, 8, 2, 1, 8, 8, 8), new Array(8, 8, 2, 1, 1, 1, 2, 1, 8, 8), new Array(8, 8, 8, 8, 8, 2, 1, 2, 8, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 1, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 2, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(8, 8, 0, 0, 0, 0, 0, 0, 8, 8), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(8, 8, 0, 0, 0, 0, 0, 0, 8, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), _arg2, 1, 4);
break;
case 2:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 8, 8, 0, 0, 0, 0), new Array(0, 0, 0, 0, 1, 8, 0, 0, 0, 0), new Array(0, 0, 0, 0, 3, 1, 0, 0, 0, 0), new Array(0, 0, 8, 3, 8, 8, 1, 8, 0, 0), new Array(8, 1, 8, 3, 8, 8, 1, 1, 3, 8), new Array(8, 8, 3, 3, 8, 8, 1, 8, 8, 8), new Array(0, 0, 8, 3, 8, 8, 1, 8, 0, 0), new Array(0, 0, 0, 0, 3, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 8, 3, 0, 0, 0, 0), new Array(0, 0, 0, 0, 8, 8, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 3, 0, 0, 0, 0), new Array(0, 0, 0, 1, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 3, 0, 0, 0), new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 9, 9, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 9, 9, 0, 0, 0, 0)), _arg2, 1, 5);
break;
case 3:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 4, 1, 4, 8, 1, 1, 1, 4, 0), new Array(8, 8, 4, 8, 8, 1, 8, 1, 8, 8), new Array(8, 8, 8, 8, 0, 0, 8, 1, 8, 8), new Array(8, 8, 1, 8, 0, 0, 8, 8, 8, 8), new Array(8, 8, 1, 8, 4, 8, 8, 4, 8, 8), new Array(0, 4, 1, 4, 4, 8, 1, 1, 4, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 1, 0, 0, 4, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 4, 0, 0, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 8, 4, 0, 0, 0, 0), new Array(8, 8, 0, 0, 0, 4, 0, 0, 8, 8), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(8, 8, 0, 0, 1, 0, 0, 0, 8, 8), new Array(0, 0, 0, 0, 1, 8, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), _arg2, 3, 5);
break;
case 4:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(8, 8, 8, 5, 8, 8, 2, 0, 0, 0), new Array(8, 8, 8, 8, 5, 8, 5, 0, 0, 0), new Array(8, 8, 8, 5, 8, 8, 3, 0, 0, 0), new Array(0, 0, 2, 5, 8, 8, 2, 5, 0, 0), new Array(0, 0, 3, 2, 8, 8, 3, 2, 0, 0), new Array(0, 0, 0, 5, 8, 8, 5, 8, 8, 8), new Array(0, 0, 0, 3, 8, 5, 8, 8, 8, 8), new Array(0, 0, 0, 5, 8, 8, 5, 8, 8, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 2, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 3, 0, 0, 0, 0, 5, 0, 0), new Array(0, 0, 5, 0, 0, 0, 0, 3, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 2, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(8, 8, 8, 0, 0, 0, 0, 0, 0, 0), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(8, 8, 8, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 8, 8, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(0, 0, 0, 0, 0, 0, 0, 8, 8, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), _arg2, 4, 4);
break;
case 5:
_local3 = new nivel(new Array(new Array(0, 0, 0, 8, 8, 8, 8, 0, 0, 0), new Array(0, 0, 0, 8, 8, 8, 8, 0, 0, 0), new Array(0, 0, 0, 3, 8, 3, 8, 8, 0, 0), new Array(0, 0, 0, 8, 3, 8, 8, 8, 8, 8), new Array(0, 0, 0, 8, 2, 8, 8, 2, 1, 8), new Array(8, 8, 8, 8, 8, 2, 8, 3, 1, 8), new Array(8, 8, 1, 3, 8, 2, 8, 8, 8, 8), new Array(8, 8, 1, 8, 3, 8, 2, 0, 0, 0), new Array(8, 8, 8, 8, 8, 8, 0, 0, 0, 0), new Array(0, 0, 8, 8, 8, 8, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 3, 0, 0, 0, 4, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 2, 0, 0), new Array(0, 0, 1, 3, 0, 2, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 8, 9, 9, 8, 0, 0, 0), new Array(0, 0, 0, 8, 0, 0, 8, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 8, 8, 8), new Array(0, 0, 0, 0, 0, 0, 0, 1, 4, 9), new Array(8, 8, 8, 0, 0, 0, 0, 0, 0, 9), new Array(9, 0, 0, 0, 0, 0, 0, 8, 8, 8), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(8, 8, 8, 0, 0, 8, 0, 0, 0, 0), new Array(0, 0, 8, 9, 9, 8, 0, 0, 0, 0)), _arg2, 5, 4);
break;
case 6:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 3, 3, 8, 0, 0), new Array(0, 0, 8, 8, 5, 8, 0, 8, 8, 8), new Array(0, 0, 8, 0, 8, 5, 0, 0, 8, 0), new Array(0, 0, 8, 0, 0, 3, 0, 0, 8, 0), new Array(0, 0, 8, 0, 8, 5, 8, 3, 8, 0), new Array(0, 6, 6, 0, 8, 0, 0, 8, 0, 0), new Array(8, 6, 8, 6, 8, 6, 8, 8, 0, 0), new Array(0, 0, 8, 8, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 5, 0, 0, 5, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 3, 0), new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 6, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), _arg2, 4, 5);
break;
case 7:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 8, 0, 0, 0, 0), new Array(0, 0, 8, 8, 8, 8, 3, 0, 0, 0), new Array(0, 0, 8, 0, 0, 0, 3, 0, 0, 0), new Array(0, 8, 4, 8, 0, 4, 8, 8, 0, 0), new Array(0, 8, 0, 8, 8, 8, 0, 8, 8, 8), new Array(0, 8, 0, 8, 0, 8, 5, 8, 0, 0), new Array(0, 8, 8, 8, 0, 8, 0, 8, 0, 0), new Array(0, 0, 8, 0, 0, 8, 5, 8, 0, 0), new Array(8, 8, 8, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 4, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 6, 0, 0, 5, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 5, 0, 0, 0), new Array(0, 0, 4, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 3, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 9, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), _arg2, 4, 4);
break;
case 8:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 8, 8, 8, 8, 0, 0, 0), new Array(0, 0, 3, 8, 8, 0, 8, 8, 0, 0), new Array(8, 1, 8, 0, 8, 0, 0, 6, 0, 0), new Array(8, 3, 8, 7, 8, 8, 7, 8, 4, 8), new Array(0, 0, 8, 0, 0, 8, 0, 8, 6, 8), new Array(0, 0, 1, 8, 0, 8, 8, 4, 0, 0), new Array(0, 0, 0, 8, 8, 8, 8, 0, 0, 0), new Array(0, 0, 0, 0, 4, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 8, 8, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 6, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 3, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 7, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 4, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 6, 8, 0, 0, 0, 0), new Array(9, 0, 0, 8, 6, 8, 8, 0, 0, 0), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(0, 0, 0, 8, 8, 6, 8, 0, 0, 9), new Array(0, 0, 0, 0, 8, 6, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 9, 9, 0, 0, 0, 0)), _arg2, 4, 4);
break;
case 9:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 8, 8, 0, 0, 0, 0), new Array(0, 8, 5, 8, 8, 8, 8, 7, 8, 0), new Array(0, 5, 8, 8, 4, 4, 4, 8, 7, 0), new Array(0, 5, 8, 8, 8, 8, 8, 8, 2, 8), new Array(8, 8, 5, 6, 8, 8, 8, 4, 8, 8), new Array(8, 8, 4, 8, 7, 8, 7, 5, 8, 8), new Array(8, 3, 8, 8, 8, 8, 8, 0, 2, 8), new Array(0, 5, 3, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 6, 0, 0, 0, 4, 0, 0, 3, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 7, 0, 0, 0, 0, 0), new Array(0, 5, 0, 0, 0, 0, 0, 0, 2, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 5, 0), new Array(0, 0, 0, 0, 0, 7, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 2, 0, 0, 0, 0, 0, 0, 1, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 9, 9, 0, 0, 0, 0), new Array(0, 0, 0, 0, 6, 0, 6, 0, 0, 0), new Array(0, 0, 0, 0, 7, 2, 7, 0, 0, 0), new Array(8, 6, 6, 1, 0, 0, 0, 1, 1, 8), new Array(9, 0, 5, 1, 0, 0, 0, 3, 0, 9), new Array(9, 0, 5, 0, 1, 5, 6, 6, 0, 9), new Array(8, 1, 8, 0, 0, 0, 0, 8, 1, 8), new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 3, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), _arg2, 5, 8);
break;
case 10:
_local3 = new nivel(new Array(new Array(0, 8, 8, 0, 0, 0, 8, 0, 8, 0), new Array(8, 1, 6, 8, 3, 2, 8, 8, 5, 8), new Array(8, 6, 8, 8, 1, 3, 8, 6, 8, 0), new Array(8, 8, 8, 8, 3, 3, 8, 8, 6, 8), new Array(0, 4, 8, 4, 8, 8, 3, 8, 0, 0), new Array(0, 8, 8, 8, 3, 3, 8, 8, 8, 0), new Array(8, 8, 8, 8, 1, 8, 8, 8, 8, 0), new Array(8, 8, 8, 8, 1, 1, 8, 8, 8, 0), new Array(8, 8, 8, 8, 2, 8, 8, 8, 8, 8), new Array(0, 8, 0, 0, 0, 0, 8, 0, 8, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 4, 0, 0, 0, 6, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 5, 0), new Array(0, 4, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 3, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0), new Array(0, 1, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 7, 0, 0, 0, 2, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 9, 8, 8, 0, 0, 8, 8, 9, 0), new Array(9, 4, 0, 0, 1, 1, 0, 0, 4, 9), new Array(8, 0, 0, 0, 2, 2, 0, 0, 0, 8), new Array(8, 0, 0, 0, 1, 1, 0, 0, 0, 8), new Array(0, 7, 8, 4, 0, 0, 2, 8, 8, 0), new Array(0, 0, 0, 0, 2, 1, 0, 0, 0, 0), new Array(8, 0, 0, 0, 2, 2, 0, 0, 0, 8), new Array(8, 0, 0, 0, 2, 2, 0, 0, 0, 8), new Array(9, 7, 0, 0, 1, 1, 0, 0, 2, 9), new Array(0, 9, 8, 8, 0, 0, 8, 8, 9, 0)), _arg2, 7, 7);
break;
case 11:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 8, 8, 8, 0, 8, 7, 8, 8, 0), new Array(0, 4, 0, 4, 0, 8, 0, 0, 4, 0), new Array(0, 8, 0, 6, 0, 5, 0, 0, 8, 0), new Array(0, 8, 8, 7, 8, 8, 8, 6, 8, 0), new Array(0, 0, 4, 0, 4, 0, 0, 0, 0, 0), new Array(8, 8, 8, 8, 8, 8, 8, 6, 5, 0), new Array(0, 1, 0, 1, 0, 4, 0, 0, 8, 0), new Array(0, 8, 8, 8, 0, 8, 3, 8, 8, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 2, 0, 0, 0, 0, 7, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 6, 0, 0, 0), new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 5, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 3, 0, 0, 0, 4, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), _arg2, 1, 6);
break;
case 12:
_local3 = new nivel(new Array(new Array(8, 8, 0, 0, 8, 0, 0, 0, 0, 0), new Array(0, 0, 8, 8, 0, 0, 8, 8, 0, 8), new Array(0, 0, 8, 8, 8, 8, 8, 8, 0, 8), new Array(0, 0, 8, 3, 8, 8, 3, 8, 0, 8), new Array(8, 7, 3, 8, 2, 6, 8, 8, 1, 8), new Array(8, 2, 3, 8, 6, 2, 8, 8, 1, 8), new Array(0, 0, 8, 3, 8, 8, 3, 8, 0, 0), new Array(0, 0, 8, 6, 0, 0, 5, 5, 0, 0), new Array(8, 0, 8, 8, 0, 0, 8, 8, 0, 0), new Array(0, 0, 0, 0, 0, 8, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 2, 0, 0), new Array(0, 0, 0, 1, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 7, 0, 0, 0, 0, 0, 5, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 3, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 6, 0, 0, 0, 0, 6, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 8, 8, 8, 8, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(0, 0, 0, 0, 0, 0, 5, 6, 0, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(9, 0, 1, 0, 1, 7, 0, 0, 2, 9), new Array(9, 0, 1, 0, 7, 6, 0, 0, 2, 9), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(8, 0, 7, 0, 0, 0, 0, 0, 0, 0), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 8, 8, 8, 8, 8)), _arg2, 2, 1);
break;
case 13:
_local3 = new nivel(new Array(new Array(0, 8, 8, 0, 0, 8, 0, 8, 0, 0), new Array(8, 8, 0, 0, 8, 8, 8, 5, 8, 0), new Array(0, 2, 0, 0, 1, 2, 8, 8, 8, 0), new Array(0, 3, 8, 0, 1, 8, 0, 8, 8, 0), new Array(8, 6, 8, 0, 8, 8, 0, 8, 8, 0), new Array(8, 7, 8, 0, 8, 8, 0, 8, 8, 8), new Array(8, 8, 8, 8, 1, 1, 8, 0, 0, 0), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 0, 5, 0, 8, 8, 8, 8, 8, 0), new Array(0, 0, 8, 0, 0, 8, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 5, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 3, 0, 0, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 3, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 2, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 7, 0), new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 8, 8, 0, 0, 8, 8, 8, 8, 8), new Array(9, 3, 0, 0, 0, 0, 0, 7, 0, 8), new Array(8, 3, 0, 0, 2, 3, 0, 7, 6, 8), new Array(8, 2, 0, 0, 3, 0, 0, 0, 0, 8), new Array(9, 7, 0, 0, 0, 0, 0, 0, 0, 8), new Array(9, 6, 0, 0, 0, 0, 0, 0, 0, 8), new Array(8, 0, 0, 0, 1, 2, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 6, 0, 8), new Array(0, 0, 0, 0, 0, 0, 0, 7, 7, 8), new Array(0, 0, 8, 0, 0, 8, 8, 8, 8, 8)), _arg2, 5, 4);
break;
case 14:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 8, 8, 8, 0, 8, 8, 8, 8, 0), new Array(0, 8, 8, 3, 8, 8, 8, 8, 0, 0), new Array(8, 8, 8, 0, 8, 8, 8, 8, 8, 8), new Array(8, 8, 8, 0, 0, 0, 8, 3, 8, 8), new Array(8, 8, 8, 8, 8, 8, 8, 3, 8, 8), new Array(0, 8, 8, 0, 0, 0, 8, 0, 8, 0), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 2, 4, 8, 8, 8, 0), new Array(0, 0, 0, 0, 8, 8, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 6, 0, 0, 0, 0, 0, 0, 3, 0), new Array(0, 0, 0, 0, 0, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 4, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 2, 0, 0, 0, 0, 0, 0, 5, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 1, 0, 0, 0, 1, 0, 0), new Array(9, 1, 0, 8, 0, 0, 0, 0, 1, 9), new Array(9, 1, 3, 8, 8, 8, 0, 4, 1, 9), new Array(9, 1, 0, 0, 0, 0, 0, 4, 1, 9), new Array(0, 8, 3, 8, 8, 8, 4, 8, 0, 0), new Array(0, 8, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 3, 0, 3, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 9, 9, 0, 0, 0, 0)), _arg2, 4, 2);
break;
case 15:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 8, 0, 0, 0, 0, 0), new Array(0, 8, 8, 0, 8, 5, 8, 8, 5, 0), new Array(8, 8, 1, 0, 0, 8, 8, 0, 8, 8), new Array(0, 2, 8, 8, 8, 8, 0, 8, 1, 0), new Array(0, 8, 8, 8, 0, 0, 8, 4, 8, 8), new Array(0, 8, 8, 8, 8, 0, 8, 8, 4, 0), new Array(0, 8, 8, 0, 8, 0, 8, 0, 8, 0), new Array(0, 0, 0, 8, 8, 8, 8, 8, 7, 8), new Array(8, 7, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 0, 0, 8, 0, 0, 0, 8, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 4, 0, 0, 0, 0, 0), new Array(0, 1, 0, 0, 0, 0, 0, 0, 5, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 4, 0), new Array(0, 0, 0, 0, 2, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 6, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 3, 0, 0, 0, 7, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 8, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 1, 0, 0, 5, 0), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(0, 6, 0, 0, 2, 0, 0, 3, 3, 0), new Array(0, 0, 0, 0, 0, 0, 0, 7, 0, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 7, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(9, 6, 3, 0, 0, 0, 2, 0, 0, 0), new Array(0, 0, 0, 8, 0, 0, 0, 8, 0, 0)), _arg2, 5, 8);
break;
case 16:
_local3 = new nivel(new Array(new Array(0, 0, 0, 8, 8, 8, 8, 0, 0, 8), new Array(8, 4, 8, 8, 5, 8, 5, 8, 8, 0), new Array(0, 8, 8, 4, 8, 4, 8, 3, 8, 0), new Array(0, 8, 8, 8, 8, 8, 8, 8, 1, 8), new Array(0, 8, 8, 8, 0, 8, 8, 2, 8, 0), new Array(0, 8, 8, 0, 8, 8, 8, 2, 8, 0), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 4, 8, 8, 8, 3, 3, 3, 8), new Array(0, 0, 1, 8, 8, 2, 8, 8, 8, 0), new Array(0, 0, 8, 0, 0, 0, 0, 0, 0, 8)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 6, 0), new Array(0, 0, 5, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 2, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 1, 0, 0, 0, 1, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 4, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 3, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 0, 0, 9, 9, 9, 9, 0, 0, 8), new Array(9, 1, 8, 0, 6, 0, 6, 0, 0, 8), new Array(0, 0, 0, 3, 0, 3, 0, 1, 5, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(0, 0, 0, 0, 8, 0, 0, 0, 0, 8), new Array(0, 0, 0, 8, 0, 0, 0, 0, 0, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(0, 0, 1, 1, 0, 8, 2, 1, 1, 8), new Array(0, 0, 4, 4, 0, 4, 0, 0, 0, 8), new Array(8, 0, 9, 0, 0, 0, 0, 0, 0, 8)), _arg2, 6, 3);
break;
case 17:
_local3 = new nivel(new Array(new Array(0, 8, 0, 8, 0, 0, 0, 0, 8, 0), new Array(8, 7, 8, 6, 8, 8, 8, 8, 3, 8), new Array(0, 0, 0, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 7, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 7, 8, 8, 8, 5, 5, 8, 0), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 5, 5, 8, 8, 8, 8, 3, 1, 8), new Array(8, 8, 8, 8, 8, 8, 7, 8, 8, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 7, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 4, 0, 0, 0, 2, 0), new Array(0, 0, 0, 5, 0, 0, 3, 1, 0, 0), new Array(0, 7, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 6, 0, 0, 0, 0, 0, 6, 5, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 9, 8, 8, 8, 8, 8, 8, 9, 8), new Array(9, 5, 0, 1, 0, 0, 0, 0, 1, 8), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(8, 0, 0, 4, 4, 0, 0, 0, 0, 8), new Array(8, 0, 4, 0, 0, 3, 0, 0, 0, 8), new Array(8, 0, 3, 0, 0, 3, 0, 0, 0, 8), new Array(8, 0, 0, 2, 1, 0, 0, 0, 0, 8), new Array(8, 4, 2, 0, 0, 0, 0, 4, 4, 8), new Array(9, 0, 2, 0, 0, 0, 4, 0, 0, 8), new Array(8, 8, 8, 8, 8, 8, 8, 8, 8, 8)), _arg2, 8, 5);
break;
case 18:
_local3 = new nivel(new Array(new Array(0, 0, 0, 8, 0, 0, 0, 0, 0, 0), new Array(0, 0, 8, 8, 8, 8, 8, 8, 0, 0), new Array(0, 8, 8, 8, 8, 8, 8, 7, 8, 0), new Array(0, 6, 8, 0, 8, 8, 1, 8, 8, 0), new Array(8, 2, 8, 8, 8, 2, 8, 0, 4, 8), new Array(8, 5, 8, 8, 2, 8, 8, 8, 1, 8), new Array(8, 4, 8, 2, 8, 8, 0, 8, 8, 8), new Array(0, 8, 8, 8, 8, 8, 8, 8, 7, 8), new Array(0, 0, 8, 8, 8, 8, 8, 8, 0, 0), new Array(0, 0, 0, 8, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 2, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 3, 0, 5, 0), new Array(0, 1, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 4, 0, 0), new Array(0, 0, 0, 0, 1, 7, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 8, 8, 8, 8, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 0), new Array(8, 0, 0, 8, 0, 0, 7, 0, 0, 8), new Array(9, 1, 8, 0, 0, 3, 0, 8, 0, 9), new Array(9, 0, 6, 0, 1, 0, 0, 2, 4, 9), new Array(8, 0, 0, 1, 0, 0, 8, 0, 0, 8), new Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 8, 8, 8, 8, 0, 0, 0)), _arg2, 4, 8);
break;
case 19:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 8, 8, 8, 0, 0, 8, 8, 2, 0), new Array(0, 0, 8, 8, 7, 7, 8, 8, 0, 0), new Array(8, 8, 0, 0, 8, 8, 0, 8, 8, 0), new Array(0, 8, 8, 2, 2, 2, 8, 8, 1, 0), new Array(8, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(8, 8, 8, 6, 6, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 8, 8, 0, 8, 8, 0), new Array(8, 2, 8, 8, 8, 8, 0, 8, 5, 0), new Array(0, 0, 0, 0, 8, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 2, 0, 0, 0, 0, 0, 0, 4, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 0), new Array(0, 2, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 2, 0, 2, 0, 0), new Array(0, 3, 0, 0, 6, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 7, 0, 0, 0, 1, 0, 0, 5, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 4, 0, 0, 0, 0, 3, 0, 0), new Array(0, 0, 0, 0, 1, 1, 0, 0, 0, 0), new Array(9, 0, 0, 0, 0, 0, 0, 1, 0, 0), new Array(0, 0, 0, 2, 2, 2, 5, 1, 1, 0), new Array(9, 0, 0, 0, 0, 0, 5, 0, 0, 0), new Array(9, 0, 0, 0, 0, 6, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 5, 4, 0), new Array(8, 0, 4, 4, 0, 0, 0, 5, 0, 0), new Array(0, 0, 0, 0, 8, 8, 8, 8, 0, 0)), _arg2, 4, 5);
break;
case 20:
_local3 = new nivel(new Array(new Array(8, 0, 8, 0, 8, 8, 0, 0, 0, 0), new Array(0, 8, 5, 8, 1, 8, 8, 8, 8, 0), new Array(0, 5, 0, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 1, 2, 8, 8, 8, 0), new Array(8, 8, 5, 1, 8, 1, 2, 8, 1, 8), new Array(8, 8, 5, 8, 2, 3, 2, 8, 1, 8), new Array(0, 8, 8, 8, 8, 2, 8, 8, 0, 8), new Array(0, 8, 8, 0, 7, 0, 8, 0, 8, 0), new Array(0, 8, 8, 7, 1, 6, 8, 8, 8, 0), new Array(0, 0, 0, 0, 8, 8, 0, 0, 0, 8)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 7, 0, 0, 0, 0, 0, 0, 4, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 1, 2, 0, 0, 0, 0), new Array(0, 0, 0, 0, 3, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 5, 0, 0, 0, 0, 0, 0, 6, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 8, 8, 8, 9, 9, 8, 8, 8, 8), new Array(0, 0, 4, 0, 0, 0, 0, 1, 0, 8), new Array(0, 4, 0, 0, 0, 0, 0, 1, 1, 8), new Array(0, 0, 0, 5, 2, 1, 8, 0, 0, 8), new Array(9, 1, 1, 2, 0, 0, 1, 0, 3, 9), new Array(9, 1, 1, 8, 0, 0, 3, 0, 7, 9), new Array(0, 0, 0, 8, 8, 1, 1, 0, 0, 8), new Array(0, 0, 0, 0, 6, 0, 0, 0, 4, 8), new Array(0, 0, 0, 6, 0, 7, 0, 4, 0, 8), new Array(0, 0, 0, 0, 9, 9, 0, 0, 0, 8)), _arg2, 5, 5);
break;
case 21:
_local3 = new nivel(new Array(new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(8, 8, 1, 1, 8, 4, 4, 8, 2, 8), new Array(8, 1, 8, 1, 8, 8, 0, 2, 2, 8), new Array(8, 4, 7, 8, 8, 8, 1, 8, 2, 8), new Array(8, 8, 7, 8, 8, 8, 1, 8, 8, 8), new Array(8, 1, 8, 8, 8, 8, 8, 0, 8, 8), new Array(8, 8, 8, 8, 6, 8, 8, 0, 3, 8), new Array(8, 2, 8, 7, 0, 8, 8, 8, 3, 8), new Array(8, 2, 8, 8, 7, 6, 6, 8, 3, 8), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 4, 0, 0), new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 5, 0, 2, 0, 0), new Array(0, 0, 0, 0, 6, 0, 0, 0, 3, 0), new Array(0, 1, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 7, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 3, 0, 0), new Array(0, 2, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 9, 9, 9, 9, 9, 9, 9, 9, 8), new Array(9, 0, 0, 1, 1, 5, 5, 0, 3, 9), new Array(9, 2, 0, 1, 0, 8, 0, 8, 3, 9), new Array(9, 7, 0, 8, 1, 0, 1, 0, 3, 9), new Array(9, 7, 0, 8, 0, 6, 1, 3, 0, 9), new Array(9, 0, 0, 1, 0, 8, 8, 0, 3, 9), new Array(9, 1, 0, 6, 0, 0, 8, 0, 3, 9), new Array(9, 1, 0, 8, 6, 0, 0, 0, 3, 9), new Array(9, 0, 1, 0, 8, 8, 1, 1, 8, 9), new Array(8, 9, 9, 9, 9, 9, 9, 9, 9, 8)), _arg2, 1, 1);
break;
case 22:
_local3 = new nivel(new Array(new Array(0, 0, 0, 8, 0, 0, 0, 8, 0, 0), new Array(8, 8, 2, 8, 8, 1, 8, 8, 8, 0), new Array(0, 6, 8, 8, 3, 8, 2, 8, 8, 8), new Array(0, 8, 8, 8, 8, 1, 8, 8, 8, 0), new Array(0, 0, 0, 2, 1, 8, 0, 4, 0, 0), new Array(0, 8, 8, 8, 8, 4, 8, 8, 8, 0), new Array(0, 8, 8, 8, 8, 0, 8, 8, 8, 8), new Array(0, 2, 8, 8, 8, 4, 8, 2, 2, 0), new Array(8, 1, 7, 8, 8, 0, 8, 2, 8, 0), new Array(0, 0, 0, 8, 0, 0, 0, 8, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 7, 0, 0, 2, 0, 0, 1, 0, 0), new Array(0, 0, 0, 0, 0, 3, 0, 0, 2, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 1, 0, 0, 4, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 6, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 4, 0, 5, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 0, 0, 8, 8, 0, 0, 8, 0, 0), new Array(9, 0, 1, 0, 0, 2, 0, 0, 0, 8), new Array(8, 5, 0, 0, 0, 0, 1, 0, 0, 8), new Array(8, 0, 0, 0, 0, 2, 0, 0, 0, 0), new Array(8, 8, 0, 1, 6, 8, 0, 3, 0, 0), new Array(8, 0, 0, 0, 0, 4, 0, 0, 0, 8), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(8, 6, 0, 0, 0, 5, 0, 4, 1, 0), new Array(9, 7, 6, 0, 0, 0, 0, 1, 0, 0), new Array(8, 8, 0, 8, 8, 0, 0, 8, 0, 0)), _arg2, 8, 1);
break;
case 23:
_local3 = new nivel(new Array(new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(0, 8, 8, 8, 8, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 0, 0, 8, 8, 8, 0), new Array(0, 8, 8, 2, 8, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 2, 8, 5, 2, 5, 0), new Array(8, 5, 8, 5, 8, 2, 8, 8, 8, 0), new Array(8, 0, 1, 0, 5, 0, 4, 4, 5, 0), new Array(0, 8, 8, 8, 8, 4, 8, 8, 8, 0), new Array(0, 8, 8, 8, 8, 6, 8, 8, 8, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 8)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 3, 0, 1, 0, 0, 0), new Array(0, 4, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 1, 0, 0, 2, 0, 0, 2, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 5, 0, 5, 0, 1, 0, 6, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 7, 0, 0, 0, 4, 0), new Array(0, 7, 0, 0, 0, 0, 6, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 8), new Array(0, 0, 0, 3, 0, 1, 0, 0, 0, 0), new Array(0, 0, 0, 8, 8, 8, 0, 0, 0, 0), new Array(0, 0, 0, 2, 0, 1, 0, 0, 0, 0), new Array(8, 8, 1, 8, 2, 8, 5, 2, 5, 0), new Array(9, 7, 0, 3, 0, 5, 0, 8, 0, 0), new Array(8, 8, 7, 8, 4, 8, 4, 4, 6, 0), new Array(0, 0, 0, 1, 0, 4, 0, 0, 0, 0), new Array(0, 0, 0, 8, 8, 4, 0, 0, 0, 0), new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 8)), _arg2, 8, 1);
break;
case 24:
_local3 = new nivel(new Array(new Array(8, 0, 8, 0, 8, 0, 8, 0, 8, 8), new Array(8, 6, 8, 8, 8, 8, 8, 8, 0, 0), new Array(8, 6, 8, 8, 8, 4, 4, 8, 0, 0), new Array(8, 8, 4, 8, 8, 8, 8, 8, 8, 0), new Array(8, 0, 8, 8, 4, 8, 8, 8, 8, 0), new Array(0, 8, 8, 8, 8, 4, 8, 8, 0, 8), new Array(0, 8, 8, 8, 8, 0, 6, 8, 2, 8), new Array(0, 8, 8, 0, 0, 8, 3, 8, 2, 8), new Array(0, 8, 8, 8, 8, 8, 3, 8, 2, 8), new Array(0, 0, 0, 8, 0, 8, 0, 8, 0, 8)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 6, 0, 0, 0, 6, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 4, 0), new Array(0, 0, 0, 1, 0, 5, 0, 0, 0, 0), new Array(0, 7, 0, 0, 3, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 1, 0, 0, 0, 0), new Array(0, 0, 0, 2, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 0, 8, 0, 8, 0, 8, 0, 8, 8), new Array(9, 7, 0, 0, 0, 0, 0, 0, 8, 0), new Array(9, 7, 0, 0, 0, 5, 5, 0, 8, 0), new Array(9, 1, 7, 8, 8, 0, 0, 5, 0, 0), new Array(8, 0, 0, 0, 7, 0, 0, 0, 5, 0), new Array(0, 0, 0, 0, 0, 5, 0, 0, 0, 8), new Array(0, 0, 0, 0, 0, 8, 1, 8, 1, 9), new Array(0, 8, 0, 8, 8, 0, 1, 0, 1, 9), new Array(0, 8, 0, 0, 0, 0, 0, 0, 1, 9), new Array(8, 8, 0, 8, 0, 8, 0, 8, 0, 8)), _arg2, 7, 7);
break;
case 25:
_local3 = new nivel(new Array(new Array(0, 0, 0, 0, 0, 0, 8, 0, 0, 0), new Array(0, 8, 8, 8, 1, 8, 8, 8, 0, 0), new Array(0, 8, 7, 8, 1, 8, 2, 8, 0, 0), new Array(0, 8, 0, 2, 8, 1, 8, 1, 8, 0), new Array(0, 8, 8, 8, 8, 8, 3, 5, 8, 8), new Array(0, 8, 8, 1, 8, 1, 2, 4, 5, 8), new Array(8, 8, 8, 8, 0, 8, 8, 8, 0, 8), new Array(8, 8, 7, 8, 8, 8, 7, 8, 0, 0), new Array(8, 8, 0, 8, 7, 8, 0, 8, 0, 0), new Array(0, 0, 0, 0, 0, 0, 8, 0, 0, 0)), new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 2, 0, 0, 7, 0, 0, 4, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 1, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 1, 4, 0, 0), new Array(0, 0, 0, 0, 3, 0, 0, 5, 0, 0), new Array(0, 0, 0, 0, 0, 2, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 1, 0, 0, 7, 0, 0, 3, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), new Array(new Array(8, 8, 8, 0, 0, 0, 8, 8, 8, 0), new Array(8, 0, 8, 0, 0, 0, 8, 0, 8, 0), new Array(8, 0, 1, 0, 1, 0, 1, 0, 8, 0), new Array(8, 0, 8, 0, 8, 0, 8, 0, 8, 8), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 9), new Array(9, 0, 8, 0, 8, 0, 8, 0, 8, 8), new Array(9, 0, 2, 0, 8, 0, 2, 0, 8, 0), new Array(9, 0, 8, 0, 0, 0, 8, 0, 8, 0), new Array(8, 8, 8, 0, 0, 0, 8, 8, 8, 0)), _arg2, 1, 5);
break;
};
return (_local3);
}
}
}//package
Section 13
//Medalla (Medalla)
package {
import flash.display.*;
public class Medalla extends MovieClip {
public function Medalla(_arg1:int=3, _arg2:int=4){
switch (_arg1){
case 1:
switch (_arg2){
case 1:
gotoAndStop(1);
break;
case 2:
gotoAndStop(2);
break;
case 3:
gotoAndStop(3);
break;
case 4:
gotoAndStop(4);
break;
case 5:
gotoAndStop(5);
break;
};
break;
case 2:
switch (_arg2){
case 1:
gotoAndStop(6);
break;
case 2:
gotoAndStop(7);
break;
case 3:
gotoAndStop(8);
break;
case 4:
gotoAndStop(9);
break;
case 5:
gotoAndStop(10);
break;
};
break;
case 3:
switch (_arg2){
case 1:
gotoAndStop(11);
break;
case 2:
gotoAndStop(12);
break;
case 3:
gotoAndStop(13);
break;
case 4:
gotoAndStop(14);
break;
case 5:
gotoAndStop(15);
break;
};
break;
};
}
}
}//package
Section 14
//nivel (nivel)
package {
import flash.display.*;
import Player.*;
import Baldozas.*;
import Esferas.*;
public class nivel {
public var salida:String;// = ""
public var juegoFin:Boolean;// = false
private var MEsferas:Array;
private var GEsferas:Array;
private var contenedor:MovieClip;
private var MParedes:Array;
private var GParedes:Array;
private var pje:Tipito;
private var cantEsf:int;
private var pjeC:int;
private var MSuelo:Array;
private var pjeF:int;
var flechas:Array;
private var movimientos:int;// = 0
private var GSuelo:Array;
public function nivel(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:MovieClip, _arg5:int, _arg6:int){
movimientos = 0;
flechas = new Array();
juegoFin = false;
salida = "";
super();
contenedor = _arg4;
MSuelo = _arg1;
MEsferas = _arg2;
MParedes = _arg3;
GSuelo = dibujarMapa1(MSuelo, contenedor);
GEsferas = dibujarMapa2(MEsferas, contenedor);
GParedes = dibujarMapa3(MParedes, contenedor);
pjeF = _arg6;
pjeC = _arg5;
pje = new Tipito();
pje.x = ((pjeC * 50) + 25);
pje.y = ((pjeF * 50) + 25);
contenedor.addChild(pje);
cantEsf = contarEsferas();
}
private function romperSalidas():void{
var _local1:int;
var _local2:int;
_local1 = 0;
while (_local1 < flechas.length) {
flechas[_local1].play();
_local1++;
};
_local1 = 0;
while (_local1 < MSuelo.length) {
_local2 = 0;
while (_local2 <= MSuelo[_local1].length) {
if (MParedes[_local1][_local2] == 9){
GParedes[_local1][_local2].romper();
MParedes[_local1][_local2] = 0;
};
_local2++;
};
_local1++;
};
}
private function contarEsferas():int{
var _local1:int;
var _local2:int;
var _local3:int;
_local3 = 0;
_local1 = 0;
while (_local1 < MEsferas.length) {
_local2 = 0;
while (_local2 < MEsferas[_local1].length) {
if (MEsferas[_local1][_local2] != 0){
_local3++;
};
_local2++;
};
_local1++;
};
return (_local3);
}
private function romperCosas(_arg1:int):void{
var _local2:int;
var _local3:int;
_local2 = 0;
while (_local2 < MSuelo.length) {
_local3 = 0;
while (_local3 <= MSuelo[_local2].length) {
if (MSuelo[_local2][_local3] == _arg1){
if (MParedes[_local2][_local3] == 0){
if (MEsferas[_local2][_local3] == 0){
MSuelo[_local2][_local3] = 0;
GSuelo[_local2][_local3].romper();
};
};
};
if (MParedes[_local2][_local3] == _arg1){
MParedes[_local2][_local3] = 0;
GParedes[_local2][_local3].romper();
};
_local3++;
};
_local2++;
};
}
private function dibujarMapa3(_arg1:Array, _arg2:MovieClip):Array{
var _local3:int;
var _local4:int;
var _local5:Array;
_local5 = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = (_arg1[_local3].length - 1);
while (_local4 >= 0) {
if (_arg1[_local3][_local4] == 9){
_local5[_local3][_local4] = new Pared(8);
_local5[_local3][_local4].x = (50 * _local4);
_local5[_local3][_local4].y = (50 * _local3);
_arg2.addChild(_local5[_local3][_local4]);
} else {
if (_arg1[_local3][_local4] != 0){
_local5[_local3][_local4] = new Pared(_arg1[_local3][_local4]);
_local5[_local3][_local4].x = (50 * _local4);
_local5[_local3][_local4].y = (50 * _local3);
_arg2.addChild(_local5[_local3][_local4]);
};
};
_local4--;
};
_local3++;
};
return (_local5);
}
private function dibujarMapa2(_arg1:Array, _arg2:MovieClip):Array{
var _local3:int;
var _local4:int;
var _local5:Array;
_local5 = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = (_arg1[_local3].length - 1);
while (_local4 >= 0) {
if (_arg1[_local3][_local4] != 0){
_local5[_local3][_local4] = new esferaSimbolo(_arg1[_local3][_local4]);
_local5[_local3][_local4].x = ((50 * _local4) + 50);
_local5[_local3][_local4].y = (50 * _local3);
_arg2.addChild(_local5[_local3][_local4]);
};
_local4--;
};
_local3++;
};
return (_local5);
}
private function dibujarMapa1(_arg1:Array, _arg2:MovieClip):Array{
var _local3:int;
var _local4:int;
var _local5:flecha;
var _local6:Array;
_local6 = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = (_arg1[_local3].length - 1);
while (_local4 >= 0) {
if (_arg1[_local3][_local4] == 8){
_local6[_local3][_local4] = new Suelo();
_local6[_local3][_local4].x = (50 * _local4);
_local6[_local3][_local4].y = (50 * _local3);
_arg2.addChild(_local6[_local3][_local4]);
if (MParedes[_local3][_local4] == 9){
if (_local3 == 9){
_local5 = new flecha();
_local5.gotoAndStop("abajo");
_local5.x = (50 * _local4);
_local5.y = (50 * _local3);
this.flechas.push(_local5);
_arg2.addChild(_local5);
_local5 = null;
} else {
if (_local3 == 0){
_local5 = new flecha();
_local5.gotoAndStop("arriba");
_local5.x = (50 * _local4);
_local5.y = (50 * _local3);
this.flechas.push(_local5);
_arg2.addChild(_local5);
_local5 = null;
} else {
if (_local4 == 9){
_local5 = new flecha();
_local5.gotoAndStop("derecha");
_local5.x = (50 * _local4);
_local5.y = (50 * _local3);
this.flechas.push(_local5);
_arg2.addChild(_local5);
_local5 = null;
} else {
if (_local4 == 0){
_local5 = new flecha();
_local5.gotoAndStop("izquierda");
_local5.x = (50 * _local4);
_local5.y = (50 * _local3);
this.flechas.push(_local5);
_arg2.addChild(_local5);
_local5 = null;
};
};
};
};
};
} else {
if (_arg1[_local3][_local4] != 0){
_local6[_local3][_local4] = new Baldoza(_arg1[_local3][_local4]);
_local6[_local3][_local4].x = (50 * _local4);
_local6[_local3][_local4].y = (50 * _local3);
_arg2.addChild(_local6[_local3][_local4]);
};
};
_local4--;
};
_local3++;
};
return (_local6);
}
public function get mov():int{
return (movimientos);
}
public function izquierda():void{
if (((((pje.listo) && ((pjeC > 0)))) && ((MParedes[pjeF][(pjeC - 1)] == 0)))){
if (MSuelo[pjeF][(pjeC - 1)] != 0){
pje.moverIzquierda();
pjeC--;
movimientos++;
} else {
pje.caer("izquierda");
juegoFin = true;
salida = "caida";
};
} else {
pje.apuntarIzquierda();
};
}
public function abajo():void{
if (((((pje.listo) && ((pjeF < 9)))) && ((MParedes[(pjeF + 1)][pjeC] == 0)))){
if (MSuelo[(pjeF + 1)][pjeC] != 0){
pje.moverAbajo();
pjeF++;
movimientos++;
} else {
pje.caer("abajo");
juegoFin = true;
salida = "caida";
};
} else {
pje.apuntarAbajo();
};
}
public function accion():void{
pje.accion();
if (MEsferas[pjeF][pjeC] != 0){
GEsferas[pjeF][pjeC].cojer();
cantEsf--;
romperCosas(MEsferas[pjeF][pjeC]);
if (cantEsf <= 0){
romperSalidas();
};
};
MEsferas[pjeF][pjeC] = 0;
if ((((((((pjeF == 0)) || ((pjeF == 9)))) || ((pjeC == 0)))) || ((pjeC == 9)))){
juegoFin = true;
if (pjeF == 0){
salida = "arriba";
};
if (pjeF == 9){
salida = "abajo";
};
if (pjeC == 0){
salida = "izquierda";
};
if (pjeC == 9){
salida = "derecha";
};
};
}
public function arriba():void{
if (((((pje.listo) && ((pjeF > 0)))) && ((MParedes[(pjeF - 1)][pjeC] == 0)))){
if (MSuelo[(pjeF - 1)][pjeC] != 0){
pje.moverArriba();
pjeF--;
movimientos++;
} else {
pje.caer("arriba");
juegoFin = true;
salida = "caida";
};
} else {
pje.apuntarArriba();
};
}
public function derecha():void{
if (((((pje.listo) && ((pjeC < 9)))) && ((MParedes[pjeF][(pjeC + 1)] == 0)))){
if (MSuelo[pjeF][(pjeC + 1)] != 0){
pje.moverDerecha();
pjeC++;
movimientos++;
} else {
pje.caer("derecha");
juegoFin = true;
salida = "caida";
};
} else {
pje.apuntarDerecha();
};
}
}
}//package
Section 15
//Preloader (Preloader)
package {
import flash.display.*;
public dynamic class Preloader extends MovieClip {
public var link_btn:SimpleButton;
public var logo_mc:MovieClip;
public function Preloader(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 16
//trabado (trabado)
package {
import flash.display.*;
public dynamic class trabado extends MovieClip {
public var can:MovieClip;
public function trabado(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
can.stop();
this.stop();
}
function frame20(){
can.play();
this.stop();
}
}
}//package
Section 17
//WTMsgBox (WTMsgBox)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class WTMsgBox extends MovieClip {
private const X:int = 350;
private const Y:int = 300;
public var txtTit:TextField;
private var cont:DisplayObjectContainer;
public var listo:Boolean;// = false
public var txtMsg:TextField;
public function WTMsgBox(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String){
listo = false;
super();
addFrameScript(0, frame1, 4, frame5);
cont = _arg1;
this.x = X;
this.y = Y;
_arg1.addChild(this);
this.txtMsg.text = _arg2;
this.txtTit.text = _arg3;
cont.addEventListener(MouseEvent.CLICK, ok);
cont.addEventListener(KeyboardEvent.KEY_DOWN, okK);
}
private function ok(_arg1:MouseEvent):void{
cont.removeEventListener(MouseEvent.CLICK, ok);
cont.removeEventListener(KeyboardEvent.KEY_DOWN, okK);
cont = null;
this.play();
}
function frame5(){
this.listo = true;
stop();
}
function frame1(){
stop();
}
private function okK(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
cont.removeEventListener(MouseEvent.CLICK, ok);
cont.removeEventListener(KeyboardEvent.KEY_DOWN, okK);
cont = null;
this.play();
};
}
}
}//package
Section 18
//WTMsgMedal (WTMsgMedal)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class WTMsgMedal extends MovieClip {
private const X:int = 350;
private const Y:int = 300;
private var cont:DisplayObjectContainer;
public var listo:Boolean;// = false
private var med:Medalla;
public var txtMsg:TextField;
public function WTMsgMedal(_arg1:DisplayObjectContainer, _arg2:int, _arg3:int){
listo = false;
super();
addFrameScript(0, frame1, 4, frame5);
cont = _arg1;
this.x = X;
this.y = Y;
_arg1.addChild(this);
med = new Medalla(3, _arg3);
med.x = -170;
med.y = 25;
this.addChild(med);
switch (_arg3){
case 1:
this.txtMsg.text = (("Excelent! " + String(_arg2)) + " moves. You won a gold medal!");
break;
case 2:
this.txtMsg.text = (("Good job! " + String(_arg2)) + " moves. You won a silver medal.");
break;
case 3:
this.txtMsg.text = (("You reached the exit in " + String(_arg2)) + " moves. You won a bronze medal!");
break;
case 4:
this.txtMsg.text = (("Awesome! " + String(_arg2)) + " moves. You won a special golden medal!");
break;
case 5:
this.txtMsg.text = (("You reached the exit in " + String(_arg2)) + " moves.");
break;
};
cont.addEventListener(MouseEvent.CLICK, ok);
cont.addEventListener(KeyboardEvent.KEY_DOWN, okK);
}
private function ok(_arg1:MouseEvent):void{
cont.removeEventListener(MouseEvent.CLICK, ok);
cont.removeEventListener(KeyboardEvent.KEY_DOWN, okK);
this.removeChild(med);
cont = null;
this.play();
}
function frame5(){
this.listo = true;
stop();
}
function frame1(){
stop();
}
private function okK(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
cont.removeEventListener(MouseEvent.CLICK, ok);
cont.removeEventListener(KeyboardEvent.KEY_DOWN, okK);
this.removeChild(med);
cont = null;
this.play();
};
}
}
}//package