Frame 1
var CPMStarPoolID = 1051;
var CPMStarSubPoolID = 6;
var swf_url = new String(this._url);
var domain = new String("crazymonkeygames.com");
if (this.swf_url.indexOf(domain) == -1) {
System.security.allowDomain("server.cpmstar.com");
this.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
} else {
loading_bar._y = 150;
this.adBox.swapDepths(this.getNextHighestDepth());
removeMovieClip(this.adBox);
}
var myMenu_cm = new ContextMenu();
myMenu_cm.hideBuiltInItems();
_root.menu = myMenu_cm;
Instance of Symbol 65 MovieClip "loading_bar" in Frame 1
onClipEvent (load) {
_root.stop();
}
Instance of Symbol 789 MovieClip in Frame 2
onClipEvent (load) {
_root.stop();
}
Frame 2
if (false) {
}
Frame 3
CMG_AS2.ScoreSubmitter.gameId = 343;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "moko769c11b032df2adeefe178ed050f6ac6";
var select = new Object();
var sel = true;
var keyok = true;
_global.players = 1;
_global.cheat1 = false;
_global.cheat2 = false;
_global.cheat3 = false;
_global.cheat4 = false;
if (_global.sndval == undefined) {
_global.sndval = true;
}
var enterpressed = false;
var music = new Sound();
attachMovie("scenografia", "scenclip", 200003);
this.bglevel1.gotoAndStop(1);
scenclip.gotoAndStop(1);
scenclip._x = 7;
scenclip._y = 19;
restbtn1._alpha = 70;
music.attachSound("fluffy");
if (_global.sndval == true) {
music.start(0, 2000);
music.setVolume(100);
}
if (_global.sndval == true) {
sndbtn1.gotoAndStop(1);
} else {
sndbtn1.gotoAndStop(3);
}
monkey.onPress = function () {
getURL ("http://www.crazymonkeygames.com", "_blank");
};
jordant.onPress = function () {
getURL ("http://cappuccino-design.com", "_blank");
};
sndbtn1.onPress = function () {
_global.sndval = !_global.sndval;
if (_global.sndval == true) {
sndbtn1.gotoAndStop(2);
music.start(0, 2000);
music.setVolume(100);
}
if (_global.sndval == false) {
sndbtn1.gotoAndStop(4);
music.stop();
}
};
sndbtn1.onRollOver = function () {
if (_global.sndval == false) {
sndbtn1.gotoAndStop(4);
}
if (_global.sndval == true) {
sndbtn1.gotoAndStop(2);
}
};
sndbtn1.onRollOut = function () {
if (_global.sndval == false) {
sndbtn1.gotoAndStop(3);
}
if (_global.sndval == true) {
sndbtn1.gotoAndStop(1);
}
};
opl.onRollOver = function () {
if ((select1._currentframe != 1) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
select1.gotoAndStop(1);
sel = true;
};
tpl.onRollOver = function () {
if ((select1._currentframe != 2) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
select1.gotoAndStop(2);
sel = false;
};
hsh.onRollOver = function () {
if ((select1._currentframe != 3) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
select1.gotoAndStop(3);
sel = true;
};
moregameshit.onRollOver = function () {
if ((select1._currentframe != 4) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
select1.gotoAndStop(4);
sel = false;
};
officialsitehit.onRollOver = function () {
if ((select1._currentframe != 5) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
select1.gotoAndStop(5);
sel = true;
};
hsh.onPress = function () {
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
CMG_AS2.ScoreSubmitter.loadHighScorePage();
};
opl.onPress = function () {
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
_global.players = select1._currentframe;
_root.gotoAndStop("inonep");
};
tpl.onPress = function () {
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
_global.players = select1._currentframe;
_root.gotoAndStop("intwop");
};
moregameshit.onPress = function () {
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
getURL ("http://www.crazymonkeygames.com/", "_blank");
};
officialsitehit.onPress = function () {
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
getURL ("http://www.cappuccino-design.com/mokomoko/", "_blank");
};
select.onKeyDown = function () {
if ((Key.isDown(17) and Key.isDown(16)) and Key.isDown(35)) {
snd.gotoAndPlay("life");
_global.cheat1 = true;
}
if ((Key.isDown(17) and Key.isDown(16)) and Key.isDown(36)) {
snd.gotoAndPlay("superball");
_global.cheat2 = true;
}
if ((Key.isDown(17) and Key.isDown(16)) and Key.isDown(46)) {
snd.gotoAndPlay("points");
_global.cheat3 = true;
}
if ((Key.isDown(17) and Key.isDown(16)) and Key.isDown(45)) {
snd.gotoAndPlay("enlarge");
_global.cheat4 = true;
}
if ((Key.isDown(40) and (select1._currentframe == 1)) and (keyok == true)) {
select1.gotoAndStop(2);
if ((sel == true) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
if ((Key.isDown(40) and (select1._currentframe == 2)) and (keyok == true)) {
select1.gotoAndStop(3);
if ((sel == false) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if ((Key.isDown(40) and (select1._currentframe == 3)) and (keyok == true)) {
select1.gotoAndStop(4);
if ((sel == true) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
if ((Key.isDown(40) and ((select1._currentframe == 4) or (select1._currentframe == 5))) and (keyok == true)) {
select1.gotoAndStop(5);
if ((sel == false) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if ((Key.isDown(38) and ((select1._currentframe == 1) or (select1._currentframe == 2))) and (keyok == true)) {
select1.gotoAndStop(1);
if ((sel == false) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if ((Key.isDown(38) and (select1._currentframe == 3)) and (keyok == true)) {
select1.gotoAndStop(2);
if ((sel == true) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
if ((Key.isDown(38) and (select1._currentframe == 4)) and (keyok == true)) {
select1.gotoAndStop(3);
if ((sel == false) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if ((Key.isDown(38) and (select1._currentframe == 5)) and (keyok == true)) {
select1.gotoAndStop(4);
if ((sel == true) and (_global.sndval == true)) {
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
_global.players = select1._currentframe;
if (Key.isDown(13) and (keyok == true)) {
if (_global.players == 1) {
if ((_global.sndval == true) and (enterpressed == false)) {
snd.gotoAndPlay("enter");
}
enterpressed = true;
_root.gotoAndStop("inonep");
}
if (_global.players == 2) {
if ((_global.sndval == true) and (enterpressed == false)) {
snd.gotoAndPlay("enter");
}
enterpressed = true;
_root.gotoAndStop("intwop");
}
if (_global.players == 3) {
keyok = false;
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
CMG_AS2.ScoreSubmitter.loadHighScorePage();
}
if (_global.players == 4) {
keyok = false;
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
getURL ("http://www.crazymonkeygames.com/", "_blank");
}
if (_global.players == 5) {
keyok = false;
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
getURL ("http://www.cappuccino-design.com/mokomoko/", "_blank");
}
}
};
select.onKeyUp = function () {
keyok = true;
};
Key.addListener(select);
stop();
Frame 4
var enterpressed = false;
restbtn2._alpha = 70;
if (_global.sndval == true) {
sndbtn2.gotoAndStop(1);
} else {
sndbtn2.gotoAndStop(3);
}
sndbtn2.onPress = function () {
_global.sndval = !_global.sndval;
if (_global.sndval == true) {
sndbtn2.gotoAndStop(2);
music.start(0, 2000);
}
if (_global.sndval == false) {
sndbtn2.gotoAndStop(4);
music.stop();
}
};
sndbtn2.onRollOver = function () {
if (_global.sndval == false) {
sndbtn2.gotoAndStop(4);
}
if (_global.sndval == true) {
sndbtn2.gotoAndStop(2);
}
};
sndbtn2.onRollOut = function () {
if (_global.sndval == false) {
sndbtn2.gotoAndStop(3);
}
if (_global.sndval == true) {
sndbtn2.gotoAndStop(1);
}
};
onEnterFrame = function () {
if ((this.inst1._currentframe == 35) or (this.inst1._currentframe == 55)) {
if (_global.sndval == true) {
this.snd.gotoAndPlay("square");
}
}
if (this.inst1._currentframe == this.inst1._totalframes) {
this.inst1.enter1.onPress = function () {
music.stop();
if ((_global.sndval == true) and (enterpressed == false)) {
snd.gotoAndPlay("enter");
}
enterpressed = true;
onEnterFrame = null;
_global.players = 1;
_root.gotoAndStop("moko");
};
if (Key.isDown(13)) {
music.stop();
if ((_global.sndval == true) and (enterpressed == false)) {
snd.gotoAndPlay("enter");
}
enterpressed = true;
onEnterFrame = null;
_global.players = 1;
_root.gotoAndStop("moko");
}
}
};
stop();
Frame 5
var enterpressed = false;
restbtn3._alpha = 70;
if (_global.sndval == true) {
sndbtn3.gotoAndStop(1);
} else {
sndbtn3.gotoAndStop(3);
}
sndbtn3.onPress = function () {
_global.sndval = !_global.sndval;
if (_global.sndval == true) {
sndbtn3.gotoAndStop(2);
music.start(0, 2000);
}
if (_global.sndval == false) {
sndbtn3.gotoAndStop(4);
music.stop();
}
};
sndbtn3.onRollOver = function () {
if (_global.sndval == false) {
sndbtn3.gotoAndStop(4);
}
if (_global.sndval == true) {
sndbtn3.gotoAndStop(2);
}
};
sndbtn3.onRollOut = function () {
if (_global.sndval == false) {
sndbtn3.gotoAndStop(3);
}
if (_global.sndval == true) {
sndbtn3.gotoAndStop(1);
}
};
onEnterFrame = function () {
if (((this.inst2._currentframe == 35) or (this.inst2._currentframe == 55)) or (this.inst2._currentframe == 75)) {
if (_global.sndval == true) {
this.snd.gotoAndPlay("square");
}
}
if (this.inst2._currentframe == this.inst2._totalframes) {
this.inst2.enter2.onPress = function () {
music.stop();
if ((_global.sndval == true) and (enterpressed == false)) {
snd.gotoAndPlay("enter");
}
enterpressed = true;
onEnterFrame = null;
_global.players = 2;
_root.gotoAndStop("moko");
};
if (Key.isDown(13)) {
music.stop();
if ((_global.sndval == true) and (enterpressed == false)) {
snd.gotoAndPlay("enter");
}
enterpressed = true;
onEnterFrame = null;
_global.players = 2;
_root.gotoAndStop("moko");
}
}
};
Frame 6
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("55ed354e", this, 10301, true);
var wallleft = 47.5;
var wallright = 502.5;
var wallcenterright = 291;
var wallcenterleft = 259;
var wallcenterh = 425;
var top = 70;
var velplat0 = 200;
var velplatmx = 1500;
var platwidth = 80;
var platheight = 20;
var brickwidth = 35;
var brickheight = 16;
var aplat = 4000;
var dplat = 10000;
var abonus = 200;
var fr = 60;
var dt = (1 / fr);
var dir1 = 0;
var dir2 = 0;
var col1 = 0;
var col2 = 0;
var stopping1 = false;
var stopping2 = false;
var keyListener = new Object();
var restartlistener = new Object();
var depth = 1;
var bx = 0;
var by = 0;
var bonqty = 0;
var pointsqty = 0;
var allpoints = new Array(8);
var bulletqty = 0;
var bulletdepth = 10000;
var bricks = new Array(18);
var allbonus = new Array();
var allbullet0 = new Array();
var allbullet1 = new Array();
var rand1 = 0;
var rand2 = 0;
var level = new Array(18);
var bricksnumber = 0;
var currentlevel = 0;
var balls = new Array();
var ballsnumber = 0;
var bmv = 0;
var velballmx = 500;
var velballmn = 200;
var balldepth = 8000;
var frame = 0;
var time = 0;
var nv = 1;
var moki = new Array();
var finished = false;
var ctime = 0;
var ttime = 0;
var cframe = -81;
var cframe2 = 0;
var cframe3 = 0;
var flowers = false;
var ok = false;
var ballsmax = 5;
var side;
var supb;
var timedrop = undefined;
var dropvel;
var score1 = 0;
var score2 = 0;
var mokopaused = false;
var pauseframe = -13;
var bricktime = 0;
var go = false;
var gameover1 = false;
var gameover2 = false;
var nl1 = 1;
var nll1 = 1;
var nl2 = 1;
var nll2 = 1;
var incr1;
var incr2;
var night = false;
var inv = false;
var restartquery = false;
var donothing = true;
var restartselect = false;
var hsubselect = false;
var selok = true;
var oh = false;
var db = false;
var randbonus = 50;
var fire0ok = true;
var fire1ok = true;
var detach0ok = true;
var detach1ok = true;
var key0wasdown = 0;
var key1wasdown = 0;
var scoresubmitted = false;
var gingle_start = new Sound();
var gingle_end = new Sound();
var game_over = new Sound();
var ending01_music = new Sound();
var ending02_music = new Sound();
var padscore = 5;
var sidescore = 10;
var brickscore = 20;
var bulletscore = 30;
var doubleballscore = 100;
var lifescore = 1000;
var largescore = 300;
var smallscore = 500;
var superballscore = 600;
var slowscore = 200;
var fastscore = 700;
var attachscore = 300;
var deathscore = -500;
var firescore = 500;
var dropscore = -100;
var dropotherscore = 100;
var points = 10000;
var hitscore = 100;
CMG_AS2.ScoreSubmitter.responseHandler = function (returncode) {
switch (returncode) {
case CMG_AS2.ScoreSubmitter.RETURNCODE_WORKING :
hsubclip.hs_window.hs_output.text = "Score is being sent...";
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_SUCCESS :
hsubclip.hs_window.hs_output.text = "Your score has been submitted!";
CMG_AS2.ScoreSubmitter.loadHighScorePage();
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_REJECTED :
hsubclip.hs_window.hs_output.text = "The server rejected your score!";
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_WRONGVERSION :
hsubclip.hs_window.hs_output.text = "This is the wrong version of the game!";
CMG_AS2.ScoreSubmitter.loadUpdatePage();
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_NETWORKERROR :
hsubclip.hs_window.hs_output.text = "Your score could not reach the server at this time.";
break;
default :
hsubclip.hs_window.hs_output.text = "Unknown error " + returnCode;
}
};
var level0 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [6, 6, 6, 6, 6, 6, 100, 6, 6, 6, 6, 6, 6], [47, 47, 47, 47, 47, 100, 100, 100, 47, 47, 47, 47, 47], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level1 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15], [19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36], [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level2 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [47, 47, 100, 36, 36, 36, 100, 17, 17, 17, 100, 42, 42], [3, 47, 100, 36, 35, 36, 100, 17, 18, 17, 100, 42, 20], [3, 47, 100, 36, 35, 36, 100, 17, 18, 17, 100, 42, 20], [47, 47, 100, 36, 36, 36, 100, 17, 17, 17, 100, 42, 42], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 1, 1, 1, 100, 12, 12, 12, 100, 31, 31, 31, 100], [100, 1, 0, 1, 100, 12, 11, 12, 100, 31, 2, 31, 100], [100, 1, 0, 1, 100, 12, 11, 12, 100, 31, 2, 31, 100], [100, 1, 1, 1, 100, 12, 12, 12, 100, 31, 31, 31, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level3 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 13, 13, 13, 13, 13, 13, 13, 100, 100, 100], [100, 100, 13, 14, 14, 14, 14, 14, 14, 14, 13, 100, 100], [100, 100, 13, 14, 14, 14, 14, 14, 14, 14, 13, 100, 100], [100, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 100], [100, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 100], [100, 13, 14, 37, 14, 14, 14, 14, 14, 37, 14, 13, 100], [100, 13, 14, 37, 14, 14, 14, 14, 14, 37, 14, 13, 100], [13, 14, 14, 37, 14, 14, 14, 14, 14, 37, 14, 14, 13], [13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 13], [100, 100, 13, 13, 13, 13, 13, 13, 13, 13, 13, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level4 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 19, 30, 47, 30, 36, 13, 36, 13, 36, 30], [100, 100, 19, 30, 47, 30, 36, 13, 36, 13, 36, 30, 47], [100, 19, 30, 47, 30, 36, 13, 36, 13, 36, 30, 47, 30], [19, 30, 47, 30, 36, 13, 36, 13, 36, 30, 47, 30, 19], [30, 47, 30, 36, 13, 36, 13, 36, 30, 47, 30, 19, 100], [47, 30, 36, 13, 36, 13, 36, 30, 47, 30, 19, 100, 100], [30, 36, 13, 36, 13, 36, 30, 47, 30, 19, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level5 = [[100, 100, 100, 100, 100, 31, 31, 31, 100, 100, 100, 100, 100], [100, 100, 100, 100, 31, 31, 31, 31, 100, 100, 100, 100, 100], [100, 100, 100, 31, 31, 31, 31, 31, 31, 31, 100, 100, 100], [100, 100, 100, 12, 46, 46, 12, 46, 100, 100, 100, 100, 100], [100, 100, 12, 46, 12, 46, 12, 46, 46, 46, 100, 100, 100], [100, 100, 12, 46, 46, 46, 46, 12, 46, 46, 100, 100, 100], [100, 100, 100, 12, 46, 46, 12, 12, 12, 12, 100, 100, 100], [100, 100, 100, 12, 46, 46, 46, 46, 46, 100, 100, 100, 100], [100, 100, 100, 100, 46, 46, 46, 46, 46, 100, 100, 100, 100], [100, 100, 100, 100, 31, 12, 31, 12, 100, 100, 100, 100, 100], [100, 100, 100, 31, 31, 12, 31, 31, 12, 100, 100, 100, 100], [100, 100, 100, 31, 31, 12, 31, 31, 12, 100, 100, 100, 100], [100, 100, 100, 31, 31, 12, 12, 12, 12, 100, 100, 100, 100], [100, 100, 100, 46, 46, 12, 20, 12, 12, 100, 100, 100, 100], [100, 100, 100, 100, 46, 12, 12, 12, 100, 100, 100, 100, 100], [100, 100, 100, 100, 31, 31, 31, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 31, 31, 31, 31, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level6 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [9, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 9], [2, 9, 100, 100, 100, 100, 100, 100, 100, 100, 100, 9, 2], [2, 20, 9, 100, 100, 100, 100, 100, 100, 100, 9, 20, 2], [3, 20, 2, 9, 100, 100, 100, 100, 100, 9, 2, 20, 3], [3, 19, 2, 20, 9, 100, 100, 100, 9, 20, 2, 19, 3], [3, 19, 3, 20, 2, 9, 100, 9, 2, 20, 3, 19, 3], [3, 19, 3, 19, 2, 20, 9, 20, 2, 19, 3, 19, 3], [3, 19, 3, 20, 2, 9, 100, 9, 2, 20, 3, 19, 3], [3, 19, 2, 20, 9, 100, 100, 100, 9, 20, 2, 19, 3], [3, 20, 2, 9, 100, 100, 100, 100, 100, 9, 2, 20, 3], [2, 20, 9, 100, 100, 100, 100, 100, 100, 100, 9, 20, 2], [2, 9, 100, 100, 100, 100, 100, 100, 100, 100, 100, 9, 2], [9, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 9], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level7 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 3, 100, 100, 100, 100, 100, 100, 100, 14, 100, 100], [100, 3, 3, 3, 100, 100, 100, 100, 100, 14, 14, 14, 100], [3, 3, 3, 3, 3, 100, 100, 100, 100, 14, 14, 14, 100], [3, 3, 3, 100, 100, 100, 100, 100, 14, 14, 14, 14, 14], [3, 3, 100, 100, 20, 100, 20, 100, 14, 20, 14, 20, 14], [3, 3, 3, 100, 100, 100, 100, 100, 14, 37, 14, 37, 14], [3, 3, 3, 3, 3, 100, 100, 100, 14, 14, 14, 14, 14], [100, 3, 3, 3, 100, 100, 100, 100, 14, 14, 14, 14, 14], [100, 100, 3, 100, 100, 100, 100, 100, 14, 100, 14, 100, 14], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level8 = [[100, 23, 100, 100, 100, 100, 23, 100, 100, 100, 100, 23, 100], [100, 8, 100, 100, 100, 100, 8, 100, 100, 100, 100, 8, 100], [30, 30, 30, 100, 100, 30, 30, 30, 100, 100, 30, 30, 30], [100, 100, 100, 30, 30, 100, 100, 100, 30, 30, 100, 100, 100], [40, 48, 40, 100, 100, 40, 48, 40, 100, 100, 40, 48, 40], [48, 41, 48, 48, 48, 48, 41, 48, 48, 48, 48, 41, 48], [40, 48, 40, 100, 100, 40, 48, 40, 100, 100, 40, 48, 40], [100, 100, 100, 30, 30, 100, 100, 100, 30, 30, 100, 100, 100], [30, 30, 30, 100, 100, 30, 30, 30, 100, 100, 30, 30, 30], [100, 8, 100, 100, 100, 100, 8, 100, 100, 100, 100, 8, 100], [100, 48, 100, 48, 48, 100, 48, 100, 48, 48, 100, 48, 100], [48, 48, 48, 100, 100, 48, 48, 48, 100, 100, 48, 48, 48], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level9 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 30, 30, 30, 100, 100, 100, 100, 100], [100, 100, 100, 100, 30, 30, 30, 30, 30, 100, 100, 100, 100], [100, 100, 100, 100, 30, 19, 19, 19, 30, 100, 100, 100, 100], [100, 100, 100, 30, 19, 19, 8, 19, 19, 30, 100, 100, 100], [100, 100, 100, 30, 19, 8, 8, 8, 19, 30, 100, 100, 100], [100, 100, 30, 19, 8, 8, 10, 8, 8, 19, 30, 100, 100], [100, 100, 30, 19, 8, 10, 10, 10, 8, 19, 30, 100, 100], [100, 100, 30, 19, 8, 10, 20, 10, 8, 19, 30, 100, 100], [100, 100, 30, 19, 8, 10, 20, 10, 8, 19, 30, 100, 100], [100, 100, 30, 19, 8, 10, 20, 10, 8, 19, 30, 100, 100], [100, 100, 30, 19, 8, 10, 10, 10, 8, 19, 30, 100, 100], [100, 100, 30, 19, 8, 8, 10, 8, 8, 19, 30, 100, 100], [100, 100, 100, 30, 19, 8, 8, 8, 8, 30, 100, 100, 100], [100, 100, 100, 30, 19, 19, 8, 19, 19, 30, 100, 100, 100], [100, 100, 100, 100, 30, 19, 19, 19, 30, 100, 100, 100, 100], [100, 100, 100, 100, 30, 30, 30, 30, 30, 100, 100, 100, 100], [100, 100, 100, 100, 100, 30, 30, 30, 100, 100, 100, 100, 100]];
var level10 = [[100, 100, 100, 100, 100, 100, 47, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 47, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 47, 47, 47, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 47, 47, 47, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 47, 47, 47, 100, 100, 100, 100, 100], [100, 100, 100, 100, 47, 47, 47, 47, 47, 100, 100, 100, 100], [47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47], [100, 47, 47, 47, 47, 37, 47, 37, 47, 47, 47, 47, 100], [100, 47, 47, 47, 47, 37, 47, 37, 47, 47, 47, 47, 100], [100, 100, 47, 47, 47, 47, 47, 47, 47, 47, 47, 100, 100], [100, 100, 47, 47, 47, 47, 47, 47, 47, 47, 47, 100, 100], [100, 100, 100, 47, 37, 47, 47, 47, 37, 47, 100, 100, 100], [100, 100, 47, 47, 47, 37, 37, 37, 47, 47, 47, 100, 100], [100, 100, 47, 47, 47, 47, 47, 47, 47, 47, 47, 100, 100], [100, 100, 47, 47, 47, 47, 100, 47, 47, 47, 47, 100, 100], [100, 47, 47, 47, 47, 100, 100, 100, 47, 47, 47, 47, 100], [100, 47, 47, 47, 100, 100, 100, 100, 100, 47, 47, 47, 100], [100, 47, 47, 100, 100, 100, 100, 100, 100, 100, 47, 47, 100]];
var level11 = [[100, 100, 100, 48, 100, 100, 100, 100, 100, 48, 100, 100, 100], [100, 100, 48, 33, 48, 100, 100, 100, 48, 33, 48, 100, 100], [100, 100, 48, 48, 100, 100, 34, 100, 100, 48, 48, 100, 100], [100, 48, 33, 48, 100, 34, 34, 34, 100, 48, 33, 48, 100], [100, 100, 48, 100, 34, 34, 34, 34, 34, 100, 48, 100, 100], [100, 48, 100, 100, 34, 34, 34, 34, 34, 100, 100, 48, 100], [48, 33, 48, 100, 34, 33, 34, 33, 34, 100, 48, 33, 48], [48, 33, 48, 100, 34, 34, 34, 34, 34, 100, 48, 33, 48], [100, 48, 100, 100, 34, 34, 34, 34, 34, 100, 100, 48, 100], [100, 100, 48, 100, 100, 34, 34, 34, 100, 100, 48, 100, 100], [100, 48, 33, 48, 100, 100, 34, 100, 100, 48, 33, 48, 100], [100, 100, 48, 100, 48, 100, 100, 100, 48, 100, 48, 100, 100], [100, 100, 100, 48, 33, 48, 100, 48, 33, 48, 100, 100, 100], [100, 100, 100, 100, 48, 100, 100, 100, 48, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level12 = [[39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39], [39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 42, 42], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [43, 43, 43, 43, 43, 19, 19, 19, 43, 43, 43, 43, 43], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [25, 25, 43, 43, 43, 43, 43, 43, 43, 43, 43, 25, 25], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level13 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [8, 8, 8, 10, 6, 6, 6, 6, 6, 10, 8, 8, 8], [35, 35, 8, 100, 6, 9, 9, 9, 6, 100, 8, 35, 35], [4, 35, 8, 100, 6, 9, 4, 9, 6, 100, 8, 35, 4], [4, 35, 8, 100, 6, 9, 4, 9, 6, 100, 8, 35, 4], [35, 35, 8, 100, 6, 9, 9, 9, 6, 100, 8, 35, 35], [8, 8, 8, 10, 6, 6, 6, 6, 6, 10, 8, 8, 8], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 18, 18, 18, 18, 18, 10, 11, 11, 11, 11, 11, 100], [100, 18, 27, 27, 27, 18, 100, 11, 27, 27, 27, 11, 100], [100, 18, 27, 4, 27, 18, 100, 11, 27, 4, 27, 11, 100], [100, 18, 27, 4, 27, 18, 100, 11, 27, 4, 27, 11, 100], [100, 18, 27, 27, 27, 18, 100, 11, 27, 27, 27, 11, 100], [100, 18, 18, 18, 18, 18, 10, 11, 11, 11, 11, 11, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [41, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 41]];
var level14 = [[100, 100, 100, 100, 100, 19, 100, 19, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 19, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 33, 33, 33, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 33, 33, 33, 100, 100, 100, 100, 100], [100, 100, 100, 100, 33, 33, 33, 33, 33, 100, 100, 100, 100], [100, 100, 100, 33, 25, 33, 33, 33, 25, 33, 100, 100, 100], [100, 27, 100, 33, 25, 25, 33, 25, 25, 33, 100, 27, 100], [100, 24, 100, 33, 25, 25, 33, 25, 25, 33, 100, 24, 100], [100, 27, 100, 33, 33, 25, 25, 25, 33, 33, 100, 27, 100], [100, 100, 100, 100, 33, 33, 25, 33, 33, 100, 100, 100, 100], [100, 100, 100, 100, 33, 33, 25, 33, 33, 100, 100, 100, 100], [100, 100, 100, 100, 100, 33, 33, 33, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 33, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 19, 100, 19, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 19, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 19, 100, 19, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level15 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 42, 100, 100, 100, 100, 100, 100, 42, 100, 100], [100, 100, 100, 100, 100, 100, 13, 100, 100, 100, 100, 100, 100], [100, 42, 100, 100, 13, 13, 35, 13, 13, 100, 100, 42, 100], [100, 100, 100, 13, 35, 35, 5, 35, 35, 13, 100, 100, 100], [100, 100, 13, 35, 5, 5, 8, 5, 5, 35, 13, 100, 100], [100, 100, 13, 35, 5, 8, 20, 8, 5, 35, 13, 100, 100], [100, 13, 35, 5, 8, 20, 20, 20, 8, 5, 35, 13, 100], [100, 13, 35, 5, 8, 20, 20, 20, 8, 5, 35, 13, 100], [100, 13, 35, 5, 8, 20, 20, 20, 8, 5, 35, 13, 100], [100, 13, 35, 5, 8, 20, 20, 20, 8, 5, 35, 13, 100], [100, 100, 13, 35, 5, 8, 20, 8, 5, 35, 13, 100, 100], [100, 100, 13, 35, 5, 8, 20, 8, 5, 35, 13, 100, 100], [100, 100, 100, 13, 35, 35, 8, 35, 35, 13, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level16 = [[23, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 23], [23, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 23], [23, 33, 23, 100, 100, 100, 100, 100, 100, 100, 23, 33, 23], [23, 1, 23, 100, 100, 1, 1, 1, 100, 100, 23, 1, 23], [23, 1, 23, 100, 100, 1, 33, 1, 100, 100, 23, 1, 23], [23, 23, 23, 100, 100, 1, 1, 1, 100, 100, 23, 23, 23], [26, 26, 23, 100, 100, 100, 100, 100, 100, 100, 23, 26, 26], [26, 26, 23, 23, 100, 100, 100, 100, 100, 23, 23, 26, 26], [100, 100, 100, 23, 25, 25, 25, 25, 25, 23, 100, 100, 100], [100, 100, 100, 23, 1, 1, 1, 1, 1, 23, 100, 100, 100], [100, 100, 100, 23, 25, 25, 25, 25, 25, 23, 100, 100, 100], [100, 100, 100, 23, 100, 100, 100, 100, 100, 23, 100, 100, 100], [100, 100, 100, 23, 100, 100, 100, 100, 100, 23, 100, 100, 100], [100, 100, 100, 23, 26, 26, 26, 26, 26, 23, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level17 = [[44, 25, 44, 44, 44, 44, 44, 44, 44, 44, 44, 25, 44], [44, 100, 100, 8, 100, 35, 30, 35, 100, 8, 100, 100, 44], [44, 100, 8, 100, 8, 35, 30, 35, 8, 100, 8, 100, 44], [44, 100, 44, 44, 44, 44, 44, 44, 44, 44, 44, 100, 44], [44, 100, 100, 8, 100, 35, 30, 35, 100, 8, 100, 100, 44], [44, 100, 8, 100, 8, 35, 30, 35, 8, 100, 8, 100, 44], [44, 100, 44, 44, 44, 44, 44, 44, 44, 44, 44, 100, 44], [44, 100, 100, 8, 100, 35, 30, 35, 100, 8, 100, 100, 44], [44, 100, 8, 100, 8, 35, 30, 35, 8, 100, 8, 100, 44], [44, 100, 44, 44, 44, 44, 44, 44, 44, 44, 44, 100, 44], [44, 100, 100, 8, 100, 35, 30, 35, 100, 8, 100, 100, 44], [44, 100, 8, 100, 8, 35, 30, 35, 8, 100, 8, 100, 44], [44, 100, 44, 44, 44, 44, 44, 44, 44, 44, 44, 100, 44], [44, 100, 100, 8, 100, 35, 30, 35, 100, 8, 100, 100, 44], [44, 100, 8, 100, 8, 35, 30, 35, 8, 100, 8, 100, 44], [44, 100, 44, 44, 44, 44, 44, 44, 44, 44, 44, 100, 44], [44, 100, 100, 100, 100, 39, 39, 39, 100, 100, 100, 100, 44], [44, 100, 100, 100, 100, 100, 39, 100, 100, 100, 100, 100, 44]];
var level18 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [24, 100, 24, 100, 24, 100, 100, 100, 24, 100, 24, 100, 24], [24, 100, 24, 100, 24, 100, 100, 100, 24, 100, 24, 100, 24], [24, 24, 24, 24, 24, 100, 100, 100, 24, 24, 24, 24, 24], [100, 28, 28, 28, 100, 100, 100, 100, 100, 28, 28, 28, 100], [100, 28, 28, 28, 100, 100, 100, 100, 100, 28, 28, 28, 100], [100, 28, 42, 28, 100, 100, 100, 100, 100, 28, 42, 28, 100], [100, 28, 42, 28, 24, 100, 24, 100, 24, 28, 42, 28, 100], [100, 28, 28, 28, 24, 24, 24, 24, 24, 28, 28, 28, 100], [100, 28, 28, 28, 24, 28, 28, 28, 24, 28, 28, 28, 100], [100, 28, 42, 28, 24, 28, 28, 28, 24, 28, 42, 28, 100], [100, 28, 42, 28, 24, 28, 42, 28, 24, 28, 42, 28, 100], [100, 28, 28, 28, 24, 28, 42, 28, 24, 28, 28, 28, 100], [100, 28, 28, 28, 24, 28, 42, 28, 24, 28, 28, 28, 100], [16, 28, 28, 28, 24, 28, 28, 28, 24, 28, 28, 28, 16], [16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level19 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [6, 100, 100, 100, 100, 100, 6, 100, 100, 100, 100, 100, 6], [14, 6, 100, 100, 100, 6, 14, 6, 100, 100, 100, 6, 14], [10, 14, 6, 20, 6, 14, 10, 14, 6, 20, 6, 14, 10], [14, 6, 20, 30, 20, 6, 14, 6, 20, 30, 20, 6, 14], [6, 20, 30, 8, 30, 20, 6, 20, 30, 8, 30, 20, 6], [14, 6, 20, 30, 20, 6, 14, 6, 20, 30, 20, 6, 14], [10, 14, 6, 20, 6, 14, 10, 14, 6, 20, 6, 14, 10], [14, 6, 20, 30, 20, 6, 14, 6, 20, 30, 20, 6, 14], [6, 20, 30, 8, 30, 20, 6, 20, 30, 8, 30, 20, 6], [14, 6, 20, 30, 20, 6, 14, 6, 20, 30, 20, 6, 14], [10, 14, 6, 20, 6, 14, 10, 14, 6, 20, 6, 14, 10], [14, 6, 100, 100, 100, 6, 14, 6, 100, 100, 100, 6, 14], [6, 100, 100, 100, 100, 100, 6, 100, 100, 100, 100, 100, 6], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level20 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 6, 100, 100, 6], [100, 100, 100, 100, 20, 20, 100, 100, 100, 6, 100, 100, 6], [100, 100, 100, 20, 20, 100, 100, 20, 100, 6, 6, 6, 6], [100, 100, 31, 31, 31, 31, 31, 100, 100, 6, 100, 100, 6], [100, 31, 100, 31, 31, 100, 100, 100, 100, 6, 100, 100, 6], [100, 20, 100, 31, 31, 100, 100, 100, 100, 6, 6, 6, 6], [100, 100, 100, 36, 36, 100, 100, 100, 100, 6, 100, 100, 6], [100, 100, 36, 36, 36, 36, 36, 100, 100, 6, 100, 100, 6], [100, 36, 100, 100, 100, 100, 36, 100, 100, 6, 6, 6, 6], [20, 100, 100, 46, 46, 100, 20, 20, 100, 6, 100, 100, 6], [100, 100, 100, 46, 46, 100, 100, 100, 100, 6, 100, 100, 6], [100, 100, 100, 100, 100, 100, 100, 100, 100, 6, 6, 6, 6], [1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 6], [0, 100, 0, 100, 0, 100, 0, 100, 0, 6, 0, 100, 6], [1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level21 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100, 100], [100, 100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100], [100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100, 100], [100, 100, 48, 100, 48, 100, 48, 100, 48, 100, 48, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 24, 100, 24, 100, 24, 100, 24, 100, 24, 100, 24, 100], [100, 24, 100, 24, 100, 24, 100, 24, 100, 24, 100, 24, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level22 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 48, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 48, 3, 48, 100, 100, 100, 100, 100], [100, 100, 100, 100, 48, 3, 3, 3, 48, 100, 100, 100, 100], [100, 100, 100, 100, 48, 3, 3, 3, 48, 100, 100, 100, 100], [100, 100, 100, 48, 3, 37, 3, 37, 3, 48, 100, 100, 100], [100, 100, 100, 48, 3, 5, 5, 5, 3, 48, 100, 100, 100], [100, 100, 100, 48, 3, 3, 5, 3, 3, 48, 100, 100, 100], [100, 100, 100, 100, 48, 3, 3, 3, 48, 100, 100, 100, 100], [100, 100, 100, 100, 48, 3, 3, 3, 48, 100, 100, 100, 100], [100, 100, 100, 100, 100, 48, 48, 48, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level23 = [[13, 11, 11, 11, 13, 11, 11, 11, 13, 11, 11, 11, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [11, 11, 13, 11, 11, 11, 13, 11, 11, 11, 13, 11, 11], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [13, 11, 11, 11, 13, 11, 11, 11, 13, 11, 11, 11, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [11, 11, 13, 11, 11, 11, 13, 11, 11, 11, 13, 11, 11], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [13, 11, 11, 11, 13, 11, 11, 11, 13, 11, 11, 11, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13, 100, 13], [11, 11, 13, 11, 11, 11, 13, 11, 11, 11, 13, 11, 11], [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level24 = [[100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [24, 24, 24, 24, 24, 100, 100, 100, 23, 23, 23, 23, 23], [24, 100, 100, 100, 24, 100, 100, 100, 23, 100, 100, 100, 23], [24, 100, 39, 100, 24, 100, 100, 100, 23, 100, 40, 100, 23], [24, 100, 100, 100, 24, 100, 100, 100, 23, 100, 100, 100, 23], [24, 24, 48, 24, 24, 100, 100, 100, 23, 23, 48, 23, 23], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 22, 22, 22, 22, 22, 100, 100, 100, 100], [100, 100, 100, 100, 22, 100, 100, 100, 22, 100, 100, 100, 100], [100, 100, 100, 100, 22, 100, 41, 100, 22, 100, 100, 100, 100], [100, 100, 100, 100, 22, 100, 100, 100, 22, 100, 100, 100, 100], [100, 100, 100, 100, 22, 22, 48, 22, 22, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level25 = [[4, 4, 4, 5, 100, 100, 100, 100, 100, 5, 4, 4, 4], [100, 100, 100, 100, 5, 4, 4, 4, 5, 100, 100, 100, 100], [100, 100, 100, 100, 100, 20, 20, 20, 100, 100, 100, 100, 100], [4, 4, 4, 5, 100, 20, 20, 20, 100, 5, 4, 4, 4], [100, 100, 100, 100, 5, 4, 4, 4, 5, 100, 100, 100, 100], [100, 100, 100, 100, 100, 20, 20, 20, 100, 100, 100, 100, 100], [4, 4, 4, 25, 100, 20, 20, 20, 100, 25, 4, 4, 4], [100, 100, 100, 100, 25, 4, 4, 4, 25, 100, 100, 100, 100], [100, 100, 100, 100, 100, 20, 20, 20, 100, 100, 100, 100, 100], [4, 4, 4, 25, 100, 20, 20, 20, 100, 25, 4, 4, 4], [100, 100, 100, 100, 25, 4, 4, 4, 25, 100, 100, 100, 100], [100, 100, 100, 100, 100, 20, 20, 20, 100, 100, 100, 100, 100], [4, 4, 4, 5, 100, 20, 20, 20, 100, 5, 4, 4, 4], [100, 100, 100, 100, 5, 4, 4, 4, 5, 100, 100, 100, 100], [100, 100, 100, 100, 100, 20, 20, 20, 100, 100, 100, 100, 100], [4, 4, 4, 5, 100, 20, 20, 20, 100, 5, 4, 4, 4], [100, 100, 100, 100, 5, 4, 4, 4, 5, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level26 = [[24, 100, 100, 100, 24, 100, 100, 100, 24, 100, 100, 100, 24], [100, 100, 100, 100, 100, 24, 100, 24, 100, 100, 100, 100, 100], [100, 100, 25, 25, 100, 100, 24, 100, 100, 25, 25, 100, 100], [100, 25, 25, 25, 25, 100, 100, 100, 25, 25, 25, 25, 100], [25, 25, 100, 100, 25, 25, 24, 25, 25, 100, 100, 25, 25], [25, 100, 100, 100, 100, 25, 24, 25, 100, 100, 100, 100, 25], [25, 100, 24, 100, 100, 25, 24, 25, 100, 100, 24, 100, 25], [25, 100, 25, 100, 100, 25, 24, 25, 100, 100, 25, 100, 25], [100, 25, 100, 100, 100, 25, 24, 25, 100, 100, 100, 25, 100], [100, 100, 100, 100, 100, 25, 24, 25, 100, 100, 100, 100, 100], [100, 100, 100, 100, 25, 25, 100, 25, 25, 100, 100, 100, 100], [25, 25, 25, 25, 25, 100, 100, 100, 25, 25, 25, 25, 25], [100, 25, 25, 25, 100, 100, 48, 100, 100, 25, 25, 25, 100], [100, 100, 100, 100, 100, 48, 48, 48, 100, 100, 100, 100, 100], [100, 100, 24, 100, 100, 48, 48, 48, 100, 100, 24, 100, 100], [100, 24, 27, 24, 100, 100, 48, 100, 100, 24, 27, 24, 100], [24, 27, 100, 27, 24, 100, 100, 100, 24, 27, 100, 27, 24], [27, 100, 100, 100, 27, 100, 100, 100, 27, 100, 100, 100, 27]];
var level27 = [[21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [23, 100, 23, 100, 23, 100, 23, 100, 23, 100, 23, 100, 23], [21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21], [100, 100, 100, 21, 21, 21, 21, 21, 21, 21, 100, 100, 100], [100, 100, 100, 100, 48, 100, 48, 100, 48, 100, 100, 100, 100], [100, 100, 100, 48, 100, 48, 100, 48, 100, 48, 100, 100, 100], [100, 100, 21, 47, 47, 47, 47, 47, 47, 47, 21, 100, 100], [100, 100, 21, 31, 100, 100, 31, 100, 100, 31, 21, 100, 100], [100, 100, 21, 31, 100, 100, 31, 100, 100, 31, 21, 100, 100], [100, 100, 21, 47, 47, 47, 47, 47, 47, 47, 21, 100, 100], [100, 100, 21, 31, 100, 100, 31, 100, 100, 31, 21, 100, 100], [100, 100, 21, 31, 100, 100, 31, 100, 100, 31, 21, 100, 100], [100, 100, 21, 47, 47, 47, 47, 47, 47, 47, 21, 100, 100], [100, 100, 21, 31, 100, 100, 31, 100, 100, 31, 21, 100, 100], [100, 100, 21, 31, 100, 100, 31, 100, 100, 31, 21, 100, 100], [100, 100, 21, 47, 47, 47, 47, 47, 47, 47, 21, 100, 100], [100, 100, 21, 21, 21, 21, 21, 21, 21, 21, 21, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
var level28 = [[100, 100, 3, 100, 100, 100, 2, 100, 100, 100, 6, 100, 100], [100, 100, 3, 100, 100, 100, 2, 100, 100, 100, 6, 100, 100], [100, 100, 3, 100, 100, 100, 2, 100, 100, 100, 6, 100, 100], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 3, 100, 4, 100, 2, 100, 4, 100, 6, 100, 4], [4, 100, 100, 100, 4, 100, 100, 100, 4, 100, 100, 100, 4], [4, 100, 100, 100, 4, 100, 100, 100, 4, 100, 100, 100, 4], [4, 100, 100, 100, 4, 100, 100, 100, 4, 100, 100, 100, 4]];
var level29 = [[23, 8, 9, 7, 35, 36, 23, 36, 35, 7, 9, 8, 23], [8, 23, 9, 7, 35, 36, 23, 36, 35, 7, 9, 23, 8], [9, 9, 23, 7, 35, 36, 36, 36, 35, 7, 23, 9, 9], [7, 7, 7, 23, 35, 35, 35, 35, 35, 23, 7, 7, 7], [35, 35, 35, 35, 23, 7, 7, 7, 23, 35, 35, 35, 35], [36, 36, 36, 35, 7, 48, 48, 48, 7, 35, 36, 36, 36], [23, 23, 36, 35, 7, 48, 40, 48, 7, 35, 36, 23, 23], [36, 36, 36, 35, 7, 48, 48, 48, 7, 35, 36, 36, 36], [35, 35, 35, 35, 23, 7, 7, 7, 23, 35, 35, 35, 35], [7, 7, 7, 23, 35, 35, 35, 35, 35, 23, 7, 7, 7], [9, 9, 23, 7, 35, 36, 36, 36, 35, 7, 23, 9, 9], [8, 23, 9, 7, 35, 36, 23, 36, 35, 7, 9, 23, 8], [23, 8, 9, 7, 35, 36, 23, 36, 35, 7, 9, 8, 23], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100], [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]];
gingle_start.attachSound("gingle1");
gingle_end.attachSound("gingle2");
game_over.attachSound("gosound");
ending01_music.attachSound("ending01");
ending02_music.attachSound("ending02");
if (_global.cheat2 == true) {
randbonus = 12;
}
if (_global.sndval == false) {
gingle_start.setVolume(0);
gingle_end.setVolume(0);
game_over.setVolume(0);
ending01_music.setVolume(0);
ending02_music.setVolume(0);
}
plyrs = _global.players;
plat1.cacheAsBitmap = true;
plat2.cacheAsBitmap = true;
bglevel1.cacheAsBitmap = true;
if (_global.sndval == true) {
sndbtn4.gotoAndStop(1);
} else {
sndbtn4.gotoAndStop(3);
}
sndbtn4.onPress = function () {
_global.sndval = !_global.sndval;
if (_global.sndval == false) {
sndbtn4.gotoAndStop(4);
gingle_start.setVolume(0);
gingle_end.setVolume(0);
game_over.setVolume(0);
ending01_music.setVolume(0);
ending02_music.setVolume(0);
}
if (_global.sndval == true) {
sndbtn4.gotoAndStop(2);
gingle_start.setVolume(100);
gingle_end.setVolume(100);
game_over.setVolume(100);
ending01_music.setVolume(100);
ending02_music.setVolume(100);
}
};
sndbtn4.onRollOver = function () {
if (_global.sndval == false) {
sndbtn4.gotoAndStop(4);
}
if (_global.sndval == true) {
sndbtn4.gotoAndStop(2);
}
};
sndbtn4.onRollOut = function () {
if (_global.sndval == false) {
sndbtn4.gotoAndStop(3);
}
if (_global.sndval == true) {
sndbtn4.gotoAndStop(1);
}
};
restbtn4._alpha = 100;
restbtn4.onRollOver = function () {
restbtn4.gotoAndStop(2);
};
restbtn4.onRollOut = function () {
restbtn4.gotoAndStop(1);
};
restbtn4.onPress = function () {
if ((restartquery == false) and (donothing == false)) {
restartquery = true;
pausegame();
Key.addListener(restartlistener);
attachMovie("rest", "restclip", 200002);
restclip._x = 138;
restclip._y = 230;
restclip.window.no.gotoAndPlay(5);
restclip.window.yeshit.onRollOver = function () {
if ((restclip._currentframe == restclip._totalframes) and (restartselect == false)) {
if (_global.sndval == true) {
snd.gotoAndPlay("select");
}
restclip.window.no.gotoAndStop(1);
restclip.window.yes.gotoAndPlay(2);
restartselect = true;
}
};
restclip.window.nohit.onRollOver = function () {
if ((restclip._currentframe == restclip._totalframes) and (restartselect == true)) {
if (_global.sndval == true) {
snd.gotoAndPlay("select");
}
restclip.window.no.gotoAndPlay(2);
restclip.window.yes.gotoAndStop(1);
restartselect = false;
}
};
restclip.window.yeshit.onPress = function () {
if (_global.sndval == true) {
if (selok == true) {
snd.gotoAndPlay("enter");
selok = false;
}
}
restartquery = false;
removeMovieClip(restclip);
restartlistener.onKeyDown = null;
restart();
};
restclip.window.nohit.onPress = function () {
if (_global.sndval == true) {
if (selok == true) {
snd.gotoAndPlay("enter");
selok = false;
}
}
restartquery = false;
removeMovieClip(restclip);
moko();
};
onEnterFrame = function () {
if (restclip._currentframe == 20) {
if (_global.sndval == true) {
this.snd.gotoAndPlay("square");
onEnterFrame = null;
}
}
};
}
};
restartlistener.onKeyDown = function () {
if (restclip._currentframe == restclip._totalframes) {
if (((Key.isDown(39) and (!Key.isDown(37))) and (restartselect == false)) and (restartquery == true)) {
if (_global.sndval == true) {
snd.gotoAndPlay("select");
}
restclip.window.no.gotoAndStop(1);
restclip.window.yes.gotoAndPlay(2);
restartselect = true;
}
if (((Key.isDown(37) and (!Key.isDown(39))) and (restartselect == true)) and (restartquery == true)) {
if (_global.sndval == true) {
snd.gotoAndPlay("select");
}
restclip.window.no.gotoAndPlay(2);
restclip.window.yes.gotoAndStop(1);
restartselect = false;
}
if (Key.isDown(13) and (restartquery == true)) {
if (_global.sndval == true) {
if (selok == true) {
snd.gotoAndPlay("enter");
selok = false;
}
}
if (restartselect == false) {
restartquery = false;
removeMovieClip(restclip);
moko();
}
if (restartselect == true) {
restartquery = false;
removeMovieClip(restclip);
restartlistener.onKeyDown = null;
restart();
}
}
}
};
select.onKeyDown = null;
if (plyrs == 1) {
if (_global.cheat3 == false) {
attachMovie("scores1clip", "scores", 99100);
scores._x = 52.5;
scores._y = 32;
attachMovie("plat2clip", "plat2", 100001);
if (_global.cheat4 == false) {
plat2._xscale = 112;
plat2._yscale = 112;
plat2._x = 207 + plat2._width;
plat2._y = 452.05;
} else {
plat2._xscale = 180;
plat2._yscale = 180;
plat2._x = 169 + plat2._width;
plat2._y = 452.05;
}
} else {
attachMovie("scores21clip", "scores", 99100);
scores._x = 52.5;
scores._y = 32;
attachMovie("plat1clip", "plat1", 100001);
if (_global.cheat4 == false) {
plat1._xscale = 112;
plat1._yscale = 112;
plat1._x = 207 + plat1._width;
plat1._y = 452.05;
} else {
plat1._xscale = 180;
plat1._yscale = 180;
plat1._x = 169 + plat1._width;
plat1._y = 452.05;
}
}
scores.lev = currentlevel + 1;
if ((_global.cheat1 == false) and (_global.cheat3 == false)) {
moki.push({movie:(MovieClip = eval (plat2)), vel:(Number = velplat0), stage:(Number = 1), stopping:(Boolean = false), lives:(Number = 5), dir:Number, attach:(Boolean = false), fire:(Boolean = false), lasttime:(Number = 0), timeattach:(Number = 0), free:(Boolean = true)});
} else if ((_global.cheat3 == true) and (_global.cheat1 == true)) {
moki.push({movie:(MovieClip = eval (plat1)), vel:(Number = velplat0), stage:(Number = 1), stopping:(Boolean = false), lives:(Number = 500), dir:Number, attach:(Boolean = false), fire:(Boolean = false), lasttime:(Number = 0), timeattach:(Number = 0), free:(Boolean = true)});
} else if ((_global.cheat1 == true) and (_global.cheat3 == false)) {
moki.push({movie:(MovieClip = eval (plat2)), vel:(Number = velplat0), stage:(Number = 1), stopping:(Boolean = false), lives:(Number = 500), dir:Number, attach:(Boolean = false), fire:(Boolean = false), lasttime:(Number = 0), timeattach:(Number = 0), free:(Boolean = true)});
} else if ((_global.cheat1 == false) and (_global.cheat3 == true)) {
moki.push({movie:(MovieClip = eval (plat1)), vel:(Number = velplat0), stage:(Number = 1), stopping:(Boolean = false), lives:(Number = 5), dir:Number, attach:(Boolean = false), fire:(Boolean = false), lasttime:(Number = 0), timeattach:(Number = 0), free:(Boolean = true)});
}
velplat0 = 100;
velplatmx = 3000;
aplat = 4700;
dplat = 24000;
}
if (plyrs == 2) {
attachMovie("scoresclip", "scores", 99100);
scores._x = 52.5;
scores._y = 32;
scores.lev = currentlevel + 1;
attachMovie("colonna", "colonna", 99000);
colonna._x = 260;
colonna._y = 425;
attachMovie("plat1clip", "plat1", 100000);
attachMovie("plat2clip", "plat2", 100001);
plat1._x = 400;
plat1._y = 452.05;
plat2._y = 452.05;
plat2._x = 156;
mk = 0;
while (mk < plyrs) {
if (_global.cheat1 == false) {
moki.push({movie:(MovieClip = eval ("plat" + (mk + 1))), vel:(Number = velplat0), stage:(Number = 1), stopping:(Boolean = false), lives:(Number = 5), dir:Number, attach:(Boolean = false), fire:(Boolean = false), lasttime:(Number = 0), timeattach:(Number = 0), free:(Boolean = true)});
} else {
moki.push({movie:(MovieClip = eval ("plat" + (mk + 1))), vel:(Number = velplat0), stage:(Number = 1), stopping:(Boolean = false), lives:(Number = 500), dir:Number, attach:(Boolean = false), fire:(Boolean = false), lasttime:(Number = 0), timeattach:(Number = 0), free:(Boolean = true)});
}
mk++;
}
}
moveplat = function (p, plat, v, d, s1, leftlimit, rightlimit) {
var _local1 = (plat._x + ((d * v) * dt)) + ((((d * 0.5) * aplat) * dt) * dt);
if (((_local1 - (plat._width / 2)) >= (leftlimit + 0)) and ((_local1 + (plat._width / 2)) <= (rightlimit - 0))) {
if (s1 == false) {
if (v == 0) {
v = velplat0;
}
plat._x = _local1;
v = v + (aplat * dt);
} else if (Math.round(v) > velplat0) {
plat._x = _local1;
v = v - (dplat * dt);
} else {
v = 0;
}
} else if ((_local1 - (plat._width / 2)) < (leftlimit + 0)) {
plat._x = (leftlimit + 0) + (plat._width / 2);
v = 0;
} else if ((_local1 + (plat._width / 2)) > (rightlimit - 0)) {
plat._x = (rightlimit - 0) - (plat._width / 2);
v = 0;
}
moki[p - 1].vel = v;
h = 0;
while (h < ballsmax) {
if ((balls[h].exist == true) and (balls[h].attached == ("moko" + p))) {
balls[h].ballclip._x = balls[h].bapos + _local1;
}
h++;
}
if ((_local1 - plat._x) > 0) {
moki[p - 1].dir = 1;
}
if ((_local1 - plat._x) < 0) {
moki[p - 1].dir = -1;
}
};
checkkeypressed = function () {
if (mokopaused == false) {
if (Key.isDown(37) and (gameover1 == false)) {
if ((Math.abs(moki[0].vel) > velplat0) and ((dir1 * moki[0].vel) > 0)) {
moki[0].stopping = true;
if (plyrs == 2) {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallcenterright, wallright);
} else {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
} else {
moki[0].stopping = false;
dir1 = -1;
if (plyrs == 2) {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallcenterright, wallright);
} else {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
}
} else if (((!Key.isDown(37)) and (!Key.isDown(39))) and (gameover1 == false)) {
moki[0].stopping = true;
if (plyrs == 2) {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallcenterright, wallright);
} else {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
}
if (Key.isDown(39) and (gameover1 == false)) {
if ((Math.abs(moki[0].vel) > velplat0) and ((dir1 * moki[0].vel) < 0)) {
moki[0].stopping = true;
if (plyrs == 2) {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallcenterright, wallright);
} else {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
} else {
moki[0].stopping = false;
dir1 = 1;
if (plyrs == 2) {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallcenterright, wallright);
} else {
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
}
}
if (Key.isDown(90) and (plyrs == 2)) {
if ((Math.abs(moki[1].vel) > velplat0) and ((dir2 * moki[1].vel) > 0)) {
moki[1].stopping = true;
moveplat(2, moki[1].movie, moki[1].vel, dir2, moki[1].stopping, wallleft, wallcenterleft);
} else {
moki[1].stopping = false;
dir2 = -1;
moveplat(2, moki[1].movie, moki[1].vel, dir2, moki[1].stopping, wallleft, wallcenterleft);
}
}
if (Key.isDown(67) and (plyrs == 2)) {
if ((Math.abs(moki[1].vel) > velplat0) and ((dir2 * moki[1].vel) < 0)) {
moki[1].stopping = true;
moveplat(2, moki[1].movie, moki[1].vel, dir2, moki[1].stopping, wallleft, wallcenterleft);
} else {
moki[1].stopping = false;
dir2 = 1;
moveplat(2, moki[1].movie, moki[1].vel, dir2, moki[1].stopping, wallleft, wallcenterleft);
}
} else if (((!Key.isDown(90)) and (!Key.isDown(67))) and (plyrs == 2)) {
moki[1].stopping = true;
moveplat(2, moki[1].movie, moki[1].vel, dir2, moki[1].stopping, wallleft, wallcenterleft);
}
if (Key.isDown(90) and (gameover1 == true)) {
if ((Math.abs(moki[0].vel) > velplat0) and ((dir1 * moki[0].vel) > 0)) {
moki[0].stopping = true;
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
} else {
moki[0].stopping = false;
dir1 = -1;
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
}
if (Key.isDown(67) and (gameover1 == true)) {
if ((Math.abs(moki[0].vel) > velplat0) and ((dir1 * moki[0].vel) < 0)) {
moki[0].stopping = true;
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
} else {
moki[0].stopping = false;
dir1 = 1;
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
} else if (((!Key.isDown(90)) and (!Key.isDown(67))) and (gameover1 == true)) {
moki[0].stopping = true;
moveplat(1, moki[0].movie, moki[0].vel, dir1, moki[0].stopping, wallleft, wallright);
}
if (Key.isDown(40) and (gameover1 == false)) {
key0wasdown = 40;
if (detach0ok == true) {
detach("moko1");
detach0ok = false;
}
if (((frame > (cframe3 + 6)) and (moki[0].fire == true)) and (fire0ok == true)) {
fire(0);
fire0ok = false;
}
}
if (Key.isDown(88) and (plyrs == 2)) {
key1wasdown = 88;
if (detach1ok == true) {
detach("moko2");
detach1ok = false;
}
if (((frame > (cframe2 + 6)) and (moki[1].fire == true)) and (fire1ok == true)) {
fire(1);
fire1ok = false;
}
}
if (Key.isDown(88) and (gameover1 == true)) {
key0wasdown = 88;
if (detach0ok == true) {
detach("moko1");
detach0ok = false;
}
if (((frame > (cframe3 + 6)) and (moki[0].fire == true)) and (fire0ok == true)) {
fire(0);
fire0ok = false;
}
}
}
if (Key.isDown(32) and (restartquery == false)) {
pausegame();
if (selok == true) {
attachMovie("pau", "pauclip", 200001);
pauclip._x = 240;
pauclip._y = 385;
}
}
};
pausegame = function () {
if ((mokopaused == false) and (frame > (pauseframe + 12))) {
if (_global.sndval == true) {
if (restartquery == false) {
snd.gotoAndPlay("pause");
}
}
onEnterFrame = null;
mokopaused = true;
pauseframe = frame;
bglevel1.bglevel2.bglevel3.stop();
if (night == true) {
bglevel1.stars.stop();
}
}
};
checkcollision = function (s, bn, dir, limit, left, right, flow) {
if (s == 0) {
if (((dir * ((balls[bn].ballclip._x + (balls[bn].velx * dt)) - (dir * balls[bn].radius))) < (dir * limit)) and ((((balls[bn].ballclip._y + (balls[bn].vely * dt)) + balls[bn].radius) > left) and (((balls[bn].ballclip._y + (balls[bn].vely * dt)) - balls[bn].radius) < right))) {
if (flow != 1) {
balls[bn].velx = -balls[bn].velx;
if ((balls[bn].ballclip._y < 438) or (balls[bn].vel == 0)) {
balls[bn].ballclip._x = limit + (dir * balls[bn].radius);
}
if ((balls[bn].velx != 0) and (_global.sndval == true)) {
snd.gotoAndPlay(14);
}
} else if (flow == 1) {
if ((dir * (balls[bn].ballclip._x + (dir * balls[bn].radius))) > (dir * limit)) {
balls[bn].velx = -balls[bn].velx;
if ((balls[bn].velx != 0) and (_global.sndval == true)) {
snd.gotoAndPlay(18);
}
if ((frame > (cframe + 81)) and (balls[bn].velx != 0)) {
cframe = frame;
collina.gotoAndPlay(30);
}
}
}
}
}
if (s == 1) {
if (((dir * ((balls[bn].ballclip._y + (balls[bn].vely * dt)) - (dir * balls[bn].radius))) < (dir * limit)) and ((((balls[bn].ballclip._x + (balls[bn].velx * dt)) + (balls[bn].radius / 2)) > left) and (((balls[bn].ballclip._x + (balls[bn].velx * dt)) - (balls[bn].radius / 2)) < right))) {
if (flow != 1) {
balls[bn].vely = -balls[bn].vely;
balls[bn].ballclip._y = limit + (dir * balls[bn].radius);
if (_global.sndval == true) {
snd.gotoAndPlay(14);
}
} else if (flow == 1) {
if ((dir * (balls[bn].ballclip._y + (dir * balls[bn].radius))) > (dir * limit)) {
balls[bn].vely = -balls[bn].vely;
balls[bn].ballclip._y = limit + (dir * balls[bn].radius);
if (_global.sndval == true) {
snd.gotoAndPlay(18);
}
if (frame > (cframe + 81)) {
cframe = frame;
collina.gotoAndPlay(30);
}
}
}
}
}
};
checkmokocoll = function (mn, bnu) {
var _local11;
var d1;
if (moki[mn].vel == 0) {
_local11 = 0;
} else {
_local11 = 1;
}
var mleft = (((moki[mn].movie._x + (moki[mn].vel * dt)) + ((((_local11 * 0.5) * aplat) * dt) * dt)) - (moki[mn].movie._width / 2));
var _local10 = ((moki[mn].movie._x + (moki[mn].vel * dt)) + ((((_local11 * 0.5) * aplat) * dt) * dt)) + (moki[mn].movie._width / 2);
var _local2 = balls[bnu].ballclip._x + (balls[bnu].velx * dt);
var _local3 = balls[bnu].ballclip._y + (balls[bnu].vely * dt);
var _local7 = mleft + 19;
var _local8 = moki[mn].movie._y + 14.5;
var _local12 = _local8;
var _local6 = _local10 - 18;
var _local13 = balls[bnu].vely / balls[bnu].velx;
var _local4;
var _local16;
var _local15;
var _local14;
var _local5 = balls[bnu].radius + 12.5;
_local16 = balls[bnu].ballclip._y - (_local13 * balls[bnu].ballclip._x);
_local15 = Math.sqrt(Math.pow(_local2 - _local7, 2) + Math.pow(_local3 - _local8, 2));
_local14 = Math.sqrt(Math.pow(_local2 - _local6, 2) + Math.pow(_local3 - _local12, 2));
if (_local2 > (mleft + (moki[mn].movie._width / 2))) {
d1 = 1;
} else {
d1 = -1;
}
changevel = function () {
var _local2;
_local2 = (balls[bnu].ballclip._x - (mleft + (moki[mn].movie._width / 2))) / ((moki[mn].movie._width / 2) + (2.5 * balls[bnu].radius));
_local2 = d1 * Math.pow(Math.abs(_local2), 0.75);
if ((moki[mn].attach == true) and ((balls[bnu].ballclip._y + balls[bnu].radius) < (moki[mn].movie._y + 13))) {
balls[bnu].avelx = balls[bnu].vel * _local2;
balls[bnu].avely = -Math.sqrt((balls[bnu].vel * balls[bnu].vel) - (balls[bnu].avelx * balls[bnu].avelx));
balls[bnu].avel = balls[bnu].vel;
balls[bnu].velx = 0;
balls[bnu].vely = 0;
balls[bnu].vel = 0;
balls[bnu].attached = "moko" + (mn + 1);
moki[mn].lasttime = time;
moki[mn].timeattach = t;
balls[bnu].who = mn;
if (_global.sndval == true) {
snd.gotoAndPlay(42);
}
addscore(mn, padscore);
} else {
balls[bnu].velx = balls[bnu].vel * _local2;
balls[bnu].vely = -Math.sqrt((balls[bnu].vel * balls[bnu].vel) - (balls[bnu].velx * balls[bnu].velx));
moki[mn].lasttime = time;
balls[bnu].who = mn;
if (_global.sndval == true) {
snd.gotoAndPlay(20);
}
addscore(mn, padscore);
}
};
if (((((_local3 + balls[bnu].radius) > moki[mn].movie._y) and (balls[bnu].coll == false)) and ((_local2 >= (mleft + 16)) and (_local2 <= (_local10 - 16)))) and (balls[bnu].ballclip._y < 474)) {
balls[bnu].ballclip._y = moki[mn].movie._y - balls[bnu].radius;
balls[bnu].ballclip._x = (balls[bnu].ballclip._y - _local16) / _local13;
balls[bnu].bapos = balls[bnu].ballclip._x - (mleft + (moki[mn].movie._width / 2));
if (Math.abs(balls[bnu].bapos) > ((moki[mn].movie._width / 2) + (2.5 * balls[bnu].radius))) {
trace("cazzo");
balls[bnu].bapos = (balls[bnu].bapos / balls[bnu].bapos) * ((moki[mn].movie._width / 2) - (2 * balls[bnu].radius));
balls[bnu].ballclip._x = moki[mn].movie._x + balls[bnu].bapos;
}
changevel();
balls[bnu].coll = true;
} else if ((((_local2 < (mleft + 18)) and (balls[bnu].coll == false)) and (_local3 < (moki[mn].movie._y + 13))) and (_local15 < _local5)) {
_local4 = (_local8 - _local3) / (_local7 - _local2);
if ((moki[mn].vel > 200) and (moki[mn].attach == false)) {
balls[bnu].ballclip._y = moki[mn].movie._y - balls[bnu].radius;
} else {
balls[bnu].ballclip._x = (-Math.sqrt((_local5 * _local5) / ((_local4 * _local4) + 1))) + _local7;
balls[bnu].ballclip._y = (_local4 * (balls[bnu].ballclip._x - _local7)) + _local8;
balls[bnu].bapos = balls[bnu].ballclip._x - (mleft + (moki[mn].movie._width / 2));
if (Math.abs(balls[bnu].bapos) > ((moki[mn].movie._width / 2) + (2.5 * balls[bnu].radius))) {
trace("cazzo");
balls[bnu].bapos = (balls[bnu].bapos / balls[bnu].bapos) * ((moki[mn].movie._width / 2) - (2 * balls[bnu].radius));
balls[bnu].ballclip._x = moki[mn].movie._x + balls[bnu].bapos;
}
}
changevel();
balls[bnu].coll = true;
} else if ((((_local2 > (_local10 - 18)) and (balls[bnu].coll == false)) and (_local3 < (moki[mn].movie._y + 13))) and (_local14 < _local5)) {
_local4 = (_local12 - _local3) / (_local6 - _local2);
if ((moki[mn].vel > 200) and (moki[mn].attach == false)) {
balls[bnu].ballclip._y = moki[mn].movie._y - balls[bnu].radius;
} else {
balls[bnu].ballclip._x = Math.sqrt((_local5 * _local5) / ((_local4 * _local4) + 1)) + _local6;
balls[bnu].ballclip._y = (_local4 * (balls[bnu].ballclip._x - _local6)) + _local12;
balls[bnu].bapos = balls[bnu].ballclip._x - (mleft + (moki[mn].movie._width / 2));
if (Math.abs(balls[bnu].bapos) > ((moki[mn].movie._width / 2) + (2.5 * balls[bnu].radius))) {
trace("cazzo");
balls[bnu].bapos = (balls[bnu].bapos / balls[bnu].bapos) * ((moki[mn].movie._width / 2) - (2 * balls[bnu].radius));
balls[bnu].ballclip._x = moki[mn].movie._x + balls[bnu].bapos;
}
}
changevel();
balls[bnu].coll = true;
} else if ((((((_local2 + balls[bnu].radius) > mleft) and ((_local2 + balls[bnu].radius) < _local7)) and (balls[bnu].coll == false)) and (_local3 > (moki[mn].movie._y + 12))) and (_local3 < (moki[mn].movie._y + 23))) {
if (Math.abs(balls[bnu].vel) < Math.abs(moki[mn].vel + (aplat * dt))) {
if (Math.abs(moki[mn].vel + (aplat * dt)) < velballmx) {
balls[bnu].vel = moki[mn].vel + (aplat * dt);
} else {
balls[bnu].vel = velballmx;
}
}
balls[bnu].ballclip._x = ((moki[mn].movie._x - (moki[mn].movie._width / 2)) - balls[bnu].radius) + 2;
if (_global.sndval == true) {
snd.gotoAndPlay(22);
}
balls[bnu].velx = (d1 * balls[bnu].vel) * 0.92;
balls[bnu].vely = -Math.sqrt((balls[bnu].vel * balls[bnu].vel) - (balls[bnu].velx * balls[bnu].velx));
moki[mn].lasttime = time;
balls[bnu].who = mn;
addscore(mn, sidescore);
balls[bnu].coll = true;
} else if ((((((_local2 - balls[bnu].radius) < _local10) and ((_local2 - balls[bnu].radius) > _local6)) and (balls[bnu].coll == false)) and (_local3 > (moki[mn].movie._y + 12))) and (_local3 < (moki[mn].movie._y + 23))) {
if (Math.abs(balls[bnu].vel) < Math.abs(moki[mn].vel + (aplat * dt))) {
if (Math.abs(moki[mn].vel + (aplat * dt)) < velballmx) {
balls[bnu].vel = moki[mn].vel + (aplat * dt);
} else {
balls[bnu].vel = velballmx;
}
}
balls[bnu].ballclip._x = ((moki[mn].movie._x + (moki[mn].movie._width / 2)) + balls[bnu].radius) - 2;
if (_global.sndval == true) {
snd.gotoAndPlay(22);
}
balls[bnu].velx = (d1 * balls[bnu].vel) * 0.92;
balls[bnu].vely = -Math.sqrt((balls[bnu].vel * balls[bnu].vel) - (balls[bnu].velx * balls[bnu].velx));
moki[mn].lasttime = time;
balls[bnu].who = mn;
addscore(mn, sidescore);
balls[bnu].coll = true;
}
};
detach = function (moko) {
at = 0;
while (at < ballsmax) {
if ((balls[at].exist == true) and (balls[at].attached == moko)) {
balls[at].velx = balls[at].avelx;
balls[at].vely = balls[at].avely;
balls[at].vel = balls[at].avel;
balls[at].avelx = 0;
balls[at].avely = 0;
ballss[at].avel = 0;
balls[at].attached = "no";
if (_global.sndval == true) {
snd.gotoAndPlay(34);
}
}
at++;
}
};
bonus = function (bony, bonx, bontyp) {
var okbonus = true;
var bonusside = Number;
if (plyrs == 2) {
if (bonx > 7) {
bonusside = 1;
}
if (bonx < 7) {
bonusside = 2;
}
} else {
bonusside = 1;
}
m1 = 0;
while (m1 < allbonus.length) {
if ((allbonus[m1].bonustype == bontyp) and (allbonus[m1].side == bonusside)) {
okbonus = false;
}
m1++;
}
if ((allbonus.length < 3) and (okbonus == true)) {
attachMovie("bonus" + bontyp, "bonus" + bonqty, depth);
if (_global.sndval == true) {
snd.gotoAndPlay(12);
}
eval ("bonus" + bonqty)._width = 10;
eval ("bonus" + bonqty)._height = 10;
eval ("bonus" + bonqty)._x = ((bonx * brickwidth) + (brickwidth / 2)) + wallleft;
eval ("bonus" + bonqty)._y = ((bony * brickheight) + (brickheight / 2)) + top;
allbonus.push({bonusmovie:(MovieClip = eval ("bonus" + bonqty)), bonustype:(Number = bontyp), stage:(Number = 0), vel:(Number = 0), side:(Number = bonusside)});
depth = depth + 1;
bonqty = bonqty + 1;
}
};
getbonus = function (p, bt) {
switch (bt) {
case 0 :
if (moki[p - 1].stage == 1) {
if (moki[p - 1].fire == false) {
moki[p - 1].movie.gotoAndPlay(61);
}
if (moki[p - 1].fire == true) {
moki[p - 1].movie.gotoAndPlay(230);
}
moki[p - 1].stage = 2;
detach("moko" + p);
if (_global.sndval == true) {
snd.gotoAndPlay(6);
}
addscore(p - 1, largescore);
} else if (moki[p - 1].stage == 0) {
if (moki[p - 1].fire == false) {
moki[p - 1].movie.gotoAndPlay(170);
}
if (moki[p - 1].fire == true) {
moki[p - 1].movie.gotoAndPlay(315);
}
moki[p - 1].stage = 1;
detach("moko" + p);
if (_global.sndval == true) {
snd.gotoAndPlay(6);
}
addscore(p - 1, largescore);
} else if (moki[p - 1].stage == 2) {
addscore(p - 1, largescore);
if (_global.sndval == true) {
snd.gotoAndPlay("pow");
}
}
break;
case 1 :
if (moki[p - 1].stage == 2) {
if (moki[p - 1].fire == false) {
moki[p - 1].movie.gotoAndPlay(95);
}
if (moki[p - 1].fire == true) {
moki[p - 1].movie.gotoAndPlay(255);
}
moki[p - 1].stage = 1;
detach("moko" + p);
if (_global.sndval == true) {
snd.gotoAndPlay(8);
}
addscore(p - 1, smallscore);
} else if (moki[p - 1].stage == 1) {
if (moki[p - 1].fire == false) {
moki[p - 1].movie.gotoAndPlay(130);
}
if (moki[p - 1].fire == true) {
moki[p - 1].movie.gotoAndPlay(285);
}
moki[p - 1].stage = 0;
detach("moko" + p);
if (_global.sndval == true) {
snd.gotoAndPlay(8);
}
addscore(p - 1, smallscore);
} else if (moki[p - 1].stage == 0) {
addscore(p - 1, smallscore);
if (_global.sndval == true) {
snd.gotoAndPlay("pow");
}
}
break;
case 2 :
if (ballsnumber < ballsmax) {
newball(0);
} else if (_global.sndval == true) {
snd.gotoAndPlay("pow");
}
addscore(p - 1, doubleballscore);
break;
case 3 :
inc = 0;
while (inc < 5) {
detach("moko1");
detach("moko2");
modspeed(104);
if (_global.sndval == true) {
snd.gotoAndPlay("velocizza");
}
addscore(p - 1, fastscore);
inc++;
}
break;
case 4 :
inc1 = 0;
while (inc1 < 5) {
detach("moko1");
detach("moko2");
modspeed(95);
superball("off");
if (_global.sndval == true) {
snd.gotoAndPlay("rallenta");
}
addscore(p - 1, slowscore);
inc1++;
}
break;
case 5 :
if (_global.sndval == true) {
if (supb == false) {
snd.gotoAndPlay("superball");
} else {
snd.gotoAndPlay("pow");
}
}
superball("on");
detach("moko1");
detach("moko2");
addscore(p - 1, superballscore);
break;
case 6 :
if (_global.sndval == true) {
if (moki[p - 1].fire == false) {
snd.gotoAndPlay("fire");
} else {
snd.gotoAndPlay("pow");
}
}
mokofire(p - 1, true);
addscore(p - 1, firescore);
break;
case 7 :
moki[p - 1].lives = moki[p - 1].lives + 1;
scores.lives1 = "x" + moki[0].lives;
if (plyrs == 2) {
scores.lives2 = "x" + moki[1].lives;
}
if (_global.sndval == true) {
snd.gotoAndPlay("life");
}
if (((plyrs == 1) and (gameover2 == false)) and (_global.cheat3 == false)) {
scores.mokob.gotoAndPlay(2);
} else if (((plyrs == 1) and (gameover2 == true)) or ((plyrs == 1) and (_global.cheat3 == true))) {
scores.mokoa.gotoAndPlay(2);
}
if (plyrs == 2) {
scores.mokoa.gotoAndPlay(2);
}
if ((plyrs == 2) and ((p - 1) == 0)) {
scores.mokoa.gotoAndPlay(2);
}
if ((plyrs == 2) and ((p - 1) == 1)) {
scores.mokob.gotoAndPlay(2);
}
addscore(p - 1, lifescore);
break;
case 8 :
if (_global.sndval == true) {
if (moki[p - 1].attach == false) {
snd.gotoAndPlay("attbon");
} else {
snd.gotoAndPlay("pow");
}
}
moki[p - 1].attach = true;
addscore(p - 1, attachscore);
break;
case 9 :
lifelost(p - 1);
if (go == false) {
death();
}
addscore(p - 1, deathscore);
break;
case 10 :
if (_global.sndval == true) {
snd.gotoAndPlay("points");
}
addscore(p - 1, points);
break;
case 11 :
onehit();
addscore(p - 1, hitscore);
}
};
typepoints = function (m, bt) {
po = 0;
while (po < 8) {
if (allpoints[po].exist == false) {
attachMovie("points" + bt, "points" + po, 110000 + m);
eval ("points" + po)._x = moki[m].movie._x;
eval ("points" + po)._y = moki[m].movie._y - 13.35;
allpoints[po].pointsclip = eval ("points" + po);
allpoints[po].exist = true;
return;
}
po++;
}
};
bonusmove = function (ba) {
arrpos = 0;
while (arrpos <= ba.length) {
switch (ba[arrpos].stage) {
case 0 :
ba[arrpos].bonusmovie._width = ba[arrpos].bonusmovie._width + 5;
ba[arrpos].bonusmovie._height = ba[arrpos].bonusmovie._height + 5;
ba[arrpos].bonusmovie._y = ba[arrpos].bonusmovie._y - 7;
if ((ba[arrpos].bonusmovie._width + 5) >= 50) {
ba[arrpos].stage = 1;
}
break;
case 1 :
ba[arrpos].bonusmovie._width = ba[arrpos].bonusmovie._width - 4;
ba[arrpos].bonusmovie._height = ba[arrpos].bonusmovie._height - 4;
if ((ba[arrpos].bonusmovie._width - 4) <= 38) {
ba[arrpos].stage = 2;
}
break;
case 2 :
ba[arrpos].bonusmovie.cacheAsBitmap = true;
if ((ba[arrpos].bonusmovie._y - (ba[arrpos].bonusmovie._height / 2)) > 480) {
removeMovieClip(ba[arrpos].bonusmovie);
ba.splice(arrpos, 1);
} else if (((ba[arrpos].bonusmovie._y + (ba[arrpos].bonusmovie._height / 2)) > 455) and (((ba[arrpos].bonusmovie._x + (ba[arrpos].bonusmovie._width / 2)) > ((col1 - (moki[0].movie._width / 2)) + 7)) and ((ba[arrpos].bonusmovie._x - (ba[arrpos].bonusmovie._width / 2)) < ((col1 + (moki[0].movie._width / 2)) - 7)))) {
typepoints(0, ba[arrpos].bonustype);
getbonus(1, ba[arrpos].bonustype);
removeMovieClip(ba[arrpos].bonusmovie);
ba.splice(arrpos, 1);
} else if (((ba[arrpos].bonusmovie._y + (ba[arrpos].bonusmovie._height / 2)) > 455) and (((ba[arrpos].bonusmovie._x + (ba[arrpos].bonusmovie._width / 2)) > ((col2 - (moki[1].movie._width / 2)) + 7)) and ((ba[arrpos].bonusmovie._x - (ba[arrpos].bonusmovie._width / 2)) < ((col2 + (moki[1].movie._width / 2)) - 7)))) {
typepoints(1, ba[arrpos].bonustype);
getbonus(2, ba[arrpos].bonustype);
removeMovieClip(ba[arrpos].bonusmovie);
ba.splice(arrpos, 1);
} else {
ba[arrpos].bonusmovie._y = (ba[arrpos].bonusmovie._y + (ba[arrpos].vel * dt)) + (((0.5 * abonus) * dt) * dt);
ba[arrpos].vel = ba[arrpos].vel + (abonus * dt);
}
}
arrpos++;
}
};
removepoints = function () {
p = 0;
while (p <= allpoints.length) {
if ((allpoints[p].exist == true) and (allpoints[p].pointsclip._currentframe == allpoints[p].pointsclip._totalframes)) {
removeMovieClip(eval ("points" + p));
allpoints[p].exist = false;
}
p++;
}
};
destroybrick = function (cy, cx) {
if (bricks[cy][cx].hits == 100) {
if (_global.sndval == true) {
snd.gotoAndPlay(26);
}
} else if (bricks[cy][cx].hits == 101) {
if (_global.sndval == true) {
snd.gotoAndPlay("pietra");
}
} else if (bricks[cy][cx].hits == 2) {
if (_global.sndval == true) {
snd.gotoAndPlay(28);
}
bricks[cy][cx].brick.gotoAndPlay("hit1");
bricks[cy][cx].hits = bricks[cy][cx].hits - 1;
if (bricks[cy][cx].inv == true) {
bricks[cy][cx].inv = false;
}
bricktime = time;
} else if (bricks[cy][cx].hits == 3) {
if (_global.sndval == true) {
snd.gotoAndPlay(4);
}
bricks[cy][cx].brick.gotoAndPlay("hit2");
bricks[cy][cx].hits = bricks[cy][cx].hits - 1;
bricktime = time;
} else {
bricks[cy][cx].hits = bricks[cy][cx].hits - 1;
}
if (bricks[cy][cx].hits == 0) {
if (bricks[cy][cx].bon == true) {
bonus(cy, cx, bricks[cy][cx].bontyp);
}
if (_global.sndval == true) {
snd.gotoAndPlay(2);
}
if (bricks[cy][cx].inv == false) {
bricks[cy][cx].exist = false;
removeMovieClip(bricks[cy][cx].brick);
}
if (bricks[cy][cx].inv == true) {
bricks[cy][cx].brick.gotoAndPlay("hit1");
bricks[cy][cx].inv == false;
}
bricksnumber = bricksnumber - 1;
bricktime = time;
}
};
checkbrick = function (bn) {
bx = Math.floor((balls[bn].ballclip._x - wallleft) / brickwidth);
by = Math.floor((balls[bn].ballclip._y - top) / brickheight);
brickcollision = function (a, bdir) {
var _local3 = balls[bn].ballclip._x + (balls[bn].velx * dt);
var _local4 = balls[bn].ballclip._y + (balls[bn].vely * dt);
var _local2;
if (bdir == 1) {
_local2 = 0;
} else if (bdir == -1) {
_local2 = 1;
}
switch (a) {
case 0 :
if ((bdir * (_local3 - (bdir * balls[bn].radius))) < (bdir * (((bx + _local2) * brickwidth) + wallleft))) {
if (bricks[by][bx - (bdir * 1)].exist == true) {
if ((((balls[bn].superball == true) and (bricks[by][bx - (bdir * 1)].hits > 1)) and (bricks[by][bx - (bdir * 1)].hits != 100)) and (bricks[by][bx - (bdir * 1)].hits != 101)) {
bricks[by][bx - (bdir * 1)].hits = 1;
}
destroybrick(by, bx - (bdir * 1));
if ((bricks[by][bx - (bdir * 1)].hits != 100) and (bricks[by][bx - (bdir * 1)].hits != 101)) {
addscore(balls[bn].who, brickscore);
}
if (((balls[bn].superball == false) or (bricks[by][bx - (bdir * 1)].hits == 100)) or (bricks[by][bx - (bdir * 1)].hits == 101)) {
balls[bn].velx = -balls[bn].velx;
balls[bn].ballclip._x = (((bx + _local2) * brickwidth) + wallleft) + (bdir * (balls[bn].radius + 2));
}
} else if ((balls[bn].ballclip._y - balls[bn].radius) < ((by * brickheight) + top)) {
if ((bricks[by - 1][bx - (bdir * 1)].exist == true) and (bricks[by - 1][bx].exist == false)) {
if ((((balls[bn].superball == true) and (bricks[by - 1][bx - (bdir * 1)].hits > 1)) and (bricks[by - 1][bx - (bdir * 1)].hits != 100)) and (bricks[by - 1][bx - (bdir * 1)].hits != 101)) {
bricks[by - 1][bx - (bdir * 1)].hits = 1;
}
destroybrick(by - 1, bx - (bdir * 1));
if ((bricks[by - 1][bx - (bdir * 1)].hits != 100) and (bricks[by - 1][bx - (bdir * 1)].hits != 101)) {
addscore(balls[bn].who, brickscore);
}
if (((balls[bn].superball == false) or (bricks[by - 1][bx - (bdir * 1)].hits == 100)) or (bricks[by - 1][bx - (bdir * 1)].hits == 101)) {
balls[bn].velx = -balls[bn].velx;
balls[bn].ballclip._x = (((bx + _local2) * brickwidth) + wallleft) + (bdir * (balls[bn].radius + 2));
}
}
} else if ((balls[bn].ballclip._y + balls[bn].radius) > (((by + 1) * brickheight) + top)) {
if ((bricks[by + 1][bx - (bdir * 1)].exist == true) and (bricks[by + 1][bx].exist == false)) {
if ((((balls[bn].superball == true) and (bricks[by + 1][bx - (bdir * 1)].hits > 1)) and (bricks[by + 1][bx - (bdir * 1)].hits != 100)) and (bricks[by + 1][bx - (bdir * 1)].hits != 101)) {
bricks[by + 1][bx - (bdir * 1)].hits = 1;
}
destroybrick(by + 1, bx - (bdir * 1));
if ((bricks[by + 1][bx - (bdir * 1)].hits != 100) and (bricks[by + 1][bx - (bdir * 1)].hits != 101)) {
addscore(balls[bn].who, brickscore);
}
if (((balls[bn].superball == false) or (bricks[by + 1][bx - (bdir * 1)].hits == 100)) or (bricks[by + 1][bx - (bdir * 1)].hits == 101)) {
balls[bn].velx = -balls[bn].velx;
balls[bn].ballclip._x = (((bx + _local2) * brickwidth) + wallleft) + (bdir * (balls[bn].radius + 2));
}
}
}
}
break;
case 1 :
if ((bdir * (_local4 - (bdir * balls[bn].radius))) >= (bdir * (((by + _local2) * brickheight) + top))) {
break;
}
if (bricks[by - (bdir * 1)][bx].exist == true) {
if ((((balls[bn].superball == true) and (bricks[by - (bdir * 1)][bx].hits > 1)) and (bricks[by - (bdir * 1)][bx].hits != 100)) and (bricks[by - (bdir * 1)][bx].hits != 101)) {
bricks[by - (bdir * 1)][bx].hits = 1;
}
destroybrick(by - (bdir * 1), bx);
if ((bricks[by - (bdir * 1)][bx].hits != 100) and (bricks[by - (bdir * 1)][bx].hits != 101)) {
addscore(balls[bn].who, brickscore);
}
if (((balls[bn].superball == false) or (bricks[by - (bdir * 1)][bx].hits == 100)) or (bricks[by - (bdir * 1)][bx].hits == 101)) {
balls[bn].vely = -balls[bn].vely;
balls[bn].ballclip._y = (((by + _local2) * brickheight) + top) + (bdir * balls[bn].radius);
}
} else if ((balls[bn].ballclip._x - balls[bn].radius) < ((bx * brickwidth) + wallleft)) {
if ((bricks[by - (bdir * 1)][bx - 1].exist == true) and (bricks[by][bx - 1].exist == false)) {
if ((((balls[bn].superball == true) and (bricks[by - (bdir * 1)][bx - 1].hits > 1)) and (bricks[by - (bdir * 1)][bx - 1].hits != 100)) and (bricks[by - (bdir * 1)][bx - 1].hits != 101)) {
bricks[by - (bdir * 1)][bx - 1].hits = 1;
}
destroybrick(by - (bdir * 1), bx - 1);
if ((bricks[by - (bdir * 1)][bx - 1].hits != 100) and (bricks[by - (bdir * 1)][bx - 1].hits != 101)) {
addscore(balls[bn].who, brickscore);
}
if (((balls[bn].superball == false) or (bricks[by - (bdir * 1)][bx - 1].hits == 100)) or (bricks[by - (bdir * 1)][bx - 1].hits == 101)) {
balls[bn].vely = -balls[bn].vely;
balls[bn].ballclip._y = (((by + _local2) * brickheight) + top) + (bdir * balls[bn].radius);
}
}
} else {
if ((balls[bn].ballclip._x + balls[bn].radius) <= (((bx + 1) * brickwidth) + wallleft)) {
break;
}
if (!((bricks[by - (bdir * 1)][bx + 1].exist == true) and (bricks[by][bx + 1].exist == false))) {
break;
}
if ((((balls[bn].superball == true) and (bricks[by - (bdir * 1)][bx + 1].hits > 1)) and (bricks[by - (bdir * 1)][bx + 1].hits != 100)) and (bricks[by - (bdir * 1)][bx + 1].hits != 101)) {
bricks[by - (bdir * 1)][bx + 1].hits = 1;
}
destroybrick(by - (bdir * 1), bx + 1);
if ((bricks[by - (bdir * 1)][bx + 1].hits != 100) and (bricks[by - (bdir * 1)][bx + 1].hits != 101)) {
addscore(balls[bn].who, brickscore);
}
if (!(((balls[bn].superball == false) or (bricks[by - (bdir * 1)][bx + 1].hits == 100)) or (bricks[by - (bdir * 1)][bx + 1].hits == 101))) {
break;
}
balls[bn].vely = -balls[bn].vely;
balls[bn].ballclip._y = (((by + _local2) * brickheight) + top) + (bdir * balls[bn].radius);
}
}
};
brickcollision(1, 1);
brickcollision(1, -1);
brickcollision(0, 1);
brickcollision(0, -1);
};
lifelost = function (m) {
if (m == 0) {
moki[0].lives = moki[0].lives - 1;
moki[0].free = false;
if (moki[0].movie == plat1) {
moki[0].movie.leye1.gotoAndPlay(2);
moki[0].movie.reye1.gotoAndPlay(2);
moki[0].movie.lsc1._visible = false;
moki[0].movie.rsc1._visible = false;
} else {
moki[0].movie.leye2.gotoAndPlay(2);
moki[0].movie.reye2.gotoAndPlay(2);
moki[0].movie.lsc2._visible = false;
moki[0].movie.rsc2._visible = false;
}
if (moki[0].lives == 0) {
go = true;
if (plyrs == 1) {
gameover(3);
} else {
gameover1 = true;
gameover(0);
}
}
if (go == false) {
moki[0].movie.insulto.gotoAndPlay(2);
}
addscore(0, deathscore);
}
if ((m == 1) and (plyrs == 2)) {
moki[1].lives = moki[1].lives - 1;
moki[1].free = false;
moki[1].movie.leye2.gotoAndPlay(2);
moki[1].movie.reye2.gotoAndPlay(2);
moki[1].movie.lsc2._visible = false;
moki[1].movie.rsc2._visible = false;
if (moki[1].lives == 0) {
go = true;
gameover2 = true;
gameover(1);
}
if (go == false) {
moki[1].movie.insulto.gotoAndPlay(2);
}
addscore(1, deathscore);
}
scores.lives1 = "x" + moki[0].lives;
if (plyrs == 2) {
scores.lives2 = "x" + moki[1].lives;
}
};
removebonus = function () {
var _local1 = allbonus.length;
m1 = 0;
while (m1 < _local1) {
removeMovieClip(allbonus[m1].bonusmovie);
m1++;
}
m3 = 0;
while (m3 < _local1) {
allbonus.pop();
m3++;
}
};
clearall = function () {
var _local2 = allbullet0.length;
var _local1 = allbullet1.length;
removebonus();
m2 = 0;
while (m2 < ballsmax) {
if (balls[m2].exist == true) {
destroyball(m2);
}
m2++;
}
m4 = 0;
while (m4 < _local2) {
removeMovieClip(allbullet0[m4].bc[0].bulletmovie);
removeMovieClip(allbullet0[m4].bc[1].bulletmovie);
m4++;
}
m5 = 0;
while (m5 < _local1) {
removeMovieClip(allbullet1[m5].bc[0].bulletmovie);
removeMovieClip(allbullet1[m5].bc[1].bulletmovie);
m5++;
}
m6 = 0;
while (m6 < _local2) {
allbullet0.pop();
m6++;
}
m7 = 0;
while (m7 < _local1) {
allbullet1.pop();
m7++;
}
};
restart = function () {
onEnterFrame = null;
keyListener.onKeyDown = null;
removeMovieClip(moki[0].movie);
removeMovieClip(moki[1].movie);
removeMovieClip(pauclip);
h = 0;
while (h < 18) {
i = 0;
while (i < 13) {
removeMovieClip(eval ((("brick0" + h) + 0) + i));
bricks[h][i].brick = null;
i++;
}
h++;
}
removeMovieClip(levelclip);
removeMovieClip(doors);
removeMovieClip(gameoverclip);
removeMovieClip(scores);
removeMovieClip(colonna);
clearall();
_root.gotoAndPlay("title screen");
};
mokostart = function () {
clearall();
balldepth = 8000;
timedrop = time;
if (time == undefined) {
timedrop = 0;
}
bonqty = 0;
pointsqty = 0;
bulletqty = 0;
bulletdepth = 10000;
if (plyrs == 2) {
moki[1].movie.leye2.gotoAndStop(1);
moki[1].movie.reye2.gotoAndStop(1);
moki[1].movie.lsc2._visible = true;
moki[1].movie.rsc2._visible = true;
moki[1].movie.gotoAndStop(1);
moki[1].stage = 1;
moki[1].lasttime = time;
moki[1].timeattach = t;
moki[1].movie._x = 156;
mokofire(1, false);
moki[1].attach = false;
newball(2);
moki[1].free = true;
moki[1].vel = 0;
if (time == undefined) {
moki[1].lasttime = 0;
}
}
if (moki[0].movie == plat1) {
moki[0].movie.leye1.gotoAndStop(1);
moki[0].movie.reye1.gotoAndStop(1);
moki[0].movie.lsc1._visible = true;
moki[0].movie.rsc1._visible = true;
} else {
moki[0].movie.leye2.gotoAndStop(1);
moki[0].movie.reye2.gotoAndStop(1);
moki[0].movie.lsc2._visible = true;
moki[0].movie.rsc2._visible = true;
}
moki[0].movie._visible = true;
moki[0].free = true;
moki[0].movie.gotoAndStop(1);
moki[0].stage = 1;
moki[0].lasttime = time;
if (time == undefined) {
moki[0].lasttime = 0;
}
moki[0].timeattach = t;
if (plyrs == 2) {
moki[0].movie._x = 400;
} else if (_global.cheat4 == false) {
moki[0].movie._x = 207 + moki[0].movie._width;
} else if (_global.cheat4 == true) {
moki[0].movie._x = 169 + moki[0].movie._width;
}
moki[0].vel = 0;
supb = false;
mokofire(0, false);
moki[0].attach = false;
newball(1);
bglevel1.bglevel2.bglevel3.play();
if (night == true) {
bglevel1.stars.play();
}
};
death = function () {
donothing = true;
mokopaused = false;
keyListener.onKeyDown = null;
onEnterFrame = null;
removeMovieClip(pauclip);
bglevel1.bglevel2.bglevel3.stop();
if (night == true) {
bglevel1.stars.stop();
}
removebonus();
bricktime = time;
onEnterFrame = function () {
if (((moki[0].movie.insulto._currentframe == 3) or (moki[1].movie.insulto._currentframe == 3)) and (_global.sndval == true)) {
snd.gotoAndPlay(38);
}
if (((moki[0].movie.insulto._currentframe == 53) or (moki[1].movie.insulto._currentframe == 53)) and (_global.sndval == true)) {
snd.gotoAndPlay(40);
}
if (((moki[0].free == false) or (moki[1].free == false)) and (plyrs == 2)) {
if ((moki[0].movie.insulto._currentframe == moki[0].movie.insulto._totalframes) or (moki[1].movie.insulto._currentframe == moki[1].movie.insulto._totalframes)) {
onEnterFrame = null;
moko();
}
} else if ((moki[0].free == false) and (plyrs == 1)) {
if (moki[0].movie.insulto._currentframe == moki[0].movie.insulto._totalframes) {
onEnterFrame = null;
moko();
}
}
};
};
gameover = function (m) {
var gotime = getTimer();
mokopaused = false;
donothing = true;
if (_global.sndval == true) {
snd.gotoAndPlay(38);
}
keyListener.onKeyDown = null;
onEnterFrame = null;
bglevel1.bglevel2.bglevel3.stop();
if (night == true) {
bglevel1.stars.stop();
}
removebonus();
attachMovie("gameover", "gameoverclip", 115000);
gameoverclip._x = 147;
gameoverclip._y = 250;
if (m == 0) {
onEnterFrame = function () {
if ((getTimer() > (gotime + 1500)) and (getTimer() < (gotime + 3100))) {
if (go == true) {
go = false;
gameoverclip.gotoAndPlay(4);
game_over.start();
}
}
if (getTimer() > (gotime + 6500)) {
onEnterFrame = null;
removeMovieClip(moki[0].movie);
moki[0].movie = moki[1].movie;
moki[1].movie = undefined;
moki[0].movie._xscale = 112;
moki[0].movie._yscale = 112;
removeMovieClip(gameoverclip);
removeMovieClip(scores);
removeMovieClip(colonna);
attachMovie("scores1clip", "scores", 99100);
scores.lev = currentlevel + 1;
if (night == true) {
scores.gotoAndStop("notte");
}
scores._x = 52.5;
scores._y = 32;
moki[0].lives = moki[1].lives;
score1 = score2;
nl1 = nl2;
nll1 = nll2;
incr1 = incr2;
col1 = col2;
col2 = undefined;
scores.lives1 = "x" + moki[0].lives;
addscore(0, 0);
velplat0 = 100;
velplatmx = 3000;
aplat = 4700;
dplat = 24000;
plyrs = 1;
moko();
}
};
}
if (m == 1) {
onEnterFrame = function () {
if ((getTimer() > (gotime + 1500)) and (getTimer() < (gotime + 3100))) {
if (go == true) {
go = false;
gameoverclip.gotoAndPlay(3);
game_over.start();
}
}
if (getTimer() > (gotime + 6500)) {
onEnterFrame = null;
go = false;
moki[0].movie._xscale = 112;
moki[0].movie._yscale = 112;
removeMovieClip(moki[1].movie);
moki[1].movie = undefined;
removeMovieClip(gameoverclip);
removeMovieClip(scores);
removeMovieClip(colonna);
attachMovie("scores21clip", "scores", 99100);
scores.lev = currentlevel + 1;
if (night == true) {
scores.gotoAndStop("notte");
}
scores._x = 52.5;
scores._y = 32;
scores.lives1 = "x" + moki[0].lives;
addscore(0, 0);
col2 = undefined;
velplat0 = 100;
velplatmx = 3000;
aplat = 4700;
dplat = 24000;
plyrs = 1;
moko();
}
};
}
if (m == 3) {
onEnterFrame = function () {
if ((getTimer() > (gotime + 1500)) and (getTimer() < (gotime + 3100))) {
if (go == true) {
go = false;
gameoverclip.gotoAndPlay(2);
game_over.start();
}
}
if (getTimer() > (gotime + 6500)) {
highscore(score1, currentlevel + 1);
}
};
}
};
moko = function () {
var keypressed = false;
var ctime1 = 0;
var ctime2 = 0;
var ctime3 = getTimer();
var succ = false;
var lok = true;
donothing = false;
if (mokopaused == false) {
mokostart();
}
moveall = function () {
onEnterFrame = function () {
if ((mokopaused == true) and (frame > (pauseframe + 10))) {
bglevel1.bglevel2.bglevel3.play();
if (night == true) {
bglevel1.stars.play();
}
mokopaused = false;
removeMovieClip(pauclip);
if (_global.sndval == true) {
if ((restartquery == false) and (selok == true)) {
snd.gotoAndPlay("pause");
}
}
selok = true;
}
succ = !succ;
ctime1 = getTimer();
if (succ == false) {
ctime2 = getTimer();
}
if (((ctime1 - ctime2) != 0) and ((ctime1 - ctime2) > 0)) {
fps = Math.round(1 / ((ctime1 - ctime2) / 1000));
}
frame = frame + 1;
time = frame * (1 / fr);
t = Math.floor(time);
col1 = (moki[0].movie._x + ((dir1 * moki[0].vel) * dt)) + ((((dir1 * 0.5) * aplat) * dt) * dt);
if (plyrs == 2) {
col2 = (moki[1].movie._x + ((dir2 * moki[1].vel) * dt)) + ((((dir2 * 0.5) * aplat) * dt) * dt);
}
bonusmove(allbonus);
bulletsmove(allbullet0);
bulletsmove(allbullet1);
removepoints();
checkkeypressed();
if (inv == true) {
r = 0;
while (r < 18) {
c = 0;
while (c < 13) {
if ((bricks[r][c].exist == true) and (bricks[r][c].hits <= 0)) {
if (bricks[r][c].brick._currentframe == bricks[r][c].brick._totalframes) {
bricks[r][c].exist = false;
removeMovieClip(bricks[r][c].brick);
}
}
c++;
}
r++;
}
}
mok = 0;
while (mok < ballsmax) {
if (balls[mok].exist == true) {
balls[mok].ballclip._x = balls[mok].ballclip._x + (balls[mok].velx * dt);
balls[mok].ballclip._y = balls[mok].ballclip._y + (balls[mok].vely * dt);
if ((balls[mok].ballclip._y < 374) and (balls[mok].ballclip._y > 35)) {
checkbrick(mok);
}
if (balls[mok].ballclip._y < 400) {
balls[mok].coll = false;
balls[mok].coll2 = false;
}
if (balls[mok].ballclip._x < (wallleft + 40)) {
checkcollision(0, mok, 1, wallleft, 1, 596, 0);
}
if (balls[mok].ballclip._y < 70) {
checkcollision(1, mok, 1, 34, 1, 796, 0);
}
if (balls[mok].ballclip._x > (wallright - 40)) {
checkcollision(0, mok, -1, wallright, 1, 596, 0);
}
if (plyrs == 2) {
checkcollision(0, mok, -1, wallcenterleft, wallcenterh, 596, 1);
checkcollision(0, mok, 1, wallcenterright, wallcenterh, 596, 1);
checkcollision(1, mok, -1, wallcenterh, wallcenterleft, wallcenterright, 1);
}
if (balls[mok].ballclip._y > 400) {
checkmokocoll(0, mok);
if (plyrs == 2) {
checkmokocoll(1, mok);
}
}
if (time == (nv * 5)) {
nv = nv + 1;
modspeed(101);
}
if (balls[mok].ballclip._y > 485) {
if ((ballsnumber - 1) == 0) {
if (plyrs == 2) {
if (balls[mok].ballclip._x > wallcenterright) {
lifelost(0);
}
if (balls[mok].ballclip._x < wallcenterleft) {
lifelost(1);
}
} else {
lifelost(0);
}
destroyball(mok);
if (go == false) {
death();
}
} else {
timedrop = t;
dropvel = balls[mok].vel;
if (plyrs == 2) {
if (balls[mok].ballclip._x > wallcenterright) {
addscore(0, dropscore);
addscore(1, dropotherscore);
typepoints(0, 20);
typepoints(1, 2);
}
if (balls[mok].ballclip._x < wallcenterleft) {
addscore(1, dropscore);
addscore(0, dropotherscore);
typepoints(1, 20);
typepoints(0, 2);
}
} else {
addscore(0, dropscore);
typepoints(0, 20);
}
if (_global.sndval == true) {
snd.gotoAndPlay("balldrop");
}
destroyball(mok);
}
}
}
mok++;
}
if (t == (moki[0].timeattach + 4)) {
detach("moko1");
}
if (t == (moki[1].timeattach + 4)) {
detach("moko2");
}
if (((time - bricktime) > 28) and ((db == true) and (oh == false))) {
onehit();
}
if (((time == (timedrop + 4)) and (ballsnumber == 1)) and (plyrs == 2)) {
if (moki[0].lasttime >= moki[1].lasttime) {
side = 2;
} else {
side = 1;
}
newball(3);
}
if (bricksnumber == 0) {
if (finished == false) {
ctime = getTimer();
finished = true;
removebonus();
removeMovieClip(pauclip);
h = 0;
while (h < 18) {
i = 0;
while (i < 13) {
if (bricks[h][i].hits <= 0) {
removeMovieClip(bricks[h][i].brick);
}
i++;
}
h++;
}
onEnterFrame = null;
keyListener.onKeyDown = null;
donothing = true;
if ((currentlevel + 1) < 30) {
gingle_end.start();
}
onEnterFrame = function () {
ttime = getTimer();
if ((currentlevel + 1) < 30) {
if ((ttime > (ctime + 4500)) and (lok == true)) {
attachMovie("doorsclip", "doors", 200000);
doors._x = 41;
doors._y = 32;
lok = false;
}
if (ttime > (ctime + 6000)) {
onEnterFrame = null;
changelevel();
}
} else if (lok == true) {
removeMovieClip(pauclip);
ending01_music.start();
attachMovie("ending", "endingclip", 200000);
endingclip._x = 0;
endingclip._y = 0;
lok = false;
}
if (endingclip._currentframe == 614) {
ending02_music.start();
}
if (ending02_music.position == ending02_music.duration) {
onEnterFrame = null;
endingclip.nextFrame();
if (plyrs == 1) {
highscore(score1, currentlevel + 1);
} else if (plyrs == 2) {
highscore(Math.max(score1, score2), currentlevel + 1);
}
}
};
}
}
};
};
onEnterFrame = function () {
if (keypressed == true) {
onEnterFrame = null;
}
if (restartquery == false) {
if (getTimer() > (ctime3 + 4000)) {
detach("moko1");
}
if (getTimer() > (ctime3 + 4000)) {
detach("moko2");
}
moveall();
}
};
keyListener.onKeyDown = function () {
keypressed = true;
if ((((mokopaused == true) and Key.isDown(32)) and (restartquery == false)) or (mokopaused == false)) {
moveall();
}
};
keyListener.onKeyUp = function () {
if ((key0wasdown == 40) and (!Key.isDown(40))) {
detach0ok = true;
fire0ok = true;
key0wasdown = 0;
}
if ((key1wasdown == 88) and (!Key.isDown(88))) {
detach1ok = true;
fire1ok = true;
key1wasdown = 0;
}
if ((key0wasdown == 88) and (!Key.isDown(88))) {
detach0ok = true;
fire0ok = true;
key0wasdown = 0;
}
};
Key.addListener(keyListener);
};
changelevel = function () {
nv = 1;
currentlevel = currentlevel + 1;
depth = 1;
if (currentlevel == 9) {
makenight();
}
if (currentlevel == 19) {
makeday();
}
mokostart();
levelload(currentlevel);
};
makenight = function () {
scenclip.gotoAndPlay(2);
this.bglevel1.gotoAndStop(2);
scores.gotoAndStop("notte");
night = true;
};
makeday = function () {
scenclip.gotoAndPlay(61);
this.bglevel1.gotoAndStop(1);
scores.gotoAndStop("giorno");
night = false;
};
buildwall = function (levelarray) {
inv = false;
h = 0;
while (h < 18) {
i = 0;
while (i < 13) {
removeMovieClip(eval ((("brick0" + h) + 0) + i));
bricks[h][i].brick = null;
if (levelarray[h][i] == 100) {
bricks[h][i].exist = false;
} else {
attachMovie("brick" + levelarray[h][i], (("brick0" + h) + 0) + i, depth);
if (((((((levelarray[h][i] != 4) and (levelarray[h][i] != 43)) and (levelarray[h][i] != 21)) and (levelarray[h][i] != 22)) and (levelarray[h][i] != 23)) and (levelarray[h][i] != 24)) and (levelarray[h][i] != 44)) {
bricksnumber = bricksnumber + 1;
}
eval ((("brick0" + h) + 0) + i)._x = (i * brickwidth) + wallleft;
eval ((("brick0" + h) + 0) + i)._y = (h * brickheight) + top;
eval ((("brick0" + h) + 0) + i).cacheAsBitmap = true;
bricks[h][i].brick = eval ((("brick0" + h) + 0) + i);
bricks[h][i].exist = true;
if (((levelarray[h][i] == 4) or (levelarray[h][i] == 43)) or (levelarray[h][i] == 44)) {
bricks[h][i].hits = 100;
db = true;
}
if ((((levelarray[h][i] == 21) or (levelarray[h][i] == 22)) or (levelarray[h][i] == 23)) or (levelarray[h][i] == 24)) {
bricks[h][i].hits = 101;
db = true;
}
if (((levelarray[h][i] == 5) or (levelarray[h][i] == 25)) or (levelarray[h][i] == 48)) {
bricks[h][i].hits = 2;
db = true;
}
if (((levelarray[h][i] == 26) or (levelarray[h][i] == 27)) or (levelarray[h][i] == 28)) {
bricks[h][i].hits = 3;
db = true;
}
if (levelarray[h][i] == 48) {
bricks[h][i].inv = true;
inv = true;
}
rand1 = Math.floor(Math.random() * ((randbonus - 0) + 1));
if ((((rand1 <= 11) and (bricks[h - 1][i].bon == false)) and (bricks[h + 1][i].bon == false)) and (i != 6)) {
if (rand1 == 7) {
if (_global.cheat2 == false) {
rand2 = random(11);
if (rand2 == 2) {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else if (rand1 == 9) {
if (_global.cheat2 == false) {
rand2 = random(5);
if (rand2 == 2) {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1 + 1;
}
} else if (rand1 == 10) {
if (_global.cheat2 == false) {
rand2 = random(5);
if (rand2 == 2) {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else if (rand1 == 6) {
if (_global.cheat2 == false) {
rand2 = random(1);
if (rand2 == 0) {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else if (rand1 == 5) {
if (_global.cheat2 == false) {
rand2 = random(2);
if (rand2 == 1) {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else if (rand1 == 11) {
if (_global.cheat2 == false) {
rand2 = random(3);
if (rand2 == 2) {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
} else {
bricks[h][i].bon = true;
bricks[h][i].bontyp = rand1;
}
}
depth = depth + 1;
}
i++;
}
h++;
}
};
newball = function (p) {
pos = 0;
while (pos < ballsmax) {
if (balls[pos].exist == false) {
attachMovie("ball", "ball" + bmv, balldepth);
balls[pos].ballclip = eval ("ball" + bmv);
balls[pos].ballclip._width = 12.5;
balls[pos].ballclip._height = 12.5;
balls[pos].radius = balls[pos].ballclip._width / 2;
balls[pos].coll = false;
balls[pos].superball = false;
balls[pos].ballclip.cacheAsBitmap = true;
balldepth = balldepth + 1;
ballsnumber = ballsnumber + 1;
bmv = bmv + 1;
if (p == 1) {
balls[pos].ballclip._y = moki[0].movie._y - balls[pos].radius;
balls[pos].ballclip._x = moki[0].movie._x;
balls[pos].velx = 0;
balls[pos].vely = 0;
balls[pos].vel = 0;
balls[pos].avelx = -150;
balls[pos].avely = -350;
balls[pos].avel = Math.sqrt((balls[pos].avelx * balls[pos].avelx) + (balls[pos].avely * balls[pos].avely));
balls[pos].bapos = 0;
balls[pos].who = 0;
balls[pos].attached = "moko1";
} else if (p == 2) {
balls[pos].ballclip._y = moki[1].movie._y - balls[pos].radius;
balls[pos].ballclip._x = moki[1].movie._x;
balls[pos].velx = 0;
balls[pos].vely = 0;
balls[pos].vel = 0;
balls[pos].avelx = 150;
balls[pos].avely = -350;
balls[pos].avel = Math.sqrt((balls[pos].avelx * balls[pos].avelx) + (balls[pos].avely * balls[pos].avely));
balls[pos].bapos = 0;
balls[pos].who = 1;
balls[pos].attached = "moko2";
} else if (p == 3) {
balls[pos].ballclip._y = 480;
if (side == 1) {
balls[pos].ballclip._x = 482;
balls[pos].velx = (-dropvel) * 0.5;
balls[pos].vely = (-dropvel) * 0.866;
balls[pos].who = 0;
}
if (side == 2) {
balls[pos].ballclip._x = 52;
balls[pos].velx = dropvel * 0.5;
balls[pos].vely = (-dropvel) * 0.866;
balls[pos].who = 1;
}
balls[pos].avelx = 0;
balls[pos].avely = 0;
balls[pos].avel = 0;
balls[pos].vel = Math.sqrt((balls[pos].velx * balls[pos].velx) + (balls[pos].vely * balls[pos].vely));
balls[pos].coll = true;
if (supb == true) {
balls[pos].superball = true;
balls[pos].ballclip.gotoAndStop(2);
balls[pos].ballclip._width = 20;
balls[pos].ballclip._height = 20;
balls[pos].radius = balls[pos].ballclip._width / 2;
}
balls[pos].attached = "no";
if (_global.sndval == true) {
snd.gotoAndPlay(30);
}
} else if (p == 0) {
pos2 = 0;
while (pos2 < ballsmax) {
if (balls[pos2].exist == true) {
balls[pos].ballclip._y = balls[pos2].ballclip._y;
balls[pos].ballclip._x = balls[pos2].ballclip._x;
balls[pos].who = balls[pos2].who;
if (balls[pos2].attached == "no") {
if (Math.abs(balls[pos2].velx) < (0.333333333333333 * Math.abs(balls[pos2].vely))) {
balls[pos].velx = -balls[pos2].velx;
balls[pos].vely = -balls[pos2].vely;
} else {
balls[pos].velx = -balls[pos2].vely;
balls[pos].vely = -balls[pos2].velx;
}
balls[pos].vel = Math.sqrt((balls[pos].velx * balls[pos].velx) + (balls[pos].vely * balls[pos].vely));
} else {
balls[pos].velx = balls[pos2].avelx;
balls[pos].vely = balls[pos2].avely;
balls[pos].vel = Math.sqrt((balls[pos].velx * balls[pos].velx) + (balls[pos].vely * balls[pos].vely));
balls[pos].coll = true;
}
if (_global.sndval == true) {
snd.gotoAndPlay(16);
}
if (balls[pos2].superball == true) {
balls[pos].superball = true;
balls[pos].ballclip.gotoAndStop(2);
balls[pos].ballclip._width = 20;
balls[pos].ballclip._height = 20;
balls[pos].radius = balls[pos].ballclip._width / 2;
}
balls[pos].attached = "no";
break;
}
pos2++;
}
}
balls[pos].exist = true;
return;
}
pos++;
}
};
destroyball = function (ban) {
ballsnumber = ballsnumber - 1;
removeMovieClip(balls[ban].ballclip);
balls[ban].exist = false;
balls[ban].superball = false;
};
superball = function (s) {
sb = 0;
while (sb < ballsmax) {
if (balls[sb].exist == true) {
if (s == "on") {
supb = true;
balls[sb].superball = true;
balls[sb].ballclip.gotoAndStop(2);
balls[sb].ballclip._width = 20;
balls[sb].ballclip._height = 20;
balls[sb].radius = balls[sb].ballclip._width / 2;
} else if (s == "off") {
supb = false;
balls[sb].superball = false;
balls[sb].ballclip.gotoAndStop(1);
balls[sb].ballclip._width = 12.5;
balls[sb].ballclip._height = 12.5;
balls[sb].radius = balls[sb].ballclip._width / 2;
}
}
sb++;
}
};
onehit = function () {
if (_global.sndval == true) {
if ((oh == false) and (db == true)) {
snd.gotoAndPlay("onehit");
} else {
snd.gotoAndPlay("pow");
}
}
oh = true;
h = 0;
while (h < 18) {
i = 0;
while (i < 13) {
if ((bricks[h][i].exist == true) and (bricks[h][i].hits > 1)) {
if ((bricks[h][i].hits == 100) or (bricks[h][i].hits == 101)) {
bricksnumber = bricksnumber + 1;
bricks[h][i].brick.gotoAndPlay("hit1");
}
if (bricks[h][i].hits == 2) {
bricks[h][i].brick.gotoAndPlay("hit1");
}
if (bricks[h][i].hits == 3) {
bricks[h][i].brick.gotoAndPlay("hit1");
}
if (bricks[h][i].inv == true) {
bricks[h][i].inv = false;
}
bricks[h][i].hits = 1;
}
i++;
}
h++;
}
};
modspeed = function (per) {
pv = 0;
while (pv < ballsmax) {
var _local2 = Math.sqrt(((((per / 100) * balls[pv].velx) * (per / 100)) * balls[pv].velx) + ((((per / 100) * balls[pv].vely) * (per / 100)) * balls[pv].vely));
if (((balls[pv].exist == true) and (_local2 > velballmn)) and (per < 100)) {
balls[pv].velx = (per / 100) * balls[pv].velx;
balls[pv].vely = (per / 100) * balls[pv].vely;
balls[pv].vel = Math.sqrt((balls[pv].velx * balls[pv].velx) + (balls[pv].vely * balls[pv].vely));
} else if (((balls[pv].exist == true) and (_local2 < velballmx)) and (per > 100)) {
balls[pv].velx = (per / 100) * balls[pv].velx;
balls[pv].vely = (per / 100) * balls[pv].vely;
balls[pv].vel = Math.sqrt((balls[pv].velx * balls[pv].velx) + (balls[pv].vely * balls[pv].vely));
}
pv++;
}
};
mokofire = function (m, c) {
if (c == true) {
moki[m].fire = true;
switch (moki[m].stage) {
case 0 :
moki[m].movie.gotoAndPlay(345);
break;
case 1 :
moki[m].movie.gotoAndPlay(208);
break;
case 2 :
moki[m].movie.gotoAndPlay(370);
}
} else if (c == false) {
moki[m].fire = false;
switch (moki[m].stage) {
case 0 :
moki[m].movie.gotoAndStop(146);
break;
case 1 :
moki[m].movie.gotoAndStop(1);
break;
case 2 :
moki[m].movie.gotoAndStop(76);
}
}
};
fire = function (m) {
if (eval ("allbullet" + m).length < 5) {
eval ("allbullet" + m).push({bc:Array(2), n:(Number = 2), who:(Number = m)});
attachMovie("bullet", "bullet" + bulletqty, bulletdepth);
switch (moki[m].stage) {
case 0 :
moki[m].movie.gotoAndPlay(345);
break;
case 1 :
moki[m].movie.gotoAndPlay(208);
break;
case 2 :
moki[m].movie.gotoAndPlay(370);
}
eval ("bullet" + bulletqty)._x = (moki[m].movie._x - (moki[m].movie._width / 2)) + 9;
eval ("bullet" + bulletqty)._y = moki[m].movie._y;
eval ("bullet" + bulletqty).cacheAsBitmap = true;
eval ("allbullet" + m)[eval ("allbullet" + m).length - 1].bc[0] = {bulletmovie:(MovieClip = eval ("bullet" + bulletqty))};
bulletdepth = bulletdepth + 1;
bulletqty = bulletqty + 1;
attachMovie("bullet", "bullet" + bulletqty, bulletdepth);
eval ("bullet" + bulletqty)._x = (moki[m].movie._x + (moki[m].movie._width / 2)) - 7;
eval ("bullet" + bulletqty)._y = moki[m].movie._y;
eval ("bullet" + bulletqty).cacheAsBitmap = true;
eval ("allbullet" + m)[eval ("allbullet" + m).length - 1].bc[1] = {bulletmovie:(MovieClip = eval ("bullet" + bulletqty))};
bulletdepth = bulletdepth + 1;
bulletqty = bulletqty + 1;
if (_global.sndval == true) {
if (moki[m].stage == 0) {
snd.gotoAndPlay("shootsmall");
} else {
snd.gotoAndPlay("shoot");
}
}
if (m == 0) {
cframe3 = frame;
}
if (m == 1) {
cframe2 = frame;
}
}
};
bulletsmove = function (bu) {
var _local4 = 0;
var _local2 = 0;
var _local3 = 0;
var _local1 = 0;
var _local5;
destroybullet = function (p, bp) {
removeMovieClip(bu[p].bc[bp].bulletmovie);
bu[p].n = bu[p].n - 1;
if (bu[p].n == 0) {
bu.splice(p, 1);
}
};
arrpos = 0;
while (arrpos <= bu.length) {
bu[arrpos].bc[0].bulletmovie._y = bu[arrpos].bc[0].bulletmovie._y - 8;
bu[arrpos].bc[1].bulletmovie._y = bu[arrpos].bc[1].bulletmovie._y - 8;
_local4 = Math.floor((bu[arrpos].bc[0].bulletmovie._x - wallleft) / brickwidth);
_local2 = Math.floor((bu[arrpos].bc[0].bulletmovie._y - top) / brickheight);
_local3 = Math.floor((bu[arrpos].bc[1].bulletmovie._x - wallleft) / brickwidth);
_local1 = Math.floor((bu[arrpos].bc[1].bulletmovie._y - top) / brickheight);
if (bu[arrpos].bc[0].bulletmovie._y < 40) {
destroybullet(arrpos, 0);
}
if (bu[arrpos].bc[1].bulletmovie._y < 40) {
destroybullet(arrpos, 1);
}
if (bricks[_local2][_local4].exist == true) {
destroybrick(_local2, _local4);
if ((bricks[_local2][_local4].hits != 100) and (bricks[_local2][_local4].hits != 101)) {
addscore(bu[arrpos].who, bulletscore);
}
destroybullet(arrpos, 0);
}
if (bricks[_local1][_local3].exist == true) {
destroybrick(_local1, _local3);
if ((bricks[_local1][_local3].hits != 100) and (bricks[_local1][_local3].hits != 101)) {
addscore(bu[arrpos].who, bulletscore);
}
destroybullet(arrpos, 1);
}
arrpos++;
}
};
addscore = function (m, p) {
if (m == 0) {
score1 = score1 + p;
incr1 = (nl1 * 14000) + (nll1 * 1000);
if (score1 > incr1) {
moki[0].lives = moki[0].lives + 1;
scores.lives1 = "x" + moki[0].lives;
if (_global.sndval == true) {
snd.gotoAndPlay("life");
}
if (((plyrs == 1) and (gameover2 == false)) and (_global.cheat3 == false)) {
scores.mokob.gotoAndPlay(2);
} else if (((plyrs == 1) and (gameover2 == true)) or ((plyrs == 1) and (_global.cheat3 == true))) {
scores.mokoa.gotoAndPlay(2);
}
if (plyrs == 2) {
scores.mokoa.gotoAndPlay(2);
}
typepoints(m, 7);
nl1 = nl1 + 1;
nll1 = nll1 * 2;
}
if (score1 <= 0) {
scores.scorepl1 = "0000000";
score1 = 0;
}
if ((score1 > 0) and (score1 < 10)) {
scores.scorepl1 = "000000" + score1;
}
if ((score1 >= 10) and (score1 < 100)) {
scores.scorepl1 = "00000" + score1;
}
if ((score1 >= 100) and (score1 < 1000)) {
scores.scorepl1 = "0000" + score1;
}
if ((score1 >= 1000) and (score1 < 10000)) {
scores.scorepl1 = "000" + score1;
}
if ((score1 >= 10000) and (score1 < 100000)) {
scores.scorepl1 = "00" + score1;
}
if ((score1 >= 100000) and (score1 < 1000000)) {
scores.scorepl1 = "0" + score1;
}
if ((score1 >= 1000000) and (score1 < 10000000)) {
scores.scorepl1 = score1;
}
}
if (m == 1) {
score2 = score2 + p;
incr2 = (nl2 * 14000) + (nll2 * 1000);
if (score2 > incr2) {
moki[1].lives = moki[1].lives + 1;
scores.lives2 = "x" + moki[1].lives;
if (_global.sndval == true) {
snd.gotoAndPlay("life");
}
scores.mokob.gotoAndPlay(2);
typepoints(m, 7);
nl2 = nl2 + 1;
nll2 = nll2 * 2;
}
if (score2 <= 0) {
scores.scorepl2 = "0000000";
score2 = 0;
}
if ((score2 > 0) and (score2 < 10)) {
scores.scorepl2 = "000000" + score2;
}
if ((score2 >= 10) and (score2 < 100)) {
scores.scorepl2 = "00000" + score2;
}
if ((score2 >= 100) and (score2 < 1000)) {
scores.scorepl2 = "0000" + score2;
}
if ((score2 >= 1000) and (score2 < 10000)) {
scores.scorepl2 = "000" + score2;
}
if ((score2 >= 10000) and (score2 < 100000)) {
scores.scorepl2 = "00" + score2;
}
if ((score2 >= 100000) and (score2 < 1000000)) {
scores.scorepl2 = "0" + score2;
}
if ((score2 >= 1000000) and (score2 < 10000000)) {
scores.scorepl2 = score2;
}
}
};
bnn = 0;
while (bnn < ballsmax) {
balls[bnn] = {ballclip:MovieClip, vel:Number, velx:Number, vely:Number, radius:Number, superball:(Boolean = false), exist:(Boolean = false), coll:(Boolean = false), coll2:(Boolean = false), avelx:Number, avely:Number, avel:Number, bapos:Number, attached:(String = "no"), who:Number};
bnn++;
}
npoints = 0;
while (npoints < 8) {
allpoints[npoints] = {pointsclip:MovieClip, exist:(Boolean = false)};
npoints++;
}
scores.lives1 = "x" + moki[0].lives;
if (plyrs == 2) {
scores.lives2 = "x" + moki[1].lives;
}
scores.scorepl1 = "0000000";
if (plyrs == 2) {
scores.scorepl2 = "0000000";
}
levelload = function (levelnumber) {
var rl = 0;
var cl = 0;
var p = 0;
var ltime = 0;
var s = true;
scores.lev = currentlevel + 1;
frame = 0;
time = 0;
t = time;
oh = false;
db = false;
cframe = -81;
cframe2 = 0;
cframe3 = 0;
pauseframe = -13;
bricktime = 0;
finished = false;
flowers = false;
attachMovie("levelclip", "levelclip", 7000);
donothing = true;
r = 0;
while (r < 18) {
bricks[r] = new Array(13);
c = 0;
while (c < 13) {
bricks[r][c] = {brick:MovieClip, exist:(Boolean = false), bon:(Boolean = false), bontyp:Number, hits:(Number = 1), inv:(Boolean = false)};
c++;
}
r++;
}
buildwall(eval ("level" + currentlevel));
if (plyrs == 1) {
if (_global.cheat4 == false) {
moki[0].movie._x = 207 + moki[0].movie._width;
} else if (_global.cheat4 == true) {
moki[0].movie._x = 169 + moki[0].movie._width;
}
moki[0].movie._visible = true;
}
removeMovieClip(pauclip);
doors.gotoAndPlay(45);
ltime = getTimer();
onEnterFrame = function () {
if (levelnumber >= 9) {
levelclip._x = 223;
levelclip._y = 575;
} else {
levelclip._x = 231;
levelclip._y = 575;
}
levelclip.il = levelnumber + 1;
if ((getTimer() > (ltime + 150)) and (s == true)) {
gingle_start.start();
s = false;
}
if (getTimer() > (ltime + 3900)) {
removeMovieClip(levelclip);
removeMovieClip(doors);
onEnterFrame = null;
donothing = false;
moko();
}
};
};
highscore = function (s, l) {
removeMovieClip(gameoverclip);
attachMovie("hsub", "hsubclip", 200002);
hsubclip.hs_window.player_name.text = "your name";
Selection.setFocus("hsubclip.hs_window.player_name");
Selection.setSelection(9, 9);
hsubclip.hs_window.player_score.text = s;
hsubclip._x = 137;
hsubclip._y = 230;
hsubclip.hs_window.gotoAndStop(3);
submit = function () {
if (scoresubmitted == false) {
if (s != 0) {
CMG_AS2.ScoreSubmitter.gameId = 343;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "moko769c11b032df2adeefe178ed050f6ac6";
var _local1 = new CMG_AS2.ScoreSubmitter();
_local1.submitScore(hsubclip.hs_window.player_name.text, hsubclip.hs_window.player_score.text, String(l));
hsubclip.hs_window.player_name.text = "";
hsubclip.hs_window.player_name._alpha = 0;
scoresubmitted = true;
} else {
hsubclip.hs_window.player_name.text = "";
hsubclip.hs_window.player_name._alpha = 0;
hsubclip.hs_window.hs_output.text = "Your score is too low!";
}
} else {
hsubclip.hs_window.hs_output.text = "You can't submit your score again!";
}
};
hsubclip.hs_window.restart_hit.onRollOver = function () {
if ((hsubclip._currentframe == hsubclip._totalframes) and (hsubselect == false)) {
if (_global.sndval == true) {
snd.gotoAndPlay("select");
}
hsubclip.hs_window.gotoAndStop(2);
hsubselect = true;
}
};
hsubclip.hs_window.score_hit.onRollOver = function () {
if ((hsubclip._currentframe == hsubclip._totalframes) and (hsubselect == true)) {
if (_global.sndval == true) {
snd.gotoAndPlay("select");
}
hsubclip.hs_window.gotoAndPlay(3);
hsubselect = false;
}
};
hsubclip.hs_window.score_hit.onPress = function () {
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
submit();
};
hsubclip.hs_window.restart_hit.onPress = function () {
if (_global.sndval == true) {
snd.gotoAndPlay("enter");
}
removeMovieClip(hsubclip);
removeMovieClip(endingclip);
restart();
};
onEnterFrame = function () {
if (hsubclip._currentframe == 20) {
if (_global.sndval == true) {
this.snd.gotoAndPlay("square");
onEnterFrame = null;
}
}
};
};
levelload(currentlevel);
stop();
Frame 7
stop();
Symbol 7 MovieClip [points11] Frame 40
stop();
Symbol 10 MovieClip [points0] Frame 40
stop();
Symbol 13 MovieClip [points6] Frame 40
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 41 MovieClip [scoresclip] Frame 1
stop();
Symbol 41 MovieClip [scoresclip] Frame 2
stop();
Symbol 61 MovieClip Frame 1
this.hitArea = hit;
Instance of Symbol 61 MovieClip in Symbol 63 MovieClip Frame 1
on (release) {
_root.nextFrame();
}
Symbol 63 MovieClip Frame 20
stop();
Symbol 64 MovieClip Frame 1
stop();
Instance of Symbol 54 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (enterFrame) {
bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (bar._xscale == 100) {
_parent.nextFrame();
}
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 898 MovieClip [__Packages.CMG_AS2.ScoreSubmitter] Frame 0
class CMG_AS2.ScoreSubmitter
{
function ScoreSubmitter () {
}
function submitScore(playerName, playerScore, playerSpecial) {
playerName = CMG_AS2.Utilities.trim(playerName);
gameVersion = CMG_AS2.Utilities.trim(gameVersion);
if (playerSpecial == null) {
playerSpecial = "";
} else {
playerSpecial = CMG_AS2.Utilities.trim(playerSpecial);
}
gameValidationCode = CMG_AS2.Utilities.trim(gameValidationCode);
if (((gameId < 1) || (gameVersion == "")) || (gameValidationCode == "")) {
if (responseHandler != null) {
responseHandler(RETURNCODE_REJECTED);
}
return(undefined);
}
var _local2 = new LoadVars();
_local2.name = playerName;
_local2.score = playerScore;
_local2.gameId = gameId;
_local2.gameVersion = gameVersion;
_local2.special = playerSpecial;
var _local6 = new CMG_AS2.MD5();
_local2.key = _local6.calcMD5((((((((playerName + "|") + playerScore) + "|") + gameId) + "|") + playerSpecial) + "|") + gameValidationCode);
if (responseHandler != null) {
responseHandler(RETURNCODE_WORKING);
}
_local2.sendAndLoad(URL_SUBMITSCORE, _local2, "POST");
_local2.onLoad = function (ok) {
if (ok) {
var _local2 = CMG_AS2.Utilities.trim(this.ok);
if (_local2 == 1) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_SUCCESS);
}
} else if (_local2 == 0) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_REJECTED);
}
} else if (_local2 == 2) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_WRONGVERSION);
}
} else {
trace(("Unknown server response: '" + this.ok) + "'");
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_INTERNALERROR);
}
}
} else {
trace("Couldn't even load the page...'");
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_NETWORKERROR);
}
}
};
}
static function loadHighScorePage() {
getURL ((URL_VIEWSCORES + "?id=") + gameId, "_blank");
}
static function loadUpdatePage() {
getURL ((URL_UPDATEGAME + "?id=") + gameId, "_blank");
}
static var gameId = 0;
static var gameVersion = "1.0";
static var gameValidationCode = "";
static var responseHandler = null;
static var URL_VIEWSCORES = "http://scores.crazymonkeygames.com/hs/listscores.php";
static var URL_SUBMITSCORE = "http://scores.crazymonkeygames.com/hs/regscores2.php";
static var URL_UPDATEGAME = "http://scores.crazymonkeygames.com/hs/pleaseupdate.php";
static var RETURNCODE_WORKING = 0;
static var RETURNCODE_SUCCESS = 1;
static var RETURNCODE_REJECTED = 2;
static var RETURNCODE_WRONGVERSION = 3;
static var RETURNCODE_NETWORKERROR = 4;
static var RETURNCODE_INTERNALERROR = 5;
}
Symbol 899 MovieClip [__Packages.CMG_AS2.Utilities] Frame 0
class CMG_AS2.Utilities
{
function Utilities () {
}
static function trim(txt_str) {
while (txt_str.charAt(0) == " ") {
txt_str = txt_str.substring(1, txt_str.length);
}
while (txt_str.charAt(txt_str.length - 1) == " ") {
txt_str = txt_str.substring(0, txt_str.length - 1);
}
return(txt_str);
}
}
Symbol 900 MovieClip [__Packages.CMG_AS2.MD5] Frame 0
class CMG_AS2.MD5
{
function MD5 () {
}
function bitOR(a, b) {
var _local1 = (a & 1) | (b & 1);
var _local2 = (a >>> 1) | (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitXOR(a, b) {
var _local1 = (a & 1) ^ (b & 1);
var _local2 = (a >>> 1) ^ (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitAND(a, b) {
var _local1 = (a & 1) & (b & 1);
var _local2 = (a >>> 1) & (b >>> 1);
return((_local2 << 1) | _local1);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
var _local4 = "";
var _local2 = 0;
while (_local2 <= 3) {
_local4 = _local4 + (hex_chr.charAt((num >> ((_local2 * 8) + 4)) & 15) + hex_chr.charAt((num >> (_local2 * 8)) & 15));
_local2++;
}
return(_local4);
}
function str2blks_MD5(str) {
var _local4 = ((str.length + 8) >> 6) + 1;
var _local3 = new Array(_local4 * 16);
var _local1 = 0;
while (_local1 < (_local4 * 16)) {
_local3[_local1] = 0;
_local1++;
}
_local1 = 0;
while (_local1 < str.length) {
_local3[_local1 >> 2] = _local3[_local1 >> 2] | (str.charCodeAt(_local1) << ((((str.length * 8) + _local1) % 4) * 8));
_local1++;
}
_local3[_local1 >> 2] = _local3[_local1 >> 2] | (128 << ((((str.length * 8) + _local1) % 4) * 8));
var _local5 = str.length * 8;
_local3[(_local4 * 16) - 2] = _local5 & 255;
_local3[(_local4 * 16) - 2] = _local3[(_local4 * 16) - 2] | (((_local5 >>> 8) & 255) << 8);
_local3[(_local4 * 16) - 2] = _local3[(_local4 * 16) - 2] | (((_local5 >>> 16) & 255) << 16);
_local3[(_local4 * 16) - 2] = _local3[(_local4 * 16) - 2] | (((_local5 >>> 24) & 255) << 24);
return(_local3);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, c), bitAND(~b, d)), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
var _local7 = str2blks_MD5(str);
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local12;
var _local6 = 0;
while (_local6 < _local7.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local12 = 0;
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 0], 7, -680876936);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 1], 12, -389564586);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 2], 17, 606105819);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 3], 22, -1044525330);
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 4], 7, -176418897);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 5], 12, 1200080426);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 6], 17, -1473231341);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 7], 22, -45705983);
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 8], 7, 1770035416);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 9], 12, -1958414417);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 10], 17, -42063);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 11], 22, -1990404162);
_local5 = ff(_local5, _local4, _local3, _local2, _local7[_local6 + 12], 7, 1804603682);
_local2 = ff(_local2, _local5, _local4, _local3, _local7[_local6 + 13], 12, -40341101);
_local3 = ff(_local3, _local2, _local5, _local4, _local7[_local6 + 14], 17, -1502002290);
_local4 = ff(_local4, _local3, _local2, _local5, _local7[_local6 + 15], 22, 1236535329);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 1], 5, -165796510);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 6], 9, -1069501632);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 11], 14, 643717713);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 0], 20, -373897302);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 5], 5, -701558691);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 10], 9, 38016083);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 15], 14, -660478335);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 4], 20, -405537848);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 9], 5, 568446438);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 14], 9, -1019803690);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 3], 14, -187363961);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 8], 20, 1163531501);
_local5 = gg(_local5, _local4, _local3, _local2, _local7[_local6 + 13], 5, -1444681467);
_local2 = gg(_local2, _local5, _local4, _local3, _local7[_local6 + 2], 9, -51403784);
_local3 = gg(_local3, _local2, _local5, _local4, _local7[_local6 + 7], 14, 1735328473);
_local4 = gg(_local4, _local3, _local2, _local5, _local7[_local6 + 12], 20, -1926607734);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 5], 4, -378558);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 8], 11, -2022574463);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 11], 16, 1839030562);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 14], 23, -35309556);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 1], 4, -1530992060);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 4], 11, 1272893353);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 7], 16, -155497632);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 10], 23, -1094730640);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 13], 4, 681279174);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 0], 11, -358537222);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 3], 16, -722521979);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 6], 23, 76029189);
_local5 = hh(_local5, _local4, _local3, _local2, _local7[_local6 + 9], 4, -640364487);
_local2 = hh(_local2, _local5, _local4, _local3, _local7[_local6 + 12], 11, -421815835);
_local3 = hh(_local3, _local2, _local5, _local4, _local7[_local6 + 15], 16, 530742520);
_local4 = hh(_local4, _local3, _local2, _local5, _local7[_local6 + 2], 23, -995338651);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 0], 6, -198630844);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 7], 10, 1126891415);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 14], 15, -1416354905);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 5], 21, -57434055);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 12], 6, 1700485571);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 3], 10, -1894986606);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 10], 15, -1051523);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 1], 21, -2054922799);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 8], 6, 1873313359);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 15], 10, -30611744);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 6], 15, -1560198380);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 13], 21, 1309151649);
_local5 = ii(_local5, _local4, _local3, _local2, _local7[_local6 + 4], 6, -145523070);
_local2 = ii(_local2, _local5, _local4, _local3, _local7[_local6 + 11], 10, -1120210379);
_local3 = ii(_local3, _local2, _local5, _local4, _local7[_local6 + 2], 15, 718787259);
_local4 = ii(_local4, _local3, _local2, _local5, _local7[_local6 + 9], 21, -343485551);
_local5 = addme(_local5, _local11);
_local4 = addme(_local4, _local10);
_local3 = addme(_local3, _local9);
_local2 = addme(_local2, _local8);
_local6 = _local6 + 16;
}
return(((rhex(_local5) + rhex(_local4)) + rhex(_local3)) + rhex(_local2));
}
var hex_chr = "0123456789abcdef";
}
Symbol 79 MovieClip [ball] Frame 1
stop();
Symbol 79 MovieClip [ball] Frame 2
stop();
Symbol 105 MovieClip [doorsclip] Frame 44
stop();
Symbol 105 MovieClip [doorsclip] Frame 91
stop();
Symbol 113 MovieClip [gameover] Frame 1
stop();
Symbol 113 MovieClip [gameover] Frame 2
stop();
Symbol 113 MovieClip [gameover] Frame 3
stop();
Symbol 113 MovieClip [gameover] Frame 4
stop();
Symbol 117 MovieClip [levelclip] Frame 1
stop();
Symbol 122 MovieClip [deathclip] Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 5
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 5
stop();
Symbol 145 MovieClip [rest] Frame 30
stop();
Symbol 152 MovieClip [scores1clip] Frame 1
stop();
Symbol 152 MovieClip [scores1clip] Frame 2
stop();
Symbol 159 MovieClip [scores21clip] Frame 1
stop();
Symbol 159 MovieClip [scores21clip] Frame 2
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Symbol 279 MovieClip [plat1clip] Frame 1
stop();
Symbol 279 MovieClip [plat1clip] Frame 76
stop();
Symbol 279 MovieClip [plat1clip] Frame 110
stop();
Symbol 279 MovieClip [plat1clip] Frame 146
stop();
Symbol 279 MovieClip [plat1clip] Frame 186
stop();
Symbol 279 MovieClip [plat1clip] Frame 218
stop();
Symbol 279 MovieClip [plat1clip] Frame 245
stop();
Symbol 279 MovieClip [plat1clip] Frame 270
stop();
Symbol 279 MovieClip [plat1clip] Frame 301
stop();
Symbol 279 MovieClip [plat1clip] Frame 331
stop();
Symbol 279 MovieClip [plat1clip] Frame 355
stop();
Symbol 279 MovieClip [plat1clip] Frame 380
stop();
Symbol 372 MovieClip [plat2clip] Frame 1
stop();
Symbol 372 MovieClip [plat2clip] Frame 76
stop();
Symbol 372 MovieClip [plat2clip] Frame 110
stop();
Symbol 372 MovieClip [plat2clip] Frame 146
stop();
Symbol 372 MovieClip [plat2clip] Frame 186
stop();
Symbol 372 MovieClip [plat2clip] Frame 218
stop();
Symbol 372 MovieClip [plat2clip] Frame 245
stop();
Symbol 372 MovieClip [plat2clip] Frame 270
stop();
Symbol 372 MovieClip [plat2clip] Frame 301
stop();
Symbol 372 MovieClip [plat2clip] Frame 331
stop();
Symbol 372 MovieClip [plat2clip] Frame 355
stop();
Symbol 372 MovieClip [plat2clip] Frame 380
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 470 MovieClip [brick4] Frame 1
stop();
Symbol 470 MovieClip [brick4] Frame 2
stop();
Symbol 479 MovieClip [brick43] Frame 1
stop();
Symbol 479 MovieClip [brick43] Frame 2
stop();
Symbol 486 MovieClip [brick44] Frame 1
stop();
Symbol 486 MovieClip [brick44] Frame 2
stop();
Symbol 499 MovieClip [brick48] Frame 1
stop();
Symbol 499 MovieClip [brick48] Frame 12
stop();
Symbol 604 MovieClip [brick21] Frame 1
stop();
Symbol 604 MovieClip [brick21] Frame 2
stop();
Symbol 609 MovieClip [brick22] Frame 1
stop();
Symbol 609 MovieClip [brick22] Frame 2
stop();
Symbol 614 MovieClip [brick23] Frame 1
stop();
Symbol 614 MovieClip [brick23] Frame 2
stop();
Symbol 619 MovieClip [brick24] Frame 1
stop();
Symbol 619 MovieClip [brick24] Frame 2
stop();
Symbol 627 MovieClip [brick5] Frame 1
stop();
Symbol 627 MovieClip [brick5] Frame 10
stop();
Symbol 630 MovieClip [brick25] Frame 1
stop();
Symbol 630 MovieClip [brick25] Frame 10
stop();
Symbol 636 MovieClip [brick26] Frame 1
stop();
Symbol 636 MovieClip [brick26] Frame 10
stop();
Symbol 636 MovieClip [brick26] Frame 20
stop();
Symbol 644 MovieClip [brick27] Frame 1
stop();
Symbol 644 MovieClip [brick27] Frame 10
stop();
Symbol 644 MovieClip [brick27] Frame 20
stop();
Symbol 650 MovieClip [brick28] Frame 1
stop();
Symbol 650 MovieClip [brick28] Frame 10
stop();
Symbol 650 MovieClip [brick28] Frame 20
stop();
Symbol 687 MovieClip [points20] Frame 40
stop();
Symbol 690 MovieClip [points2] Frame 40
stop();
Symbol 693 MovieClip [points4] Frame 40
stop();
Symbol 695 MovieClip [points8] Frame 40
stop();
Symbol 696 MovieClip [points1] Frame 40
stop();
Symbol 699 MovieClip [points5] Frame 40
stop();
Symbol 702 MovieClip [points3] Frame 40
stop();
Symbol 705 MovieClip [points10] Frame 40
stop();
Symbol 708 MovieClip [points7] Frame 60
stop();
Symbol 717 MovieClip Frame 170
Symbol 736 MovieClip [ending] Frame 4825
stop();
Symbol 751 MovieClip [scenografia] Frame 1
stop();
Symbol 751 MovieClip [scenografia] Frame 60
stop();
Symbol 764 MovieClip Frame 2
stop();
Symbol 764 MovieClip Frame 3
stop();
Symbol 765 MovieClip [hsub] Frame 30
stop();
Symbol 772 MovieClip Frame 1
stop();
Symbol 787 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 1
gotoAndPlay (2);
Instance of Symbol 53 MovieClip in Symbol 789 MovieClip Frame 1
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Instance of Symbol 787 MovieClip in Symbol 789 MovieClip Frame 179
onClipEvent (enterFrame) {
chance = random(90);
if (chance == 1) {
play();
}
}
Symbol 789 MovieClip Frame 420
_root.gotoAndStop("title screen");
Symbol 796 MovieClip [bglevel1] Frame 1
stop();
Symbol 796 MovieClip [bglevel1] Frame 2
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 2
gotoAndPlay (1);
Symbol 828 MovieClip Frame 3
stop();
Symbol 828 MovieClip Frame 4
gotoAndPlay (3);
Symbol 828 MovieClip Frame 5
stop();
Symbol 828 MovieClip Frame 6
gotoAndPlay (5);
Symbol 828 MovieClip Frame 7
stop();
Symbol 828 MovieClip Frame 8
gotoAndPlay (7);
Symbol 828 MovieClip Frame 9
stop();
Symbol 828 MovieClip Frame 10
gotoAndPlay (9);
Symbol 828 MovieClip Frame 11
stop();
Symbol 828 MovieClip Frame 12
gotoAndPlay (11);
Symbol 828 MovieClip Frame 13
stop();
Symbol 828 MovieClip Frame 14
gotoAndPlay (13);
Symbol 828 MovieClip Frame 15
stop();
Symbol 828 MovieClip Frame 16
gotoAndPlay (15);
Symbol 828 MovieClip Frame 17
stop();
Symbol 828 MovieClip Frame 18
gotoAndPlay (17);
Symbol 828 MovieClip Frame 19
stop();
Symbol 828 MovieClip Frame 20
gotoAndPlay (19);
Symbol 828 MovieClip Frame 21
stop();
Symbol 828 MovieClip Frame 22
gotoAndPlay (21);
Symbol 828 MovieClip Frame 23
stop();
Symbol 828 MovieClip Frame 24
gotoAndPlay (23);
Symbol 828 MovieClip Frame 25
stop();
Symbol 828 MovieClip Frame 26
gotoAndPlay (25);
Symbol 828 MovieClip Frame 27
stop();
Symbol 828 MovieClip Frame 28
gotoAndPlay (27);
Symbol 828 MovieClip Frame 29
stop();
Symbol 828 MovieClip Frame 30
gotoAndPlay (29);
Symbol 828 MovieClip Frame 31
stop();
Symbol 828 MovieClip Frame 32
gotoAndPlay (31);
Symbol 828 MovieClip Frame 33
stop();
Symbol 828 MovieClip Frame 34
gotoAndPlay (33);
Symbol 828 MovieClip Frame 35
stop();
Symbol 828 MovieClip Frame 36
gotoAndPlay (35);
Symbol 828 MovieClip Frame 37
stop();
Symbol 828 MovieClip Frame 38
gotoAndPlay (37);
Symbol 828 MovieClip Frame 39
stop();
Symbol 828 MovieClip Frame 40
gotoAndPlay (39);
Symbol 828 MovieClip Frame 41
stop();
Symbol 828 MovieClip Frame 42
gotoAndPlay (41);
Symbol 828 MovieClip Frame 43
stop();
Symbol 828 MovieClip Frame 44
gotoAndPlay (43);
Symbol 828 MovieClip Frame 45
stop();
Symbol 828 MovieClip Frame 46
gotoAndPlay (45);
Symbol 828 MovieClip Frame 47
stop();
Symbol 828 MovieClip Frame 48
gotoAndPlay (47);
Symbol 828 MovieClip Frame 49
stop();
Symbol 828 MovieClip Frame 50
gotoAndPlay (49);
Symbol 828 MovieClip Frame 51
stop();
Symbol 828 MovieClip Frame 52
gotoAndPlay (51);
Symbol 828 MovieClip Frame 53
stop();
Symbol 828 MovieClip Frame 54
gotoAndPlay (53);
Symbol 828 MovieClip Frame 55
stop();
Symbol 828 MovieClip Frame 56
gotoAndPlay (55);
Symbol 828 MovieClip Frame 57
stop();
Symbol 828 MovieClip Frame 58
gotoAndPlay (57);
Symbol 828 MovieClip Frame 59
stop();
Symbol 828 MovieClip Frame 60
gotoAndPlay (59);
Symbol 828 MovieClip Frame 61
stop();
Symbol 828 MovieClip Frame 62
gotoAndPlay (61);
Symbol 828 MovieClip Frame 63
stop();
Symbol 828 MovieClip Frame 64
gotoAndPlay (63);
Symbol 832 MovieClip Frame 5
stop();
Symbol 841 MovieClip Frame 5
stop();
Symbol 843 MovieClip Frame 5
stop();
Symbol 846 MovieClip Frame 5
stop();
Symbol 848 MovieClip Frame 5
stop();
Symbol 849 MovieClip [player select clip] Frame 1
stop();
Symbol 849 MovieClip [player select clip] Frame 2
stop();
Symbol 849 MovieClip [player select clip] Frame 3
stop();
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 2
stop();
Symbol 866 MovieClip Frame 3
stop();
Symbol 866 MovieClip Frame 4
stop();
Symbol 870 MovieClip Frame 1
stop();
Symbol 870 MovieClip Frame 2
stop();
Symbol 877 MovieClip Frame 170
Symbol 892 MovieClip Frame 60
stop();
Symbol 896 MovieClip Frame 80
stop();