Frame 1
stop();
gameName = "turbospirit";
if ((_url.toLowerCase().substr(0, 4) != "http") && (System.capabilities.os.toLowerCase().indexOf("mac") >= 0)) {
fscommand ("fullscreen", true);
fscommand ("showmenu", false);
Stage.scaleMode = "noScale";
}
if (((((((_url.indexOf("http://arcadetown.com") == 0) || (_url.indexOf("http://www.arcadetown.com") == 0)) || (_url.indexOf("http://heavygames.com") == 0)) || (_url.indexOf("http://www.heavygames.com") == 0)) || (_url.indexOf("http://freewebgames.com") == 0)) || (_url.indexOf("http://www.freewebgames.com") == 0)) || ((_url.indexOf(".at.") != -1) && (_url.indexOf("file://") == 0))) {
_root.moreGamesUrl = "http://www.arcadetown.com";
_root.highscoresUrl = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=turbospirit";
_root.branding = "arcadetown";
_root.reducedBranding = true;
}
if (((((_url.indexOf("http://www.playaholics.com") == 0) || (_url.indexOf("http://playaholics.com") == 0)) || (_url.indexOf("http://www.multiplayaholics.com") == 0)) || (_url.indexOf("http://multiplayaholics.com") == 0)) || ((_url.indexOf(".ph.") != -1) && (_url.indexOf("file://") == 0))) {
_root.moreGamesUrl = "http://www.playaholics.com/games/list/";
_root.highscoresUrl = "http://www.playaholics.com/scores/thisweek/turbospirit/";
_root.branding = "playaholics";
_root.reducedBranding = false;
}
if (((_url.indexOf("http://www.chickstop.com") == 0) || (_url.indexOf("http://chickstop.com") == 0)) || ((_url.indexOf(".cs.") != -1) && (_url.indexOf("file://") == 0))) {
_root.moreGamesUrl = "http://www.chickstop.com/games/list/";
_root.highscoresUrl = "http://www.chickstop.com/scores/this_week/turbospirit/";
_root.branding = "chickstop";
_root.reducedBranding = false;
}
if (((((((_url.indexOf("http://www.happytree.com") == 0) || (_url.indexOf("http://happytree.com") == 0)) || (_url.indexOf("http://www.happytree.nl") == 0)) || (_url.indexOf("http://happytree.nl") == 0)) || (_url.indexOf("http://www.happytreegames.nl") == 0)) || (_url.indexOf("http://happytreegames.nl") == 0)) || ((_url.indexOf(".ht.") != -1) && (_url.indexOf("file://") == 0))) {
_root.moreGamesUrl = "http://www.happytree.com/?site=" + _root.site;
_root.highscoresUrl = "http://www.happytree.com/games/turbospirit/turbospiritscore.php?site=" + _root.site;
_root.branding = "happytree";
_root.customIntro = "introHT";
}
if ((_url.indexOf("http://www.bigfishgames.com") == 0) || ((_url.indexOf(".bf.") != -1) && (_url.indexOf("file://") == 0))) {
_root.moreGamesUrl = "http://www.bigfishgames.com/";
_root.highscoresUrl = "http://www.bigfishgames.com/online/neodelight/readscoreboard.php?game=turbospirit";
_root.branding = "bigfish";
_root.customIntro = "introBF";
}
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = (_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100;
this.percentageDisplay = ("loading.." + Math.min(100, int(_local2 * 4))) + "%";
if (_local2 == 100) {
this.onEnterFrame = undefined;
if (_local1.reducedBranding) {
_local1.gotoAndPlay("skipBranding");
} else if (_local1.customIntro ne "") {
_local1.gotoAndStop(_local1.customIntro);
} else {
_local1.nextFrame();
}
}
};
Frame 3
gotoAndPlay ("skipBranding");
Frame 8
gotoAndPlay ("skipBranding");
Frame 14
gotoAndPlay ("skipBranding");
Frame 47
snd = new Object();
snd.channels = new Array();
snd.loops = new Array();
snd.global = new Sound();
snd.global.setVolume(100);
snd.active = 1;
snd.actMc = 0;
snd.idMc = 0;
snd.mcs = new Array();
snd.channelsAmount = 8;
var i = 0;
while (i < snd.channelsAmount) {
snd.mcs[i] = _root.createEmptyMovieClip("sndMc" + this.idMc, this.idMc++);
snd.channels[i] = new Sound(snd.mcs[i]);
snd.channels[i].onSoundComplete = function () {
var _local1 = this;
_local1.playing = false;
_local1.locked = false;
_local1.fading = false;
_local1.fadeTo = 0;
_local1.fadeSpeed = 0;
};
snd.channels[i].playing = false;
snd.channels[i].id = i;
i++;
}
_root.createEmptyMovieClip("sndMcEvents", this.idMc++);
_root.sndMcEvents.onEnterFrame = function () {
with (_root.snd) {
var i = 0;
while (i < channelsAmount) {
if (channels[i].fading) {
var channel = channels[i];
var newVol = (channel.volume + (channel.fadeSpeed * 100));
newVol = ((channel.fadeSpeed > 0) ? (Math.min(channel.fadeTo, newVol)) : (Math.max(channel.fadeTo, newVol)));
channel.setVolume(channel.volume);
if (newVol == channel.volume) {
channel.fading = false;
}
channel.volume = newVol;
if ((newVol == 0) && (channel.fadeOutFlag)) {
channel.fadeOutFlag = false;
channel.stop();
channel.locked = false;
channel.playing = false;
channel.fading = false;
}
}
i++;
}
}
};
snd.playLoop = function (id, volume) {
var _local2 = volume;
var _local3 = id;
if (_local2 eq "") {
_local2 = 1;
}
var _local1 = this.getChannel();
_local1.attachSound(_local3);
_local1.start(0, 99999);
_local1.setVolume(Math.min(100, _local2 * 100));
_local1.volume = _local2 * 100;
_local1.locked = true;
_local1.libId = _local3;
_local1.playing = true;
this.loops[_local3] = _local1;
return(_local1);
};
snd.fadeChannel = function (channel, to, time) {
var _local1 = channel;
var _local2 = to;
if (_local2 == -1) {
_local1.fadeOutFlag = true;
_local2 = 0;
}
if (time == 0) {
_local1.volume = _local2 * 100;
_local1.setVolume(_local1.volume);
_local1.fading = false;
} else {
_local1.fading = true;
_local1.fadeTo = Math.min(100, _local2 * 100);
_local1.fadeSpeed = (_local2 - _local1.volume) / time;
}
};
snd.playEvent = function (id, volume) {
var _local2 = volume;
if (_local2 eq "") {
_local2 = 1;
}
var _local1 = this.getChannel();
_local1.attachSound(id);
_local1.start(0, 0);
_local1.setVolume(Math.min(100, _local2 * 100));
_local1.volume = _local2 * 100;
_local1.libId = id;
_local1.playing = true;
return(_local1);
};
snd.getChannel = function () {
var _local3 = this;
var oldestPos = -1;
var oldestId = -1;
var _local2 = 0;
while (_local2 < _local3.channels.length) {
var _local1 = _local3.channels[_local2];
if (!_local1.locked) {
if (_local1.playing) {
if (_local1.position > oldestPos) {
oldestPos = _local1.position;
oldestId = _local1.id;
}
} else {
return(_local3.channels[_local2]);
}
}
_local2++;
}
if (oldestId != -1) {
trace("return old: " + oldestId);
return(_local3.channels[oldestId]);
}
trace("##ERROR: SOUND : no free channel..");
return(undefined);
};
snd.stop = function (id) {
var _local2 = this;
var _local3 = id;
if (_local3 eq "") {
return(_local2.stopAll());
}
var _local1 = 0;
while (_local1 < _local2.channels.length) {
if (_local2.channels[_local1].libId == _local3) {
_local2.channels[_local1].stop();
_local2.channels[_local1].locked = false;
_local2.channels[_local1].playing = false;
_local2.channels[_local1].locked = false;
}
_local1++;
}
return(undefined);
};
snd.stopAll = function () {
var _local1 = this;
for (var _local2 in _local1.channels) {
_local1.channels[_local2].stop();
_local1.channels[_local2].locked = false;
_local1.channels[_local2].fading = false;
_local1.channels[_local2].playing = false;
}
};
game = "turbospirit";
Frame 48
_root.sndChannelBass = _root.snd.playLoop("musicIntro");
_root.sndChannelBeat = _root.snd.playLoop("musicIntroBeat", 0);
_root.sndChannelMotors = _root.snd.playLoop("sndMotors", 0);
Frame 63
_root.snd.fadeChannel(_root.sndChannelMotors, 0.5, 10);
Frame 90
_root.snd.fadeChannel(_root.sndChannelMotors, 0.3, 30);
Frame 98
Frame 138
Frame 149
_root.snd.fadeChannel(_root.sndChannelMotors, 0.6, 30);
Frame 194
sndChannelStart = _root.snd.playEvent("sndRaceStart");
_root.snd.fadeChannel(_root.sndChannelMotors, 0, 30);
Frame 276
_root.snd.fadeChannel(_root.sndChannelBeat, 1, 30);
Frame 279
_root.snd.fadeChannel(_root.sndChannelStart, -1, 10);
_root.snd.fadeChannel(_root.sndChannelMotors, -1, 10);
Frame 299
stop();
this.onEnterFrame = function () {
var _local1 = _root;
var _local3 = this;
var _local2 = (_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100;
if (_local2 == 100) {
_local3.percentageDisplay = "";
_local3.onEnterFrame = undefined;
_local1.nextFrame();
} else {
_local3.percentageDisplay = ("loading.." + int(_local2)) + "%";
_local1.snd.fadeChannel(_local1.sndChannelBeat, 0.2, 90);
_local1.snd.fadeChannel(_local1.sndChannelBass, 0.2, 90);
}
};
Frame 300
play();
Frame 301
function ArcadeTown_EncrpytString(strVal) {
var strKey = "aHfEjcDebChGiAfIjDbEjacD";
var nLenKey = strKey.length;
var strZero = "0";
var _local3 = "";
var nTot = strVal.length;
var _local1 = 0;
_local3 = "";
var nCodeVal;
var nCodeKey;
var _local2;
var nChecksum = 0;
nCnt = 0;
while (nCnt < nTot) {
nCodeVal = strVal.charCodeAt(nCnt);
if (nCodeVal >= 128) {
nCodeVal = "X";
}
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nCodeVal % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nCodeVal / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCnt++;
}
nChecksum = nChecksum % 256;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nChecksum % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nChecksum / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
return(_local3);
}
_root.snd.fadeChannel(_root.sndChannelStart, -1, 10);
_root.snd.fadeChannel(_root.sndChannelMotors, -1, 10);
_root.snd.fadeChannel(_root.sndChannelBeat, 1, 0);
_root.snd.fadeChannel(_root.sndChannelBass, 1, 0);
_quality = "medium";
reset = function () {
var _local1 = _root;
_local1.terrains = ["plain", "dirt", "night", "fog"];
_local1.statistics = new Array();
_local1.totalScore = 0;
_local1.races = 0;
for (var i in _local1.terrains) {
_local1.statistics[_local1.terrains[i]] = {score:-1, checkpoints:[], winner:0};
}
Mouse.show();
};
if ((((((((_url.indexOf("http://www.neodelight.") == 0) || (_url.indexOf("http://games.neodelight.") == 0)) || (_url.indexOf("http://dev.neodelight.com") == 0)) || (_url.indexOf("http://ev1.neodelight.com") == 0)) || (_url.indexOf("http://ev2.neodelight.com") == 0)) || (_url.indexOf("http://ev3.neodelight.com") == 0)) || (_url.indexOf("http://neodelight.") == 0)) || ((_url.indexOf(".nd.") != -1) && (_url.indexOf("file://") == 0))) {
demoVersion = false;
} else {
demoVersion = true;
}
if (_root.branding == "arcadetown") {
demoVersion = false;
_root.highscorePlugin = function (score, name) {
var strUsername = name;
var strScore = score;
var _local1 = "hs.asp";
var _local2 = (strUsername + "|") + strScore;
var _local3 = _root.ArcadeTown_EncrpytString(_local2);
getURL ((_local1 + "?") + _local3, "_blank");
};
}
if (_root.branding == "playaholics") {
demoVersion = false;
_root.highscorePlugin = function (score) {
var _local1 = _root;
_local1.submitMc.game = "turbospirit";
_local1.submitMc.score = score;
_local1.submitMc.getURL("http://www.playaholics.com/comp_entry.php", "_top", "POST");
};
}
if (_root.branding == "chickstop") {
demoVersion = false;
_root.highscorePlugin = function (score) {
var _local1 = _root;
_local1.submitMc.game = "turbospirit";
_local1.submitMc.score = score;
_local1.submitMc.getURL("http://www.chickstop.com/comp_entry.php", "_top", "POST");
};
}
if (_root.branding == "happytree") {
demoVersion = false;
}
if (_root.branding == "bigfish") {
demoVersion = false;
}
Frame 302
String.numberFormat = function (num, digits) {
var _local3 = num;
var _local2 = String(int(_local3));
var _local1 = _local2.length - 4;
while (_local1 >= 0) {
_local2 = (_local2.substring(0, _local1 + 1) + ",") + _local2.substr(_local1 + 1);
_local1 = _local1 - 3;
}
if (int(digits) > 0) {
_local2 = _local2 + ".";
_local3 = String(int((_local3 - int(_local3)) * Math.pow(10, digits)));
while (_local3.length < digits) {
_local3 = "0" + _local3;
}
_local2 = _local2 + _local3;
}
return(_local2);
};
reset();
stop();
Frame 308
prevFrame();
Frame 312
prevFrame();
Frame 319
for (var i in terrains) {
var mc = this[terrains[i]];
var score = statistics[terrains[i]].score;
if (int(score) < 0) {
mc.gotoAndStop(1);
} else {
mc.scoreDisplay = String.numberFormat(score) + "\nPOINTS";
mc.gotoAndStop(2);
}
}
totalScoreDisplay = "TOTAL SCORE: " + String.numberFormat(_root.totalScore);
Mouse.show();
stop();
Frame 330
play();
_root.snd.fadeChannel(_root.sndChannelBeat, -1, 30);
_root.snd.fadeChannel(_root.sndChannelBass, -1, 30);
Frame 337
_root.snd.fadeChannel(_root.sndChannelBeat, -1, 30);
_root.snd.fadeChannel(_root.sndChannelBass, -1, 30);
Frame 353
_root.snd.stopAll();
_root.sndChannelMusic = _root.snd.playLoop("music0");
_root.sndChannelSqueal = _root.snd.playLoop("sndSqueal", 0);
_root.sndChannelMotors = _root.snd.playLoop("sndMotors", 0);
_root.snd.fadeChannel(_root.sndChannelMotors, 0.2, 20);
Mouse.hide();
stop();
Frame 354
prevFrame();
Frame 356
Mouse.show();
_root.snd.stopAll();
_root.sndChannelBass = _root.snd.playLoop("musicIntro", 0.7);
_root.sndChannelBeat = _root.snd.playLoop("musicIntroBeat", 0.7);
races++;
if (_root.statistics[_root.level].winner) {
emotion.gotoAndStop(2);
} else {
emotion.gotoAndStop(1);
}
var checkArr = _root.statistics[_root.level].checkpoints;
var totalBonus = 0;
var totalTime = 0;
boniDisplay = "";
timesDisplay = "";
if (checkArr.length == 5) {
finishingBonusDisplay = "FINISHING BONUS: 50,000";
actScore = actScore + 50000;
} else {
finishingBonusDisplay = "";
}
_root.statistics[_root.level].score = _root.actScore;
_root.totalScore = _root.totalScore + _root.actScore;
var i = 0;
while (i < checkArr.length) {
var checkpoint = checkArr[i];
boniDisplay = boniDisplay + (String.numberFormat(checkpoint.bonus) + newline);
timesDisplay = timesDisplay + (String.numberFormat(checkpoint.time / 1000, 2) + "s\n");
totalTime = totalTime + checkpoint.time;
totalBonus = totalBonus + checkpoint.bonus;
i++;
}
var i = checkArr.length;
while (i < 5) {
boniDisplay = boniDisplay + "--\n";
timesDisplay = timesDisplay + "--\n";
i++;
}
boniDisplay = boniDisplay + String.numberFormat(totalBonus);
timesDisplay = timesDisplay + (String.numberFormat(totalTime / 1000, 2) + "s");
if (_root.demoVersion) {
actScoreDisplay = "";
totalScoreDisplay = "";
totalScoreDisplay2 = "TOTAL SCORE: " + String.numberFormat(totalScore);
} else {
actScoreDisplay = "LEVEL SCORE: " + String.numberFormat(actScore);
totalScoreDisplay = "TOTAL SCORE: " + String.numberFormat(totalScore);
totalScoreDisplay2 = "";
}
if (_root.demoVersion) {
nextStep = "playfull";
} else if (races < 4) {
nextStep = "chooselevel";
} else {
var racesWon = 0;
for (var i in terrains) {
if (statistics[terrains[i]].checkpoints.length == 5) {
racesWon++;
}
}
trace("races won: " + racesWon);
if (racesWon == terrains.length) {
nextStep = "champion";
} else {
nextStep = "gameover";
}
}
stop();
Frame 357
prevFrame();
Frame 364
stop();
Frame 372
totalScoreDisplay = "FINAL SCORE: " + totalScore;
_root.statistics[_root.level].score;
for (var i in _root.terrains) {
_root["total" + _root.terrains[i]] = String.numberFormat(_root.statistics[_root.terrains[i]].score);
}
totalScoreDisplay = String.numberFormat(totalScore);
if ((_root.branding == "playaholics") || (_root.branding == "chickstop")) {
gotoAndStop ("playaholicsGameOver");
} else {
stop();
}
Frame 380
stop();
Frame 396
Selection.setFocus("username");
stop();
Symbol 6 Button
on (release) {
getURL ("http://www.neodelight.com?ref=turbospirit&ref_loc=intro", "_BLANK");
}
Symbol 12 MovieClip Frame 1
trace((_parent._currentframe + "/") + _parent._totalframes);
Symbol 12 MovieClip Frame 2
trace((_parent._currentframe + "/") + _parent._totalframes);
Symbol 18 MovieClip Frame 1
startFrame = _parent._currentframe;
Symbol 18 MovieClip Frame 2
vol = (1 - ((_parent._currentFrame - startFrame) / (_parent._totalFrames - startFrame))) * 100;
if (vol < 0) {
vol = 0;
}
_parent.snd.setVolume(vol);
Symbol 18 MovieClip Frame 3
gotoAndPlay ("loop");
Symbol 19 MovieClip Frame 1
snd = new Sound(this);
snd.setVolume(100);
_parent.stop();
Symbol 19 MovieClip Frame 123
stop();
_parent.play();
Symbol 23 Button
on (release) {
getURL ("http://www.happytree.com", "_blank");
}
Symbol 27 MovieClip Frame 1
_parent.stop();
Symbol 27 MovieClip Frame 123
stop();
_parent.play();
Symbol 31 MovieClip Frame 1
_parent.stop();
quality = _root._quality;
_root._quality = "BEST";
Symbol 31 MovieClip Frame 104
_root._quality = quality;
stop();
_parent.play();
Symbol 37 MovieClip Frame 1
stop();
Symbol 43 Button
on (release, keyPress "<Space>") {
_root.gotoAndPlay("game");
}
Symbol 44 MovieClip Frame 10
stop();
Symbol 58 MovieClip Frame 6
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 4
gotoAndPlay (2);
Symbol 195 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 215 Button
on (release) {
if (_root.demoVersion) {
_root.level = "plain";
_root.gotoAndPlay("startdemo");
} else {
_root.gotoAndStop("chooselevel");
}
}
Symbol 218 Button
on (press) {
if (_root.demoVersion) {
_root.gotoAndStop("helpdemo");
} else {
_root.gotoAndStop("help");
}
}
Symbol 220 Button
on (press) {
if (_root.highscoresUrl ne "") {
getURL (_root.highscoresUrl, "_top");
} else {
getURL ("http://www.neodelight.com/highscores_turbospirit_.html", "_top");
}
}
Symbol 230 Button
on (release) {
if (_root.moreGamesUrl ne "") {
getURL (_root.moreGamesUrl, "_top");
} else {
getURL ((("http://www.neodelight.com/?ref=moregames&ref_game=" + _root.game) + "&ref_ver=") + _root.version, "_top");
}
}
Symbol 240 Button
on (release) {
var s = new Sound();
s.setVolume(0);
_root.snd.active = 0;
nextFrame();
}
Symbol 245 Button
on (release) {
_root.snd.active = 1;
prevFrame();
}
Symbol 247 Button
on (release) {
var s = new Sound();
s.setVolume(100);
_root.snd.active = 1;
prevFrame();
}
Symbol 248 MovieClip Frame 1
stop();
var s = new Sound();
if (s.getVolume() == 0) {
nextFrame();
}
Symbol 254 Button
on (release) {
getURL ("http://www.neodelight.com/webmaster", "_blank");
}
Symbol 258 MovieClip Frame 1
#initclip 1
_global.api = new Object();
_global.api.highscore = new Object();
_global.api.highscore.initSession = function () {
var _local1 = this;
_local1.session = "";
while (_local1.session.length < 20) {
_local1.session = _local1.session + _local1.charTable.charAt(Math.round(Math.random() * (_local1.charTable.length - 4)));
}
_local1.charTableIndex = new Array();
var _local2 = 0;
while (_local2 < _local1.charTable.length) {
_local1.charTableIndex[_local1.charTable.charCodeAt(_local2)] = _local2;
_local2++;
}
};
_global.api.highscore.submit = function (pGame, pDisciple, pScore0, pScore1) {
var _local2 = this;
var _local1 = ("g=" + pGame) + "&";
_local1 = _local1 + (("d=" + pDisciple) + "&");
_local1 = _local1 + (("s0=" + pScore0) + "&");
_local1 = _local1 + (("s1=" + pScore1) + "&");
_local1 = _local1 + ("se=" + escape(session));
_local1 = _local1 + "&c=42";
var _local3 = (_local2.urlSubmit + "?s=") + escape(_local2.encrypt(_local2.encrypt(_local1, _local2.keystring), _local2.keystring2)).split("%").join("_");
trace(_local3);
getURL (_local3, "_blank");
};
_global.api.highscore.encrypt = function (text, pKey) {
var _local2 = this;
var crypt = "";
var checkSum = 0;
var shift;
var _local3;
var _local1 = 0;
while (_local1 < text.length) {
char = _local2.charTableIndex[text.charCodeAt(_local1)];
shift = _local2.charTableIndex[pKey.charCodeAt(_local1 % pKey.length)];
_local3 = (char + shift) + checkSum;
_local3 = _local3 % _local2.charTable.length;
crypt = crypt + _local2.charTable.charAt(_local3);
checkSum = checkSum + _local3;
_local1++;
}
checkSum = checkSum % _local2.charTable.length;
return((crypt + "") + _local2.charTable.charAt(checkSum));
};
_global.api.highscore.charTable = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&=.";
_global.api.highscore.keystring = "whytheheckdoyouwasteyourtimehackingthishighscorelist";
_global.api.highscore.keystring2 = "AnotherKey4You2FindOut4815jiagIOm30JK";
_global.api.highscore.urlSubmit = "http://www.neodelight.com/v4/high_enter.php";
if (_root.branding == "bigfish") {
_global.api.highscore.urlSubmit = "http://www.bigfishgames.com/online/neodelight/submitscore.php";
}
_global.api.highscore.initSession();
#endinitclip
_visible = false;
Symbol 261 Button
on (press) {
_root.gotoAndStop("menu");
}
Symbol 280 Button
on (release) {
_root.level = _name;
_root.gotoAndStop("start");
}
Symbol 284 MovieClip Frame 1
stop();
Symbol 290 Button
on (release) {
_root.level = _name;
_root.gotoAndStop("start");
}
Symbol 297 Button
on (release) {
_root.level = _name;
_root.gotoAndStop("start");
}
Symbol 304 Button
on (release) {
_root.level = _name;
_root.gotoAndStop("start");
}
Symbol 321 MovieClip Frame 1
this.lvls = new Array();
this.lvls.plain = new Array([0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 5, 6], [0, 10, 1], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 7], [2, 0, 7], [3, 0, 7], [4, 0, 7], [3, 0, 7], [2, 0, 0], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0], [2, 0, 7], [4, 0, 7], [6, 0, 7], [8, 0, 7], [6, 0, 7], [4, 0, 0], [2, 0, 51], [1, 0, 52], [0, 0, 0], [0, 0, 0], [-2, 7, 0], [-4, 7, 0], [-5, 7, 0], [-4, 7, 0], [-2, 0, 0], [0, 0, 0], [2, 0, 7], [3, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [3, 0, 0], [2, 0, 0], [1, 0, 0], [0, 20, 0], [0, 0, 0], [0, 0, 0], [0, 21, 0], [1, 0, 7], [2, 0, 7], [3, 0, 7], [2, 0, 7], [1, 0, 0], [0, 2, 1], [-2, 0, 0], [-3, 7, 0], [-4, 7, 0], [-5, 7, 0], [-6, 7, 0], [-7, 7, 0], [-8, 7, 0], [-8, 7, 0], [-8, 7, 0], [-8, 7, 0], [-8, 7, 0], [-7, 7, 0], [-6, 7, 0], [-5, 7, 0], [-4, 0, 0], [-3, 0, 0], [-2, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 55, 0], [0, 53, 0], [0, 0, 54], [0, 0, 0], [0, 58, 50], [0, 0, 51], [0, 59, 0], [0, 0, 0], [0, 4, 9], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0], [2, 52, 7], [4, 55, 7], [6, 0, 7], [6, 0, 7], [6, 0, 7], [4, 51, 7], [2, 0, 0], [0, 0, 0], [-2, 7, 52], [-4, 7, 57], [-6, 7, 0], [-8, 7, 0], [-10, 7, 58], [-8, 7, 59], [-6, 7, 0], [-4, 7, 0], [2, 0, 0], [0, 0, 0], [0, 0, 52], [0, 53, 54], [0, 0, 0], [1, 57, 7], [2, 58, 7], [3, 56, 7], [2, 0, 7], [-2, 7, 0], [-5, 7, 0], [-8, 7, 0], [-10, 7, 0], [-8, 7, 0], [-7, 7, 0], [-6, 7, 0], [-5, 7, 0], [-4, 7, 0], [-3, 7, 0], [-2, 7, 54], [-3, 7, 53], [-3, 7, 0], [-3, 7, 52], [-3, 0, 0], [-2, 0, 0], [-1, 54, 53], [0, 0, 54], [0, 0, 0], [0, 11, 1], [0, 0, 0], [0, 54, 0], [0, 0, 0], [1, 0, 0], [1, 0, 0], [2, 0, 0], [2, 20, 0], [3, 0, 7], [3, 0, 7], [3, 0, 7], [3, 0, 7], [3, 0, 0], [2, 0, 22], [2, 0, 0], [2, 0, 0], [1, 0, 0], [1, 23, 0], [0, 0, 0], [-1, 0, 0], [-1, 0, 0], [-2, 3, 8], [-2, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 1, 2], [0, 0, 0], [1, 0, 0], [2, 0, 7], [3, 0, 7], [4, 51, 7], [5, 0, 7], [6, 54, 7], [7, 0, 7], [8, 57, 7], [9, 0, 7], [10, 0, 7], [9, 0, 7], [8, 0, 7], [7, 0, 7], [6, 0, 7], [5, 55, 7], [4, 0, 7], [4, 0, 7], [3, 0, 7], [3, 0, 7], [2, 0, 0], [2, 0, 0], [1, 0, 20], [1, 53, 0], [0, 0, 0], [0, 51, 0], [0, 0, 0], [0, 0, 20], [0, 0, 0], [-1, 0, 0], [-3, 7, 0], [-5, 7, 54], [-7, 7, 0], [-8, 7, 0], [-8, 7, 0], [-7, 7, 50], [-6, 7, 51], [-4, 0, 0], [-2, 57, 53], [-1, 0, 57], [0, 0, 0], [0, 0, 0], [0, 4, 9], [0, 0, 0], [0, 0, 51], [0, 0, 0], [0, 0, 0], [0, 23, 24], [0, 0, 0], [0, 51, 52], [0, 54, 0], [-2, 7, 54], [-4, 7, 55], [-6, 7, 0], [-8, 7, 0], [-6, 7, 54], [-4, 7, 0], [-2, 0, 57], [0, 58, 59], [2, 57, 54], [4, 56, 7], [6, 55, 7], [8, 0, 7], [6, 53, 7], [4, 51, 7], [2, 50, 0], [1, 52, 51], [0, 0, 0], [0, 0, 57], [0, 56, 0], [0, 58, 59], [1, 0, 57], [1, 55, 0], [2, 52, 53], [2, 0, 7], [3, 51, 7], [3, 0, 7], [5, 53, 7], [8, 56, 7], [10, 0, 7], [10, 52, 7], [10, 0, 7], [7, 57, 7], [4, 58, 7], [3, 0, 7], [2, 0, 7], [2, 56, 0], [2, 0, 0], [2, 0, 51], [2, 58, 0], [2, 59, 56], [2, 0, 0], [2, 52, 51], [1, 55, 0], [1, 0, 0], [0, 0, 0], [0, 3, 8], [0, 0, 0], [0, 0, 0], [-2, 7, 0], [-4, 7, 0], [-6, 7, 52], [-4, 7, 0], [-2, 55, 54], [0, 0, 56], [2, 57, 7], [4, 0, 7], [6, 59, 7], [8, 58, 7], [6, 0, 7], [4, 56, 7], [2, 0, 0], [0, 54, 55], [-2, 7, 0], [-4, 7, 52], [-6, 7, 0], [-8, 7, 51], [-10, 7, 0], [-8, 7, 0], [-6, 7, 50], [-4, 7, 0], [-2, 7, 0], [-2, 7, 52], [-2, 7, 53], [-3, 7, 0], [-4, 7, 54], [-5, 7, 0], [-7, 7, 0], [-9, 7, 56], [-10, 7, 55], [-10, 7, 0], [-10, 7, 0], [-9, 7, 0], [-9, 7, 0], [-7, 7, 0], [-5, 7, 0], [-2, 0, 0], [0, 51, 50], [0, 58, 59], [0, 57, 0], [0, 0, 0], [0, 0, 0], [0, 11, 1], [0, 0, 0], [-1, 0, 0], [-1, 0, 0], [-2, 55, 51], [-2, 0, 52], [-3, 0, 0], [-3, 53, 65], [-3, 7, 64], [-4, 7, 0], [-4, 7, 65], [-4, 7, 0], [-4, 7, 0], [-4, 7, 0], [-3, 0, 54], [-3, 51, 50], [-3, 0, 0], [-3, 52, 63], [-3, 55, 59], [-3, 65, 0], [-2, 0, 64], [-2, 0, 0], [-2, 56, 52], [-1, 61, 65], [0, 60, 63], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [-3, 7, 60], [-5, 7, 61], [-7, 7, 63], [-4, 7, 51], [-1, 65, 52], [2, 64, 65], [5, 0, 7], [8, 0, 7], [10, 0, 7], [12, 65, 7], [13, 64, 7], [10, 59, 7], [7, 0, 7], [3, 61, 0], [1, 0, 62], [0, 64, 63], [0, 65, 59], [2, 63, 0], [4, 58, 58], [7, 57, 7], [8, 0, 7], [5, 51, 7], [2, 61, 64], [-1, 65, 52], [-4, 7, 56], [-7, 7, 55], [-8, 7, 0], [-9, 7, 62], [-7, 7, 59], [-4, 7, 58], [-1, 64, 0], [2, 60, 61], [5, 64, 7], [7, 65, 7], [8, 50, 7], [7, 0, 7], [7, 51, 7], [7, 0, 7], [7, 65, 7], [5, 64, 7], [3, 65, 65], [2, 63, 62], [1, 62, 61], [0, 65, 64], [0, 64, 65], [0, 54, 55], [0, 0, 64], [0, 51, 54], [0, 0, 65], [0, 0, 64], [0, 0, 0], [0, 0, 0], [0, 21, 22], [0, 0, 65], [0, 64, 58], [3, 61, 60], [6, 63, 7], [9, 60, 7], [12, 62, 7], [11, 63, 7], [10, 64, 7], [9, 60, 7], [7, 61, 7], [5, 62, 7], [3, 64, 60], [2, 65, 64], [1, 0, 65], [0, 0, 0], [0, 23, 24], [0, 56, 65], [0, 64, 57], [3, 62, 61], [6, 60, 7], [9, 62, 7], [12, 63, 7], [11, 62, 7], [10, 63, 7], [7, 62, 7], [4, 61, 7], [2, 63, 64], [0, 60, 65], [0, 0, 0], [-3, 61, 65], [-6, 7, 64], [-9, 7, 0], [-6, 7, 50], [-3, 54, 52], [-2, 0, 54], [1, 59, 64], [2, 65, 51], [2, 0, 64], [2, 64, 65], [2, 61, 62], [2, 62, 63], [3, 65, 63], [3, 60, 61], [3, 100, 1], [3, 100, 1], [3, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 61, 63], [0, 63, 64], [0, 62, 62], [0, 61, 63], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 61, 50], [1, 63, 62], [2, 64, 65], [2, 65, 54], [2, 0, 0], [2, 0, 0], [1, 0, 0], [0, 0, 0], [0, 11, 1], [0, 0, 0], [0, 0, 64], [0, 54, 65], [0, 0, 64], [2, 0, 7], [3, 0, 7], [6, 65, 7], [3, 0, 7], [2, 64, 65], [0, 65, 64], [0, 20, 20], [0, 64, 0], [2, 0, 65], [4, 0, 7], [7, 0, 7], [4, 0, 7], [2, 21, 22], [0, 0, 65], [2, 65, 7], [3, 61, 7], [7, 55, 7], [6, 54, 7], [5, 0, 7], [2, 62, 63], [-2, 64, 51], [-3, 7, 0], [-5, 7, 52], [-4, 7, 0], [-3, 7, 58], [-2, 7, 59], [-3, 7, 51], [-7, 7, 0], [-3, 7, 60], [0, 65, 64], [0, 62, 0], [0, 63, 52], [0, 57, 55], [0, 59, 62], [0, 0, 58], [-3, 7, 60], [-6, 7, 55], [-8, 7, 59], [-7, 7, 63], [-5, 7, 57], [-3, 7, 64], [-1, 60, 61], [0, 63, 56], [0, 53, 52], [0, 0, 64], [2, 51, 0], [3, 65, 7], [4, 0, 7], [4, 0, 7], [4, 54, 7], [4, 54, 7], [4, 0, 7], [3, 0, 7], [3, 0, 7], [3, 0, 7], [3, 0, 7], [3, 0, 0], [0, 2, 1], [-3, 7, 0], [-6, 7, 0], [-9, 7, 0], [-12, 7, 55], [-13, 7, 56], [-12, 7, 0], [-10, 7, 58], [-8, 7, 59], [-5, 7, 51], [-2, 64, 0], [-1, 56, 52], [2, 0, 65], [4, 0, 7], [5, 0, 7], [4, 0, 7], [2, 55, 54], [1, 0, 0], [0, 59, 0], [0, 0, 58], [0, 58, 57], [0, 0, 53], [0, 0, 0], [3, 52, 7], [7, 51, 7], [9, 0, 7], [6, 54, 54], [3, 55, 56], [2, 56, 57], [0, 1, 2], [3, 52, 7], [5, 53, 7], [4, 54, 7], [2, 55, 7], [1, 59, 7], [2, 58, 7], [5, 54, 7], [7, 52, 7], [10, 50, 7], [12, 51, 7], [13, 59, 7], [10, 57, 7], [7, 56, 7], [5, 55, 7], [3, 50, 52], [1, 51, 53], [0, 56, 54], [0, 57, 58], [0, 59, 56], [0, 58, 59], [-3, 7, 52], [-5, 7, 53], [-6, 7, 52], [-6, 7, 51], [-5, 7, 53], [-5, 7, 58], [-4, 7, 59], [-4, 7, 58], [-3, 55, 57], [-3, 52, 56], [-2, 58, 59], [-2, 59, 52], [-1, 57, 53], [0, 52, 0], [0, 57, 54], [0, 54, 0], [0, 58, 53], [3, 0, 52], [6, 53, 7], [7, 55, 7], [5, 56, 7], [3, 57, 7], [2, 59, 56], [1, 58, 52], [0, 59, 53], [0, 57, 54], [0, 56, 52], [2, 57, 53], [3, 56, 7], [5, 58, 7], [4, 59, 7], [2, 51, 52], [1, 50, 53], [0, 59, 54], [0, 60, 55], [0, 54, 50], [0, 53, 0], [0, 0, 0], [0, 56, 64], [0, 0, 54], [0, 55, 65], [0, 58, 0], [0, 0, 56], [0, 52, 53], [0, 0, 54], [0, 58, 59], [0, 54, 54], [0, 0, 0], [0, 11, 1], [0, 0, 0], [0, 57, 54], [0, 56, 0], [0, 0, 0], [0, 0, 0], [0, 4, 9], [0, 0, 0], [0, 51, 52], [0, 54, 58], [0, 2, 1], [-1, 65, 57], [-3, 7, 64], [-6, 7, 0], [-8, 7, 65], [-10, 7, 0], [-11, 7, 0], [-11, 7, 53], [-11, 7, 52], [-10, 7, 0], [-9, 7, 0], [-7, 7, 51], [-6, 7, 58], [-5, 7, 0], [-8, 7, 59], [-11, 7, 0], [-13, 7, 0], [-10, 7, 52], [-7, 7, 0], [-3, 7, 53], [-2, 0, 57], [-1, 65, 64], [0, 0, 54], [0, 54, 0], [0, 0, 0], [0, 0, 64], [2, 65, 0], [5, 0, 0], [6, 0, 7], [6, 0, 7], [6, 0, 7], [5, 0, 7], [2, 0, 0], [1, 0, 0], [1, 23, 24], [1, 0, 0], [1, 0, 0], [2, 0, 0], [2, 0, 0], [2, 20, 20], [2, 64, 0], [2, 0, 0], [2, 0, 0], [2, 0, 0], [1, 23, 24], [0, 0, 0], [-1, 0, 65], [-2, 0, 0], [-2, 0, 0], [-2, 2, 1], [-2, 7, 0], [-3, 7, 0], [-3, 7, 0], [-3, 7, 0], [-6, 7, 0], [-9, 7, 0], [-11, 7, 0], [-12, 7, 0], [-12, 7, 0], [-12, 7, 0], [-10, 7, 0], [-8, 7, 0], [-6, 7, 0], [-4, 7, 0], [-2, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [2, 0, 0], [4, 0, 0], [6, 0, 7], [7, 0, 7], [7, 0, 7], [7, 0, 7], [7, 0, 7], [7, 0, 7], [7, 0, 7], [7, 0, 7], [5, 0, 7], [3, 0, 0], [2, 0, 0], [1, 0, 0], [0, 64, 0], [0, 61, 65], [0, 60, 62], [0, 100, 1], [1, 100, 1], [2, 100, 1], [3, 100, 1], [4, 100, 1], [5, 100, 1], [6, 100, 1], [7, 100, 1], [8, 100, 1], [9, 100, 1], [10, 100, 1], [8, 63, 7], [5, 62, 7], [2, 61, 7], [-1, 63, 65], [-4, 7, 64], [-7, 7, 0], [-9, 7, 54], [-11, 7, 0], [-8, 7, 0], [-5, 7, 64], [-3, 65, 0], [-1, 0, 63], [0, 64, 63], [0, 61, 60], [0, 63, 62], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 0, 54], [0, 50, 0], [0, 0, 0], [0, 0, 0], [0, 20, 20], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 23, 24], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 12, 1], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 13, 14], [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]);
this.lvls.dirt = new Array([0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 76, 76], [0, 10, 1], [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, 75, 76], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 72], [0, 73, 0], [0, 1, 0], [0, 0, 0], [0, 0, 0], [0, 75, 0], [0, 0, 0], [0, 0, 76], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 76], [0, 0, 0], [0, 0, 7], [0, 0, 7], [1, 0, 7], [2, 0, 7], [3, 0, 7], [4, 0, 7], [5, 0, 7], [4, 0, 7], [3, 0, 7], [2, 0, 0], [1, 80, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 70], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 74], [1, 0, 0], [0, 7, 0], [-1, 7, 0], [-2, 7, 0], [-4, 7, 0], [-4, 7, 0], [-4, 7, 0], [-4, 7, 0], [-3, 79, 73], [-2, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0], [1, 0, 0], [2, 0, 0], [2, 74, 0], [2, 0, 0], [2, 0, 0], [1, 77, 0], [1, 0, 0], [1, 0, 0], [1, 72, 0], [1, 0, 80], [1, 71, 0], [0, 0, 0], [0, 74, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 74], [0, 0, 0], [0, 0, 0], [0, 0, 0], [-1, 0, 0], [-2, 7, 0], [-3, 7, 0], [-4, 7, 0], [-5, 7, 0], [-6, 7, 0], [-6, 7, 0], [-6, 7, 0], [-6, 7, 0], [-5, 7, 71], [-4, 0, 0], [-4, 76, 0], [-3, 0, 0], [-3, 0, 0], [-3, 0, 0], [-3, 0, 0], [-3, 0, 0], [-3, 0, 0], [-4, 0, 0], [-4, 0, 0], [-3, 0, 0], [-3, 0, 0], [-2, 0, 0], [-1, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [-1, 0, 0], [0, 0, 0], [1, 0, 7], [2, 0, 7], [4, 0, 7], [5, 75, 7], [6, 0, 7], [5, 0, 7], [5, 0, 7], [4, 0, 0], [3, 0, 0], [2, 0, 0], [1, 0, 0], [1, 0, 74], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 76], [0, 0, 0], [0, 11, 1], [0, 0, 0], [0, 0, 0], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0], [2, 0, 0], [3, 0, 7], [4, 0, 7], [4, 72, 7], [5, 0, 7], [5, 0, 7], [6, 0, 7], [6, 0, 7], [7, 80, 7], [7, 0, 7], [7, 71, 7], [6, 0, 7], [5, 0, 7], [3, 0, 0], [0, 7, 0], [-2, 7, 0], [-4, 7, 0], [-5, 7, 0], [-5, 7, 0], [-5, 7, 0], [-4, 0, 0], [-2, 0, 74], [0, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 7], [1, 0, 7], [2, 0, 7], [5, 0, 7], [7, 0, 7], [6, 0, 7], [5, 0, 7], [4, 0, 7], [3, 80, 7], [2, 0, 7], [1, 0, 7], [2, 7, 0], [-1, 7, 0], [-4, 7, 0], [-5, 7, 0], [-6, 7, 0], [-5, 7, 0], [-3, 0, 0], [-1, 0, 7], [1, 0, 7], [3, 0, 7], [5, 0, 7], [6, 0, 7], [6, 77, 7], [5, 0, 7], [5, 0, 7], [4, 0, 0], [3, 0, 0], [2, 0, 0], [1, 0, 0], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 75, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 77, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [-1, 7, 0], [-3, 7, 0], [-4, 7, 0], [-5, 7, 0], [-5, 7, 0], [-4, 0, 0], [-3, 0, 0], [-2, 82, 0], [-2, 0, 0], [-1, 83, 0], [0, 83, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 79, 0], [1, 81, 0], [0, 0, 78], [0, 0, 0], [-1, 0, 0], [-2, 0, 0], [-2, 0, 0], [-2, 0, 0], [-2, 0, 0], [-1, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 81], [0, 0, 0], [0, 0, 0], [-1, 0, 0], [-2, 7, 0], [-3, 7, 76], [-4, 7, 0], [-6, 7, 0], [-7, 7, 0], [-7, 7, 0], [-6, 7, 0], [-4, 0, 0], [-2, 0, 0], [0, 0, 0], [2, 0, 77], [4, 0, 0], [4, 0, 0], [4, 0, 0], [3, 0, 0], [1, 0, 0], [-1, 7, 0], [-2, 7, 0], [-4, 7, 0], [-5, 7, 0], [-5, 7, 0], [-5, 7, 0], [-4, 0, 0], [-4, 0, 0], [-3, 0, 0], [-2, 0, 74], [-2, 0, 0], [-2, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 75], [-1, 75, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 72, 72], [0, 0, 0], [0, 0, 0], [0, 11, 1], [0, 0, 0], [0, 0, 0], [0, 79, 80], [0, 0, 0], [0, 80, 0], [0, 0, 77], [0, 0, 0], [0, 0, 0], [1, 0, 77], [1, 79, 0], [2, 0, 0], [3, 0, 83], [3, 83, 79], [3, 79, 0], [3, 0, 0], [2, 0, 0], [0, 7, 79], [-2, 7, 0], [-3, 7, 0], [-5, 7, 0], [-6, 7, 0], [-6, 7, 0], [-5, 7, 71], [-5, 7, 0], [-4, 0, 0], [-2, 0, 0], [-2, 76, 0], [-1, -2, 0], [-1, 76, 0], [-1, 80, 0], [-2, 7, 0], [-3, 7, 0], [-4, 7, 0], [-5, 7, 0], [-6, 7, 0], [-6, 7, 0], [-6, 7, 0], [-6, 7, 0], [-6, 7, 0], [-5, 7, 0], [-4, 76, 0], [-3, 76, 0], [-1, 0, 0], [0, 0, 0], [1, 0, 0], [1, 0, 0], [1, 78, 77], [1, 0, 0], [0, 78, 77], [-1, 0, 79], [-1, 0, 0], [-2, 78, 0], [-2, 0, 0], [-1, 79, 77], [-1, 0, 0], [-1, 76, 78], [-1, 79, 77], [-1, 0, 0], [0, 78, 0], [1, 0, 7], [2, 79, 7], [4, 0, 7], [5, 0, 7], [6, 78, 7], [6, 0, 7], [6, 79, 7], [6, 0, 7], [5, 79, 7], [4, 0, 0], [3, 0, 0], [1, 79, 0], [0, 0, 76], [-1, 7, 0], [-3, 7, 0], [-4, 7, 0], [-6, 7, 0], [-6, 7, 0], [-6, 7, 0], [-5, 7, 0], [-3, 0, 0], [-2, 0, 0], [0, 79, 7], [1, 0, 7], [3, 79, 7], [5, 78, 7], [7, 0, 7], [8, 0, 7], [9, 0, 7], [9, 0, 7], [8, 0, 7], [5, 0, 7], [2, 0, 0], [0, 0, 82], [-2, 0, 82], [-3, 0, 0], [-3, 0, 0], [-2, 0, 0], [-1, 0, 0], [1, 0, 0], [3, 0, 82], [4, 0, 7], [4, 0, 7], [5, 0, 7], [4, 0, 0], [3, 0, 77], [2, 0, 77], [0, 0, 0], [-1, 0, 0], [-2, 0, 76], [-2, 0, 0], [-3, 0, 0], [-3, 0, 0], [-3, 0, 0], [-3, 0, 75], [-3, 0, 0], [-3, 0, 0], [-4, 0, 0], [-4, 0, 0], [-4, 0, 0], [-4, 0, 0], [-4, 0, 76], [-3, 0, 76], [-2, 0, 0], [-1, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 76, 75], [0, 82, 0], [0, 0, 0], [0, 0, 76], [0, 0, 0], [0, 0, 0], [1, 0, 0], [2, 0, 82], [2, 82, 0], [2, 82, 82], [2, 0, 0], [0, 0, 0], [-1, 7, 0], [-3, 7, 0], [-4, 7, 82], [-5, 7, 0], [-5, 7, 0], [-4, 0, 0], [-4, 71, 0], [-2, 0, 0], [-1, 71, 0], [0, 0, 0], [0, 71, 0], [0, 0, 0], [0, 0, 0], [0, 0, 72], [0, 75, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 11, 1], [0, 0, 0], [0, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0], [1, 0, 0], [2, 77, 79], [2, 0, 0], [3, 0, 0], [3, 0, 0], [3, 0, 0], [3, 80, 0], [2, 0, 0], [1, 0, 0], [0, 7, 75], [-2, 7, 0], [-4, 7, 0], [-5, 7, 0], [-5, 7, 0], [-5, 7, 0], [-4, 71, 0], [-3, 72, 0], [-1, 70, 0], [0, 0, 81], [-1, 0, 0], [-2, 76, 0], [-2, 76, 81], [-2, 0, 76], [-2, 76, 72], [-2, 76, 0], [-1, 0, 0], [-1, 76, 76], [-1, 76, 76], [-1, 76, 0], [-2, 7, 76], [-3, 7, 0], [-4, 7, 76], [-5, 7, 0], [-6, 7, 0], [-7, 7, 76], [-7, 7, 0], [-7, 7, 0], [-7, 7, 0], [-5, 7, 0], [-4, 0, 0], [-2, 82, 0], [-2, 0, 0], [-1, 80, 0], [-2, 0, 0], [-3, 77, 0], [-4, 0, 0], [-4, 0, 0], [-4, 80, 0], [-3, 7, 0], [-3, 7, 0], [-2, 7, 0], [-1, 7, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0], [1, 72, 74], [1, 0, 74], [1, 1, 0], [1, 0, 0], [1, 0, 15], [1, 0, 0], [1, 0, 0], [1, 0, 7], [2, 0, 7], [3, 0, 7], [5, 0, 7], [6, 0, 7], [7, 0, 7], [8, 72, 7], [9, 79, 7], [9, 0, 7], [9, 0, 7], [8, 0, 7], [6, 0, 7], [5, 0, 7], [2, 7, 75], [0, 7, 0], [-3, 7, 0], [-5, 7, 0], [-7, 7, 0], [-7, 7, 0], [-6, 7, 0], [-5, 7, 0], [-4, 0, 0], [-3, 0, 0], [-3, 0, 0], [-2, 0, 15], [-2, 0, 0], [0, 0, 7], [1, 0, 7], [3, 0, 7], [6, 0, 7], [8, 0, 7], [10, 0, 7], [10, 0, 7], [9, 0, 7], [7, 0, 7], [5, 0, 7], [4, 0, 0], [2, 0, 72], [1, 0, 0], [1, 0, 0], [1, 0, 7], [2, 0, 7], [3, 0, 7], [5, 0, 7], [7, 0, 7], [8, 0, 7], [9, 0, 7], [10, 0, 7], [10, 0, 7], [10, 0, 7], [9, 0, 7], [8, 76, 7], [6, 0, 7], [5, 0, 7], [4, 0, 0], [3, 0, 0], [1, 78, 80], [1, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [-1, 82, 82], [-1, 0, 0], [0, 75, 76], [0, 7, 0], [-1, 7, 0], [-3, 7, 0], [-5, 7, 0], [-7, 7, 0], [-9, 7, 0], [-9, 7, 0], [-6, 7, 0], [-3, 7, 0], [-1, 75, 0], [2, 0, 0], [3, 0, 0], [2, 0, 0], [1, 0, 0], [1, 0, 0], [1, 73, 0], [2, 0, 0], [2, 71, 0], [2, 0, 75], [2, 76, 0], [2, 0, 0], [1, 74, 74], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 11, 1], [0, 0, 0], [0, 75, 75], [0, 75, 75], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 76, 76], [0, 0, 0], [0, 76, 76], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [-1, 0, 0], [-2, 0, 0], [-3, 7, 0], [-4, 7, 0], [-4, 7, 0], [-4, 7, 0], [-3, 7, 0], [-1, 7, 7], [2, 0, 7], [4, 0, 7], [6, 0, 7], [8, 0, 7], [6, 0, 7], [4, 79, 0], [2, 75, 0], [0, 0, 0], [-1, 0, 0], [-2, 0, 0], [-2, 0, 0], [-1, 0, 0], [0, 0, 0], [2, 0, 0], [3, 0, 71], [4, 0, 0], [4, 78, 0], [3, 0, 74], [2, 0, 0], [1, 0, 0], [0, 0, 0], [-2, 0, 0], [-2, 7, 0], [-3, 7, 0], [-4, 7, 0], [-5, 7, 0], [-6, 7, 0], [-6, 7, 0], [-4, 79, 7], [-1, 81, 7], [2, 0, 7], [6, 0, 7], [7, 0, 7], [8, 0, 7], [8, 70, 7], [6, 0, 7], [4, 0, 0], [3, 72, 0], [2, 0, 7], [2, 0, 7], [3, 0, 7], [5, 0, 7], [7, 0, 7], [9, 0, 7], [11, 0, 7], [11, 75, 7], [11, 0, 7], [9, 0, 7], [6, 0, 7], [2, 0, 0], [-1, 0, 0], [-3, 71, 0], [-4, 0, 0], [-4, 79, 0], [-2, 0, 7], [0, 0, 7], [3, 0, 7], [5, 0, 7], [7, 81, 7], [7, 80, 7], [6, 0, 7], [3, 7, 0], [0, 7, 73], [-3, 7, 0], [-5, 7, 0], [-6, 7, 0], [-5, 7, 0], [-3, 0, 0], [-1, 0, 7], [2, 0, 7], [4, 79, 7], [5, 0, 7], [5, 0, 7], [4, 0, 71], [3, 0, 0], [1, 7, 0], [0, 7, 0], [-3, 7, 0], [-4, 0, 7], [0, 0, 7], [3, 0, 7], [6, 0, 7], [7, 0, 7], [7, 0, 7], [5, 0, 7], [3, 0, 83], [1, 0, 0], [0, 0, 0], [-1, 0, 0], [-1, 0, 83], [0, 0, 0], [1, 83, 83], [2, 0, 0], [2, 83, 0], [2, 0, 81], [2, 0, 0], [1, 0, 0], [1, 82, 0], [0, 0, 0], [0, 0, 83], [-1, 0, 0], [-1, 75, 0], [-2, 73, 0], [-2, 70, 0], [-2, 0, 83], [-2, 74, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 83], [1, 80, 0], [1, 73, 0], [2, 0, 0], [2, 0, 0], [3, 83, 83], [3, 0, 0], [2, 0, 0], [1, 73, 0], [0, 7, 0], [-1, 7, 0], [-4, 7, 76], [-7, 7, 0], [-9, 7, 0], [-7, 7, 0], [-7, 7, 0], [-7, 7, 0], [-7, 7, 0], [-7, 7, 0], [-7, 7, 76], [-4, 0, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 79], [-1, 0, 0], [-2, 83, 0], [-3, 0, 0], [-3, 83, 77], [-3, 0, 0], [-2, 71, 0], [-1, 0, 0], [0, 0, 0], [0, 73, 0], [0, 70, 0], [0, 0, 0], [0, 79, 79], [0, 0, 0], [0, 0, 0], [0, 79, 79], [0, 79, 79], [0, 79, 79], [0, 12, 1], [0, 79, 79], [0, 79, 79], [0, 72, 72], [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]);
this.lvls.night = new Array([0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 35, 36], [0, 10, 1], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 54, 54], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 54, 54], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 54, 54], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 54, 54], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 54, 54], [0, 0, 0], [0, 0, 0], [0, 0, 0], [-2, 0, 0], [-3, 7, 0], [-5, 7, 0], [-6, 7, 0], [-8, 7, 0], [-6, 7, 0], [-5, 7, 0], [-3, 7, 0], [-2, 0, 7], [3, 0, 7], [5, 0, 7], [6, 0, 7], [8, 0, 7], [8, 50, 7], [6, 51, 7], [5, 0, 7], [3, 0, 7], [2, 52, 7], [1, 0, 0], [1, 53, 53], [-1, 7, 50], [-2, 7, 0], [-4, 7, 0], [-5, 7, 0], [-6, 7, 55], [-6, 7, 0], [-6, 7, 56], [-6, 7, 0], [-5, 7, 0], [-5, 7, 55], [-5, 7, 0], [-5, 7, 56], [-5, 7, 0], [-5, 7, 56], [-5, 7, 0], [-5, 7, 59], [-4, 7, 54], [-4, 7, 54], [-3, 7, 54], [-3, 7, 0], [-2, 7, 55], [-2, 7, 0], [-2, 7, 56], [-1, 7, 0], [-1, 0, 0], [0, 0, 57], [1, 55, 0], [1, 53, 0], [1, 0, 54], [1, 0, 0], [1, 58, 50], [1, 0, 51], [1, 59, 0], [1, 0, 0], [1, 35, 36], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 35, 36], [1, 0, 0], [1, 0, 7], [4, 0, 7], [9, 35, 7], [13, 0, 7], [11, 0, 7], [9, 0, 7], [7, 35, 7], [6, 0, 43], [4, 0, 43], [2, 7, 36], [1, 7, 43], [1, 7, 43], [1, 7, 43], [-10, 7, 36], [-8, 7, 43], [-7, 7, 43], [-6, 7, 43], [-5, 35, 36], [-3, 43, 43], [-3, 43, 43], [-2, 43, 43], [-2, 35, 36], [-1, 43, 43], [-1, 43, 43], [-1, 43, 43], [-1, 35, 35], [0, 7, 43], [-5, 7, 43], [-8, 7, 43], [-10, 7, 43], [-8, 7, 43], [-7, 7, 43], [-6, 7, 43], [-5, 7, 43], [-4, 7, 43], [-3, 7, 43], [-2, 7, 43], [-3, 7, 43], [-3, 7, 43], [-3, 7, 43], [-3, 43, 43], [-2, 43, 43], [-1, 43, 43], [0, 43, 43], [0, 43, 43], [0, 11, 1], [0, 0, 0], [0, 40, 40], [0, 0, 0], [1, 0, 40], [1, 0, 7], [2, 40, 7], [2, 0, 7], [3, 0, 40], [3, 0, 7], [3, 40, 7], [3, 0, 7], [3, 0, 40], [2, 0, 0], [2, 40, 0], [2, 0, 0], [1, 0, 40], [1, 0, 0], [0, 40, 0], [-1, 0, 0], [-1, 0, 40], [-2, 0, 0], [-2, 40, 0], [-1, 0, 0], [0, 0, 40], [0, 0, 0], [0, 19, 0], [0, 0, 0], [1, 7, 40], [-1, 7, 0], [-2, 40, 0], [-4, 7, 0], [-7, 7, 40], [-9, 7, 0], [-12, 40, 0], [-12, 7, 0], [-12, 7, 40], [-12, 7, 0], [-12, 40, 0], [-5, 7, 0], [-3, 7, 40], [-2, 0, 0], [-2, 40, 0], [-1, 0, 0], [-1, 0, 40], [-1, 0, 0], [0, 40, 0], [0, 0, 0], [0, 0, 40], [1, 32, 32], [1, 40, 40], [0, 0, 0], [0, 0, 40], [0, 31, 31], [0, 40, 0], [0, 0, 0], [0, 0, 40], [0, 0, 0], [0, 40, 54], [0, 19, 0], [-3, 7, 40], [-6, 7, 0], [-8, 40, 0], [-8, 7, 0], [-8, 7, 40], [-8, 7, 0], [-14, 40, 0], [-14, 7, 0], [-14, 7, 40], [-11, 7, 0], [-8, 40, 0], [-6, 7, 0], [-3, 7, 40], [0, 7, 0], [0, 40, 0], [1, 0, 0], [2, 0, 40], [-1, 0, 0], [-3, 40, 0], [-4, 7, 0], [-6, 7, 40], [-7, 7, 0], [-6, 40, 0], [-4, 7, 0], [-3, 7, 40], [1, 0, 0], [1, 0, 0], [2, 44, 44], [3, 0, 0], [4, 0, 0], [4, 0, 0], [5, 43, 43], [5, 0, 0], [5, 0, 0], [5, 0, 0], [5, 44, 44], [5, 0, 0], [5, 0, 0], [5, 0, 0], [5, 43, 43], [5, 0, 0], [5, 0, 0], [5, 0, 0], [5, 44, 44], [5, 0, 0], [4, 0, 0], [4, 0, 0], [3, 43, 43], [3, 0, 0], [2, 0, 0], [2, 0, 0], [1, 44, 44], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 42, 42], [0, 42, 42], [0, 42, 42], [-2, 0, 0], [-3, 7, 0], [-5, 7, 0], [-6, 7, 0], [-8, 7, 0], [-9, 7, 0], [-10, 7, 0], [-7, 7, 0], [-5, 7, 0], [-2, 7, 0], [0, 7, 7], [3, 0, 7], [5, 0, 7], [8, 0, 7], [7, 0, 7], [4, 0, 7], [2, 0, 7], [0, 0, 7], [0, 0, 0], [0, 0, 0], [0, 42, 42], [0, 42, 42], [0, 42, 42], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 42, 42], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 42, 42], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 42, 42], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 42, 42], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 11, 1], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 41, 41], [0, 44, 41], [0, 41, 41], [-5, 44, 41], [-5, 41, 41], [-5, 44, 41], [-5, 41, 41], [-5, 44, 41], [-3, 41, 41], [-4, 44, 41], [-5, 41, 41], [-6, 44, 41], [-5, 41, 41], [-4, 44, 41], [-3, 41, 41], [-3, 44, 44], [-2, 41, 41], [-1, 44, 44], [0, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [-3, 44, 44], [-5, 44, 44], [-7, 44, 44], [-4, 44, 0], [-3, 44, 44], [-2, 44, 44], [3, 44, 44], [7, 0, 44], [10, 0, 44], [8, 0, 44], [7, 0, 44], [5, 0, 43], [3, 0, 43], [2, 0, 43], [3, 0, 43], [0, 0, 43], [0, 0, 43], [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, 19, 0], [0, 0, 0], [0, 44, 44], [0, 43, 0], [-1, 44, 44], [-1, 43, 0], [-2, 44, 44], [-3, 43, 0], [-3, 44, 41], [-4, 43, 41], [-4, 44, 41], [-5, 43, 41], [-6, 44, 41], [-6, 43, 41], [-7, 44, 41], [-8, 43, 41], [-8, 44, 41], [-9, 43, 41], [-9, 44, 41], [-9, 43, 41], [-9, 44, 41], [-8, 43, 41], [-7, 44, 41], [-6, 43, 43], [-6, 44, 43], [-5, 43, 43], [-5, 44, 43], [-5, 43, 43], [-4, 43, 43], [-4, 43, 43], [-3, 0, 0], [-3, 43, 43], [-2, 0, 0], [-2, 43, 43], [-2, 0, 0], [1, 0, 19], [2, 0, 44], [4, 43, 44], [5, 0, 44], [6, 43, 44], [7, 0, 44], [8, 43, 44], [10, 0, 44], [11, 43, 44], [10, 0, 44], [9, 43, 44], [8, 0, 44], [7, 43, 44], [6, 0, 44], [4, 43, 44], [3, 0, 44], [3, 43, 44], [3, 0, 44], [2, 43, 44], [2, 0, 44], [2, 43, 43], [1, 0, 0], [1, 43, 43], [1, 0, 0], [1, 43, 43], [-1, 100, 1], [-1, 100, 1], [-2, 100, 1], [0, 100, 1], [0, 100, 1], [0, 100, 1], [1, 100, 1], [1, 100, 1], [1, 100, 1], [1, 42, 42], [2, 42, 42], [2, 42, 42], [2, 42, 42], [2, 42, 42], [3, 100, 1], [3, 100, 1], [3, 100, 1], [3, 100, 1], [4, 42, 42], [4, 42, 42], [4, 42, 42], [4, 42, 42], [4, 100, 1], [3, 100, 1], [3, 100, 1], [3, 100, 1], [3, 100, 1], [2, 100, 1], [2, 100, 1], [2, 0, 0], [2, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [0, 0, 0], [0, 11, 1], [-5, 0, 0], [-6, 7, 0], [-6, 40, 40], [-6, 7, 0], [-6, 40, 40], [-6, 7, 0], [-6, 40, 40], [-7, 7, 0], [-7, 32, 40], [-7, 7, 0], [-7, 40, 40], [-6, 7, 0], [-5, 40, 40], [-4, 7, 0], [-3, 40, 40], [-2, 7, 0], [-1, 32, 40], [-1, 7, 0], [-3, 40, 40], [-4, 7, 0], [-5, 40, 40], [-6, 7, 0], [-8, 40, 40], [-9, 7, 0], [-8, 40, 40], [-6, 7, 0], [-5, 40, 40], [-4, 7, 0], [-3, 40, 40], [1, 7, 0], [2, 40, 40], [3, 0, 7], [4, 40, 40], [5, 0, 7], [4, 33, 33], [3, 0, 7], [2, 40, 40], [1, 0, 7], [-6, 40, 40], [-5, 7, 0], [-3, 40, 40], [-2, 7, 0], [-7, 40, 40], [-5, 7, 0], [-3, 40, 40], [1, 7, 0], [1, 40, 40], [2, 7, 0], [3, 33, 33], [3, 0, 0], [4, 40, 40], [5, 0, 7], [5, 40, 40], [6, 0, 7], [6, 40, 40], [6, 0, 7], [6, 40, 40], [6, 0, 7], [6, 40, 40], [9, 0, 7], [9, 40, 40], [9, 0, 7], [9, 40, 40], [9, 0, 7], [8, 40, 40], [6, 0, 7], [5, 40, 40], [4, 0, 7], [3, 40, 40], [3, 0, 7], [2, 34, 34], [2, 0, 7], [1, 40, 40], [-2, 7, 0], [-3, 40, 40], [-5, 7, 0], [-4, 40, 40], [-4, 7, 0], [-3, 40, 40], [-2, 7, 0], [-1, 40, 40], [-1, 7, 0], [0, 40, 40], [0, 0, 7], [3, 40, 40], [7, 40, 7], [9, 0, 40], [6, 40, 7], [3, 0, 40], [2, 40, 7], [0, 0, 40], [3, 32, 32], [5, 0, 40], [4, 40, 7], [2, 0, 40], [1, 40, 7], [2, 0, 40], [5, 40, 7], [7, 0, 40], [10, 40, 7], [12, 0, 40], [13, 40, 7], [10, 0, 40], [7, 40, 7], [5, 0, 40], [3, 40, 7], [1, 43, 43], [0, 43, 43], [0, 43, 43], [0, 40, 40], [0, 7, 0], [-3, 33, 33], [-5, 7, 0], [-6, 40, 40], [-6, 7, 0], [-5, 40, 40], [-5, 7, 0], [-4, 40, 40], [-4, 7, 0], [-3, 40, 40], [-3, 31, 31], [-2, 40, 40], [-2, 0, 0], [-1, 40, 40], [0, 31, 31], [0, 40, 40], [0, 0, 0], [0, 40, 40], [3, 31, 31], [6, 40, 40], [6, 0, 7], [6, 40, 40], [6, 0, 7], [6, 40, 40], [6, 0, 7], [6, 40, 40], [6, 0, 7], [6, 40, 40], [6, 0, 7], [3, 40, 40], [5, 0, 7], [4, 40, 40], [4, 0, 7], [3, 40, 40], [3, 0, 7], [2, 40, 40], [2, 0, 7], [2, 40, 40], [1, 0, 7], [1, 40, 40], [0, 0, 0], [0, 40, 40], [0, 41, 41], [0, 40, 40], [0, 41, 41], [0, 40, 40], [0, 41, 41], [0, 40, 40], [0, 41, 41], [0, 11, 1], [0, 41, 41], [0, 40, 40], [0, 41, 41], [0, 40, 40], [0, 41, 41], [0, 42, 42], [0, 41, 41], [1, 42, 42], [1, 41, 41], [2, 42, 42], [2, 41, 41], [3, 42, 42], [4, 41, 41], [4, 42, 42], [5, 41, 41], [5, 42, 42], [6, 41, 41], [6, 42, 42], [6, 41, 41], [6, 42, 42], [6, 41, 41], [6, 42, 42], [6, 41, 41], [6, 42, 42], [4, 41, 41], [2, 42, 42], [-2, 41, 41], [-3, 42, 42], [-5, 41, 41], [-6, 42, 42], [-8, 41, 41], [-7, 42, 42], [-4, 41, 41], [-2, 42, 42], [-5, 41, 41], [-4, 42, 42], [-3, 41, 41], [-2, 0, 0], [-1, 41, 41], [0, 0, 0], [0, 41, 41], [0, 0, 0], [0, 41, 41], [0, 44, 44], [0, 44, 44], [0, 44, 44], [2, 41, 41], [1, 0, 0], [0, 41, 41], [-1, 0, 0], [-2, 41, 41], [-2, 0, 0], [-2, 41, 41], [-2, 42, 42], [-3, 41, 41], [-3, 42, 42], [-3, 41, 41], [-6, 42, 42], [-9, 41, 41], [-11, 42, 42], [-9, 41, 41], [-7, 42, 42], [-4, 41, 41], [-2, 42, 42], [-8, 41, 41], [-6, 42, 42], [-4, 41, 41], [-2, 42, 42], [-1, 41, 41], [0, 42, 42], [0, 41, 41], [0, 42, 42], [2, 41, 41], [4, 42, 42], [6, 41, 41], [7, 42, 42], [7, 41, 41], [7, 42, 42], [7, 41, 41], [7, 42, 42], [7, 41, 41], [7, 42, 42], [5, 41, 41], [3, 42, 42], [2, 41, 41], [1, 42, 42], [-4, 41, 41], [-7, 42, 42], [-11, 41, 41], [-9, 42, 42], [-7, 41, 41], [-5, 42, 42], [-4, 41, 41], [-2, 42, 42], [0, 41, 41], [0, 42, 42], [0, 41, 41], [4, 42, 42], [8, 41, 41], [12, 43, 43], [10, 43, 43], [8, 43, 43], [6, 43, 43], [4, 43, 43], [2, 43, 43], [0, 43, 43], [0, 33, 33], [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, 42, 42], [0, 42, 42], [-1, 0, 0], [-2, 0, 0], [-3, 0, 0], [-4, 32, 32], [-5, 7, 0], [-6, 7, 0], [-8, 7, 0], [-9, 7, 0], [-10, 7, 0], [-11, 7, 0], [-12, 7, 0], [-13, 7, 0], [-10, 7, 0], [-8, 7, 0], [-5, 7, 0], [-3, 31, 31], [0, 0, 7], [2, 0, 7], [5, 0, 7], [7, 0, 7], [10, 0, 7], [12, 0, 7], [11, 0, 7], [10, 0, 7], [9, 0, 7], [8, 0, 7], [7, 0, 7], [6, 0, 7], [5, 0, 7], [4, 34, 34], [3, 0, 0], [2, 0, 0], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 35, 35], [0, 12, 1], [0, 43, 43], [0, 0, 0], [0, 43, 43], [0, 0, 0], [0, 43, 43], [0, 0, 0], [0, 35, 35], [0, 0, 0], [0, 43, 43], [0, 0, 0], [0, 43, 43], [0, 0, 0], [0, 43, 43], [0, 0, 0], [0, 35, 35], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]);
this.lvls.fog = new Array([0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 17, 18], [0, 10, 1], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 65], [0, 0, 0], [0, 65, 0], [0, 0, 0], [0, 0, 0], [1, 0, 65], [1, 0, 60], [1, 65, 0], [2, 60, 7], [2, 54, 7], [3, 0, 7], [3, 62, 7], [3, 65, 7], [3, 0, 7], [3, 0, 0], [2, 0, 0], [1, 0, 57], [0, 7, 0], [-2, 7, 0], [-2, 7, 50], [-3, 7, 53], [-2, 55, 52], [-1, 50, 51], [-1, 56, 0], [0, 52, 53], [1, 55, 55], [1, 55, 63], [1, 61, 53], [1, 0, 0], [-1, 51, 0], [-3, 54, 55], [-4, 7, 0], [-6, 7, 57], [-7, 7, 0], [-6, 7, 0], [-4, 7, 0], [-3, 7, 0], [-1, 100, 1], [-3, 100, 1], [-3, 100, 1], [-2, 100, 1], [-2, 0, 0], [-2, 0, 0], [-1, 0, 0], [-1, 100, 1], [-1, 100, 1], [0, 100, 1], [0, 100, 1], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 100, 1], [0, 100, 1], [1, 100, 1], [1, 100, 1], [1, 100, 1], [1, 100, 1], [2, 100, 1], [4, 0, 0], [6, 0, 7], [8, 0, 7], [8, 0, 7], [8, 0, 7], [7, 0, 7], [6, 51, 7], [5, 63, 7], [3, 0, 7], [2, 0, 7], [1, 52, 65], [1, 0, 64], [3, 0, 63], [3, 58, 62], [2, 0, 64], [2, 0, 50], [1, 0, 60], [1, 53, 0], [1, 0, 0], [0, 0, 63], [0, 50, 57], [0, 53, 55], [0, 0, 53], [0, 0, 51], [1, 0, 50], [1, 52, 58], [2, 0, 0], [2, 0, 7], [3, 53, 7], [4, 65, 7], [5, 51, 7], [5, 0, 7], [5, 0, 7], [5, 0, 7], [4, 0, 50], [3, 0, 54], [2, 64, 0], [-2, 7, 50], [-4, 7, 0], [-7, 7, 0], [-5, 7, 59], [-4, 7, 56], [-3, 100, 1], [-2, 100, 1], [-1, 100, 1], [-1, 100, 1], [0, 100, 1], [0, 100, 1], [-1, 100, 1], [-2, 100, 1], [-4, 100, 1], [-5, 100, 1], [-6, 7, 60], [-5, 7, 0], [-4, 7, 0], [-2, 7, 61], [-1, 0, 0], [0, 0, 50], [0, 57, 50], [0, 0, 53], [0, 0, 53], [0, 51, 50], [0, 55, 0], [0, 54, 51], [0, 0, 50], [1, 63, 7], [2, 50, 7], [3, 54, 7], [4, 0, 7], [4, 57, 7], [4, 54, 7], [2, 65, 7], [1, 59, 7], [0, 54, 0], [0, 0, 56], [0, 59, 0], [0, 0, 51], [0, 11, 1], [0, 56, 61], [0, 0, 53], [0, 0, 0], [0, 61, 61], [0, 59, 63], [0, 61, 0], [0, 65, 63], [0, 60, 53], [0, 52, 61], [0, 60, 50], [0, 61, 0], [2, 52, 51], [2, 59, 61], [3, 53, 61], [2, 54, 63], [1, 60, 54], [1, 52, 63], [0, 61, 54], [-1, 51, 51], [-2, 0, 0], [-3, 0, 51], [1, 0, 0], [3, 53, 7], [4, 54, 7], [5, 63, 7], [6, 0, 7], [8, 52, 7], [9, 0, 7], [6, 61, 7], [3, 0, 59], [3, 50, 65], [1, 7, 59], [-1, 7, 0], [-4, 7, 53], [-5, 7, 51], [-6, 7, 50], [-7, 7, 56], [-6, 7, 63], [-4, 53, 51], [-2, 0, 59], [-1, 54, 52], [-2, 0, 65], [-3, 7, 54], [-5, 7, 0], [-6, 7, 59], [-8, 7, 0], [-7, 7, 0], [-9, 7, 53], [-10, 7, 0], [-11, 7, 51], [-10, 7, 52], [-5, 7, 0], [-3, 7, 64], [-2, 50, 0], [-2, 0, 59], [0, 0, 7], [3, 63, 7], [4, 0, 7], [5, 0, 7], [6, 0, 7], [6, 53, 7], [5, 50, 7], [4, 0, 62], [3, 51, 0], [1, 51, 0], [0, 54, 53], [0, 0, 54], [0, 63, 62], [0, 50, 54], [0, 0, 54], [1, 54, 53], [2, 54, 53], [3, 0, 0], [3, 61, 60], [4, 0, 64], [3, 54, 56], [3, 50, 53], [3, 0, 0], [2, 61, 53], [1, 0, 54], [1, 0, 54], [1, 55, 53], [0, 52, 0], [0, 52, 50], [0, 60, 53], [-1, 0, 64], [-1, 7, 0], [-2, 7, 52], [-3, 7, 0], [-5, 7, 64], [-6, 7, 0], [-7, 7, 60], [-8, 7, 0], [-9, 7, 0], [-9, 7, 0], [-9, 7, 0], [-9, 7, 59], [-9, 7, 0], [-9, 7, 0], [-7, 7, 52], [-6, 7, 51], [-4, 7, 54], [-3, 54, 0], [-1, 51, 62], [4, 51, 54], [4, 50, 57], [4, 50, 52], [4, 100, 1], [3, 100, 1], [3, 100, 1], [2, 100, 1], [1, 100, 1], [0, 100, 1], [-1, 100, 1], [-2, 100, 1], [-3, 100, 1], [-3, 100, 1], [-4, 0, 0], [-4, 56, 50], [-4, 61, 57], [-3, 0, 0], [-2, 52, 57], [0, 50, 7], [2, 0, 7], [4, 0, 7], [5, 51, 7], [6, 0, 7], [6, 0, 7], [6, 56, 7], [6, 54, 7], [6, 56, 7], [6, 0, 7], [5, 65, 7], [5, 59, 7], [4, 0, 7], [4, 0, 7], [3, 0, 7], [2, 0, 0], [2, 0, 56], [1, 53, 53], [1, 0, 0], [1, 0, 0], [0, 58, 57], [0, 0, 0], [0, 0, 0], [0, 11, 1], [0, 59, 58], [0, 50, 0], [0, 65, 0], [0, 0, 0], [0, 62, 62], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 29, 30], [0, 0, 0], [0, 0, 0], [1, 0, 0], [1, 0, 0], [1, 62, 60], [1, 60, 60], [1, 60, 62], [2, 62, 7], [3, 62, 7], [4, 62, 7], [5, 63, 7], [7, 63, 7], [8, 62, 7], [8, 54, 7], [7, 0, 7], [6, 62, 7], [4, 63, 61], [2, 64, 61], [0, 64, 62], [-2, 65, 63], [-3, 65, 64], [-4, 64, 63], [-3, 62, 62], [-2, 62, 61], [0, 61, 7], [3, 60, 7], [4, 61, 7], [5, 61, 7], [5, 61, 7], [4, 62, 62], [2, 7, 63], [-1, 7, 61], [-4, 7, 62], [-7, 7, 63], [-9, 7, 61], [-10, 7, 62], [-10, 7, 61], [-8, 7, 62], [-6, 7, 63], [-3, 7, 63], [-1, 100, 1], [1, 100, 1], [3, 100, 1], [3, 100, 1], [3, 100, 1], [2, 100, 1], [0, 100, 1], [-1, 100, 1], [-3, 100, 1], [-3, 100, 1], [-4, 100, 1], [-4, 100, 1], [-4, 100, 1], [-4, 100, 1], [-5, 100, 1], [-6, 7, 0], [-8, 7, 0], [-10, 7, 0], [-13, 7, 0], [-11, 7, 0], [-9, 7, 0], [-7, 7, 0], [-6, 7, 0], [-4, 7, 0], [-2, 7, 0], [-1, 55, 7], [3, 0, 7], [6, 0, 7], [8, 0, 7], [8, 0, 7], [7, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 1, 7], [-1, 51, 7], [3, 65, 7], [7, 52, 7], [10, 53, 7], [8, 50, 7], [6, 54, 7], [5, 51, 7], [4, 0, 55], [3, 0, 64], [3, 52, 54], [3, 57, 65], [3, 0, 0], [3, 0, 61], [2, 57, 62], [1, 54, 0], [-1, 0, 53], [-2, 7, 61], [-3, 7, 64], [-4, 7, 53], [-5, 7, 0], [-6, 7, 64], [-6, 7, 56], [-6, 7, 0], [-5, 7, 0], [-4, 0, 0], [-4, 0, 0], [-3, 0, 0], [-2, 0, 0], [-1, 0, 0], [0, 65, 0], [1, 0, 0], [1, 29, 30], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 29, 30], [1, 0, 0], [1, 0, 0], [1, 54, 54], [1, 0, 7], [1, 0, 7], [4, 0, 7], [5, 0, 7], [4, 54, 54], [3, 7, 0], [0, 7, 0], [-2, 7, 0], [-5, 7, 0], [-7, 7, 0], [-7, 7, 0], [-7, 7, 0], [-6, 7, 0], [-5, 7, 0], [-3, 54, 54], [-1, 0, 0], [1, 0, 0], [2, 0, 65], [2, 0, 0], [2, 0, 0], [1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 54, 54], [0, 11, 1], [0, 0, 0], [-1, 0, 0], [-2, 0, 0], [-2, 0, 0], [-2, 0, 0], [-2, 0, 0], [-1, 0, 0], [0, 54, 54], [1, 0, 0], [2, 0, 0], [3, 0, 7], [4, 0, 7], [4, 0, 7], [4, 0, 7], [4, 54, 7], [4, 0, 7], [3, 0, 7], [4, 0, 7], [4, 0, 7], [4, 54, 0], [3, 0, 0], [2, 0, 54], [1, 0, 0], [-1, 7, 0], [-3, 7, 54], [-4, 7, 0], [-5, 7, 64], [-6, 7, 55], [-5, 7, 50], [-4, 64, 64], [-2, 56, 53], [0, 64, 50], [2, 62, 0], [3, 52, 64], [3, 52, 61], [3, 62, 51], [2, 60, 0], [1, 64, 62], [0, 63, 51], [-2, 62, 52], [-3, 63, 64], [-3, 62, 65], [-3, 51, 63], [-3, 64, 62], [-2, 0, 62], [-1, 65, 63], [-1, 63, 63], [-1, 63, 62], [-1, 54, 57], [-2, 51, 58], [-1, 61, 61], [-2, 58, 62], [-2, 51, 7], [0, 61, 7], [2, 63, 7], [5, 61, 7], [8, 61, 7], [7, 61, 61], [3, 7, 60], [-1, 7, 61], [-5, 7, 60], [-7, 7, 60], [-9, 7, 60], [-8, 7, 60], [-7, 7, 60], [-5, 7, 61], [-2, 61, 61], [1, 61, 61], [3, 62, 60], [4, 61, 60], [3, 62, 62], [2, 7, 60], [-1, 7, 61], [-4, 7, 61], [-7, 7, 62], [-10, 7, 62], [-13, 7, 62], [-14, 7, 63], [-13, 7, 63], [-12, 7, 63], [-9, 7, 63], [-6, 7, 7], [-2, 63, 7], [2, 63, 7], [5, 63, 7], [6, 60, 7], [6, 0, 7], [5, 63, 7], [3, 63, 64], [1, 7, 62], [-1, 7, 61], [-3, 7, 61], [-5, 7, 61], [-6, 7, 61], [-7, 7, 60], [-5, 7, 60], [-3, 60, 60], [-1, 60, 60], [1, 61, 61], [2, 61, 61], [2, 61, 61], [1, 61, 62], [0, 7, 62], [-2, 7, 63], [-4, 7, 63], [-6, 7, 63], [-6, 7, 63], [-5, 63, 63], [-3, 63, 7], [0, 64, 7], [3, 65, 7], [7, 65, 7], [9, 65, 7], [10, 65, 7], [10, 65, 7], [7, 7, 7], [4, 7, 65], [0, 7, 64], [-5, 7, 63], [-8, 7, 62], [-10, 7, 61], [-10, 7, 61], [-7, 7, 7], [-3, 61, 0], [2, 61, 7], [8, 61, 7], [13, 61, 7], [14, 61, 7], [14, 61, 7], [14, 61, 7], [14, 61, 7], [14, 61, 7], [12, 61, 7], [7, 61, 7], [3, 61, 62], [1, 63, 63], [0, 61, 61], [0, 65, 61], [0, 61, 61], [1, 63, 63], [1, 63, 63], [2, 63, 60], [2, 63, 63], [2, 64, 63], [1, 7, 64], [-1, 7, 65], [-4, 7, 65], [-6, 7, 65], [-7, 7, 65], [-7, 7, 63], [-7, 7, 61], [-6, 7, 63], [-4, 63, 65], [-2, 63, 0], [-1, 0, 63], [0, 63, 0], [0, 64, 0], [0, 51, 62], [0, 50, 64], [-1, 59, 53], [-1, 0, 0], [-1, 0, 0], [-1, 57, 54], [0, 56, 0], [0, 11, 1], [0, 55, 53], [0, 0, 53], [-1, 55, 0], [-1, 0, 0], [0, 0, 50], [0, 0, 59], [1, 51, 50], [2, 50, 53], [2, 0, 50], [3, 56, 52], [3, 58, 52], [4, 51, 53], [4, 51, 53], [3, 0, 52], [2, 64, 0], [1, 53, 0], [0, 53, 0], [0, 52, 52], [0, 0, 53], [1, 55, 7], [2, 65, 7], [4, 0, 7], [5, 54, 7], [7, 52, 7], [8, 63, 7], [8, 0, 7], [7, 0, 7], [6, 0, 7], [4, 59, 0], [3, 0, 63], [1, 0, 51], [1, 0, 0], [1, 64, 7], [1, 54, 7], [3, 51, 7], [5, 55, 7], [7, 0, 7], [9, 0, 7], [10, 59, 7], [10, 54, 7], [9, 52, 7], [8, 0, 7], [6, 54, 7], [3, 53, 53], [1, 25, 0], [-1, 7, 0], [-3, 7, 56], [-4, 7, 52], [-5, 7, 0], [-5, 7, 0], [-6, 7, 51], [-6, 7, 0], [-6, 7, 57], [-6, 7, 0], [-6, 7, 58], [-6, 7, 0], [-5, 7, 64], [-3, 54, 0], [-1, 0, 0], [0, 0, 0], [0, 0, 0], [-1, 53, 0], [-2, 0, 54], [-3, 54, 56], [-4, 51, 0], [-3, 65, 52], [-1, 51, 7], [1, 61, 7], [3, 62, 7], [5, 0, 7], [5, 65, 7], [5, 0, 7], [5, 100, 1], [5, 0, 7], [5, 0, 7], [5, 0, 7], [5, 100, 1], [5, 0, 7], [5, 0, 7], [5, 0, 7], [5, 100, 1], [5, 0, 7], [5, 0, 7], [5, 0, 7], [5, 100, 1], [5, 0, 7], [5, 0, 7], [5, 0, 7], [5, 100, 1], [5, 0, 7], [5, 0, 7], [5, 0, 7], [5, 100, 1], [5, 0, 7], [5, 0, 7], [4, 0, 7], [3, 100, 1], [2, 0, 7], [1, 0, 7], [-1, 7, 0], [-3, 7, 0], [-4, 100, 1], [-7, 7, 0], [-10, 7, 0], [-11, 7, 0], [-9, 100, 1], [-8, 7, 0], [-8, 7, 0], [-8, 7, 0], [-7, 100, 1], [-7, 7, 0], [-6, 7, 0], [-6, 7, 0], [-5, 100, 1], [-5, 7, 0], [-4, 7, 54], [-4, 7, 0], [-3, 100, 1], [-3, 7, 64], [-2, 7, 65], [-2, 7, 0], [-1, 100, 1], [-1, 100, 1], [-1, 0, 0], [-1, 0, 0], [-1, 0, 0], [1, 52, 52], [1, 52, 53], [3, 55, 55], [3, 50, 56], [4, 56, 7], [6, 56, 7], [7, 57, 7], [8, 58, 7], [9, 58, 7], [10, 59, 7], [8, 56, 7], [5, 7, 7], [1, 7, 59], [-2, 7, 56], [-5, 7, 52], [-6, 7, 60], [-7, 7, 58], [-6, 7, 50], [-5, 7, 58], [-3, 57, 57], [-2, 57, 52], [0, 58, 0], [0, 59, 50], [0, 7, 57], [-2, 7, 58], [-4, 7, 57], [-5, 7, 53], [-6, 7, 53], [-5, 7, 57], [-4, 7, 57], [-3, 7, 56], [-2, 7, 0], [0, 54, 50], [0, 59, 0], [0, 58, 0], [0, 57, 59], [0, 56, 0], [0, 55, 0], [0, 64, 50], [0, 58, 57], [0, 50, 57], [0, 0, 55], [0, 54, 57], [0, 50, 0], [0, 0, 59], [0, 53, 0], [0, 64, 54], [0, 12, 1], [0, 53, 51], [0, 0, 54], [0, 54, 51], [0, 50, 0], [0, 0, 55], [0, 56, 55], [0, 55, 56], [0, 56, 58], [0, 55, 53], [0, 56, 50], [0, 57, 53], [0, 58, 56], [0, 58, 58], [0, 58, 58], [0, 0, 0], [0, 59, 59], [0, 53, 59], [0, 0, 59], [0, 53, 58], [0, 0, 50], [0, 0, 0]);
function lvlRead(i, pointer) {
var _local1 = this;
var _local2 = pointer;
i = i % _local1.teAmount;
if (_local2 == undefined) {
_local1.lvlReadPointer++;
_local2 = _local1.lvlReadPointer;
}
_local2 = (_local2 + _local1.lvl.length) % _local1.lvl.length;
var _local3 = _local1.tes[i];
_local3.curve = _local1.lvl[_local2][0];
_local3.dekoL = _local1.lvl[_local2][1];
_local3.dekoR = _local1.lvl[_local2][2];
_local3.mc.swapDepths(_local1.teDepthCounter--);
_local3.mc.street.dekoL.gotoAndStop(_local1.lvl[_local2][1] + 1);
_local3.mc.street.dekoR.gotoAndStop(_local1.lvl[_local2][2] + 1);
}
function init() {
var _local1 = this;
_local1.phase = 0;
_local1.accelTimeStamp = 0;
bg.gotoAndStop(_local1.level);
switch (_local1.level) {
case "plain" :
_local1.teAmount = 10;
_local1.teBotMaxX = 1.9;
_local1.trackWidth = 2.7;
_local1.streetWidth = 2.2;
_local1.greenFriction = 0.93;
break;
case "night" :
_local1.teAmount = 10;
_local1.teBotMaxX = 1.9;
_local1.trackWidth = 2.7;
_local1.streetWidth = 2.2;
_local1.greenFriction = 0.93;
break;
case "fog" :
_local1.teAmount = 8;
_local1.teBotMaxX = 1.2;
_local1.trackWidth = 2.05;
_local1.streetWidth = 1.7;
_local1.greenFriction = 0.93;
break;
case "dirt" :
_local1.teAmount = 10;
_local1.teBotMaxX = 0.9;
_local1.trackWidth = 2.6;
_local1.streetWidth = 2.2;
_local1.greenFriction = 0.93;
}
_local1.teMcHeight = 100;
_local1.teHeight = 35;
_local1.teHeightScale = 0.8;
_local1.camX = 0;
_local1.scoreFlag = true;
_local1.pl.vx = 0;
_local1.pl.ax = 0.03;
_local1.pl.fx = 0.85;
_local1.pl.x = 0;
_local1.pl.y = -1;
_local1.pl.vz = 0;
_local1.pl.az = 0.005;
_local1.pl.fz = 0.98;
_local1.lvlReadPointer = -1;
_local1.teDepthCounter = 1000000 /* 0x0F4240 */;
_local1.spriteDepthCounter = 2000000 /* 0x1E8480 */;
_local1.pl.mc = _local1.attachMovie("bike", "bike", 3000000);
_local1.pl.mc._y = 155;
_local1.pl.mc.biker.sprite.tire.stop();
var _local3 = 0;
var _local2 = 0;
while (_local2 < _local1.teAmount) {
_local1.tes[_local2] = Array();
_local1.tes[_local2].mc = _local1.attachMovie("te", "track" + _local2, _local1.teDepthCounter--);
_local1.tes[_local2].col = new Color(_local1.tes[_local2].mc);
_local1.tes[_local2].mc.street.variant.gotoAndStop((_local1.level + "_") + _local3);
_local1.lvlRead(_local2);
_local1.tes[_local2].mc.grass.variant.gotoAndStop((_local1.level + "_") + _local3);
_local2++;
}
_local1.offTe = 0;
_local1.botcfg = {vzMax:0.15, az:0.005, ax:0.005, vzVariance:0.55};
_local2 = 0;
while (_local2 < 6) {
_local1.bots[_local2] = new Object();
_local1.bots[_local2].mc = _local1.attachMovie("bike", "bot" + _local2, _local1.spriteDepthCounter--);
_local1.bots[_local2].mc.biker.tire.gotoAndStop(1);
_local1.bots[_local2].col = new Color(_local1.bots[_local2].mc);
_local1.bots[_local2].vz = 0;
_local1.bots[_local2].az = _local1.botcfg.az;
_local1.bots[_local2].ax = _local1.botcfg.ax;
_local1.resetBot(_local1.bots[_local2]);
_local1.bots[_local2].x = _local1.botBases[_local2].x;
_local1.bots[_local2].z = _local1.botBases[_local2].z;
_local2++;
}
_local1.coltrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
}
function resetBot(bot) {
var _local1 = this;
var _local2 = bot;
_local2.x = ((_local1.teBotMaxX * Math.random()) * 2) - _local1.teBotMaxX;
_local2.mc.biker.gotoAndStop(Math.floor(Math.random() * 7) + 2);
_local2.vzMax = _local1.botcfg.vzMax + ((Math.random() * _local1.botcfg.vzMax) * _local1.botcfg.vzVariance);
}
function startBots() {
var _local1 = this;
for (var _local2 in _local1.bots) {
_local1.bots[_local2].mc.biker.tire.play();
}
}
function gameOver() {
var _local1 = _root;
_local1.actScore = int(_local1.osd.actScore);
_local1.gotoAndStop("raceover");
}
this.level = _root.level;
this.lvl = this.lvls[this.level];
this.tes = new Array();
this.bufferOffX = new Array();
this.bufferCurve = new Array();
this.coltrans = new Object();
this.bots = new Array();
this.botBases = new Array();
this.botBases[0] = {x:-1, z:0};
this.botBases[1] = {x:0, z:0};
this.botBases[2] = {x:1, z:0};
this.botBases[3] = {x:-1, z:1};
this.botBases[4] = {x:0, z:1};
this.botBases[5] = {x:1, z:1};
this.pl = new Object();
init();
if (_root.version eq "nkcheat") {
levedAlter = function (element, d, value, offset) {
var _local1 = this;
offset = int(offset);
var _local3 = _local1.lvl[(_local1.lvlReadPointer - 4) % _local1.lvl.length][element];
if (int(d) != 0) {
value = _local3 + d;
}
if (element > 0) {
if ((((((((value == 2) || (value == 15)) || (value == 16)) || (value == 17)) || (value == 10)) || (value == 11)) || (value == 12)) || (value == 100)) {
if (element == 1) {
_local1.levedAlter(2, 0, 1);
}
} else if ((((((((_local3 == 2) || (_local3 == 15)) || (_local3 == 16)) || (_local3 == 17)) || (_local3 == 10)) || (_local3 == 11)) || (_local3 == 12)) || (_local3 == 100)) {
if (element == 1) {
_local1.levedAlter(2, 0, 0);
}
}
}
_local1.lvl[((_local1.lvlReadPointer - 4) + offset) % _local1.lvl.length][element] = value;
_local1.levedPrint();
_local1.lvlReadPointer = _local1.lvlReadPointer - _local1.teAmount;
var _local2 = 0;
while (_local2 < _local1.teAmount) {
_local1.lvlRead((_local1.offTe + _local2) % _local1.teAmount);
_local2++;
}
};
levedRead = function (element, offset) {
var _local1 = this;
return(_local1.lvl[((_local1.lvlReadPointer - 4) + offset) % _local1.lvl.length][element]);
};
levedPrint = function () {
var _local1 = this;
var pos = (_local1.lvlReadPointer - 4);
var count = 0;
var angle = 0;
var drawX = 125;
var drawY = 200;
var _local3 = pos;
while (_local3 < (pos + 12)) {
var _local2 = _root["block" + count];
if (_local3 == pos) {
_local2.gotoAndStop(2);
} else {
_local2._alpha = 40;
}
var curve = _local1.lvl[_local3 % _local1.lvl.length][0];
_local2._x = drawX;
_local2._y = drawY;
_local2._rotation = angle;
_local2.d0.gotoAndStop(_local1.lvl[_local3 % _local1.lvl.length][1] + 1);
_local2.d1.gotoAndStop(_local1.lvl[_local3 % _local1.lvl.length][2] + 1);
_local2.swapDepths(10000 - count);
angle = angle - curve;
drawY = drawY - (Math.cos((angle / 180) * Math.PI) * 15);
drawX = drawX + (Math.sin((angle / 180) * Math.PI) * 15);
count++;
_local3++;
}
var angle = 0;
var drawX = 125;
var drawY = 200;
_local3 = pos;
while (_local3 > (pos - 12)) {
var _local2 = _root["block" + count];
if (_local3 == pos) {
_local2.gotoAndStop(2);
} else {
_local2._alpha = 40;
}
var curve = _local1.lvl[_local3 % _local1.lvl.length][0];
_local2._x = drawX;
_local2._y = drawY;
_local2._rotation = angle;
_local2.d0.gotoAndStop(_local1.lvl[_local3 % _local1.lvl.length][1] + 1);
_local2.d1.gotoAndStop(_local1.lvl[_local3 % _local1.lvl.length][2] + 1);
_local2.swapDepths(11000 + count);
angle = angle + curve;
drawY = drawY + (Math.cos((angle / 180) * Math.PI) * 15);
drawX = drawX - (Math.sin((angle / 180) * Math.PI) * 15);
count++;
_local3--;
}
};
Key.addListener(this);
this.onKeyDown = function () {
var _local1 = this;
var code = Key.getCode();
if ((code >= 48) && (code < 58)) {
_local1.levedInput = (_local1.levedInput + "") + (code - 48);
} else {
switch (code) {
case 220 :
_local1.levedInput = "";
return;
case 67 :
var _local3 = 0;
var polarity = 0;
polarity = int(_local1.levedRead(0, 0)) > 0;
while ((int(_local1.levedRead(0, _local3)) != 0) && (int(_local1.levedRead(0, _local3)) == polarity)) {
_local1.levedAlter(0, 0, 0, _local3);
_local3++;
}
_local3 = -1;
while ((int(_local1.levedRead(0, _local3)) != 0) && (int(_local1.levedRead(0, _local3)) == polarity)) {
_local1.levedAlter(0, 0, 0, _local3);
_local3--;
}
return;
case 68 :
_local1.levedDeko = int(_local1.levedInput);
return;
case 73 :
_local1.levedCurveIn = int(_local1.levedInput);
var curve = _local1.levedRead(0, 0);
_local3 = 0;
while (_local3 < _local1.levedCurveIn) {
var c = Math.round(curve * ((_local1.levedCurveIn - _local3) / _local1.levedCurveIn));
_local1.levedAlter(0, 0, c, -1 * _local3);
_local3++;
}
return;
case 76 :
_local3 = 0;
while (_local3 < 24) {
_root.attachMovie("block", "block" + _local3, 100 + _local3);
_root["block" + _local3]._xscale = (_root["block" + _local3]._yscale = 200);
_local3++;
}
_local1.levedPrint();
return;
case 79 :
_local1.levedCurveOut = int(_local1.levedInput);
var curve = _local1.levedRead(0, 0);
_local3 = 0;
while (_local3 < _local1.levedCurveOut) {
var c = Math.round(curve * ((_local1.levedCurveOut - _local3) / _local1.levedCurveOut));
_local1.levedAlter(0, 0, c, _local3);
_local3++;
}
return;
case 84 :
_local1.levedCurveThreshold = int(_local1.levedInput);
var curve = _local1.levedRead(0, 0);
_local3 = 0;
while (_local3 < _local1.levedCurveThreshold) {
_local1.levedAlter(0, 0, curve, _local3);
_local3++;
}
return;
case 88 :
var track = _local1.lvl;
_local3 = 0;
while (_local3 < track.length) {
var _local2 = track[_local3];
trace((((((("[" + _local2[0]) + ", ") + _local2[1]) + ", ") + _local2[2]) + "], ") + ((_local2.comment ne "") ? ("// " + _local2.comment) : ""));
_local3++;
}
return;
case 45 :
if (Key.isDown(16) && (Key.isDown(17))) {
_local1.levedDeko = _local1.levedRead(1, 0);
} else if (Key.isDown(16)) {
_local1.levedAlter(1, 1, 0);
_local1.levedDeko = _local1.levedRead(1, 0);
} else {
_local1.levedAlter(1, 0, int(_local1.levedDeko));
}
return;
case 33 :
if (Key.isDown(16) && (Key.isDown(17))) {
_local1.levedDeko = _local1.levedRead(2, 0);
} else if (Key.isDown(16)) {
_local1.levedAlter(2, 1, 0);
_local1.levedDeko = _local1.levedRead(2, 0);
} else {
_local1.levedAlter(2, 0, int(_local1.levedDeko));
}
return;
case 46 :
if (Key.isDown(16)) {
_local1.levedAlter(1, -1, 0);
_local1.levedDeko = _local1.levedRead(1, 0);
}
return;
case 34 :
if (Key.isDown(16)) {
_local1.levedAlter(2, -1, 0);
_local1.levedDeko = _local1.levedRead(2, 0);
}
return;
case 32 :
if (_local1.pl.vz == 0) {
_local1.pl.vz = 0.225;
} else {
_local1.pl.vz = 0;
}
return;
case 16 :
case 17 :
return;
}
}
};
}
function botSort(a, b) {
if (a.z < b.z) {
return(-1);
}
if (a.z > b.z) {
return(1);
}
return(0);
}
function draw() {
var _local1 = this;
var curve;
var mc;
var offCurve = 0;
var distance;
var ti;
var _local2;
_local2 = (getTimer() - _local1.timestamp) / 50;
_local1.timestamp = getTimer();
if (_local2 > 200) {
} else {
if (_local1.pl.vz > 0.1) {
_local1.pl.mc.biker.sprite.tire.play();
} else {
_local1.pl.mc.biker.sprite.tire.gotoAndStop(1);
}
if (Key.isDown(27) || (Key.isDown(8) && (_root.version eq "nkcheat"))) {
_local1.gameOver();
}
if (Key.isDown(38)) {
if (_local1.phase == 1) {
_local1.pl.mc.biker.sprite.light.gotoAndStop("off");
if (_local1.accelTimeStamp > 0) {
var a = (getTimer() - _local1.accelTimeStamp);
if ((a > 0) || (a < -1000)) {
_local1.accelTimeStamp = 0;
} else {
_local1.pl.vz = _local1.pl.vz + (_local1.pl.az * _local2);
}
}
_local1.pl.vz = _local1.pl.vz + (_local1.pl.az * _local2);
_local1.distance = _local1.distance - (0.05 * _local2);
} else if ((_local1.phase == 0) && (_local1.keyAccelTokens > 0)) {
_local1.keyAccelTokens = 0;
_local1.accelTimeStamp = getTimer() + 1000;
}
} else {
_local1.pl.mc.biker.sprite.light.gotoAndStop("on");
_local1.keyAccelTokens = 1;
}
if (Key.isDown(40)) {
_local1.pl.vz = _local1.pl.vz * Math.pow(0.95, _local2);
}
if (_local1.phase >= 2) {
_local1.pl.vz = _local1.pl.vz * Math.pow(0.95, _local2);
} else {
_local1.pl.vz = _local1.pl.vz * Math.pow(_local1.pl.fz, _local2);
}
var volSqueal = 0;
if (Key.isDown(37) && (_local1.phase > 0)) {
volSqueal = Math.max(0, Math.abs(_local1.pl.vx) - 0.3);
_local1.pl.vx = _local1.pl.vx - (0.1 * _local2);
if (!Key.isDown(38)) {
_local1.pl.vx = _local1.pl.vx - (0.05 * _local2);
}
}
if (Key.isDown(39) && (_local1.phase > 0)) {
volSqueal = Math.max(0, Math.abs(_local1.pl.vx) - 0.3);
_local1.pl.vx = _local1.pl.vx + (0.1 * _local2);
if (!Key.isDown(38)) {
_local1.pl.vx = _local1.pl.vx + (0.05 * _local2);
}
}
if (volSqueal > 0) {
_root.snd.fadeChannel(_root.sndChannelSqueal, volSqueal * 0.53, 5);
} else {
_root.snd.fadeChannel(_root.sndChannelSqueal, volSqueal, 5);
}
if (_root.version == "nkcheat") {
if (((!Key.isDown(16)) && (Key.isDown(34))) && (_local1.keyRightTokens > 0)) {
_local1.keyRightTokens = 0;
_local1.pl.vz = 0;
_local1.levedAlter(0, -1);
} else {
_local1.keyRightTokens = 1;
}
if (((!Key.isDown(16)) && (Key.isDown(46))) && (_local1.keyLeftTokens > 0)) {
_local1.keyLeftTokens = 0;
_local1.pl.vz = 0;
_local1.levedAlter(0, 1);
} else {
_local1.keyLeftTokens = 1;
}
if (Key.isDown(35) && (_local1.keyDownTokens > 0)) {
_local1.pl.vz = 0;
_local1.distance = int(_local1.distance) + 1.1;
_local1.keyDownTokens = 0;
} else {
_local1.keyDownTokens = 1;
}
if (Key.isDown(36) && (_local1.keyUpTokens > 0)) {
_local1.pl.vz = 0;
_local1.keyUpTokens = 0;
_local1.distance = int(_local1.distance) - 1;
} else {
_local1.keyUpTokens = 1;
}
}
_local1.pl.vx = _local1.pl.vx * Math.pow(_local1.pl.fx, _local2);
_local1.pl.mc.biker._rotation = (_local1.pl.mc.biker._rotation * 0.8) + (((_local1.pl.vx * Math.max(0.08, Math.abs(_local1.pl.vz))) * 330) * 0.2);
_local1.pl.mc.biker.sprite.gotoAndStop(Math.min(20, Math.max(1, int((_local1.pl.vx + 0.5) * 20))));
_local1._rotation = (_local1.pl.vx * Math.abs(_local1.pl.vz)) * 90;
_local1.distance = _local1.distance - (_local1.pl.vz * _local2);
_root.osd.actScore = _root.osd.actScore + ((_local1.pl.vz * _local2) * 5);
if (_local1.phase > 1) {
if ((_local1.phase == 2) || (_local1.phase == 3)) {
if (_local1.phase == 3) {
_local1.pl.vz = _local1.pl.vz * Math.pow(0.95, _local2);
}
if (_local1.pl.vz < 0.003) {
_local1.phase = 4;
_local1.gameOver();
} else if (_local1.pl.vz < 0.015) {
_local1.pl.vz * 0.5;
}
}
}
var control;
_local1.pl.x = Math.max(-1 * _local1.trackWidth, Math.min(_local1.trackWidth, _local1.pl.x));
control = 0.2;
if (_local1.level == "dirt") {
control = 0.15;
if (Math.abs(_local1.pl.x) > _local1.streetWidth) {
control = 0.12;
} else if (Math.abs(_local1.pl.x) > 1) {
control = 0.1;
_local1.pl.vz = _local1.pl.vz * Math.pow(0.997, _local2);
}
}
_local1.pl.x = _local1.pl.x + (((_local1.pl.vx * _local2) * control) * Math.max(0.7, Math.min(0.8, _local1.pl.vz * 10)));
_local1.pl.vz = Math.max(0, _local1.pl.vz - (Math.abs(_local1.pl.vx * 0.001) * _local2));
_local1.camX = _local1.pl.x * -100;
while (_local1.distance < 0) {
_local1.distance = _local1.distance + 1;
_local1.lvlRead(_local1.offTe);
_local1.offTe++;
_local1.scoreFlag = true;
}
while (_local1.distance > 1) {
_local1.lvlReadPointer--;
_local1.lvlRead(_local1.offTe, (_local1.lvlReadPointer - _local1.teAmount) + 1);
_local1.distance = _local1.distance - 1;
_local1.offTe--;
}
p = Math.pow(0.64, _local1.pl.y);
mc = _local1.pl.mc;
mc._y = p * 100;
mc._xscale = (mc._yscale = p * 100);
mc._x = ((_local1.pl.x * p) * 100) + _local1.camX;
var _local3 = 0;
while (_local3 < _local1.teAmount) {
te = _local1.tes[(_local3 + _local1.offTe) % _local1.teAmount];
mc = te.mc;
distance = (_local1.distance - 2) + _local3;
_local1.sfx(te, distance);
p = Math.pow(0.64, distance);
mc._y = p * 100;
scale = p * 100;
mc.street._xscale = scale;
mc.street._yscale = scale;
mc.grass._yscale = scale;
curve = te.curve;
if (_local3 == 0) {
x = _local1.camX * p;
curve = curve * _local1.distance;
} else {
x = spliceX;
}
if (_local3 == 0) {
var dx = (((_local1.pl.vz * te.curve) * 0.09) * _local2);
_local1.pl.x = _local1.pl.x + dx;
_local1.bg.shil._x = ((_local1.bg.shil._x + (dx * 60)) + 700) % 700;
}
if (_local3 == 1) {
if (Math.abs(_local1.pl.x) > (_local1.streetWidth + 0.1)) {
_local1.pl.vz = _local1.pl.vz * Math.pow(_local1.greenFriction, _local2);
if ((_local1.pl.x > 0) && (te.dekoR > 0)) {
_root.snd.playEvent("sndHitDeko", Math.abs(_local1.pl.vz) * 12);
_local1.pl.vz = _local1.pl.vz * Math.pow(0.7, _local2);
_local1.pl.vx = _local1.pl.vx - (0.5 * _local2);
} else if ((_local1.pl.x < 0) && (te.dekoL > 0)) {
_root.snd.playEvent("sndHitDeko", Math.abs(_local1.pl.vz) * 12);
_local1.pl.vz = _local1.pl.vz * Math.pow(0.7, _local2);
_local1.pl.vx = _local1.pl.vx + (0.5 * _local2);
}
}
if ((te.dekoL == 11) || (te.dekoL == 12)) {
if (_local1.scoreFlag == true) {
_root.statistics[_root.level].checkpoints.push({score:0, time:0});
_root.osd.score(false, te.dekoL == 12);
_local1.scoreFlag = false;
_local1.phase = 1;
}
if ((te.dekoL == 12) && (_root.version != "nkcheat")) {
_root.statistics[_root.level].winner = true;
_local1.phase = 3;
}
}
}
mc.street._x = x;
_local1.bufferOffX[_local3] = x;
_local1.bufferCurve[_local3] = te.curve;
offCurve = offCurve + curve;
curve = (_local1.camX * 0.094) + offCurve;
spliceX = x - ((curve * 3.8) * p);
curve = Math.min(Math.max(71 - int(curve), 1), 141);
mc.street.gotoAndStop(curve);
_local3++;
}
_local1.bufferOffX[_local3] = _local1.bufferOffX[_local3 - 1];
var d;
var rot;
var strategy;
_local1.bots.sort(_local1.botSort);
var sndVolume = 0.5;
_local3 = 0;
while (_local3 < _local1.bots.length) {
_local3 = int(_local3);
bot = _local1.bots[_local3];
if (bot.z < 0) {
sndVolume = sndVolume + (Math.max(0, bot.z + 5) * 0.06);
} else {
sndVolume = sndVolume + (Math.max(0, 3 - bot.z) * 0.06);
}
if ((_local1.phase == 1) || (_local1.phase == 2)) {
bot.vz = Math.min(bot.vz + (bot.az * _local2), bot.vzMax);
} else {
bot.vz = bot.vz * Math.pow(0.96, _local2);
bot.vx = bot.vx * 0.5;
}
if ((_local1.phase == 0) || (_local1.phase == 4)) {
bot.vz = 0;
bot.vx = 0;
}
bot.z = bot.z + ((bot.vz - _local1.pl.vz) * _local2);
bot.x = bot.x + (bot.vx * _local2);
bot.vx = bot.vx * Math.pow(0.95, _local2);
mc = bot.mc;
if ((bot.z < -2) || (bot.z >= (_local1.teAmount - 3))) {
if (bot.z > (_local1.teAmount + 6)) {
bot.z = bot.z - (_local1.teAmount + 8);
}
if (bot.z < -5) {
bot.z = _local1.teAmount + (Math.random() * 5);
}
mc._visible = false;
} else {
mc._visible = true;
if (bot.z < -1) {
mc.swapDepths((4000000 - int(bot.z * 10000)) - _local3);
} else {
mc.swapDepths((2000000 - int(bot.z * 10000)) - _local3);
}
ti = (bot.z + 2) - _local1.distance;
distance = 1 - (ti - Math.floor(ti));
ti = Math.ceil(ti);
_local1.sfx(bot, bot.z);
curve = _local1.tes[(ti + _local1.offTe) % _local1.teAmount].curve;
rot = curve + (bot.vx * -100);
mc.biker._rotation = Math.max(Math.min((mc.biker._rotation * 0.9) + ((rot * -6.5) * 0.1), 33), -33);
p = Math.pow(0.64, bot.z);
mc._y = p * 100;
mc._x = (((bot.x * p) * 100) + (_local1.bufferOffX[ti] * distance)) + (_local1.bufferOffX[ti + 1] * (1 - distance));
mc._xscale = (mc._yscale = p * 100);
strategy = 0;
d = Math.abs(bot.x - _local1.pl.x);
if (d < 0.25) {
if (bot.z > -1) {
if (bot.z < -0.63) {
_root.snd.playEvent("sndHit", (_local1.pl.vz - bot.vz) * 10);
_local1.pl.vz = Math.min(_local1.pl.vz, bot.vz) * Math.pow(0.7, _local2);
}
} else if (bot.z > -1.37) {
_root.snd.playEvent("sndHit", (bot.vz - _local1.pl.vz) * 10);
bot.vz = Math.min(_local1.pl.vz, bot.vz) * Math.pow(0.7, _local2);
} else {
if (_local1.pl.x > 0) {
bot.vx = bot.vx - (bot.ax * _local2);
} else {
bot.vx = bot.vx + (bot.ax * _local2);
}
strategy = 11;
}
} else if (d < 0.5) {
if ((bot.z > -1.5) && (bot.z < -0.63)) {
_root.snd.playEvent("sndHitShoulder", Math.abs(_local1.pl.vx - bot.vx) * 10);
_local1.pl.vx = _local1.pl.vx * Math.pow(0.8, _local2);
if (_local1.pl.x > bot.x) {
bot.vx = Math.min(_local1.pl.vx * control, bot.vx) - (bot.ax * _local2);
strategy = 12;
} else {
bot.vx = Math.max(_local1.pl.vx * control, bot.vx) + (bot.ax * _local2);
strategy = 12;
}
}
}
if (Math.abs(bot.x) >= _local1.teBotMaxX) {
if (_local1.bot.x > 0) {
bot.vx = bot.vx - (bot.ax * _local2);
} else {
bot.vx = bot.vx + (bot.ax * _local2);
}
strategy = 20;
if (Math.abs(bot.x) > _local1.streetWidth) {
bot.vz = bot.vz * Math.pow(_local1.greenFriction, _local2);
}
if (_local1.level == "dirt") {
if ((Math.abs(_local1.bot.x) < _local1.streetWidth) && (Math.abs(_local1.bot.x) > 1)) {
_local1.bot.vz = _local1.bot.vz * Math.pow(0.987, _local2);
}
}
}
if (strategy == 0) {
if (_local3 < (_local1.bots.length - 1)) {
var j = (_local3 + 1);
while (j < _local1.bots.length) {
other = _local1.bots[j];
if ((Math.abs(bot.x - other.x) < 0.3) && ((other.z - bot.z) < 1)) {
if (bot.x > 0) {
bot.vx = bot.vx - (bot.ax * _local2);
} else {
bot.vx = bot.vx - (bot.ax * _local2);
}
bot.vz = bot.vz * Math.pow(0.95, _local2);
strategy = 30;
}
j++;
}
}
}
if (strategy == 0) {
bot.vx = bot.vx - (((bot.ax * _local2) * curve) / 15);
strategy = 40;
}
}
_local3++;
}
sndVolume = Math.min(0.8, sndVolume) * 0.4;
_root.snd.fadeChannel(_root.sndChannelAmbience, sndVolume, 10);
if (Key.isDown(36) || (Key.isDown(35))) {
_local1.levedPrint();
}
}
}
function sfx(te, distance) {
var _local2 = this;
var _local3 = te;
var _local1;
switch (_local2.level) {
case "plain" :
_local1 = (1 - ((distance - 2) / (_local2.teAmount - 2))) * 100;
_local2.coltrans.ra = _local1;
_local2.coltrans.ga = _local1;
_local2.coltrans.ba = _local1;
_local1 = ((100 - _local1) / 100) * 255;
_local2.coltrans.rb = _local1;
_local2.coltrans.gb = _local1;
_local2.coltrans.bb = _local1;
_local3.col.setTransform(_local2.coltrans);
return;
case "night" :
_local1 = 100 - (((distance + 2) / _local2.teAmount) * 100);
_local2.coltrans.ra = _local1;
_local2.coltrans.ga = _local1;
_local2.coltrans.ba = _local1;
_local3.col.setTransform(_local2.coltrans);
return;
case "fog" :
_local1 = (1 - ((distance + 2) / _local2.teAmount)) * 100;
_local2.coltrans.ra = _local1;
_local2.coltrans.ga = _local1;
_local2.coltrans.ba = _local1;
_local1 = ((100 - _local1) / 100) * 255;
_local2.coltrans.rb = _local1;
_local2.coltrans.gb = _local1;
_local2.coltrans.bb = _local1;
_local3.col.setTransform(_local2.coltrans);
return;
case "dirt" :
_local1 = (1 - ((distance + 2) / _local2.teAmount)) * 100;
_local2.coltrans.ra = _local1;
_local2.coltrans.ga = _local1;
_local2.coltrans.ba = _local1;
_local1 = (100 - _local1) / 100;
_local2.coltrans.rb = _local1 * 246;
_local2.coltrans.gb = _local1 * 236;
_local2.coltrans.bb = _local1 * 190;
_local3.col.setTransform(_local2.coltrans);
}
}
Symbol 321 MovieClip Frame 2
draw();
Symbol 321 MovieClip Frame 3
gotoAndPlay (2);
Symbol 325 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 11
play();
Symbol 356 MovieClip Frame 12
if (Math.abs(_root.w.pl.vz) < 0.02) {
prevFrame();
}
Symbol 356 MovieClip Frame 13
gotoAndStop ("inactive");
Symbol 356 MovieClip Frame 19
_root.snd.fadeChannel(_root.sndChannelMusic, 1, 15);
_root.snd.fadeChannel(_root.sndChannelMotor, 1, 15);
_root.snd.fadeChannel(_root.sndChannelSqueal, 1, 15);
Symbol 356 MovieClip Frame 63
gotoAndStop ("inactive");
Symbol 356 MovieClip Frame 87
_root.snd.playEvent("sndMarks");
Symbol 356 MovieClip Frame 122
_root.snd.playEvent("sndSet");
Symbol 356 MovieClip Frame 157
_parent.go();
_root.snd.playEvent("sndGo");
_root.snd.fadeChannel(_root.sndChannelMotors, 0, 20);
_root.snd.playEvent("sndRaceStart", 0.5);
_root.sndChannelAmbience = _root.snd.playLoop("sndRaceAmbience", 0);
_root.snd.fadeChannel(_root.sndChannelAmbience, 0.5, 100);
Symbol 356 MovieClip Frame 179
gotoAndStop ("inactive");
Symbol 365 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 1
function resetFps() {
this.frames = 0;
this.ms = getTimer();
}
function score(ifInit, ifFinish) {
var _local1 = this;
var _local2 = _root;
var resttime = Math.max(0, time - (getTimer() - timestamp));
timestamp = getTimer();
_local1.timeScore = getTimer();
if (!ifInit) {
var _local3 = Math.max(int(resttime), 0);
var checkpointId = _local2.statistics[_local2.level].checkpoints.length;
var multibonus = checkpointId;
_local3 = _local3 * multibonus;
_local1.actScore = _local1.actScore + _local3;
if (_local3 > 0) {
_local1.titles.bonus = (multibonus + " x Bonus: ") + _local3;
} else {
_local1.titles.bonus = "No Bonus";
}
var statsObj = _local2.statistics[_local2.level].checkpoints[_local2.statistics[_local2.level].checkpoints.length - 1];
statsObj.bonus = _local3;
statsObj.time = getTimer() - _local1.checkpointTimestamp;
_local1.checkpointTimestamp = getTimer();
if (ifFinish) {
_local2.snd.playEvent("sndFinish");
_local1.titles.title = "Finish!";
} else {
_local2.snd.playEvent("sndCheckpoint");
_local1.titles.title = "Checkpoint!";
}
trace("gap check!");
_local1.titles.gotoAndPlay("checkpoint");
} else {
_local1.checkpointTimestamp = getTimer();
_local1.time = 0;
resttime = 0;
}
_local1.time = resttime + 30000;
_local1.warn = 6;
}
function go() {
resetFps();
score(true);
_root.w.phase = 1;
_root.w.startBots();
this.gotoAndPlay("loop");
}
actScore = 0;
timeScore = -100000;
timeDisplay = 30;
timeDisplayTenth = ".0";
Symbol 381 MovieClip Frame 7
stop();
titles.gotoAndPlay("markssetgo");
Symbol 381 MovieClip Frame 8
mph = int(_root.w.pl.vz * 800);
tacho.gotoAndStop(int(_root.w.pl.vz * 380) + 1);
meter.gotoAndStop(int((this.pos / _root.w.lvl.length) * 100) + 1);
scoreD = int(actScore);
timeD = time - (getTimer() - timestamp);
if (((this.pos == 0) && (timeD < 29000)) && (titles._currentframe == 1)) {
titles.gotoAndPlay("help");
}
if ((timeD < 0) && (_root.version ne "nkcheat")) {
timeD = 0;
if (_root.w.phase == 1) {
_root.w.phase = 2;
this.titles.title = "Time Out!";
this.titles.bonus = "";
_root.snd.fadeChannel(_root.sndChannelMusic, 0, 15);
_root.snd.fadeChannel(_root.sndChannelMotor, 0, 15);
_root.snd.fadeChannel(_root.sndChannelSqueal, 0, 15);
this.titles.gotoAndPlay("checkpoint");
_root.snd.playEvent("sndTimeout");
}
}
timeDisplay = int(timeD / 1000);
if (timeDisplay < 10) {
timeDisplay = "0" + timeDisplay;
}
timeDisplayTenth = "." + (int(timeD / 100) % 10);
if (timeDisplay < warn) {
if (warn > 1) {
_root.snd.playEvent("sndTimer");
}
mcTime.play();
warn--;
}
fps = Math.floor(((frames++) / (getTimer() - ms)) * 10000) / 10;
pos = _root.w.offTe;
if (Key.isDown(8) && (_root.version == "nkcheat")) {
timestamp = getTimer();
time = 30000;
resetFps();
}
Symbol 381 MovieClip Frame 9
gotoAndPlay ("loop");
Symbol 389 Button
on (press) {
_root.gotoAndStop(_root.nextStep);
}
Symbol 408 Button
on (press) {
_root.gotoAndStop("gameover");
}
Symbol 410 Button
on (release) {
if (_root.branding == "arcadetown") {
_root.gotoAndStop("arcadeTownScore");
} else if (_root.branding == "happytree") {
_root.gotoAndStop("happyTreeScore");
} else {
_global.api.highscore.submit(_root.game, "", _root.totalScore, 0);
}
}
Symbol 422 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 434 Button
on (release) {
_root.highscorePlugin(_root.totalScore);
_root.gotoAndStop("menu");
}
Symbol 439 MovieClip Frame 1
if (_root.totalScore < 100000) {
if (_root.branding == "chickstop") {
gotoAndStop ("chickBad");
} else {
gotoAndStop ("playaBad");
}
} else if (_root.branding == "chickstop") {
gotoAndStop ("chickGood");
} else {
gotoAndStop ("playaGood");
}
Symbol 442 Button
on (release) {
_root.highscorePlugin(_root.totalScore, _root.username);
_root.gotoAndStop("menu");
}
Symbol 447 Button
on (release) {
if ((this.username.length > 0) && (this.useremail.length > 0)) {
trace("blah!!");
this.nextFrame();
} else {
trace("baddate");
}
}
Symbol 453 MovieClip Frame 1
stop();
_root.actScore = _root.totalScore;
Symbol 453 MovieClip Frame 2
pinacletop.removeMovieClip();
this.scorea = _root.actScore + "a";
scorelength = this.scorea.length;
scorelength--;
a = 0;
while (a < scorelength) {
this["scorenum" + a] = this.scorea.substr(a, 1);
if (this["scorenum" + a] == 0) {
this["scorenum" + a] = "z";
} else if (this["scorenum" + a] == 1) {
this["scorenum" + a] = 7;
} else if (this["scorenum" + a] == 2) {
this["scorenum" + a] = 3;
} else if (this["scorenum" + a] == 3) {
this["scorenum" + a] = "p";
} else if (this["scorenum" + a] == 4) {
this["scorenum" + a] = "j";
} else if (this["scorenum" + a] == 5) {
this["scorenum" + a] = 5;
} else if (this["scorenum" + a] == 6) {
this["scorenum" + a] = 1;
} else if (this["scorenum" + a] == 7) {
this["scorenum" + a] = "t";
} else if (this["scorenum" + a] == 8) {
this["scorenum" + a] = "k";
} else if (this["scorenum" + a] == 9) {
this["scorenum" + a] = 6;
}
a++;
}
this.scorecode = ("x" + random(9)) + random(9);
b = scorelength - 1;
while (b >= 0) {
this.scorecode = this.scorecode + this["scorenum" + b];
b--;
}
mynewscore = _root.actScore;
getURL ((((("http://www.happytree.nl/games/" + _root.gameName) + "/") + _root.gameName) + "score.php?site=") + _root.site, "_top", "POST");
Symbol 456 Button
on (release) {
getURL ("http://www.neodelight.com/games/turbospirit", "_top");
}
Symbol 461 Button
on (release) {
getURL ("http://www.neodelight.com/games/turbospirit", "_top");
}