Frame 1
stopAllSounds();
stop();
Instance of Symbol 58 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
delete this.onEnterFrame;
_root.gotoAndPlay(2);
} else {
this.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * this._totalframes));
}
}
Frame 2
mysound = new Sound(this);
mysound.attachSound("m\u00FCzik");
mysound.start(0, 99);
Frame 3
fscommand ("allowscale", false);
wipe = new Sound(_root.mySound);
wipe.attachSound("wipe");
level = 1;
stop();
Instance of Symbol 70 MovieClip in Frame 3
onClipEvent (enterFrame) {
text = ((int(_parent.getBytesLoaded() / 1000) add " KBYTES OF ") add int(_parent.getBytesTotal() / 1000)) add " TILT LOADED ...";
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
_parent.gotoAndPlay(4);
}
}
Frame 4
function buildMap(map, exit) {
var _local3 = map;
getwh(level);
mapWidth = _local3[0].length;
mapHeight = _local3.length;
var _local2 = 0;
while (_local2 < mapHeight) {
var _local1 = 0;
while (_local1 < mapWidth) {
this.attachMovie("tile", (("t_" + _local2) + "_") + _local1, ++d);
t = this[(("t_" + _local2) + "_") + _local1];
t._height = tileH;
t._width = tileW;
t._x = _local1 * tileW;
t._y = _local2 * tileH;
t.w_0._visible = Number(_local3[_local2][_local1].substr(0, 1));
t.w_1._visible = Number(_local3[_local2][_local1].substr(1, 1));
t.w_2._visible = Number(_local3[_local2][_local1].substr(2, 1));
t.w_3._visible = Number(_local3[_local2][_local1].substr(3, 1));
t.exit._visible = false;
_local1++;
}
_local2++;
}
var c = 0;
while (c < exit.length) {
var x = exit[c][0];
var y = exit[c][1];
this[(("t_" + y) + "_") + x].exit._visible = true;
c++;
}
}
function createBall(x, y) {
var _local1 = this;
_local1.attachMovie("ball", "ball" + w, ++w);
var bounds = _local1["b" + w].getBounds(_local1);
var tilex = ((tileW * x) + bounds.xMax);
var tiley = ((tileH * y) + bounds.yMax);
b = _local1["ball" + w];
b._height = tileH;
b._width = tileW;
b._x = tilex;
b._y = tiley;
b.onEnterFrame = function () {
var _local1 = this;
if (moveRight) {
_local1._x = _local1._x + step;
counter++;
if (counter == 4) {
moveRight = false;
playGame = true;
}
}
if (moveLeft) {
_local1._x = _local1._x - step;
counter++;
if (counter == 4) {
moveLeft = false;
playGame = true;
}
}
if (moveDown) {
_local1._y = _local1._y + step;
counter++;
if (counter == 4) {
moveDown = false;
playGame = true;
}
}
if (moveUp) {
_local1._y = _local1._y - step;
counter++;
if (counter == 4) {
moveUp = false;
playGame = true;
}
}
if (playGame) {
var dy = Math.floor((_local1._y + tileH) / tileH);
var uy = Math.floor((_local1._y - tileH) / tileH);
var lx = Math.floor((_local1._x - tileW) / tileW);
var rx = Math.floor((_local1._x + tileW) / tileW);
var _local3 = Math.floor(_local1._x / tileW);
var _local2 = Math.floor(_local1._y / tileH);
if (_local1.direction == "right") {
if (_root[(("t_" + _local2) + "_") + _local3].w_1._visible == false) {
if (_root[(("t_" + _local2) + "_") + rx].w_3._visible == false) {
playGame = false;
moveRight = true;
counter = 0;
}
}
}
if (_local1.direction == "left") {
if (_root[(("t_" + _local2) + "_") + _local3].w_3._visible == false) {
if (_root[(("t_" + _local2) + "_") + lx].w_1._visible == false) {
playGame = false;
moveLeft = true;
counter = 0;
}
}
}
if (_local1.direction == "down") {
if (_root[(("t_" + _local2) + "_") + _local3].w_2._visible == false) {
if (_root[(("t_" + dy) + "_") + _local3].w_0._visible == false) {
playGame = false;
moveDown = true;
counter = 0;
}
}
}
if (_local1.direction == "up") {
if (_root[(("t_" + _local2) + "_") + _local3].w_0._visible == false) {
if (_root[(("t_" + uy) + "_") + _local3].w_2._visible == false) {
playGame = false;
moveUp = true;
counter = 0;
}
}
}
if (_root[(("t_" + _local2) + "_") + _local3].exit._visible == true) {
_root[(("t_" + _local2) + "_") + _local3].exit._visible = false;
_root[(("t_" + _local2) + "_") + _local3].exit.gotoAndStop(2);
wipe.start(0, 1);
ex++;
if (ex == exitCounter) {
nextFrame();
}
}
if ((((moveRight == false) and (moveUp == false)) and (moveDown == false)) and (moveLeft == false)) {
if (Key.isDown(39)) {
_local1.direction = "right";
}
if (Key.isDown(37)) {
_local1.direction = "left";
}
if (Key.isDown(40)) {
_local1.direction = "down";
}
if (Key.isDown(38)) {
_local1.direction = "up";
}
if (Key.isDown(17)) {
level--;
nextFrame();
}
}
}
};
}
function doLevel(lv) {
switch (lv) {
case 1 :
createBall(1, 1);
step = 10;
exitCounter = 1;
return;
case 2 :
createBall(3, 3);
step = 9;
exitCounter = 1;
return;
case 3 :
createBall(1, 4);
step = 9;
exitCounter = 1;
return;
case 4 :
createBall(1, 3);
step = 8;
exitCounter = 1;
return;
case 5 :
createBall(5, 2);
step = 8;
exitCounter = 1;
return;
case 6 :
createBall(6, 4);
step = 7;
exitCounter = 1;
return;
case 7 :
createBall(3, 4);
step = 10;
exitCounter = 5;
return;
case 8 :
createBall(3, 3);
step = 10;
exitCounter = 8;
return;
case 9 :
createBall(3, 3);
step = 10;
exitCounter = 8;
return;
case 10 :
createBall(1, 3);
step = 9;
exitCounter = 6;
return;
case 11 :
createBall(5, 5);
step = 7;
exitCounter = 15;
}
}
function getwh(lv) {
switch (lv) {
case 1 :
tileW = 40;
tileH = 40;
return;
case 2 :
tileW = 36;
tileH = 36;
return;
case 3 :
tileW = 36;
tileH = 36;
return;
case 4 :
tileW = 32;
tileH = 32;
return;
case 5 :
tileW = 32;
tileH = 32;
return;
case 6 :
tileW = 28;
tileH = 28;
return;
case 7 :
tileW = 40;
tileH = 40;
return;
case 8 :
tileW = 40;
tileH = 40;
return;
case 9 :
tileW = 40;
tileH = 40;
return;
case 10 :
tileW = 36;
tileH = 36;
return;
case 11 :
tileW = 28;
tileH = 28;
}
}
myMap1 = [["0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1001", "1010", "1000", "1001", "1100"], ["0000", "0001", "0000", "0000", "0000", "0110"], ["0000", "0101", "0000", "0010", "0000", "0100"], ["0000", "0001", "0010", "0000", "0000", "0110"], ["0000", "0011", "0010", "0010", "0011", "0110"]];
myMap2 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1101", "1000", "1010", "1000", "1100", "1100"], ["0000", "0001", "0000", "0000", "0000", "0010", "0100"], ["0000", "0101", "0000", "0111", "0000", "0000", "0110"], ["0000", "0011", "0000", "0000", "1101", "0000", "0100"], ["0000", "0001", "0000", "0000", "0000", "0000", "0110"], ["0000", "0011", "0010", "0111", "0010", "0010", "0110"]];
myMap3 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1001", "1000", "1110", "1000", "1000", "1110"], ["0000", "0011", "0000", "0010", "0000", "0000", "0100"], ["0000", "0001", "0000", "0000", "0000", "0000", "0111"], ["0000", "0001", "0000", "0000", "0011", "0000", "0100"], ["0000", "0111", "0000", "0000", "0000", "0000", "0100"], ["0000", "0011", "0110", "0010", "0010", "0111", "0110"]];
myMap4 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1001", "1000", "1000", "1010", "1100", "1000", "1100"], ["0000", "0011", "0100", "0000", "0000", "0010", "0000", "0110"], ["0000", "0011", "0000", "0100", "0000", "0000", "0000", "0100"], ["0000", "0001", "0000", "0000", "0000", "0110", "0000", "0110"], ["0000", "0001", "0000", "0100", "0000", "0000", "0000", "0110"], ["0000", "0011", "1100", "0000", "0000", "0000", "0010", "0100"], ["0000", "0011", "0010", "0110", "0010", "0010", "0011", "0110"]];
myMap5 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1101", "1000", "1010", "1100", "1000", "1000", "1110"], ["0000", "0001", "0000", "0000", "0000", "0000", "0000", "0100"], ["0000", "0001", "0010", "0100", "0000", "0000", "0100", "0100"], ["0000", "0001", "0000", "0000", "0110", "0100", "0000", "0110"], ["0000", "0011", "0000", "0000", "0000", "0010", "0000", "0100"], ["0000", "0001", "0000", "0111", "0000", "0000", "0000", "0100"], ["0000", "0011", "0010", "0010", "0110", "0010", "0010", "0111"]];
myMap6 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1011", "1000", "1100", "1000", "1000", "1010", "1100", "1000", "1110"], ["0000", "0001", "0110", "0000", "0000", "0010", "0000", "0000", "0000", "0101"], ["0000", "0001", "0000", "0000", "0000", "0000", "0100", "0100", "0000", "0100"], ["0000", "0011", "0100", "0000", "0010", "0000", "0011", "0000", "0000", "0110"], ["0000", "0001", "0000", "0000", "0010", "0000", "0010", "0100", "0000", "0100"], ["0000", "0001", "0000", "0000", "0100", "0100", "0000", "0010", "0000", "0110"], ["0000", "0001", "1001", "0010", "0000", "0010", "0000", "0000", "0000", "0100"], ["0000", "0011", "0000", "0000", "0010", "0100", "0000", "0000", "0010", "0100"], ["0000", "0011", "0010", "0010", "0110", "0010", "0010", "0010", "0110", "0110"]];
myMap7 = [["0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1011", "1100", "1000", "1010", "1100"], ["0000", "0001", "0000", "0000", "0100", "0100"], ["0000", "0101", "0100", "0010", "0000", "0100"], ["0000", "0001", "0000", "0000", "0000", "0110"], ["0000", "0111", "0010", "0110", "0010", "0110"]];
myMap8 = [["0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1011", "1000", "1010", "1100", "1100"], ["0000", "0001", "0000", "0100", "0000", "0100"], ["0000", "0101", "0000", "0010", "0000", "0110"], ["0000", "0011", "0000", "0001", "0010", "0110"], ["0000", "0011", "0010", "0010", "0010", "0110"]];
myMap9 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1011", "1100", "1000", "1010", "1110"], ["0000", "0101", "0000", "0000", "0010", "0100"], ["0000", "0001", "0010", "0000", "0000", "0110"], ["0000", "0001", "0100", "0100", "0010", "0100"], ["0000", "0111", "0010", "0010", "0010", "0110"]];
myMap10 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1101", "1000", "1100", "1000", "1000", "1100"], ["0000", "0011", "0000", "0010", "0100", "0000", "0110"], ["0000", "0101", "0000", "0000", "0000", "0000", "0100"], ["0000", "0011", "0000", "0000", "0011", "0000", "0111"], ["0000", "0001", "0000", "0010", "0000", "0000", "0100"], ["0000", "0111", "0010", "0010", "0110", "0010", "0110"]];
myMap11 = [["0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000"], ["0000", "1001", "1010", "1100", "1000", "1000", "1000", "1110", "1100"], ["0000", "0001", "0000", "0000", "0000", "0100", "0000", "0000", "0100"], ["0000", "0001", "0000", "0000", "0000", "0000", "0000", "0110", "0100"], ["0000", "0111", "0100", "1000", "0000", "0000", "0000", "0000", "0110"], ["0000", "0001", "0000", "0000", "0110", "0000", "0100", "0000", "0100"], ["0000", "0001", "0000", "0000", "0000", "0010", "0000", "0000", "0110"], ["0000", "0001", "0000", "0010", "0000", "0010", "0000", "0000", "0100"], ["0000", "0111", "0010", "0010", "0010", "0010", "0110", "0010", "0110"]];
myExit1 = [[5, 5]];
myExit2 = [[4, 4]];
myExit3 = [[6, 3]];
myExit4 = [[7, 5]];
myExit5 = [[3, 6]];
myExit6 = [[4, 6]];
myExit7 = [[1, 1], [5, 5], [5, 1], [1, 5], [3, 3]];
myExit8 = [[1, 2], [1, 4], [2, 5], [2, 1], [4, 1], [4, 5], [5, 2], [5, 4]];
myExit9 = [[1, 1], [5, 1], [5, 5], [1, 5], [2, 2], [4, 2], [2, 4], [4, 4]];
myExit10 = [[1, 2], [4, 1], [1, 5], [4, 6], [6, 5], [6, 4]];
myExit11 = [[2, 1], [6, 1], [8, 1], [4, 2], [7, 3], [1, 4], [3, 4], [5, 4], [7, 5], [2, 6], [4, 6], [5, 7], [1, 8], [3, 8], [7, 8]];
moveRight = (moveLeft = (moveDown = (moveUp = false)));
playGame = true;
w = 0;
ex = 0;
myMap = _root["myMap" + level];
myExit = _root["myExit" + level];
myText = "Level: " + level;
buildMap(myMap, myExit);
doLevel(level);
stop();
Frame 5
var i = 0;
while (i < mapHeight) {
var j = 0;
while (j < mapWidth) {
removeMovieClip(_root[(("t_" + i) + "_") + j]);
j++;
}
i++;
}
removeMovieClip(ball1);
level++;
if (level > 11) {
_root.gotoAndStop("frameFinal");
} else {
prevFrame();
}
Frame 6
stop();
stopAllSounds();
mysound = new Sound(this);
mysound.attachSound("music_finalscene");
mysound.start(0, 99);
Symbol 20 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 14
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 67 Button
on (release) {
getURL ("http://www.flashfunpages.com");
}
Symbol 75 Button
on (press) {
nextFrame();
}
Symbol 81 Button
on (release) {
getURL ("http://www.flashfunpages.com");
}
Symbol 87 Button
on (release) {
getURL ("http://www.laughnetwork.com");
}
Symbol 94 Button
on (release) {
gotoAndPlay (1);
}
Symbol 100 Button
on (release) {
getURL ("http://lightforce.freestuff.gr/", "_blank");
}
Symbol 101 Button
on (release) {
getURL ("http://www.berkayunal.com", "_blank");
}
Symbol 102 Button
on (release) {
getURL ("http://www.mehmetsaygin.com", "_blank");
}