Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("9c8270db", this, 10301, true);
gamegeckob.onRelease = function () {
getURL ("http://www.gamegecko.com/", "_blank");
};
stop();
Stage.scaleMode = "noScale";
var frame = " ";
Stage.showMenu = false;
onEnterFrame = function () {
percent = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (percent != 100) {
loader2.text = Math.ceil(percent) + "% loaded";
loader.text = Math.ceil(percent) + "% loaded";
} else {
_root.gotoAndPlay("intro");
}
};
Frame 2
delete onEnterFrame;
gamegeckob.onRelease = function () {
getURL ("http://www.gamegecko.com/", "_blank");
};
Frame 58
_root.gotoAndStop("menu");
Frame 60
function delButtons() {
moregamesb.onRelease = function () {
};
playb.onRelease = function () {
};
instructionsb.onRelease = function () {
};
creditsb.onRelease = function () {
};
}
stop();
delete onEnterFrame;
stopAllSounds();
music = new Sound();
music.attachSound("nemo");
music.setVolume(30);
music.start(0, 99);
jaggo.useHandCursor = false;
jaggo.onPress = function () {
_root.attachMovie("jaggowned", "jaggowned", 999, {_x:250, _y:310});
};
jaggo.onRollOut = function () {
jaggowned.removeMovieClip();
};
gamegeckob2.onRelease = function () {
getURL ("http://www.gamegecko.com/", "_blank");
};
moregamesb.onRelease = function () {
getURL ("http://www.gamegecko.com/", "_blank");
};
moregamesb.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
playb.onRelease = function () {
frame = "game";
_root.attachMovie("transitionz", "newtransition", 90, {_x:225, _y:225});
delButtons();
};
playb.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
instructionsb.onRelease = function () {
frame = "instructions";
_root.attachMovie("transitionz", "newtransition", _root.getNextHighestDepth(), {_x:225, _y:225});
delButtons();
};
instructionsb.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
creditsb.onRelease = function () {
frame = "credits";
_root.attachMovie("transitionz", "newtransition", _root.getNextHighestDepth(), {_x:225, _y:225});
delButtons();
};
creditsb.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
QToggler.onPress = function () {
if (_quality == "HIGH") {
_quality = "LOW";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
}
};
QToggler.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
backb.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
Frame 61
stop();
backb.onRelease = function () {
frame = "menu";
_root.attachMovie("transitionz", "newtransition", _root.getNextHighestDepth(), {_x:225, _y:225});
backb.onRelease = function () {
};
};
QToggler.onPress = function () {
if (_quality == "HIGH") {
_quality = "LOW";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
}
};
Frame 62
stop();
backb.onRelease = function () {
frame = "menu";
_root.attachMovie("transitionz", "newtransition", _root.getNextHighestDepth(), {_x:225, _y:225});
backb.onRelease = function () {
};
};
QToggler.onPress = function () {
if (_quality == "HIGH") {
_quality = "LOW";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
}
};
Frame 63
function delay() {
clearInterval(delayInt);
hud.play();
onEnterFrame = function () {
ind._x = b2._x;
ind._visible = false;
if (b2._y < -10) {
ind._visible = true;
}
fps++;
tickd = getTimer() - tick;
tick = getTimer();
b1._x = _xmouse;
b1._y = _ymouse;
dis = Math.sqrt(Math.pow(b1._x - b2._x, 2) + Math.pow(b1._y - b2._y, 2));
if (dis < dishit) {
audio2 = new Sound();
audio2.attachSound("boop");
audio2.start(0, 0);
b2._x = b2._x + ((b2._x - b1._x) / 10);
b2._y = b2._y + ((b2._y - b1._y) / 10);
b2xs = b2xs + ((b2._x - b1._x) / 10);
b2ys = b2ys + ((b2._y - b1._y) / 10);
}
b2._x = b2._x + ((b2xs * tickd) / mult2);
b2._y = b2._y + ((b2ys * tickd) / mult2);
b2ys = b2ys / 1.01;
b2xs = b2xs / 1.01;
if (b2ys < 10) {
b2ys = b2ys + 0.1;
}
if (b2._x > 435) {
b2._x = 435;
b2xs = -b2xs;
}
if (b2._x < 15) {
b2._x = 15;
b2xs = -b2xs;
}
if (b2._y < -200) {
b2._y = -200;
b2ys = 0;
}
if (b2._y > 475) {
death();
}
updateAfterEvent();
};
}
function starz() {
var _local3 = container.attachMovie("star" + Math.ceil(Math.random() * 7), "star" + container.getNextHighestDepth(), container.getNextHighestDepth(), {_x:Math.random() * 450, _y:-10});
_local3.onEnterFrame = function () {
if (this.hitTest(_root.b2.hitbox)) {
audio2 = new Sound();
audio2.attachSound("electro");
audio2.start(0, 0);
this.removeMovieClip();
score = score + ((5 + _root.lvl) * _root.mult);
hud.Sdisp.text = score;
}
this._y = this._y + ((lvl * tickd) / mult2);
if (this._y > 465) {
this.removeMovieClip();
}
};
}
function fpsF() {
fpstxt.text = fps + " fps";
fps = 0;
}
function create() {
drawRect("rect" + _root.container.getNextHighestDepth(), (Math.random() * 130) + _root.Fact, (Math.random() * 130) + _root.Fact);
}
function resetor() {
clearInterval(resint);
if ((container.hitTest(250, 30, true) || (container.hitTest(200, 30, true))) || (container.hitTest(225, 60, true))) {
resint = setInterval(resetor, 1500);
} else {
explosion.removeMovieClip();
b2ys = -1;
b2xs = 0;
_root.attachMovie("perlclip", "b2", 3, {_x:225, _y:30});
b2.gotoAndStop("normal");
}
}
function explode() {
audio3 = new Sound();
audio3.attachSound("zwoop");
audio3.start(0, 0);
explosion.removeMovieClip();
_root.createEmptyMovieClip("explosion", _root.getNextHighestDepth());
yh = 0;
while (yh < 13) {
explosion.attachMovie("exp", "exp" + yh, explosion.getNextHighestDepth(), {_x:b2._x + ((Math.random() * 40) - 20), _y:b2._y + ((Math.random() * 40) - 20), _xscale:(Math.random() * 100) + 10});
explosion["exp" + yh]._yscale = explosion["exp" + yh]._xscale;
explosion["exp" + yh].xspd = (Math.random() * 10) - 5;
explosion["exp" + yh].yspd = (Math.random() * 10) - 9;
explosion["exp" + yh].onEnterFrame = function () {
this._rotation++;
this.yspd = this.yspd + 0.2;
this.xspd = this.xspd * 0.95;
this._y = this._y + this.yspd;
this._x = this._x + this.xspd;
};
yh++;
}
}
function explode2() {
audio3 = new Sound();
audio3.attachSound("zwoop");
audio3.start(0, 0);
explosion.removeMovieClip();
_root.createEmptyMovieClip("explosion", _root.getNextHighestDepth());
yh = 0;
while (yh < 13) {
explosion.attachMovie("exp", "exp" + yh, explosion.getNextHighestDepth(), {_x:b3._x + ((Math.random() * 40) - 20), _y:b3._y + ((Math.random() * 40) - 20), _xscale:(Math.random() * 100) + 10});
explosion["exp" + yh]._yscale = explosion["exp" + yh]._xscale;
explosion["exp" + yh].xspd = (Math.random() * 10) - 5;
explosion["exp" + yh].yspd = (Math.random() * 10) - 9;
explosion["exp" + yh].onEnterFrame = function () {
this._rotation++;
this.yspd = this.yspd + 0.2;
this.xspd = this.xspd * 0.95;
this._y = this._y + this.yspd;
this._x = this._x + this.xspd;
};
yh++;
}
}
function death() {
explode();
b2.removeMovieClip();
if (_root.lives > 1) {
_root.lives--;
hud.ldisp.gotoAndStop(lives);
resint = setInterval(resetor, 1500);
} else {
_root.container.removeMovieClip();
clearInterval(puInt);
clearInterval(crInt);
clearInterval(fpsInt);
clearInterval(starInt);
clearInterval(rInt);
delete _root.onEnterFrame;
frame = "gameover";
_root.attachMovie("transitionz", "newtransition", 99, {_x:225, _y:225});
}
}
function puF() {
PU = Math.ceil(Math.random() * 7);
var p = container.attachMovie("powerup" + PU, "powerup" + container.getNextHighestDepth(), container.getNextHighestDepth(), {_x:Math.random() * 450, _y:-15});
with (p) {
var nb = _root.PU;
}
p.onEnterFrame = function () {
if (this.hitTest(_root.b2.hitbox)) {
S = getTimer();
hud.timer.timer2.onEnterFrame = function () {
this.gotoAndStop(100 - int(((getTimer() - S) / 8000) * 100));
};
audio2 = new Sound();
audio2.attachSound("electro");
audio2.start(0, 0);
puStart = getTimer();
this.removeMovieClip();
_root["puF" + nb]();
score = score + ((25 + _root.lvl) * _root.mult);
hud.Sdisp.text = score;
}
this._y = this._y + ((lvl * tickd) / mult2);
if (this._y > 465) {
this.removeMovieClip();
}
};
}
function puF1() {
function starz() {
var _local3 = container.attachMovie("star" + Math.ceil(Math.random() * 7), "star" + container.getNextHighestDepth(), container.getNextHighestDepth(), {_x:Math.random() * 450, _y:-10});
_local3.onEnterFrame = function () {
if (this.hitTest(_root.b2.hitbox) || (this.hitTest(_root.b3.hitbox))) {
audio2 = new Sound();
audio2.attachSound("electro");
audio2.start(0, 0);
this.removeMovieClip();
score = score + ((5 + _root.lvl) * _root.mult);
hud.Sdisp.text = score;
}
this._y = this._y + ((lvl * tickd) / mult2);
if (this._y > 465) {
this.removeMovieClip();
}
};
}
Buf = container.getNextHighestDepth();
i = Buf - 8;
while (i < Buf) {
container["rect" + i].onEnterFrame = function () {
this._y = this._y + ((_root.lvl * _root.tickd) / _root.mult2);
if (this.hitTest(_root.b2.hitbox)) {
if (_root.b3 != undefined) {
explode();
b2.removeMovieClip();
b2xs = b3xs;
b2ys = b3ys;
b3._name = "b2";
} else {
death();
}
}
if (this.hitTest(_root.b3.hitbox)) {
explode2();
b3.removeMovieClip();
}
if (this._y > 450) {
this.removeMovieClip();
score = score + (_root.lvl * _root.mult);
hud.Sdisp.text = score;
}
};
i++;
}
rInt = setInterval(reset, 8000);
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "DOUBLE BALL!";
_root.attachMovie("indicator", "ind2", 8, {_y:5, _visible:false});
audio = new Sound(b2);
audio.attachSound("pus1");
audio.start(0, 0);
_root.attachMovie("perlclip", "b3", _root.getNextHighestDepth(), {_x:225, _y:30});
b3.gotoAndStop("normal");
var b3xs = 0;
var b3ys = 0;
onEnterFrame = function () {
ind._x = b2._x;
ind._visible = false;
if (b2._y < -10) {
ind._visible = true;
}
ind2._x = b3._x;
ind2._visible = false;
if (b3._y < -10) {
ind._visible = true;
}
fps++;
tickd = getTimer() - tick;
tick = getTimer();
b1._x = _xmouse;
b1._y = _ymouse;
dis = Math.sqrt(Math.pow(b1._x - b2._x, 2) + Math.pow(b1._y - b2._y, 2));
dis2 = Math.sqrt(Math.pow(b1._x - b3._x, 2) + Math.pow(b1._y - b3._y, 2));
if (dis < dishit) {
audio2 = new Sound();
audio2.attachSound("boop");
audio2.start(0, 0);
b2._x = b2._x + ((b2._x - b1._x) / 10);
b2._y = b2._y + ((b2._y - b1._y) / 10);
b2xs = b2xs + ((b2._x - b1._x) / 10);
b2ys = b2ys + ((b2._y - b1._y) / 10);
}
if (dis2 < dishit) {
audio2 = new Sound();
audio2.attachSound("boop");
audio2.start(0, 0);
b3._x = b3._x + ((b3._x - b1._x) / 10);
b3._y = b3._y + ((b3._y - b1._y) / 10);
b3xs = b3xs + ((b3._x - b1._x) / 10);
b3ys = b3ys + ((b3._y - b1._y) / 10);
}
b2._x = b2._x + ((b2xs * tickd) / mult2);
b2._y = b2._y + ((b2ys * tickd) / mult2);
b2ys = b2ys / 1.01;
b2xs = b2xs / 1.01;
b3._x = b3._x + ((b3xs * tickd) / mult2);
b3._y = b3._y + ((b3ys * tickd) / mult2);
b3ys = b3ys / 1.01;
b3xs = b3xs / 1.01;
if (b2ys < 10) {
b2ys = b2ys + 0.1;
}
if (b2._x > 435) {
b2._x = 435;
b2xs = -b2xs;
}
if (b2._x < 15) {
b2._x = 15;
b2xs = -b2xs;
}
if (b2._y > 475) {
if (b3 != undefined) {
b2.removeMovieClip();
b2xs = b3xs;
b2ys = b3ys;
b3._name = "b2";
} else {
death();
}
}
if (b3ys < 10) {
b3ys = b3ys + 0.1;
}
if (b3._x > 435) {
b3._x = 435;
b3xs = -b3xs;
}
if (b3._x < 15) {
b3._x = 15;
b3xs = -b3xs;
}
if (b3._y > 475) {
b3.removeMovieClip();
}
updateAfterEvent();
};
drawRect = function (n, w, h) {
if ((getTimer() - lvlstart) > 60000) {
clearInterval(crInt);
lvl++;
_root.Fact = _root.Fact + 5;
if (_root.lvl < 5) {
a = ((5 - _root.lvl) * 1000) + 200;
} else {
a = 500;
}
crInt = setInterval(create, a);
hud.levelMC.leveldisplay.text = "Level " + lvl;
hud.play();
lvlstart = getTimer();
}
var n = container.createEmptyMovieClip(n, container.getNextHighestDepth());
with (n) {
var inc = _root.lvl;
lineStyle(3, 16777215);
beginFill(Math.random() * 16777215, 50);
lineTo(w, 0);
lineTo(w, h);
lineTo(0, h);
lineTo(0, 0);
endFill();
_x = Math.random() * (450 - _width);
_y = -_height;
}
n.onEnterFrame = function () {
this._y = this._y + ((inc * tickd) / mult2);
if (this.hitTest(_root.b2.hitbox)) {
if (b3 != undefined) {
b2.removeMovieClip();
b2xs = b3xs;
b2ys = b3ys;
b3._name = "b2";
} else {
death();
}
}
if (this.hitTest(_root.b3.hitbox)) {
b3.removeMovieClip();
}
if (this._y > 450) {
this.removeMovieClip();
score = score + (_root.lvl * _root.mult);
hud.Sdisp.text = score;
}
};
};
Buf2 = container.getNextHighestDepth();
st = Buf2 - 8;
while (st < Buf2) {
container["star" + st].onEnterFrame = function () {
this._y = this._y + ((_root.lvl * _root.tickd) / _root.mult2);
if (this.hitTest(_root.b2.hitbox) || (this.hitTest(_root.b3.hitbox))) {
audio2 = new Sound();
audio2.attachSound("electro");
audio2.start(0, 0);
this.removeMovieClip();
score = score + ((5 + _root.lvl) * _root.mult);
hud.Sdisp.text = score;
}
if (this._y > 465) {
this.removeMovieClip();
}
};
st++;
}
}
function puF2() {
rInt = setInterval(reset, 8000);
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "DOUBLE SCORE!";
audio = new Sound(b2);
audio.attachSound("pus2");
audio.start(0, 0);
mult = 2;
}
function puF3() {
Buf = container.getNextHighestDepth();
i = Buf - 8;
while (i < Buf) {
container["rect" + i].onEnterFrame = function () {
this._y = this._y + ((_root.lvl * _root.tickd) / _root.mult2);
if (this._y > 450) {
this.removeMovieClip();
score = score + (_root.lvl * _root.mult);
hud.Sdisp.text = score;
}
};
i++;
}
rInt = setInterval(reset, 8000);
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "INVULNERABILITY!";
audio = new Sound(b2);
audio.attachSound("pus3");
audio.start(0, 0);
inv = true;
b2.gotoAndStop("invulnerability");
b1.gotoAndStop("invulnerability");
drawRect = function (n, w, h) {
if ((getTimer() - lvlstart) > 60000) {
lvl++;
_root.Fact = _root.Fact + 5;
hud.levelMC.leveldisplay.text = "Level " + lvl;
hud.play();
lvlstart = getTimer();
}
var n = container.createEmptyMovieClip(n, container.getNextHighestDepth());
with (n) {
var inc = _root.lvl;
lineStyle(3, 16777215);
beginFill(Math.random() * 16777215, 50);
lineTo(w, 0);
lineTo(w, h);
lineTo(0, h);
lineTo(0, 0);
endFill();
_x = Math.random() * (450 - _width);
_y = -_height;
}
n.onEnterFrame = function () {
this._y = this._y + ((inc * tickd) / mult2);
if (this._y > 450) {
this.removeMovieClip();
score = score + (_root.lvl * _root.mult);
hud.Sdisp.text = score;
}
};
};
}
function puF4() {
rInt = setInterval(reset, 8000);
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "BULLET TIME!";
audio = new Sound(b2);
audio.attachSound("pus4");
audio.start(0, 0);
mult2 = 32;
}
function puF5() {
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "MAGNETISM!";
audio = new Sound(b2);
audio.attachSound("pus5");
audio.start(0, 0);
rInt = setInterval(reset, 8000);
magn = true;
onEnterFrame = function () {
ind._x = b2._x;
ind._visible = false;
if (b2._y < -10) {
ind._visible = true;
}
fps++;
tickd = getTimer() - tick;
tick = getTimer();
b1._x = _xmouse;
b1._y = _ymouse;
dis = Math.sqrt(Math.pow(b1._x - b2._x, 2) + Math.pow(b1._y - b2._y, 2));
if (dis < dishit) {
b2._x = b2._x - ((b2._x - b1._x) / 10);
b2._y = b2._y - ((b2._y - b1._y) / 10);
b2xs = b2xs - ((b2._x - b1._x) / 10);
b2ys = b2ys - ((b2._y - b1._y) / 10);
}
b2._x = b2._x + ((b2xs * tickd) / mult2);
b2._y = b2._y + ((b2ys * tickd) / mult2);
b2ys = b2ys / 1.01;
b2xs = b2xs / 1.01;
if (b2ys < 10) {
b2ys = b2ys + 0.1;
}
if (b2._x > 435) {
b2._x = 435;
b2xs = -b2xs;
}
if (b2._x < 15) {
b2._x = 15;
b2xs = -b2xs;
}
if (b2._y > 475) {
death();
}
updateAfterEvent();
};
}
function puF6() {
Mouse.show();
rInt = setInterval(reset, 8000);
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "FLAT FAIC!";
audio = new Sound(b2);
audio.attachSound("pus6");
audio.start(0, 0);
b1.gotoAndStop("flat");
onEnterFrame = function () {
ind._x = b2._x;
ind._visible = false;
if (b2._y < -10) {
ind._visible = true;
}
fps++;
tickd = getTimer() - tick;
tick = getTimer();
b1p = _xmouse;
b2._x = b2._x + ((b2xs * tickd) / mult2);
b2._y = b2._y + ((b2ys * tickd) / mult2);
b2ys = b2ys / 1.01;
b2xs = b2xs / 1.01;
if (b2.hitTest(b1)) {
b2ys = -6;
b2xs = b1p - b1._x;
b2._y = b1._y - 25;
}
b1._x = _xmouse;
if (b2ys < 10) {
b2ys = b2ys + 0.1;
}
if (b2._x > 435) {
b2._x = 435;
b2xs = -b2xs;
}
if (b2._x < 15) {
b2._x = 15;
b2xs = -b2xs;
}
if (b1._y < 425) {
b1._y++;
}
if (b2._y > 475) {
death();
}
updateAfterEvent();
};
}
function puF7() {
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "ZERO GRAVITY!";
audio = new Sound();
audio.attachSound("pus7");
audio.start(0, 0);
rInt = setInterval(reset, 8000);
onEnterFrame = function () {
ind._x = b2._x;
ind._visible = false;
if (b2._y < -10) {
ind._visible = true;
}
fps++;
tickd = getTimer() - tick;
tick = getTimer();
b1._x = _xmouse;
b1._y = _ymouse;
dis = Math.sqrt(Math.pow(b1._x - b2._x, 2) + Math.pow(b1._y - b2._y, 2));
if (dis < dishit) {
audio2 = new Sound();
audio2.attachSound("boop");
audio2.start(0, 0);
b2._x = b2._x + ((b2._x - b1._x) / 10);
b2._y = b2._y + ((b2._y - b1._y) / 10);
b2xs = b2xs + ((b2._x - b1._x) / 10);
b2ys = b2ys + ((b2._y - b1._y) / 10);
}
b2._x = b2._x + ((b2xs * tickd) / mult2);
b2._y = b2._y + ((b2ys * tickd) / mult2);
b2ys = b2ys / 1.05;
b2xs = b2xs / 1.05;
if (b2._x > 435) {
b2._x = 435;
b2xs = -b2xs;
}
if (b2._x < 15) {
b2._x = 15;
b2xs = -b2xs;
}
if (b2._y < 15) {
b2._y = 15;
b2ys = -b2ys;
}
if (b2._y > 475) {
death();
}
updateAfterEvent();
};
}
function reset() {
function starz() {
var _local3 = container.attachMovie("star" + Math.ceil(Math.random() * 7), "star" + container.getNextHighestDepth(), container.getNextHighestDepth(), {_x:Math.random() * 450, _y:-10});
_local3.onEnterFrame = function () {
if (this.hitTest(_root.b2.hitbox)) {
audio2 = new Sound();
audio2.attachSound("electro");
audio2.start(0, 0);
this.removeMovieClip();
score = score + ((5 + _root.lvl) * _root.mult);
hud.Sdisp.text = score;
}
this._y = this._y + ((lvl * tickd) / mult2);
if (this._y > 465) {
this.removeMovieClip();
}
};
}
Mouse.hide();
ind2.removeMovieClip();
onEnterFrame = null;
if ((b3 != undefined) && (b2 != undefined)) {
b3.removeMovieClip();
} else if (b2 == undefined) {
b3._name = "b2";
}
if (magn) {
magn = false;
b2xs = 0;
b2ys = -3;
b2._y = b1._y - 48;
}
b2.gotoAndStop("normal");
b1.gotoAndStop("normal");
inv = false;
mult = 1;
mult2 = 16;
clearInterval(rInt);
hud.timer.timer2.gotoAndStop(100);
onEnterFrame = function () {
ind._x = b2._x;
ind._visible = false;
if (b2._y < -10) {
ind._visible = true;
}
fps++;
tickd = getTimer() - tick;
tick = getTimer();
b1._x = _xmouse;
b1._y = _ymouse;
dis = Math.sqrt(Math.pow(b1._x - b2._x, 2) + Math.pow(b1._y - b2._y, 2));
if (dis < dishit) {
audio2 = new Sound();
audio2.attachSound("boop");
audio2.start(0, 0);
b2._x = b2._x + ((b2._x - b1._x) / 10);
b2._y = b2._y + ((b2._y - b1._y) / 10);
b2xs = b2xs + ((b2._x - b1._x) / 10);
b2ys = b2ys + ((b2._y - b1._y) / 10);
}
b2._x = b2._x + ((b2xs * tickd) / mult2);
b2._y = b2._y + ((b2ys * tickd) / mult2);
b2ys = b2ys / 1.01;
b2xs = b2xs / 1.01;
if (b2ys < 10) {
b2ys = b2ys + 0.1;
}
if (b2._x > 435) {
b2._x = 435;
b2xs = -b2xs;
}
if (b2._x < 15) {
b2._x = 15;
b2xs = -b2xs;
}
if (b2._y < -200) {
b2._y = -200;
b2ys = 0;
}
if (b2._y > 475) {
death();
}
updateAfterEvent();
};
drawRect = function (n, w, h) {
if ((getTimer() - lvlstart) > 60000) {
clearInterval(crInt);
lvl++;
_root.Fact = _root.Fact + 5;
if (_root.lvl < 5) {
a = ((5 - _root.lvl) * 1000) + 200;
} else {
a = 500;
}
crInt = setInterval(create, a);
hud.levelMC.leveldisplay.text = "Level " + lvl;
hud.play();
lvlstart = getTimer();
}
var n = container.createEmptyMovieClip(n, container.getNextHighestDepth());
with (n) {
var inc = _root.lvl;
lineStyle(3, 16777215);
beginFill(Math.random() * 16777215, 50);
lineTo(w, 0);
lineTo(w, h);
lineTo(0, h);
lineTo(0, 0);
endFill();
_x = Math.random() * (450 - _width);
_y = -_height;
}
n.onEnterFrame = function () {
this._y = this._y + ((inc * tickd) / mult2);
if (this.hitTest(_root.b2.hitbox) && (!inv)) {
death();
}
if (this._y > 450) {
this.removeMovieClip();
score = score + (_root.lvl * _root.mult);
hud.Sdisp.text = score;
}
};
};
}
stop();
if (_quality != "LOW") {
_root.attachMovie("BG", "BG", 1, {_x:0, _y:450});
}
_root.attachMovie("angryclip", "b1", 2, {_x:225, _y:400});
b1.gotoAndStop("normal");
_root.attachMovie("perlclip", "b2", 3, {_x:225, _y:30});
b2.gotoAndStop("normal");
_root.createEmptyMovieClip("container", 5);
_root.attachMovie("hud", "hud", 6, {_x:8, _y:8});
var lives = 3;
hud.ldisp.gotoAndStop(lives);
_root.attachMovie("indicator", "ind", 7, {_y:5, _visible:false});
stopAllSounds();
audio = new Sound(b2);
audio.setVolume(100);
audio.attachSound("go");
audio.start(0, 0);
_root.attachMovie("ann", "ann", 98, {_x:225, _y:200});
_root.ann.ann2.txt.text = "GO!";
music = new Sound(hud);
music.attachSound("chaoz");
music.setVolume(50);
music.start(0, 99);
var Fact = 25;
var magn = false;
var inv = false;
var lvlstart = getTimer();
var mult = 1;
var mult2 = 16;
var dint = getTimer();
var fps = 0;
fpstxt.text = "launching";
var tick = 0;
var tickd = 0;
var b1r = (b1._width / 2);
var b2r = (b2._width / 2);
var b1xs = 0;
var b1ys = 0;
var b2xs = 0;
var b2ys = 0;
var dis = 0;
var dishit = (b1r + b2r);
var lvl = 1;
var score = 0;
hud.Sdisp.text = score;
hud.levelMC.leveldisplay.text = "Level " + lvl;
Mouse.hide();
starInt = setInterval(starz, 6000);
delayInt = setInterval(delay, 1000);
fpsInt = setInterval(fpsF, 1000);
if (_root.lvl < 5) {
a = ((5 - _root.lvl) * 1000) + 200;
} else {
a = 500;
}
crInt = setInterval(create, a);
puInt = setInterval(puF, 20000);
onEnterFrame = function () {
b1._x = _xmouse;
if (_ymouse > 100) {
b1._y = _ymouse;
}
};
drawRect = function (n, w, h) {
if ((getTimer() - lvlstart) > 60000) {
clearInterval(crInt);
lvl++;
_root.Fact = _root.Fact + 5;
if (_root.lvl < 5) {
a = ((5 - _root.lvl) * 1000) + 200;
} else {
a = 500;
}
hud.levelMC.leveldisplay.text = "Level " + lvl;
hud.play();
lvlstart = getTimer();
}
var n = container.createEmptyMovieClip(n, container.getNextHighestDepth());
with (n) {
var inc = _root.lvl;
lineStyle(3, 16777215);
beginFill(Math.random() * 16777215, 50);
lineTo(w, 0);
lineTo(w, h);
lineTo(0, h);
lineTo(0, 0);
endFill();
_x = Math.random() * (450 - _width);
_y = -_height;
}
n.onEnterFrame = function () {
this._y = this._y + ((inc * tickd) / mult2);
if (this.hitTest(_root.b2.hitbox)) {
death();
}
if (this._y > 450) {
this.removeMovieClip();
score = score + (_root.lvl * _root.mult);
hud.Sdisp.text = score;
}
};
};
QToggler.onRollOver = function () {
Mouse.show();
b1._alpha = 0;
};
QToggler.onRollOut = function () {
Mouse.hide();
b1._alpha = 100;
};
QToggler.onPress = function () {
if (_quality == "HIGH") {
BG.removeMovieClip();
_quality = "LOW";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "LOW") {
_root.attachMovie("BG", "BG", 1, {_x:0, _y:450});
_quality = "MEDIUM";
}
};
Frame 64
function delButtons() {
replayb.onPress = function () {
};
menub.onPress = function () {
};
}
stop();
Mouse.show();
stopAllSounds();
audio = new Sound();
audio.attachSound("gameover");
audio.start(0, 0);
music = new Sound();
music.attachSound("nemo");
music.setVolume(30);
music.start(0, 99);
explosion.removeMovieClip();
ann.removeMovieClip();
container.removeMovieClip();
ind.removeMovieClip();
b1.removeMovieClip();
b2.removeMovieClip();
b3.removeMovieClip();
BG.removeMovieClip();
hud.removeMovieClip();
delete QToggler.onRollOver;
delete QToggler.onRollOut;
QToggler.onPress = function () {
if (_quality == "HIGH") {
_quality = "LOW";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
}
};
QToggler.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
scoredisplay.text = score + " points";
scoredisplay2.text = score + " points";
playmoregamesb.onRelease = function () {
getURL ("http://www.gamegecko.com/", "_blank");
};
playmoregamesb.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
replayb.onPress = function () {
delButtons();
frame = "game";
_root.attachMovie("transitionz", "newtransition", 90, {_x:225, _y:225});
};
replayb.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
menub.onPress = function () {
delButtons();
frame = "menu";
_root.attachMovie("transitionz", "newtransition", 90, {_x:225, _y:225});
};
menub.onRollOver = function () {
audio = new Sound();
audio.attachSound("dink");
audio.start(0, 0);
};
Symbol 8 MovieClip [transitionz] Frame 60
_root.gotoAndStop(_root.frame);
Symbol 8 MovieClip [transitionz] Frame 102
stop();
this.removeMovieClip();
Symbol 42 MovieClip Frame 63
stop();
Symbol 43 MovieClip [angryclip] Frame 1
stop();
Symbol 56 MovieClip Frame 100
stop();
Symbol 68 MovieClip [hud] Frame 1
stop();
Symbol 132 MovieClip [ann] Frame 174
this.removeMovieClip();