Frame 1
if (_global.System) {
System.security.allowDomain("mochibot.com");
}
_level0.__com_mochibot__swfid = "ffc69816";
loadMovieNum ("http://mochibot.com/my/core.swf", 10301);
Stage.showMenu = false;
infiniteLives = false;
timeLimit = true;
stop();
loadBar.onEnterFrame = function () {
pL = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
pLR = Math.round(pL);
if (pL != 100) {
setProperty(loadBar, _xscale , pL);
} else {
play();
}
};
Frame 2
stop();
removeMovieClip(p0);
removeMovieClip(p1);
removeMovieClip(p2);
removeMovieClip(p3);
removeMovieClip(p4);
removeMovieClip(p5);
level = 100;
numNodes = "";
preds = 0;
lives = 5;
go.onRelease = function () {
gotoAndStop (7);
};
myWeb.onRelease = function () {
getURL ("http://ykstort.somee.com", "_blank");
};
sound.onRelease = function () {
sound.play();
};
abs.onRelease = function () {
getURL ("http://albinoblacksheep.com", "_blank");
};
_root.onEnterFrame = function () {
if ((Key.isDown(73) && (Key.isDown(78))) && (Key.isDown(70))) {
if (!infiniteLives) {
gun.play();
}
infiniteLives = true;
}
if (Key.isDown(84) && (Key.isDown(77))) {
if (timeLimit) {
gun.play();
}
timeLimit = false;
}
if (infiniteLives) {
lives = 999;
}
};
Frame 3
function random1() {
var _local1 = this;
_local1.vx = _local1.vx + ((Math.random() * 6) - 3);
_local1.vy = _local1.vy + ((Math.random() * 6) - 3);
_local1.vx = _local1.vx * drag;
_local1.vy = _local1.vy * drag;
_local1._x = _local1._x + _local1.vx;
_local1._y = _local1._y + _local1.vy;
if ((((_local1._x < (b._x + r)) and (_local1._x > (b._x - r))) and (_local1._y < (b._y + r))) and (_local1._y > (b._y - r))) {
_local1.removeMovieClip(_local1);
food--;
chomp.play();
}
if (_local1._x > 560) {
_local1._x = -10;
} else if (_local1._x < -10) {
_local1._x = 560;
}
if (_local1._y > 410) {
_local1._y = -10;
} else if (_local1._y < -10) {
_local1._y = 410;
}
}
function move() {
var _local1 = this;
if (Key.isDown(39)) {
_local1._x = _local1._x + _local1.vx;
}
if (Key.isDown(37)) {
_local1._x = _local1._x - _local1.vx;
}
if (Key.isDown(40)) {
_local1._y = _local1._y + _local1.vy;
}
if (Key.isDown(38)) {
_local1._y = _local1._y - _local1.vy;
}
if (Key.isDown(16)) {
_local1.vx++;
_local1.vy++;
}
if (Key.isDown(17)) {
if (_local1.vx > 0) {
_local1.vx--;
_local1.vy--;
}
}
if (Key.isDown(32)) {
_local1.vy = 5;
_local1.vx = 5;
_local1._x = 275;
_local1._y = 200;
}
if (_local1._x > 575) {
_local1._x = -25;
} else if (_local1._x < -25) {
_local1._x = 575;
}
if (_local1._y > 425) {
_local1._y = -25;
} else if (_local1._y < -25) {
_local1._y = 425;
}
if (time <= 0) {
lives--;
play();
} else if (food < 1) {
if (level <= 50) {
gotoAndStop (6);
} else {
gotoAndStop (5);
if (aGame) {
preds = preds + 0.5;
}
if (bGame) {
numNodes = numNodes + 5;
}
level = level - 10;
}
}
}
function attack() {
var _local1 = this;
minDist = 100;
dx = b._x - _local1._x;
dy = b._y - _local1._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > minDist) {
_local1.vx = _local1.vx + ((Math.random() * 1) - 0.5);
_local1.vy = _local1.vy + ((Math.random() * 1) - 0.5);
_local1.vx = _local1.vx * drag;
_local1.vy = _local1.vy * drag;
_local1._x = _local1._x + _local1.vx;
_local1._y = _local1._y + _local1.vy;
} else if (dist < minDist) {
_local1._x = _local1._x + ((b._x - _local1._x) / _local1.eR);
_local1._y = _local1._y + ((b._y - _local1._y) / _local1.eR);
if ((((b._x < (_local1._x + (_local1._width / 2))) and (b._x > (_local1._x - (_local1._width / 2)))) and (b._y < (_local1._y + (_local1._width / 2)))) and (b._y > (_local1._y - (_local1._width / 2)))) {
lives--;
play();
}
}
if (_local1._x > 560) {
_local1._x = -10;
} else if (_local1._x < -10) {
_local1._x = 560;
}
if (_local1._y > 410) {
_local1._y = -10;
} else if (_local1._y < -10) {
_local1._y = 410;
}
}
stop();
d = 25;
r = d / 2;
numError = true;
if ((numNodes < 1) and (numNodes > -1)) {
numNodes = 25;
numError = false;
} else if (numNodes == "") {
numNodes = 25;
numError = false;
} else if (numNodes < 10) {
numNodes = 10;
numError = false;
} else if (numNodes > 40) {
numNodes = 40;
numError = false;
} else if ((numNodes > 9) and (numNodes < 41)) {
numError = false;
} else if (numError) {
numNodes = 25;
}
food = numNodes - preds;
if (timeLimit) {
lastTime = getTimer();
time = level;
_root.onEnterFrame = function () {
if ((getTimer() - lastTime) >= 1000) {
time--;
lastTime = getTimer();
}
timer.text = time;
};
} else {
time = 999;
timer.text = "No time limit!!!";
startTime = getTimer();
}
reset.onRelease = function () {
gotoAndStop (3);
time = level;
lastTime = getTimer();
food = numNodes;
i = 0;
while (i < numNodes) {
node = attachMovie("node", "n" + i, i);
node.vx = 0;
node.vy = 0;
node._x = Math.random() * 550;
node._y = Math.random() * 400;
node._xscale = (node._yscale = (Math.random() * 100) + 50);
node.onEnterFrame = random1;
i++;
}
j = 0;
while (j < preds) {
pred = attachMovie("pred", "p" + j, j);
pred._x = Math.random() * 550;
pred._y = Math.random() * 400;
pred.eR = (Math.random() * 40) - 20;
pred.onEnterFrame = attack;
j++;
}
};
drag = 0.98;
i = 0;
while (i < numNodes) {
node = attachMovie("node", "n" + i, i);
node.vx = 0;
node.vy = 0;
node._x = Math.random() * 550;
node._y = Math.random() * 400;
node._xscale = (node._yscale = (Math.random() * 100) + 50);
node.onEnterFrame = random1;
i++;
}
b._x = Math.random() * 550;
b._y = Math.random() * 400;
b.vx = 5;
b.vy = 5;
b.onEnterFrame = move;
j = 0;
while (j < preds) {
pred = attachMovie("pred", "p" + j, j);
pred._x = Math.random() * 550;
pred._y = Math.random() * 400;
pred.eR = (Math.random() * 10) + 10;
pred.onEnterFrame = attack;
j++;
}
instructions.onRelease = function () {
_root.gotoAndStop(2);
};
Frame 4
stop();
removeMovieClip(p0);
removeMovieClip(p1);
removeMovieClip(p2);
removeMovieClip(p3);
removeMovieClip(p4);
removeMovieClip(p5);
tryAgain.onRelease = function () {
if (lives < 0) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
};
if (infiniteLives) {
livesLeft = "INFINITE!!!";
} else {
livesLeft = lives;
}
Frame 5
stop();
removeMovieClip(p0);
removeMovieClip(p1);
removeMovieClip(p2);
removeMovieClip(p3);
removeMovieClip(p4);
removeMovieClip(p5);
if (timeLimit) {
timeTook = (level - time) + 10;
} else {
timeTook = "Who cares!";
}
nLevel.onRelease = function () {
gotoAndStop (3);
};
Frame 6
stop();
removeMovieClip(p0);
removeMovieClip(p1);
removeMovieClip(p2);
removeMovieClip(p3);
removeMovieClip(p4);
removeMovieClip(p5);
here.onRelease = function () {
getURL ("http://xl-recordings.com/mp3/audio/SeventeenYears.mp3", "_blank");
};
Frame 7
stop();
a.onRelease = function () {
aGame = true;
bGame = false;
gotoAndStop (3);
};
b.onRelease = function () {
aGame = false;
bGame = true;
gotoAndStop (3);
};
ab.onRelease = function () {
aGame = true;
bGame = true;
gotoAndStop (3);
};
Symbol 15 MovieClip Frame 1
stop();
stopAllSounds();
Symbol 15 MovieClip Frame 2
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();