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__("0f934aaf", this, 10301, true);
function PLAYSOUND() {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_mySound", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mySound = new Sound(this._parent.BS_mySound);
} else {
this.createEmptyMovieClip("_mySound_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mySound = new Sound(this.BS_mySound);
}
_global.Behaviors.Sound.mySound.attachSound("43572_newgrounds_new3.mp3");
_global.Behaviors.Sound.mySound.start(0, 1000000);
}
Frame 2
if (username == undefined) {
var username;
} else {
usernametext.text = username;
}
var timer = 10000;
var enemynumber = 0;
var enemyname;
var rotate = 0;
var maxspeed = 10;
var rotationmultiplier;
var globaltimer = 0;
var death = 0;
var SOUND;
if (SOUND == undefined) {
SOUND = 1;
PLAYSOUND();
}
stop();
Frame 20
globaltimer = globaltimer + 1;
if ((rotate == 0) && (random(100) == 0)) {
rotationmultiplier = (2 * random(2)) - 1;
rotate = 1;
} else if (rotate == 1) {
myarrow._rotation = myarrow._rotation + ((rotationmultiplier * random(maxspeed)) / 10);
if (random(60) == 0) {
rotate = 0;
}
}
var myDX = Math.cos((myarrow._rotation * Math.PI) / 180);
var myDY = Math.sin((myarrow._rotation * Math.PI) / 180);
if (Key.isDown(40)) {
myDY = myDY + 2.5;
}
if (Key.isDown(38)) {
myDY = myDY - 2.5;
}
if (Key.isDown(39)) {
myDX = myDX + 2.5;
}
if (Key.isDown(37)) {
myDX = myDX - 2.5;
}
if (death != 1) {
timer = timer + 1;
}
if (timer >= 200) {
maxspeed = maxspeed + 1;
enemynumber = enemynumber + 1;
enemyname = "box" + enemynumber;
timer = 0;
holder.attachMovie("box", enemyname, holder.getNextHighestDepth());
holder[enemyname]._x = (random(2) * 320) + 65;
holder[enemyname]._y = (random(2) * 320) + 65;
}
if (enemynumber == 1) {
caption.text = "Ok. Start by getting the hang of the controls (arrow keys). Don't forget that gravity exists. And DON'T touch the box in the center.";
}
if (enemynumber == 2) {
caption.text = "As you see, more squares appear as you progress.";
}
if (enemynumber == 3) {
caption.text = "With more and more blocks to control, the game constantly gets harder.";
}
if (enemynumber == 4) {
caption.text = "But it's worth it; if you can survive a whole minute, you will be rewarded.";
}
if (enemynumber == 5) {
caption.text = "Is it getting challenging yet? It should be.";
}
if (enemynumber == 6) {
caption.text = "You're not even half done!";
}
if (enemynumber == 7) {
caption.text = "NOW your half done. But doubt that you will survive much longer.";
}
if (enemynumber == 8) {
caption.text = "Then again, you're not planning on losing, are you?";
}
if (enemynumber == 9) {
caption.text = "Two thirds. That's amazing. Now, let's test your intellect as well as your gaming skills (wait for the next message).";
}
if (enemynumber == 10) {
caption.text = "You'll get a prize if you hit the central box before This message disappears.";
}
if (enemynumber == 11) {
caption.text = "If you just did that, you failed. Otherwise you passed!";
}
if (enemynumber == 12) {
caption.text = "finish in 5...4...3...2...1...";
}
if (enemynumber == 13) {
if (death != 1) {
death = 1;
} else {
gotoAndStop (23);
}
}
Frame 21
if ((death == 1) && (enemynumber < 13)) {
gotoAndStop (22);
} else {
gotoAndPlay (20);
}
Frame 22
stop();
mytext.text = ("Boom!\r\rThe magic box just blew up, releasing everlasting darkness on the world. However, you managed to keep it safe for " + Math.floor(globaltimer / 40)) + " seconds.";
var nukescore = (globaltimer / 40);
var thename = username;
loadVariablesNum ("http://www.flashninjaclan.com/games/squaregame/newscore.php", 0, "POST");
Frame 23
gotoAndStop (22);
Frame 24
stop();
var nukescore = 60;
var thename = username;
loadVariablesNum ("http://www.flashninjaclan.com/games/squaregame/newscore.php", 0, "POST");
Symbol 4 MovieClip [box] Frame 1
var DX = 0;
var DY = 0;
Symbol 4 MovieClip [box] Frame 30
DX = DX + (_root.myDX / 10);
DY = DY + (_root.myDY / 10);
this._x = this._x + DX;
this._y = this._y + DY;
if (DX > 15) {
DX = 15;
}
if (DX < -15) {
DX = -15;
}
if (DY > 15) {
DY = 15;
}
if (DY < -15) {
DY = -15;
}
if (this._x > 425) {
this._x = 850 - this._x;
DX = -DX;
}
if (this._x < 25) {
this._x = 50 - this._x;
DX = -DX;
}
if (this._y > 425) {
this._y = 850 - this._y;
DY = -DY;
}
if (this._y < 25) {
this._y = 50 - this._y;
DY = -DY;
}
if (((((this._x > 195) && (this._x < 255)) && (this._y > 195)) && (this._y < 255)) || (_root.center._currentframe > 4)) {
if (_root.center._currentframe < 4) {
_root.center.gotoAndStop(_root.center._currentframe + 1);
}
gotoAndPlay (32);
}
if (_root.death == 1) {
removeMovieClip(this);
}
Symbol 4 MovieClip [box] Frame 31
gotoAndPlay (30);
Symbol 4 MovieClip [box] Frame 80
removeMovieClip(this);
Symbol 9 Button
on (release) {
if (SOUND == 1) {
SOUND = 0;
stopAllSounds();
} else if (SOUND == 0) {
SOUND = 1;
PLAYSOUND();
}
}
Symbol 18 Button
on (release) {
gotoAndStop (3);
}
Symbol 25 Button
on (release) {
username = usernametext.text;
gotoAndPlay (20);
}
Symbol 31 Button
on (release) {
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 39 Button
on (release) {
gotoAndStop (2);
}
Symbol 43 Button
on (release) {
gotoAndStop (2);
}
Symbol 46 MovieClip Frame 1
this._rotation = random(360);
Symbol 46 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 3
stop();
Symbol 57 MovieClip Frame 4
play();
Symbol 57 MovieClip Frame 75
_root.death = 1;
Symbol 62 Button
on (release) {
gotoAndStop (2);
}
Symbol 66 Button
on (release) {
gotoAndStop (2);
}
Symbol 69 MovieClip Frame 1
this._rotation = random(360);
Symbol 69 MovieClip Frame 2
gotoAndPlay (1);