Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("38c95f4c", this, 10301, true);
Frame 2
stop();
Frame 3
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
function createEnemy(thishp) {
var _local3 = _root.randRange(1, 4);
if (_local3 == 1) {
_local3 = 20;
}
if (_local3 == 2) {
_local3 = 75;
}
if (_local3 == 3) {
_local3 = 135;
}
if (_local3 == 4) {
_local3 = 195;
}
var _local2 = _root.randRange(1, 4);
if (_local2 == 1) {
_local2 = 330;
}
if (_local2 == 2) {
_local2 = 270;
}
if (_local2 == 3) {
_local2 = 210;
}
if (_local2 == 4) {
_local2 = 150;
}
_root.attachMovie("enemy", "enemy" + q, 10 + q);
_root["enemy" + q]._x = _local3;
_root["enemy" + q]._y = _local2;
_root["enemy" + q].hp = thishp;
q++;
}
function createEnemy2(thishp) {
var _local3 = _root.randRange(1, 4);
if (_local3 == 1) {
_local3 = 20;
}
if (_local3 == 2) {
_local3 = 75;
}
if (_local3 == 3) {
_local3 = 135;
}
if (_local3 == 4) {
_local3 = 195;
}
var _local2 = _root.randRange(1, 4);
if (_local2 == 1) {
_local2 = 330;
}
if (_local2 == 2) {
_local2 = 270;
}
if (_local2 == 3) {
_local2 = 210;
}
if (_local2 == 4) {
_local2 = 150;
}
_root.attachMovie("enemy2", "enemy" + q, 10 + q);
_root["enemy" + q]._x = _local3;
_root["enemy" + q]._y = _local2;
_root["enemy" + q].hp = thishp;
q++;
}
function createBEnemy(thishp) {
var _local3 = _root.randRange(1, 4);
if (_local3 == 1) {
_local3 = 20;
}
if (_local3 == 2) {
_local3 = 75;
}
if (_local3 == 3) {
_local3 = 135;
}
if (_local3 == 4) {
_local3 = 195;
}
var _local2 = _root.randRange(1, 4);
if (_local2 == 1) {
_local2 = 330;
}
if (_local2 == 2) {
_local2 = 270;
}
if (_local2 == 3) {
_local2 = 210;
}
if (_local2 == 4) {
_local2 = 150;
}
_root.attachMovie("enemyb", "enemy" + q, 10 + q);
_root["enemy" + q]._x = _local3;
_root["enemy" + q]._y = _local2;
_root["enemy" + q].hp = thishp;
q++;
}
function createEnemy3(thishp) {
var _local3 = _root.randRange(1, 4);
if (_local3 == 1) {
_local3 = 20;
}
if (_local3 == 2) {
_local3 = 75;
}
if (_local3 == 3) {
_local3 = 135;
}
if (_local3 == 4) {
_local3 = 195;
}
var _local2 = _root.randRange(1, 4);
if (_local2 == 1) {
_local2 = 330;
}
if (_local2 == 2) {
_local2 = 270;
}
if (_local2 == 3) {
_local2 = 210;
}
if (_local2 == 4) {
_local2 = 150;
}
_root.attachMovie("enemy3", "enemy" + q, 10 + q);
_root["enemy" + q]._x = _local3;
_root["enemy" + q]._y = _local2;
_root["enemy" + q].hp = thishp;
q++;
}
function createEnemy4(thishp) {
var _local3 = _root.randRange(1, 4);
if (_local3 == 1) {
_local3 = 20;
}
if (_local3 == 2) {
_local3 = 75;
}
if (_local3 == 3) {
_local3 = 135;
}
if (_local3 == 4) {
_local3 = 195;
}
var _local2 = _root.randRange(1, 4);
if (_local2 == 1) {
_local2 = 330;
}
if (_local2 == 2) {
_local2 = 270;
}
if (_local2 == 3) {
_local2 = 210;
}
if (_local2 == 4) {
_local2 = 150;
}
_root.attachMovie("enemy4", "enemy" + q, 10 + q);
_root["enemy" + q]._x = _local3;
_root["enemy" + q]._y = _local2;
_root["enemy" + q].hp = thishp;
q++;
}
function createEnemy5(thishp) {
var _local3 = _root.randRange(1, 4);
if (_local3 == 1) {
_local3 = 20;
}
if (_local3 == 2) {
_local3 = 75;
}
if (_local3 == 3) {
_local3 = 135;
}
if (_local3 == 4) {
_local3 = 195;
}
var _local2 = _root.randRange(1, 4);
if (_local2 == 1) {
_local2 = 330;
}
if (_local2 == 2) {
_local2 = 270;
}
if (_local2 == 3) {
_local2 = 210;
}
if (_local2 == 4) {
_local2 = 150;
}
_root.attachMovie("enemy5", "enemy" + q, 10 + q);
_root["enemy" + q]._x = _local3;
_root["enemy" + q]._y = _local2;
_root["enemy" + q].hp = thishp;
q++;
}
stop();
var gameplaying = true;
var upgradecur = _root.randRange(2, 5);
var speed = 5;
var bspeed = 5;
var zup = true;
var bout = false;
var down = false;
var up = false;
var left = false;
var right = false;
var qup = true;
var score = 0;
var q = 0;
var enemynum = 0;
var weaponstrength = 1;
var lives = 20;
var longshot = false;
var assassin = false;
var curlevel = 1;
var leveledup = false;
var curqual = 1;
_root.onMouseDown = function () {
if (bout == false) {
assassin = false;
longshot = false;
_root.attachMovie("bullet", "bullet1", 100);
_root.bullet1._x = _root.cbase._x;
_root.bullet1._y = _root.cbase._y;
_root.bullet1._rotation = _root.cannon._rotation;
bout = true;
}
};
this.onEnterFrame = function () {
if ((_root.lives <= 0) && (gameplaying == true)) {
_root.bout = true;
_root.attachMovie("egamescreen", "deadscreen", 1000001);
_root.deadscreen._x = 0;
_root.deadscreen._y = 0;
gameplaying = false;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_root.cbase._x = _root.cbase._x + _root.speed;
_root.cannon._x = _root.cannon._x + _root.speed;
right = true;
}
if ((!Key.isDown(39)) && (!Key.isDown(68))) {
right = false;
}
if (Key.isDown(37) || (Key.isDown(65))) {
_root.cbase._x = _root.cbase._x - _root.speed;
_root.cannon._x = _root.cannon._x - _root.speed;
left = true;
}
if ((!Key.isDown(37)) && (!Key.isDown(65))) {
left = false;
}
if (Key.isDown(38) || (Key.isDown(87))) {
_root.cbase._y = _root.cbase._y - _root.speed;
_root.cannon._y = _root.cannon._y - _root.speed;
up = true;
}
if ((!Key.isDown(38)) && (!Key.isDown(87))) {
up = false;
}
if (Key.isDown(40) || (Key.isDown(83))) {
_root.cbase._y = _root.cbase._y + _root.speed;
_root.cannon._y = _root.cannon._y + _root.speed;
down = true;
}
if ((!Key.isDown(40)) && (!Key.isDown(83))) {
down = false;
}
xDistance = _root._xmouse - cbase._x;
yDistance = _root._ymouse - cbase._y;
normalise = Math.abs(xDistance) + Math.abs(yDistance);
if ((xDistance >= 0) & (yDistance >= 0)) {
mouseDirection = 90 * (yDistance / normalise);
} else if ((xDistance <= 0) && (yDistance >= 0)) {
mouseDirection = (-90 * (xDistance / normalise)) + 90;
} else if ((xDistance <= 0) && (yDistance <= 0)) {
mouseDirection = (-90 * (yDistance / normalise)) + 180;
} else {
mouseDirection = (90 * (xDistance / normalise)) + 270;
}
cannon._rotation = mouseDirection;
xDistance = mouseTarget._x - cbase._x;
yDistance = mouseTarget._y - cbase._y;
normalise = Math.abs(xDistance) + Math.abs(yDistance);
if ((xDistance >= 0) & (yDistance >= 0)) {
mouseDirection = 90 * (yDistance / normalise);
} else if ((xDistance <= 0) && (yDistance >= 0)) {
mouseDirection = (-90 * (xDistance / normalise)) + 90;
} else if ((xDistance <= 0) && (yDistance <= 0)) {
mouseDirection = (-90 * (yDistance / normalise)) + 180;
} else {
mouseDirection = (90 * (xDistance / normalise)) + 270;
}
};
var keyListener_obj = new Object();
keyListener_obj.onKeyDown = function () {
if (Key.isDown(90)) {
if ((_root.song._currentframe == 1) && (zup == true)) {
_root.song.gotoAndStop(2);
zup = false;
}
if ((_root.song._currentframe == 2) && (zup == true)) {
_root.song.gotoAndStop(1);
zup = false;
}
}
if (Key.isDown(81)) {
if ((curqual == 1) && (qup == true)) {
qup = false;
curqual = 2;
_quality = "MEDIUM";
}
if ((curqual == 2) && (qup == true)) {
_quality = "LOW";
qup = false;
curqual = 3;
}
if ((curqual == 3) && (qup == true)) {
_quality = "HIGH";
qup = false;
curqual = 1;
}
}
};
keyListener_obj.onKeyUp = function () {
if (!Key.isDown(81)) {
qup = true;
}
if (!Key.isDown(90)) {
zup = true;
}
};
Key.addListener(keyListener_obj);
Symbol 41 MovieClip [bullet] Frame 1
this._rotation = _root.cannon._rotation;
_root.assassin = true;
this.onEnterFrame = function () {
};
Symbol 41 MovieClip [bullet] Frame 4
_root.assassin = false;
Symbol 41 MovieClip [bullet] Frame 28
_root.longshot = true;
Symbol 41 MovieClip [bullet] Frame 41
stop();
_root.bout = false;
this.removeMovieClip();
Symbol 45 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
this._rotation = _root.randRange(1, 360);
Symbol 48 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 49 MovieClip Frame 1
stop();
Symbol 53 MovieClip [enemy] Frame 1
var fired = false;
var lockdir = 0;
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.body.hitTest(_root.bullet1)) {
_root.score = _root.score + 25;
if (_root.longshot == true) {
_root.score = _root.score + 1000;
_root.bonuses.gotoAndPlay("longshot");
}
if (_root.assassin == true) {
_root.score = _root.score + 500;
_root.bonuses.gotoAndPlay("assassin");
}
_root.scoredisp.gotoAndPlay(2);
sgroup.play();
this.hp = this.hp - _root.weaponstrength;
_root.bullet1.removeMovieClip();
_root.bout = false;
}
if (this.hp <= 0) {
if (this._currentframe <= 4) {
_root.lvlmaker.nextFrame();
_root.score = _root.score + 100;
_root.scoredisp.gotoAndPlay(2);
gotoAndPlay ("edeath");
}
}
if (this.hp > 0) {
if (this.range.hitTest(_root.cbase) && (fired == false)) {
var _local5 = this._currentframe;
_root.attachMovie("ebullet", "ebullet" + _root.q, 1000 + _root.q);
_root["ebullet" + _root.q]._x = this._x;
_root["ebullet" + _root.q]._y = this._y;
if (_local5 == 1) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation - 90;
}
if (_local5 == 3) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 90;
}
if (_local5 == 4) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 180;
}
trace((("x= " + _root["ebullet" + _root.q]._x) + " y= ") + _root["ebullet" + _root.q]._y);
_root.q = _root.q + 1;
firetimer.play();
lockdir = direction;
fired = true;
}
if (firetimer._currentframe == 44) {
fired = false;
}
this.gotoAndStop(direction);
if (direction == 1) {
this._y = this._y - 5;
}
if (direction == 2) {
this._x = this._x + 5;
}
if (direction == 3) {
this._y = this._y + 5;
}
if (direction == 4) {
this._x = this._x - 5;
}
if (tu.hitTest(_root.upwall)) {
direction = 3;
}
if (tr.hitTest(_root.rightwall)) {
direction = 4;
}
if (tl.hitTest(_root.leftwall)) {
direction = 2;
}
if (td.hitTest(_root.downwall)) {
direction = 1;
}
var _local4 = _root.randRange(1, 8);
if (_local4 == 1) {
var _local6 = _root.randRange(1, 4);
if (_local6 == direction) {
_local6 = _root.randRange(1, 4);
}
var _local3 = true;
h = 1;
while (h < 50) {
if (this.tl.hitTest(_root["w" + h])) {
_local3 = false;
}
if (this.tu.hitTest(_root["w" + h])) {
}
if (this.td.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
if (this.tr.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
h++;
}
if (_local3 != false) {
direction = _local6;
}
}
}
};
var direction = 1;
Symbol 53 MovieClip [enemy] Frame 15
stop();
_root.enemynum = _root.enemynum - 1;
this.removeMovieClip();
Symbol 55 MovieClip [ebullet] Frame 1
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.hitTest(_root.cbase) && (_root.cbase._currentframe < 5)) {
_root.lives = _root.lives - 1;
_root.scoredisp.gotoAndPlay("livesdisplay");
_root.cbase.gotoAndPlay("death");
this.gotoAndStop(66);
this.removeMovieClip();
}
};
Symbol 55 MovieClip [ebullet] Frame 65
this.removeMovieClip();
Symbol 57 MovieClip [enemy2] Frame 1
var fired = false;
var lockdir = 0;
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.body.hitTest(_root.bullet1)) {
_root.score = _root.score + 25;
if (_root.longshot == true) {
_root.score = _root.score + 1000;
_root.bonuses.gotoAndPlay("longshot");
}
if (_root.assassin == true) {
_root.score = _root.score + 500;
_root.bonuses.gotoAndPlay("assassin");
}
_root.scoredisp.gotoAndPlay(2);
sgroup.play();
this.hp = this.hp - _root.weaponstrength;
_root.bullet1.removeMovieClip();
_root.bout = false;
}
if (this.hp <= 0) {
if (this._currentframe <= 4) {
_root.lvlmaker.nextFrame();
_root.score = _root.score + 200;
_root.scoredisp.gotoAndPlay(2);
gotoAndPlay ("edeath");
}
}
if (this.hp > 0) {
if (this.range.hitTest(_root.cbase) && (fired == false)) {
var _local5 = this._currentframe;
_root.attachMovie("ebullet2", "ebullet" + _root.q, 1000 + _root.q);
_root["ebullet" + _root.q]._x = this._x;
_root["ebullet" + _root.q]._y = this._y;
if (_local5 == 1) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation - 90;
}
if (_local5 == 3) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 90;
}
if (_local5 == 4) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 180;
}
_root.q = _root.q + 1;
firetimer.play();
lockdir = direction;
fired = true;
}
if (firetimer._currentframe == 22) {
fired = false;
}
this.gotoAndStop(direction);
if (direction == 1) {
this._y = this._y - 10;
}
if (direction == 2) {
this._x = this._x + 10;
}
if (direction == 3) {
this._y = this._y + 10;
}
if (direction == 4) {
this._x = this._x - 10;
}
if (tu.hitTest(_root.upwall)) {
direction = 3;
}
if (tr.hitTest(_root.rightwall)) {
direction = 4;
}
if (tl.hitTest(_root.leftwall)) {
direction = 2;
}
if (td.hitTest(_root.downwall)) {
direction = 1;
}
var _local4 = _root.randRange(1, 1);
if (_local4 == 1) {
var _local6 = _root.randRange(1, 4);
if (_local6 == direction) {
_local6 = _root.randRange(1, 4);
}
var _local3 = true;
h = 1;
while (h < 50) {
if (this.tl.hitTest(_root["w" + h])) {
_local3 = false;
}
if (this.tu.hitTest(_root["w" + h])) {
}
if (this.td.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
if (this.tr.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
h++;
}
if (_local3 != false) {
direction = _local6;
}
}
}
};
var direction = 1;
Symbol 57 MovieClip [enemy2] Frame 15
stop();
_root.enemynum = _root.enemynum - 1;
this.removeMovieClip();
Symbol 58 MovieClip [ebullet2] Frame 1
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.hitTest(_root.cbase) && (_root.cbase._currentframe < 5)) {
_root.lives = _root.lives - 1;
_root.scoredisp.gotoAndPlay("livesdisplay");
_root.cbase.gotoAndPlay("death");
this.gotoAndStop(66);
this.removeMovieClip();
}
};
Symbol 58 MovieClip [ebullet2] Frame 32
this.removeMovieClip();
Symbol 63 MovieClip [enemy3] Frame 1
var fired = false;
var lockdir = 0;
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.body.hitTest(_root.bullet1)) {
_root.score = _root.score + 25;
if (_root.longshot == true) {
_root.score = _root.score + 1000;
_root.bonuses.gotoAndPlay("longshot");
}
if (_root.assassin == true) {
_root.score = _root.score + 500;
_root.bonuses.gotoAndPlay("assassin");
}
_root.scoredisp.gotoAndPlay(2);
sgroup.play();
this.hp = this.hp - _root.weaponstrength;
_root.bullet1.removeMovieClip();
_root.bout = false;
}
if (this.hp <= 0) {
if (this._currentframe <= 4) {
_root.lvlmaker.nextFrame();
_root.score = _root.score + 150;
_root.scoredisp.gotoAndPlay(2);
gotoAndPlay ("edeath");
}
}
if (this.hp > 0) {
if ((this._currentframe == 1) || (this._currentframe == 3)) {
if (_root.randRange(1, 30) == 10) {
_root.attachMovie("enemyb", "enemy" + _root.q, 1000 + _root.q);
_root["enemy" + _root.q]._x = this._x;
_root["enemy" + _root.q]._y = this._y;
_root.q++;
}
}
if (firetimer._currentframe == 22) {
fired = false;
}
this.gotoAndStop(direction);
if (direction == 1) {
this._y = this._y - 3;
}
if (direction == 2) {
this._x = this._x + 3;
}
if (direction == 3) {
this._y = this._y + 3;
}
if (direction == 4) {
this._x = this._x - 3;
}
if (tu.hitTest(_root.upwall)) {
direction = 3;
}
if (tr.hitTest(_root.rightwall)) {
direction = 4;
}
if (tl.hitTest(_root.leftwall)) {
direction = 2;
}
if (td.hitTest(_root.downwall)) {
direction = 1;
}
var _local4 = _root.randRange(1, 1);
if (_local4 == 1) {
var _local5 = _root.randRange(1, 4);
if (_local5 == direction) {
_local5 = _root.randRange(1, 4);
}
var _local3 = true;
h = 1;
while (h < 50) {
if (this.tl.hitTest(_root["w" + h])) {
_local3 = false;
}
if (this.tu.hitTest(_root["w" + h])) {
}
if (this.td.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
if (this.tr.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
h++;
}
if (_local3 != false) {
direction = _local5;
}
}
}
};
var direction = 1;
Symbol 63 MovieClip [enemy3] Frame 15
stop();
_root.enemynum = _root.enemynum - 1;
this.removeMovieClip();
Symbol 64 MovieClip [enemyb] Frame 1
var fired = false;
var lockdir = 0;
var hp = 1;
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.body.hitTest(_root.bullet1)) {
_root.score = _root.score + 25;
if (_root.longshot == true) {
_root.score = _root.score + 1000;
_root.bonuses.gotoAndPlay("longshot");
}
if (_root.assassin == true) {
_root.score = _root.score + 500;
_root.bonuses.gotoAndPlay("assassin");
}
_root.scoredisp.gotoAndPlay(2);
sgroup.play();
this.hp = this.hp - _root.weaponstrength;
_root.bullet1.removeMovieClip();
_root.bout = false;
}
if (this.hp <= 0) {
if (this._currentframe <= 4) {
_root.score = _root.score + 50;
_root.scoredisp.gotoAndPlay(2);
gotoAndPlay ("edeath");
}
}
if (this.hp > 0) {
if (this.range.hitTest(_root.cbase) && (fired == false)) {
var _local5 = this._currentframe;
_root.attachMovie("ebullet", "ebullet" + _root.q, 1000 + _root.q);
_root["ebullet" + _root.q]._x = this._x;
_root["ebullet" + _root.q]._y = this._y;
if (_local5 == 1) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation - 90;
}
if (_local5 == 3) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 90;
}
if (_local5 == 4) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 180;
}
trace((("x= " + _root["ebullet" + _root.q]._x) + " y= ") + _root["ebullet" + _root.q]._y);
_root.q = _root.q + 1;
firetimer.play();
lockdir = direction;
fired = true;
}
if (firetimer._currentframe == 44) {
fired = false;
}
this.gotoAndStop(direction);
if (direction == 1) {
this._y = this._y - 5;
}
if (direction == 2) {
this._x = this._x + 5;
}
if (direction == 3) {
this._y = this._y + 5;
}
if (direction == 4) {
this._x = this._x - 5;
}
if (tu.hitTest(_root.upwall)) {
direction = 3;
}
if (tr.hitTest(_root.rightwall)) {
direction = 4;
}
if (tl.hitTest(_root.leftwall)) {
direction = 2;
}
if (td.hitTest(_root.downwall)) {
direction = 1;
}
var _local4 = _root.randRange(1, 8);
if (_local4 == 1) {
var _local6 = _root.randRange(1, 4);
if (_local6 == direction) {
_local6 = _root.randRange(1, 4);
}
var _local3 = true;
h = 1;
while (h < 50) {
if (this.tl.hitTest(_root["w" + h])) {
_local3 = false;
}
if (this.tu.hitTest(_root["w" + h])) {
}
if (this.td.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
if (this.tr.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
h++;
}
if (_local3 != false) {
direction = _local6;
}
}
}
};
var direction = 1;
Symbol 64 MovieClip [enemyb] Frame 15
stop();
_root.enemynum = _root.enemynum - 1;
this.removeMovieClip();
Symbol 67 MovieClip [enemy4] Frame 1
var fired = false;
var lockdir = 0;
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.body.hitTest(_root.bullet1)) {
_root.score = _root.score + 25;
if (_root.longshot == true) {
_root.score = _root.score + 1000;
_root.bonuses.gotoAndPlay("longshot");
}
if (_root.assassin == true) {
_root.score = _root.score + 500;
_root.bonuses.gotoAndPlay("assassin");
}
_root.scoredisp.gotoAndPlay(2);
sgroup.play();
this.hp = this.hp - _root.weaponstrength;
_root.bullet1.removeMovieClip();
_root.bout = false;
}
if (this.hp <= 0) {
if (this._currentframe <= 4) {
_root.lvlmaker.nextFrame();
_root.score = _root.score + 100;
_root.scoredisp.gotoAndPlay(2);
gotoAndPlay ("edeath");
}
}
if (this.hp > 0) {
if ((this._currentframe == 1) || (this._currentframe == 3)) {
if (_root.randRange(1, 70) == 10) {
_root.attachMovie("enemyb2", "enemy" + _root.q, 1000 + _root.q);
_root["enemy" + _root.q]._x = this._x;
_root["enemy" + _root.q]._y = this._y;
_root.q++;
}
}
if (firetimer._currentframe == 22) {
fired = false;
}
this.gotoAndStop(direction);
if (direction == 1) {
this._y = this._y - 3;
}
if (direction == 2) {
this._x = this._x + 3;
}
if (direction == 3) {
this._y = this._y + 3;
}
if (direction == 4) {
this._x = this._x - 3;
}
if (tu.hitTest(_root.upwall)) {
direction = 3;
}
if (tr.hitTest(_root.rightwall)) {
direction = 4;
}
if (tl.hitTest(_root.leftwall)) {
direction = 2;
}
if (td.hitTest(_root.downwall)) {
direction = 1;
}
var _local4 = _root.randRange(1, 1);
if (_local4 == 1) {
var _local5 = _root.randRange(1, 4);
if (_local5 == direction) {
_local5 = _root.randRange(1, 4);
}
var _local3 = true;
h = 1;
while (h < 50) {
if (this.tl.hitTest(_root["w" + h])) {
_local3 = false;
}
if (this.tu.hitTest(_root["w" + h])) {
}
if (this.td.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
if (this.tr.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
h++;
}
if (_local3 != false) {
direction = _local5;
}
}
}
};
var direction = 1;
Symbol 67 MovieClip [enemy4] Frame 15
stop();
_root.enemynum = _root.enemynum - 1;
this.removeMovieClip();
Symbol 68 MovieClip [enemyb2] Frame 1
var fired = false;
var lockdir = 0;
var hp = 1;
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.body.hitTest(_root.bullet1)) {
_root.score = _root.score + 25;
if (_root.longshot == true) {
_root.score = _root.score + 1000;
_root.bonuses.gotoAndPlay("longshot");
}
if (_root.assassin == true) {
_root.score = _root.score + 500;
_root.bonuses.gotoAndPlay("assassin");
}
_root.scoredisp.gotoAndPlay(2);
sgroup.play();
this.hp = this.hp - _root.weaponstrength;
_root.bullet1.removeMovieClip();
_root.bout = false;
}
if (this.hp <= 0) {
if (this._currentframe <= 4) {
_root.score = _root.score + 50;
_root.scoredisp.gotoAndPlay(2);
gotoAndPlay ("edeath");
}
}
if (this.hp > 0) {
if (this.range.hitTest(_root.cbase) && (fired == false)) {
var _local5 = this._currentframe;
_root.attachMovie("ebullet2", "ebullet" + _root.q, 1000 + _root.q);
_root["ebullet" + _root.q]._x = this._x;
_root["ebullet" + _root.q]._y = this._y;
if (_local5 == 1) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation - 90;
}
if (_local5 == 3) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 90;
}
if (_local5 == 4) {
_root["ebullet" + _root.q]._rotation = _root["ebullet" + _root.q]._rotation + 180;
}
_root.q = _root.q + 1;
firetimer.play();
lockdir = direction;
fired = true;
}
if (firetimer._currentframe == 22) {
fired = false;
}
this.gotoAndStop(direction);
if (direction == 1) {
this._y = this._y - 10;
}
if (direction == 2) {
this._x = this._x + 10;
}
if (direction == 3) {
this._y = this._y + 10;
}
if (direction == 4) {
this._x = this._x - 10;
}
if (tu.hitTest(_root.upwall)) {
direction = 3;
}
if (tr.hitTest(_root.rightwall)) {
direction = 4;
}
if (tl.hitTest(_root.leftwall)) {
direction = 2;
}
if (td.hitTest(_root.downwall)) {
direction = 1;
}
var _local4 = _root.randRange(1, 1);
if (_local4 == 1) {
var _local6 = _root.randRange(1, 4);
if (_local6 == direction) {
_local6 = _root.randRange(1, 4);
}
var _local3 = true;
h = 1;
while (h < 50) {
if (this.tl.hitTest(_root["w" + h])) {
_local3 = false;
}
if (this.tu.hitTest(_root["w" + h])) {
}
if (this.td.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
if (this.tr.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
h++;
}
if (_local3 != false) {
direction = _local6;
}
}
}
};
var direction = 1;
Symbol 68 MovieClip [enemyb2] Frame 15
stop();
_root.enemynum = _root.enemynum - 1;
this.removeMovieClip();
Symbol 77 Button
on (press) {
_root.score = Math.floor(_root.score / 2);
_root.lives = 20;
_root.bout = false;
_root.gameplaying = true;
play();
}
Symbol 78 Button
on (press) {
_root.attachMovie("egame", "egame", 1000003);
_root.egame._x = 0;
_root.egame._y = 0;
this.removeMovieClip();
}
Symbol 79 MovieClip [egamescreen] Frame 21
stop();
Symbol 79 MovieClip [egamescreen] Frame 36
stop();
this.removeMovieClip();
Symbol 81 MovieClip [enemy5] Frame 1
var fired = false;
var lockdir = 0;
this.onEnterFrame = function () {
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (this.body.hitTest(_root.bullet1)) {
_root.score = _root.score + 25;
if (_root.longshot == true) {
_root.score = _root.score + 1000;
_root.bonuses.gotoAndPlay("longshot");
}
if (_root.assassin == true) {
_root.score = _root.score + 500;
_root.bonuses.gotoAndPlay("assassin");
}
_root.scoredisp.gotoAndPlay(2);
sgroup.play();
this.hp = this.hp - _root.weaponstrength;
_root.bullet1.removeMovieClip();
_root.bout = false;
}
if (this.hp <= 0) {
if (this._currentframe <= 4) {
_root.lvlmaker.nextFrame();
_root.score = _root.score + 100;
_root.scoredisp.gotoAndPlay(2);
gotoAndPlay ("edeath");
}
}
if (this.hp > 0) {
if (_root.randRange(1, 20) == 1) {
var _local6 = this._currentframe;
_root.attachMovie("ebullet3", "ebullet" + _root.q, 1000 + _root.q);
_root["ebullet" + _root.q]._x = this._x;
_root["ebullet" + _root.q]._y = this._y;
_root.q = _root.q + 1;
firetimer.play();
lockdir = direction;
fired = true;
}
if (firetimer._currentframe == 44) {
fired = false;
}
this.gotoAndStop(direction);
if (direction == 1) {
this._y = this._y - 5;
}
if (direction == 2) {
this._x = this._x + 5;
}
if (direction == 3) {
this._y = this._y + 5;
}
if (direction == 4) {
this._x = this._x - 5;
}
if (tu.hitTest(_root.upwall)) {
direction = 3;
}
if (tr.hitTest(_root.rightwall)) {
direction = 4;
}
if (tl.hitTest(_root.leftwall)) {
direction = 2;
}
if (td.hitTest(_root.downwall)) {
direction = 1;
}
var _local4 = _root.randRange(1, 8);
if (_local4 == 1) {
var _local5 = _root.randRange(1, 4);
if (_local5 == direction) {
_local5 = _root.randRange(1, 4);
}
var _local3 = true;
h = 1;
while (h < 50) {
if (this.tl.hitTest(_root["w" + h])) {
_local3 = false;
}
if (this.tu.hitTest(_root["w" + h])) {
}
if (this.td.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
if (this.tr.hitTest(_root["w" + h])) {
_local3 = false;
_local4 = 0;
}
h++;
}
if (_local3 != false) {
direction = _local5;
}
}
}
};
var direction = 1;
Symbol 81 MovieClip [enemy5] Frame 15
stop();
_root.enemynum = _root.enemynum - 1;
this.removeMovieClip();
Symbol 82 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_root.cbase) && (_root.cbase._currentframe < 5)) {
_root.lives = _root.lives - 1;
_root.scoredisp.gotoAndPlay("livesdisplay");
_root.cbase.gotoAndPlay("death");
this.gotoAndStop(2);
this.removeMovieClip();
}
};
Symbol 83 MovieClip [ebullet3] Frame 65
this.removeMovieClip();
Symbol 88 Button
on (press) {
_root.gotoAndStop("menu");
this.removeMovieClip();
}
Symbol 92 Button
on (press) {
gamername = nametxt.text;
nukescore = _root.score;
nukename = gamername;
loadVariablesNum ("http://www.flashninjaclan.com/games/circleshooter/newscore.php", 0, "POST");
_root.gotoAndPlay("menu");
this.removeMovieClip();
}
Symbol 93 MovieClip [egame] Frame 1
var gamername = "CircleMastah";
this.onEnterFrame = function () {
scoretxt.text = _root.score;
};
Symbol 93 MovieClip [egame] Frame 50
stop();
Symbol 97 MovieClip [fader] Frame 96
_root.nextFrame();
Symbol 97 MovieClip [fader] Frame 122
stop();
Symbol 104 Button
on (release) {
_root.play();
}
Symbol 105 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 105 MovieClip Frame 2
gotoAndPlay (1);
Symbol 109 Button
on (press) {
_root.getURL("http://www.flashninjaclan.com");
}
Symbol 115 Button
on (press) {
_root.attachMovie("fader", "fader", 100000);
_root.fader._x = 0;
_root.fader._y = 0;
}
Symbol 116 Button
on (press) {
_root.credits.gotoAndStop(2);
}
Symbol 119 Button
on (press) {
getURL ("http://flashtastik.blogspot.com");
}
Symbol 120 Button
on (press) {
getURL ("http://www.newgrounds.com/audio/listen/35000");
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 124 Button
on (press) {
_root.getURL("http://www.flashninjaclan.com/games/circleshooter/topscores.php");
}
Symbol 127 Button
on (press) {
_root.song.gotoAndStop(1);
}
Symbol 128 Button
on (press) {
_root.song.gotoAndStop(2);
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 102
stop();
Symbol 137 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this.scoretxt.text = _root.score;
this.livestxt.text = _root.lives;
};
Symbol 137 MovieClip Frame 35
gotoAndStop (1);
Symbol 137 MovieClip Frame 70
gotoAndStop (1);
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 32
gotoAndStop (1);
Symbol 144 MovieClip Frame 66
gotoAndStop (1);
Symbol 144 MovieClip Frame 100
gotoAndStop (1);
Symbol 144 MovieClip Frame 134
gotoAndStop (1);
Symbol 144 MovieClip Frame 168
gotoAndStop (1);
Symbol 144 MovieClip Frame 202
gotoAndStop (1);
Symbol 147 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.left == true) {
if (this.hitTest(_root.cbase.basec)) {
_root.cbase._x = _root.cbase._x + _root.speed;
_root.cannon._x = _root.cannon._x + _root.speed;
}
}
};
Symbol 153 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.up == true) {
if (this.hitTest(_root.cbase.basec)) {
_root.cbase._y = _root.cbase._y + _root.speed;
_root.cannon._y = _root.cannon._y + _root.speed;
}
}
};
Symbol 155 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.right == true) {
if (this.hitTest(_root.cbase.basec)) {
_root.cbase._x = _root.cbase._x - _root.speed;
_root.cannon._x = _root.cannon._x - _root.speed;
}
}
};
Symbol 157 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.down == true) {
if (this.hitTest(_root.cbase.basec)) {
_root.cbase._y = _root.cbase._y - _root.speed;
_root.cannon._y = _root.cannon._y - _root.speed;
}
}
};
Symbol 158 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.bullet1)) {
_root.bullet1.removeMovieClip();
_root.bout = false;
}
};
Symbol 159 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.bullet1)) {
_root.bullet1.removeMovieClip();
_root.bout = false;
}
};
Symbol 160 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.bullet1)) {
_root.bullet1.removeMovieClip();
_root.bout = false;
}
};
Symbol 161 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.bullet1)) {
_root.bullet1.removeMovieClip();
_root.bout = false;
}
};
Symbol 162 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.bullet1)) {
_root.bullet1.removeMovieClip();
_root.bout = false;
}
};
Symbol 163 MovieClip Frame 1
stop();
_root.createEnemy(3);
Symbol 163 MovieClip Frame 2
_root.createEnemy(3);
_root.createEnemy(3);
_root.createEnemy(3);
Symbol 163 MovieClip Frame 5
_root.createEnemy(5);
_root.createEnemy(5);
_root.createEnemy(5);
Symbol 163 MovieClip Frame 8
_root.createEnemy(5);
_root.createEnemy(5);
_root.createEnemy(5);
_root.createEnemy(5);
_root.createEnemy(5);
Symbol 163 MovieClip Frame 13
_root.createEnemy(30);
Symbol 163 MovieClip Frame 14
_root.createEnemy2(1);
Symbol 163 MovieClip Frame 15
_root.createEnemy2(1);
_root.createEnemy2(1);
_root.createEnemy2(1);
Symbol 163 MovieClip Frame 18
_root.createEnemy2(3);
_root.createEnemy2(3);
_root.createEnemy(3);
_root.createEnemy(3);
Symbol 163 MovieClip Frame 22
_root.createEnemy2(3);
_root.createEnemy2(3);
_root.createEnemy2(3);
_root.createEnemy2(3);
Symbol 163 MovieClip Frame 26
_root.createEnemy2(15);
Symbol 163 MovieClip Frame 27
_root._quality = "Medium";
_root.createEnemy3(10);
_root.createEnemy(5);
Symbol 163 MovieClip Frame 29
_root.createEnemy3(10);
_root.createEnemy3(10);
Symbol 163 MovieClip Frame 31
_root.createEnemy3(10);
_root.createEnemy3(10);
_root.createEnemy2(3);
Symbol 163 MovieClip Frame 34
_root.createEnemy3(50);
Symbol 163 MovieClip Frame 35
_root.createEnemy4(10);
Symbol 163 MovieClip Frame 36
_root.createEnemy4(10);
_root.createEnemy3(10);
Symbol 163 MovieClip Frame 38
_root.createEnemy4(10);
_root.createEnemy(5);
_root.createEnemy2(3);
Symbol 163 MovieClip Frame 41
_root.createEnemy3(50);
_root.createEnemy(50);
_root.createEnemy2(30);
Symbol 163 MovieClip Frame 44
_root.createEnemy5(1);
Symbol 163 MovieClip Frame 45
_root.createEnemy5(1);
_root.createEnemy5(1);
_root.createEnemy5(1);
Symbol 163 MovieClip Frame 48
_root.createEnemy5(5);
_root.createEnemy5(5);
_root.createEnemy5(5);
Symbol 163 MovieClip Frame 51
_root.createEnemy5(5);
_root.createEnemy5(5);
_root.createEnemy5(5);
_root.createEnemy3(5);
_root.createEnemy3(5);
Symbol 163 MovieClip Frame 56
_root.createEnemy5(30);
Symbol 163 MovieClip Frame 57
_root.finallevel.play();
_root.createEnemy5(100);
_root.createEnemy5(100);
_root.createEnemy2(50);
_root.createEnemy(100);
Symbol 163 MovieClip Frame 61
_root.attachMovie("egame", "egame", 1000004);
_root.egame._x = 0;
_root.egame._y = 0;
Symbol 166 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.cbase.basec)) {
_root.bonuses.gotoAndPlay("weaponup");
if (_root.weaponstrength < 3) {
_root.weaponstrength = _root.weaponstrength + 1;
}
_root.upgradecur = _root.randRange(2, 5);
_root.upgrades.gotoAndStop(1);
}
};
Symbol 168 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.cbase.basec)) {
_root.bonuses.gotoAndPlay("speedup");
if (_root.speed < 8) {
_root.speed = _root.speed + 1;
}
_root.upgradecur = _root.randRange(2, 5);
_root.upgrades.gotoAndStop(1);
}
};
Symbol 171 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.cbase.basec)) {
_root.scoredisp.gotoAndPlay("livesdisplay");
_root.bonuses.gotoAndPlay("livesup");
_root.lives = _root.lives + 2;
_root.upgradecur = _root.randRange(2, 5);
_root.upgrades.gotoAndStop(1);
}
};
Symbol 173 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.cbase.basec)) {
_root.scoredisp.gotoAndPlay(2);
_root.bonuses.gotoAndPlay("scoreup");
_root.score = _root.score * 2;
_root.upgradecur = _root.randRange(2, 5);
_root.upgrades.gotoAndStop(1);
}
};
Symbol 174 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.randRange(1, 200) == 1) {
this.gotoAndStop(_root.upgradecur);
}
};
Symbol 177 MovieClip Frame 1
stop();