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);
}
stop();
_quality = "MEDIUM";
pauseScreenShow = false;
Stage.showMenu = false;
MochiAd.showPreGameAd({id:"c28faa4889c11f57", res:"550x550"});
__com_mochibot__("c17f703d", this, 10301, true);
Frame 2
stop();
Frame 3
function teleportParticle(padNum, padDestination) {
_root.playSound("warp");
i = 1;
while (i <= 50) {
_root.particle.duplicateMovieClip("particle" + i, i);
_root["particle" + i]._x = _root["teleport" + padNum]._x;
_root["particle" + i]._y = _root["teleport" + padNum]._y;
_root["particle" + i].padDestination = padDestination;
_root["particle" + i]._xscale = random(50) + 50;
_root["particle" + i]._yscale = random(50) + 50;
i++;
}
}
function playSound(soundName) {
if (_root.soundMute == false) {
sound = new Sound();
sound.attachSound(soundName);
sound.setVolume(_root.gameVolume);
sound.start();
}
}
Mouse.hide();
highestLevelCompleted = 0;
enemies = 8;
enemyNum = enemies;
enemyN = 500;
objects = 0;
buttons = 4;
bonus = 500;
onMainMenu = true;
if (gameVolume == undefined) {
gameVolume = 100;
}
if (soundMute == undefined) {
soundMute = false;
}
if (musicMute == undefined) {
musicMute = false;
}
_root.n3wton = SharedObject.getLocal("n3wton");
if (_root.n3wton.data.level == undefined) {
_root.n3wton.data.level = 0;
}
_root.level = _root.n3wton.data.level;
if (_root.n3wton.data.score == undefined) {
score = 0;
} else {
score = _root.n3wton.data.score;
}
practice = false;
highestLevelCompleted = _root.level - 1;
_root.kongregateServices.connect();
_root.kongregateStats.submit("HighestLevelCompleted", highestLevelCompleted);
stop();
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip "hint" in Frame 3
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 40;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 10;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 50;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 101 MovieClip "enemyBall" in Frame 3
onClipEvent (load) {
transportHit = false;
transHit = 0;
deg = _root["enemy" + enemyNum].deg;
rad = deg * (Math.PI/180);
y = hyp * Math.sin(rad);
x = hyp * Math.cos(rad);
this._y = _root["enemy" + enemyNum]._y + (y * 3);
this._x = _root["enemy" + enemyNum]._x + (x * 3);
fullHealth = 5;
health = fullHealth;
}
onClipEvent (enterFrame) {
this._x = this._x + x;
this._y = this._y + y;
if ((((this._x < 0) or (this._x > 550)) or (this._y < 0)) or (this._y > 550)) {
this.removeMovieClip();
}
i = 1;
while (i <= _root.buttons) {
if (this.hitTest(_root["button" + i])) {
_root["button" + i].recoilSpeed = hyp;
_root["button" + i].turretRad = rad - Math.PI;
x = x * -1;
y = y * -1;
health--;
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideLeft)) {
x = x * -1;
if (y > 0) {
rad = Math.acos(x / hyp);
} else {
rad = (Math.PI*2) - Math.acos(x / hyp);
}
_root["object" + n].xMove = hyp;
health--;
} else if (this.hitTest(_root["object" + n].sideRight)) {
x = x * -1;
if (y > 0) {
rad = Math.acos(x / hyp) - (Math.PI*2);
} else {
rad = -Math.acos(x / hyp);
}
_root["object" + n].xMove = -hyp;
health--;
} else if (this.hitTest(_root["object" + n].sideBottom)) {
y = y * -1;
if (x > 0) {
rad = Math.asin(y / hyp);
} else {
rad = Math.PI - Math.asin(y / hyp);
}
_root["object" + n].yMove = -hyp;
health--;
} else if (this.hitTest(_root["object" + n].sideTop)) {
y = y * -1;
if (x > 0) {
rad = Math.asin(y / hyp);
} else {
rad = Math.PI - Math.asin(y / hyp);
}
_root["object" + n].yMove = hyp;
health--;
}
n++;
}
if (health > 0) {
this._alpha = health * (100 / fullHealth);
} else {
this.removeMovieClip();
}
}
Instance of Symbol 99 MovieClip "enemy5" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 5;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 20;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 99 MovieClip "enemy6" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 6;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 60;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 99 MovieClip "enemy7" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 7;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 30;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 99 MovieClip "enemy8" in Frame 3
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 8;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 60;
}
reset();
respawn();
firingRate = 70;
}
onClipEvent (enterFrame) {
if (_root.transition.playing == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
Instance of Symbol 115 MovieClip "button2" in Frame 3
onClipEvent (load) {
recoilSpeed = 0;
}
onClipEvent (enterFrame) {
if (recoilSpeed > 0) {
recoilSpeed = recoilSpeed - 2;
xSpeed = recoilSpeed * Math.cos(turretRad);
ySpeed = recoilSpeed * Math.sin(turretRad);
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
}
}
Instance of Symbol 119 MovieClip "button1" in Frame 3
onClipEvent (load) {
recoilSpeed = 0;
}
onClipEvent (enterFrame) {
if (recoilSpeed > 0) {
recoilSpeed = recoilSpeed - 2;
xSpeed = recoilSpeed * Math.cos(turretRad);
ySpeed = recoilSpeed * Math.sin(turretRad);
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
}
}
Instance of Symbol 124 MovieClip "button3" in Frame 3
onClipEvent (load) {
recoilSpeed = 0;
}
onClipEvent (enterFrame) {
if (recoilSpeed > 0) {
recoilSpeed = recoilSpeed - 2;
xSpeed = recoilSpeed * Math.cos(turretRad);
ySpeed = recoilSpeed * Math.sin(turretRad);
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
}
}
Instance of Symbol 128 MovieClip "button4" in Frame 3
onClipEvent (load) {
recoilSpeed = 0;
}
onClipEvent (enterFrame) {
if (recoilSpeed > 0) {
recoilSpeed = recoilSpeed - 2;
xSpeed = recoilSpeed * Math.cos(turretRad);
ySpeed = recoilSpeed * Math.sin(turretRad);
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
}
}
Instance of Symbol 160 MovieClip "transition" in Frame 3
onClipEvent (load) {
level = 0;
destination = 0;
playing = false;
this._x = 275;
this._y = 275;
this._visible = false;
}
Instance of Symbol 162 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(1001);
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 164 MovieClip "codeClip" in Frame 3
onClipEvent (load) {
gameMusic = new Sound();
gameMusic.attachSound("menuMusic");
if (_root.gameVolume == undefined) {
gameMusic.setVolume(100);
} else {
gameMusic.setVolume(_root.gameVolume);
}
if (_root.musicMute == false) {
gameMusic.start(0, 1000);
}
}
Instance of Symbol 162 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 180 MovieClip in Frame 5
onClipEvent (load) {
if (_root.n3wton.data.continueGame == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 6
onMainMenu = true;
Instance of Symbol 196 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 1;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 199 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 2;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 202 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 3;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 205 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 4;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 208 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 5;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 211 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 6;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 214 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 7;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 217 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 8;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 220 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 9;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 231 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 10;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 11;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 237 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 12;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 240 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 13;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 243 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 14;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 246 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 15;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 249 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 16;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 252 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 17;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 255 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 18;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 258 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 19;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 261 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 20;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 264 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 21;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 267 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 22;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 270 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 23;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 273 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 24;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 276 MovieClip in Frame 6
onClipEvent (load) {
this.cacheAsBitmap;
level = 25;
active = false;
}
onClipEvent (enterFrame) {
if (_root.n3wton.data.level >= level) {
this.darken._visible = false;
active = true;
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (active == true) {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (active == true) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
stopAllSounds();
_root.onMainMenu = false;
_root.transition.play();
_root.transition.destination = 7;
_root.transition.level = level;
_root.practice = true;
_root.bonus = 500;
_root.score = 0;
}
}
}
Instance of Symbol 286 MovieClip in Frame 7
onClipEvent (load) {
if (_root.gameVolume > 0) {
this.slider._x = _root.gameVolume * 2;
}
}
onClipEvent (enterFrame) {
_root.gameVolume = Math.ceil(this.slider._x / 2);
_root.codeClip.gameMusic.setVolume(_root.gameVolume);
}
Instance of Symbol 303 MovieClip in Frame 7
onClipEvent (load) {
if (_root.musicMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.musicMute == false) {
this.nextFrame();
_root.codeClip.gameMusic.stop();
} else {
this.prevFrame();
_root.codeClip.gameMusic.start(0, 1000);
}
}
}
Instance of Symbol 304 MovieClip in Frame 7
onClipEvent (load) {
if (_root.soundMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.soundMute == false) {
this.nextFrame();
} else {
this.prevFrame();
}
}
}
Frame 8
test = 0;
nextFrame();
Instance of Symbol 60 MovieClip in Frame 8
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 8
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip "hint" in Frame 8
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 8
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 352 MovieClip "hint" in Frame 8
onClipEvent (load) {
timer = 3;
hideHint = false;
reverse = false;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
if (_root.pauseScreen.paused == false) {
if (_root.transition.playing == false) {
timer--;
if (_root.bonus > 0) {
if (timer <= 0) {
_root.bonus--;
timer = 3;
}
}
}
}
if (hideHint == true) {
if (reverse == false) {
if (this._y < 550) {
this._y = this._y + 3;
this._alpha = this._alpha - 10;
} else {
reverse = true;
hideHint = false;
}
} else if (this._y > 510) {
this._y = this._y - 3;
this._alpha = this._alpha + 10;
} else {
reverse = false;
hideHint = false;
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 72) {
hideHint = true;
}
}
Instance of Symbol 378 MovieClip "player" in Frame 8
onClipEvent (load) {
function reset() {
this.gotoAndStop(1);
dead = false;
direction = "";
explode = false;
hSpeed = 0;
vSpeed = 0;
objectHit = false;
anchored = false;
objectMiss = 0;
turretRad = 0;
recoilSpeed = 0;
ballSpeed = 0;
charging = false;
n = 500;
}
firingRate = 4;
maxSpeed = 5;
acc = 0.55;
up = false;
down = false;
left = false;
right = false;
transition = true;
teleporting = false;
teleportHit = 0;
reset();
}
onClipEvent (enterFrame) {
_root.test = _root["ball" + n].hyp;
i = 1;
while (i <= _root.teleportNum) {
if (this.hitTest(_root["teleport" + i]) == false) {
teleportHit++;
}
i++;
}
if (teleportHit == _root.teleportNum) {
teleporting = false;
teleportHit = 0;
} else {
teleportHit = 0;
}
if (dead == false) {
if (transition == false) {
if (firingRate > 0) {
firingRate--;
}
x = _root._xmouse - this._x;
y = _root._ymouse - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (anchored == false) {
if (recoilSpeed > 0) {
recoilSpeed = recoilSpeed - 1.4;
xSpeed = recoilSpeed * Math.cos(turretRad);
ySpeed = recoilSpeed * Math.sin(turretRad);
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
} else {
recoilSpeed = 0;
}
}
if (charging == true) {
if (ballSpeed < 14) {
ballSpeed = ballSpeed + 0.5;
}
}
i = 1;
while (i <= _root.objects) {
if (this.turret.hitTest(_root["object" + i])) {
objectHit = true;
} else {
objectMiss++;
}
i++;
}
if (objectMiss == _root.objects) {
objectHit = false;
objectMiss = 0;
} else {
objectMiss = 0;
}
if (anchored == false) {
this._x = this._x + hSpeed;
if (Key.isDown(39) or Key.isDown(68)) {
right = true;
if (hSpeed < maxSpeed) {
hSpeed = hSpeed + acc;
}
} else if (right == true) {
right = false;
}
if (Key.isDown(37) or Key.isDown(65)) {
left = true;
if (hSpeed > (-maxSpeed)) {
hSpeed = hSpeed - acc;
}
} else if (left == true) {
left = false;
}
if ((left == false) and (right == false)) {
if (hSpeed > 0) {
hSpeed = hSpeed - acc;
if (hSpeed < acc) {
hSpeed = 0;
}
} else if (hSpeed < 0) {
hSpeed = hSpeed + acc;
if (hSpeed > acc) {
hSpeed = 0;
}
}
}
this._y = this._y + vSpeed;
if (Key.isDown(40) or Key.isDown(83)) {
down = true;
if (vSpeed < maxSpeed) {
vSpeed = vSpeed + acc;
}
} else if (down == true) {
down = false;
}
if (Key.isDown(38) or Key.isDown(87)) {
up = true;
if (vSpeed > (-maxSpeed)) {
vSpeed = vSpeed - acc;
}
} else if (up == true) {
up = false;
}
if ((down == false) and (up == false)) {
if (vSpeed > 0) {
vSpeed = vSpeed - acc;
if (vSpeed < acc) {
vSpeed = 0;
}
} else if (vSpeed < 0) {
vSpeed = vSpeed + acc;
if (vSpeed > acc) {
vSpeed = 0;
}
}
}
}
}
} else if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
onClipEvent (mouseDown) {
if (dead == false) {
if (transition == false) {
if (firingRate <= 0) {
this.gotoAndStop(2);
charging = true;
ballSpeed = 5;
}
}
}
}
onClipEvent (mouseUp) {
if (dead == false) {
if (transition == false) {
if (charging == true) {
_root.playSound("fire");
firingRate = 4;
this.gotoAndStop(1);
charging = false;
_root.ball.duplicateMovieClip("ball" + n, n);
_root["ball" + n].hyp = ballSpeed;
n++;
ballSpeed = 0;
}
}
}
}
Instance of Symbol 380 MovieClip "transition" in Frame 8
onClipEvent (load) {
function reset() {
this._alpha = 0;
shrink = true;
this._x = 275;
this._y = 275;
}
this.gotoAndPlay(25);
playing = false;
playerDead = false;
reset();
this._alpha = 100;
}
onClipEvent (enterFrame) {
if ((_root.enemyNum <= 0) or (playerDead == true)) {
this.play();
this._x = _root.player._x;
this._y = _root.player._y;
if (shrink == true) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
}
}
Instance of Symbol 382 MovieClip "ball" in Frame 8
onClipEvent (load) {
transportHit = false;
transHit = 0;
deg = _root.player.deg;
rad = deg * (Math.PI/180);
y = hyp * Math.sin(rad);
x = hyp * Math.cos(rad);
if (_root.player.objectHit == false) {
this._y = _root.player._y + (y * 2);
this._x = _root.player._x + (x * 2);
} else {
this._y = _root.player._y;
this._x = _root.player._x;
}
_root.player.turretRad = rad;
_root.player.recoilSpeed = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
fullHealth = 5;
health = fullHealth;
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
this._x = this._x + x;
this._y = this._y + y;
if ((((this._x < 0) or (this._x > 550)) or (this._y < 0)) or (this._y > 550)) {
this.removeMovieClip();
}
j = 1;
while (j <= _root.transportNum) {
if (this.hitTest(_root["transport" + j].test)) {
if (transportHit == false) {
this._x = _root["transport" + _root["transport" + j].transDestination]._x;
this._y = _root["transport" + _root["transport" + j].transDestination]._y;
transportHit = true;
health--;
}
} else {
transHit++;
}
j++;
}
if (transHit == _root.transportNum) {
transHit = 0;
transportHit = false;
} else {
transHit = 0;
}
k = 1;
while (k <= _root.switchNum) {
if (this.hitTest(_root["switch" + k].test)) {
_root["switch" + k].switchOn = true;
}
k++;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i].moveSpeed = hyp;
_root["enemy" + i].angleRad = rad;
rad = rad - Math.PI;
x = x * -1;
y = y * -1;
this._x = this._x + (x / 2);
this._y = this._y + (y / 2);
health--;
_root.playSound("hit2");
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideLeft)) {
x = x * -1;
this._x = this._x + 1;
if (y > 0) {
rad = Math.acos(x / hyp);
} else {
rad = (Math.PI*2) - Math.acos(x / hyp);
}
_root["object" + n].xMove = hyp;
health--;
_root.playSound("hit");
} else if (this.hitTest(_root["object" + n].sideRight)) {
x = x * -1;
this._x = this._x + 1;
if (y > 0) {
rad = Math.acos(x / hyp) - (Math.PI*2);
} else {
rad = -Math.acos(x / hyp);
}
_root["object" + n].xMove = -hyp;
health--;
_root.playSound("hit");
} else if (this.hitTest(_root["object" + n].sideBottom)) {
y = y * -1;
this._y = this._y + 1;
if (x > 0) {
rad = Math.asin(y / hyp);
} else {
rad = Math.PI - Math.asin(y / hyp);
}
_root["object" + n].yMove = -hyp;
health--;
_root.playSound("hit");
} else if (this.hitTest(_root["object" + n].sideTop)) {
y = y * -1;
this._y = this._y - 1;
if (x > 0) {
rad = Math.asin(y / hyp);
} else {
rad = Math.PI - Math.asin(y / hyp);
}
_root["object" + n].yMove = hyp;
health--;
_root.playSound("hit");
}
n++;
}
if (health > 0) {
this._alpha = health * (100 / fullHealth);
} else {
this.removeMovieClip();
}
}
}
Instance of Symbol 101 MovieClip "enemyBall" in Frame 8
onClipEvent (load) {
transportHit = false;
transHit = 0;
deg = _root["enemy" + enemyNum].deg;
rad = deg * (Math.PI/180);
y = hyp * Math.sin(rad);
x = hyp * Math.cos(rad);
this._y = _root["enemy" + enemyNum]._y + (y * 3);
this._x = _root["enemy" + enemyNum]._x + (x * 3);
fullHealth = 5;
health = fullHealth;
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
this._x = this._x + x;
this._y = this._y + y;
if ((((this._x < 0) or (this._x > 550)) or (this._y < 0)) or (this._y > 550)) {
this.removeMovieClip();
}
if (this.hitTest(_root.player.test)) {
_root.player.recoilSpeed = hyp;
_root.player.turretRad = rad - Math.PI;
x = x * -1;
y = y * -1;
this._x = this._x + (x / 2);
this._y = this._y + (y / 2);
health--;
_root.playSound("hit2");
}
j = 1;
while (j <= _root.transportNum) {
if (this.hitTest(_root["transport" + j].test)) {
if (transportHit == false) {
this._x = _root["transport" + _root["transport" + j].transDestination]._x;
this._y = _root["transport" + _root["transport" + j].transDestination]._y;
transportHit = true;
health--;
}
} else {
transHit++;
}
j++;
}
if (transHit == _root.transportNum) {
transHit = 0;
transportHit = false;
} else {
transHit = 0;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideLeft)) {
x = x * -1;
if (y > 0) {
rad = Math.acos(x / hyp);
} else {
rad = (Math.PI*2) - Math.acos(x / hyp);
}
_root["object" + n].xMove = hyp;
health--;
} else if (this.hitTest(_root["object" + n].sideRight)) {
x = x * -1;
if (y > 0) {
rad = Math.acos(x / hyp) - (Math.PI*2);
} else {
rad = -Math.acos(x / hyp);
}
_root["object" + n].xMove = -hyp;
health--;
} else if (this.hitTest(_root["object" + n].sideBottom)) {
y = y * -1;
if (x > 0) {
rad = Math.asin(y / hyp);
} else {
rad = Math.PI - Math.asin(y / hyp);
}
_root["object" + n].yMove = -hyp;
health--;
} else if (this.hitTest(_root["object" + n].sideTop)) {
y = y * -1;
if (x > 0) {
rad = Math.asin(y / hyp);
} else {
rad = Math.PI - Math.asin(y / hyp);
}
_root["object" + n].yMove = hyp;
health--;
}
n++;
}
if (health > 0) {
this._alpha = health * (100 / fullHealth);
} else {
this.removeMovieClip();
}
}
}
Instance of Symbol 384 MovieClip "particle" in Frame 8
onClipEvent (load) {
seeking = false;
hyp = 10;
deg = random(359) + 1;
this._rotation = deg;
thisStopped = false;
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (thisStopped == true) {
this.play();
thisStopped = false;
}
if (seeking == true) {
myRadians = Math.atan2(_root["teleport" + padDestination]._y - this._y, _root["teleport" + padDestination]._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
yChange = Math.round(_root["teleport" + padDestination]._y - this._y);
xChange = Math.round(_root["teleport" + padDestination]._x - this._x);
yMove = Math.round(yChange / 5);
xMove = Math.round(xChange / 5);
this._y = this._y + yMove;
this._x = this._x + xMove;
}
} else {
this.stop();
thisStopped = true;
}
}
Instance of Symbol 164 MovieClip "codeClip" in Frame 8
onClipEvent (load) {
stopAllSounds();
gameMusic = new Sound();
if (_root.practice == false) {
gameMusic.attachSound("gameMusic");
} else {
gameMusic.attachSound("practiceMusic");
}
if (_root.gameVolume == undefined) {
gameMusic.setVolume(100);
} else {
gameMusic.setVolume(_root.gameVolume);
}
if (_root.musicMute == false) {
gameMusic.start(0, 1000);
}
}
Instance of Symbol 397 MovieClip "pauseScreen" in Frame 8
onClipEvent (load) {
paused = false;
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_root.transition.playing == false) {
if (paused == false) {
paused = true;
_root.player.transition = true;
this.gotoAndStop(2);
_root.playSound("pause");
} else {
this.gotoAndStop(1);
paused = false;
_root.player.transition = false;
_root.playSound("unpause");
}
}
}
}
Frame 9
stop();
level = 1;
levelText.play();
score = 0;
enemyN = 51;
_root.player.n = 500;
enemies = 1;
enemyNum = enemies;
_root.player._x = 275;
_root.player._y = 275;
_root.player.reset();
Mouse.hide();
objects = 0;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
if (_root.n3wton.data.level == undefined) {
_root.n3wton.data.level = level;
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 9
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 10
nextFrame();
Frame 11
level = 2;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 350;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 0;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 1);
Instance of Symbol 99 MovieClip "enemy1" in Frame 11
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 11
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 12
nextFrame();
Frame 13
level = 3;
enemies = 4;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 275;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 0;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 2);
Instance of Symbol 99 MovieClip "enemy1" in Frame 13
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 13
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 13
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 13
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 14
nextFrame();
Frame 15
level = 4;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 350;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 4;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 3);
Instance of Symbol 99 MovieClip "enemy1" in Frame 15
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 15
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 16
nextFrame();
Frame 17
level = 5;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 400;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 5;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 4);
Instance of Symbol 60 MovieClip in Frame 17
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 17
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 17
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 50;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 17
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 50;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 18
nextFrame();
Frame 19
level = 6;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 430;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 2;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 5);
Instance of Symbol 60 MovieClip in Frame 19
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 19
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 19
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 19
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 19
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
}
Instance of Symbol 412 MovieClip "well1" in Frame 19
onClipEvent (load) {
playerGet = false;
used = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 300;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 0.33;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 19
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 19
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 20
nextFrame();
Frame 21
level = 7;
enemies = 5;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 117;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 0;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 6);
Instance of Symbol 60 MovieClip in Frame 21
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 21
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 21
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 412 MovieClip "well1" in Frame 21
onClipEvent (load) {
playerGet = false;
used = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 300;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 0.33;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 21
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 21
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 21
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 21
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy5" in Frame 21
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 5;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
deg = 180;
this._rotation = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 22
nextFrame();
Frame 23
level = 8;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 75;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 2;
switchNum = 0;
transportNum = 0;
objects = 1;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 7);
Instance of Symbol 60 MovieClip in Frame 23
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 23
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 23
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 23
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 23
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 23
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 24
nextFrame();
Frame 25
level = 9;
enemies = 4;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 100;
_root.player._y = 75;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 4;
switchNum = 0;
transportNum = 0;
objects = 2;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 8);
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 25
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 25
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport3" in Frame 25
onClipEvent (load) {
padNum = 3;
padDestination = 4;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport4" in Frame 25
onClipEvent (load) {
padNum = 4;
padDestination = 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 25
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 25
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 25
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 25
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 26
nextFrame();
Frame 27
level = 10;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 400;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 2;
switchNum = 2;
transportNum = 0;
objects = 7;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 9);
Instance of Symbol 229 MovieClip "switch1" in Frame 27
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 2;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 229 MovieClip "switch2" in Frame 27
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 5;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 27
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 27
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 27
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 27
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 401 MovieClip "object2" in Frame 27
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._y < 555) {
this._y = this._y + 2;
} else {
reverse = true;
activate = false;
}
} else if (this._y > 446) {
this._y = this._y - 2;
} else {
reverse = false;
activate = false;
}
}
}
Instance of Symbol 399 MovieClip "object5" in Frame 27
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._x > 320) {
this._x = this._x - 2;
} else {
reverse = true;
activate = false;
}
} else if (this._x < 430) {
this._x = this._x + 2;
} else {
reverse = false;
activate = false;
}
}
}
Frame 28
nextFrame();
Frame 29
level = 11;
enemies = 3;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 175;
_root.player._y = 250;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 2;
switchNum = 1;
transportNum = 0;
objects = 8;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 10);
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 229 MovieClip "switch1" in Frame 29
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 2;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 29
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 29
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 412 MovieClip "well1" in Frame 29
onClipEvent (load) {
playerGet = false;
used = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 300;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 0.33;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 29
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 15;
firingRate = 30;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 29
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 29
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 401 MovieClip "object2" in Frame 29
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._y < 346) {
this._y = this._y + 5;
} else {
reverse = true;
activate = false;
}
} else if (this._y > 256) {
this._y = this._y - 5;
} else {
reverse = false;
activate = false;
}
}
}
Frame 30
nextFrame();
Frame 31
level = 12;
enemies = 3;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 100;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 4;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 11);
Instance of Symbol 60 MovieClip in Frame 31
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 31
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 431 MovieClip "object1" in Frame 31
onClipEvent (load) {
breaking = false;
dead = false;
xMove = 0;
yMove = 0;
weight = 1;
}
onClipEvent (enterFrame) {
if (xMove > 0) {
if (xMove > 4) {
this._x = this._x + (xMove * weight);
xMove = xMove - 4;
} else {
xMove = 0;
}
} else if (xMove < 0) {
if (xMove < -4) {
this._x = this._x + (xMove * weight);
xMove = xMove + 4;
} else {
xMove = 0;
}
}
if (yMove > 0) {
if (yMove > 4) {
this._y = this._y + (yMove * weight);
yMove = yMove - 4;
} else {
yMove = 0;
}
} else if (yMove < 0) {
if (yMove < -4) {
this._y = this._y + (yMove * weight);
yMove = yMove + 4;
}
} else {
yMove = 0;
}
if (breaking == false) {
if (direction == "right") {
this._x = this._x + 0.5;
} else if (direction == "left") {
this._x = this._x - 0.5;
this._rotation = 180;
} else if (direction == "down") {
this._y = this._y + 0.5;
this._rotation = 90;
} else if (direction == "up") {
this._y = this._y - 0.5;
this._rotation = 270;
}
}
}
Instance of Symbol 431 MovieClip "object2" in Frame 31
onClipEvent (load) {
breaking = false;
dead = false;
xMove = 0;
yMove = 0;
weight = 1;
}
onClipEvent (enterFrame) {
if (xMove > 0) {
if (xMove > 4) {
this._x = this._x + (xMove * weight);
xMove = xMove - 4;
} else {
xMove = 0;
}
} else if (xMove < 0) {
if (xMove < -4) {
this._x = this._x + (xMove * weight);
xMove = xMove + 4;
} else {
xMove = 0;
}
}
if (yMove > 0) {
if (yMove > 4) {
this._y = this._y + (yMove * weight);
yMove = yMove - 4;
} else {
yMove = 0;
}
} else if (yMove < 0) {
if (yMove < -4) {
this._y = this._y + (yMove * weight);
yMove = yMove + 4;
}
} else {
yMove = 0;
}
if (breaking == false) {
if (direction == "right") {
this._x = this._x + 0.5;
} else if (direction == "left") {
this._x = this._x - 0.5;
this._rotation = 180;
} else if (direction == "down") {
this._y = this._y + 0.5;
this._rotation = 90;
} else if (direction == "up") {
this._y = this._y - 0.5;
this._rotation = 270;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 31
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 31
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 31
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 32
nextFrame();
Frame 33
level = 13;
enemies = 4;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 100;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 7;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 12);
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 431 MovieClip "object2" in Frame 33
onClipEvent (load) {
breaking = false;
dead = false;
xMove = 0;
yMove = 0;
weight = 1;
}
onClipEvent (enterFrame) {
if (xMove > 0) {
if (xMove > 4) {
this._x = this._x + (xMove * weight);
xMove = xMove - 4;
} else {
xMove = 0;
}
} else if (xMove < 0) {
if (xMove < -4) {
this._x = this._x + (xMove * weight);
xMove = xMove + 4;
} else {
xMove = 0;
}
}
if (yMove > 0) {
if (yMove > 4) {
this._y = this._y + (yMove * weight);
yMove = yMove - 4;
} else {
yMove = 0;
}
} else if (yMove < 0) {
if (yMove < -4) {
this._y = this._y + (yMove * weight);
yMove = yMove + 4;
}
} else {
yMove = 0;
}
if (breaking == false) {
if (direction == "right") {
this._x = this._x + 0.5;
} else if (direction == "left") {
this._x = this._x - 0.5;
this._rotation = 180;
} else if (direction == "down") {
this._y = this._y + 0.5;
this._rotation = 90;
} else if (direction == "up") {
this._y = this._y - 0.5;
this._rotation = 270;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 33
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 33
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 5;
firingRate = 15;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 33
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 33
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 34
nextFrame();
Frame 35
level = 14;
enemies = 1;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 450;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 2;
switchNum = 1;
transportNum = 0;
objects = 9;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 13);
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 35
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 35
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 229 MovieClip "switch1" in Frame 35
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 7;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 412 MovieClip "well1" in Frame 35
onClipEvent (load) {
playerGet = false;
used = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 300;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 0.33;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 35
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 6;
firingRate = 6;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 399 MovieClip "object7" in Frame 35
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._y < 265) {
this._y = this._y + 2;
} else {
reverse = true;
activate = false;
}
} else if (this._y > 62) {
this._y = this._y - 2;
} else {
reverse = false;
activate = false;
}
}
}
Frame 36
nextFrame();
Frame 37
level = 15;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 2;
objects = 1;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 14);
Instance of Symbol 60 MovieClip in Frame 37
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 37
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 37
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 37
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 164 MovieClip "transport1" in Frame 37
onClipEvent (load) {
transNum = 1;
transDestination = 2;
}
Instance of Symbol 164 MovieClip "transport2" in Frame 37
onClipEvent (load) {
transNum = 2;
transDestination = 1;
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 37
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 37
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 38
nextFrame();
Frame 39
level = 16;
enemies = 1;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 475;
_root.player._y = 75;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 8;
objects = 1;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 15);
Instance of Symbol 60 MovieClip in Frame 39
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 39
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 164 MovieClip "transport1" in Frame 39
onClipEvent (load) {
transNum = 1;
transDestination = 2;
}
Instance of Symbol 164 MovieClip "transport2" in Frame 39
onClipEvent (load) {
transNum = 2;
transDestination = 1;
}
Instance of Symbol 164 MovieClip "transport3" in Frame 39
onClipEvent (load) {
transNum = 3;
transDestination = 4;
}
Instance of Symbol 164 MovieClip "transport4" in Frame 39
onClipEvent (load) {
transNum = 4;
transDestination = 3;
}
Instance of Symbol 164 MovieClip "transport5" in Frame 39
onClipEvent (load) {
transNum = 5;
transDestination = 6;
}
Instance of Symbol 164 MovieClip "transport6" in Frame 39
onClipEvent (load) {
transNum = 6;
transDestination = 5;
}
Instance of Symbol 164 MovieClip "transport7" in Frame 39
onClipEvent (load) {
transNum = 7;
transDestination = 8;
}
Instance of Symbol 164 MovieClip "transport8" in Frame 39
onClipEvent (load) {
transNum = 8;
transDestination = 7;
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 39
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 40
nextFrame();
Frame 41
level = 17;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 1;
transportNum = 4;
objects = 10;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 16);
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 164 MovieClip "transport1" in Frame 41
onClipEvent (load) {
transNum = 1;
transDestination = 2;
}
Instance of Symbol 164 MovieClip "transport2" in Frame 41
onClipEvent (load) {
transNum = 2;
transDestination = 1;
}
Instance of Symbol 431 MovieClip "object10" in Frame 41
onClipEvent (load) {
breaking = false;
dead = false;
xMove = 0;
yMove = 0;
weight = 1;
}
onClipEvent (enterFrame) {
if (xMove > 0) {
this._x = this._x + (xMove * weight);
xMove = xMove - 4;
} else {
xMove = 0;
}
if (yMove > 0) {
this._y = this._y + (yMove * weight);
yMove = yMove - 4;
} else {
yMove = 0;
}
if (breaking == false) {
if (direction == "right") {
this._x = this._x + 0.5;
} else if (direction == "left") {
this._x = this._x - 0.5;
this._rotation = 180;
} else if (direction == "down") {
this._y = this._y + 0.5;
this._rotation = 90;
} else if (direction == "up") {
this._y = this._y - 0.5;
this._rotation = 270;
}
}
}
Instance of Symbol 229 MovieClip "switch1" in Frame 41
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 3;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 164 MovieClip "transport3" in Frame 41
onClipEvent (load) {
transNum = 3;
transDestination = 4;
}
Instance of Symbol 164 MovieClip "transport4" in Frame 41
onClipEvent (load) {
transNum = 4;
transDestination = 3;
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 41
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 6;
firingRate = 6;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 41
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 20;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 401 MovieClip "object3" in Frame 41
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._y < 540) {
this._y = this._y + 2;
} else {
reverse = true;
activate = false;
}
} else if (this._y > 460) {
this._y = this._y - 2;
} else {
reverse = false;
activate = false;
}
}
}
Frame 42
nextFrame();
Frame 43
level = 18;
enemies = 1;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 450;
_root.player._y = 475;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 2;
switchNum = 1;
transportNum = 0;
objects = 4;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 17);
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 43
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 43
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 229 MovieClip "switch1" in Frame 43
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 1;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 43
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 7;
firingRate = 7;
}
reset();
respawn();
firingRate = 0;
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 399 MovieClip "object1" in Frame 43
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._x > 206) {
this._x = this._x - 2;
} else {
reverse = true;
activate = false;
}
} else if (this._x < 275) {
this._x = this._x + 2;
} else {
reverse = false;
activate = false;
}
}
}
Frame 44
nextFrame();
Frame 45
level = 19;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 450;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 2;
transportNum = 2;
objects = 6;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 18);
Instance of Symbol 60 MovieClip in Frame 45
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 45
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 45
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 164 MovieClip "transport2" in Frame 45
onClipEvent (load) {
transNum = 2;
transDestination = 1;
}
Instance of Symbol 164 MovieClip "transport1" in Frame 45
onClipEvent (load) {
transNum = 1;
transDestination = 2;
}
Instance of Symbol 229 MovieClip "switch2" in Frame 45
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 6;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 229 MovieClip "switch1" in Frame 45
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 5;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 45
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 20;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 45
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 20;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 401 MovieClip "object5" in Frame 45
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._y < 586) {
this._y = this._y + 2;
} else {
reverse = true;
activate = false;
}
} else if (this._y > 412) {
this._y = this._y - 2;
} else {
reverse = false;
activate = false;
}
}
}
Instance of Symbol 401 MovieClip "object6" in Frame 45
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._y < 586) {
this._y = this._y + 2;
} else {
reverse = true;
activate = false;
}
} else if (this._y > 412) {
this._y = this._y - 2;
} else {
reverse = false;
activate = false;
}
}
}
Frame 46
nextFrame();
Frame 47
level = 20;
enemies = 8;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 275;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 0;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 19);
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy7" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 7;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy5" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 5;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy8" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 8;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy6" in Frame 47
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 6;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 48
nextFrame();
Frame 49
level = 21;
enemies = 1;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 306;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 18;
switchNum = 0;
transportNum = 0;
objects = 1;
teleportOrder = 0;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 20);
Instance of Symbol 60 MovieClip in Frame 49
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 418 MovieClip "teleport5" in Frame 49
onClipEvent (load) {
padNum = 5;
padDestination = 9;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
if (_root.teleportOrder == 0) {
_root.tick.nextFrame();
_root.teleportOrder++;
} else {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
}
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
_root.teleportOrder = 1;
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 49
onClipEvent (load) {
padNum = 1;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport6" in Frame 49
onClipEvent (load) {
padNum = 6;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport8" in Frame 49
onClipEvent (load) {
padNum = 8;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
if (_root.teleportOrder == 1) {
_root.tick.nextFrame();
_root.teleportOrder++;
} else {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
}
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport11" in Frame 49
onClipEvent (load) {
padNum = 11;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
if (_root.teleportOrder == 2) {
_root.tick.nextFrame();
_root.teleportOrder++;
} else {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
}
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport13" in Frame 49
onClipEvent (load) {
padNum = 13;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport14" in Frame 49
onClipEvent (load) {
padNum = 14;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport15" in Frame 49
onClipEvent (load) {
padNum = 15;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport16" in Frame 49
onClipEvent (load) {
padNum = 16;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport7" in Frame 49
onClipEvent (load) {
padNum = 7;
padDestination = 9;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport10" in Frame 49
onClipEvent (load) {
padNum = 10;
padDestination = 9;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport12" in Frame 49
onClipEvent (load) {
padNum = 12;
padDestination = 9;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
if (_root.teleportOrder == 3) {
_root.tick.nextFrame();
_root.teleportOrder++;
} else {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
}
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport17" in Frame 49
onClipEvent (load) {
padNum = 17;
padDestination = 9;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 49
onClipEvent (load) {
padNum = 2;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport3" in Frame 49
onClipEvent (load) {
padNum = 3;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
if (_root.teleportOrder == 4) {
_root.tick.nextFrame();
_root.teleportOrder++;
padDestination = 18;
} else {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
}
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport18" in Frame 49
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport4" in Frame 49
onClipEvent (load) {
padNum = 4;
padDestination = 9;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.tick.gotoAndStop(1);
_root.teleportOrder = 0;
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport9" in Frame 49
onClipEvent (load) {
padNum = 9;
hit = false;
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 49
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 5;
firingRate = 100000 /* 0x0186A0 */;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 0;
deg = 0;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 50
nextFrame();
Frame 51
level = 22;
enemies = 2;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 100;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 2;
transportNum = 2;
objects = 10;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 21);
Instance of Symbol 60 MovieClip in Frame 51
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 51
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 51
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 51
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 60 MovieClip in Frame 51
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 431 MovieClip "object7" in Frame 51
onClipEvent (load) {
breaking = false;
dead = false;
xMove = 0;
yMove = 0;
weight = 1;
}
onClipEvent (enterFrame) {
if (xMove > 0) {
if (xMove > 4) {
this._x = this._x + (xMove * weight);
xMove = xMove - 4;
} else {
xMove = 0;
}
} else if (xMove < 0) {
if (xMove < -4) {
this._x = this._x + (xMove * weight);
xMove = xMove + 4;
} else {
xMove = 0;
}
}
if (yMove > 0) {
if (yMove > 4) {
this._y = this._y + (yMove * weight);
yMove = yMove - 4;
} else {
yMove = 0;
}
} else if (yMove < 0) {
if (yMove < -4) {
this._y = this._y + (yMove * weight);
yMove = yMove + 4;
}
} else {
yMove = 0;
}
if (breaking == false) {
if (direction == "right") {
this._x = this._x + 0.5;
} else if (direction == "left") {
this._x = this._x - 0.5;
this._rotation = 180;
} else if (direction == "down") {
this._y = this._y + 0.5;
this._rotation = 90;
} else if (direction == "up") {
this._y = this._y - 0.5;
this._rotation = 270;
}
}
}
Instance of Symbol 229 MovieClip "switch1" in Frame 51
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 1;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 229 MovieClip "switch2" in Frame 51
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 10;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
if (_root["object" + objectNum].activate == false) {
this.play();
if (color == "red") {
_root["object" + objectNum].activate = true;
switchOn = false;
} else if (color == "green") {
_root["object" + objectNum].activate = true;
switchOn = false;
}
} else {
switchOn = false;
}
}
}
Instance of Symbol 164 MovieClip "transport2" in Frame 51
onClipEvent (load) {
transNum = 2;
transDestination = 1;
}
Instance of Symbol 164 MovieClip "transport1" in Frame 51
onClipEvent (load) {
transNum = 1;
transDestination = 2;
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 51
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 15;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 51
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 30;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 180;
deg = 180;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 399 MovieClip "object1" in Frame 51
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._x > 80) {
this._x = this._x - 2;
} else {
reverse = true;
activate = false;
}
} else if (this._x < 130) {
this._x = this._x + 2;
} else {
reverse = false;
activate = false;
}
}
}
Instance of Symbol 399 MovieClip "object10" in Frame 51
onClipEvent (load) {
activate = false;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._y < 276) {
this._y = this._y + 2;
} else {
reverse = true;
activate = false;
}
} else if (this._y > 184) {
this._y = this._y - 2;
} else {
reverse = false;
activate = false;
}
}
}
Frame 52
nextFrame();
Frame 53
level = 23;
enemies = 4;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 75;
_root.player._y = 75;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 2;
switchNum = 1;
transportNum = 4;
objects = 6;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 22);
Instance of Symbol 60 MovieClip in Frame 53
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 60 MovieClip in Frame 53
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 53
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 60 MovieClip in Frame 53
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 418 MovieClip "teleport1" in Frame 53
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 418 MovieClip "teleport2" in Frame 53
onClipEvent (load) {
padNum = 2;
padDestination = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 412 MovieClip "well2" in Frame 53
onClipEvent (load) {
playerGet = false;
used = true;
timer = 0;
this._visible = false;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 75;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 1.33333333333333;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 412 MovieClip "well1" in Frame 53
onClipEvent (load) {
playerGet = false;
used = true;
timer = 0;
this._visible = false;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 75;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 1.33333333333333;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 412 MovieClip "well4" in Frame 53
onClipEvent (load) {
playerGet = false;
used = true;
timer = 0;
this._visible = false;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 75;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 1.33333333333333;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 412 MovieClip "well3" in Frame 53
onClipEvent (load) {
playerGet = false;
used = true;
timer = 0;
this._visible = false;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) and (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._x = this._x;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 75;
_root.playSound("lock");
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - 1.33333333333333;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 229 MovieClip "switch1" in Frame 53
onClipEvent (load) {
switchOn = false;
color = "red";
objectNum = 1;
}
onClipEvent (enterFrame) {
if (switchOn == true) {
this.play();
if (color == "red") {
i = 1;
while (i <= 4) {
_root["well" + i].used = false;
_root["well" + i]._visible = true;
_root["well" + i].glow._visible = true;
i++;
}
switchOn = false;
} else if (color == "green") {
i = 1;
while (i <= 4) {
_root["well" + i].used = true;
_root["well" + i]._visible = false;
i++;
}
switchOn = false;
}
} else {
switchOn = false;
}
}
Instance of Symbol 164 MovieClip "transport2" in Frame 53
onClipEvent (load) {
transNum = 2;
transDestination = 1;
}
Instance of Symbol 164 MovieClip "transport1" in Frame 53
onClipEvent (load) {
transNum = 1;
transDestination = 2;
}
Instance of Symbol 164 MovieClip "transport3" in Frame 53
onClipEvent (load) {
transNum = 3;
transDestination = 4;
}
Instance of Symbol 164 MovieClip "transport4" in Frame 53
onClipEvent (load) {
transNum = 4;
transDestination = 3;
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 53
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 5;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 270;
deg = 270;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 53
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 5;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 53
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 5;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 53
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 5;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 270;
deg = 270;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 54
nextFrame();
Frame 55
level = 24;
enemies = 3;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 450;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 0;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 23);
Instance of Symbol 60 MovieClip in Frame 55
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 55
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 20;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._x < 475) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 75) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy2" in Frame 55
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 20;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._x < 475) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 75) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 55
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 20;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._x < 475) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 75) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 56
nextFrame();
Frame 57
level = 25;
enemies = 12;
enemyNum = enemies;
enemyN = 51;
_root.player.n = 500;
_root.player._x = 275;
_root.player._y = 275;
_root.player.reset();
_root.transition._x = _root.player._x;
_root.transition._y = _root.player._y;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
objects = 0;
if (_root.n3wton.data.level < _root.level) {
_root.n3wton.data.level = _root.level;
}
_root.kongregateStats.submit("HighestLevelCompleted", 24);
Instance of Symbol 99 MovieClip "enemy2" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._x < 475) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 75) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy11" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 11;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._x < 475) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 75) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy5" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 5;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._y < 475) {
this._y = this._y + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._y > 75) {
this._y = this._y - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy8" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 8;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._y < 475) {
this._y = this._y + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._y > 75) {
this._y = this._y - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy6" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 6;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._y < 400) {
this._y = this._y + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._y > 150) {
this._y = this._y - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy7" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 7;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._y < 400) {
this._y = this._y + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._y > 150) {
this._y = this._y - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy4" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._x < 400) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 150) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy10" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 10;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.pauseScreen.paused == false) {
if (dead == false) {
if (reverse == false) {
if (this._x < 400) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 150) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 99 MovieClip "enemy1" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy3" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy9" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 9;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Instance of Symbol 99 MovieClip "enemy12" in Frame 57
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 12;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(50) + 25;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
Frame 58
name = "Your Name";
enemyNum = 1;
_root.n3wton.data.score = 0;
_root.n3wton.data.continueGame = false;
_root.kongregateStats.submit("HighestLevelCompleted", 25);
Symbol 26 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 27 MovieClip [[NGL]_LOADER] Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 27 MovieClip [[NGL]_LOADER] Frame 2
gotoAndPlay (1);
Symbol 468 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 32 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=N3wton", "_blank");
}
Symbol 58 MovieClip Frame 124
_root.nextFrame();
Symbol 88 MovieClip Frame 20
stop();
Symbol 91 MovieClip Frame 1
Symbol 98 MovieClip Frame 1
_root.playSound("explosion");
Symbol 98 MovieClip Frame 11
stop();
_root.enemyNum--;
Symbol 99 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip "charge" in Symbol 99 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.pauseScreen.paused == true) or (_root.player.transition == true)) {
this.stop();
} else {
this.play();
}
}
Symbol 99 MovieClip Frame 3
Instance of Symbol 91 MovieClip in Symbol 99 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._xscale > 50) {
this._rotation = this._rotation + 20;
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
} else {
_parent.gotoAndStop(4);
}
}
Symbol 99 MovieClip Frame 4
explode = true;
Symbol 104 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=N3wton", "_blank");
}
Symbol 114 Button
on (release) {
_root.transition.play();
_root.transition.destination = 3;
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 118 Button
on (release) {
_root.transition.play();
_root.transition.destination = 2;
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 123 Button
on (release) {
_root.transition.play();
_root.transition.destination = 6;
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 127 Button
on (release) {
_root.transition.play();
_root.transition.destination = 4;
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 131 Button
on (release) {
getURL ("http://rankz.armorbot.com/n3wton/", "_blank");
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 160 MovieClip Frame 1
stop();
playing = false;
this._visible = false;
Symbol 160 MovieClip Frame 2
i = 1;
while (i <= 1000) {
_root["enemyBall" + i].removeMovieClip();
i++;
}
playing = true;
this._visible = true;
Symbol 160 MovieClip Frame 25
if (destination == 1) {
_root.gotoAndStop("game");
} else if (destination == 2) {
_root.gotoAndStop("credits");
} else if (destination == 0) {
_root.gotoAndStop("menu");
} else if (destination == 3) {
_root.gotoAndStop("instructions");
} else if (destination == 4) {
_root.gotoAndStop("options");
} else if (destination == 5) {
level = _root.n3wton.data.lastLevel;
_root.gotoAndStop("level" + level);
} else if (destination == 6) {
_root.gotoAndStop("levelSelect");
} else if (destination == 7) {
_root.gotoAndStop("level" + level);
}
Symbol 160 MovieClip Frame 55
this.gotoAndStop(1);
Symbol 168 Button
on (release) {
_root.transition.play();
_root.transition.destination = 0;
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 174 Button
on (release) {
if (_root.n3wton.data.continueGame == true) {
_root.warning.nextFrame();
} else {
_root.transition.play();
_root.transition.destination = 1;
stopAllSounds();
_root.onMainMenu = false;
}
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 179 Button
on (release) {
_root.score = _root.n3wton.data.score;
_root.transition.play();
_root.transition.destination = 5;
stopAllSounds();
_root.onMainMenu = false;
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 188 Button
on (release) {
_root.n3wton.data.continueGame = false;
_root.transition.play();
_root.transition.destination = 1;
stopAllSounds();
prevFrame();
}
Symbol 191 Button
on (release) {
prevFrame();
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
_root.playSound("pause");
Symbol 196 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
color = "red";
Symbol 229 MovieClip Frame 2
_root.playSound("switch");
Symbol 229 MovieClip Frame 10
stop();
color = "green";
Symbol 229 MovieClip Frame 11
_root.playSound("switch");
Symbol 229 MovieClip Frame 20
gotoAndStop (1);
Symbol 231 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
stop();
Instance of Symbol 285 MovieClip "slider" in Symbol 286 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag(false, 0, -13.3, 200, -13.3);
}
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Symbol 292 Button
on (release) {
_root._quality = "LOW";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 295 Button
on (release) {
_root._quality = "MEDIUM";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 298 Button
on (release) {
_root._quality = "HIGH";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 303 MovieClip Frame 1
stop();
_root.musicMute = false;
Symbol 303 MovieClip Frame 2
_root.musicMute = true;
Symbol 304 MovieClip Frame 1
stop();
_root.soundMute = false;
Symbol 304 MovieClip Frame 2
_root.soundMute = true;
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 15
gotoAndStop (1);
Instance of Symbol 319 MovieClip in Symbol 330 MovieClip Frame 51
onClipEvent (enterFrame) {
this.play();
}
Symbol 330 MovieClip Frame 231
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 51
gotoAndStop (1);
Symbol 352 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 20
stop();
Symbol 377 MovieClip Frame 1
_root.playSound("explosion");
Symbol 377 MovieClip Frame 11
stop();
_root.transition.playerDead = true;
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 376 MovieClip in Symbol 378 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._xscale > 50) {
this._rotation = this._rotation + 20;
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
} else {
_parent.gotoAndStop(4);
}
}
Symbol 378 MovieClip Frame 4
explode = true;
Symbol 380 MovieClip Frame 1
stop();
playing = false;
Symbol 380 MovieClip Frame 2
_root.player.transition = true;
i = 1;
while (i <= 1000) {
_root["ball" + i].removeMovieClip();
_root["enemyBall" + i].removeMovieClip();
i++;
}
playing = true;
this._visible = true;
Symbol 380 MovieClip Frame 24
if (_root.practice == true) {
stopAllSounds();
_root.gotoAndStop("levelSelect");
} else if (playerDead == true) {
_root.prevFrame();
_root.bonus = 0;
} else {
_root.nextFrame();
_root.score = _root.score + (_root.bonus + 500);
_root.bonus = 500;
}
Symbol 380 MovieClip Frame 25
play();
Symbol 380 MovieClip Frame 30
shrink = false;
Symbol 380 MovieClip Frame 52
reset();
_root.player.transition = false;
_root.levelText.play();
playerDead = false;
this._visible = false;
this.gotoAndStop(1);
Symbol 384 MovieClip Frame 15
seeking = true;
Symbol 384 MovieClip Frame 40
stop();
_root.player.transition = false;
_root.player._visible = true;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
_root.player.recoilSpeed = 0;
i = 1;
while (i <= 50) {
_root["particle" + i].removeMovieClip();
i++;
}
Symbol 387 Button
on (release) {
if (_root.practice == false) {
nextFrame();
} else {
stopAllSounds();
paused = false;
gotoAndStop (1);
_root.gotoAndStop("levelSelect");
}
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 393 Button
on (release) {
i = 1;
while (i <= 1000) {
_root["ball" + i].removeMovieClip();
_root["enemyBall" + i].removeMovieClip();
_root["particle" + i].removeMovieClip();
i++;
}
_root.n3wton.data.lastLevel = _root.level;
_root.n3wton.data.score = _root.score;
_root.n3wton.data.continueGame = true;
stopAllSounds();
paused = false;
_root.gotoAndStop("menu");
gotoAndStop (1);
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 396 Button
on (release) {
i = 1;
while (i <= 1000) {
_root["ball" + i].removeMovieClip();
_root["enemyBall" + i].removeMovieClip();
_root["particle" + i].removeMovieClip();
i++;
}
stopAllSounds();
_root.gotoAndStop("menu");
paused = false;
gotoAndStop (1);
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 397 MovieClip Frame 1
stop();
i = 1;
while (i <= 1000) {
_root["ball" + i]._visible = true;
_root["enemyBall" + i]._visible = true;
_root["particle" + i]._visible = false;
i++;
}
Symbol 397 MovieClip Frame 2
i = 1;
while (i <= 1000) {
_root["ball" + i]._visible = false;
_root["enemyBall" + i]._visible = false;
_root["particle" + i]._visible = false;
i++;
}
Instance of Symbol 286 MovieClip in Symbol 397 MovieClip Frame 2
onClipEvent (load) {
if (_root.gameVolume > 0) {
this.slider._x = _root.gameVolume * 2;
}
}
onClipEvent (enterFrame) {
_root.gameVolume = Math.ceil(this.slider._x / 2);
_root.codeClip.gameMusic.setVolume(_root.gameVolume);
}
Instance of Symbol 303 MovieClip in Symbol 397 MovieClip Frame 2
onClipEvent (load) {
if (_root.musicMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.musicMute == false) {
this.nextFrame();
_root.codeClip.gameMusic.stop();
} else {
this.prevFrame();
_root.codeClip.gameMusic.start(0, 1000);
}
}
}
Instance of Symbol 304 MovieClip in Symbol 397 MovieClip Frame 2
onClipEvent (load) {
if (_root.soundMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.soundMute == false) {
this.nextFrame();
} else {
this.prevFrame();
}
}
}
Instance of Symbol 226 MovieClip "sideBottom" in Symbol 399 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y + (_parent._height / 2)) + 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y + (_parent._height / 2)) + 13;
_root["enemy" + i].ySpeed = 0;
}
i++;
}
}
Instance of Symbol 226 MovieClip "sideTop" in Symbol 399 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y - (_parent._height / 2)) - 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y - (_parent._height / 2)) - 13;
_root["enemy" + i].ySpeed = 0;
}
i++;
}
}
Instance of Symbol 226 MovieClip "sideLeft" in Symbol 399 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x - (_parent._width / 2)) - 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x - (_parent._width / 2)) - 13;
_root["enemy" + i].xSpeed = 0;
}
i++;
}
}
Instance of Symbol 226 MovieClip "sideRight" in Symbol 399 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x + (_parent._width / 2)) + 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x + (_parent._width / 2)) + 13;
_root["enemy" + i].xSpeed = 0;
}
i++;
}
}
Instance of Symbol 226 MovieClip "sideBottom" in Symbol 401 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y + (_parent._height / 2)) + 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y + (_parent._height / 2)) + 13;
}
i++;
}
}
Instance of Symbol 226 MovieClip "sideTop" in Symbol 401 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y - (_parent._height / 2)) - 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y - (_parent._height / 2)) - 13;
}
i++;
}
}
Instance of Symbol 226 MovieClip "sideLeft" in Symbol 401 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x - (_parent._width / 2)) - 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i].xSpeed = 0;
_root["enemy" + i]._x = (_parent._x - (_parent._width / 2)) - 13;
}
i++;
}
}
Instance of Symbol 226 MovieClip "sideRight" in Symbol 401 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x + (_parent._width / 2)) + 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x + (_parent._width / 2)) + 13;
}
i++;
}
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 11
gotoAndPlay (2);
Symbol 430 MovieClip Frame 25
stop();
Symbol 431 MovieClip Frame 1
stop();
Instance of Symbol 226 MovieClip "sideBottom" in Symbol 431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y + (_parent._height / 2)) + 13;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y + (_parent._height / 2)) + 13;
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideTop)) {
_parent.yMove = 0;
}
n++;
}
}
Instance of Symbol 226 MovieClip "sideTop" in Symbol 431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y - (_parent._height / 2)) - 13;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y - (_parent._height / 2)) - 13;
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideBottom)) {
_parent.yMove = 0;
}
n++;
}
}
Instance of Symbol 226 MovieClip "sideLeft" in Symbol 431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x - (_parent._width / 2)) - 13;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x - (_parent._width / 2)) - 13;
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideRight)) {
_parent.xMove = 0;
}
n++;
}
}
Instance of Symbol 226 MovieClip "sideRight" in Symbol 431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x + (_parent._width / 2)) + 13;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x + (_parent._width / 2)) + 13;
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideLeft)) {
_parent.xMove = 0;
}
n++;
}
}
Instance of Symbol 423 MovieClip in Symbol 431 MovieClip Frame 2
onClipEvent (enterFrame) {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
if (this._xscale <= 50) {
_parent.nextFrame();
}
}
Symbol 431 MovieClip Frame 3
breaking = true;
_root.playSound("crateBreak");
Symbol 448 MovieClip Frame 7
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 6
stop();
Symbol 459 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 462 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
play();
_root.kongregateScores.submit(_root.score);
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTc4MGolZSVhJW4lcw==", "VWRIeVZXck4=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 28
stop();