Frame 1
stop();
level = 1;
playing = 0;
walk = new Sound(_root.mySound);
walk.attachSound("walk");
exit = new Sound(_root.mySound);
exit.attachSound("exit");
loop = new Sound(_root.mySound);
loop.attachSound("loop");
Instance of Symbol 24 MovieClip in Frame 1
onClipEvent (enterFrame) {
text = ((int(_parent.getBytesLoaded() / 1000) add " OF ") add int(_parent.getBytesTotal() / 1000)) add " LOADED ...";
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
_parent.gotoAndStop(2);
}
}
Frame 2
function buildMap(map) {
var _local3 = this;
mapWidth = map[0].length;
mapHeight = map.length;
var _local2 = 0;
while (_local2 < mapHeight) {
var _local1 = 0;
while (_local1 < mapWidth) {
_local3.attachMovie("tile", (("t_" + _local2) + "_") + _local1, ++d);
t = _local3[(("t_" + _local2) + "_") + _local1];
t._x = _local1 * tileW;
t._y = _local2 * tileH;
t.gotoAndStop(map[_local2][_local1]);
t.u._alpha = 0;
t.d._alpha = 0;
t.l._alpha = 0;
t.r._alpha = 0;
_local1++;
}
_local2++;
}
}
function buildShapes(shp) {
var _local3 = _root;
shpWidth = shp[0].length;
shpHeight = shp.length;
var _local2 = 0;
while (_local2 < shpHeight) {
var _local1 = 0;
while (_local1 < shpWidth) {
var shape = shp[_local2][_local1];
switch (shape) {
case 1 :
_local3[(("t_" + _local2) + "_") + _local1].u._alpha = 100;
_local3[(("t_" + _local2) + "_") + _local1].door = 1;
break;
case 2 :
_local3[(("t_" + _local2) + "_") + _local1].d._alpha = 100;
_local3[(("t_" + _local2) + "_") + _local1].door = 2;
break;
case 3 :
_local3[(("t_" + _local2) + "_") + _local1].l._alpha = 100;
_local3[(("t_" + _local2) + "_") + _local1].door = 3;
break;
case 4 :
_local3[(("t_" + _local2) + "_") + _local1].r._alpha = 100;
_local3[(("t_" + _local2) + "_") + _local1].door = 4;
}
_local1++;
}
_local2++;
}
}
function CreateBall(x, y) {
var _local1 = this;
var _local2 = _root;
w++;
_local1.attachMovie("ball", "ball" + w, w);
var bounds = _local1["b" + w].getBounds(_local1);
var tilex = ((30 * x) + bounds.xMax);
var tiley = ((30 * y) + bounds.yMax);
b = _local1["ball" + w];
b._x = int(tilex);
b._y = int(tiley);
b.direction = null;
b.klik = true;
b.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
var dy = Math.floor((_local1._y + 30) / tileH);
var uy = Math.floor((_local1._y - 30) / tileH);
var lx = Math.floor((_local1._x - 30) / tileW);
var rx = Math.floor((_local1._x + 30) / tileW);
var cx = Math.floor(_local1._x / tileW);
var _local3 = Math.floor(_local1._y / tileH);
if (_local2.playGame) {
if (_local2.myMap[_local3][cx] == 3) {
_local1.exit = true;
_local1.gotoAndStop(2);
} else {
_local1.exit = false;
_local1.gotoAndStop(1);
}
if (Key.isDown(38) and _local1.klik) {
_local1.direction = "up";
_local1.klik = false;
}
if (Key.isDown(40) and _local1.klik) {
_local1.direction = "down";
_local1.klik = false;
}
if (Key.isDown(37) and _local1.klik) {
_local1.direction = "left";
_local1.klik = false;
}
if (Key.isDown(39) and _local1.klik) {
_local1.direction = "right";
_local1.klik = false;
}
if (_local1.direction == "up") {
if ((_local2[(("t_" + uy) + "_") + cx].door != 2) and (_local2[(("t_" + _local3) + "_") + cx].door != 1)) {
_local1._y = _local1._y - 30;
_local1.direction = null;
walk.start(0, 1);
if (_local2.myMap[uy][cx] == 1) {
_local1.gotoAndPlay(3);
}
}
}
if (_local1.direction == "down") {
if ((_local2[(("t_" + dy) + "_") + cx].door != 1) and (_local2[(("t_" + _local3) + "_") + cx].door != 2)) {
_local1._y = _local1._y + 30;
_local1.direction = null;
walk.start(0, 1);
if (_local2.myMap[dy][cx] == 1) {
_local1.gotoAndPlay(3);
}
}
}
if (_local1.direction == "left") {
if ((_local2[(("t_" + _local3) + "_") + lx].door != 4) and (_local2[(("t_" + _local3) + "_") + cx].door != 3)) {
_local1._x = _local1._x - 30;
_local1.direction = null;
walk.start(0, 1);
if (_local2.myMap[_local3][lx] == 1) {
_local1.gotoAndPlay(3);
}
}
}
if (_local1.direction == "right") {
if ((_local2[(("t_" + _local3) + "_") + rx].door != 3) and (_local2[(("t_" + _local3) + "_") + cx].door != 4)) {
_local1._x = _local1._x + 30;
_local1.direction = null;
walk.start(0, 1);
if (_local2.myMap[_local3][rx] == 1) {
_local1.gotoAndPlay(3);
}
}
}
if (Key.isDown(17)) {
playGame = false;
nextFrame();
}
if (Key.isDown(9)) {
playGame = false;
level++;
nextFrame();
}
}
};
}
function createLabel() {
this.attachMovie("labelClip", "labelClip", ++w);
labelClip._x = 220;
labelClip._y = 120;
}
function setLevel(lv) {
switch (lv) {
case 1 :
createBall(3, 5);
createBall(10, 5);
myText = "Level 1 'Starry Night";
return;
case 2 :
createBall(1, 6);
createBall(13, 6);
myText = "Level 2 'Eternity";
return;
case 3 :
createBall(1, 2);
createBall(9, 2);
myText = "Level 3 'Rat Race'";
return;
case 4 :
createBall(8, 1);
createBall(6, 6);
myText = "Level 4 'Desert'";
return;
case 5 :
createBall(3, 4);
createBall(11, 4);
myText = "Level 5 'Walk on fire'";
return;
case 6 :
createBall(1, 2);
createBall(10, 5);
myText = "Level 6 'Close to you'";
return;
case 7 :
createBall(1, 1);
createBall(13, 6);
myText = "Level 7 'Step into forever'";
return;
case 8 :
createBall(2, 2);
createBall(10, 4);
myText = " Level 8 'Houses of the holey'";
return;
case 9 :
createBall(2, 2);
createBall(10, 5);
myText = "Level 9 'Redux Reaction'";
return;
case 10 :
createBall(1, 1);
createBall(13, 6);
myText = "Level 10 'Gateway";
return;
case 11 :
createBall(1, 3);
createBall(10, 4);
myText = "Level 11 'Dark Destiny'";
return;
case 12 :
createBall(8, 1);
createBall(6, 6);
myText = "Final Level 'Stereo Vision'";
}
}
myMap1 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1], [1, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 1, 1], [1, 2, 2, 2,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0]];
tileW = 30;
tileH = 30;
w = 2000;
d = 0;
playGame = true;
myMap = _root["myMap" + level];
myShp = _root["myShp" + level];
buildMap(myMap);
buildShapes(myShp);
setlevel(level);
stop();
Instance of Symbol 25 MovieClip "mySound" in Frame 2
onClipEvent (keyUp) {
if (_root.playGame) {
_root.ball2001.klik = true;
_root.ball2002.klik = true;
}
}
onClipEvent (enterFrame) {
if (((_root.ball2001.exit == true) and (_root.ball2002.exit == true)) and _root.playGame) {
_root.playGame = false;
_root.createLabel();
}
}
Frame 3
var i = 0;
while (i < mapHeight) {
var j = 0;
while (j < mapWidth) {
removeMovieClip(_root[(("t_" + i) + "_") + j]);
j++;
}
i++;
}
removeMovieClip(ball2001);
removeMovieClip(ball2002);
removeMovieClip(labelClip);
if (level == 13) {
level = 1;
congrats = "Congratulations, you completed game !";
} else {
congrats = "";
}
prevFrame();
Symbol 6 Button
on (keyPress "<Space>") {
_root.level++;
_root.nextFrame();
}
Symbol 10 MovieClip [labelClip] Frame 10
stop();
Symbol 20 MovieClip [ball] Frame 1
stop();
Symbol 20 MovieClip [ball] Frame 3
_root.playGame = false;
Symbol 20 MovieClip [ball] Frame 19
stop();
_root.nextFrame();
Symbol 30 Button
on (press) {
getURL ("http://www.freestuff.gr/lightforce", "_blank");
}
Symbol 34 Button
on (release) {
if (_root.playing == 1) {
stopAllSounds();
playing = 0;
} else {
loop.start(0, 999);
playing = 1;
}
}