Frame 1
attachMovie("stars", "stars", getNextHighestDepth());
MochiAd.showPreGameAd({id:"d785476f458d0d78", res:"640x480", background:0, color:9082814, outline:7434094, no_bg:false});
Frame 2
stop();
t = 0;
onEnterFrame = function () {
t++;
if (t > 70) {
nextFrame();
onEnterFrame = function () {
};
}
};
Instance of Symbol 110 MovieClip [g5_splash] in Frame 2
onClipEvent (load) {
swapDepths(_parent.getNextHighestDepth());
}
Frame 3
_global.picasofinished = function () {
nextFrame();
};
Frame 4
stop();
var so = SharedObject.getLocal("Prism");
bgsound = new Sound();
bgsound.attachSound("MUS1");
if (!_root.so.data.soundMuted) {
bgsound.start(0, 1000);
}
Instance of Symbol 351 MovieClip "intr" in Frame 4
onClipEvent (load) {
var t = 0;
}
onClipEvent (enterFrame) {
t++;
if (t > 15) {
t = 0;
swapDepths(_parent.getNextHighestDepth());
_parent.g5link.swapDepths(_parent.getNextHighestDepth() + 1);
}
}
Instance of Symbol 393 MovieClip "g5link" in Frame 4
onClipEvent (load) {
stop();
_alpha = 0;
onEnterFrame = function () {
_alpha = (_alpha + ((100 - _alpha) / 20));
};
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.gimme5games.com/", "_blank");
}
Frame 5
function startPlaying() {
removeMovieClip(mainMenu);
nextFrame();
}
stop();
removeMovieClip(intr);
for (i in so.data) {
trace((("cookie " + i) + "=") + so.data[i]);
}
if (so.data.q == undefined) {
so.data.q = new String();
so.data.q = "HIGH";
so.flush();
}
_quality = so.data.q;
if (so.data.playedTimerMode == undefined) {
so.data.playedTimerMode = new Boolean();
so.data.playedTimerMode = false;
so.flush();
}
if (so.data.soundMuted == undefined) {
so.data.soundMuted = new Boolean();
so.data.soundMuted = false;
so.flush();
}
if (so.data.puzzleLevel == undefined) {
so.data.puzzleLevel = new Number();
so.data.puzzleLevel = 0;
so.flush();
}
so.data.transmitterHelpShown = undefined;
if (so.data.transmitterHelpShown == undefined) {
so.data.transmitterHelpShown = new Boolean();
so.data.transmitterHelpShown = false;
so.data.mirrorHelpShown = new Boolean();
so.data.mirrorHelpShown = false;
so.data.splitterHelpShown = new Boolean();
so.data.splitterHelpShown = false;
so.data.prismHelpShown = new Boolean();
so.data.prismHelpShown = false;
so.data.filterHelpShown = new Boolean();
so.data.filterHelpShown = false;
so.data.cycloidHelpShown = new Boolean();
so.data.cycloidHelpShown = false;
so.flush();
}
if (so.data.level0passed == undefined) {
i = 0;
while (i < 33) {
so.data[("level" + i) + "passed"] = new Boolean();
so.data[("level" + i) + "passed"] = false;
i++;
}
}
onMouseDown = (checkWin = (refreshCycloids = (onEnterFrame = null)));
if (puzzleNextLevel) {
trace("\u041F\u041E\u041A\u0410\u0417\u042B\u0412\u0410\u0415\u041C \u041C\u0415\u041D\u042E \u0423\u0420\u041E\u0412\u041D\u0415\u0419");
puzzleNextLevel = false;
if (mainMenu) {
removeMovieClip(mainMenu);
}
attachMovie("mainMenu", "mainMenu", getNextHighestDepth());
mainMenu.gotoAndStop(20);
mainMenu.puzzleNextLevel = true;
} else {
attachMovie("mainMenu", "mainMenu", getNextHighestDepth());
}
ad.swapDepths(getNextHighestDepth());
if (!_root.so.data.soundMuted) {
ms = new Sound();
ms.attachSound("menu");
ms.start();
}
Frame 6
function createGameField(w, h) {
game = new Array();
winlevel = new Array();
i = 0;
while (i < w) {
game[i] = new Array(h);
winlevel[i] = new Array(h);
j = 0;
while (j < h) {
game[i][j] = new Object();
winlevel[i][j] = new Object();
game[i][j].wall = true;
winlevel[i][j].wall = true;
j++;
}
i++;
}
}
function highLightField() {
lights.filters = [new flash.filters.BlurFilter(30, 30, 2)];
BGLights = new Array();
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if (!game[i][j].wall) {
if ((((game[i - 1][j].wall || (game[i][j - 1].wall)) || (game[i - 1][j - 1].wall)) || (j == 0)) || (i == 0)) {
addBGLight(i, j);
}
if ((((game[i + 1][j].wall || (game[i][j - 1].wall)) || (game[i + 1][j - 1].wall)) || (j == 0)) || (i == (game.length - 1))) {
addBGLight(i + 1, j);
}
if ((((game[i - 1][j].wall || (game[i][j + 1].wall)) || (game[i - 1][j + 1].wall)) || (j == (game[0].length - 1))) || (i == 0)) {
addBGLight(i, j + 1);
}
if ((((game[i + 1][j].wall || (game[i][j + 1].wall)) || (game[i + 1][j + 1].wall)) || (j == (game[0].length - 1))) || (i == (game.length - 1))) {
addBGLight(i + 1, j + 1);
}
}
j++;
}
i++;
}
createGlowLight(BGLights);
}
function addBGLight(x, y) {
bgllength = BGLights.length;
if (!bgllength) {
bgllength = 1;
}
alreadyAdded = false;
v = 0;
while (v < bgllength) {
if ((BGLights[v].x == x) && (BGLights[v].y == y)) {
alreadyAdded = true;
}
v++;
}
if (!alreadyAdded) {
BGLights.push(new flash.geom.Point(x, y));
}
}
function clearGlowLightFiled() {
i = 0;
while (i < lights.getNextHighestDepth()) {
removeMovieClip(lights["glowingLight" + i]);
i++;
}
}
function createGlowLight(BGLights) {
clearGlowLightField();
with (lights) {
i = 0;
while (i < BGLights.length) {
z = getNextHighestDepth();
attachMovie("glowingLight", "glowingLight" + z, z);
lights["glowingLight" + z]._x = (BGLights[i].x * 40) + 40;
lights["glowingLight" + z]._y = (BGLights[i].y * 40) + 40;
lights["glowingLight" + z]._alpha = -random(30);
lights["glowingLight" + z].ls = (random(30) / 5) + 3;
lights["glowingLight" + z].onEnterFrame = function () {
with (this) {
if (_alpha < 100) {
_alpha = _alpha + ls;
} else {
onEnterFrame = null;
}
}
};
i++;
}
}
}
function placeTiles() {
tiles._alpha = 70;
i = 0;
while (i < floor.getNextHighestDepth()) {
removeMovieClip(floor["floorLight" + i]);
i++;
}
tiles.filters = [new flash.filters.GlowFilter(bgColor, 1, 30, 30, 1, 2, false, false)];
floor.filters = [new flash.filters.BlurFilter(4, 4, 1)];
effects.filters = [new flash.filters.GlowFilter(bgColor, 1, 10, 10, 10, 2, false, false)];
new Color(floor).setRGB(bgColor);
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if (!game[i][j].wall) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("tile", "tile" + z, z);
tiles["tile" + z]._x = 60 + (i * 40);
tiles["tile" + z]._y = 60 + (j * 40);
z = floor.getNextHighestDepth();
floor.attachMovie("floorLight", "floorLight" + z, z);
floor["floorLight" + z]._x = 60 + (i * 40);
floor["floorLight" + z]._y = 60 + (j * 40);
if (!rotatingTiles) {
floor["floorLight" + z].stop();
} else {
floor["floorLight" + z].onEnterFrame = function () {
this._rotation = this._rotation + 2;
};
}
}
j++;
}
i++;
}
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if ((((game[i][j].wall == false) && (game[i + 1][j].wall == false)) && (game[i][j - 1].wall)) && (game[i + 1][j - 1].wall)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 80 + (i * 40);
tiles["miniTile2" + z]._y = 40 + (j * 40);
tiles["miniTile2" + z]._rotation = 180;
}
if ((((game[i][j].wall == false) && (game[i + 1][j].wall == false)) && (game[i][j + 1].wall)) && (game[i + 1][j + 1].wall)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 80 + (i * 40);
tiles["miniTile2" + z]._y = 80 + (j * 40);
}
if ((((game[i][j].wall == false) && (game[i][j + 1].wall == false)) && (game[i - 1][j].wall)) && (game[i - 1][j + 1].wall)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 40 + (i * 40);
tiles["miniTile2" + z]._y = 80 + (j * 40);
tiles["miniTile2" + z]._rotation = 90;
}
if ((((game[i][j].wall == false) && (game[i][j + 1].wall == false)) && (game[i + 1][j].wall)) && (game[i + 1][j + 1].wall)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 80 + (i * 40);
tiles["miniTile2" + z]._y = 80 + (j * 40);
tiles["miniTile2" + z]._rotation = 270;
}
if ((((game[i][j].wall == false) && (game[i + 1][j].wall == false)) && (game[i][j + 1].wall == false)) && (game[i + 1][j + 1].wall == true)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile1", "miniTile1" + z, z);
tiles["miniTile1" + z]._x = 80 + (i * 40);
tiles["miniTile1" + z]._y = 80 + (j * 40);
}
if ((((game[i][j].wall == true) && (game[i + 1][j].wall == false)) && (game[i][j + 1].wall == false)) && (game[i + 1][j + 1].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile1", "miniTile1" + z, z);
tiles["miniTile1" + z]._x = 80 + (i * 40);
tiles["miniTile1" + z]._y = 80 + (j * 40);
}
if ((((game[i][j].wall == false) && (game[i + 1][j].wall == false)) && (game[i][j + 1].wall == true)) && (game[i + 1][j + 1].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile1", "miniTile1" + z, z);
tiles["miniTile1" + z]._x = 80 + (i * 40);
tiles["miniTile1" + z]._y = 80 + (j * 40);
}
if ((((game[i][j].wall == false) && (game[i + 1][j].wall == true)) && (game[i][j + 1].wall == false)) && (game[i + 1][j + 1].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile1", "miniTile1" + z, z);
tiles["miniTile1" + z]._x = 80 + (i * 40);
tiles["miniTile1" + z]._y = 80 + (j * 40);
}
if ((((game[i][j].wall == false) && (game[i + 1][j].wall == false)) && (game[i][j + 1].wall == false)) && (game[i + 1][j + 1].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile1", "miniTile1" + z, z);
tiles["miniTile1" + z]._x = 80 + (i * 40);
tiles["miniTile1" + z]._y = 80 + (j * 40);
}
if (((i == 0) && (game[i][j].wall == false)) && (game[i][j + 1].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 40 + (i * 40);
tiles["miniTile2" + z]._y = 80 + (j * 40);
tiles["miniTile2" + z]._rotation = 90;
}
if (((i == (game.length - 1)) && (game[i][j].wall == false)) && (game[i][j + 1].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 80 + (i * 40);
tiles["miniTile2" + z]._y = 80 + (j * 40);
tiles["miniTile2" + z]._rotation = 270;
}
if (((j == 0) && (game[i][j].wall == false)) && (game[i + 1][j].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 80 + (i * 40);
tiles["miniTile2" + z]._y = 40 + (j * 40);
tiles["miniTile2" + z]._rotation = 180;
}
if (((j == (game[i].length - 1)) && (game[i][j].wall == false)) && (game[i + 1][j].wall == false)) {
z = tiles.getNextHighestDepth();
tiles.attachMovie("miniTile2", "miniTile2" + z, z);
tiles["miniTile2" + z]._x = 80 + (i * 40);
tiles["miniTile2" + z]._y = 80 + (j * 40);
}
j++;
}
i++;
}
}
function addSpark(x, y, c) {
var _local3 = effects.getNextHighestDepth();
effects.createEmptyMovieClip((("sparking" + x) + "_") + y, _local3);
effects[(("sparking" + x) + "_") + y]._x = (x * 40) + 60;
effects[(("sparking" + x) + "_") + y]._y = (y * 40) + 60;
effects[(("sparking" + x) + "_") + y]._rotation = random(360);
sparksColor = new Color(effects[(("sparking" + x) + "_") + y]);
effects[(("sparking" + x) + "_") + y].attachMovie("spark", "spark", 0);
}
function removeSparks() {
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if (effects[(("sparking" + i) + "_") + j]) {
if (personages[(("receiver" + i) + "_") + j].sprite._currentframe != 2) {
removeMovieClip(effects[(("sparking" + i) + "_") + j]);
}
}
j++;
}
i++;
}
}
function startTracing() {
raysBlendMode = "add";
raysBlendMode2 = "add";
colors = new Array("0xFFFFFF", "0x0077FF", "0xFF0000", "0xFFFF00");
rays.blendMode = raysBlendMode;
rays.filters = [new flash.filters.BlurFilter(15, 15, 2)];
var _local2 = new Array();
var _local7 = new Array();
i = 0;
while (i < rays.getNextHighestDepth()) {
if (rays["ray" + i]) {
removeMovieClip(rays["ray" + i]);
}
i++;
}
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
game[i][j].hlight = false;
game[i][j].vlight = false;
if (game[i][j].objtype == "transmitter") {
trace((((("transmitter found x=" + i) + ", y=") + j) + ", d=") + game[i][j].direction);
_local2.push({x:i, y:j, d:game[i][j].direction, c:game[i][j].color});
}
if (game[i][j].objtype == "receiver") {
personages[(("receiver" + i) + "_") + j].sprite.gotoAndStop(1);
personages[(("receiver" + i) + "_") + j].receivedLights = new Array();
}
if (game[i][j].objtype == "prism") {
personages[(("prism" + i) + "_") + j].receivedLights = new Array(4);
}
if (game[i][j].objtype == "splitter") {
personages[(("splitter" + i) + "_") + j].gotoAndStop(1);
}
if (game[i][j].objtype == "cycloid") {
personages[(("cycloid" + i) + "_") + j].emitting = false;
}
j++;
}
i++;
}
trace(_local2.length + " ray(s) total");
while (_local2.length) {
foton = _local2.shift();
dx = (1 - foton.d) * (1 - (foton.d % 2));
dy = (2 - foton.d) * (foton.d % 2);
nextX = foton.x + dx;
nextY = foton.y + dy;
if ((((((((foton.x + dx) > -1) && ((foton.y + dy) > -1)) && (((foton.x * dx) < 9) && ((foton.y * dy) < 9))) && (!game[nextX][nextY].wall)) && ((!game[nextX][nextY].objtype) || (game[nextX][nextY].objtype == "filter"))) && (!(game[nextX][nextY].hlight && (foton.d % 2)))) && (!(game[nextX][nextY].vlight && (!(foton.d % 2))))) {
trace(((((((((("lightin from " + foton.x) + ":") + foton.y) + " to ") + nextX) + ":") + nextY) + " (") + colors[foton.c]) + " color)");
if ((game[nextX][nextY].objtype == "filter") && (!foton.c)) {
_local2.push({x:nextX, y:nextY, d:foton.d, c:game[nextX][nextY].color});
} else if (game[nextX][nextY].objtype != "filter") {
_local2.push({x:nextX, y:nextY, d:foton.d, c:foton.c});
}
if (foton.d % 2) {
game[nextX][nextY].hlight = true;
} else {
game[nextX][nextY].vlight = true;
}
z = rays.getNextHighestDepth();
rays.createEmptyMovieClip("ray" + z, z);
rays["ray" + z].blendMode = raysBlendMode2;
rays["ray" + z].lineStyle(32, colors[foton.c]);
rays["ray" + z].moveTo((foton.x * 40) + 60, (foton.y * 40) + 60);
rays["ray" + z].lineTo((nextX * 40) + 60, (nextY * 40) + 60);
} else {
if (((game[nextX][nextY].wall || (!(((foton.x * dx) < 9) && ((foton.y * dy) < 9)))) || (!((foton.x * dx) || (foton.y * dy)))) || (game[nextX][nextY].objtype == "mirror")) {
z = rays.getNextHighestDepth();
rays.createEmptyMovieClip("ray" + z, z);
rays["ray" + z].lineStyle(32, colors[foton.c]);
rays["ray" + z].moveTo((foton.x * 40) + 60, (foton.y * 40) + 60);
rays["ray" + z].lineTo(((foton.x * 40) + (15 * dx)) + 60, ((foton.y * 40) + (15 * dy)) + 60);
}
if ((game[nextX][nextY].hlight && (foton.d % 2)) || (game[nextX][nextY].vlight && ((!foton.d) % 2))) {
z = rays.getNextHighestDepth();
rays.createEmptyMovieClip("ray" + z, z);
rays["ray" + z].lineStyle(32, colors[foton.c], 50);
rays["ray" + z].moveTo((foton.x * 40) + 60, (foton.y * 40) + 60);
rays["ray" + z].lineTo(((foton.x * 40) + (15 * dx)) + 60, ((foton.y * 40) + (15 * dy)) + 60);
}
if (game[nextX][nextY].objtype == "mirror") {
if (!game[nextX][nextY].direction) {
if (foton.d == 0) {
_local2.push({x:nextX, y:nextY, d:3, c:foton.c});
}
if (foton.d == 1) {
_local2.push({x:nextX, y:nextY, d:2, c:foton.c});
}
if (foton.d == 2) {
_local2.push({x:nextX, y:nextY, d:1, c:foton.c});
}
if (foton.d == 3) {
_local2.push({x:nextX, y:nextY, d:0, c:foton.c});
}
}
if (game[nextX][nextY].direction == 1) {
if (foton.d == 0) {
_local2.push({x:nextX, y:nextY, d:1, c:foton.c});
}
if (foton.d == 1) {
_local2.push({x:nextX, y:nextY, d:0, c:foton.c});
}
if (foton.d == 2) {
_local2.push({x:nextX, y:nextY, d:3, c:foton.c});
}
if (foton.d == 3) {
_local2.push({x:nextX, y:nextY, d:2, c:foton.c});
}
}
}
if (game[nextX][nextY].objtype == "splitter") {
z = rays.getNextHighestDepth();
rays.createEmptyMovieClip("ray" + z, z);
rays["ray" + z].lineStyle(32, colors[foton.c]);
rays["ray" + z].moveTo((foton.x * 40) + 60, (foton.y * 40) + 60);
rays["ray" + z].lineTo(((foton.x * 40) + (15 * dx)) + 60, ((foton.y * 40) + (15 * dy)) + 60);
if (!game[nextX][nextY].direction) {
if (foton.d == 2) {
personages[(("splitter" + nextX) + "_") + nextY].gotoAndStop(2);
_local2.push({x:nextX, y:nextY, d:3, c:foton.c});
_local2.push({x:nextX, y:nextY, d:1, c:foton.c});
}
}
if (game[nextX][nextY].direction == 1) {
if (foton.d == 3) {
personages[(("splitter" + nextX) + "_") + nextY].gotoAndStop(2);
_local2.push({x:nextX, y:nextY, d:0, c:foton.c});
_local2.push({x:nextX, y:nextY, d:2, c:foton.c});
}
}
if (game[nextX][nextY].direction == 2) {
if (foton.d == 0) {
personages[(("splitter" + nextX) + "_") + nextY].gotoAndStop(2);
_local2.push({x:nextX, y:nextY, d:3, c:foton.c});
_local2.push({x:nextX, y:nextY, d:1, c:foton.c});
}
}
if (game[nextX][nextY].direction == 3) {
if (foton.d == 1) {
personages[(("splitter" + nextX) + "_") + nextY].gotoAndStop(2);
_local2.push({x:nextX, y:nextY, d:0, c:foton.c});
_local2.push({x:nextX, y:nextY, d:2, c:foton.c});
}
}
}
if (game[nextX][nextY].objtype == "prism") {
z = rays.getNextHighestDepth();
rays.createEmptyMovieClip("ray" + z, z);
rays["ray" + z].lineStyle(24, colors[foton.c]);
rays["ray" + z].moveTo((foton.x * 40) + 60, (foton.y * 40) + 60);
rays["ray" + z].lineTo(((foton.x * 40) + (40 * dx)) + 60, ((foton.y * 40) + (40 * dy)) + 60);
if (((game[nextX][nextY].direction == 0) && (foton.d == 2)) && (foton.c == 0)) {
_local2.push({x:nextX, y:nextY, d:1, c:1});
_local2.push({x:nextX, y:nextY, d:2, c:2});
_local2.push({x:nextX, y:nextY, d:3, c:3});
}
if (((game[nextX][nextY].direction == 1) && (foton.d == 3)) && (foton.c == 0)) {
_local2.push({x:nextX, y:nextY, d:0, c:3});
_local2.push({x:nextX, y:nextY, d:2, c:1});
_local2.push({x:nextX, y:nextY, d:3, c:2});
}
if (((game[nextX][nextY].direction == 2) && (foton.d == 0)) && (foton.c == 0)) {
_local2.push({x:nextX, y:nextY, d:0, c:2});
_local2.push({x:nextX, y:nextY, d:1, c:3});
_local2.push({x:nextX, y:nextY, d:3, c:1});
}
if (((game[nextX][nextY].direction == 3) && (foton.d == 1)) && (foton.c == 0)) {
_local2.push({x:nextX, y:nextY, d:0, c:1});
_local2.push({x:nextX, y:nextY, d:1, c:2});
_local2.push({x:nextX, y:nextY, d:2, c:3});
}
if (foton.c != 0) {
personages[(("prism" + nextX) + "_") + nextY].receivedLights[foton.d] = foton.c;
}
if ((personages[(("prism" + nextX) + "_") + nextY].receivedLights.toString() == "2,3,undefined,1") && (game[nextX][nextY].direction == 0)) {
_local2.push({x:nextX, y:nextY, d:0, c:0});
}
if ((personages[(("prism" + nextX) + "_") + nextY].receivedLights.toString() == "1,2,3,undefined") && (game[nextX][nextY].direction == 1)) {
_local2.push({x:nextX, y:nextY, d:1, c:0});
}
if ((personages[(("prism" + nextX) + "_") + nextY].receivedLights.toString() == "undefined,1,2,3") && (game[nextX][nextY].direction == 2)) {
_local2.push({x:nextX, y:nextY, d:2, c:0});
}
if ((personages[(("prism" + nextX) + "_") + nextY].receivedLights.toString() == "3,undefined,1,2") && (game[nextX][nextY].direction == 3)) {
_local2.push({x:nextX, y:nextY, d:3, c:0});
}
}
if (game[nextX][nextY].objtype == "receiver") {
z = rays.getNextHighestDepth();
rays.createEmptyMovieClip("ray" + z, z);
rays["ray" + z].lineStyle(24, colors[foton.c]);
rays["ray" + z].moveTo((foton.x * 40) + 60, (foton.y * 40) + 60);
rays["ray" + z].lineTo(((foton.x * 40) + (30 * dx)) + 60, ((foton.y * 40) + (30 * dy)) + 60);
rays["ray" + z].lineStyle(46, colors[foton.c]);
rays["ray" + z].lineTo(((foton.x * 40) + (45 * dx)) + 60, ((foton.y * 40) + (45 * dy)) + 60);
personages[(("receiver" + nextX) + "_") + nextY].receivedLights.push(foton.c);
happyBlowbo = true;
t = 0;
while (t < personages[(("receiver" + nextX) + "_") + nextY].receivedLights.length) {
if (personages[(("receiver" + nextX) + "_") + nextY].receivedLights[t] != game[nextX][nextY].color) {
happyBlowbo = false;
}
t++;
}
if (personages[(("receiver" + nextX) + "_") + nextY].receivedLights.length == 0) {
happyBlowbo = false;
}
if (happyBlowbo) {
if (smthwasdragged) {
s = new Sound();
s.attachSound("lightedglowbo");
if (!_root.so.data.soundMuted) {
s.start();
}
}
personages[(("receiver" + nextX) + "_") + nextY].sprite.gotoAndStop(2);
addSpark(nextX, nextY, game[nextX][nextY].color);
} else {
personages[(("receiver" + nextX) + "_") + nextY].sprite.gotoAndStop(3);
}
}
if (game[nextX][nextY].objtype == "cycloid") {
z = rays.getNextHighestDepth();
rays.createEmptyMovieClip("ray" + z, z);
rays["ray" + z].lineStyle(24, colors[foton.c]);
rays["ray" + z].moveTo((foton.x * 40) + 60, (foton.y * 40) + 60);
rays["ray" + z].lineTo(((foton.x * 40) + (30 * dx)) + 60, ((foton.y * 40) + (30 * dy)) + 60);
if (!personages[(("cycloid" + nextX) + "_") + nextY].emitting) {
if (game[nextX][nextY].direction == 0) {
if (foton.d != 2) {
personages[(("cycloid" + nextX) + "_") + nextY].emitting = true;
_local2.push({x:nextX, y:nextY, d:0, c:personages[(("cycloid" + nextX) + "_") + nextY]._currentframe});
}
}
}
if (!personages[(("cycloid" + nextX) + "_") + nextY].emitting) {
if (game[nextX][nextY].direction == 1) {
if (foton.d != 3) {
personages[(("cycloid" + nextX) + "_") + nextY].emitting = true;
_local2.push({x:nextX, y:nextY, d:1, c:personages[(("cycloid" + nextX) + "_") + nextY]._currentframe});
}
}
}
if (!personages[(("cycloid" + nextX) + "_") + nextY].emitting) {
if (game[nextX][nextY].direction == 2) {
if (foton.d != 0) {
personages[(("cycloid" + nextX) + "_") + nextY].emitting = true;
_local2.push({x:nextX, y:nextY, d:2, c:personages[(("cycloid" + nextX) + "_") + nextY]._currentframe});
}
}
}
if (!personages[(("cycloid" + nextX) + "_") + nextY].emitting) {
if (game[nextX][nextY].direction == 3) {
if (foton.d != 1) {
personages[(("cycloid" + nextX) + "_") + nextY].emitting = true;
_local2.push({x:nextX, y:nextY, d:3, c:personages[(("cycloid" + nextX) + "_") + nextY]._currentframe});
}
}
}
}
}
}
smthwasdragged = false;
}
function placeObjects() {
i = 0;
while (i < personages.getNextHighestDepth()) {
removeMovieClip(personages.getInstanceAtDepth(i));
i++;
}
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if (game[i][j].objtype) {
if (game[i][j].objtype == "cycloid") {
z = personages.getNextHighestDepth();
personages.attachMovie("cycloid", (("cycloid" + i) + "_") + j, z);
personages[(("cycloid" + i) + "_") + j]._x = 60 + (i * 40);
personages[(("cycloid" + i) + "_") + j]._y = 60 + (j * 40);
personages[(("cycloid" + i) + "_") + j]._rotation = 90 * game[i][j].direction;
personages[(("cycloid" + i) + "_") + j].gotoAndStop(game[i][j].color);
trace("CYCLOID FRAME#" + game[i][j].color);
}
if (game[i][j].objtype == "transmitter") {
z = personages.getNextHighestDepth();
personages.attachMovie("transmitter", (("transmitter" + i) + "_") + j, z);
personages[(("transmitter" + i) + "_") + j]._x = 60 + (i * 40);
personages[(("transmitter" + i) + "_") + j]._y = 60 + (j * 40);
personages[(("transmitter" + i) + "_") + j]._rotation = 90 * game[i][j].direction;
}
if (game[i][j].objtype == "receiver") {
z = personages.getNextHighestDepth();
personages.attachMovie("receiver", (("receiver" + i) + "_") + j, z);
personages[(("receiver" + i) + "_") + j]._x = 60 + (i * 40);
personages[(("receiver" + i) + "_") + j]._y = 60 + (j * 40);
personages[(("receiver" + i) + "_") + j].gotoAndStop(game[i][j].color + 1);
}
if (game[i][j].objtype == "mirror") {
z = personages.getNextHighestDepth();
personages.attachMovie("mirror", (("mirror" + i) + "_") + j, z);
personages[(("mirror" + i) + "_") + j]._x = 60 + (i * 40);
personages[(("mirror" + i) + "_") + j]._y = 60 + (j * 40);
personages[(("mirror" + i) + "_") + j]._rotation = 90 * game[i][j].direction;
}
if (game[i][j].objtype == "filter") {
z = personages.getNextHighestDepth();
personages.attachMovie("filter", (("filter" + i) + "_") + j, z);
personages[(("filter" + i) + "_") + j]._x = 60 + (i * 40);
personages[(("filter" + i) + "_") + j]._y = 60 + (j * 40);
personages[(("filter" + i) + "_") + j].gotoAndStop(game[i][j].color + 1);
}
if (game[i][j].objtype == "splitter") {
z = personages.getNextHighestDepth();
personages.attachMovie("splitter", (("splitter" + i) + "_") + j, z);
personages[(("splitter" + i) + "_") + j]._x = 60 + (i * 40);
personages[(("splitter" + i) + "_") + j]._y = 60 + (j * 40);
personages[(("splitter" + i) + "_") + j]._rotation = 90 * game[i][j].direction;
}
if (game[i][j].objtype == "prism") {
z = personages.getNextHighestDepth();
personages.attachMovie("prism", (("prism" + i) + "_") + j, z);
personages[(("prism" + i) + "_") + j]._x = 60 + (i * 40);
personages[(("prism" + i) + "_") + j]._y = 60 + (j * 40);
personages[(("prism" + i) + "_") + j]._rotation = 90 * game[i][j].direction;
}
}
j++;
}
i++;
}
}
function checkWin(mod) {
win = true;
if (levelPassed) {
win = false;
}
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if (personages[(("receiver" + i) + "_") + j]) {
if (personages[(("receiver" + i) + "_") + j].sprite._currentframe != 2) {
win = false;
}
}
j++;
}
i++;
}
if (mod && (win)) {
return(true);
}
if (mod && (!win)) {
return(false);
}
if (win && (!mod)) {
trace("You\"ve beat this level!");
levelSound = new Sound();
levelSound.attachSound("levelpassed" + (random(2) + 1));
levelSound2 = new Sound();
levelSound2.attachSound("nextlevel2");
if (!_root.so.data.soundMuted) {
levelSound.start();
levelSound2.start();
}
avatar.gotoAndStop(2);
draggin = undefined;
levelPassed = true;
youwin._visible = true;
youwin.gotoAndStop(1);
winSound = new Sound();
winSound.attachSound("happy" + (random(2) + 1));
if (!_root.so.data.soundMuted) {
winSound.start();
}
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if (personages[(("receiver" + i) + "_") + j]) {
z = effects.getNextHighestDepth();
effects.attachMovie("glow", "glow" + z, z);
effects["glow" + z]._x = 60 + (i * 40);
effects["glow" + z]._y = 60 + (j * 40);
}
j++;
}
i++;
}
}
}
function refreshCycloids() {
if ((((!lose) && (!levelPassed)) && (!(splashx._currentframe - 1))) && (!wholeGameWinned)) {
i = 0;
while (i < game.length) {
j = 0;
while (j < game[i].length) {
if (game[i][j].objtype == "cycloid") {
if (personages[(("cycloid" + i) + "_") + j]._currentframe != 3) {
personages[(("cycloid" + i) + "_") + j].nextFrame();
} else {
personages[(("cycloid" + i) + "_") + j].gotoAndStop(1);
}
}
j++;
}
i++;
}
startTracing();
removeSparks();
checkWin();
}
if (((playTime > 0) && (!win)) && (!gameMenu)) {
playTime--;
}
antenn.timer.time = playTime;
if (playMode == "timer") {
if (playTime < 10) {
if (!lose) {
worrySound = new Sound();
worrySound.attachSound("worried" + (random(2) + 1));
if (!_root.so.data.soundMuted) {
worrySound.start();
}
}
if (!_root.antenn.rg._visible) {
avatar.gotoAndStop(3);
_root.antenn.rg.t = 0;
_root.antenn.rg._visible = true;
}
} else {
_root.antenn.rg._visible = false;
}
}
if (((playTime < 1) && (!lose)) && (playMode == "timer")) {
helptool.hidehint();
avatar.gotoAndStop(4);
loseSound = new Sound();
loseSound.attachSound("angry" + (random(2) + 1));
if (!_root.so.data.soundMuted) {
loseSound.start();
}
game = winlevel;
i = 0;
while (i < effects.getNextHighestDepth()) {
removeMovieClip(effects["glow" + i]);
i++;
}
i = 0;
while (i < lights.getNextHighestDepth()) {
removeMovieClip(lights["light" + i]);
i++;
}
clearGlowLightFiled();
z = tiles.getNextHighestDepth();
i = 0;
while (i < z) {
removeMovieClip(tiles["tile" + i]);
removeMovieClip(tiles["miniTile1" + i]);
removeMovieClip(tiles["miniTile2" + i]);
i++;
}
placeObjects();
highLightField();
placeTiles();
startTracing();
removeSparks();
lose = true;
youLose._visible = true;
youLose.swapDepths(getNextHighestDepth());
youLose.tscore = 0;
youLose.score = (lev2 * 1000) + random(999);
g5link.swapDepths(getNextHighestDepth() + 1);
cursor2.swapDepths(getNextHighestDepth() + 2);
}
setTimeout(refreshCycloids, 1000);
}
function nextLevel() {
helptool.hidehint();
avatar.gotoAndStop(1);
hb._visible = true;
showAd();
if (playMode == "puzzle") {
_root.so.data[("level" + lev) + "passed"] = true;
_root.so.flush();
lev++;
_root.levelPassed = false;
_root.bgsound.stop();
_root.bgsound.attachSound("MUS1");
if (!_root.so.data.soundMuted) {
_root.bgsound.start(0, 1000);
}
_root.gotoAndStop(5);
_root.gameMenu = false;
removeMovieClip(_root.lights);
removeMovieClip(_root.tiles);
removeMovieClip(_root.floor);
removeMovieClip(_root.rays);
removeMovieClip(_root.effects);
removeMovieClip(_root.personages);
removeMovieClip(_root.cursor2);
removeMovieClip(_root.youwin);
gotoAndStop (5);
backButtonActive = true;
puzzleNextLevel = true;
} else {
if (!so.data.playedTimerMode) {
so.data.playedTimerMode = true;
so.flush();
}
lev2++;
}
i = 0;
while (i < effects.getNextHighestDepth()) {
removeMovieClip(effects["glow" + i]);
i++;
}
i = 0;
while (i < lights.getNextHighestDepth()) {
removeMovieClip(lights["light" + i]);
i++;
}
clearGlowLightFiled();
z = tiles.getNextHighestDepth();
i = 0;
while (i < z) {
removeMovieClip(tiles["tile" + i]);
removeMovieClip(tiles["miniTile1" + i]);
removeMovieClip(tiles["miniTile2" + i]);
i++;
}
if (lev < totalLevels) {
if (playMode == "puzzle") {
if (adTimer < 192) {
showAd();
}
antenn.currentlevel = lev + 1;
_root.levelPassed = false;
_root.bgsound.stop();
_root.bgsound.attachSound("MUS1");
if (!_root.so.data.soundMuted) {
_root.bgsound.start(0, 1000);
}
_root.gameMenu = false;
removeMovieClip(_root.lights);
removeMovieClip(_root.tiles);
removeMovieClip(_root.floor);
removeMovieClip(_root.rays);
removeMovieClip(_root.effects);
removeMovieClip(_root.personages);
removeMovieClip(_root.cursor2);
removeMovieClip(_root.youwin);
_root.gameMenu.puzzleNextLevel = true;
_root.gotoAndStop(5);
} else {
antenn.currentlevel = lev2 + 1;
trace("\u0413\u0415\u041D\u0415\u0420\u0418\u0420\u0423\u0415\u041C \u0423\u0420\u041E\u0412\u0415\u041D\u042C " + lev2);
if (lev2 < 5) {
playTime = playTime + ((7 - lev2) + Math.round(lev2 * 1.2));
} else {
playTime = playTime + Math.round(lev2 / 1.2);
}
if (showAd()) {
playTime = playTime + 10;
}
game = LevelGenerator.generateLevel(lev2);
while (!game) {
game = LevelGenerator.generateLevel(lev2);
}
}
youwin._visible = false;
placeObjects();
highLightField();
placeTiles();
startTracing();
removeSparks();
while ((checkWin("test") || (!LevelTester.testLevel())) && (playMode == "timer")) {
trace("\u0421\u0413\u0415\u041D\u0415\u0420\u0418\u0420\u041E\u0412\u0410\u041B\u0421\u042F \u0412\u042B\u0418\u0413\u0420\u042B\u0428\u041D\u042B\u0419 \u0423\u0420\u041E\u0412\u0415\u041D\u042C, \u041F\u0415\u0420\u0415\u0417\u0410\u041F\u0423\u0421\u041A");
game = undefined;
i = 0;
while (i < floor.getNextHighestDepth()) {
removeMovieClip(floor["floorLight" + i]);
i++;
}
i = 0;
while (i < tiles.getNextHighestDepth()) {
removeMovieClip(tiles["miniTile2" + i]);
removeMovieClip(tiles["miniTile1" + i]);
removeMovieClip(tiles["tile" + i]);
i++;
}
clearGlowLightFiled();
game = LevelGenerator.generateLevel(lev2);
clearGlowLightFiled();
placeObjects();
highLightField();
placeTiles();
startTracing();
removeSparks();
}
} else {
youwin._visible = false;
effects._visible = false;
game = new Array();
placeObjects();
highLightField();
placeTiles();
i = 0;
while (i < rays.getNextHighestDepth()) {
if (rays["ray" + i]) {
removeMovieClip(rays["ray" + i]);
}
i++;
}
trace("You win the game!");
wholeGameWinned = true;
winner._visible = wholeGameWinned;
}
}
function level0() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = "transmitter";
game[3][6].direction = 0;
game[3][6].color = 0;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = "receiver";
game[8][4].direction = 0;
game[8][4].color = 0;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level1() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = "transmitter";
game[1][5].direction = 0;
game[1][5].color = 0;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = "receiver";
game[4][1].direction = 0;
game[4][1].color = 0;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = "mirror";
game[6][6].direction = 0;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level2() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = "receiver";
game[1][3].direction = 0;
game[1][3].color = 0;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = "transmitter";
game[4][6].direction = 3;
game[4][6].color = 0;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = "splitter";
game[6][4].direction = 1;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = "receiver";
game[8][3].direction = 0;
game[8][3].color = 0;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level3() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = "transmitter";
game[4][6].direction = 3;
game[4][6].color = 0;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = "receiver";
game[6][1].direction = 0;
game[6][1].color = 1;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = "filter";
game[6][4].direction = 0;
game[6][4].color = 1;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level4() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = "transmitter";
game[3][2].direction = 0;
game[3][2].color = 0;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = "receiver";
game[6][1].direction = 0;
game[6][1].color = 1;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = "prism";
game[6][4].direction = 2;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = "receiver";
game[6][7].direction = 0;
game[6][7].color = 3;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = "receiver";
game[8][4].direction = 0;
game[8][4].color = 2;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level5() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = "transmitter";
game[3][5].direction = 0;
game[3][5].color = 0;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = true;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = "cycloid";
game[5][7].direction = 3;
game[5][7].color = 3;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = "receiver";
game[6][2].direction = 0;
game[6][2].color = 1;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level6() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = "transmitter";
game[2][4].direction = 0;
game[2][4].color = 0;
game[2][5].wall = false;
game[2][5].objtype = "transmitter";
game[2][5].direction = 0;
game[2][5].color = 0;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = "cycloid";
game[4][3].direction = 3;
game[4][3].color = 2;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = "cycloid";
game[4][6].direction = 1;
game[4][6].color = 3;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = true;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = "receiver";
game[6][7].direction = 0;
game[6][7].color = 3;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = "receiver";
game[7][2].direction = 0;
game[7][2].color = 2;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level7() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = "splitter";
game[2][4].direction = 2;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = "transmitter";
game[3][6].direction = 0;
game[3][6].color = 0;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = true;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = true;
game[5][2].objtype = null;
game[5][3].wall = true;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = true;
game[5][5].objtype = null;
game[5][6].wall = true;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = false;
game[7][0].objtype = "receiver";
game[7][0].direction = 0;
game[7][0].color = 0;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = false;
game[7][9].objtype = "receiver";
game[7][9].direction = 0;
game[7][9].color = 1;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = "filter";
game[8][3].direction = 0;
game[8][3].color = 1;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level8() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = "cycloid";
game[3][6].direction = 2;
game[3][6].color = 2;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = "receiver";
game[4][1].direction = 0;
game[4][1].color = 2;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = "mirror";
game[7][3].direction = 1;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = "transmitter";
game[7][7].direction = 3;
game[7][7].color = 0;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level9() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = "filter";
game[2][3].direction = 0;
game[2][3].color = 1;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = "receiver";
game[2][8].direction = 0;
game[2][8].color = 1;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = "mirror";
game[3][4].direction = 0;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = "transmitter";
game[4][2].direction = 0;
game[4][2].color = 0;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = "splitter";
game[5][6].direction = 2;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = true;
game[7][3].objtype = null;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = "receiver";
game[8][2].direction = 0;
game[8][2].color = 1;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level10() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = "receiver";
game[1][5].direction = 0;
game[1][5].color = 2;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = "mirror";
game[2][4].direction = 1;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = "mirror";
game[2][6].direction = 1;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = true;
game[3][6].objtype = null;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = true;
game[4][3].objtype = null;
game[4][4].wall = true;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = true;
game[5][2].objtype = null;
game[5][3].wall = true;
game[5][3].objtype = null;
game[5][4].wall = true;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = true;
game[6][3].objtype = null;
game[6][4].wall = true;
game[6][4].objtype = null;
game[6][5].wall = true;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = "filter";
game[6][6].direction = 0;
game[6][6].color = 2;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = "mirror";
game[6][8].direction = 0;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = "transmitter";
game[7][2].direction = 1;
game[7][2].color = 0;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = false;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = null;
game[9][4].wall = false;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level11() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = "receiver";
game[1][8].direction = 0;
game[1][8].color = 3;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = true;
game[2][5].objtype = null;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = true;
game[3][6].objtype = null;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = "splitter";
game[4][5].direction = 2;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = "receiver";
game[5][1].direction = 0;
game[5][1].color = 0;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = "transmitter";
game[5][4].direction = 0;
game[5][4].color = 0;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = false;
game[5][9].objtype = "receiver";
game[5][9].direction = 0;
game[5][9].color = 2;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = "prism";
game[6][3].direction = 3;
game[6][3].color = 1;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = false;
game[9][8].objtype = "receiver";
game[9][8].direction = 0;
game[9][8].color = 1;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level12() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = "cycloid";
game[1][6].direction = 0;
game[1][6].color = 1;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = true;
game[2][4].objtype = null;
game[2][5].wall = true;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = true;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = "transmitter";
game[3][6].direction = 0;
game[3][6].color = 0;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = true;
game[4][3].objtype = null;
game[4][4].wall = true;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = true;
game[5][2].objtype = null;
game[5][3].wall = true;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = "mirror";
game[6][3].direction = 0;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = true;
game[7][3].objtype = null;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = false;
game[9][2].objtype = "receiver";
game[9][2].direction = 0;
game[9][2].color = 1;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level13() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = false;
game[0][3].objtype = "receiver";
game[0][3].direction = 0;
game[0][3].color = 0;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = true;
game[2][4].objtype = null;
game[2][5].wall = true;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = "transmitter";
game[2][8].direction = 3;
game[2][8].color = 0;
game[2][9].wall = false;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = "filter";
game[3][5].direction = 0;
game[3][5].color = 1;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = false;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = "splitter";
game[4][3].direction = 2;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = true;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = false;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = true;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = "splitter";
game[6][4].direction = 1;
game[6][5].wall = true;
game[6][5].objtype = null;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = "receiver";
game[8][1].direction = 0;
game[8][1].color = 1;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = "receiver";
game[8][8].direction = 0;
game[8][8].color = 1;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level14() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = false;
game[1][9].objtype = "receiver";
game[1][9].direction = 0;
game[1][9].color = 2;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = "splitter";
game[2][2].direction = 2;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = "transmitter";
game[2][6].direction = 3;
game[2][6].color = 0;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = false;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = false;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = true;
game[4][3].objtype = null;
game[4][4].wall = true;
game[4][4].objtype = null;
game[4][5].wall = true;
game[4][5].objtype = null;
game[4][6].wall = true;
game[4][6].objtype = null;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = false;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = true;
game[5][3].objtype = null;
game[5][4].wall = true;
game[5][4].objtype = null;
game[5][5].wall = true;
game[5][5].objtype = null;
game[5][6].wall = true;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = false;
game[5][9].objtype = "mirror";
game[5][9].direction = 0;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = true;
game[6][3].objtype = null;
game[6][4].wall = true;
game[6][4].objtype = null;
game[6][5].wall = true;
game[6][5].objtype = null;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = "cycloid";
game[7][3].direction = 0;
game[7][3].color = 2;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = false;
game[7][9].objtype = null;
game[8][0].wall = false;
game[8][0].objtype = "receiver";
game[8][0].direction = 0;
game[8][0].color = 2;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = false;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level15() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = false;
game[0][9].objtype = "receiver";
game[0][9].direction = 0;
game[0][9].color = 3;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = false;
game[1][9].objtype = null;
game[2][0].wall = false;
game[2][0].objtype = "receiver";
game[2][0].direction = 0;
game[2][0].color = 0;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = "mirror";
game[2][5].direction = 1;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = false;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = true;
game[3][5].objtype = null;
game[3][6].wall = true;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = "prism";
game[3][7].direction = 3;
game[3][7].color = 1;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = false;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = "transmitter";
game[4][4].direction = 1;
game[4][4].color = 0;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = false;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = true;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = "splitter";
game[5][5].direction = 2;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = false;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = true;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = true;
game[6][5].objtype = null;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = null;
game[7][0].wall = false;
game[7][0].objtype = "receiver";
game[7][0].direction = 0;
game[7][0].color = 0;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = "splitter";
game[7][4].direction = 3;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = false;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = false;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = false;
game[9][9].objtype = "receiver";
game[9][9].direction = 0;
game[9][9].color = 1;
}
function level16() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = false;
game[0][4].objtype = null;
game[0][5].wall = false;
game[0][5].objtype = "prism";
game[0][5].direction = 1;
game[0][5].color = 1;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = "cycloid";
game[1][4].direction = 0;
game[1][4].color = 3;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = "receiver";
game[2][2].direction = 0;
game[2][2].color = 1;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = "splitter";
game[2][5].direction = 2;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = "receiver";
game[2][7].direction = 0;
game[2][7].color = 3;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = true;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = true;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = "prism";
game[4][4].direction = 3;
game[4][4].color = 1;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = true;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = false;
game[5][0].objtype = "receiver";
game[5][0].direction = 0;
game[5][0].color = 2;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = false;
game[5][9].objtype = "receiver";
game[5][9].direction = 0;
game[5][9].color = 2;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = true;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = "transmitter";
game[6][4].direction = 0;
game[6][4].color = 0;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = true;
game[7][3].objtype = null;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = "receiver";
game[8][2].direction = 0;
game[8][2].color = 1;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = "receiver";
game[8][7].direction = 0;
game[8][7].color = 1;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level17() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = false;
game[0][1].objtype = "receiver";
game[0][1].direction = 0;
game[0][1].color = 1;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = false;
game[2][0].objtype = "receiver";
game[2][0].direction = 0;
game[2][0].color = 0;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = "mirror";
game[2][6].direction = 1;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = "filter";
game[3][3].direction = 0;
game[3][3].color = 1;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = "splitter";
game[4][1].direction = 1;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = true;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = true;
game[4][6].objtype = null;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = "transmitter";
game[5][3].direction = 1;
game[5][3].color = 0;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = true;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = "splitter";
game[6][5].direction = 3;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = "transmitter";
game[7][3].direction = 3;
game[7][3].color = 0;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = false;
game[8][0].objtype = "receiver";
game[8][0].direction = 0;
game[8][0].color = 0;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = "mirror";
game[8][6].direction = 0;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = false;
game[9][1].objtype = "receiver";
game[9][1].direction = 0;
game[9][1].color = 1;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level18() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = false;
game[0][8].objtype = "receiver";
game[0][8].direction = 0;
game[0][8].color = 2;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = "transmitter";
game[1][2].direction = 0;
game[1][2].color = 0;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = "transmitter";
game[2][1].direction = 1;
game[2][1].color = 0;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = "transmitter";
game[2][3].direction = 0;
game[2][3].color = 0;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = "transmitter";
game[3][2].direction = 1;
game[3][2].color = 0;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = "mirror";
game[3][5].direction = 0;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = "filter";
game[4][4].direction = 0;
game[4][4].color = 2;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = "mirror";
game[5][3].direction = 0;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = false;
game[7][9].objtype = "receiver";
game[7][9].direction = 0;
game[7][9].color = 0;
game[8][0].wall = false;
game[8][0].objtype = "receiver";
game[8][0].direction = 0;
game[8][0].color = 2;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = false;
game[9][7].objtype = "receiver";
game[9][7].direction = 0;
game[9][7].color = 0;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level19() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = false;
game[0][6].objtype = "receiver";
game[0][6].direction = 0;
game[0][6].color = 2;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = "prism";
game[1][3].direction = 0;
game[1][3].color = 1;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = false;
game[2][0].objtype = "receiver";
game[2][0].direction = 0;
game[2][0].color = 3;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = "mirror";
game[2][6].direction = 0;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = false;
game[2][9].objtype = "receiver";
game[2][9].direction = 0;
game[2][9].color = 1;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = "splitter";
game[4][7].direction = 3;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = "transmitter";
game[5][3].direction = 1;
game[5][3].color = 0;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = true;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = false;
game[6][0].objtype = "receiver";
game[6][0].direction = 0;
game[6][0].color = 1;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = "receiver";
game[6][9].direction = 0;
game[6][9].color = 3;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = "mirror";
game[7][3].direction = 0;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = "prism";
game[7][6].direction = 2;
game[7][6].color = 1;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = "receiver";
game[9][3].direction = 0;
game[9][3].color = 2;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level20() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = "receiver";
game[1][7].direction = 0;
game[1][7].color = 0;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = "transmitter";
game[2][2].direction = 0;
game[2][2].color = 0;
game[2][3].wall = false;
game[2][3].objtype = "mirror";
game[2][3].direction = 1;
game[2][4].wall = true;
game[2][4].objtype = null;
game[2][5].wall = true;
game[2][5].objtype = null;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = false;
game[3][0].objtype = "receiver";
game[3][0].direction = 0;
game[3][0].color = 0;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = "splitter";
game[3][4].direction = 3;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = true;
game[4][5].objtype = null;
game[4][6].wall = true;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = "mirror";
game[6][2].direction = 0;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = true;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = "splitter";
game[6][5].direction = 1;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = true;
game[8][6].objtype = null;
game[8][7].wall = true;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = "receiver";
game[9][3].direction = 0;
game[9][3].color = 0;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = false;
game[9][5].objtype = null;
game[9][6].wall = false;
game[9][6].objtype = null;
game[9][7].wall = false;
game[9][7].objtype = null;
game[9][8].wall = false;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level21() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = false;
game[0][7].objtype = "receiver";
game[0][7].direction = 0;
game[0][7].color = 3;
game[0][8].wall = false;
game[0][8].objtype = "receiver";
game[0][8].direction = 0;
game[0][8].color = 2;
game[0][9].wall = false;
game[0][9].objtype = "receiver";
game[0][9].direction = 0;
game[0][9].color = 1;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = "filter";
game[1][1].direction = 0;
game[1][1].color = 3;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = "transmitter";
game[1][3].direction = 0;
game[1][3].color = 0;
game[1][4].wall = false;
game[1][4].objtype = "transmitter";
game[1][4].direction = 0;
game[1][4].color = 0;
game[1][5].wall = false;
game[1][5].objtype = "transmitter";
game[1][5].direction = 0;
game[1][5].color = 0;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = null;
game[1][9].wall = false;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = "filter";
game[2][2].direction = 0;
game[2][2].color = 2;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = false;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = "transmitter";
game[3][1].direction = 1;
game[3][1].color = 0;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = "filter";
game[3][3].direction = 0;
game[3][3].color = 1;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = false;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = "transmitter";
game[4][1].direction = 1;
game[4][1].color = 0;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = false;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = "transmitter";
game[5][1].direction = 1;
game[5][1].color = 0;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = false;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = "mirror";
game[6][9].direction = 0;
game[7][0].wall = false;
game[7][0].objtype = "receiver";
game[7][0].direction = 0;
game[7][0].color = 3;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = "mirror";
game[7][8].direction = 0;
game[7][9].wall = false;
game[7][9].objtype = "mirror";
game[7][9].direction = 0;
game[8][0].wall = false;
game[8][0].objtype = "receiver";
game[8][0].direction = 0;
game[8][0].color = 2;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = "mirror";
game[8][7].direction = 0;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = false;
game[8][9].objtype = null;
game[9][0].wall = false;
game[9][0].objtype = "receiver";
game[9][0].direction = 0;
game[9][0].color = 1;
game[9][1].wall = false;
game[9][1].objtype = null;
game[9][2].wall = false;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = null;
game[9][4].wall = false;
game[9][4].objtype = null;
game[9][5].wall = false;
game[9][5].objtype = null;
game[9][6].wall = false;
game[9][6].objtype = "mirror";
game[9][6].direction = 0;
game[9][7].wall = false;
game[9][7].objtype = "mirror";
game[9][7].direction = 0;
game[9][8].wall = false;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level22() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = false;
game[0][6].objtype = "receiver";
game[0][6].direction = 0;
game[0][6].color = 0;
game[0][7].wall = false;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = false;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = null;
game[1][9].wall = false;
game[1][9].objtype = "receiver";
game[1][9].direction = 0;
game[1][9].color = 3;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = true;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = "transmitter";
game[3][4].direction = 1;
game[3][4].color = 0;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = true;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = true;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = "splitter";
game[4][6].direction = 3;
game[4][7].wall = true;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = "splitter";
game[5][4].direction = 2;
game[5][5].wall = false;
game[5][5].objtype = "filter";
game[5][5].direction = 0;
game[5][5].color = 3;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = true;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = false;
game[6][0].objtype = "receiver";
game[6][0].direction = 0;
game[6][0].color = 3;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = "splitter";
game[6][6].direction = 3;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = true;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = "cycloid";
game[7][3].direction = 3;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = "mirror";
game[7][6].direction = 0;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = true;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = false;
game[9][5].objtype = null;
game[9][6].wall = false;
game[9][6].objtype = "receiver";
game[9][6].direction = 0;
game[9][6].color = 0;
game[9][7].wall = false;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level23() {
game[0][0].wall = false;
game[0][0].objtype = "receiver";
game[0][0].direction = 0;
game[0][0].color = 2;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = false;
game[0][2].objtype = "receiver";
game[0][2].direction = 0;
game[0][2].color = 2;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = false;
game[0][7].objtype = "receiver";
game[0][7].direction = 0;
game[0][7].color = 2;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = false;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = false;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = true;
game[2][4].objtype = null;
game[2][5].wall = true;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = false;
game[3][0].objtype = "mirror";
game[3][0].direction = 1;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = "filter";
game[3][5].direction = 0;
game[3][5].color = 2;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = "splitter";
game[3][8].direction = 2;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = false;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = true;
game[4][4].objtype = null;
game[4][5].wall = true;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = false;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = "splitter";
game[5][2].direction = 0;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = true;
game[5][4].objtype = null;
game[5][5].wall = true;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = false;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = true;
game[6][4].objtype = null;
game[6][5].wall = true;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = "splitter";
game[6][6].direction = 3;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = false;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = "splitter";
game[8][1].direction = 1;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = false;
game[8][9].objtype = "receiver";
game[8][9].direction = 0;
game[8][9].color = 2;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = false;
game[9][1].objtype = null;
game[9][2].wall = false;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = null;
game[9][4].wall = false;
game[9][4].objtype = null;
game[9][5].wall = false;
game[9][5].objtype = "transmitter";
game[9][5].direction = 2;
game[9][5].color = 0;
game[9][6].wall = false;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = false;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level24() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = false;
game[0][1].objtype = "receiver";
game[0][1].direction = 0;
game[0][1].color = 0;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = "prism";
game[1][4].direction = 2;
game[1][4].color = 1;
game[1][5].wall = false;
game[1][5].objtype = "splitter";
game[1][5].direction = 1;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = "prism";
game[1][8].direction = 2;
game[1][8].color = 1;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = "mirror";
game[2][2].direction = 1;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = "splitter";
game[3][1].direction = 1;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = "splitter";
game[3][7].direction = 1;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = false;
game[4][0].objtype = "receiver";
game[4][0].direction = 0;
game[4][0].color = 1;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = "prism";
game[4][2].direction = 2;
game[4][2].color = 1;
game[4][3].wall = false;
game[4][3].objtype = "mirror";
game[4][3].direction = 1;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = "prism";
game[4][6].direction = 2;
game[4][6].color = 1;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = false;
game[5][0].objtype = "receiver";
game[5][0].direction = 0;
game[5][0].color = 1;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = false;
game[6][0].objtype = "receiver";
game[6][0].direction = 0;
game[6][0].color = 1;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = "mirror";
game[6][4].direction = 1;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = "receiver";
game[6][9].direction = 0;
game[6][9].color = 3;
game[7][0].wall = false;
game[7][0].objtype = "receiver";
game[7][0].direction = 0;
game[7][0].color = 1;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = "splitter";
game[7][4].direction = 1;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = false;
game[7][9].objtype = "receiver";
game[7][9].direction = 0;
game[7][9].color = 3;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = "transmitter";
game[8][3].direction = 3;
game[8][3].color = 0;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = false;
game[9][1].objtype = "receiver";
game[9][1].direction = 0;
game[9][1].color = 2;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = "receiver";
game[9][3].direction = 0;
game[9][3].color = 2;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = false;
game[9][5].objtype = "receiver";
game[9][5].direction = 0;
game[9][5].color = 2;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = false;
game[9][7].objtype = "receiver";
game[9][7].direction = 0;
game[9][7].color = 2;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level25() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = "cycloid";
game[1][1].direction = 0;
game[1][1].color = 3;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = true;
game[2][3].objtype = null;
game[2][4].wall = true;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = "splitter";
game[2][5].direction = 0;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = true;
game[3][5].objtype = null;
game[3][6].wall = true;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = "mirror";
game[3][8].direction = 0;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = "cycloid";
game[4][3].direction = 0;
game[4][3].color = 2;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = true;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = "transmitter";
game[5][7].direction = 2;
game[5][7].color = 0;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = "mirror";
game[6][2].direction = 1;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = "receiver";
game[6][9].direction = 0;
game[6][9].color = 2;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = true;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = true;
game[7][3].objtype = null;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = false;
game[8][0].objtype = "receiver";
game[8][0].direction = 0;
game[8][0].color = 3;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level26() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = true;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = "receiver";
game[1][5].direction = 0;
game[1][5].color = 1;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = "splitter";
game[1][8].direction = 3;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = false;
game[2][0].objtype = "receiver";
game[2][0].direction = 0;
game[2][0].color = 2;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = "cycloid";
game[2][7].direction = 0;
game[2][7].color = 2;
game[2][8].wall = false;
game[2][8].objtype = "splitter";
game[2][8].direction = 0;
game[2][9].wall = false;
game[2][9].objtype = "cycloid";
game[2][9].direction = 1;
game[2][9].color = 3;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = true;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = "transmitter";
game[3][5].direction = 0;
game[3][5].color = 0;
game[3][6].wall = true;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = "cycloid";
game[3][7].direction = 2;
game[3][7].color = 2;
game[3][8].wall = false;
game[3][8].objtype = "splitter";
game[3][8].direction = 1;
game[3][9].wall = false;
game[3][9].objtype = "cycloid";
game[3][9].direction = 3;
game[3][9].color = 1;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = true;
game[4][2].objtype = null;
game[4][3].wall = true;
game[4][3].objtype = null;
game[4][4].wall = true;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = true;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = "cycloid";
game[4][7].direction = 1;
game[4][7].color = 1;
game[4][8].wall = false;
game[4][8].objtype = "splitter";
game[4][8].direction = 2;
game[4][9].wall = false;
game[4][9].objtype = "filter";
game[4][9].direction = 0;
game[4][9].color = 1;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = true;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = "receiver";
game[5][3].direction = 0;
game[5][3].color = 1;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = "receiver";
game[5][6].direction = 0;
game[5][6].color = 2;
game[5][7].wall = true;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = "splitter";
game[5][8].direction = 2;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = true;
game[6][3].objtype = null;
game[6][4].wall = true;
game[6][4].objtype = null;
game[6][5].wall = true;
game[6][5].objtype = null;
game[6][6].wall = true;
game[6][6].objtype = null;
game[6][7].wall = true;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = true;
game[7][3].objtype = null;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = true;
game[7][6].objtype = null;
game[7][7].wall = true;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = false;
game[8][9].objtype = "receiver";
game[8][9].direction = 0;
game[8][9].color = 0;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = false;
game[9][1].objtype = "receiver";
game[9][1].direction = 0;
game[9][1].color = 1;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level27() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = false;
game[0][4].objtype = "receiver";
game[0][4].direction = 0;
game[0][4].color = 0;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = true;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = true;
game[1][5].objtype = null;
game[1][6].wall = true;
game[1][6].objtype = null;
game[1][7].wall = true;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = true;
game[2][1].objtype = null;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = true;
game[2][6].objtype = null;
game[2][7].wall = true;
game[2][7].objtype = null;
game[2][8].wall = true;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = true;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = true;
game[3][5].objtype = null;
game[3][6].wall = true;
game[3][6].objtype = null;
game[3][7].wall = true;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = "cycloid";
game[4][7].direction = 1;
game[4][7].color = 1;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = false;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = "transmitter";
game[5][1].direction = 0;
game[5][1].color = 0;
game[5][2].wall = false;
game[5][2].objtype = "cycloid";
game[5][2].direction = 3;
game[5][2].color = 3;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = "transmitter";
game[5][8].direction = 0;
game[5][8].color = 0;
game[5][9].wall = false;
game[5][9].objtype = null;
game[6][0].wall = false;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = "transmitter";
game[6][3].direction = 0;
game[6][3].color = 0;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = null;
game[7][0].wall = false;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = "prism";
game[7][6].direction = 2;
game[7][6].color = 1;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = false;
game[7][9].objtype = "splitter";
game[7][9].direction = 2;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = false;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = null;
game[9][4].wall = false;
game[9][4].objtype = null;
game[9][5].wall = false;
game[9][5].objtype = "cycloid";
game[9][5].direction = 2;
game[9][5].color = 2;
game[9][6].wall = false;
game[9][6].objtype = null;
game[9][7].wall = false;
game[9][7].objtype = null;
game[9][8].wall = false;
game[9][8].objtype = null;
game[9][9].wall = false;
game[9][9].objtype = "receiver";
game[9][9].direction = 0;
game[9][9].color = 0;
}
function level28() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = false;
game[0][4].objtype = "receiver";
game[0][4].direction = 3;
game[0][4].color = 0;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = false;
game[0][8].objtype = "receiver";
game[0][8].direction = 3;
game[0][8].color = 0;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = "mirror";
game[1][1].direction = 0;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = false;
game[1][8].objtype = null;
game[1][9].wall = false;
game[1][9].objtype = "receiver";
game[1][9].direction = 2;
game[1][9].color = 1;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = "prism";
game[2][1].direction = 1;
game[2][1].color = 1;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = "transmitter";
game[2][5].direction = 3;
game[2][5].color = 0;
game[2][6].wall = false;
game[2][6].objtype = "splitter";
game[2][6].direction = 0;
game[2][7].wall = false;
game[2][7].objtype = "splitter";
game[2][7].direction = 3;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = false;
game[2][9].objtype = "receiver";
game[2][9].direction = 2;
game[2][9].color = 0;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = true;
game[3][1].objtype = null;
game[3][2].wall = true;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = true;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = false;
game[3][9].objtype = "receiver";
game[3][9].direction = 2;
game[3][9].color = 0;
game[4][0].wall = false;
game[4][0].objtype = "receiver";
game[4][0].direction = 0;
game[4][0].color = 2;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = "splitter";
game[4][4].direction = 1;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = "mirror";
game[4][7].direction = 1;
game[4][8].wall = false;
game[4][8].objtype = "mirror";
game[4][8].direction = 1;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = false;
game[5][0].objtype = "receiver";
game[5][0].direction = 0;
game[5][0].color = 0;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = "splitter";
game[5][4].direction = 0;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = true;
game[6][1].objtype = null;
game[6][2].wall = true;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = "receiver";
game[6][9].direction = 2;
game[6][9].color = 0;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = "mirror";
game[7][1].direction = 1;
game[7][2].wall = true;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = true;
game[7][4].objtype = null;
game[7][5].wall = true;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = true;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = "mirror";
game[8][1].direction = 0;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = "splitter";
game[8][3].direction = 2;
game[8][4].wall = true;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = "splitter";
game[8][5].direction = 1;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = "splitter";
game[8][8].direction = 2;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = true;
game[9][4].objtype = null;
game[9][5].wall = true;
game[9][5].objtype = null;
game[9][6].wall = false;
game[9][6].objtype = "receiver";
game[9][6].direction = 1;
game[9][6].color = 3;
game[9][7].wall = false;
game[9][7].objtype = "receiver";
game[9][7].direction = 1;
game[9][7].color = 0;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level29() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = false;
game[0][3].objtype = "receiver";
game[0][3].direction = 3;
game[0][3].color = 3;
game[0][4].wall = true;
game[0][4].objtype = null;
game[0][5].wall = false;
game[0][5].objtype = "receiver";
game[0][5].direction = 3;
game[0][5].color = 3;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = true;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = "transmitter";
game[2][1].direction = 0;
game[2][1].color = 0;
game[2][2].wall = true;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = false;
game[2][9].objtype = "receiver";
game[2][9].direction = 2;
game[2][9].color = 3;
game[3][0].wall = false;
game[3][0].objtype = "receiver";
game[3][0].direction = 0;
game[3][0].color = 3;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = "splitter";
game[3][4].direction = 0;
game[3][5].wall = false;
game[3][5].objtype = "splitter";
game[3][5].direction = 3;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = true;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = "splitter";
game[4][4].direction = 2;
game[4][5].wall = false;
game[4][5].objtype = "splitter";
game[4][5].direction = 0;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = true;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = true;
game[5][0].objtype = null;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = false;
game[6][0].objtype = "receiver";
game[6][0].direction = 0;
game[6][0].color = 0;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = "prism";
game[6][2].direction = 3;
game[6][2].color = 1;
game[6][3].wall = false;
game[6][3].objtype = "splitter";
game[6][3].direction = 3;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = false;
game[6][9].objtype = "receiver";
game[6][9].direction = 2;
game[6][9].color = 2;
game[7][0].wall = false;
game[7][0].objtype = "receiver";
game[7][0].direction = 0;
game[7][0].color = 3;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = "mirror";
game[7][2].direction = 1;
game[7][3].wall = false;
game[7][3].objtype = "splitter";
game[7][3].direction = 2;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = "splitter";
game[7][7].direction = 2;
game[7][8].wall = false;
game[7][8].objtype = "splitter";
game[7][8].direction = 1;
game[7][9].wall = false;
game[7][9].objtype = "receiver";
game[7][9].direction = 2;
game[7][9].color = 1;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = true;
game[8][2].objtype = null;
game[8][3].wall = true;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = "splitter";
game[8][7].direction = 1;
game[8][8].wall = false;
game[8][8].objtype = "splitter";
game[8][8].direction = 2;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = false;
game[9][4].objtype = "receiver";
game[9][4].direction = 1;
game[9][4].color = 3;
game[9][5].wall = false;
game[9][5].objtype = "receiver";
game[9][5].direction = 1;
game[9][5].color = 3;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level30() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = true;
game[0][3].objtype = null;
game[0][4].wall = false;
game[0][4].objtype = "receiver";
game[0][4].direction = 3;
game[0][4].color = 3;
game[0][5].wall = false;
game[0][5].objtype = "receiver";
game[0][5].direction = 3;
game[0][5].color = 2;
game[0][6].wall = false;
game[0][6].objtype = "receiver";
game[0][6].direction = 3;
game[0][6].color = 3;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = true;
game[1][1].objtype = null;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = null;
game[1][5].wall = false;
game[1][5].objtype = null;
game[1][6].wall = false;
game[1][6].objtype = null;
game[1][7].wall = false;
game[1][7].objtype = null;
game[1][8].wall = true;
game[1][8].objtype = null;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = null;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = true;
game[3][0].objtype = null;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = "mirror";
game[3][3].direction = 1;
game[3][4].wall = false;
game[3][4].objtype = "splitter";
game[3][4].direction = 1;
game[3][5].wall = false;
game[3][5].objtype = "splitter";
game[3][5].direction = 3;
game[3][6].wall = false;
game[3][6].objtype = "mirror";
game[3][6].direction = 1;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = null;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = true;
game[4][0].objtype = null;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = "mirror";
game[4][3].direction = 1;
game[4][4].wall = false;
game[4][4].objtype = "transmitter";
game[4][4].direction = 3;
game[4][4].color = 0;
game[4][5].wall = false;
game[4][5].objtype = "transmitter";
game[4][5].direction = 1;
game[4][5].color = 0;
game[4][6].wall = false;
game[4][6].objtype = "mirror";
game[4][6].direction = 1;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = false;
game[4][9].objtype = "receiver";
game[4][9].direction = 2;
game[4][9].color = 3;
game[5][0].wall = false;
game[5][0].objtype = "receiver";
game[5][0].direction = 0;
game[5][0].color = 3;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = "filter";
game[5][3].direction = 0;
game[5][3].color = 1;
game[5][4].wall = false;
game[5][4].objtype = "transmitter";
game[5][4].direction = 3;
game[5][4].color = 0;
game[5][5].wall = false;
game[5][5].objtype = "transmitter";
game[5][5].direction = 1;
game[5][5].color = 0;
game[5][6].wall = false;
game[5][6].objtype = "filter";
game[5][6].direction = 0;
game[5][6].color = 2;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = true;
game[5][9].objtype = null;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = "filter";
game[6][3].direction = 0;
game[6][3].color = 3;
game[6][4].wall = false;
game[6][4].objtype = "transmitter";
game[6][4].direction = 3;
game[6][4].color = 0;
game[6][5].wall = false;
game[6][5].objtype = "transmitter";
game[6][5].direction = 1;
game[6][5].color = 0;
game[6][6].wall = false;
game[6][6].objtype = "filter";
game[6][6].direction = 0;
game[6][6].color = 3;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = null;
game[7][3].wall = false;
game[7][3].objtype = null;
game[7][4].wall = false;
game[7][4].objtype = null;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = null;
game[7][7].wall = false;
game[7][7].objtype = null;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = true;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = true;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = false;
game[9][3].objtype = "receiver";
game[9][3].direction = 1;
game[9][3].color = 3;
game[9][4].wall = false;
game[9][4].objtype = "receiver";
game[9][4].direction = 1;
game[9][4].color = 1;
game[9][5].wall = false;
game[9][5].objtype = "receiver";
game[9][5].direction = 1;
game[9][5].color = 3;
game[9][6].wall = true;
game[9][6].objtype = null;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = true;
game[9][8].objtype = null;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function level31() {
game[0][0].wall = true;
game[0][0].objtype = null;
game[0][1].wall = true;
game[0][1].objtype = null;
game[0][2].wall = true;
game[0][2].objtype = null;
game[0][3].wall = false;
game[0][3].objtype = "receiver";
game[0][3].direction = 3;
game[0][3].color = 2;
game[0][4].wall = false;
game[0][4].objtype = "receiver";
game[0][4].direction = 3;
game[0][4].color = 1;
game[0][5].wall = true;
game[0][5].objtype = null;
game[0][6].wall = true;
game[0][6].objtype = null;
game[0][7].wall = true;
game[0][7].objtype = null;
game[0][8].wall = true;
game[0][8].objtype = null;
game[0][9].wall = true;
game[0][9].objtype = null;
game[1][0].wall = true;
game[1][0].objtype = null;
game[1][1].wall = false;
game[1][1].objtype = "transmitter";
game[1][1].direction = 1;
game[1][1].color = 0;
game[1][2].wall = false;
game[1][2].objtype = null;
game[1][3].wall = false;
game[1][3].objtype = null;
game[1][4].wall = false;
game[1][4].objtype = "mirror";
game[1][4].direction = 1;
game[1][5].wall = false;
game[1][5].objtype = "mirror";
game[1][5].direction = 1;
game[1][6].wall = false;
game[1][6].objtype = "mirror";
game[1][6].direction = 1;
game[1][7].wall = false;
game[1][7].objtype = "mirror";
game[1][7].direction = 1;
game[1][8].wall = false;
game[1][8].objtype = "splitter";
game[1][8].direction = 3;
game[1][9].wall = true;
game[1][9].objtype = null;
game[2][0].wall = true;
game[2][0].objtype = null;
game[2][1].wall = false;
game[2][1].objtype = null;
game[2][2].wall = false;
game[2][2].objtype = null;
game[2][3].wall = false;
game[2][3].objtype = null;
game[2][4].wall = false;
game[2][4].objtype = null;
game[2][5].wall = false;
game[2][5].objtype = null;
game[2][6].wall = false;
game[2][6].objtype = null;
game[2][7].wall = false;
game[2][7].objtype = null;
game[2][8].wall = false;
game[2][8].objtype = "splitter";
game[2][8].direction = 3;
game[2][9].wall = true;
game[2][9].objtype = null;
game[3][0].wall = false;
game[3][0].objtype = "receiver";
game[3][0].direction = 0;
game[3][0].color = 1;
game[3][1].wall = false;
game[3][1].objtype = null;
game[3][2].wall = false;
game[3][2].objtype = null;
game[3][3].wall = false;
game[3][3].objtype = null;
game[3][4].wall = false;
game[3][4].objtype = null;
game[3][5].wall = false;
game[3][5].objtype = null;
game[3][6].wall = false;
game[3][6].objtype = null;
game[3][7].wall = false;
game[3][7].objtype = null;
game[3][8].wall = false;
game[3][8].objtype = "splitter";
game[3][8].direction = 1;
game[3][9].wall = true;
game[3][9].objtype = null;
game[4][0].wall = false;
game[4][0].objtype = "receiver";
game[4][0].direction = 0;
game[4][0].color = 2;
game[4][1].wall = false;
game[4][1].objtype = null;
game[4][2].wall = false;
game[4][2].objtype = null;
game[4][3].wall = false;
game[4][3].objtype = null;
game[4][4].wall = false;
game[4][4].objtype = null;
game[4][5].wall = false;
game[4][5].objtype = null;
game[4][6].wall = false;
game[4][6].objtype = null;
game[4][7].wall = false;
game[4][7].objtype = null;
game[4][8].wall = false;
game[4][8].objtype = null;
game[4][9].wall = true;
game[4][9].objtype = null;
game[5][0].wall = false;
game[5][0].objtype = "receiver";
game[5][0].direction = 0;
game[5][0].color = 3;
game[5][1].wall = false;
game[5][1].objtype = null;
game[5][2].wall = false;
game[5][2].objtype = null;
game[5][3].wall = false;
game[5][3].objtype = null;
game[5][4].wall = false;
game[5][4].objtype = null;
game[5][5].wall = false;
game[5][5].objtype = null;
game[5][6].wall = false;
game[5][6].objtype = null;
game[5][7].wall = false;
game[5][7].objtype = null;
game[5][8].wall = false;
game[5][8].objtype = null;
game[5][9].wall = false;
game[5][9].objtype = "receiver";
game[5][9].direction = 2;
game[5][9].color = 1;
game[6][0].wall = true;
game[6][0].objtype = null;
game[6][1].wall = false;
game[6][1].objtype = null;
game[6][2].wall = false;
game[6][2].objtype = null;
game[6][3].wall = false;
game[6][3].objtype = null;
game[6][4].wall = false;
game[6][4].objtype = null;
game[6][5].wall = false;
game[6][5].objtype = null;
game[6][6].wall = false;
game[6][6].objtype = null;
game[6][7].wall = false;
game[6][7].objtype = null;
game[6][8].wall = false;
game[6][8].objtype = null;
game[6][9].wall = true;
game[6][9].objtype = null;
game[7][0].wall = true;
game[7][0].objtype = null;
game[7][1].wall = false;
game[7][1].objtype = null;
game[7][2].wall = false;
game[7][2].objtype = "prism";
game[7][2].direction = 0;
game[7][2].color = 1;
game[7][3].wall = false;
game[7][3].objtype = "prism";
game[7][3].direction = 1;
game[7][3].color = 1;
game[7][4].wall = false;
game[7][4].objtype = "prism";
game[7][4].direction = 2;
game[7][4].color = 1;
game[7][5].wall = false;
game[7][5].objtype = null;
game[7][6].wall = false;
game[7][6].objtype = "mirror";
game[7][6].direction = 0;
game[7][7].wall = false;
game[7][7].objtype = "mirror";
game[7][7].direction = 0;
game[7][8].wall = false;
game[7][8].objtype = null;
game[7][9].wall = true;
game[7][9].objtype = null;
game[8][0].wall = true;
game[8][0].objtype = null;
game[8][1].wall = false;
game[8][1].objtype = null;
game[8][2].wall = false;
game[8][2].objtype = null;
game[8][3].wall = false;
game[8][3].objtype = null;
game[8][4].wall = false;
game[8][4].objtype = null;
game[8][5].wall = false;
game[8][5].objtype = null;
game[8][6].wall = false;
game[8][6].objtype = null;
game[8][7].wall = false;
game[8][7].objtype = null;
game[8][8].wall = false;
game[8][8].objtype = null;
game[8][9].wall = true;
game[8][9].objtype = null;
game[9][0].wall = true;
game[9][0].objtype = null;
game[9][1].wall = true;
game[9][1].objtype = null;
game[9][2].wall = true;
game[9][2].objtype = null;
game[9][3].wall = true;
game[9][3].objtype = null;
game[9][4].wall = false;
game[9][4].objtype = "receiver";
game[9][4].direction = 1;
game[9][4].color = 3;
game[9][5].wall = false;
game[9][5].objtype = "receiver";
game[9][5].direction = 1;
game[9][5].color = 2;
game[9][6].wall = false;
game[9][6].objtype = "receiver";
game[9][6].direction = 1;
game[9][6].color = 3;
game[9][7].wall = true;
game[9][7].objtype = null;
game[9][8].wall = false;
game[9][8].objtype = "receiver";
game[9][8].direction = 1;
game[9][8].color = 0;
game[9][9].wall = true;
game[9][9].objtype = null;
}
function getHelp() {
incorrect = new Array();
i = 0;
while (i < 10) {
j = 0;
while (j < 10) {
if (winlevel[i][j].objtype && (winlevel[i][j].objtype != "glowbo")) {
if (game[i][j].objtype != winlevel[i][j].objtype) {
if ((((winlevel[i][j].objtype == "filter") && (game[i][j].color != winlevel[i][j].color)) || (((game[i][j].direction != winlevel[i][j].direction) && (winlevel[i][j].objtype != "filter")) && (winlevel[i][j].objtype != "cycloid"))) || ((winlevel[i][j].objtype == "cycloid") && ((game[i][j].color != winlevel[i][j].color) || (game[i][j].direction != winlevel[i][j].direction)))) {
incorrect.push(winlevel[i][j]);
}
}
}
j++;
}
i++;
}
if (incorrect.length) {
playTime = playTime - Math.round(lev2 / 2);
antenn.rg.shortStart();
helpObj = incorrect[random(incorrect.length)];
helptool.h1._x = (helpObj.x * 40) + 60;
helptool.h1._y = (helpObj.y * 40) + 60;
i = 0;
while (i < 10) {
j = 0;
while (j < 10) {
if ((game[i][j].objtype == helpObj.objtype) && ((((game[i][j].objtype == "filter") && (game[i][j].color == helpObj.color)) || (((game[i][j].objtype == "cycloid") && (game[i][j].direction == helpObj.direction)) && (game[i][j].color == helpObj.color))) || (((game[i][j].direction == helpObj.direction) && (game[i][j].objtype != "cycloid")) && (game[i][j].objtype != "filter")))) {
helptool.h2._x = (i * 40) + 60;
helptool.h2._y = (j * 40) + 60;
}
j++;
}
i++;
}
trace("\u043E\u0431\u044A\u0435\u043A\u0442 \u0434\u043B\u044F \u0440\u0430\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 " + helpObj.objtype);
helptool.showline();
}
if ((((!helptool.h1._x) || (!helptool.h1._y)) || (!helptool.h2._x)) || (!helptool.h2._y)) {
trace("\u041D\u041E\u0412\u0410\u042F \u041F\u041E\u041C\u041E\u0429\u042C");
getHelp();
}
}
function showAd() {
trace("\u0413\u0420\u0423\u0416\u0423 \u0420\u0415\u041A\u041B\u0410\u041C\u0423");
if (adTimer > 19200) {
adTimer = 0;
createEmptyMovieClip("adContaner", getNextHighestDepth());
MochiAd.showInterLevelAd({id:"d785476f458d0d78", res:"640x480", clip:this.adContaner});
}
}
attachMovie("lights", "lights", getNextHighestDepth());
attachMovie("tiles", "tiles", getNextHighestDepth());
attachMovie("floor", "floor", getNextHighestDepth());
attachMovie("rays", "rays", getNextHighestDepth());
attachMovie("effects", "effects", getNextHighestDepth());
attachMovie("personages", "personages", getNextHighestDepth());
attachMovie("helptool", "helptool", getNextHighestDepth());
g5link.swapDepths(getNextHighestDepth());
attachMovie("cursor2", "cursor2", getNextHighestDepth());
effects.blendMode = "add";
helptool.blendMode = "add";
rotatingTiles = true;
cursor2.t = 0;
startDrag (cursor2, true);
lose = false;
playTime = 30;
if (playMode == "timer") {
lev2 = 0;
totalLevels = 999;
} else {
totalLevels = 0;
wholeGameWinned = false;
while (this["level" + totalLevels]) {
totalLevels++;
}
}
if (lev == undefined) {
lev = 0;
}
antenn.currentlevel = lev + 1;
stop();
levelPassed = false;
misd = false;
onMouseDown = function () {
if ((!gameMenu) && (!lose)) {
misd = true;
draggin = undefined;
if ((((_root._xmouse > 30) && (_root._xmouse < 480)) && (_root._ymouse > 30)) && (_root._ymouse < 480)) {
mX = Math.floor((_root._xmouse - 40) / 40);
mY = Math.floor((_root._ymouse - 40) / 40);
if (game[mX][mY].objtype) {
if (game[mX][mY].objtype != "receiver") {
draggin = personages[(((game[mX][mY].objtype + "") + mX) + "_") + mY];
cursor2.gotoAndStop(2);
}
}
}
if (levelPassed && (!(splashx._currentframe - 1))) {
levelPassed = false;
attachMovie("splashx", "splashx", getNextHighestDepth());
splashx.blendMode = "add";
}
}
};
onMouseUp = function () {
helptool.hidehint();
misd = false;
startDrag (cursor2, true);
cursor2.gotoAndStop(1);
if (draggin) {
smthwasdragged = true;
}
};
onMouseMove = function () {
if ((misd && (draggin)) && (!(splashx._currentframe - 1))) {
newX = Math.floor((_root._xmouse - 40) / 40);
newY = Math.floor((_root._ymouse - 40) / 40);
stopDrag();
cursor2._x = (newX * 40) + 60;
cursor2._y = (newY * 40) + 60;
if (((((((newX > -1) && (newX < 10)) && (newY > -1)) && (newY < 10)) && ((newX != mX) || (newY != mY))) && (!game[newX][newY].wall)) && (!game[newX][newY].objtype)) {
draggin._x = (newX * 40) + 60;
draggin._y = (newY * 40) + 60;
draggin._name = (((game[mX][mY].objtype + "") + newX) + "_") + newY;
game[newX][newY] = game[mX][mY];
game[mX][mY] = new Object();
startTracing();
removeSparks();
checkWin();
mX = newX;
mY = newY;
}
}
};
if (!kl) {
var kl = new Object();
}
var gameMenu = false;
kl.onKeyUp = function () {
if (Key.getCode() == 13) {
lev++;
trace(lev);
}
if ((Key.getCode() == 27) && (!lose)) {
gameMenu = !gameMenu;
if (gameMenu) {
helptool.hidehint();
attachMovie("inGameMenu", "inGameMenu", getNextHighestDepth());
g5link.swapDepths(getNextHighestDepth());
cursor2.swapDepths(getNextHighestDepth() + 1);
} else {
removeMovieClip(inGameMenu);
}
}
};
Key.addListener(kl);
setTimeout(refreshCycloids, 1000);
bgColor = "0xaaaaFF";
createGameField(10, 10);
if (playMode == "puzzle") {
antenn.timer._visible = false;
eval ("level" + lev)();
} else {
playTime = 30;
antenn.timer.time = playTime;
antenn.timer._visible = true;
game = LevelGenerator.generateLevel(lev2);
while (checkWin("test") || (!game)) {
trace("\u0421\u0413\u0415\u041D\u0415\u0420\u0418\u0420\u041E\u0412\u0410\u041B\u0421\u042F \u0412\u042B\u0418\u0413\u0420\u042B\u0428\u041D\u042B\u0419 \u041F\u0415\u0420\u0412\u042B\u0419 \u0423\u0420\u041E\u0412\u0415\u041D\u042C, \u041F\u0415\u0420\u0415\u0417\u0410\u041F\u0423\u0421\u041A");
game = undefined;
if (needToShowHelp) {
trace(needToShowHelp);
so.data[needToShowHelp + "HelpShown"] = false;
so.flush();
needToShowHelp = undefined;
}
i = 0;
while (i < floor.getNextHighestDepth()) {
removeMovieClip(floor["floorLight" + i]);
i++;
}
i = 0;
while (i < tiles.getNextHighestDepth()) {
removeMovieClip(tiles["miniTile2" + i]);
removeMovieClip(tiles["miniTile1" + i]);
removeMovieClip(tiles["tile" + i]);
i++;
}
clearGlowLightFiled();
game = LevelGenerator.generateLevel(lev2);
clearGlowLightFiled();
placeObjects();
highLightField();
placeTiles();
startTracing();
removeSparks();
}
}
placeObjects();
highLightField();
placeTiles();
startTracing();
removeSparks();
checkWin();
bgsound.stop();
bgsound = new Sound();
bgsound.attachSound("MUS2");
if (!_root.so.data.soundMuted) {
bgsound.start(0, 1000);
}
adTimer = 0;
onEnterFrame = function () {
adTimer++;
};
Instance of Symbol 400 MovieClip "youwin" in Frame 6
onClipEvent (load) {
swapDepths(_root.getNextHighestDepth());
_visible = false;
}
onClipEvent (enterFrame) {
if (!_visible) {
timer = 0;
}
if (_visible) {
timer++;
if (timer > 50) {
timer = 0;
if (_root.levelPassed && (!(_root.splashx._currentframe - 1))) {
_root.levelPassed = false;
_root.attachMovie("splashx", "splashx", _root.getNextHighestDepth());
_root.splashx.blendMode = "add";
}
}
}
}
Instance of Symbol 379 MovieClip "winner" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 405 MovieClip "youLose" in Frame 6
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (!_visible) {
gotoAndStop (1);
}
}
Instance of Symbol 413 MovieClip "helptext" in Frame 6
onClipEvent (load) {
if (_root.playMode == "puzzle") {
_visible = false;
}
}
Symbol 31 MovieClip [glow] Frame 1
t1r = (1 - (random(2) * 2)) * (3 + random(3));
t2r = (1 - (random(2) * 2)) * (3 + random(3));
t1._x = t1._x + (random(6) - 3);
t1._y = t1._y + (random(6) - 3);
t2._x = t2._x + (random(6) - 3);
t2._y = t2._y + (random(6) - 3);
_yscale = 10;
_xscale = 10;
s = 30;
onEnterFrame = function () {
_x = (_x + ((559 - _x) / s));
_y = (_y + ((50 - _y) / s));
s = s + ((3 - s) / 30);
t1._rotation = t1._rotation + t1r;
t2._rotation = t2._rotation + t2r;
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
};
Symbol 40 MovieClip [splashx] Frame 4
bgsound = new Sound();
bgsound.attachSound("nextlevel.mp3");
if (!_root.so.data.soundMuted) {
bgsound.start(0, 1000);
}
Symbol 40 MovieClip [splashx] Frame 26
_root.nextLevel();
Symbol 40 MovieClip [splashx] Frame 55
removeMovieClip(this);
Symbol 43 MovieClip [beamSpark] Frame 1
t = 1;
onEnterFrame = function () {
if (t > 6) {
t = 1;
}
if (!random(2)) {
t++;
attachMovie("dot", "dot" + t, t);
this["dot" + t]._y = random(10) - 5;
this["dot" + t]._x = 18;
this["dot" + t].x = (random(20) / 2) + 0.2;
this["dot" + t].y = (random(20) / 2) - 5;
this["dot" + t].onEnterFrame = function () {
with (this) {
_x = _x + x;
_y = _y + y;
_alpha = _alpha - 11;
if (_alpha < 0) {
removeMovieClip(this);
}
}
};
}
};
Symbol 44 MovieClip [stars] Frame 1
function addStar() {
z = getNextHighestDepth();
attachMovie("star", "star" + z, z);
this["star" + z].y = (random(10) / 10) + 0.5;
this["star" + z]._yscale = (this["star" + z]._xscale = random(50) + 75);
this["star" + z]._y = -random(Stage.height);
this["star" + z]._x = random(Stage.width);
this["star" + z].d = (2 * random(2)) - 1;
this["star" + z].onEnterFrame = function () {
with (this) {
_rotation = _rotation + (d * 2);
_y = _y + y;
_x = _x + (Math.cos(_y / 50) + ((_root._xmouse - 320) / 300));
if (_y > (Stage.height + 50)) {
_parent.addStar();
removeMovieClip(this);
}
}
};
}
i = 0;
while (i < 20) {
addStar();
i++;
}
Symbol 67 Button
on (release) {
_parent.submitScore();
}
Symbol 69 Button
on (release) {
_parent.secCodeLoad();
}
Symbol 76 Button
on (release) {
_parent.back();
}
Symbol 79 Button
on (release) {
_parent.viewScore();
}
Symbol 83 MovieClip [HiScores] Frame 1
#initclip 12
Object.registerClass("HiScores", HiScores);
#endinitclip
Symbol 414 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 415 MovieClip [__Packages.LevelTester] Frame 0
class LevelTester
{
function LevelTester () {
}
static function testLevel() {
var _local3 = new Array();
var _local4 = 0;
while (_local4 < 10) {
_local3[_local4] = new Array();
var _local2 = 0;
while (_local2 < 10) {
_local3[_local4][_local2] = new Object();
for (var _local5 in _root.game[_local4][_local2]) {
_local3[_local4][_local2][_local5] = _root.game[_local4][_local2][_local5];
}
_root.game[_local4][_local2] = new Object();
for (var _local5 in _root.winlevel[_local4][_local2]) {
_root.game[_local4][_local2][_local5] = _root.winlevel[_local4][_local2][_local5];
}
_local2++;
}
_local4++;
}
_root.clearGlowLightFiled();
_root.placeObjects();
_root.highLightField();
_root.placeTiles();
_root.startTracing();
_root.removeSparks();
res = _root.checkWin("test");
_local4 = 0;
while (_local4 < 10) {
var _local2 = 0;
while (_local2 < 10) {
_root.game[_local4][_local2] = new Object();
for (var _local5 in _local3[_local4][_local2]) {
_root.game[_local4][_local2][_local5] = _local3[_local4][_local2][_local5];
}
_local2++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _root.personages.getNextHighestDepth()) {
removeMovieClip(_root.personages.getInstanceAtDepth(_local4));
_local4++;
}
_local4 = 0;
while (_local4 < _root.floor.getNextHighestDepth()) {
_root.removeMovieClip(floor["floorLight" + _local4]);
_local4++;
}
_local4 = 0;
while (_local4 < _root.tiles.getNextHighestDepth()) {
removeMovieClip(_root.tiles["miniTile2" + _local4]);
removeMovieClip(_root.tiles["miniTile1" + _local4]);
removeMovieClip(_root.tiles["tile" + _local4]);
_local4++;
}
_root.clearGlowLightFiled();
_root.clearGlowLightFiled();
_root.placeObjects();
_root.highLightField();
_root.placeTiles();
_root.startTracing();
_root.removeSparks();
return(res);
}
}
Symbol 416 MovieClip [__Packages.LevelGenerator] Frame 0
class LevelGenerator
{
function LevelGenerator () {
}
static function generateLevel(lev) {
function getObject(color) {
nextObject = objNames[random(objNames.length)];
while (complexity[nextObject] > levelComplexity) {
nextObject = objNames[random(5)];
}
if (color != 0) {
while (((complexity[nextObject] > levelComplexity) || (nextObject == "filter")) || (nextObject == "prism")) {
nextObject = objNames[random(5)];
}
}
levelComplexity = levelComplexity - complexity[nextObject];
return(nextObject);
}
function shuffle() {
totalReceivers = 0;
i = 0;
while (i < 10) {
j = 0;
while (j < 10) {
if (game[i][j].objtype == "receiver") {
totalReceivers++;
}
if (game[i][j].objtype && (game[i][j].objtype != "receiver")) {
newX = random(10);
newY = random(10);
while (game[newX][newY].objtype || (game[newX][newY].wall)) {
newX = random(10);
newY = random(10);
}
game[newX][newY] = game[i][j];
game[i][j] = new Object({wall:false});
}
j++;
}
i++;
}
}
if (lev < 1) {
mincom = (maxcom = 2);
} else {
mincom = ((lev + 1) / 1.5) + 2;
maxcom = ((lev + 1) * 2) + 3;
}
levelComplexity = random(maxcom - mincom) + Math.round(mincom);
initComplexity = levelComplexity;
glowx = random(8) + 1;
glowy = random(8) + 1;
glowd = random(4);
game = new Array();
i = 0;
while (i < 10) {
game[i] = new Array();
j = 0;
while (j < 10) {
game[i][j] = new Object();
game[i][j].wall = true;
game[i][j].fotoned = false;
game[i][j].objtype = undefined;
j++;
}
i++;
}
complexity = new Object();
complexity.filter = 3;
complexity.mirror = 3;
complexity.splitter = 5;
complexity.prism = 6;
complexity.cycloid = 7;
objNames = new Array("filter", "mirror", "splitter", "prism", "cycloid");
while (((((((((glowx == 1) && (glowd == 2)) || ((glowx == 9) && (glowd == 0))) || ((glowy == 1) && (glowd == 3))) || ((glowy == 9) && (glowd == 1))) || ((glowx == 2) && (glowd == 2))) || ((glowx == 8) && (glowd == 0))) || ((glowy == 2) && (glowd == 3))) || ((glowy == 8) && (glowd == 1))) {
glowd = random(4);
}
trace((((("\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430 \u043D\u0430 " + glowx) + ":") + glowy) + ", direction=") + glowd);
lightTrails = new Array();
lightTrails.push({x:glowx, y:glowy, direction:glowd, color:0});
game[glowx][glowy].wall = false;
game[glowx][glowy].fotoned = true;
game[glowx][glowy].objtype = "transmitter";
game[glowx][glowy].color = 0;
game[glowx][glowy].direction = glowd;
objectsArray = new Array();
while (lightTrails.length) {
foton = lightTrails.shift();
trailLength = 0;
nextX = foton.x;
nextY = foton.y;
if (!foton.direction) {
(dx = 1);
(dy = 0);
(oldReverceDirection = 2);
}
if (foton.direction == 1) {
(dx = 0);
(dy = 1);
(oldReverceDirection = 3);
}
if (foton.direction == 2) {
(dx = -1);
(dy = 0);
(oldReverceDirection = 0);
}
if (foton.direction == 3) {
(dx = 0);
(dy = -1);
(oldReverceDirection = 1);
}
while (((((nextX < 10) && (nextX > 0)) && (nextY < 10)) && (nextY > 0)) && (!game[nextX + dx][nextY + dy].objtype)) {
trailLength++;
nextX = nextX + dx;
nextY = nextY + dy;
}
if ((trailLength > 1) && (levelComplexity > 2)) {
placedObject = getObject(foton.color);
newColor = foton.color;
newDirection = foton.direction;
newObPos = random(trailLength - 2) + 1;
newObPosX = foton.x;
newObPosY = foton.y;
if (!foton.direction) {
(newObPosX = newObPosX + newObPos);
(newDirection = 2);
}
if (foton.direction == 1) {
(newObPosY = newObPosY + newObPos);
(newDirection = 3);
}
if (foton.direction == 2) {
(newObPosX = newObPosX - newObPos);
(newDirection = 0);
}
if (foton.direction == 3) {
(newObPosY = newObPosY - newObPos);
(newDirection = 1);
}
while (game[newObPosX][newObPosY].fotoned) {
trace("\u041F\u0418\u0417\u0414\u0415\u0426");
newObPos = random(trailLength - 1) + 1;
newObPosX = nextX;
newObPosY = nextY;
if (!foton.direction) {
(newObPosX = newObPosX + newObPos);
(newDirection = 2);
}
if (foton.direction == 1) {
(newObPosY = newObPosY + newObPos);
(newDirection = 3);
}
if (foton.direction == 2) {
(newObPosX = newObPosX - newObPos);
(newDirection = 0);
}
if (foton.direction == 3) {
(newObPosY = newObPosY - newObPos);
(newDirection = 1);
}
}
if (placedObject == "filter") {
newColor = random(3) + 1;
newDirection = undefined;
while (newColor == foton.color) {
newColor = random(3) + 1;
}
lightTrails.push({x:newObPosX, y:newObPosY, direction:foton.direction, color:newColor});
}
if (placedObject == "mirror") {
newDirection = random(2);
if (((newObPosX == 0) && (newDirection)) && (foton.direction == 3)) {
newDirection = 0;
}
if (((newObPosX == 0) && (!newDirection)) && (foton.direction == 1)) {
newDirection = 1;
}
if (((newObPosX == 9) && (newDirection)) && (foton.direction == 1)) {
newDirection = 0;
}
if (((newObPosX == 9) && (!newDirection)) && (foton.direction == 3)) {
newDirection = 1;
}
if (((newObPosY == 0) && (newDirection)) && (foton.direction == 2)) {
newDirection = 0;
}
if (((newObPosY == 0) && (!newDirection)) && (foton.direction == 0)) {
newDirection = 1;
}
if (((newObPosY == 9) && (newDirection)) && (foton.direction == 0)) {
newDirection = 0;
}
if (((newObPosY == 9) && (!newDirection)) && (foton.direction == 2)) {
newDirection = 1;
}
if (newDirection) {
if (!foton.direction) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:1, color:newColor});
}
if (foton.direction == 1) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:0, color:newColor});
}
if (foton.direction == 2) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:3, color:newColor});
}
if (foton.direction == 3) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:2, color:newColor});
}
} else {
if (!foton.direction) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:3, color:newColor});
}
if (foton.direction == 1) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:2, color:newColor});
}
if (foton.direction == 2) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:1, color:newColor});
}
if (foton.direction == 3) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:0, color:newColor});
}
}
newColor = foton.color;
}
if (placedObject == "splitter") {
if (!foton.direction) {
newDirection = 2;
lightTrails.push({x:newObPosX, y:newObPosY, direction:1, color:newColor});
lightTrails.push({x:newObPosX, y:newObPosY, direction:3, color:newColor});
}
if (foton.direction == 1) {
newDirection = 3;
lightTrails.push({x:newObPosX, y:newObPosY, direction:0, color:newColor});
lightTrails.push({x:newObPosX, y:newObPosY, direction:2, color:newColor});
}
if (foton.direction == 2) {
newDirection = 0;
lightTrails.push({x:newObPosX, y:newObPosY, direction:1, color:newColor});
lightTrails.push({x:newObPosX, y:newObPosY, direction:3, color:newColor});
}
if (foton.direction == 3) {
newDirection = 1;
lightTrails.push({x:newObPosX, y:newObPosY, direction:0, color:newColor});
lightTrails.push({x:newObPosX, y:newObPosY, direction:2, color:newColor});
}
newColor = undefined;
}
if (placedObject == "prism") {
newDirection = oldReverceDirection;
if (!foton.direction) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:1, color:3});
lightTrails.push({x:newObPosX, y:newObPosY, direction:0, color:2});
lightTrails.push({x:newObPosX, y:newObPosY, direction:3, color:1});
}
if (foton.direction == 1) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:0, color:1});
lightTrails.push({x:newObPosX, y:newObPosY, direction:2, color:3});
lightTrails.push({x:newObPosX, y:newObPosY, direction:1, color:2});
}
if (foton.direction == 2) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:2, color:2});
lightTrails.push({x:newObPosX, y:newObPosY, direction:1, color:1});
lightTrails.push({x:newObPosX, y:newObPosY, direction:3, color:3});
}
if (foton.direction == 3) {
lightTrails.push({x:newObPosX, y:newObPosY, direction:0, color:3});
lightTrails.push({x:newObPosX, y:newObPosY, direction:3, color:2});
lightTrails.push({x:newObPosX, y:newObPosY, direction:2, color:1});
}
}
if (placedObject == "cycloid") {
newDirection = random(4);
newColor = random(3) + 1;
while (newColor == foton.color) {
newColor = random(3) + 1;
}
while (newDirection == oldReverceDirection) {
newDirection = random(4);
}
lightTrails.push({x:newObPosX, y:newObPosY, direction:newDirection, color:newColor});
}
i = 0;
while (i < newObPos) {
game[newObPosX - (dx * i)][newObPosY - (dy * i)].fotoned = true;
game[newObPosX - (dx * i)][newObPosY - (dy * i)].wall = false;
i++;
}
trace((((((((((("new object@" + newObPosX) + ":") + newObPosY) + " - ") + placedObject) + ", color: ") + newColor) + ", dir=") + newDirection) + ", light dir=") + foton.direction);
game[newObPosX][newObPosY].objtype = placedObject;
game[newObPosX][newObPosY].color = newColor;
game[newObPosX][newObPosY].direction = newDirection;
} else {
trace((((((("finishing tracing from " + foton.x) + ":") + foton.y) + " c=") + foton.color) + ", direction:") + foton.direction);
trailLength = 0;
nextX = foton.x;
nextY = foton.y;
zzz = 10;
if ((foton.direction == 0) || (foton.direction == 1)) {
zzz = 9;
}
while (((((nextX < zzz) && (nextX > 0)) && (nextY < zzz)) && (nextY > 0)) && (!game[nextX + dx][nextY + dy].objtype)) {
trailLength++;
nextX = nextX + dx;
nextY = nextY + dy;
game[nextX][nextY].fotoned = true;
game[nextX][nextY].wall = false;
}
if (!game[nextX][nextY].objtype) {
game[nextX][nextY].objtype = "receiver";
game[nextX][nextY].color = foton.color;
}
}
}
i = 0;
while (i < 10) {
j = 0;
while (j < 10) {
if ((((game[i][j + 1].fotoned || (game[i][j - 1].fotoned)) || (game[i - 1][j].fotoned)) || (game[i + 1][j].fotoned)) && (game[i][j].objtype != "receiver")) {
game[i][j].wall = random(2);
}
if (game[i][j].objtype || (game[i][j].fotoned)) {
game[i][j].wall = false;
}
j++;
}
i++;
}
_root.winlevel = new Array();
var _local2 = new Array("transmitter");
i = 0;
while (i < 10) {
_root.winlevel[i] = new Array();
j = 0;
while (j < 10) {
_root.winlevel[i][j] = new Array();
for (var _local4 in game[i][j]) {
_root.winlevel[i][j][_local4] = game[i][j][_local4];
}
if (_root.winlevel[i][j].objtype) {
_local2.push(_root.winlevel[i][j].objtype);
}
_root.winlevel[i][j].x = i;
_root.winlevel[i][j].y = j;
j++;
}
i++;
}
_root.helptext.gotoAndStop(8);
i = 0;
while (i < 8) {
k = 0;
while (k < _local2.length) {
trace((_local2[k] + " ") + _root.so.data[_local2[k] + "HelpShown"]);
if ((!_root.so.data[_local2[k] + "HelpShown"]) && (_local2[k] != "receiver")) {
_root.helptext._visible = true;
_root.helptext.gotoAndStop(_local2[k]);
_root.needToShowHelp = _local2[k];
_root.so.data[_local2[k] + "HelpShown"] = true;
_root.so.flush();
break;
}
k++;
}
i++;
}
trace("\u041C\u0435\u0448\u0430\u0435\u043C");
shuffle();
if (!totalReceivers) {
trace("\u0433\u0435\u043D\u0435\u0440\u0438\u043C \u043D\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C!");
generateLevel(lev);
} else {
return(game);
}
}
}
Symbol 47 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 48 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 49 MovieClip [__Packages.HiScores] Frame 0
class HiScores extends mx.core.UIComponent
{
var _visible, gameId, levelId, gameCode, lowIsBest, score, invalidate, getURL;
function HiScores () {
super();
_visible = false;
}
function setDetails(gameId, levelId, gameCode, lowIsBest, score, msg1, msg2) {
this.gameId = gameId;
this.levelId = levelId;
this.gameCode = gameCode;
this.lowIsBest = lowIsBest;
this.score = score;
movEntryScreen = movEntryScreen;
movInfoScreen = movInfoScreen;
movEntryScreen.txtMsg1.text = msg1;
movEntryScreen.txtMsg2.text = msg2;
movEntryScreen.txtName.text = "";
movEntryScreen.txtCode.text = "";
movEntryScreen._visible = true;
movInfoScreen._visible = false;
secCodeLoad();
_visible = true;
}
function createChildren() {
size();
}
function size() {
super.size();
invalidate();
}
function secCodeLoad() {
var _local2 = new MovieClipLoader();
_local2.loadClip((HS_SERVLET_URL + "?type=genCode&cachebuster=") + new Date().getTime(), movEntryScreen.movCode);
}
function back() {
movEntryScreen._visible = true;
movInfoScreen._visible = false;
}
function viewScore() {
getURL((((((((HI_SCORE_URL + gameCode) + "_hs") + "&name=") + movEntryScreen.txtName.text) + "&levelId=") + levelId) + "&cachebuster=") + new Date().getTime(), "_blank");
}
function showInfoMessage(msg, error) {
movInfoScreen.txtInfo.text = msg;
movInfoScreen.btnBack._visible = error;
movInfoScreen.btnView._visible = !error;
}
function submitScore() {
movEntryScreen._visible = false;
movInfoScreen._visible = true;
var _local8 = true;
if (movEntryScreen.txtName.text.length == 0) {
showInfoMessage("Please enter your name.", true);
} else if (movEntryScreen.txtCode.text.length != 5) {
showInfoMessage("Please enter all 5 letters of the security code.", true);
} else {
showInfoMessage("Submitting hi-score details to the server, please wait.", true);
movInfoScreen.btnBack._visible = false;
_local8 = false;
}
if (!_local8) {
var _local9 = movEntryScreen.txtName.text;
var _local4 = (((((((("save|" + _local9) + "|") + movEntryScreen.txtCode.text) + "|") + score) + "|") + gameId) + "|") + levelId;
var _local5 = "";
var _local3 = 0;
var _local2 = 0;
while (_local3 < _local4.length) {
if (_local2 >= KEY.length) {
_local2 = 0;
}
_local5 = _local5 + String.fromCharCode((_local4.charCodeAt(_local3) ^ KEY.charCodeAt(_local2)) + 1);
_local3++;
_local2++;
}
var self = this;
var _local6 = new LoadVars();
_local6.ffdata = _local5;
_local6.lowIsBest = lowIsBest;
_local6.sendAndLoad(HS_SERVLET_URL, _local6, "POST");
_local6.onLoad = function (success) {
var _local2 = parseInt(this.res);
if (!success) {
self.showInfoMessage("A serious problem was encountered with the server, please try again in a few minutes.", true);
} else if (_local2 == -1) {
self.showInfoMessage("Could not store hi-score details. Click on back, generate a new security code and re-submit.", true);
} else if (_local2 == 0) {
self.showInfoMessage("Sorry, a better score already exists with that name.", false);
} else if (_local2 == 1) {
self.showInfoMessage("Congratulations! You made it into the\nhi-score table.", false);
}
};
}
}
static var symbolName = "HiScores";
static var symbolOwner = HiScores;
var className = "HiScores";
static var SERVER_URL = "http://www.gimme5games.com";
static var SERVLET_URL = SERVER_URL + "/servlet/otwServlet";
static var HS_SERVLET_URL = SERVER_URL + "/servlet/hiServlet";
static var HI_SCORE_URL = SERVER_URL + "/index.jsp?id=";
var KEY = "rocket";
var movEntryScreen = null;
var movInfoScreen = null;
}
Symbol 84 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 85 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 86 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 87 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 88 MovieClip [__Packages.Splash] Frame 0
class Splash extends mx.core.UIComponent
{
var useHandCursor, boundingBox_mc, invalidate;
function Splash () {
super();
}
function init() {
super.init();
useHandCursor = false;
boundingBox_mc._visible = false;
}
function createChildren() {
size();
}
function size() {
super.size();
invalidate();
}
function draw() {
super.draw();
if (_global.isLivePreview) {
boundingBox_mc._visible = true;
} else {
boundingBox_mc._visible = false;
}
}
function getFrameAfterCompletion() {
return(frameAfterCompletion);
}
function setFrameAfterCompletion(frameAfterCompletion) {
this.frameAfterCompletion = frameAfterCompletion;
}
static var symbolName = "Splash";
static var symbolOwner = Splash;
var className = "Splash";
var frameAfterCompletion = 0;
}
Symbol 98 Button
on (release) {
getURL ("http://www.gimme5games.com", "_blank");
}
Symbol 109 MovieClip [Splash] Frame 1
#initclip 13
Object.registerClass("Splash", Splash);
#endinitclip
Symbol 109 MovieClip [Splash] Frame 91
_root.gotoAndStop(this.getFrameAfterCompletion());
Instance of Symbol 109 MovieClip [Splash] in Symbol 110 MovieClip [g5_splash] Frame 1
//component parameters
onClipEvent (construct) {
frameAfterCompletion = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 110 MovieClip [g5_splash] Frame 70
removeMovieClip(this);
Symbol 128 MovieClip [cursor2] Frame 1
stop();
onEnterFrame = function () {
t = t + 0.07;
dr = Math.cos(t) * 200;
t3._rotation = dr / 1.2;
};
Symbol 143 MovieClip [helptool] Frame 1
function showline() {
clear();
line._visible = true;
line._rotation = 0;
d = Math.sqrt(((h1._x - h2._x) * (h1._x - h2._x)) + ((h1._y - h2._y) * (h1._y - h2._y)));
line._width = d;
line._rotation = Math.atan2(h1._y - h2._y, h1._x - h2._x) * 57.3;
line._x = h2._x;
line._y = h2._y;
}
function hidehint() {
h1._x = -60;
h1._y = -60;
h2._x = -60;
h2._y = -60;
line._visible = false;
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 173 MovieClip [options] Frame 1
function toggleSounds() {
_root.so.data.soundMuted = !_root.so.data.soundMuted;
_root.so.flush();
if (_root.so.data.soundMuted) {
stopAllSounds();
} else {
_root.bgsound.start(0, 1000);
}
}
a = 100;
_alpha = 0;
onEnterFrame = function () {
_alpha = (_alpha + ((a - _alpha) / 10));
if (_alpha < 0) {
removeMovieClip(this);
}
};
Instance of Symbol 163 MovieClip "high" in Symbol 173 MovieClip [options] Frame 1
onClipEvent (load) {
if (_root.so.data.q == "HIGH") {
filters = [new flash.filters.GlowFilter(16777215, 1, 10, 10, 10, 1, true, false)];
} else {
filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
}
}
on (release) {
_quality = "HIGH";
_root.so.data.q = "HIGH";
_root.so.flush();
filters = [new flash.filters.GlowFilter(16777215, 1, 10, 10, 10, 1, true, false)];
_parent.low.filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
_parent.medium.filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
}
Instance of Symbol 165 MovieClip "medium" in Symbol 173 MovieClip [options] Frame 1
onClipEvent (load) {
if (_root.so.data.q == "MEDIUM") {
filters = [new flash.filters.GlowFilter(16777215, 1, 10, 10, 10, 1, true, false)];
} else {
filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
}
}
on (release) {
_quality = "MEDIUM";
_root.so.data.q = "MEDIUM";
_root.so.flush();
filters = [new flash.filters.GlowFilter(16777215, 1, 10, 10, 10, 1, true, false)];
_parent.high.filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
_parent.low.filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
}
Instance of Symbol 167 MovieClip "low" in Symbol 173 MovieClip [options] Frame 1
onClipEvent (load) {
if (_root.so.data.q == "LOW") {
filters = [new flash.filters.GlowFilter(16777215, 1, 10, 10, 10, 1, true, false)];
} else {
filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
}
}
on (release) {
_quality = "LOW";
_root.so.data.q = "LOW";
_root.so.flush();
filters = [new flash.filters.GlowFilter(16777215, 1, 10, 10, 10, 1, true, false)];
_parent.high.filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
_parent.medium.filters = [new flash.filters.GlowFilter(16777215, 1, 3, 3, 20, 2, false, false)];
}
Instance of Symbol 169 MovieClip "mute" in Symbol 173 MovieClip [options] Frame 1
on (rollOver, dragOver) {
gotoAndStop (2);
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (release) {
_parent.toggleSounds();
}
Instance of Symbol 171 MovieClip in Symbol 173 MovieClip [options] Frame 1
onClipEvent (enterFrame) {
_visible = (!_root.so.data.soundMuted);
}
Symbol 215 MovieClip [help] Frame 1
a = 100;
_alpha = 0;
onEnterFrame = function () {
_alpha = (_alpha + ((a - _alpha) / 10));
if (_alpha < 0) {
removeMovieClip(this);
}
};
Instance of Symbol 214 MovieClip [cycloid] in Symbol 215 MovieClip [help] Frame 1
onClipEvent (load) {
stop();
}
Symbol 216 MovieClip [inGameMenu] Frame 1
stop();
Instance of Symbol 151 MovieClip in Symbol 216 MovieClip [inGameMenu] Frame 1
onClipEvent (load) {
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
_root.gameMenu = false;
removeMovieClip(_root.lights);
removeMovieClip(_root.tiles);
removeMovieClip(_root.floor);
removeMovieClip(_root.rays);
removeMovieClip(_root.effects);
removeMovieClip(_root.personages);
removeMovieClip(_root.cursor2);
removeMovieClip(_root.youwin);
removeMovieClip(_root.splash);
_root.levelPassed = false;
_root.lev--;
_root.bgsound.stop();
_root.bgsound.attachSound("MUS1");
if (!_root.so.data.soundMuted) {
_root.bgsound.start(0, 1000);
}
_root.gotoAndStop(5);
removeMovieClip(_parent);
}
Instance of Symbol 154 MovieClip in Symbol 216 MovieClip [inGameMenu] Frame 1
onClipEvent (load) {
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
_root.gameMenu = false;
removeMovieClip(_parent);
}
Instance of Symbol 156 MovieClip in Symbol 216 MovieClip [inGameMenu] Frame 1
onClipEvent (load) {
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
Instance of Symbol 159 MovieClip in Symbol 216 MovieClip [inGameMenu] Frame 1
onClipEvent (load) {
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
_root.gameMenu = false;
_parent.gotoAndStop(2);
}
Instance of Symbol 175 MovieClip in Symbol 216 MovieClip [inGameMenu] Frame 2
onClipEvent (load) {
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (release, releaseOutside) {
_parent.gotoAndStop(1);
}
Symbol 231 MovieClip Frame 33
gotoAndPlay (6);
Symbol 233 MovieClip Frame 41
gotoAndPlay (20);
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
stop();
Symbol 234 MovieClip Frame 3
stop();
Symbol 234 MovieClip Frame 4
stop();
Symbol 241 MovieClip [filter] Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
stop();
Symbol 254 MovieClip Frame 3
stop();
Symbol 255 MovieClip [receiver] Frame 1
stop();
Symbol 262 MovieClip [splitter] Frame 1
stop();
Symbol 266 MovieClip [about] Frame 1
a = 100;
_alpha = 0;
onEnterFrame = function () {
_alpha = (_alpha + ((a - _alpha) / 10));
if (_alpha < 0) {
removeMovieClip(this);
}
};
Instance of Symbol 277 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
n = n + 0.01;
_rotation = (Math.cos(n) * 3);
}
Instance of Symbol 277 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
n = n + 0.01;
_rotation = (180 + (Math.sin(n) * 3));
}
Instance of Symbol 279 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = (!_parent._parent.back._visible);
}
Instance of Symbol 285 MovieClip "light" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
da = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((da - _alpha) / 5));
}
Instance of Symbol 287 MovieClip "item" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
w = 100;
}
onClipEvent (enterFrame) {
_xscale = (_xscale + ((w - _xscale) / 4));
_yscale = _xscale;
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 1
function setActions() {
i = 0;
while (i < 8) {
this["b" + i].n = i + ((_currentframe - 2) * 8);
if ((i + ((_currentframe - 2) * 8)) < 33) {
if (_root.so.data[("level" + (i + ((_currentframe - 2) * 8))) + "passed"]) {
this["b" + i].gotoAndStop(2);
} else {
this["b" + i].gotoAndStop(1);
}
this["b" + i].onPress = function () {
with (this) {
_root.lev = n;
trace("STARTING LEVEL " + _root.lev);
_root.startPlaying();
}
};
} else {
this["b" + i].onPress = null;
}
i++;
}
}
stop();
levelsPassed = 0;
i = 0;
while (i < 33) {
if (_root.so.data[("level" + i) + "passed"]) {
levelsPassed++;
}
i++;
}
if (levelsPassed > 8) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
if (levelsPassed > 16) {
gotoAndStop (4);
}
if (levelsPassed > 24) {
gotoAndStop (5);
}
Symbol 315 MovieClip Frame 2
pass1 = 0;
i = 0;
while (i < 8) {
if (_root.so.data[("level" + i) + "passed"]) {
pass1++;
}
i++;
}
z0._visible = false;
if (pass1 > 6) {
z0._visible = true;
}
setActions();
Instance of Symbol 302 MovieClip "z0" in Symbol 315 MovieClip Frame 2
on (release) {
_parent.nextFrame();
}
Symbol 315 MovieClip Frame 3
pass2 = 0;
i = 0;
while (i < 8) {
if (_root.so.data[("level" + (i + 8)) + "passed"]) {
pass2++;
}
i++;
}
z1._visible = false;
if (pass2 > 6) {
z1._visible = true;
}
setActions();
Instance of Symbol 302 MovieClip "z1" in Symbol 315 MovieClip Frame 3
on (release) {
_parent.nextFrame();
}
Instance of Symbol 308 MovieClip in Symbol 315 MovieClip Frame 3
on (release) {
_parent.prevFrame();
}
Symbol 315 MovieClip Frame 4
pass3 = 0;
i = 0;
while (i < 8) {
if (_root.so.data[("level" + (i + 16)) + "passed"]) {
pass3++;
}
i++;
}
z2._visible = false;
if (pass3 > 6) {
z2._visible = true;
}
setActions();
Instance of Symbol 302 MovieClip "z2" in Symbol 315 MovieClip Frame 4
on (release) {
_parent.nextFrame();
}
Symbol 315 MovieClip Frame 5
setActions();
Symbol 316 MovieClip [mainMenu] Frame 20
function hideMenu(mc) {
i = 1;
while (i < 8) {
if (this["button" + i] != mc) {
this["button" + i].x = -300;
this["button" + i].act = false;
}
i++;
}
mc.y = 142;
mc.act = true;
back.a = 100;
back.enabled = true;
menuhidden = true;
}
function showMenu() {
menuhidden = false;
i = 1;
while (i < 8) {
if (this["button" + i] != mc) {
this["button" + i].x = 0;
this["button" + i].y = 100 + (i * 52);
this["button" + i].act = false;
this["button" + i].light.da = 0;
this["button" + i].item.w = 100;
this["button" + i].icon.sprite.gotoAndStop(1);
}
i++;
}
help.a = -10;
about.a = -10;
options.a = -10;
newGame.a = -10;
ngame._visible = false;
}
clouds.swapDepths(getNextHighestDepth());
back.swapDepths(getNextHighestDepth());
cursor.swapDepths(getNextHighestDepth());
stop();
startDrag (cursor, true);
Mouse.hide();
cursor.onEnterFrame = function () {
if (ASnative(800, 2) /* [Key] isDown */(2)) {
Mouse.hide();
startDrag (this, true);
this.swapDepths(this._parent.getNextHighestDepth());
}
};
if (puzzleNextLevel) {
puzzleNextLevel = false;
ngame.puzzleNextLevel = true;
ngame.swapDepths(getNextHighestDepth());
cursor.swapDepths(getNextHighestDepth());
ngame._visible = true;
back._visible = true;
back.a = (back._alpha = 100);
} else {
showMenu();
}
Instance of Symbol 280 MovieClip "clouds" in Symbol 316 MovieClip [mainMenu] Frame 20
onClipEvent (enterFrame) {
_x = (_x + ((595 - _x) / 20));
}
Instance of Symbol 288 MovieClip "button1" in Symbol 316 MovieClip [mainMenu] Frame 20
onClipEvent (load) {
item.title = "Play";
icon.gotoAndStop(2);
t = parseInt(_name.substr(6, 1));
x = _x;
act = false;
}
onClipEvent (enterFrame) {
t = t + 0.2;
_yscale = ((Math.sin(t) * 2) + 100);
_xscale = ((Math.sin(t) * 2) + 100);
_y = (_y + ((y - _y) / 10));
_x = (_x + ((x - _x) / 10));
if (act) {
item.w = 120;
light.da = 100;
}
}
on (rollOver, dragOver) {
light.da = 100;
item.w = 120;
icon.sprite.gotoAndStop(2);
}
on (rollOut, dragOut) {
if (!act) {
light.da = 0;
item.w = 100;
icon.sprite.gotoAndStop(1);
}
}
on (release, releaseOutside) {
if (!_parent.menuhidden) {
_parent.attachMovie("newGame", "newGame", _parent.getNextHighestDepth());
_parent.cursor.swapDepths(_parent.getNextHighestDepth());
_parent.hideMenu(this);
menuSound = new Sound();
menuSound.attachSound("menu_in");
if (!_root.so.data.soundMuted) {
menuSound.start();
}
}
}
Instance of Symbol 288 MovieClip "button2" in Symbol 316 MovieClip [mainMenu] Frame 20
onClipEvent (load) {
item.title = "Options";
icon.gotoAndStop(3);
t = parseInt(_name.substr(6, 1));
x = _x;
act = false;
}
onClipEvent (enterFrame) {
t = t + 0.2;
_yscale = ((Math.sin(t) * 2) + 100);
_xscale = ((Math.sin(t) * 2) + 100);
_y = (_y + ((y - _y) / 10));
_x = (_x + ((x - _x) / 10));
if (act) {
item.w = 120;
light.da = 100;
}
}
on (rollOver, dragOver) {
light.da = 100;
item.w = 120;
icon.sprite.gotoAndStop(2);
}
on (rollOut, dragOut) {
if (!act) {
light.da = 0;
item.w = 100;
icon.sprite.gotoAndStop(1);
}
}
on (release, releaseOutside) {
if (!_parent.menuhidden) {
_parent.attachMovie("options", "options", _parent.getNextHighestDepth());
_parent.cursor.swapDepths(_parent.getNextHighestDepth());
_parent.hideMenu(this);
menuSound = new Sound();
menuSound.attachSound("menu_in");
if (!_root.so.data.soundMuted) {
menuSound.start();
}
}
}
Instance of Symbol 288 MovieClip "button3" in Symbol 316 MovieClip [mainMenu] Frame 20
onClipEvent (load) {
item.title = "Help";
icon.gotoAndStop(4);
t = parseInt(_name.substr(6, 1));
x = _x;
act = false;
}
onClipEvent (enterFrame) {
t = t + 0.2;
_yscale = ((Math.sin(t) * 2) + 100);
_xscale = ((Math.sin(t) * 2) + 100);
_y = (_y + ((y - _y) / 10));
_x = (_x + ((x - _x) / 10));
if (act) {
item.w = 120;
light.da = 100;
}
}
on (rollOver, dragOver) {
light.da = 100;
item.w = 120;
icon.sprite.gotoAndStop(2);
}
on (rollOut, dragOut) {
if (!act) {
light.da = 0;
item.w = 100;
icon.sprite.gotoAndStop(1);
}
}
on (release, releaseOutside) {
if (!_parent.menuhidden) {
_parent.attachMovie("help", "help", _parent.getNextHighestDepth());
_parent.cursor.swapDepths(_parent.getNextHighestDepth());
_parent.hideMenu(this);
menuSound = new Sound();
menuSound.attachSound("menu_in");
if (!_root.so.data.soundMuted) {
menuSound.start();
}
}
}
Instance of Symbol 288 MovieClip "button4" in Symbol 316 MovieClip [mainMenu] Frame 20
onClipEvent (load) {
item.title = "About";
icon.gotoAndStop(0);
t = parseInt(_name.substr(6, 1));
x = _x;
act = false;
}
onClipEvent (enterFrame) {
t = t + 0.2;
_yscale = ((Math.sin(t) * 2) + 100);
_xscale = ((Math.sin(t) * 2) + 100);
_y = (_y + ((y - _y) / 10));
_x = (_x + ((x - _x) / 10));
if (act) {
item.w = 120;
light.da = 100;
}
}
on (rollOver, dragOver) {
light.da = 100;
item.w = 120;
icon.sprite.gotoAndStop(2);
}
on (rollOut, dragOut) {
if (!act) {
light.da = 0;
item.w = 100;
icon.sprite.gotoAndStop(1);
}
}
on (release, releaseOutside) {
if (!_parent.menuhidden) {
_parent.attachMovie("about", "about", _parent.getNextHighestDepth());
_parent.cursor.swapDepths(_parent.getNextHighestDepth());
_parent.hideMenu(this);
menuSound = new Sound();
menuSound.attachSound("menu_in");
if (!_root.so.data.soundMuted) {
menuSound.start();
}
}
}
Instance of Symbol 269 MovieClip "back" in Symbol 316 MovieClip [mainMenu] Frame 20
onClipEvent (load) {
_alpha = 0;
a = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
if (_alpha < 4) {
_alpha = 0;
_visible = false;
} else {
_visible = true;
}
if (_parent.ngame._visible) {
a = 100;
}
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
if (a) {
menuSound = new Sound();
menuSound.attachSound("menu_out");
if (!_root.so.data.soundMuted) {
menuSound.start();
}
}
a = 0;
if (_parent.menuhidden || (_root.backButtonActive)) {
if (_root.backButtonActive) {
_root.backButtonActive = true;
}
_parent.showMenu();
}
}
Instance of Symbol 315 MovieClip "ngame" in Symbol 316 MovieClip [mainMenu] Frame 20
onClipEvent (load) {
if (!puzzleNextLevel) {
_visible = false;
} else {
_visible = true;
_parent.back._visible = true;
puzzleNextLevel = false;
}
}
Symbol 323 MovieClip [newGame] Frame 1
a = 100;
_alpha = 0;
onEnterFrame = function () {
_alpha = (_alpha + ((a - _alpha) / 10));
if (_alpha < 0) {
removeMovieClip(this);
}
};
Instance of Symbol 319 MovieClip in Symbol 323 MovieClip [newGame] Frame 1
onClipEvent (load) {
_alpha = 0;
if (_root.so.data.playedTimerMode) {
a = 100;
} else {
a = 50;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
if (_root.so.data.playedTimerMode) {
a = 0;
_root.playMode = "puzzle";
_parent._visible = false;
_parent._parent.ngame._visible = true;
_parent._parent.ngame.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.cursor.swapDepths(_parent._parent.getNextHighestDepth());
} else {
_root.mainMenu.warn.play();
}
}
Instance of Symbol 322 MovieClip in Symbol 323 MovieClip [newGame] Frame 1
onClipEvent (load) {
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
a = 0;
_root.playMode = "timer";
_root.startPlaying();
}
Symbol 351 MovieClip Frame 313
onMouseUp = function () {
_root.nextFrame();
};
Symbol 351 MovieClip Frame 792
_root.nextFrame();
Symbol 357 MovieClip Frame 1
stop();
Symbol 366 Button
on (release) {
if (!_root.gameMenu) {
_root.gameMenu = true;
_root.attachMovie("inGameMenu", "inGameMenu", _root.getNextHighestDepth());
_root.cursor2.swapDepths(_root.getNextHighestDepth());
}
}
on (rollOver, dragOver) {
if (!((_root.youwin._currentframe == 1) && (_root.youwin._visible))) {
_root.youwin._visible = true;
_root.youwin.gotoAndStop(3);
}
}
on (rollOut, dragOut) {
if (!((_root.youwin._currentframe == 1) && (_root.youwin._visible))) {
_root.youwin._visible = false;
}
}
Symbol 372 MovieClip Frame 1
t = 20;
onEnterFrame = function () {
t = t + ((time - t) / 10);
ti = Math.round(t);
};
Symbol 375 MovieClip Frame 1
trace((_root.playMode + " ") + hb.sprite);
if (_root.playMode == "timer") {
this.hb.sprite.gotoAndStop(1);
} else {
this.hb.sprite.gotoAndStop(2);
}
Instance of Symbol 367 MovieClip "hb" in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
stop();
}
on (release) {
gotoAndStop (1);
if (_root.playMode == "timer") {
_root.getHelp();
} else {
_root.levelPassed = false;
_root.bgsound.stop();
_root.bgsound.attachSound("MUS1");
if (!_root.so.data.soundMuted) {
_root.bgsound.start(0, 1000);
}
removeMovieClip(_root.lights);
removeMovieClip(_root.tiles);
removeMovieClip(_root.floor);
removeMovieClip(_root.rays);
removeMovieClip(_root.effects);
removeMovieClip(_root.personages);
removeMovieClip(_root.cursor2);
removeMovieClip(_root.youwin);
removeMovieClip(_root.splashx);
_root.puzzleNextLevel = true;
_root.gotoAndStop(5);
_root.gameMenu = false;
}
}
on (press) {
gotoAndStop (3);
}
on (rollOver, dragOver) {
gotoAndStop (2);
if (!((_root.youwin._currentframe == 1) && (_root.youwin._visible))) {
_root.youwin._visible = true;
if (_root.playMode == "timer") {
_root.youwin.gotoAndStop(2);
} else {
_root.youwin.gotoAndStop(4);
}
}
}
on (rollOut, dragOut) {
gotoAndStop (1);
if (!((_root.youwin._currentframe == 1) && (_root.youwin._visible))) {
_root.youwin._visible = false;
}
}
Instance of Symbol 374 MovieClip "rg" in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
function shortStart() {
_visible = true;
t = 0;
setTimeout(hideGlow, 500);
}
function hideGlow() {
_visible = false;
}
t = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
t = t + 0.2;
_alpha = ((Math.sin(t) * 50) + 50);
}
}
Symbol 380 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip [HiScores] in Symbol 380 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 385 MovieClip Frame 1
onRelease = function () {
getURL ("http://picasogames.com", "_blank");
};
Symbol 385 MovieClip Frame 85
_global.picasofinished();
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 30
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
score = 0;
onEnterFrame = function () {
tscore = tscore + ((score - tscore) / 3);
yourscore = Math.round(tscore);
};
Instance of Symbol 151 MovieClip in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
title = "Menu";
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
_root.levelPassed = false;
_root.bgsound.stop();
_root.bgsound.attachSound("MUS1");
if (!_root.so.data.soundMuted) {
_root.bgsound.start(0, 1000);
}
_root.gotoAndStop(5);
_root.gameMenu = false;
removeMovieClip(_root.lights);
removeMovieClip(_root.tiles);
removeMovieClip(_root.floor);
removeMovieClip(_root.rays);
removeMovieClip(_root.effects);
removeMovieClip(_root.personages);
removeMovieClip(_root.cursor2);
removeMovieClip(_root.youwin);
removeMovieClip(_root.splashx);
removeMovieClip(_parent);
}
Instance of Symbol 154 MovieClip in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
title = "New game";
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
_root.gameMenu = false;
_root.lose = false;
_root.lev2 = -1;
_root.antenn.currentlevel = 1;
_root.game = _root.LevelGenerator.generateLevel(_root.lev2);
_root.nextLevel(_root.lev2);
_root.playTime = _root.playTime + 20;
_parent._visible = false;
}
Instance of Symbol 377 MovieClip in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
title = "Submit Score";
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
_parent.gotoAndStop(2);
}
Symbol 405 MovieClip Frame 2
movHiScores.setDetails(86, 0, "prism", false, score, score, " ");
Instance of Symbol 151 MovieClip in Symbol 405 MovieClip Frame 2
onClipEvent (load) {
title = "Menu";
_alpha = 0;
a = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((a - _alpha) / 5));
}
on (rollOver, dragOver) {
filters = [new flash.filters.GlowFilter(16777215, 1, 4, 4, 1, 2, false, false)];
}
on (rollOut, dragOut) {
filters = [];
}
on (release, releaseOutside) {
_root.gameMenu = false;
removeMovieClip(_root.lights);
removeMovieClip(_root.tiles);
removeMovieClip(_root.floor);
removeMovieClip(_root.rays);
removeMovieClip(_root.effects);
removeMovieClip(_root.personages);
removeMovieClip(_root.cursor2);
removeMovieClip(_root.youwin);
removeMovieClip(_root.splashx);
_root.levelPassed = false;
_root.bgsound.stop();
_root.bgsound.attachSound("MUS1");
_root.bgsound.start(0, 1000);
_root.gotoAndStop(5);
removeMovieClip(_parent);
}
Instance of Symbol 83 MovieClip [HiScores] "movHiScores" in Symbol 405 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 413 MovieClip Frame 1
stop();