Frame 1
var savefile = SharedObject.getLocal("enigma");
stop();
play.gotoAndStop(2);
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 25;
System.security.allowDomain("server.cpmstar.com");
ads.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
stop();
_root.menu = new ContextMenu();
_root.menu.hideBuiltInItems();
onEnterFrame = function () {
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar._xscale = percentLoaded;
if (bar._xscale == 100) {
play.gotoAndStop(1);
load._visible = false;
}
};
Instance of Symbol 21 MovieClip "play" in Frame 1
on (press) {
if (_root.play._currentframe == 1) {
_root.gotoAndStop(2);
}
}
Frame 2
function spawnCircles() {
cwait++;
if (cwait > 8) {
cwait = 0;
cnum++;
if (cnum > 1000) {
cnum = 1;
}
circleMc = attachMovie("circle", "c" + cnum, cnum);
circleMc._x = Math.random() * Stage.width;
circleMc._y = Stage.height + 20;
circleMc.pop = false;
circleMc.yspd = (Math.random() * 5) + 1;
circleMc._xscale = (circleMc._yscale = (Math.random() * 50) + 50);
circleMc._alpha = circleMc._xscale / 5;
circleMc.onEnterFrame = function () {
if ((!_root.pauseM) || (_root._currentframe != 6)) {
if (!this.pop) {
if (mouse) {
if (this.hitTest(_xmouse, _ymouse, true)) {
this.pop = true;
}
}
}
if (!this.pop) {
this._y = this._y - this.yspd;
this._x = this._x + ((Math.random() * 5) - 2.5);
if (this._y < -20) {
removeMovieClip(this);
}
} else {
this._xscale = this._xscale + 40;
this._yscale = this._xscale;
if (this._xscale > 250) {
_root.bubbles++;
removeMovieClip(this);
}
}
}
};
}
}
level = 0;
cnum = 0;
cwait = 0;
songPlaying = true;
if (savefile.data.starArray != undefined) {
_root.starArray = savefile.data.starArray;
} else {
starArray = new Array();
i = 0;
while (i < 24) {
starArray[i] = new Array(false, false, false);
i++;
}
savefile.data.starArray = _root.starArray;
}
onEnterFrame = function () {
_root.spawnCircles();
};
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 3
onEnterFrame = function () {
_root.spawnCircles();
};
Instance of Symbol 56 MovieClip in Frame 3
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Frame 4
stop();
creds._visible = false;
onEnterFrame = function () {
_root.spawnCircles();
};
Instance of Symbol 82 MovieClip in Frame 4
on (press) {
if (_root.songPlaying) {
_root.songPlaying = false;
_root.song.stop();
} else {
_root.songPlaying = true;
_root.song.play();
}
}
onClipEvent (enterFrame) {
if (_root.songPlaying) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 5
mouse = false;
onMouseDown = function () {
mouse = true;
};
onMouseUp = function () {
mouse = false;
};
bg.gotoAndStop(1);
onEnterFrame = function () {
_root.spawnCircles();
i = 1;
while (i <= 25) {
if (_root["l" + i].hitTest(_xmouse, _ymouse, true)) {
if (mouse && (i != 25)) {
_root.level = i - 2;
trace(level);
_root.gotoAndStop("game");
break;
}
if (i < 4) {
difficulty.gotoAndStop(1);
} else if (i < 7) {
difficulty.gotoAndStop(2);
} else if (i < 10) {
difficulty.gotoAndStop(3);
} else if (i < 24) {
difficulty.gotoAndStop(4);
} else {
difficulty.gotoAndStop(5);
}
_root.bg.gotoAndStop(i);
_root["l" + i].gotoAndStop(2);
} else {
_root["l" + i].gotoAndStop(1);
}
i++;
}
i = 1;
while (i < 13) {
if (_root.starArray[i - 1][0]) {
_root["s" + i].s1.gotoAndStop(1);
} else {
_root["s" + i].s1.gotoAndStop(2);
}
if (_root.starArray[i - 1][1]) {
_root["s" + i].s2.gotoAndStop(1);
} else {
_root["s" + i].s2.gotoAndStop(2);
}
if (_root.starArray[i - 1][2]) {
_root["s" + i].s3.gotoAndStop(1);
} else {
_root["s" + i].s3.gotoAndStop(2);
}
i++;
}
i = 13;
while (i < 25) {
if (_root.starArray[i - 1][2]) {
_root["s" + i].gotoAndStop(1);
} else {
_root["s" + i].gotoAndStop(2);
}
i++;
}
star = true;
i = 1;
while (i < 13) {
j = 0;
while (j < 3) {
if (!_root.starArray[i - 1][j]) {
star = false;
}
j++;
}
i++;
}
i = 13;
while (i < 24) {
if (!_root.starArray[i - 1][2]) {
star = false;
}
i++;
}
if (star) {
_root.s25.gotoAndStop(1);
} else {
_root.s25.gotoAndStop(2);
}
};
stop();
Frame 6
function levels1() {
if (level == 23) {
levelName = "Battle Fleet";
correctArray[1][8] = new Array(1, 3);
correctArray[1][12] = new Array(1, 8);
correctArray[3][8] = new Array(1, 7);
correctArray[3][12] = new Array(1, 10);
correctArray[4][12] = new Array(1, 9);
correctArray[5][8] = new Array(1, 10);
correctArray[5][11] = new Array(1, 8);
correctArray[5][12] = new Array(1, 10);
correctArray[5][13] = new Array(1, 3);
correctArray[6][11] = new Array(1, 8);
correctArray[6][12] = new Array(1, 3);
correctArray[6][13] = new Array(1, 3);
correctArray[7][8] = new Array(1, 6);
correctArray[7][11] = new Array(1, 8);
correctArray[7][13] = new Array(1, 5);
correctArray[8][8] = new Array(1, 5);
correctArray[9][7] = new Array(1, 6);
correctArray[9][8] = new Array(1, 5);
correctArray[9][9] = new Array(1, 2);
correctArray[9][12] = new Array(1, 7);
correctArray[10][6] = new Array(1, 9);
correctArray[10][7] = new Array(1, 6);
correctArray[10][8] = new Array(1, 6);
correctArray[10][9] = new Array(1, 2);
correctArray[10][10] = new Array(1, 2);
correctArray[11][6] = new Array(1, 9);
correctArray[11][8] = new Array(1, 9);
correctArray[11][10] = new Array(1, 9);
correctArray[11][12] = new Array(1, 2);
correctArray[12][12] = new Array(1, 6);
blockArray[1][1] = new Array(1, 7);
blockArray[1][4] = new Array(1, 10);
blockArray[3][0] = new Array(1, 10);
blockArray[3][1] = new Array(1, 6);
blockArray[3][2] = new Array(1, 8);
blockArray[3][4] = new Array(1, 10);
blockArray[5][0] = new Array(1, 6);
blockArray[6][0] = new Array(1, 6);
blockArray[6][1] = new Array(1, 6);
blockArray[7][1] = new Array(1, 8);
blockArray[7][5] = new Array(1, 7);
blockArray[7][6] = new Array(1, 9);
blockArray[8][0] = new Array(1, 3);
blockArray[8][1] = new Array(1, 8);
blockArray[8][5] = new Array(1, 6);
blockArray[9][0] = new Array(1, 2);
blockArray[9][1] = new Array(1, 8);
blockArray[10][0] = new Array(1, 2);
blockArray[10][1] = new Array(1, 2);
blockArray[10][5] = new Array(1, 5);
blockArray[11][0] = new Array(1, 5);
blockArray[11][3] = new Array(1, 2);
blockArray[12][0] = new Array(1, 5);
blockArray[12][5] = new Array(1, 3);
blockArray[13][0] = new Array(1, 9);
blockArray[13][4] = new Array(1, 3);
blockArray[13][5] = new Array(1, 3);
blockArray[14][0] = new Array(1, 9);
blockArray[14][2] = new Array(1, 9);
blockArray[14][4] = new Array(1, 9);
// unexpected jump
}
if (level == 22) {
levelName = "Dinosaur 2";
correctArray[2][9] = new Array(1, 6);
correctArray[2][10] = new Array(1, 6);
correctArray[2][11] = new Array(1, 6);
correctArray[3][8] = new Array(1, 10);
correctArray[3][9] = new Array(1, 6);
correctArray[3][11] = new Array(1, 6);
correctArray[3][14] = new Array(1, 5);
correctArray[4][8] = new Array(1, 6);
correctArray[4][11] = new Array(1, 8);
correctArray[4][12] = new Array(1, 8);
correctArray[4][13] = new Array(1, 5);
correctArray[4][14] = new Array(1, 5);
correctArray[5][8] = new Array(1, 10);
correctArray[5][10] = new Array(1, 9);
correctArray[5][11] = new Array(1, 3);
correctArray[5][12] = new Array(1, 8);
correctArray[6][6] = new Array(1, 9);
correctArray[6][7] = new Array(1, 9);
correctArray[6][8] = new Array(1, 9);
correctArray[6][10] = new Array(1, 9);
correctArray[6][11] = new Array(1, 3);
correctArray[6][12] = new Array(1, 8);
correctArray[7][6] = new Array(1, 9);
correctArray[7][8] = new Array(1, 2);
correctArray[7][10] = new Array(1, 9);
correctArray[7][11] = new Array(1, 3);
correctArray[7][12] = new Array(1, 5);
correctArray[8][6] = new Array(1, 9);
correctArray[8][7] = new Array(1, 9);
correctArray[8][8] = new Array(1, 2);
correctArray[8][10] = new Array(1, 3);
correctArray[8][11] = new Array(1, 3);
correctArray[8][12] = new Array(1, 5);
correctArray[8][14] = new Array(1, 8);
correctArray[9][8] = new Array(1, 2);
correctArray[9][11] = new Array(1, 10);
correctArray[9][12] = new Array(1, 5);
correctArray[9][13] = new Array(1, 8);
correctArray[9][14] = new Array(1, 8);
correctArray[10][11] = new Array(1, 10);
correctArray[11][11] = new Array(1, 2);
correctArray[12][11] = new Array(1, 2);
blockArray[0][2] = new Array(1, 8);
blockArray[0][3] = new Array(1, 8);
blockArray[1][0] = new Array(1, 10);
blockArray[1][2] = new Array(1, 3);
blockArray[1][3] = new Array(1, 8);
blockArray[2][2] = new Array(1, 3);
blockArray[2][3] = new Array(1, 8);
blockArray[3][0] = new Array(1, 10);
blockArray[3][2] = new Array(1, 3);
blockArray[4][1] = new Array(1, 3);
blockArray[4][2] = new Array(1, 3);
blockArray[4][5] = new Array(1, 8);
blockArray[5][1] = new Array(1, 6);
blockArray[5][2] = new Array(1, 6);
blockArray[5][3] = new Array(1, 6);
blockArray[5][4] = new Array(1, 8);
blockArray[5][5] = new Array(1, 8);
blockArray[6][1] = new Array(1, 6);
blockArray[6][3] = new Array(1, 6);
blockArray[7][0] = new Array(1, 6);
blockArray[7][3] = new Array(1, 10);
blockArray[8][3] = new Array(1, 10);
blockArray[8][4] = new Array(1, 5);
blockArray[9][3] = new Array(1, 5);
blockArray[9][4] = new Array(1, 5);
blockArray[9][5] = new Array(1, 2);
blockArray[10][5] = new Array(1, 2);
blockArray[11][5] = new Array(1, 2);
blockArray[11][9] = new Array(1, 9);
blockArray[12][2] = new Array(1, 5);
blockArray[12][5] = new Array(1, 9);
blockArray[12][6] = new Array(1, 9);
blockArray[12][7] = new Array(1, 9);
blockArray[12][9] = new Array(1, 9);
blockArray[13][2] = new Array(1, 5);
blockArray[13][5] = new Array(1, 9);
blockArray[13][8] = new Array(1, 2);
blockArray[13][9] = new Array(1, 9);
blockArray[14][2] = new Array(1, 5);
blockArray[14][5] = new Array(1, 9);
blockArray[14][6] = new Array(1, 9);
blockArray[14][8] = new Array(1, 2);
} else if (level == 21) {
levelName = "Fire Hydrant";
correctArray[4][13] = new Array(1, 5);
correctArray[5][7] = new Array(1, 6);
correctArray[5][9] = new Array(1, 3);
correctArray[5][10] = new Array(1, 3);
correctArray[5][12] = new Array(1, 7);
correctArray[5][13] = new Array(1, 5);
correctArray[6][6] = new Array(1, 3);
correctArray[6][7] = new Array(1, 6);
correctArray[6][8] = new Array(1, 9);
correctArray[6][9] = new Array(1, 9);
correctArray[6][10] = new Array(1, 9);
correctArray[6][11] = new Array(1, 9);
correctArray[6][12] = new Array(1, 7);
correctArray[6][13] = new Array(1, 5);
correctArray[7][5] = new Array(1, 10);
correctArray[7][6] = new Array(1, 3);
correctArray[7][7] = new Array(1, 6);
correctArray[7][8] = new Array(1, 10);
correctArray[7][9] = new Array(1, 10);
correctArray[7][10] = new Array(1, 10);
correctArray[7][11] = new Array(1, 9);
correctArray[7][12] = new Array(1, 7);
correctArray[7][13] = new Array(1, 7);
correctArray[8][6] = new Array(1, 3);
correctArray[8][7] = new Array(1, 6);
correctArray[8][8] = new Array(1, 6);
correctArray[8][9] = new Array(1, 6);
correctArray[8][10] = new Array(1, 10);
correctArray[8][11] = new Array(1, 9);
correctArray[8][12] = new Array(1, 9);
correctArray[8][13] = new Array(1, 5);
correctArray[9][7] = new Array(1, 3);
correctArray[9][9] = new Array(1, 10);
correctArray[9][10] = new Array(1, 10);
correctArray[9][12] = new Array(1, 9);
correctArray[9][13] = new Array(1, 5);
correctArray[10][13] = new Array(1, 9);
blockArray[0][3] = new Array(1, 3);
blockArray[0][4] = new Array(1, 3);
blockArray[1][0] = new Array(1, 10);
blockArray[1][3] = new Array(1, 10);
blockArray[1][4] = new Array(1, 10);
blockArray[1][5] = new Array(1, 10);
blockArray[2][5] = new Array(1, 10);
blockArray[3][0] = new Array(1, 3);
blockArray[3][2] = new Array(1, 7);
blockArray[3][3] = new Array(1, 8);
blockArray[3][4] = new Array(1, 10);
blockArray[3][5] = new Array(1, 10);
blockArray[4][0] = new Array(1, 5);
blockArray[4][1] = new Array(1, 3);
blockArray[4][2] = new Array(1, 7);
blockArray[4][3] = new Array(1, 8);
blockArray[5][0] = new Array(1, 5);
blockArray[5][2] = new Array(1, 7);
blockArray[5][3] = new Array(1, 7);
blockArray[6][0] = new Array(1, 5);
blockArray[8][0] = new Array(1, 5);
blockArray[9][0] = new Array(1, 5);
blockArray[10][0] = new Array(1, 9);
blockArray[10][1] = new Array(1, 9);
blockArray[10][2] = new Array(1, 9);
blockArray[10][3] = new Array(1, 9);
blockArray[11][2] = new Array(1, 6);
blockArray[11][3] = new Array(1, 9);
blockArray[12][2] = new Array(1, 6);
blockArray[12][3] = new Array(1, 9);
blockArray[12][4] = new Array(1, 9);
blockArray[13][2] = new Array(1, 6);
blockArray[13][4] = new Array(1, 9);
blockArray[14][2] = new Array(1, 6);
blockArray[14][3] = new Array(1, 6);
blockArray[14][4] = new Array(1, 6);
blockArray[14][5] = new Array(1, 9);
} else if (level == 20) {
levelName = "YinYang";
correctArray[2][8] = new Array(1, 3);
correctArray[2][9] = new Array(1, 3);
correctArray[2][10] = new Array(1, 6);
correctArray[3][7] = new Array(1, 3);
correctArray[3][8] = new Array(1, 3);
correctArray[3][9] = new Array(1, 3);
correctArray[3][10] = new Array(1, 6);
correctArray[3][11] = new Array(1, 6);
correctArray[4][6] = new Array(1, 5);
correctArray[4][7] = new Array(1, 7);
correctArray[4][8] = new Array(1, 7);
correctArray[4][9] = new Array(1, 6);
correctArray[4][10] = new Array(1, 6);
correctArray[4][11] = new Array(1, 7);
correctArray[4][12] = new Array(1, 7);
correctArray[5][5] = new Array(1, 5);
correctArray[5][6] = new Array(1, 5);
correctArray[5][8] = new Array(1, 7);
correctArray[5][9] = new Array(1, 6);
correctArray[5][12] = new Array(1, 8);
correctArray[5][13] = new Array(1, 8);
correctArray[6][5] = new Array(1, 5);
correctArray[6][7] = new Array(1, 3);
correctArray[6][8] = new Array(1, 3);
correctArray[6][13] = new Array(1, 4);
correctArray[7][5] = new Array(1, 5);
correctArray[7][10] = new Array(1, 7);
correctArray[7][13] = new Array(1, 4);
correctArray[8][6] = new Array(1, 9);
correctArray[8][12] = new Array(1, 4);
correctArray[9][7] = new Array(1, 9);
correctArray[9][11] = new Array(1, 8);
correctArray[10][8] = new Array(1, 5);
correctArray[10][9] = new Array(1, 5);
correctArray[10][10] = new Array(1, 8);
blockArray[0][1] = new Array(1, 3);
blockArray[0][2] = new Array(1, 3);
blockArray[0][4] = new Array(1, 8);
blockArray[0][5] = new Array(1, 8);
blockArray[1][0] = new Array(1, 3);
blockArray[1][1] = new Array(1, 3);
blockArray[1][2] = new Array(1, 3);
blockArray[3][2] = new Array(1, 4);
blockArray[4][0] = new Array(1, 3);
blockArray[4][1] = new Array(1, 3);
blockArray[4][2] = new Array(1, 4);
blockArray[4][3] = new Array(1, 8);
blockArray[5][0] = new Array(1, 9);
blockArray[5][1] = new Array(1, 4);
blockArray[5][2] = new Array(1, 8);
blockArray[6][1] = new Array(1, 9);
blockArray[7][1] = new Array(1, 5);
blockArray[8][0] = new Array(1, 5);
blockArray[8][1] = new Array(1, 5);
blockArray[9][0] = new Array(1, 5);
blockArray[9][3] = new Array(1, 6);
blockArray[10][0] = new Array(1, 5);
blockArray[10][3] = new Array(1, 6);
blockArray[10][4] = new Array(1, 6);
blockArray[11][0] = new Array(1, 7);
blockArray[11][1] = new Array(1, 7);
blockArray[11][2] = new Array(1, 6);
blockArray[11][3] = new Array(1, 6);
blockArray[11][4] = new Array(1, 7);
blockArray[11][5] = new Array(1, 7);
blockArray[12][1] = new Array(1, 7);
blockArray[12][2] = new Array(1, 6);
blockArray[13][3] = new Array(1, 5);
blockArray[13][4] = new Array(1, 5);
blockArray[14][3] = new Array(1, 7);
} else if (level == 19) {
levelName = "Palace";
correctArray[2][13] = new Array(1, 7);
correctArray[3][10] = new Array(1, 10);
correctArray[3][11] = new Array(1, 10);
correctArray[3][12] = new Array(1, 7);
correctArray[3][13] = new Array(1, 7);
correctArray[4][12] = new Array(1, 7);
correctArray[4][13] = new Array(1, 5);
correctArray[5][9] = new Array(1, 5);
correctArray[5][10] = new Array(1, 5);
correctArray[5][11] = new Array(1, 5);
correctArray[5][12] = new Array(1, 5);
correctArray[5][13] = new Array(1, 5);
correctArray[6][7] = new Array(1, 4);
correctArray[6][8] = new Array(1, 4);
correctArray[6][11] = new Array(1, 8);
correctArray[6][12] = new Array(1, 9);
correctArray[6][13] = new Array(1, 9);
correctArray[7][6] = new Array(1, 3);
correctArray[7][7] = new Array(1, 3);
correctArray[7][8] = new Array(1, 4);
correctArray[7][9] = new Array(1, 6);
correctArray[7][10] = new Array(1, 6);
correctArray[7][11] = new Array(1, 8);
correctArray[7][12] = new Array(1, 9);
correctArray[8][6] = new Array(1, 3);
correctArray[8][7] = new Array(1, 3);
correctArray[8][8] = new Array(1, 4);
correctArray[8][9] = new Array(1, 4);
correctArray[8][10] = new Array(1, 4);
correctArray[8][11] = new Array(1, 8);
correctArray[8][12] = new Array(1, 9);
correctArray[9][7] = new Array(1, 3);
correctArray[9][8] = new Array(1, 3);
correctArray[9][11] = new Array(1, 8);
correctArray[9][12] = new Array(1, 9);
correctArray[9][13] = new Array(1, 8);
correctArray[10][9] = new Array(1, 9);
correctArray[10][10] = new Array(1, 9);
correctArray[10][11] = new Array(1, 8);
correctArray[10][12] = new Array(1, 8);
correctArray[10][13] = new Array(1, 8);
correctArray[11][12] = new Array(1, 6);
correctArray[11][13] = new Array(1, 6);
correctArray[12][10] = new Array(1, 6);
correctArray[12][11] = new Array(1, 6);
correctArray[12][12] = new Array(1, 6);
correctArray[12][13] = new Array(1, 2);
correctArray[13][13] = new Array(1, 3);
blockArray[0][0] = new Array(1, 6);
blockArray[0][1] = new Array(1, 6);
blockArray[0][3] = new Array(1, 10);
blockArray[0][4] = new Array(1, 10);
blockArray[0][5] = new Array(1, 8);
blockArray[1][5] = new Array(1, 8);
blockArray[2][5] = new Array(1, 8);
blockArray[3][1] = new Array(1, 7);
blockArray[3][5] = new Array(1, 8);
blockArray[3][7] = new Array(1, 8);
blockArray[4][0] = new Array(1, 7);
blockArray[4][1] = new Array(1, 7);
blockArray[4][3] = new Array(1, 6);
blockArray[4][4] = new Array(1, 6);
blockArray[4][5] = new Array(1, 8);
blockArray[4][6] = new Array(1, 8);
blockArray[4][7] = new Array(1, 8);
blockArray[5][0] = new Array(1, 7);
blockArray[5][1] = new Array(1, 6);
blockArray[5][2] = new Array(1, 6);
blockArray[5][3] = new Array(1, 6);
blockArray[6][0] = new Array(1, 3);
blockArray[6][1] = new Array(1, 3);
blockArray[7][0] = new Array(1, 3);
blockArray[7][1] = new Array(1, 3);
blockArray[8][1] = new Array(1, 3);
blockArray[8][2] = new Array(1, 3);
blockArray[8][4] = new Array(1, 5);
blockArray[9][0] = new Array(1, 5);
blockArray[9][1] = new Array(1, 5);
blockArray[9][2] = new Array(1, 5);
blockArray[9][3] = new Array(1, 5);
blockArray[9][4] = new Array(1, 5);
blockArray[10][2] = new Array(1, 2);
blockArray[10][3] = new Array(1, 9);
blockArray[10][4] = new Array(1, 9);
blockArray[11][3] = new Array(1, 9);
blockArray[11][4] = new Array(1, 4);
blockArray[11][5] = new Array(1, 4);
blockArray[12][3] = new Array(1, 9);
blockArray[12][5] = new Array(1, 4);
blockArray[12][7] = new Array(1, 3);
blockArray[13][3] = new Array(1, 9);
blockArray[13][5] = new Array(1, 4);
blockArray[13][6] = new Array(1, 4);
blockArray[13][7] = new Array(1, 4);
blockArray[14][0] = new Array(1, 9);
blockArray[14][1] = new Array(1, 9);
} else if (level == 18) {
levelName = "Jellyfish";
correctArray[1][13] = new Array(1, 4);
correctArray[2][12] = new Array(1, 4);
correctArray[3][10] = new Array(1, 9);
correctArray[3][11] = new Array(1, 9);
correctArray[3][13] = new Array(1, 4);
correctArray[3][14] = new Array(1, 3);
correctArray[4][8] = new Array(1, 9);
correctArray[4][9] = new Array(1, 9);
correctArray[4][10] = new Array(1, 9);
correctArray[4][11] = new Array(1, 4);
correctArray[4][12] = new Array(1, 4);
correctArray[5][7] = new Array(1, 6);
correctArray[5][8] = new Array(1, 6);
correctArray[5][11] = new Array(1, 4);
correctArray[5][12] = new Array(1, 2);
correctArray[6][7] = new Array(1, 7);
correctArray[6][8] = new Array(1, 8);
correctArray[6][9] = new Array(1, 8);
correctArray[6][10] = new Array(1, 8);
correctArray[6][11] = new Array(1, 4);
correctArray[6][12] = new Array(1, 2);
correctArray[6][13] = new Array(1, 2);
correctArray[6][14] = new Array(1, 3);
correctArray[7][7] = new Array(1, 7);
correctArray[7][8] = new Array(1, 8);
correctArray[7][9] = new Array(1, 6);
correctArray[7][10] = new Array(1, 8);
correctArray[7][11] = new Array(1, 6);
correctArray[7][12] = new Array(1, 3);
correctArray[8][7] = new Array(1, 7);
correctArray[8][8] = new Array(1, 7);
correctArray[8][11] = new Array(1, 6);
correctArray[8][12] = new Array(1, 3);
correctArray[8][13] = new Array(1, 5);
correctArray[8][14] = new Array(1, 5);
correctArray[9][8] = new Array(1, 7);
correctArray[9][9] = new Array(1, 7);
correctArray[9][10] = new Array(1, 7);
correctArray[9][11] = new Array(1, 7);
correctArray[9][12] = new Array(1, 3);
correctArray[10][10] = new Array(1, 5);
correctArray[10][11] = new Array(1, 5);
correctArray[10][13] = new Array(1, 5);
correctArray[10][14] = new Array(1, 5);
correctArray[11][12] = new Array(1, 5);
correctArray[12][13] = new Array(1, 7);
blockArray[0][0] = new Array(1, 8);
blockArray[0][1] = new Array(1, 8);
blockArray[0][2] = new Array(1, 8);
blockArray[0][5] = new Array(1, 9);
blockArray[0][6] = new Array(1, 9);
blockArray[0][7] = new Array(1, 3);
blockArray[1][0] = new Array(1, 8);
blockArray[1][1] = new Array(1, 2);
blockArray[1][2] = new Array(1, 8);
blockArray[1][3] = new Array(1, 9);
blockArray[1][4] = new Array(1, 9);
blockArray[1][5] = new Array(1, 9);
blockArray[2][1] = new Array(1, 2);
blockArray[2][2] = new Array(1, 2);
blockArray[3][7] = new Array(1, 3);
blockArray[4][5] = new Array(1, 3);
blockArray[5][4] = new Array(1, 4);
blockArray[5][5] = new Array(1, 3);
blockArray[6][3] = new Array(1, 4);
blockArray[6][5] = new Array(1, 3);
blockArray[7][0] = new Array(1, 7);
blockArray[7][1] = new Array(1, 7);
blockArray[7][4] = new Array(1, 4);
blockArray[8][0] = new Array(1, 7);
blockArray[8][2] = new Array(1, 4);
blockArray[8][3] = new Array(1, 4);
blockArray[9][0] = new Array(1, 7);
blockArray[9][1] = new Array(1, 6);
blockArray[9][2] = new Array(1, 4);
blockArray[9][3] = new Array(1, 6);
blockArray[10][0] = new Array(1, 7);
blockArray[10][1] = new Array(1, 7);
blockArray[10][2] = new Array(1, 4);
blockArray[10][3] = new Array(1, 6);
blockArray[11][1] = new Array(1, 7);
blockArray[11][2] = new Array(1, 7);
blockArray[11][3] = new Array(1, 7);
blockArray[11][4] = new Array(1, 7);
blockArray[11][5] = new Array(1, 5);
blockArray[11][6] = new Array(1, 5);
blockArray[13][2] = new Array(1, 5);
blockArray[13][3] = new Array(1, 5);
blockArray[13][5] = new Array(1, 5);
blockArray[13][6] = new Array(1, 5);
blockArray[14][4] = new Array(1, 5);
blockArray[14][6] = new Array(1, 7);
} else if (level == 17) {
levelName = "Dinosaur";
correctArray[1][9] = new Array(1, 6);
correctArray[2][8] = new Array(1, 5);
correctArray[2][9] = new Array(1, 6);
correctArray[3][7] = new Array(1, 5);
correctArray[3][9] = new Array(1, 6);
correctArray[3][12] = new Array(1, 10);
correctArray[3][13] = new Array(1, 10);
correctArray[4][8] = new Array(1, 5);
correctArray[4][9] = new Array(1, 6);
correctArray[4][10] = new Array(1, 2);
correctArray[4][12] = new Array(1, 10);
correctArray[5][9] = new Array(1, 2);
correctArray[5][10] = new Array(1, 2);
correctArray[5][11] = new Array(1, 6);
correctArray[5][12] = new Array(1, 6);
correctArray[6][10] = new Array(1, 5);
correctArray[6][11] = new Array(1, 6);
correctArray[7][10] = new Array(1, 5);
correctArray[7][11] = new Array(1, 10);
correctArray[7][12] = new Array(1, 10);
correctArray[7][15] = new Array(1, 8);
correctArray[8][10] = new Array(1, 5);
correctArray[8][11] = new Array(1, 9);
correctArray[8][12] = new Array(1, 9);
correctArray[8][13] = new Array(1, 9);
correctArray[8][14] = new Array(1, 8);
correctArray[8][15] = new Array(1, 8);
correctArray[9][11] = new Array(1, 9);
correctArray[10][11] = new Array(1, 8);
correctArray[11][11] = new Array(1, 8);
correctArray[12][11] = new Array(1, 8);
correctArray[13][11] = new Array(1, 9);
blockArray[0][0] = new Array(1, 6);
blockArray[1][0] = new Array(1, 6);
blockArray[1][1] = new Array(1, 9);
blockArray[1][2] = new Array(1, 9);
blockArray[1][3] = new Array(1, 9);
blockArray[2][0] = new Array(1, 6);
blockArray[2][1] = new Array(1, 9);
blockArray[3][0] = new Array(1, 6);
blockArray[4][2] = new Array(1, 6);
blockArray[4][3] = new Array(1, 6);
blockArray[5][2] = new Array(1, 6);
blockArray[6][1] = new Array(1, 9);
blockArray[7][1] = new Array(1, 5);
blockArray[7][2] = new Array(1, 10);
blockArray[7][3] = new Array(1, 10);
blockArray[8][0] = new Array(1, 5);
blockArray[8][2] = new Array(1, 10);
blockArray[9][1] = new Array(1, 5);
blockArray[9][6] = new Array(1, 8);
blockArray[10][5] = new Array(1, 8);
blockArray[10][6] = new Array(1, 8);
blockArray[11][1] = new Array(1, 10);
blockArray[11][2] = new Array(1, 10);
blockArray[11][3] = new Array(1, 5);
blockArray[12][1] = new Array(1, 2);
blockArray[12][2] = new Array(1, 8);
blockArray[12][3] = new Array(1, 5);
blockArray[13][0] = new Array(1, 2);
blockArray[13][1] = new Array(1, 2);
blockArray[13][2] = new Array(1, 8);
blockArray[13][3] = new Array(1, 5);
blockArray[14][2] = new Array(1, 8);
} else if (level == 16) {
levelName = "RocketShip";
correctArray[4][11] = new Array(1, 7);
correctArray[4][12] = new Array(1, 7);
correctArray[5][9] = new Array(1, 7);
correctArray[5][10] = new Array(1, 7);
correctArray[5][11] = new Array(1, 8);
correctArray[5][12] = new Array(1, 8);
correctArray[5][13] = new Array(1, 9);
correctArray[5][14] = new Array(1, 7);
correctArray[6][5] = new Array(1, 2);
correctArray[6][6] = new Array(1, 2);
correctArray[6][7] = new Array(1, 2);
correctArray[6][8] = new Array(1, 2);
correctArray[6][9] = new Array(1, 2);
correctArray[6][10] = new Array(1, 10);
correctArray[6][11] = new Array(1, 10);
correctArray[6][12] = new Array(1, 10);
correctArray[6][13] = new Array(1, 7);
correctArray[7][4] = new Array(1, 2);
correctArray[7][5] = new Array(1, 6);
correctArray[7][8] = new Array(1, 6);
correctArray[7][9] = new Array(1, 2);
correctArray[7][10] = new Array(1, 2);
correctArray[7][11] = new Array(1, 10);
correctArray[7][12] = new Array(1, 7);
correctArray[8][5] = new Array(1, 6);
correctArray[8][6] = new Array(1, 6);
correctArray[8][7] = new Array(1, 6);
correctArray[8][8] = new Array(1, 6);
correctArray[8][9] = new Array(1, 3);
correctArray[8][10] = new Array(1, 3);
correctArray[8][11] = new Array(1, 3);
correctArray[8][12] = new Array(1, 3);
correctArray[8][13] = new Array(1, 3);
correctArray[9][9] = new Array(1, 3);
correctArray[9][10] = new Array(1, 3);
correctArray[9][11] = new Array(1, 10);
correctArray[9][12] = new Array(1, 5);
correctArray[9][13] = new Array(1, 5);
correctArray[9][14] = new Array(1, 5);
correctArray[10][11] = new Array(1, 10);
correctArray[10][12] = new Array(1, 10);
blockArray[0][0] = new Array(1, 3);
blockArray[0][1] = new Array(1, 3);
blockArray[0][2] = new Array(1, 3);
blockArray[0][3] = new Array(1, 3);
blockArray[0][4] = new Array(1, 3);
blockArray[0][5] = new Array(1, 7);
blockArray[0][6] = new Array(1, 7);
blockArray[0][12] = new Array(1, 2);
blockArray[0][13] = new Array(1, 2);
blockArray[0][14] = new Array(1, 2);
blockArray[0][15] = new Array(1, 2);
blockArray[0][16] = new Array(1, 2);
blockArray[1][0] = new Array(1, 3);
blockArray[1][1] = new Array(1, 3);
blockArray[1][3] = new Array(1, 7);
blockArray[1][4] = new Array(1, 7);
blockArray[1][8] = new Array(1, 7);
blockArray[1][11] = new Array(1, 2);
blockArray[1][16] = new Array(1, 2);
blockArray[1][17] = new Array(1, 2);
blockArray[2][7] = new Array(1, 7);
blockArray[3][6] = new Array(1, 7);
blockArray[7][15] = new Array(1, 10);
blockArray[7][16] = new Array(1, 10);
blockArray[7][17] = new Array(1, 10);
blockArray[8][16] = new Array(1, 10);
blockArray[10][16] = new Array(1, 10);
blockArray[11][16] = new Array(1, 10);
blockArray[11][17] = new Array(1, 10);
blockArray[13][5] = new Array(1, 6);
blockArray[13][8] = new Array(1, 6);
blockArray[14][2] = new Array(1, 9);
blockArray[14][5] = new Array(1, 6);
blockArray[14][6] = new Array(1, 6);
blockArray[14][7] = new Array(1, 6);
blockArray[14][8] = new Array(1, 6);
blockArray[14][9] = new Array(1, 5);
blockArray[14][10] = new Array(1, 5);
blockArray[14][11] = new Array(1, 5);
blockArray[14][16] = new Array(1, 8);
blockArray[14][17] = new Array(1, 8);
} else if (level == 15) {
levelName = "Flag";
correctArray[4][4] = new Array(1, 10);
correctArray[4][5] = new Array(1, 2);
correctArray[4][6] = new Array(1, 4);
correctArray[4][7] = new Array(1, 4);
correctArray[4][8] = new Array(1, 4);
correctArray[4][9] = new Array(1, 5);
correctArray[4][10] = new Array(1, 5);
correctArray[4][11] = new Array(1, 5);
correctArray[4][12] = new Array(1, 5);
correctArray[4][13] = new Array(1, 5);
correctArray[4][14] = new Array(1, 5);
correctArray[5][4] = new Array(1, 10);
correctArray[5][7] = new Array(1, 3);
correctArray[6][3] = new Array(1, 7);
correctArray[6][4] = new Array(1, 7);
correctArray[6][5] = new Array(1, 7);
correctArray[6][6] = new Array(1, 3);
correctArray[7][3] = new Array(1, 8);
correctArray[7][4] = new Array(1, 8);
correctArray[7][5] = new Array(1, 7);
correctArray[7][6] = new Array(1, 3);
correctArray[8][4] = new Array(1, 8);
correctArray[8][5] = new Array(1, 7);
correctArray[8][6] = new Array(1, 3);
correctArray[8][7] = new Array(1, 5);
correctArray[9][5] = new Array(1, 9);
correctArray[9][6] = new Array(1, 4);
correctArray[9][7] = new Array(1, 5);
correctArray[10][4] = new Array(1, 8);
correctArray[10][5] = new Array(1, 9);
correctArray[10][6] = new Array(1, 4);
correctArray[11][4] = new Array(1, 8);
blockArray[0][15] = new Array(1, 7);
blockArray[0][16] = new Array(1, 7);
blockArray[0][17] = new Array(1, 7);
blockArray[1][16] = new Array(1, 10);
blockArray[1][17] = new Array(1, 7);
blockArray[2][16] = new Array(1, 10);
blockArray[2][17] = new Array(1, 7);
blockArray[3][17] = new Array(1, 2);
blockArray[4][17] = new Array(1, 3);
blockArray[5][16] = new Array(1, 3);
blockArray[6][16] = new Array(1, 3);
blockArray[7][16] = new Array(1, 3);
blockArray[8][15] = new Array(1, 4);
blockArray[8][16] = new Array(1, 4);
blockArray[8][17] = new Array(1, 4);
blockArray[9][12] = new Array(1, 5);
blockArray[9][13] = new Array(1, 5);
blockArray[9][14] = new Array(1, 5);
blockArray[9][15] = new Array(1, 5);
blockArray[9][16] = new Array(1, 5);
blockArray[9][17] = new Array(1, 5);
blockArray[10][12] = new Array(1, 8);
blockArray[10][13] = new Array(1, 8);
blockArray[11][13] = new Array(1, 8);
blockArray[13][10] = new Array(1, 5);
blockArray[13][13] = new Array(1, 8);
blockArray[13][14] = new Array(1, 9);
blockArray[13][15] = new Array(1, 4);
blockArray[14][10] = new Array(1, 5);
blockArray[14][13] = new Array(1, 8);
blockArray[14][14] = new Array(1, 9);
blockArray[14][15] = new Array(1, 4);
} else if (level == 13) {
levelName = "Truck";
correctArray[1][10] = new Array(1, 4);
correctArray[2][9] = new Array(1, 4);
correctArray[2][12] = new Array(1, 3);
correctArray[2][13] = new Array(1, 3);
correctArray[3][9] = new Array(1, 4);
correctArray[3][11] = new Array(1, 2);
correctArray[3][14] = new Array(1, 3);
correctArray[4][7] = new Array(1, 5);
correctArray[4][8] = new Array(1, 5);
correctArray[4][9] = new Array(1, 3);
correctArray[4][11] = new Array(1, 2);
correctArray[4][14] = new Array(1, 3);
correctArray[5][7] = new Array(1, 5);
correctArray[5][8] = new Array(1, 4);
correctArray[5][9] = new Array(1, 3);
correctArray[5][12] = new Array(1, 2);
correctArray[5][13] = new Array(1, 2);
correctArray[6][6] = new Array(1, 9);
correctArray[6][7] = new Array(1, 5);
correctArray[6][8] = new Array(1, 4);
correctArray[6][9] = new Array(1, 3);
correctArray[6][10] = new Array(1, 3);
correctArray[6][11] = new Array(1, 3);
correctArray[7][6] = new Array(1, 9);
correctArray[7][7] = new Array(1, 5);
correctArray[7][8] = new Array(1, 4);
correctArray[7][9] = new Array(1, 4);
correctArray[7][10] = new Array(1, 4);
correctArray[7][11] = new Array(1, 4);
correctArray[7][12] = new Array(1, 4);
correctArray[8][6] = new Array(1, 6);
correctArray[8][9] = new Array(1, 8);
correctArray[8][10] = new Array(1, 5);
correctArray[8][11] = new Array(1, 5);
correctArray[9][6] = new Array(1, 6);
correctArray[9][9] = new Array(1, 8);
correctArray[9][12] = new Array(1, 2);
correctArray[9][13] = new Array(1, 2);
correctArray[10][6] = new Array(1, 6);
correctArray[10][7] = new Array(1, 8);
correctArray[10][8] = new Array(1, 8);
correctArray[10][9] = new Array(1, 6);
correctArray[10][11] = new Array(1, 9);
correctArray[10][14] = new Array(1, 10);
correctArray[11][9] = new Array(1, 6);
correctArray[11][11] = new Array(1, 9);
correctArray[11][14] = new Array(1, 10);
correctArray[12][9] = new Array(1, 6);
correctArray[12][12] = new Array(1, 10);
correctArray[12][13] = new Array(1, 10);
correctArray[13][10] = new Array(1, 6);
blockArray[0][0] = new Array(1, 9);
blockArray[0][3] = new Array(1, 3);
blockArray[0][4] = new Array(1, 3);
blockArray[1][0] = new Array(1, 9);
blockArray[1][3] = new Array(1, 2);
blockArray[1][5] = new Array(1, 3);
blockArray[2][0] = new Array(1, 3);
blockArray[2][3] = new Array(1, 2);
blockArray[2][5] = new Array(1, 3);
blockArray[3][0] = new Array(1, 3);
blockArray[3][4] = new Array(1, 2);
blockArray[3][5] = new Array(1, 2);
blockArray[4][0] = new Array(1, 3);
blockArray[4][1] = new Array(1, 3);
blockArray[4][2] = new Array(1, 3);
blockArray[4][5] = new Array(1, 9);
blockArray[5][3] = new Array(1, 8);
blockArray[5][5] = new Array(1, 9);
blockArray[6][3] = new Array(1, 8);
blockArray[7][0] = new Array(1, 6);
blockArray[7][1] = new Array(1, 8);
blockArray[7][2] = new Array(1, 8);
blockArray[7][3] = new Array(1, 4);
blockArray[7][4] = new Array(1, 2);
blockArray[7][5] = new Array(1, 2);
blockArray[8][0] = new Array(1, 6);
blockArray[8][2] = new Array(1, 4);
blockArray[9][0] = new Array(1, 6);
blockArray[9][2] = new Array(1, 4);
blockArray[9][3] = new Array(1, 6);
blockArray[10][0] = new Array(1, 5);
blockArray[10][1] = new Array(1, 5);
blockArray[10][3] = new Array(1, 6);
blockArray[11][0] = new Array(1, 5);
blockArray[11][1] = new Array(1, 4);
blockArray[11][3] = new Array(1, 6);
blockArray[12][0] = new Array(1, 5);
blockArray[12][1] = new Array(1, 4);
blockArray[12][4] = new Array(1, 6);
blockArray[12][7] = new Array(1, 10);
blockArray[13][0] = new Array(1, 5);
blockArray[13][1] = new Array(1, 4);
blockArray[13][2] = new Array(1, 4);
blockArray[13][3] = new Array(1, 4);
blockArray[13][4] = new Array(1, 4);
blockArray[13][5] = new Array(1, 4);
blockArray[13][7] = new Array(1, 10);
blockArray[14][3] = new Array(1, 5);
blockArray[14][4] = new Array(1, 5);
blockArray[14][5] = new Array(1, 10);
blockArray[14][6] = new Array(1, 10);
} else if (level == 12) {
levelName = "Comet";
correctArray[2][4] = new Array(1, 9);
correctArray[3][4] = new Array(1, 9);
correctArray[3][5] = new Array(1, 5);
correctArray[3][6] = new Array(1, 5);
correctArray[3][7] = new Array(1, 5);
correctArray[3][8] = new Array(1, 5);
correctArray[4][5] = new Array(1, 8);
correctArray[4][8] = new Array(1, 6);
correctArray[4][9] = new Array(1, 6);
correctArray[4][10] = new Array(1, 6);
correctArray[5][5] = new Array(1, 8);
correctArray[5][6] = new Array(1, 8);
correctArray[5][9] = new Array(1, 8);
correctArray[6][6] = new Array(1, 8);
correctArray[6][7] = new Array(1, 6);
correctArray[6][8] = new Array(1, 6);
correctArray[6][10] = new Array(1, 4);
correctArray[6][11] = new Array(1, 4);
correctArray[6][12] = new Array(1, 3);
correctArray[7][7] = new Array(1, 6);
correctArray[7][9] = new Array(1, 5);
correctArray[7][10] = new Array(1, 3);
correctArray[7][11] = new Array(1, 3);
correctArray[7][12] = new Array(1, 3);
correctArray[7][13] = new Array(1, 2);
correctArray[8][7] = new Array(1, 6);
correctArray[8][9] = new Array(1, 5);
correctArray[8][10] = new Array(1, 4);
correctArray[8][11] = new Array(1, 3);
correctArray[8][12] = new Array(1, 3);
correctArray[8][13] = new Array(1, 2);
correctArray[9][9] = new Array(1, 5);
correctArray[9][10] = new Array(1, 4);
correctArray[9][11] = new Array(1, 4);
correctArray[9][12] = new Array(1, 2);
correctArray[9][13] = new Array(1, 2);
correctArray[10][10] = new Array(1, 2);
correctArray[10][11] = new Array(1, 2);
correctArray[10][12] = new Array(1, 2);
blockArray[0][0] = new Array(1, 9);
blockArray[1][0] = new Array(1, 9);
blockArray[2][1] = new Array(1, 4);
blockArray[2][2] = new Array(1, 4);
blockArray[4][1] = new Array(1, 4);
blockArray[5][0] = new Array(1, 8);
blockArray[5][1] = new Array(1, 4);
blockArray[5][2] = new Array(1, 4);
blockArray[6][0] = new Array(1, 8);
blockArray[6][1] = new Array(1, 8);
blockArray[6][4] = new Array(1, 8);
blockArray[7][1] = new Array(1, 8);
blockArray[8][0] = new Array(1, 5);
blockArray[8][1] = new Array(1, 5);
blockArray[8][2] = new Array(1, 5);
blockArray[8][3] = new Array(1, 5);
blockArray[8][5] = new Array(1, 2);
blockArray[9][1] = new Array(1, 6);
blockArray[9][2] = new Array(1, 6);
blockArray[9][3] = new Array(1, 6);
blockArray[9][5] = new Array(1, 2);
blockArray[10][4] = new Array(1, 2);
blockArray[10][5] = new Array(1, 2);
blockArray[11][0] = new Array(1, 6);
blockArray[11][1] = new Array(1, 6);
blockArray[11][2] = new Array(1, 2);
blockArray[11][3] = new Array(1, 2);
blockArray[11][4] = new Array(1, 2);
blockArray[12][0] = new Array(1, 6);
blockArray[12][4] = new Array(1, 5);
blockArray[12][7] = new Array(1, 3);
blockArray[13][0] = new Array(1, 6);
blockArray[13][4] = new Array(1, 5);
blockArray[13][5] = new Array(1, 3);
blockArray[13][6] = new Array(1, 3);
blockArray[13][7] = new Array(1, 3);
blockArray[14][4] = new Array(1, 5);
blockArray[14][6] = new Array(1, 3);
blockArray[14][7] = new Array(1, 3);
}
}
function levels2() {
if (level == 11) {
levelName = "UFO";
correctArray[0][12] = new Array(1, 6);
correctArray[1][12] = new Array(1, 6);
correctArray[2][11] = new Array(1, 3);
correctArray[2][12] = new Array(1, 6);
correctArray[2][13] = new Array(1, 6);
correctArray[3][10] = new Array(1, 10);
correctArray[3][11] = new Array(1, 3);
correctArray[3][12] = new Array(1, 3);
correctArray[3][13] = new Array(1, 6);
correctArray[3][14] = new Array(1, 6);
correctArray[4][9] = new Array(1, 10);
correctArray[4][10] = new Array(1, 10);
correctArray[4][12] = new Array(1, 3);
correctArray[4][13] = new Array(1, 3);
correctArray[5][9] = new Array(1, 10);
correctArray[5][10] = new Array(1, 4);
correctArray[5][11] = new Array(1, 4);
correctArray[5][12] = new Array(1, 4);
correctArray[6][9] = new Array(1, 9);
correctArray[6][10] = new Array(1, 4);
correctArray[6][12] = new Array(1, 7);
correctArray[6][13] = new Array(1, 3);
correctArray[7][9] = new Array(1, 9);
correctArray[7][10] = new Array(1, 4);
correctArray[7][11] = new Array(1, 5);
correctArray[7][12] = new Array(1, 5);
correctArray[7][13] = new Array(1, 3);
correctArray[8][9] = new Array(1, 9);
correctArray[8][10] = new Array(1, 9);
correctArray[8][12] = new Array(1, 5);
correctArray[8][13] = new Array(1, 3);
correctArray[9][9] = new Array(1, 8);
correctArray[9][10] = new Array(1, 5);
correctArray[9][11] = new Array(1, 5);
correctArray[9][12] = new Array(1, 5);
correctArray[10][9] = new Array(1, 8);
correctArray[10][10] = new Array(1, 5);
correctArray[10][12] = new Array(1, 7);
correctArray[10][13] = new Array(1, 7);
correctArray[11][10] = new Array(1, 5);
correctArray[11][11] = new Array(1, 8);
correctArray[11][12] = new Array(1, 8);
correctArray[11][13] = new Array(1, 7);
correctArray[11][14] = new Array(1, 7);
correctArray[12][11] = new Array(1, 8);
correctArray[12][12] = new Array(1, 8);
correctArray[12][13] = new Array(1, 7);
correctArray[13][12] = new Array(1, 9);
correctArray[14][12] = new Array(1, 9);
blockArray[0][1] = new Array(1, 10);
blockArray[1][0] = new Array(1, 10);
blockArray[1][1] = new Array(1, 10);
blockArray[1][2] = new Array(1, 3);
blockArray[2][0] = new Array(1, 10);
blockArray[2][2] = new Array(1, 3);
blockArray[2][3] = new Array(1, 3);
blockArray[3][0] = new Array(1, 4);
blockArray[3][1] = new Array(1, 4);
blockArray[3][2] = new Array(1, 4);
blockArray[3][3] = new Array(1, 3);
blockArray[3][4] = new Array(1, 3);
blockArray[4][0] = new Array(1, 4);
blockArray[4][1] = new Array(1, 9);
blockArray[5][0] = new Array(1, 4);
blockArray[5][1] = new Array(1, 9);
blockArray[5][2] = new Array(1, 5);
blockArray[5][3] = new Array(1, 5);
blockArray[5][4] = new Array(1, 3);
blockArray[6][0] = new Array(1, 8);
blockArray[6][1] = new Array(1, 9);
blockArray[6][2] = new Array(1, 9);
blockArray[6][3] = new Array(1, 5);
blockArray[6][4] = new Array(1, 3);
blockArray[7][0] = new Array(1, 8);
blockArray[7][1] = new Array(1, 5);
blockArray[7][2] = new Array(1, 5);
blockArray[7][3] = new Array(1, 5);
blockArray[7][4] = new Array(1, 3);
blockArray[8][0] = new Array(1, 7);
blockArray[8][1] = new Array(1, 5);
blockArray[8][2] = new Array(1, 8);
blockArray[8][3] = new Array(1, 8);
blockArray[8][4] = new Array(1, 6);
blockArray[9][1] = new Array(1, 5);
blockArray[9][2] = new Array(1, 8);
blockArray[9][3] = new Array(1, 8);
blockArray[9][4] = new Array(1, 6);
blockArray[10][4] = new Array(1, 6);
blockArray[10][5] = new Array(1, 6);
blockArray[11][4] = new Array(1, 9);
blockArray[11][5] = new Array(1, 6);
blockArray[11][6] = new Array(1, 6);
blockArray[12][0] = new Array(1, 7);
blockArray[12][1] = new Array(1, 7);
blockArray[12][4] = new Array(1, 9);
blockArray[13][1] = new Array(1, 7);
blockArray[13][2] = new Array(1, 7);
blockArray[14][1] = new Array(1, 7);
} else if (level == 9) {
levelName = "Alien 1";
correctArray[4][8] = new Array(1, 2);
correctArray[4][9] = new Array(1, 2);
correctArray[4][12] = new Array(1, 6);
correctArray[5][7] = new Array(1, 3);
correctArray[5][8] = new Array(1, 3);
correctArray[5][9] = new Array(1, 2);
correctArray[5][11] = new Array(1, 8);
correctArray[6][6] = new Array(1, 9);
correctArray[6][7] = new Array(1, 3);
correctArray[6][9] = new Array(1, 2);
correctArray[6][10] = new Array(1, 8);
correctArray[6][12] = new Array(1, 6);
correctArray[7][5] = new Array(1, 8);
correctArray[7][6] = new Array(1, 9);
correctArray[7][7] = new Array(1, 3);
correctArray[7][8] = new Array(1, 3);
correctArray[7][9] = new Array(1, 2);
correctArray[7][11] = new Array(1, 8);
correctArray[8][5] = new Array(1, 8);
correctArray[8][6] = new Array(1, 9);
correctArray[8][7] = new Array(1, 4);
correctArray[8][8] = new Array(1, 4);
correctArray[8][9] = new Array(1, 2);
correctArray[8][11] = new Array(1, 6);
correctArray[9][6] = new Array(1, 9);
correctArray[9][7] = new Array(1, 4);
correctArray[9][9] = new Array(1, 2);
correctArray[9][10] = new Array(1, 6);
correctArray[9][12] = new Array(1, 10);
correctArray[10][7] = new Array(1, 4);
correctArray[10][8] = new Array(1, 4);
correctArray[10][9] = new Array(1, 2);
correctArray[10][11] = new Array(1, 10);
correctArray[11][8] = new Array(1, 3);
correctArray[11][9] = new Array(1, 2);
correctArray[11][12] = new Array(1, 10);
blockArray[0][6] = new Array(1, 6);
blockArray[1][1] = new Array(1, 3);
blockArray[1][2] = new Array(1, 3);
blockArray[1][6] = new Array(1, 8);
blockArray[2][1] = new Array(1, 3);
blockArray[2][5] = new Array(1, 8);
blockArray[2][6] = new Array(1, 6);
blockArray[3][0] = new Array(1, 8);
blockArray[3][1] = new Array(1, 3);
blockArray[3][2] = new Array(1, 3);
blockArray[3][6] = new Array(1, 8);
blockArray[4][0] = new Array(1, 8);
blockArray[4][5] = new Array(1, 6);
blockArray[5][4] = new Array(1, 6);
blockArray[6][0] = new Array(1, 9);
blockArray[6][2] = new Array(1, 2);
blockArray[6][3] = new Array(1, 2);
blockArray[7][0] = new Array(1, 9);
blockArray[7][2] = new Array(1, 3);
blockArray[7][3] = new Array(1, 2);
blockArray[8][0] = new Array(1, 9);
blockArray[8][1] = new Array(1, 4);
blockArray[8][2] = new Array(1, 4);
blockArray[8][3] = new Array(1, 2);
blockArray[9][0] = new Array(1, 9);
blockArray[9][1] = new Array(1, 4);
blockArray[9][3] = new Array(1, 2);
blockArray[10][1] = new Array(1, 4);
blockArray[10][2] = new Array(1, 4);
blockArray[10][3] = new Array(1, 2);
blockArray[11][3] = new Array(1, 2);
blockArray[12][3] = new Array(1, 2);
blockArray[12][5] = new Array(1, 10);
blockArray[13][3] = new Array(1, 2);
blockArray[13][4] = new Array(1, 10);
blockArray[14][5] = new Array(1, 10);
} else if (level == 5) {
levelName = "Turtle";
correctArray[4][8] = new Array(1, 10);
correctArray[5][9] = new Array(1, 10);
correctArray[6][8] = new Array(1, 6);
correctArray[6][9] = new Array(1, 9);
correctArray[6][10] = new Array(1, 5);
correctArray[7][7] = new Array(1, 7);
correctArray[7][8] = new Array(1, 6);
correctArray[7][9] = new Array(1, 3);
correctArray[8][7] = new Array(1, 6);
correctArray[8][8] = new Array(1, 6);
correctArray[8][9] = new Array(1, 9);
correctArray[9][8] = new Array(1, 3);
correctArray[9][9] = new Array(1, 9);
correctArray[9][10] = new Array(1, 5);
correctArray[10][9] = new Array(1, 10);
blockArray[1][1] = new Array(1, 6);
blockArray[2][0] = new Array(1, 5);
blockArray[2][1] = new Array(1, 6);
blockArray[3][0] = new Array(1, 6);
blockArray[3][1] = new Array(1, 6);
blockArray[4][0] = new Array(1, 7);
blockArray[4][1] = new Array(1, 3);
blockArray[5][0] = new Array(1, 5);
blockArray[6][0] = new Array(1, 3);
blockArray[7][0] = new Array(1, 10);
blockArray[7][1] = new Array(1, 9);
blockArray[8][1] = new Array(1, 10);
blockArray[9][1] = new Array(1, 9);
blockArray[10][1] = new Array(1, 9);
blockArray[13][1] = new Array(1, 10);
} else if (level == 14) {
levelName = "Happy Face";
correctArray[4][9] = new Array(1, 3);
correctArray[4][10] = new Array(1, 3);
correctArray[4][12] = new Array(1, 3);
correctArray[4][13] = new Array(1, 3);
correctArray[5][9] = new Array(1, 5);
correctArray[5][10] = new Array(1, 2);
correctArray[5][12] = new Array(1, 3);
correctArray[5][13] = new Array(1, 2);
correctArray[5][14] = new Array(1, 7);
correctArray[6][12] = new Array(1, 3);
correctArray[6][13] = new Array(1, 7);
correctArray[6][14] = new Array(1, 7);
correctArray[7][12] = new Array(1, 2);
correctArray[7][13] = new Array(1, 2);
correctArray[7][14] = new Array(1, 7);
correctArray[8][12] = new Array(1, 5);
correctArray[8][13] = new Array(1, 6);
correctArray[8][14] = new Array(1, 10);
correctArray[9][9] = new Array(1, 5);
correctArray[9][10] = new Array(1, 5);
correctArray[9][12] = new Array(1, 6);
correctArray[9][13] = new Array(1, 6);
correctArray[9][14] = new Array(1, 10);
correctArray[10][9] = new Array(1, 5);
correctArray[10][10] = new Array(1, 10);
correctArray[10][12] = new Array(1, 6);
correctArray[10][13] = new Array(1, 10);
blockArray[3][0] = new Array(1, 3);
blockArray[3][1] = new Array(1, 3);
blockArray[3][3] = new Array(1, 3);
blockArray[3][4] = new Array(1, 3);
blockArray[4][0] = new Array(1, 5);
blockArray[4][3] = new Array(1, 3);
blockArray[5][3] = new Array(1, 3);
blockArray[7][3] = new Array(1, 5);
blockArray[8][0] = new Array(1, 5);
blockArray[8][1] = new Array(1, 5);
blockArray[9][0] = new Array(1, 5);
blockArray[9][1] = new Array(1, 7);
blockArray[10][0] = new Array(1, 7);
blockArray[10][1] = new Array(1, 7);
blockArray[11][0] = new Array(1, 2);
blockArray[11][1] = new Array(1, 7);
blockArray[11][2] = new Array(1, 6);
blockArray[11][3] = new Array(1, 2);
blockArray[12][1] = new Array(1, 6);
blockArray[12][2] = new Array(1, 6);
blockArray[12][4] = new Array(1, 10);
blockArray[13][1] = new Array(1, 6);
blockArray[13][2] = new Array(1, 2);
blockArray[13][3] = new Array(1, 2);
blockArray[13][4] = new Array(1, 10);
blockArray[14][0] = new Array(1, 10);
blockArray[14][3] = new Array(1, 10);
}
}
function levels3() {
}
function levels4() {
}
function levels5() {
}
function levelSetup() {
if (level < 12) {
_root.s1._visible = true;
_root.s2._visible = true;
} else {
_root.s1._visible = false;
_root.s2._visible = false;
}
timer = 0;
bubbles = 0;
startPlay = false;
clicks = 0;
levels1();
levels2();
if (level == 4) {
levelName = "Bat";
correctArray[2][9] = new Array(1, 2);
correctArray[2][10] = new Array(1, 2);
correctArray[3][8] = new Array(1, 3);
correctArray[3][11] = new Array(1, 2);
correctArray[4][9] = new Array(1, 10);
correctArray[5][10] = new Array(1, 10);
correctArray[6][8] = new Array(1, 8);
correctArray[6][9] = new Array(1, 10);
correctArray[6][11] = new Array(1, 6);
correctArray[7][9] = new Array(1, 10);
correctArray[7][10] = new Array(1, 8);
correctArray[7][11] = new Array(1, 6);
correctArray[8][8] = new Array(1, 5);
correctArray[8][9] = new Array(1, 5);
correctArray[8][11] = new Array(1, 6);
correctArray[9][10] = new Array(1, 3);
correctArray[10][9] = new Array(1, 3);
correctArray[11][8] = new Array(1, 3);
correctArray[11][11] = new Array(1, 6);
correctArray[12][9] = new Array(1, 6);
correctArray[12][10] = new Array(1, 6);
blockArray[3][0] = new Array(1, 3);
blockArray[4][0] = new Array(1, 8);
blockArray[4][1] = new Array(1, 2);
blockArray[4][2] = new Array(1, 2);
blockArray[5][0] = new Array(1, 10);
blockArray[5][2] = new Array(1, 8);
blockArray[5][3] = new Array(1, 2);
blockArray[6][1] = new Array(1, 10);
blockArray[6][2] = new Array(1, 6);
blockArray[7][0] = new Array(1, 10);
blockArray[7][2] = new Array(1, 6);
blockArray[8][0] = new Array(1, 10);
blockArray[8][2] = new Array(1, 6);
blockArray[9][0] = new Array(1, 5);
blockArray[9][1] = new Array(1, 5);
blockArray[9][2] = new Array(1, 3);
blockArray[10][1] = new Array(1, 3);
blockArray[11][0] = new Array(1, 3);
blockArray[11][2] = new Array(1, 6);
blockArray[12][0] = new Array(1, 6);
blockArray[12][1] = new Array(1, 6);
} else if (level == 6) {
levelName = "Ghost";
correctArray[5][7] = new Array(1, 2);
correctArray[5][8] = new Array(1, 10);
correctArray[5][9] = new Array(1, 10);
correctArray[5][10] = new Array(1, 10);
correctArray[5][11] = new Array(1, 2);
correctArray[6][6] = new Array(1, 7);
correctArray[6][7] = new Array(1, 10);
correctArray[6][9] = new Array(1, 3);
correctArray[6][10] = new Array(1, 3);
correctArray[7][6] = new Array(1, 7);
correctArray[7][7] = new Array(1, 10);
correctArray[7][8] = new Array(1, 2);
correctArray[7][9] = new Array(1, 2);
correctArray[7][10] = new Array(1, 2);
correctArray[7][11] = new Array(1, 2);
correctArray[8][6] = new Array(1, 7);
correctArray[8][7] = new Array(1, 10);
correctArray[8][9] = new Array(1, 7);
correctArray[8][10] = new Array(1, 7);
correctArray[9][7] = new Array(1, 3);
correctArray[9][8] = new Array(1, 3);
correctArray[9][9] = new Array(1, 3);
correctArray[9][10] = new Array(1, 3);
correctArray[9][11] = new Array(1, 3);
blockArray[2][1] = new Array(1, 10);
blockArray[2][2] = new Array(1, 10);
blockArray[2][3] = new Array(1, 10);
blockArray[3][0] = new Array(1, 10);
blockArray[3][2] = new Array(1, 3);
blockArray[3][3] = new Array(1, 3);
blockArray[4][0] = new Array(1, 10);
blockArray[5][0] = new Array(1, 10);
blockArray[6][0] = new Array(1, 3);
blockArray[6][1] = new Array(1, 3);
blockArray[6][2] = new Array(1, 3);
blockArray[6][3] = new Array(1, 3);
blockArray[6][4] = new Array(1, 3);
blockArray[7][0] = new Array(1, 7);
blockArray[8][0] = new Array(1, 7);
blockArray[9][0] = new Array(1, 7);
blockArray[9][3] = new Array(1, 7);
blockArray[9][4] = new Array(1, 7);
blockArray[10][0] = new Array(1, 2);
blockArray[10][4] = new Array(1, 2);
blockArray[12][1] = new Array(1, 2);
blockArray[12][2] = new Array(1, 2);
blockArray[12][3] = new Array(1, 2);
blockArray[12][4] = new Array(1, 2);
} else if (level == 3) {
levelName = "Stairs";
correctArray[4][7] = new Array(1, 7);
correctArray[4][8] = new Array(1, 6);
correctArray[4][9] = new Array(1, 7);
correctArray[4][10] = new Array(1, 7);
correctArray[4][11] = new Array(1, 4);
correctArray[4][12] = new Array(1, 4);
correctArray[5][8] = new Array(1, 6);
correctArray[5][9] = new Array(1, 6);
correctArray[5][10] = new Array(1, 5);
correctArray[5][11] = new Array(1, 4);
correctArray[5][12] = new Array(1, 3);
correctArray[6][9] = new Array(1, 6);
correctArray[6][10] = new Array(1, 5);
correctArray[6][11] = new Array(1, 4);
correctArray[6][12] = new Array(1, 3);
correctArray[7][10] = new Array(1, 5);
correctArray[7][11] = new Array(1, 4);
correctArray[7][12] = new Array(1, 3);
correctArray[8][11] = new Array(1, 5);
correctArray[8][12] = new Array(1, 3);
correctArray[9][12] = new Array(1, 3);
correctArray[11][11] = new Array(1, 2);
correctArray[11][12] = new Array(1, 2);
blockArray[3][0] = new Array(1, 7);
blockArray[3][2] = new Array(1, 7);
blockArray[3][3] = new Array(1, 7);
blockArray[4][0] = new Array(1, 6);
blockArray[5][0] = new Array(1, 6);
blockArray[5][1] = new Array(1, 6);
blockArray[6][1] = new Array(1, 6);
blockArray[6][2] = new Array(1, 4);
blockArray[6][3] = new Array(1, 4);
blockArray[7][0] = new Array(1, 2);
blockArray[7][1] = new Array(1, 2);
blockArray[7][2] = new Array(1, 4);
blockArray[8][0] = new Array(1, 3);
blockArray[8][1] = new Array(1, 5);
blockArray[8][2] = new Array(1, 4);
blockArray[9][0] = new Array(1, 3);
blockArray[9][1] = new Array(1, 5);
blockArray[9][2] = new Array(1, 4);
blockArray[10][0] = new Array(1, 3);
blockArray[10][1] = new Array(1, 5);
blockArray[11][0] = new Array(1, 3);
blockArray[11][2] = new Array(1, 5);
blockArray[12][0] = new Array(1, 3);
} else if (level == 2) {
levelName = "Paperboy";
correctArray[6][5] = new Array(1, 4);
correctArray[6][6] = new Array(1, 6);
correctArray[6][7] = new Array(1, 5);
correctArray[6][9] = new Array(1, 6);
correctArray[6][11] = new Array(1, 3);
correctArray[6][12] = new Array(1, 3);
correctArray[7][5] = new Array(1, 4);
correctArray[7][6] = new Array(1, 6);
correctArray[7][7] = new Array(1, 5);
correctArray[7][8] = new Array(1, 5);
correctArray[7][9] = new Array(1, 5);
correctArray[7][10] = new Array(1, 7);
correctArray[8][5] = new Array(1, 4);
correctArray[8][6] = new Array(1, 6);
correctArray[8][7] = new Array(1, 5);
correctArray[8][9] = new Array(1, 7);
correctArray[8][11] = new Array(1, 3);
correctArray[8][12] = new Array(1, 3);
correctArray[9][6] = new Array(1, 6);
blockArray[4][0] = new Array(1, 6);
blockArray[4][1] = new Array(1, 5);
blockArray[4][3] = new Array(1, 6);
blockArray[5][0] = new Array(1, 6);
blockArray[5][1] = new Array(1, 5);
blockArray[5][2] = new Array(1, 5);
blockArray[5][3] = new Array(1, 5);
blockArray[6][0] = new Array(1, 6);
blockArray[6][1] = new Array(1, 5);
blockArray[6][2] = new Array(1, 7);
blockArray[7][0] = new Array(1, 6);
blockArray[7][1] = new Array(1, 7);
blockArray[8][0] = new Array(1, 4);
blockArray[8][1] = new Array(1, 3);
blockArray[8][2] = new Array(1, 3);
blockArray[9][0] = new Array(1, 4);
blockArray[10][0] = new Array(1, 4);
blockArray[10][1] = new Array(1, 3);
blockArray[10][2] = new Array(1, 3);
} else if (level == 1) {
levelName = "A";
correctArray[5][6] = new Array(1, 4);
correctArray[5][7] = new Array(1, 4);
correctArray[5][8] = new Array(1, 4);
correctArray[5][9] = new Array(1, 3);
correctArray[5][10] = new Array(1, 3);
correctArray[6][5] = new Array(1, 6);
correctArray[6][8] = new Array(1, 4);
correctArray[7][5] = new Array(1, 6);
correctArray[7][8] = new Array(1, 4);
correctArray[8][6] = new Array(1, 3);
correctArray[8][7] = new Array(1, 3);
correctArray[8][8] = new Array(1, 6);
correctArray[8][9] = new Array(1, 6);
correctArray[8][10] = new Array(1, 3);
blockArray[0][0] = new Array(1, 6);
blockArray[1][0] = new Array(1, 6);
blockArray[2][3] = new Array(1, 6);
blockArray[2][4] = new Array(1, 6);
blockArray[6][0] = new Array(1, 4);
blockArray[6][1] = new Array(1, 4);
blockArray[6][2] = new Array(1, 4);
blockArray[7][2] = new Array(1, 4);
blockArray[8][2] = new Array(1, 4);
blockArray[11][3] = new Array(1, 3);
blockArray[11][4] = new Array(1, 3);
blockArray[14][0] = new Array(1, 3);
blockArray[14][1] = new Array(1, 3);
blockArray[14][4] = new Array(1, 3);
} else if (level == 0) {
levelName = "Square";
correctArray[6][7] = new Array(1, 2);
correctArray[6][8] = new Array(1, 2);
correctArray[6][9] = new Array(1, 2);
correctArray[7][7] = new Array(1, 3);
correctArray[7][8] = new Array(1, 3);
correctArray[7][9] = new Array(1, 2);
correctArray[8][7] = new Array(1, 4);
correctArray[8][8] = new Array(1, 3);
correctArray[8][9] = new Array(1, 2);
blockArray[4][3] = new Array(1, 4);
blockArray[6][2] = new Array(1, 3);
blockArray[6][3] = new Array(1, 3);
blockArray[7][3] = new Array(1, 3);
blockArray[9][1] = new Array(1, 2);
blockArray[9][2] = new Array(1, 2);
blockArray[9][3] = new Array(1, 2);
blockArray[10][3] = new Array(1, 2);
blockArray[11][3] = new Array(1, 2);
} else if (level == 8) {
levelName = "Bomb";
correctArray[4][9] = new Array(1, 3);
correctArray[4][10] = new Array(1, 4);
correctArray[4][11] = new Array(1, 2);
correctArray[5][8] = new Array(1, 8);
correctArray[5][9] = new Array(1, 3);
correctArray[5][10] = new Array(1, 4);
correctArray[5][11] = new Array(1, 2);
correctArray[5][12] = new Array(1, 3);
correctArray[6][7] = new Array(1, 7);
correctArray[6][8] = new Array(1, 8);
correctArray[6][9] = new Array(1, 3);
correctArray[6][10] = new Array(1, 4);
correctArray[6][11] = new Array(1, 2);
correctArray[6][12] = new Array(1, 3);
correctArray[6][13] = new Array(1, 2);
correctArray[7][6] = new Array(1, 9);
correctArray[7][7] = new Array(1, 7);
correctArray[7][8] = new Array(1, 8);
correctArray[7][9] = new Array(1, 3);
correctArray[7][10] = new Array(1, 4);
correctArray[7][11] = new Array(1, 2);
correctArray[7][12] = new Array(1, 3);
correctArray[7][13] = new Array(1, 2);
correctArray[8][5] = new Array(1, 9);
correctArray[8][7] = new Array(1, 7);
correctArray[8][9] = new Array(1, 3);
correctArray[8][10] = new Array(1, 4);
correctArray[8][11] = new Array(1, 2);
correctArray[8][12] = new Array(1, 3);
correctArray[8][13] = new Array(1, 2);
correctArray[9][5] = new Array(1, 8);
correctArray[9][8] = new Array(1, 6);
correctArray[9][10] = new Array(1, 4);
correctArray[9][11] = new Array(1, 2);
correctArray[9][12] = new Array(1, 3);
correctArray[10][9] = new Array(1, 4);
correctArray[10][10] = new Array(1, 4);
correctArray[10][11] = new Array(1, 2);
blockArray[0][1] = new Array(1, 7);
blockArray[1][1] = new Array(1, 7);
blockArray[2][1] = new Array(1, 7);
blockArray[2][2] = new Array(1, 2);
blockArray[3][1] = new Array(1, 9);
blockArray[3][2] = new Array(1, 2);
blockArray[3][3] = new Array(1, 4);
blockArray[4][0] = new Array(1, 9);
blockArray[4][2] = new Array(1, 2);
blockArray[4][3] = new Array(1, 4);
blockArray[4][4] = new Array(1, 2);
blockArray[5][2] = new Array(1, 2);
blockArray[5][3] = new Array(1, 4);
blockArray[5][4] = new Array(1, 2);
blockArray[6][2] = new Array(1, 2);
blockArray[6][3] = new Array(1, 4);
blockArray[6][4] = new Array(1, 2);
blockArray[7][2] = new Array(1, 2);
blockArray[7][3] = new Array(1, 4);
blockArray[8][2] = new Array(1, 2);
blockArray[8][3] = new Array(1, 4);
blockArray[9][1] = new Array(1, 3);
blockArray[9][2] = new Array(1, 4);
blockArray[9][3] = new Array(1, 4);
blockArray[10][1] = new Array(1, 3);
blockArray[10][2] = new Array(1, 6);
blockArray[10][3] = new Array(1, 8);
blockArray[10][4] = new Array(1, 3);
blockArray[11][1] = new Array(1, 3);
blockArray[11][3] = new Array(1, 8);
blockArray[11][4] = new Array(1, 3);
blockArray[12][1] = new Array(1, 3);
blockArray[12][3] = new Array(1, 8);
blockArray[12][4] = new Array(1, 3);
blockArray[13][1] = new Array(1, 3);
blockArray[13][4] = new Array(1, 3);
blockArray[14][0] = new Array(1, 8);
blockArray[14][4] = new Array(1, 3);
} else if (level == 7) {
levelName = "Heart";
correctArray[4][6] = new Array(1, 6);
correctArray[4][7] = new Array(1, 5);
correctArray[5][5] = new Array(1, 6);
correctArray[5][6] = new Array(1, 6);
correctArray[5][7] = new Array(1, 5);
correctArray[5][8] = new Array(1, 4);
correctArray[6][5] = new Array(1, 6);
correctArray[6][6] = new Array(1, 5);
correctArray[6][7] = new Array(1, 5);
correctArray[6][8] = new Array(1, 4);
correctArray[6][9] = new Array(1, 3);
correctArray[7][6] = new Array(1, 5);
correctArray[7][7] = new Array(1, 4);
correctArray[7][8] = new Array(1, 4);
correctArray[7][9] = new Array(1, 3);
correctArray[7][10] = new Array(1, 4);
correctArray[8][6] = new Array(1, 5);
correctArray[8][7] = new Array(1, 4);
correctArray[8][8] = new Array(1, 4);
correctArray[8][9] = new Array(1, 3);
correctArray[8][10] = new Array(1, 4);
correctArray[9][5] = new Array(1, 2);
correctArray[9][6] = new Array(1, 2);
correctArray[9][7] = new Array(1, 2);
correctArray[9][8] = new Array(1, 2);
correctArray[9][9] = new Array(1, 3);
correctArray[10][5] = new Array(1, 2);
correctArray[10][7] = new Array(1, 3);
correctArray[10][8] = new Array(1, 3);
correctArray[11][6] = new Array(1, 5);
correctArray[11][7] = new Array(1, 5);
blockArray[0][3] = new Array(1, 5);
blockArray[1][1] = new Array(1, 4);
blockArray[1][3] = new Array(1, 5);
blockArray[2][1] = new Array(1, 4);
blockArray[2][2] = new Array(1, 5);
blockArray[2][3] = new Array(1, 5);
blockArray[3][0] = new Array(1, 4);
blockArray[3][1] = new Array(1, 4);
blockArray[3][2] = new Array(1, 5);
blockArray[3][3] = new Array(1, 4);
blockArray[4][0] = new Array(1, 4);
blockArray[4][1] = new Array(1, 4);
blockArray[4][2] = new Array(1, 5);
blockArray[4][3] = new Array(1, 4);
blockArray[5][2] = new Array(1, 6);
blockArray[6][1] = new Array(1, 6);
blockArray[6][2] = new Array(1, 6);
blockArray[7][1] = new Array(1, 6);
blockArray[7][2] = new Array(1, 5);
blockArray[7][3] = new Array(1, 5);
blockArray[8][2] = new Array(1, 3);
blockArray[9][2] = new Array(1, 3);
blockArray[10][2] = new Array(1, 3);
blockArray[11][2] = new Array(1, 3);
blockArray[12][0] = new Array(1, 3);
blockArray[12][1] = new Array(1, 3);
blockArray[13][0] = new Array(1, 2);
blockArray[13][1] = new Array(1, 2);
blockArray[13][2] = new Array(1, 2);
blockArray[13][3] = new Array(1, 2);
blockArray[14][0] = new Array(1, 2);
} else if (level == 10) {
levelName = "Alien 2";
correctArray[2][9] = new Array(1, 9);
correctArray[2][10] = new Array(1, 9);
correctArray[2][11] = new Array(1, 9);
correctArray[3][8] = new Array(1, 8);
correctArray[3][9] = new Array(1, 8);
correctArray[4][5] = new Array(1, 7);
correctArray[4][7] = new Array(1, 5);
correctArray[4][8] = new Array(1, 8);
correctArray[4][9] = new Array(1, 8);
correctArray[4][10] = new Array(1, 6);
correctArray[4][11] = new Array(1, 8);
correctArray[5][6] = new Array(1, 7);
correctArray[5][7] = new Array(1, 5);
correctArray[5][9] = new Array(1, 6);
correctArray[5][10] = new Array(1, 6);
correctArray[5][12] = new Array(1, 8);
correctArray[6][7] = new Array(1, 5);
correctArray[6][8] = new Array(1, 5);
correctArray[6][9] = new Array(1, 5);
correctArray[6][10] = new Array(1, 7);
correctArray[6][12] = new Array(1, 8);
correctArray[7][7] = new Array(1, 10);
correctArray[7][8] = new Array(1, 10);
correctArray[7][9] = new Array(1, 10);
correctArray[7][10] = new Array(1, 7);
correctArray[8][7] = new Array(1, 4);
correctArray[8][8] = new Array(1, 4);
correctArray[8][9] = new Array(1, 4);
correctArray[8][10] = new Array(1, 7);
correctArray[8][12] = new Array(1, 7);
correctArray[9][6] = new Array(1, 4);
correctArray[9][7] = new Array(1, 6);
correctArray[9][9] = new Array(1, 5);
correctArray[9][10] = new Array(1, 7);
correctArray[9][12] = new Array(1, 7);
correctArray[10][5] = new Array(1, 4);
correctArray[10][7] = new Array(1, 6);
correctArray[10][8] = new Array(1, 6);
correctArray[10][9] = new Array(1, 5);
correctArray[10][10] = new Array(1, 9);
correctArray[10][11] = new Array(1, 9);
correctArray[11][8] = new Array(1, 5);
correctArray[12][9] = new Array(1, 10);
correctArray[12][10] = new Array(1, 10);
correctArray[12][11] = new Array(1, 10);
blockArray[0][12] = new Array(1, 8);
blockArray[0][13] = new Array(1, 8);
blockArray[0][14] = new Array(1, 9);
blockArray[0][15] = new Array(1, 9);
blockArray[0][16] = new Array(1, 9);
blockArray[1][12] = new Array(1, 8);
blockArray[1][13] = new Array(1, 8);
blockArray[1][15] = new Array(1, 8);
blockArray[2][16] = new Array(1, 8);
blockArray[3][16] = new Array(1, 8);
blockArray[5][14] = new Array(1, 5);
blockArray[6][0] = new Array(1, 10);
blockArray[6][1] = new Array(1, 10);
blockArray[6][2] = new Array(1, 10);
blockArray[6][14] = new Array(1, 5);
blockArray[7][2] = new Array(1, 4);
blockArray[7][3] = new Array(1, 4);
blockArray[7][4] = new Array(1, 4);
blockArray[7][14] = new Array(1, 5);
blockArray[7][15] = new Array(1, 5);
blockArray[7][16] = new Array(1, 5);
blockArray[8][1] = new Array(1, 4);
blockArray[8][14] = new Array(1, 6);
blockArray[8][15] = new Array(1, 9);
blockArray[8][16] = new Array(1, 9);
blockArray[9][0] = new Array(1, 4);
blockArray[9][1] = new Array(1, 7);
blockArray[9][13] = new Array(1, 6);
blockArray[9][14] = new Array(1, 6);
blockArray[10][2] = new Array(1, 7);
blockArray[10][16] = new Array(1, 5);
blockArray[11][2] = new Array(1, 10);
blockArray[11][3] = new Array(1, 10);
blockArray[11][4] = new Array(1, 10);
blockArray[11][6] = new Array(1, 7);
blockArray[11][16] = new Array(1, 5);
blockArray[12][6] = new Array(1, 7);
blockArray[12][15] = new Array(1, 5);
blockArray[13][6] = new Array(1, 7);
blockArray[13][8] = new Array(1, 7);
blockArray[13][11] = new Array(1, 6);
blockArray[14][6] = new Array(1, 7);
blockArray[14][8] = new Array(1, 7);
blockArray[14][11] = new Array(1, 6);
blockArray[14][12] = new Array(1, 6);
}
levelWords = levelName;
}
levelName = "";
function cleanUp() {
correctPic.swapDepths(9999);
removeMovieClip(correctPic);
i = 0;
while (i <= blocks) {
_root["b" + i].swapDepths(9999);
removeMovieClip(_root["b" + i]);
i++;
}
}
function setup() {
win = false;
_root.level++;
blockArray = new Array();
correctArray = new Array();
groupBlocks = new Array();
i = 0;
while (i < 20) {
groupBlocks[i] = new Array();
i++;
}
createEmptyMovieClip("correctPic", 10000);
correctPic.lineStyle(2, 0, 0);
correctPic._alpha = 0;
blocks = 0;
minX = 15;
minY = 15;
correctPic._x = correctPic._x + minX;
correctPic._y = correctPic._y + minY;
blockW = block._width - 1;
blockH = block._height - 1;
rows = 15;
cols = 18;
wait = 0;
moveT = 2;
check._visible = false;
i = 0;
while (i < rows) {
correctArray[i] = new Array();
blockArray[i] = new Array();
j = 0;
while (j < cols) {
correctArray[i][j] = new Array(0, 0);
blockArray[i][j] = new Array(0, 0);
j++;
}
i++;
}
dir = 0;
}
function setup2() {
trace(Math.round((level + 1) % 3));
bg.gotoAndStop(level + 1);
i = 0;
while (i < rows) {
j = 0;
while (j < cols) {
if (correctArray[i][j][0] != 0) {
correctPic.beginFill(0);
correctPic.moveTo(Math.floor(i * blockW), Math.floor(j * blockH));
correctPic.lineTo(Math.floor(i * blockW), Math.floor((j * blockH) + blockH));
correctPic.lineTo(Math.floor((i * blockW) + blockW), Math.floor((j * blockH) + blockH));
correctPic.lineTo(Math.floor((i * blockW) + blockW), Math.floor(j * blockH));
correctPic.lineTo(Math.floor(i * blockW), Math.floor(j * blockH));
correctPic.endFill();
}
if (blockArray[i][j][0] != 0) {
blocks++;
duplicateMovieClip (_root.block, "b" + blocks, _root.getNextHighestDepth());
_root["b" + blocks]._x = Math.floor((i * blockW) + minX);
_root["b" + blocks]._y = Math.floor((j * blockH) + minY);
_root["b" + blocks].x = i;
_root["b" + blocks].y = j;
_root["b" + blocks]._alpha = 0;
_root["b" + blocks].num = blocks;
_root["b" + blocks].num2 = blockArray[i][j][1];
_root["b" + blocks].b.gotoAndStop(blockArray[i][j][1]);
_root["b" + blocks].lock = false;
groupBlocks[blockArray[i][j][1]].push(blocks);
blockArray[i][j][0] = blocks;
}
j++;
}
i++;
}
mouse = false;
selectBlock = 0;
xDiff = 0;
yDiff = 0;
posMove = false;
blocksMove = new Array();
}
function checkWin() {
win = true;
i = 0;
while (i < rows) {
j = 0;
while (j < cols) {
if (correctArray[i][j][0] != 0) {
if (blockArray[i][j][0] == 0) {
win = false;
}
}
j++;
}
i++;
}
if (win) {
i = 0;
while (i < rows) {
j = 0;
while (j < cols) {
_root["b" + blockArray[i][j][0]].b.gotoAndStop(100);
j++;
}
i++;
}
}
}
function checkMove(num, x, y, xC, yC) {
if (_root.posMove) {
if (!blocksCheck[num]) {
if (_root["b" + num].lock) {
_root.posMove = false;
}
blocksMove.push(num);
blocksCheck[num] = true;
l = 0;
while (l < groupBlocks[_root["b" + num].num2].length) {
number = groupBlocks[_root["b" + num].num2][l];
checkMove(number, _root["b" + number].x, _root["b" + number].y, xC, yC);
l++;
}
if (((((x + xC) >= 0) && ((y + yC) >= 0)) && ((x + xC) < rows)) && ((y + yC) < cols)) {
if (blockArray[x + xC][y + yC][0] != 0) {
number = blockArray[x + xC][y + yC][0];
checkMove(number, _root["b" + number].x, _root["b" + number].y, xC, yC);
}
} else {
_root.posMove = false;
}
}
}
}
function createLines() {
cwait++;
if (cwait > 5) {
cwait = 0;
cnum++;
lineMc = createEmptyMovieClip("lines" + cnum, cnum);
lineMc.lineStyle(0.5, 16777215, 100);
lineMc.ypos = 0;
lineMc._x = Math.random() * Stage.width;
lineMc._rotation = (Math.random() * 100) - 50;
lineMc._alpha = 70;
lineMc.onEnterFrame = function () {
this.lineStyle(0.5, 16777215, 100);
this.moveTo(0, 0);
this.ypos = this.ypos + 30;
this.lineTo(0, this.ypos);
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
}
}
function checkStarOver() {
j = 1;
while (j < 4) {
if (_root["s" + j]._visible) {
if (_root["s" + j].hitTest(_xmouse, _ymouse, true)) {
des._visible = true;
des.gotoAndStop(j);
desText = desArray[level][j - 1];
return(undefined);
}
}
j++;
}
des._visible = false;
desText = "";
}
function checkStarC() {
pauseMc.happy._visible = false;
if (level == 0) {
if (win) {
starArray[0][0] = true;
}
if (des._visible && (des._currentframe == 2)) {
starArray[0][1] = true;
}
if (win && (cleanWait > 0)) {
starArray[0][2] = true;
}
} else if (level == 1) {
if (win) {
starArray[1][0] = true;
}
if (pauseMc._visible) {
starArray[1][1] = true;
}
if (restart) {
starArray[1][2] = true;
}
} else if (level == 2) {
if (win) {
starArray[2][0] = true;
}
if (win && (clicks == 1)) {
starArray[2][2] = true;
}
} else if (level == 3) {
if (win) {
starArray[3][0] = true;
}
if (bubbles >= 10) {
starArray[3][1] = true;
}
if (win && (clicks <= 5)) {
starArray[3][2] = true;
}
} else if (level == 4) {
_root.pauseMc.happy._visible = true;
if (win) {
starArray[4][0] = true;
}
if (pauseM && (pauseMc.happy.hitTest(_xmouse, _ymouse, true))) {
pauseMc.happy._alpha = 100;
starArray[4][1] = true;
} else {
pauseMc.happy._alpha = 10;
}
if ((win && (cleanWait == 1)) && (clicks == 100)) {
starArray[4][2] = true;
}
} else if (level == 5) {
if (win) {
starArray[5][0] = true;
}
if (win && (timer < 30)) {
starArray[5][1] = true;
}
if (win && (clicks <= 3)) {
starArray[5][2] = true;
}
} else if (level == 6) {
if (win) {
starArray[6][0] = true;
}
if (bubbles >= 50) {
starArray[6][2] = true;
}
} else if (level == 7) {
if (win) {
starArray[7][0] = true;
}
if (win && (timer < 18)) {
starArray[7][1] = true;
}
if (win && (clicks <= 3)) {
starArray[7][2] = true;
}
} else if (level == 8) {
if (win) {
starArray[8][0] = true;
}
if (win && (timer < 20)) {
starArray[8][1] = true;
}
if (win && (clicks <= 6)) {
starArray[8][2] = true;
}
} else if (level == 9) {
if (win) {
starArray[9][0] = true;
}
if (win && (timer < 45)) {
starArray[9][1] = true;
}
if (win && (clicks <= 10)) {
starArray[9][2] = true;
}
} else if (level == 10) {
if (win) {
starArray[10][0] = true;
}
if (win && (timer < 60)) {
starArray[10][1] = true;
}
if (win && (clicks <= 14)) {
starArray[10][2] = true;
}
} else if (level == 11) {
if (win) {
starArray[11][0] = true;
}
if (win && (timer < 80)) {
starArray[11][1] = true;
}
if (bubbles >= 250) {
starArray[11][2] = true;
}
} else if (level > 11) {
if (win) {
starArray[level][2] = true;
}
}
}
function showStarC() {
j = 1;
while (j < 4) {
if (starArray[level][j - 1]) {
_root["s" + j].gotoAndStop(1);
} else {
_root["s" + j].gotoAndStop(2);
}
j++;
}
}
function pauseGame() {
if (Key.isDown(80)) {
if (!pClick) {
pClick = true;
if (!pauseM) {
pauseM = true;
i = 1;
while (i <= blocks) {
_root["b" + i]._visible = false;
i++;
}
correctPic._visible = false;
pauseMc._visible = true;
} else {
correctPic._visible = true;
pauseM = false;
i = 1;
while (i <= blocks) {
_root["b" + i]._visible = true;
i++;
}
pauseMc._visible = false;
}
}
} else {
pClick = false;
}
}
desArray = new Array(new Array("Beat Level", "Check Star Description", "Destroy the Finished Block"), new Array("Beat Level", "Pause Game (Press 'P')", "Restart Level"), new Array("Beat Level", "Lock Puzzle Piece (CTRL +Click)", "Beat level in 1 Click"), new Array("Beat Level", "Pop 10 Bubbles", "Beat level in 5 or Less Clicks"), new Array("Beat Level", "Find the Hidden Happy Face", "Destroy the Bat on your 100th Click"), new Array("Beat Level", "Win in < 30 seconds (Top-Right Corner)", "Beat Level in 3 or Less Clicks"), new Array("Beat Level", "Play Pacman in the Pause Menu", "Pop 50 Bubbles"), new Array("Beat Level", "Win in < 18 seconds (Top-Right Corner)", "Win in 3 or Less Clicks"), new Array("Beat Level", "Win in < 20 seconds (Top-Right Corner)", "Win in 6 or Less Clicks"), new Array("Beat Level", "Win in < 45 seconds (Top-Right Corner)", "Win in 10 or Less Clicks"), new Array("Beat Level", "Win in < 60 seconds (Top-Right Corner)", "Win in 14 or less Clicks"), new Array("Beat Level", "Win in < 80 seconds (Top-Right Corner)", "Pop 250 Bubbles"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"), new Array("", "", "Beat Level"));
menuGo = false;
setup();
_root.levelSetup();
setup2();
onMouseDown = function () {
if (!mouse) {
if (!pauseM) {
if ((((_xmouse >= 0) && (_xmouse <= Stage.width)) && (_ymouse >= 0)) && (_ymouse <= Stage.height)) {
if (!Key.isDown(17)) {
clicks++;
}
}
}
}
mouse = true;
};
onMouseUp = function () {
mouse = false;
};
bubbles = 0;
cleanWait = 0;
startPlay = false;
restart = false;
pauseM = false;
pClick = false;
pauseMc._visible = false;
timer = 0;
onEnterFrame = function () {
if (!win) {
if (clicks >= 1) {
if (timer < 0.5) {
timer = 0.5;
}
timer = timer + 0.03333333;
}
}
timerC = Math.floor(timer);
bubbleC = bubbles;
pauseGame();
checkStarOver();
checkStarC();
showStarC();
if (pauseM) {
} else {
if (menuGo) {
level--;
cleanUp();
win = false;
cleanWait = 0;
menuGo = false;
_root.gotoAndStop("menu");
}
if (restart) {
level--;
cleanUp();
setup();
levelSetup();
setup2();
win = false;
cleanWait = 0;
restart = false;
}
spawnCircles();
if (!win) {
if (correctPic._alpha < 30) {
correctPic._alpha = correctPic._alpha + 2;
}
if (_root["b" + blocks]._alpha < 100) {
i = 1;
while (i <= blocks) {
_root["b" + i]._alpha = _root["b" + i]._alpha + 10;
i++;
}
} else {
startPlay = true;
}
if (startPlay) {
if ((dir == 0) && (wait == 0)) {
if (mouse) {
if (selectBlock == 0) {
if (!clicked) {
clicked = true;
i = 1;
while (i <= blocks) {
if (_root["b" + i].hitTest(_xmouse, _ymouse, true)) {
if (!Key.isDown(17)) {
selectBlock = i;
xDiff = _root["b" + i]._x - _xmouse;
yDiff = _root["b" + i]._y - _ymouse;
} else {
if (level == 2) {
starArray[2][1] = true;
}
if (_root["b" + i].lock) {
l = 0;
while (l < groupBlocks[_root["b" + i].num2].length) {
_root["b" + groupBlocks[_root["b" + i].num2][l]].b.gotoAndStop(_root["b" + groupBlocks[_root["b" + i].num2][l]].num2);
_root["b" + groupBlocks[_root["b" + i].num2][l]].lock = false;
l++;
}
} else {
l = 0;
while (l < groupBlocks[_root["b" + i].num2].length) {
_root["b" + groupBlocks[_root["b" + i].num2][l]].b.gotoAndStop(100);
_root["b" + groupBlocks[_root["b" + i].num2][l]].lock = true;
l++;
}
}
}
}
i++;
}
}
} else if (lastTime == 0) {
blocksCheck = new Array();
posMove = false;
if (_ymouse < (_root["b" + selectBlock]._y - (blockH / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, -1);
if (posMove) {
dir = 3;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x][y - 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].y--;
i++;
}
}
} else if (_ymouse > ((_root["b" + selectBlock]._y + blockH) + (blockH / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, 1);
if (posMove) {
dir = 4;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x][y + 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].y++;
i++;
}
}
}
if (!posMove) {
blocksCheck = new Array();
if (_xmouse < (_root["b" + selectBlock]._x - (blockW / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, -1, 0);
if (posMove) {
dir = 1;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x - 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].x--;
i++;
}
}
} else if (_xmouse > ((_root["b" + selectBlock]._x + blockW) + (blockW / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 1, 0);
if (posMove) {
dir = 2;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x + 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].x++;
i++;
}
}
}
}
lastTime = 1;
} else {
blocksCheck = new Array();
posMove = false;
if (_xmouse < (_root["b" + selectBlock]._x - (blockW / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, -1, 0);
if (posMove) {
dir = 1;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x - 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].x--;
i++;
}
}
} else if (_xmouse > ((_root["b" + selectBlock]._x + blockW) + (blockW / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 1, 0);
if (posMove) {
dir = 2;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x + 1][y] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].x++;
i++;
}
}
}
if (!posMove) {
blocksCheck = new Array();
if (_ymouse < (_root["b" + selectBlock]._y - (blockH / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, -1);
if (posMove) {
dir = 3;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x][y - 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].y--;
i++;
}
}
} else if (_ymouse > ((_root["b" + selectBlock]._y + blockH) + (blockH / 4))) {
_root.posMove = true;
blocksMove = new Array();
checkMove(selectBlock, _root["b" + selectBlock].x, _root["b" + selectBlock].y, 0, 1);
if (posMove) {
dir = 4;
i = 0;
while (i < blocksMove.length) {
x = _root["b" + blocksMove[i]].x;
y = _root["b" + blocksMove[i]].y;
if (blockArray[x][y][0] == blocksMove[i]) {
blockArray[x][y] = new Array(0, 0);
}
blockArray[x][y + 1] = new Array(blocksMove[i], _root["b" + blocksMove[i]].num2);
_root["b" + blocksMove[i]].y++;
i++;
}
}
}
}
lastTime = 0;
}
} else {
selectBlock = 0;
clicked = false;
}
} else {
if (dir == 1) {
i = 0;
while (i < blocksMove.length) {
_root["b" + blocksMove[i]]._x = _root["b" + blocksMove[i]]._x - (blockW / moveT);
i++;
}
} else if (dir == 2) {
i = 0;
while (i < blocksMove.length) {
_root["b" + blocksMove[i]]._x = _root["b" + blocksMove[i]]._x + (blockW / moveT);
i++;
}
} else if (dir == 3) {
i = 0;
while (i < blocksMove.length) {
_root["b" + blocksMove[i]]._y = _root["b" + blocksMove[i]]._y - (blockH / moveT);
i++;
}
} else if (dir == 4) {
i = 0;
while (i < blocksMove.length) {
_root["b" + blocksMove[i]]._y = _root["b" + blocksMove[i]]._y + (blockH / moveT);
i++;
}
}
wait++;
if (wait == moveT) {
i = 0;
while (i < blocksMove.length) {
_root["b" + blocksMove[i]]._x = Math.floor((_root["b" + blocksMove[i]].x * blockW) + minX);
_root["b" + blocksMove[i]]._y = Math.floor((_root["b" + blocksMove[i]].y * blockH) + minY);
i++;
}
checkWin();
if (win) {
check._visible = true;
}
wait = 0;
wait = 10;
dir = 0;
} else if (wait >= 10) {
wait = 0;
}
}
}
} else {
if (cleanWait >= 1) {
if (cleanWait == 1) {
correctPic.clear();
i = 1;
while (i <= blocks) {
_root["b" + i].xspd = (Math.random() * 20) - 10;
_root["b" + i].yspd = (Math.random() * -15) - 5;
_root["b" + i].grav = 1;
i++;
}
}
cleanWait++;
i = 1;
while (i <= blocks) {
_root["b" + i]._x = _root["b" + i]._x + _root["b" + i].xspd;
_root["b" + i].yspd = _root["b" + i].yspd + _root["b" + i].grav;
_root["b" + i]._y = _root["b" + i]._y + _root["b" + i].yspd;
_root["b" + i]._alpha = _root["b" + i]._alpha - 2;
i++;
}
if (_root["b" + blocks]._alpha <= 0) {
if (_root.level < 23) {
cleanUp();
setup();
levelSetup();
setup2();
win = false;
cleanWait = 0;
} else {
_root.menuGo = true;
}
}
}
if (mouse) {
if (!clicked) {
i = 1;
while (i <= blocks) {
if (_root["b" + i].hitTest(_xmouse, _ymouse, true)) {
cleanWait++;
break;
}
i++;
}
}
} else {
clicked = false;
}
}
clicksShow = "Clicks " + clicks;
}
};
Symbol 16 Button
on (press) {
getURL ("http://www.armorgames.com/", _blank);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 126
_root.nextFrame();
Symbol 56 MovieClip Frame 94
_root.nextFrame();
Symbol 63 Button
on (release) {
_root.nextFrame();
}
on (rollOver) {
_root.bg.gotoAndStop(1);
}
Symbol 69 Button
on (rollOver) {
creds._visible = true;
_root.bg.gotoAndStop(4);
}
on (rollOut) {
creds._visible = false;
}
Symbol 73 Button
on (rollOver) {
_root.bg.gotoAndStop(8);
}
on (press) {
getURL ("http://www.armorgames.com/", _blank);
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
stop();
Symbol 144 Button
on (release) {
trace("//--------------");
i = 0;
while (i < 15) {
j = 0;
while (j < 18) {
if (blockArray[i][j][0] >= 1) {
trace(((((("blockArray[" + i) + "][") + j) + "] = new Array(1,") + _root.blockArray[i][j][1]) + ");");
}
j++;
}
i++;
}
}
Instance of Symbol 152 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
spd = 5;
}
onClipEvent (enterFrame) {
if (_root.pauseM && (_root.level == 6)) {
_parent.akeys._visible = true;
_visible = true;
i = 1;
while (i < 13) {
_parent["c" + i]._visible = true;
i++;
}
if (Key.isDown(37)) {
_rotation = 180;
_x = (_x - spd);
} else if (Key.isDown(39)) {
_rotation = 0;
_x = (_x + spd);
} else if (Key.isDown(38)) {
_rotation = -90;
_y = (_y - spd);
} else if (Key.isDown(40)) {
_rotation = 90;
_y = (_y + spd);
}
if (_x < (30 - _parent._x)) {
_x = (30 - _parent._x);
}
if (_x > ((Stage.width - 30) - _parent._x)) {
_x = ((Stage.width - 30) - _parent._x);
}
if (_y < (30 - _parent._y)) {
_y = (30 - _parent._y);
}
if (_y > ((Stage.height - 100) - _parent._y)) {
_y = ((Stage.height - 100) - _parent._y);
}
alpha = true;
i = 1;
while (i < 13) {
if (_parent["c" + i]._alpha != 0) {
alpha = false;
}
if (this.hitTest(_parent["c" + i])) {
_parent["c" + i]._alpha = 0;
}
i++;
}
if (alpha) {
_parent.c13._visible = true;
}
if (this.hitTest(_parent.c13)) {
if (_parent.c13._visible) {
_parent.c13._alpha = 0;
_root.starArray[6][1] = true;
}
}
} else {
_parent.akeys._visible = false;
i = 1;
while (i < 14) {
_root.pauseMc["c" + i]._visible = false;
i++;
}
_visible = false;
}
}
Symbol 164 Button
on (release) {
_root.restart = true;
}
Symbol 172 Button
on (release) {
_root.menuGo = true;
}
Symbol 177 MovieClip Frame 1
stop();