Frame 1
function muteHandler() {
muted = !muted;
if (muted) {
globalSound.setVolume(0);
} else {
globalSound.setVolume(100);
}
}
function killAd() {
removeMovieClip(adBox);
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 5;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
var muted = false;
var globalSound = new Sound(this);
globalSound.setVolume(100);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
k = 0;
onEnterFrame = function () {
var _local2 = Math.floor(framesLoaded / 4) - 1;
afw._x = afw._x - (0.3 * ((afw._x - _root["b" + _local2]._x) / 2));
afw._y = afw._y - (0.3 * ((afw._y - _root["b" + _local2]._y) / 2));
cat.removeMovieClip();
createEmptyMovieClip("cat", k++);
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
if ((framesLoaded >= 100) && (playMe.act == false)) {
playMe.act = true;
playMe.play();
}
perDisp = framesLoaded + "%";
i = 0;
while (i < 25) {
if (framesLoaded >= (i * 4)) {
_root["b" + i]._alpha = _root["b" + i]._alpha - (0.08 * ((_root["b" + i]._alpha - 100) / 2));
_root["b" + i]._x = _root["b" + i]._x - (0.3 * ((_root["b" + i]._x - _root["b" + i].mainX) / 2));
_root["b" + i]._y = _root["b" + i]._y - (0.3 * ((_root["b" + i]._y - _root["b" + i].mainY) / 2));
if (i != 0) {
}
}
base = 1.5;
if (_root["b" + i].hitTest(_xmouse, _ymouse)) {
if ((_xmouse - _root["b" + i]._x) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x - (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x - (base / (t + 1));
t++;
}
} else if ((_xmouse - _root["b" + i]._x) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x + (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x + (base / (t + 1));
t++;
}
}
if ((_ymouse - _root["b" + i]._y) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y - (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y - (base / (t + 1));
t++;
}
} else if ((_ymouse - _root["b" + i]._y) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y + (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y + (base / (t + 1));
t++;
}
}
}
i++;
}
};
i = 0;
while (i < 25) {
_root["b" + i].mainX = _root["b" + i]._x;
_root["b" + i].mainY = _root["b" + i]._y;
_root["b" + i]._y = 560;
_root["b" + i]._alpha = 0;
_root["b" + i].act = true;
i++;
}
Frame 3
bandLevel = 0;
launcherLevel = 0;
rocketPackLevel = 0;
leftRocketLevel = 0;
rightRocketLevel = 0;
eRocketLevel = 0;
parachuteLevel = 0;
magnetLevel = 0;
gogglesLevel = 0;
radarLevel = 0;
var day = 1;
var totalCash = 50;
stop();
Frame 4
function initializeLevels() {
i = 1;
while (i <= 11) {
setBlip("band", i, bandPrices, bandLevel);
setBlip("launch", i, launcherPrices, launcherLevel);
setBlip("rocket", i, rocketPackPrices, rocketPackLevel);
setBlip("lRocket", i, rocketSidesPrices, leftRocketLevel);
setBlip("rRocket", i, rocketSidesPrices, rightRocketLevel);
i++;
}
i = 1;
while (i <= 6) {
setBlip("magnet", i, magnetPrices, magnetLevel);
i++;
}
i = 1;
while (i <= 4) {
setBlip("eRocket", i, eRocketPrices, eRocketLevel);
setBlip("parachute", i, parachutePrices, parachuteLevel);
setBlip("goggles", i, gogglePrices, gogglesLevel);
setBlip("radar", i, radarPrices, radarLevel);
i++;
}
}
function setBlip(str, num, arr, lev) {
if (arr[num - 1] < totalCash) {
_root[str + num].gotoAndStop(1);
} else {
_root[str + num].gotoAndStop(3);
}
if (lev >= num) {
_root[str + num].gotoAndStop(2);
}
}
function disp() {
cashDisp = ("$" + commaMonger(Math.floor(totalCash))) + formatCents(totalCash - Math.floor(totalCash));
}
function roll() {
i = 1;
while (i <= 11) {
detectRoll("band", i, bandPrices, bandLevel);
detectRoll("launch", i, launcherPrices, launcherLevel);
detectRoll("rocket", i, rocketPackPrices, rocketPackLevel);
detectRoll("lRocket", i, rocketSidesPrices, leftRocketLevel);
detectRoll("rRocket", i, rocketSidesPrices, rightRocketLevel);
i++;
}
i = 1;
while (i <= 6) {
detectRoll("magnet", i, magnetPrices, magnetLevel);
i++;
}
i = 1;
while (i <= 4) {
detectRoll("eRocket", i, eRocketPrices, rRocketLevel);
detectRoll("parachute", i, parachutePrices, parachuteLevel);
detectRoll("goggles", i, gogglePrices, gogglesLevel);
detectRoll("radar", i, radarPrices, radarLevel);
i++;
}
costDisp = ("$" + commaMonger(dollars)) + formatCents(cents);
}
function detectRoll(str, num, arr, lev) {
if (_root[str + i].hitTest(_xmouse, _ymouse)) {
cost = arr[i - 1];
dollars = Math.floor(cost);
cents = cost - dollars;
curText = _root[str + "Desc"][i - 1];
_root[str + i].frame._visible = true;
focusPoint = _root[str + i];
focusCost = cost;
focusNum = i;
focusItem = str;
biddy._visible = true;
} else {
_root[str + i].frame._visible = false;
}
}
function formatCents(num) {
tempNumber = Math.floor(num * 100);
if (tempNumber < 10) {
return(".0" + tempNumber);
}
if (tempNumber == 0) {
return(undefined);
}
return("." + tempNumber);
}
function commaMonger(num) {
if (num < 1000) {
return(String(num));
}
len = String(num).length;
var _local1 = new Array();
i = 0;
while (i < len) {
_local1.push(String(num).charAt((len - 1) - i));
i++;
}
tempString = "";
i = 0;
while (i < len) {
if (((i % 3) == 0) && (i != 0)) {
tempString = (_local1[i] + ",") + tempString;
} else {
tempString = _local1[i] + tempString;
}
i++;
}
return(tempString);
}
stop();
Mouse.hide();
startDrag (cursor, true, 15, 55, 530, 430);
var dayDisp = ("\u0434\u0435\u043D\u044C " + day);
var bandColors = new Array(0, 2957663, 1730103, 811124, 7503106, 6626075, 3431970, 6952273, 5189937, 7948806, 4210752);
var bandPrices = new Array(3.25, 24.5, 54, 124, 213.25, 430.75, 890, 1639, 4592.5, 9384.25);
var launcherPrices = new Array(7.25, 24.25, 48.75, 96.5, 192.25, 384.75, 768.5, 1536.25, 3072, 6839.25);
var rocketPackPrices = new Array(15.25, 56.25, 133, 210.75, 520.75, 760.25, 1492.25, 2034.75, 3012.5, 4148.25);
var rocketSidesPrices = new Array(10.25, 20.25, 40.75, 80.25, 170.25, 350.5, 555.5, 986, 1200.5, 1575.75);
var eRocketPrices = new Array(500, 1000, 1500);
var parachutePrices = new Array(250, 500, 750);
var magnetPrices = new Array(500, 1000, 1500, 2000, 5000);
var gogglePrices = new Array(12.5, 46.25, 150);
var radarPrices = new Array(250, 1000, 2000);
var bandDesc = new Array();
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 1: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 10%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 2: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 20%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 3: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 30%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 4: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 40%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 5: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 50%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 6: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 60%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 7: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 70%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 8: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 80%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 9: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 90%");
bandDesc.push("\u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C 10: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u042D\u043B\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0441\u0442\u044C \u043D\u0430 100%");
var bandPower = new Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.1);
var launchDesc = new Array();
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 1: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 15 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 2: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 20 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 3: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 25 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 4: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 30 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 5: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 35 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 6: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 40 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 7: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 45 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 8: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 50 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 9: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 60 \u043C\u0435\u0442\u0440\u043E\u0432");
launchDesc.push("\u0412\u044B\u0441\u043E\u0442\u0430 10: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044B\u0441\u043E\u0442\u0443 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043D\u0430 70 \u043C\u0435\u0442\u0440\u043E\u0432");
var launchSize = new Array(0, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70);
var rocketDesc = new Array();
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 1: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 10%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 2: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 20%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 3: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 35%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 4: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 60%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 5: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 100%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 6: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 200%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 7: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 300%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 8: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 400%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 9: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 500%");
rocketDesc.push("\u0413\u0435\u043B\u0438\u0439 10: \u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0435\u043F\u0435\u043D\u044C \u0440\u0430\u0437\u0443\u043F\u043B\u043E\u0442\u043D\u0435\u043D\u0438\u044F \u0413\u0435\u043B\u0438\u044F \u043D\u0430 800%");
var rocketSize = new Array(0, 0.1, 0.2, 0.35, 0.6, 1, 2, 3, 4, 5, 8);
var lRocketDesc = new Array();
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 1: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 25%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 2: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 50%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 3: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 75%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 4: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 100%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 5: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 150%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 6: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 200%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 7: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 250%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 8: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 300%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 9: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 350%");
lRocketDesc.push("\u041B\u0435\u0432\u0430\u044F \u0436\u0430\u0436\u0430 10: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0433\u0438 \u043B\u0435\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 400%");
var lRocketSize = new Array(0, 0.25, 0.5, 0.75, 1, 1.5, 2, 2.5, 3, 3.5, 4);
var rRocketSize = new Array(0, 0.25, 0.5, 0.75, 1, 1.5, 2, 2.5, 3, 3.5, 4);
var rRocketDesc = new Array();
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 1: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 25%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 2: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 50%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 3: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 75%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 4: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 100%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 5: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 150%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 6: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 200%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 7: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 250%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 8: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 300%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 9: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 350%");
rRocketDesc.push("\u041F\u0440\u0430\u0432\u0430\u044F \u0436\u0430\u0436\u0430 10: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u0442\u044F\u0413\u0438 \u043F\u0440\u0430\u0432\u043E\u0413\u043E \u0434\u0432\u0438\u0413\u0430\u0442\u0435\u043B\u044F \u043D\u0430 400%");
var magnetDesc = new Array();
magnetDesc.push("\u041C\u0430\u0433\u043D\u0438\u0442 1: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0435\u043F\u044F\u043A\u0438 \u0437\u0430 \u043A\u0430\u0436\u0434\u044B\u0439 1 \u043C\u0435\u0442\u0440 ");
magnetDesc.push("\u041C\u0430\u0433\u0438\u043D\u0442 2: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0435\u043F\u044F\u043A\u0438 \u0437\u0430 \u043A\u0430\u0436\u0434\u044B\u0435 2 \u043C\u0435\u0442\u0440\u0430");
magnetDesc.push("\u041C\u0430\u0433\u043D\u0438\u0442 3: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0435\u043F\u044F\u043A\u0438 \u0437\u0430 \u043A\u0430\u0436\u0434\u044B\u0435 3 \u043C\u0435\u0442\u0440\u0430");
magnetDesc.push("\u041C\u0430\u0433\u043D\u0438\u0442 4: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0435\u043F\u044F\u043A\u0438 \u0437\u0430 \u043A\u0430\u0436\u0434\u044B\u0435 4 \u043C\u0435\u0442\u0440\u0430");
magnetDesc.push("\u041C\u0430\u0433\u043D\u0438\u0442 5: \u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0435\u043F\u044F\u043A\u0438 \u0437\u0430 \u043A\u0430\u0436\u0434\u044B\u0435 5 \u043C\u0435\u0442\u0440\u043E\u0432");
var magnetSize = new Array(0, 1, 2, 3, 4, 5);
var gogglesDesc = new Array();
gogglesDesc.push("\u0421\u0442\u0438\u043B\u044C 1: \u0412\u044B\u0433\u043B\u044F\u0434\u0438\u0448\u044C \u0441\u0442\u0438\u043B\u044C\u043D\u044B\u043C");
gogglesDesc.push("\u0421\u0442\u0438\u043B\u044C 2: \u0412\u044B\u0433\u043B\u044F\u0434\u0438\u0448\u044C \u043F\u0440\u0438\u0432\u043B\u0435\u043A\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C");
gogglesDesc.push("\u0421\u0442\u0438\u043B\u044C 3: \u0412\u044B\u0433\u043B\u044F\u0434\u0438\u0448\u044C \u0441\u0442\u0438\u043B\u044C\u043D\u044B\u043C \u0438 \u043F\u0440\u0438\u0432\u043B\u0435\u043A\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C");
var radarDesc = new Array();
radarDesc.push("\u0420\u0430\u0434\u0430\u0440 1: \u0412\u0438\u0434\u0438\u0448\u044C \u0433\u043E\u043B\u0443\u0431\u044B\u0435 \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u044B \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438");
radarDesc.push("\u0420\u0430\u0434\u0430\u0440 2: \u0412\u0438\u0434\u0438\u0448\u044C \u0432\u0441\u0435 \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u044B \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438");
radarDesc.push("\u0420\u0430\u0434\u0430\u0440 3: \u0412\u0438\u0434\u0438\u0448\u044C \u0426\u0432\u0435\u0442 \u0432\u0441\u0435\u0425 \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438");
var eRocketDesc = new Array();
eRocketDesc.push("\u0421\u0435\u043A\u0440\u0435\u0442\u043D\u0430\u044F \u0436\u0430\u0436\u0430 1: \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u043E\u0439 \u0440\u0430\u043A\u0435\u0442\u044B \u0434\u043B\u044F \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043D\u0430 \u0432\u044B\u0441\u043E\u0442\u0443 \u043E\u043A\u043E\u043B\u043E 200 \u043C\u0435\u0442\u0440\u043E\u0432. \u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0441\u0442\u0440\u0435\u043B\u043A\u043E\u0439 \u0432\u0432\u0435\u0440x. \u041E\u0434\u043D\u0430 \u0448\u0442\u0443\u043A\u0430. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C.");
eRocketDesc.push("\u0421\u0435\u043A\u0440\u0435\u0442\u043D\u0430\u044F \u0436\u0430\u0436\u0430 2: 2 \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0440\u0430\u043A\u0435\u0442\u044B. \u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0441\u0442\u0440\u0435\u043B\u043A\u043E\u0439 \u0432\u0432\u0435\u0440x. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C.");
eRocketDesc.push("\u0421\u0435\u043A\u0440\u0435\u0442\u043D\u0430\u044F \u0436\u0430\u0436\u0430 3: 3 \u0441\u0435\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0440\u0430\u043A\u0435\u0442\u044B. \u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0441\u0442\u0440\u0435\u043B\u043A\u043E\u0439 \u0432\u0432\u0435\u0440x. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C.");
var parachuteDesc = new Array();
parachuteDesc.push("\u041F\u0430\u0440\u0430\u0448\u044E\u0442 1: \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0430\u0440\u0430\u0448\u044E\u0442\u0430 \u0434\u043B\u044F \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F. \u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0441\u0442\u0440\u0435\u043B\u043A\u043E\u0439 \u0432\u043D\u0438\u0437. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C.");
parachuteDesc.push("\u041F\u0430\u0440\u0430\u0448\u044E\u0442 2: \u0412\u0442\u043E\u0440\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0430\u0440\u0430\u0448\u044E\u0442\u0430. \u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0441\u0442\u0440\u0435\u043B\u043A\u043E\u0439 \u0432\u043D\u0438\u0437. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C.");
parachuteDesc.push("\u041F\u0430\u0440\u0430\u0448\u044E\u0442 3: \u0442\u0440\u0435\u0442\u0435\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u0430\u0440\u0430\u0448\u044E\u0442\u0430. \u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0441\u0442\u0440\u0435\u043B\u043A\u043E\u0439 \u0432\u043D\u0438\u0437. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C.");
onMouseDown = function () {
if (focusPoint.hitTest(_xmouse, _ymouse)) {
if (focusCost < totalCash) {
switch (focusItem) {
case "band" :
if (bandLevel < focusNum) {
bandLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "launch" :
if (launcherLevel < focusNum) {
launcherLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "rocket" :
if (rocketPackLevel < focusNum) {
rocketPackLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "lRocket" :
if (leftRocketLevel < focusNum) {
leftRocketLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "rRocket" :
if (rightRocketLevel < focusNum) {
rightRocketLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "eRocket" :
if (eRocketLevel < focusNum) {
eRocketLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "parachute" :
if (parachuteLevel < focusNum) {
parachuteLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "magnet" :
if (magnetLevel < focusNum) {
magnetLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "radar" :
if (radarLevel < focusNum) {
radarLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
break;
case "goggles" :
if (gogglesLevel >= focusNum) {
break;
}
gogglesLevel = focusNum;
totalCash = totalCash - focusCost;
cashIn.start(0, 1);
initializeLevels();
}
} else {
clicker.start(0, 1);
}
}
};
var cashIn = new Sound(this);
cashIn.attachSound("cashin");
var clicker = new Sound(this);
clicker.attachSound("click_x");
initializeLevels();
onEnterFrame = function () {
roll();
disp();
};
biddy._visible = false;
Frame 5
function pauseGame() {
if (cStatus != 10) {
cHolder = cStatus;
cStatus = 10;
trace("HE");
} else if (cStatus == 10) {
cStatus = cHolder;
trace("SHE");
}
}
function checkElevation() {
if (elevation > 4500) {
stopAllSounds();
onMouseDown = null;
onMouseUp = null;
onEnterFrame = null;
_root._x = 0;
_root._y = 0;
killSwitch();
gotoAndStop ("win");
}
}
function moveRocketThing() {
rocketThing._x = player._x;
rocketThing._y = player._y;
}
function controlRadar() {
radar._x = (-_root._x) + radarX;
radar._y = (-_root._y) + radarY;
radar.smallhedge._rotation = player._rotation;
radar.blips._x = _root._x + 275;
radar.blips._y = _root._y + 275;
}
function addMapJumper(mov, pip) {
cat = radar.blips.attachMovie("jumper-blip", mov._name, k++);
cat._x = mov._x;
cat._y = mov._y;
if (radarLevel == 0) {
radar._visible = false;
}
if (radarLevel == 1) {
switch (pip) {
case 0 :
cat._visible = true;
break;
case 1 :
cat._visible = false;
break;
case 2 :
cat._visible = false;
}
}
if (radarLevel == 2) {
}
if (radarLevel == 3) {
maltColor = new Color(cat);
switch (pip) {
case 0 :
maltColor.setRGB(255);
break;
case 1 :
maltColor.setRGB(65280);
break;
case 2 :
maltColor.setRGB(16776960);
}
}
}
function removeMapJumper(mov) {
radar.blips[mov._name].removeMovieClip();
}
function checkSlowDown() {
if (((Math.abs(xVel) < 1) && (Math.abs(yVel) < 1)) && (player._y > 400)) {
cStatus = 5;
stopAllSounds();
shel = attachMovie("victoryScreen", "victoryScreen", k++);
shel._x = (-_root._x) + 275;
shel._y = (-_root._y) + 275;
}
}
function stats() {
elevation = Math.floor(((-player._y) + 450) / 5);
if (elevation < 0) {
elevation = 0;
}
gotta = Math.round((levelCash - Math.floor(levelCash)) * 100);
if (gotta == 0) {
_root.levelCashDisp = levelCash + ".00";
} else if ((gotta % 10) == 0) {
_root.levelCashDisp = levelCash + "0";
} else {
_root.levelCashDisp = levelCash;
}
gotta = Math.round((totalCash - Math.floor(totalCash)) * 100);
if (gotta == 0) {
_root.totalCashDisp = totalCash + ".00";
} else if ((gotta % 10) == 0) {
_root.totalCashDisp = totalCash + "0";
} else {
_root.totalCashDisp = totalCash;
}
_root.totalCashDispDisp = ("$" + _root.totalCashDisp) + " \u0432\u0441\u0435\u0433\u043E";
if (elevation > levelElevation) {
levelElevation = elevation;
lence = true;
} else if (lence) {
bar.bounce.play();
lence = false;
}
elevationDisp = commaMonger(elevation);
levelElevationDisp = commaMonger(levelElevation) + " \u043C \u043D\u0430\u0438\u0431\u043E\u043B\u044C\u0448\u0435";
if (cStatus == 4) {
mph = Math.floor(dist(oldMX, oldMY, player._x, player._y));
distTraveled = distTraveled + Math.floor(mph / 5);
distTraveledDisp = commaMonger(distTraveled) + " \u043C";
mphDisp = mph + " \u043A\u043C/\u0447";
oldMX = player._x;
oldMY = player._y;
}
}
function mainTimer() {
miliSeconds = miliSeconds + 3.125;
if (miliSeconds >= 100) {
miliSeconds = 0;
seconds++;
}
if (seconds >= 60) {
seconds = 0;
minutes++;
}
clockDisp = (((loopTen(minutes) + " : ") + loopTen(seconds)) + " . ") + loopTen(Math.floor(miliSeconds));
}
function loopTen(num) {
if (num < 10) {
return("0" + num);
}
return(num);
}
function moveBar() {
bar._x = -_root._x;
bar._y = -_root._y;
whiteFade._x = bar._x;
whiteFade._y = bar._y;
}
function nextDay() {
stopAllSounds();
onMouseDown = null;
onMouseUp = null;
_root._x = 0;
_root._y = 0;
day++;
gotoAndStop ("upgrade");
killSwitch();
}
function control() {
if ((myFuel > 0) && (!eRocketDeployed)) {
if (Key.isDown(37)) {
rocketThing.leftBurst._visible = true;
xVel = xVel - lInc;
drainFuel();
loadFire("left");
} else {
rocketThing.leftBurst._visible = false;
}
if (Key.isDown(39)) {
xVel = xVel + rInc;
drainFuel();
loadFire("right");
rocketThing.rightBurst._visible = true;
} else {
rocketThing.rightBurst._visible = false;
}
if (xVel > RMax) {
xVel = RMax;
}
if (xVel < (-LMax)) {
xVel = -LMax;
}
} else {
rocketThing.leftBurst._visible = false;
rocketThing.rightBurst._visible = false;
}
if (((((Key.isDown(40) && (!downKey)) && (!eRocketDeployed)) && (parachuteDeployed == false)) && (yVel > 0)) && (paraUses > 0)) {
paraUses--;
parachuteDeployed = true;
rocketThing.parachute.gotoAndPlay(2);
downKey = true;
}
if (((Key.isDown(40) && (!downKey)) && (!eRocketDeployed)) && (parachuteDeployed)) {
closeParachute();
downKey = true;
}
if (!Key.isDown(40)) {
downKey = false;
}
if (((Key.isDown(38) && (!parachuteDeployed)) && (eRocketDeployed == false)) && (eRocketUses > 0)) {
eRocketUses--;
rockety.start(0, 1);
eRocketDeployed = true;
player._rotation = -90;
}
bar.fuelBar._xscale = (myFuel / totalFuel) * 100;
}
function closeParachute() {
if (parachuteDeployed) {
parachuteDeployed = false;
rocketThing.parachute.gotoAndPlay(12);
}
}
function loadFire(str) {
i = 0;
while (i < totalParts) {
shel = rocketThing.attachMovie("star2", "star" + k, k++);
switch (str) {
case "left" :
shel._x = 10;
shel.xVel = Math.abs(xVel) + random(20);
shel._y = 0;
shel.yVel = -random(10);
break;
case "right" :
shel._x = -10;
shel.xVel = -(Math.abs(xVel) + random(20));
shel._y = 0;
shel.yVel = -random(10);
break;
case "down" :
shel._y = 10;
shel.yVel = Math.abs(yVel) + random(20);
shel._x = 0;
shel.xVel = 10 - random(20);
}
shel.onEnterFrame = function () {
this._x = this._x + this.xVel;
this._y = this._y + this.yVel;
this.yVel = this.yVel + gravity;
};
i++;
}
}
function drainFuel() {
myFuel = myFuel - baseDrain;
}
function backgrounds() {
curQuad = Math.floor(player._x / 1000);
bgs.bg0.removeMovieClip();
bgs.bg1.removeMovieClip();
bgs.bg2.removeMovieClip();
shel = bgs.attachMovie("bg", "bg0", k++);
shel._x = (curQuad - 1) * 1000;
shel._y = 550;
shel = bgs.attachMovie("bg", "bg1", k++);
shel._x = curQuad * 1000;
shel._y = 550;
shel = bgs.attachMovie("bg", "bg2", k++);
shel._x = (curQuad + 1) * 1000;
shel._y = 550;
curQuad = Math.floor((player._x - bbgs._x) / 800);
bbgs.bg0.removeMovieClip();
bbgs.bg1.removeMovieClip();
bbgs.bg2.removeMovieClip();
shel = bbgs.attachMovie("longSky", "bg0", k++);
shel._x = (curQuad - 1) * 800;
shel._y = 550;
shel = bbgs.attachMovie("longSky", "bg1", k++);
shel._x = curQuad * 800;
shel._y = 550;
shel = bbgs.attachMovie("longSky", "bg2", k++);
shel._x = (curQuad + 1) * 800;
shel._y = 550;
}
function depths() {
bbgs.swapDepths(k++);
bgs.swapDepths(k++);
launcher.swapDepths(k++);
particles.swapDepths(k++);
rocketThing.swapDepths(k++);
rocketThing.fwoop.swapDepths(k++);
player.swapDepths(k++);
bungieArea.swapDepths(k++);
bungie.swapDepths(k++);
pUps.swapDepths(k++);
particles.swapDepths(k++);
yoyo.swapDepths(k++);
bar.swapDepths(k++);
firstWarning.swapDepths(k++);
radar.swapDepths(k++);
victoryScreen.swapDepths(k++);
whiteFade.swapDepths(k++);
}
function placeJumpers() {
curQuad = Math.floor(player._x / 1000);
if (curQuad != puQuad) {
if (curQuad < puQuad) {
targetQuad = curQuad - 1;
} else {
targetQuad = curQuad + 1;
}
loadIn(targetQuad);
puQuad = curQuad;
for (var _local1 in pUps) {
if (typeof(pUps[_local1]) == "movieclip") {
if (pUps[_local1]._x > ((curQuad + 2) * 1000)) {
removeMapJumper(pUps[_local1]);
pUps[_local1].removeMovieClip();
}
if (pUps[_local1]._x < ((curQuad - 2) * 1000)) {
removeMapJumper(pUps[_local1]);
pUps[_local1].removeMovieClip();
}
}
}
}
}
function loadIn(tar) {
i = 0;
while (i < 10) {
shel = pUps.attachMovie("jumper0", "jump" + k, k++);
shel._x = (tar * 1000) + random(1000);
shel._y = 500 - random(20000);
shel.type = 0;
addMapJumper(shel, shel.type);
i++;
}
i = 0;
while (i < 2) {
shel = pUps.attachMovie("jumper1", "jump" + k, k++);
shel._x = (tar * 1000) + random(1000);
shel._y = 500 - random(20000);
shel.type = 1;
addMapJumper(shel, shel.type);
i++;
}
i = 0;
while (i < 2) {
shel = pUps.attachMovie("jumper2", "jump" + k, k++);
shel._x = (tar * 1000) + random(1000);
shel._y = 500 - random(20000);
shel.type = 2;
addMapJumper(shel, shel.type);
i++;
}
i = 0;
while (i < 40) {
shel = pUps.attachMovie("coin0", "coin" + k, k++);
shel._x = (tar * 1000) + random(1000);
shel._y = 500 - random(20000);
shel.coin = true;
shel.type = 1;
i++;
}
i = 0;
while (i < 20) {
shel = pUps.attachMovie("coin1", "coin" + k, k++);
shel._x = (tar * 1000) + random(1000);
shel._y = 500 - random(20000);
shel.coin = true;
shel.type = 2;
i++;
}
i = 0;
while (i < 5) {
shel = pUps.attachMovie("coin2", "coin" + k, k++);
shel._x = (tar * 1000) + random(1000);
shel._y = 500 - random(20000);
shel.coin = true;
shel.type = 3;
i++;
}
}
function addVal(num) {
levelCash = levelCash + num;
shel = yoyo.attachMovie("showVal", "sh" + k, k++);
shel._x = player._x;
shel._y = player._y - 100;
shel.val = "+$" + num;
}
function powerUps() {
for (var _local1 in pUps) {
if (typeof(pUps[_local1]) == "movieclip") {
if (pUps[_local1].hitTest(player)) {
if (!pUps[_local1].coin) {
switch (pUps[_local1].type) {
case 0 :
if (yVel > 0) {
yVel = -20;
addVal(1);
closeParachute();
moveIt(pUps[_local1]);
plat1.start(0, 1);
removeMapJumper(pUps[_local1]);
}
break;
case 1 :
if (yVel > 0) {
yVel = -35;
addVal(5);
closeParachute();
moveIt(pUps[_local1]);
plat2.start(0, 1);
removeMapJumper(pUps[_local1]);
}
break;
case 2 :
if (yVel <= 0) {
break;
}
yVel = -50;
addVal(10);
closeParachute();
moveIt(pUps[_local1]);
plat3.start(0, 1);
removeMapJumper(pUps[_local1]);
}
continue;
}
switch (pUps[_local1].type) {
case 1 :
addVal(0.25);
coinSound.start(0, 1);
break;
case 2 :
addVal(1);
coinSound.start(0, 1);
break;
case 3 :
addVal(5);
coinSound.start(0, 1);
}
j = 0;
while (j < 10) {
shel = particles.attachMovie("burst", "burst" + k, k++);
shel._x = pUps[_local1]._x;
shel._y = pUps[_local1]._y;
shel.inside.gotoAndStop(pUps[_local1].type);
shel._xscale = (shel._yscale = random(100) + 50);
shel._rotation = random(360);
j++;
}
pUps[_local1].removeMovieClip();
}
}
}
}
function moveIt(mov) {
mov.rotSpeed = (player._x - mov._x) / 20;
mov.yMov = yVel / 2;
mov.xMov = 0;
mov.onEnterFrame = function () {
this._y = this._y + this.yMov;
this.yMov = this.yMov + gravity;
this._x = this._x + this.xMov;
this._rotation = this._rotation + this.rotSpeed;
};
}
function killSwitch() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
_root[_local2].removeMovieClip();
}
}
}
function movePlayer() {
player.filters = new Array(new flash.filters.BlurFilter(Math.abs(xVel / 50), Math.abs(yVel / 50), 5));
player._xscale = 100 - Math.abs(xVel / 3);
player._yscale = 100 + Math.abs(yVel / 3);
newPX = player._x;
newPY = player._y;
player._rotation = rot(oldPX, oldPY, newPX, newPY);
player._x = player._x + xVel;
player._y = player._y + yVel;
yVel = yVel + gravity;
if (player._y > 500) {
player._y = 500;
yVel = yVel * -0.4;
xVel = xVel * 0.4;
closeParachute();
}
oldPX = newPX;
oldPY = newPY;
rocketThing._x = player._x;
rocketThing._y = player._y;
if (parachuteDeployed) {
if (yVel > 5) {
yVel = yVel / 2;
} else {
yVel = 4;
}
}
if (eRocketDeployed == true) {
rocketCounter++;
xVel = 0;
yVel = -50;
loadFire("down");
if (rocketCounter > 20) {
rocketCounter = 0;
eRocketDeployed = false;
}
}
}
function trail() {
if (yVel < 0) {
shel = particles.attachMovie("star", "particles" + k, k++);
shel._x = (player._x + 20) - random(40);
shel._y = player._y;
shel._rotation = random(360);
shel._yscale = (shel._xscale = random(50) + 50);
tap = Math.round(Math.random() * 16777215);
altColor = new Color(shel);
altColor.setRGB(tap);
}
}
function calcVelocity() {
newX = bungie._x;
newY = bungie._y;
txVel = newX - oldX;
tyVel = newY - oldY;
if (tyVel < bestVel) {
bestVel = tyVel;
} else {
cStatus = 4;
yVel = tyVel;
xVel = txVel;
oldPX = player._x;
oldPY = player._y;
}
oldX = newX;
oldY = newY;
}
function drawBungie() {
if (cStatus == 2) {
bungie._rotation = (-(bungie._x - 275)) / 6;
player._rotation = bungie._rotation;
}
if ((cStatus == 4) || (cStatus == 5)) {
easing("rotation", bungie, 0, 0.04);
}
bungieArea.clear();
bungieArea.lineStyle(7, 0, 100);
bungieArea.moveTo(launcher._x + 8, launcher._y + 8);
var _local2 = {};
_local2.x = bungie.lG._x;
_local2.y = bungie.lG._y;
bungie.localToGlobal(_local2);
bungieArea.lineTo(_local2.x - _root._x, _local2.y - _root._y);
bungieArea.moveTo((launcher._x + launcher._width) - 8, launcher._y + 8);
_local2 = {};
_local2.x = bungie.rG._x;
_local2.y = bungie.rG._y;
bungie.localToGlobal(_local2);
bungieArea.lineTo(_local2.x - _root._x, _local2.y - _root._y);
bungieArea.lineStyle(5, bandColor, 100);
bungieArea.moveTo(launcher._x + 8, launcher._y + 8);
_local2 = {};
_local2.x = bungie.lG._x;
_local2.y = bungie.lG._y;
bungie.localToGlobal(_local2);
bungieArea.lineTo(_local2.x - _root._x, _local2.y - _root._y);
bungieArea.moveTo((launcher._x + launcher._width) - 8, launcher._y + 8);
_local2 = {};
_local2.x = bungie.rG._x;
_local2.y = bungie.rG._y;
bungie.localToGlobal(_local2);
bungieArea.lineTo(_local2.x - _root._x, _local2.y - _root._y);
}
function moveBungie() {
xspeed = xspeed + (((launcher._x + (launcher._width / 2)) - bungie._x) / ease);
yspeed = yspeed + ((launcher._y - bungie._y) / ease);
xspeed = xspeed * fric;
yspeed = yspeed * fric;
bungie._x = bungie._x + xspeed;
bungie._y = bungie._y + yspeed;
}
function prePlayer() {
player._x = bungie._x;
player._y = bungie._y;
}
function dynCamera() {
xCalc = (550 - (550 * (_root._xscale / 100))) / 2;
yCalc = (550 - (550 * (_root._yscale / 100))) / 2;
offsetX = (275 - player._x) - _root._x;
offsetY = (275 - player._y) - _root._y;
_root._x = _root._x + offsetX;
_root._y = _root._y + offsetY;
if (_root._y < (550 - bb._y)) {
_root._y = 550 - bb._y;
}
bbgs._y = (-_root._y) / 1.2;
bbgs._x = (-_root._x) / 1.2;
}
function easing(pro, mov1, mov2, drift) {
switch (pro) {
case "x" :
mov1._x = mov1._x - (drift * ((mov1._x - mov2) / 2));
break;
case "y" :
mov1._y = mov1._y - (drift * ((mov1._y - mov2) / 2));
break;
case "xscale" :
mov1._xscale = mov1._xscale - (drift * ((mov1._xscale - mov2) / 2));
break;
case "yscale" :
mov1._yscale = mov1._yscale - (drift * ((mov1._yscale - mov2) / 2));
break;
case "width" :
mov1._width = mov1._width - (drift * ((mov1._width - mov2) / 2));
break;
case "height" :
mov1._height = mov1._height - (drift * ((mov1._height - mov2) / 2));
break;
case "alpha" :
mov1._alpha = mov1._alpha - (drift * ((mov1._alpha - mov2) / 2));
break;
case "rotation" :
mov1._rotation = mov1._rotation - (drift * ((mov1._rotation - mov2) / 2));
}
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function rot(circx, circy, prevx, prevy) {
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / 3.141593;
return(degrees + 90);
}
if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / 3.141593;
return(90 - degrees);
}
if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / 3.141593;
return(-(180 - degrees));
}
if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / 3.141593;
return(-(90 - degrees));
}
}
var k = 2;
_root.createEmptyMovieClip("bungieArea", k++);
Mouse.show();
cursor._visible = false;
cursor.stopDrag();
var cStatus = 1;
var paraUses = parachuteLevel;
var eRocketUses = eRocketLevel;
var bandColor = bandColors[bandLevel];
onEnterFrame = function () {
switch (cStatus) {
case 1 :
prePlayer();
moveRocketThing();
break;
case 2 :
prePlayer();
moveRocketThing();
break;
case 3 :
firstWarning._visible = false;
moveBungie();
prePlayer();
dynCamera();
calcVelocity();
moveRocketThing();
break;
case 4 :
control();
moveBungie();
movePlayer();
trail();
dynCamera();
placeJumpers();
powerUps();
mainTimer();
magnet();
checkSlowDown();
moveRocketThing();
checkElevation();
break;
case 5 :
moveBungie();
}
controlRadar();
moveBar();
drawBungie();
stats();
backgrounds();
depths();
};
var levelCash = 0;
var mphDisp;
player.goggles.gotoAndStop(gogglesLevel + 1);
launcher._y = 350 - (launchSize[launcherLevel] * 5);
radarX = radar._x;
radarY = radar._y;
var oldMX = 0;
var oldMY = 0;
var mph = 0;
var distTraveled = 0;
var lence = false;
var levelElevation = 0;
var seconds = 0;
var miliSeconds = 0;
var minutes = 0;
_root.createEmptyMovieClip("particles", k++);
_root.createEmptyMovieClip("bgs", k++);
_root.createEmptyMovieClip("bbgs", k++);
bungie._y = launcher._y;
var totalParts = 3;
var parachuteDeployed = false;
var eRocketDeployed = false;
var rockety = new Sound(this);
rockety.attachSound("rocket_sound2");
var downKey = false;
var baseRocketFuel = 200;
var totalFuel = (baseRocketFuel + (rocketSize[rocketPackLevel] * baseRocketFuel));
var myFuel = totalFuel;
var baseDrain = 1;
var baseLMax = 25;
var baseRMax = baseLMax;
var LMax = (baseLMax + (baseLMax * lRocketSize[leftRocketLevel]));
var RMax = (baseRMax + (baseRMax * rRocketSize[rightRocketLevel]));
var lInc = (LMax / 20);
var rInc = (RMax / 20);
var puQuad = 0;
if (day > 1) {
firstWarning.swapDepths(k++);
firstWarning.removeMovieClip();
}
var coinSound = new Sound(this);
coinSound.attachSound("cling_1");
var plat1 = new Sound(this);
var plat2 = new Sound(this);
var plat3 = new Sound(this);
plat1.attachSound("ns-signal-0");
plat2.attachSound("ns-signal-3");
plat3.attachSound("ns-signal-5");
_root.createEmptyMovieClip("particles", k++);
_root.createEmptyMovieClip("pUps", k++);
_root.createEmptyMovieClip("yoyo", k++);
var jumpCounter = 1;
var bestVel = 1000;
var gravity = 0.6;
var oldPX = 0;
var oldPY = 0;
var newPX = 0;
var newPY = 0;
var rocketCounter = 0;
onMouseDown = function () {
if (bungie.hitTest(_xmouse, _ymouse) && (cStatus == 1)) {
bungie.startDrag();
cStatus = 2;
}
};
onMouseUp = function () {
if (cStatus == 2) {
bungie.stopDrag();
dragging = false;
cStatus = 3;
oldX = bungie._x;
oldY = bungie._y;
stopAllSounds();
mainTheme.start(0, 2000);
}
};
var mainTheme = new Sound(this);
mainTheme.attachSound("mindMaster");
var xspeed = 0;
var yspeed = 0;
var fric = 0.95;
var baseEase = 20;
var ease = ((50 - baseEase) - (baseEase * bandPower[bandLevel]));
var angle = 0;
var degrees = 0;
loadIn(-1);
loadIn(1);
loadIn(0);
stop();
Frame 6
function gotoMenu() {
gotoAndStop ("menu");
}
stop();
Symbol 9 MovieClip [showVal] Frame 20
this.removeMovieClip();
Symbol 16 MovieClip [burst] Frame 20
this.removeMovieClip();
Symbol 37 MovieClip [star] Frame 25
this.removeMovieClip();
Symbol 40 MovieClip [star2] Frame 25
this.removeMovieClip();
Symbol 62 Button
on (release) {
_root.killAd();
_root.play();
}
Symbol 63 MovieClip Frame 1
stop();
act = false;
Symbol 63 MovieClip Frame 10
stop();
Symbol 89 Button
on (release) {
_root.whiteFade.play();
}
Symbol 91 MovieClip [victoryScreen] Frame 15
panther.text = ("(" + _root.levelElevation) + "\u043C)";
moxy.text = ("(" + _root.clockDisp) + ")";
meep.text = ("\u043A\u043E\u043D\u0435\u0426 " + _root.day) + " \u0434\u043D\u044F";
Symbol 91 MovieClip [victoryScreen] Frame 20
function cleanUpMoney(num) {
gotta = Math.round(((Math.floor(num * 100) / 100) - Math.floor(num)) * 100);
if (gotta == 0) {
return(Math.floor(num) + ".00");
}
if ((gotta % 10) == 0) {
return((Math.floor(num) + ".") + gotta);
}
return((Math.floor(num) + ".") + gotta);
}
totalElevationBonus = Math.floor((_root.levelElevation * 10) / 100) / 10;
runTimeBonus = Math.floor((10 + (_root.seconds + (_root.minutes * 60))) / 10);
totalMoney = (_root.levelCash * totalElevationBonus) * runTimeBonus;
countStage = 0;
counter = 0;
monDiv = _root.levelCash / 50;
trace("------------");
trace(_root.totalCash);
_root.totalCash = _root.totalCash + totalMoney;
trace(_root.totalCash);
onEnterFrame = function () {
switch (countStage) {
case 0 :
counter = counter + monDiv;
tiger.text = "$" + cleanUpMoney(counter);
if (counter >= _root.levelCash) {
tiger.text = "$" + cleanUpMoney(_root.levelCash);
monDiv = totalElevationBonus / 30;
counter = 0;
countStage = 1;
}
break;
case 1 :
counter = counter + monDiv;
bear.text = "x" + cleanUpMoney(counter);
if (counter >= totalElevationBonus) {
bear.text = "x" + cleanUpMoney(totalElevationBonus);
monDiv = runTimeBonus / 30;
counter = 0;
countStage = 2;
}
break;
case 2 :
counter = counter + monDiv;
moxre.text = "x" + cleanUpMoney(counter);
if (counter >= runTimeBonus) {
moxre.text = "x" + cleanUpMoney(runTimeBonus);
monDiv = totalMoney / 30;
counter = 0;
countStage = 3;
}
break;
case 3 :
counter = counter + monDiv;
toal.text = ("$" + cleanUpMoney(counter)) + " \u0418\u0442\u043E\u0433\u043E";
if (counter >= totalMoney) {
toal.text = ("$" + cleanUpMoney(totalMoney)) + " \u0418\u0442\u043E\u0433\u043E";
countStage = 4;
}
break;
case 4 :
}
};
Symbol 91 MovieClip [victoryScreen] Frame 30
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 99 Button
on (release) {
fade.play();
}
Symbol 101 MovieClip Frame 21
stop();
Symbol 101 MovieClip Frame 40
_root.play();
Symbol 105 MovieClip Frame 1
this._visible = false;
Symbol 108 MovieClip Frame 1
stop();
Symbol 134 Button
on (release) {
whiteFade2.play();
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 163 Button
on (release) {
_root.pauseGame();
}
Symbol 167 Button
on (release) {
_root.muteHandler();
}
Symbol 171 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 199 MovieClip Frame 1
this._alpha = 0;
Symbol 218 MovieClip Frame 1
this._name = "bb";
this._visible = false;
Symbol 222 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 11
stop();
Symbol 226 MovieClip Frame 21
stop();
Symbol 226 MovieClip Frame 40
_root.nextDay();
Symbol 270 Button
on (release) {
stopAllSounds();
_root.gotoMenu();
}
Symbol 272 MovieClip Frame 1155
stop();
timeTake.text = ("\u0424\u043B\u0430\u0435\u0440 \u0437\u0430\u043F\u0443\u0449\u0435\u043D \u0437\u0430 " + _root.day) + " \u0434\u043D\u0435\u0439.";