Frame 1
_xscale = 150;
_yscale = 150;
Frame 3
stopAllSounds();
var t = 150;
intro._alpha = 0;
var num = 0;
onEnterFrame = function () {
t--;
if (num < 100) {
num = num + 2;
intro._alpha = num;
}
if (t == 0) {
gotoAndStop ("menu");
}
};
var DIFFICULTY = 1;
var ctrl = 0;
var uUP = 38;
var uDOWN = 40;
var uLEFT = 37;
var uRIGHT = 39;
var uSHIELD = 65;
var uFIRE = 83;
var uPAUSE = 13;
Frame 4
menu.gotoAndStop("controls");
Frame 5
function initGame() {
attachMovie("Player", "Player", 1001, {_x:-30, _y:110});
var _local2 = attachMovie("pTurbo", "pTurbo", 1000, {_x:-40, _y:100});
mcHPBar = attachMovie("guiHPBar", "guiHPBar", 1101, {_x:0, _y:0});
mcHPBar.gotoAndStop(_root.Player.getHP() + 1);
}
function keylist() {
if (Key.isDown(uUP)) {
if (Player._y > 30) {
Player.pMoveUP();
}
}
if (Key.isDown(uDOWN)) {
if (Player._y < (R_H - 30)) {
Player.pMoveDOWN();
}
}
if (Key.isDown(uLEFT)) {
if (Player._x > 20) {
Player.pMoveLEFT();
}
}
if (Key.isDown(uRIGHT)) {
if (Player._x < (R_W - 40)) {
Player.pMoveRIGHT();
}
}
if (Key.isDown(uSHIELD)) {
if (press1 == false) {
Player.pParry();
press1 = true;
}
} else {
press1 = false;
}
if (Key.isDown(uFIRE)) {
if (GSAY == false) {
Player.pFire();
press2 = true;
} else if (press2 == false) {
if (guiMsgBox.getsaySkip() == false) {
guiMsgBox.setsaySkip(true);
} else {
guiMsgBox.nextSay();
}
press2 = true;
}
} else {
press2 = false;
}
if (Key.isDown(uPAUSE)) {
if (pressA == false) {
if (GPAUSE == 4) {
GPAUSE = 0;
} else if (GPAUSE == 0) {
GPAUSE = 4;
}
pressA = true;
}
} else {
pressA = false;
}
}
function crENE(obj, xpos, ypos) {
var _local3 = CEnemy.getPOP();
var _local5 = "";
var _local4 = 0;
var _local1 = 0;
while (_local1 <= _local3.length) {
if ((_local3[_local1] == 0) || (_local3[_local1] == undefined)) {
_local5 = ("EN" + obj.toString()) + _local1.toString();
_local4 = _local1;
break;
}
_local1++;
}
var _local6 = attachMovie("EN" + obj.toString(), _local5, _local4 + 200, {_x:xpos, _y:ypos});
if (en[obj][6] == undefined) {
en[obj][6] = en[obj][5];
}
if (en[obj][7] == undefined) {
en[obj][7] = 12;
}
_local6.init(en[obj][0], en[obj][1], en[obj][2], en[obj][3], en[obj][4], en[obj][5], en[obj][6], en[obj][7]);
}
function crBOSS(obj, xpos, ypos) {
myBoss = attachMovie("BOSS" + obj.toString(), "BOSS" + obj.toString(), 301, {_x:xpos, _y:ypos});
myBossMask = attachMovie(("BOSS" + obj.toString()) + "MASK", ("BOSS" + obj.toString()) + "MASK", 302, {_x:xpos, _y:ypos});
myBoss.init(myBossMask);
}
function crMINIBOSS(obj, xpos, ypos) {
attachMovie(obj, obj, 300, {_x:xpos, _y:ypos});
}
function crOPTION(xpos, ypos, d) {
var _local1 = attachMovie("option", "option" + d, 320 + d);
_local1.init(xpos, ypos);
}
function crBUL(obj, xpos, ypos, dir, spd, type) {
var _local6 = CPBullet.getPOP();
var _local5 = "";
var _local4 = 0;
var _local2 = 0;
while (_local2 <= _local6) {
if (_root[obj + _local2] == undefined) {
_local5 = obj + _local2;
_local4 = _local2;
break;
}
_local2++;
}
var _local7 = attachMovie(obj, _local5, _local4 + 500, {_x:xpos, _y:ypos});
_local7.Init(dir, spd);
_local7.gotoAndStop(type + 1);
}
function crENBUL(obj, xpos, ypos, dir, spd) {
var _local6 = CENBullet.getPOP();
var _local5 = "";
var _local4 = 0;
var _local2 = 0;
while (_local2 <= _local6) {
if (_root[obj + _local2] == undefined) {
_local5 = obj + _local2;
_local4 = _local2;
break;
}
_local2++;
}
var _local7 = attachMovie(obj, _local5, _local4 + 550, {_x:xpos, _y:ypos});
_local7.Init(dir, spd);
}
function crBOSSBUL(obj, xpos, ypos, dir, spd) {
var _local6 = CBoss2Bullet.getPOP();
var _local5 = "";
var _local4 = 0;
var _local2 = 0;
while (_local2 <= _local6) {
if (_root[obj + _local2] == undefined) {
_local5 = obj + _local2;
_local4 = _local2;
break;
}
_local2++;
}
var _local7 = attachMovie(obj, _local5, _local4 + 590, {_x:xpos, _y:ypos});
_local7.Init(dir, spd);
}
function crMISC(obj, xpos, ypos) {
mPOP++;
if (mPOP >= 39) {
mPOP = 0;
}
attachMovie(obj, obj, mPOP + 650, {_x:xpos, _y:ypos});
}
function crPOW(obj, xpos, ypos, dir, spd, mType, pType) {
var _local6 = CPow.getPOP();
var _local5 = "";
var _local4 = 0;
var _local2 = 0;
while (_local2 <= _local6) {
if (_root[obj + _local2] == undefined) {
_local5 = obj + _local2;
_local4 = _local2;
break;
}
_local2++;
}
var _local7 = attachMovie(obj, _local5, _local4 + 700, {_x:xpos, _y:ypos});
_local7.init(dir, spd, mType, pType);
}
function crShipNPC(obj, xpos, ypos, POP) {
attachMovie(obj, obj, POP + 690, {_x:xpos, _y:ypos});
}
function crWall(obj, ypos, d) {
myWall = attachMovie(obj, obj + d, d + 150, {_x:0, _y:ypos});
myWall.onEnterFrame = function () {
if (_root.GPAUSE == 4) {
this.stop();
} else if (_root.GPAUSE == 0) {
this.play();
}
if (_root.Player.getinv() == 0) {
if (this.hitTest(_root.Player._x, _root.Player._y, true)) {
if (_root.DIFFICULTY == 0) {
Player.addHP(-15);
} else if (_root.DIFFICULTY == 1) {
Player.addHP(-25);
} else if (_root.DIFFICULTY == 2) {
Player.addHP(-30);
}
Player.setinv(30);
crMISC("boom05", _root.Player._x, _root.Player._y);
}
}
if (_root.Player.getHP() <= 0) {
this.removeMovieClip();
}
};
}
function XWall(wall) {
_root[wall].kill = true;
}
function cbg(txt, num) {
var _local4 = (spdB = (spdC = 0));
if (num == 0) {
_local4 = 25;
spdB = 0.5;
spdC = 0;
} else if (num == 1) {
_local4 = (spdB = (spdC = 25));
} else if (num == 2) {
_local4 = 25;
spdB = 0.1;
}
var _local3 = num;
var _local1 = num;
if (num == 1) {
_local3 = _local3 + 3;
} else if (num > 1) {
_local1 = 0;
_local3 = _local1;
}
bg[_local1] = "bg" + txt;
if ((num == 0) || (num == 3)) {
var _local7 = attachMovie(bg[_local1] + "C", bg[_local1] + "C", 90 + _local3, {_x:0, _y:0});
_local7.init(3, spdC);
} else if (num == 1) {
var _local7 = attachMovie(bg[_local1] + "C", bg[_local1] + "C", 90 + _local3, {_x:R_W, _y:0});
_local7.init(2, spdC);
}
var _local5 = attachMovie(bg[_local1] + "B", bg[_local1] + "B", 91 + _local3, {_x:R_W, _y:0});
_local5.init(1, spdB);
var _local6 = attachMovie(bg[_local1] + "A", bg[_local1] + "A", 92 + _local3, {_x:R_W, _y:0});
_local6.init(0, _local4);
xbg(_local1);
}
function xbg(num) {
if (num == 0) {
num = 1;
} else {
num = 0;
}
_root[bg[num] + "A"].destroy();
_root[bg[num] + "B"].destroy();
_root[bg[num] + "C"].destroy();
}
function csplash() {
attachMovie("bgSplash", "bgSplash", 1005, {_x:-150, _y:-150});
}
function xsplash() {
bgSplash.removeMovieClip();
}
function rs(num) {
if (eOK == true) {
eOK = false;
} else {
eCTR2++;
if (eCTR2 == num) {
eOK = true;
eCTR2 = 1;
}
}
}
function say(arrSay, p, a, t) {
myMsgBox = attachMovie("guiMsgBox", "guiMsgBox", 1102, {_x:0, _y:150});
myMsgBox.init(arrSay, p, a, t);
}
function playMus(snd, time) {
mus.stop();
mus.attachSound(snd);
mus.start(0, time);
}
function playSnd1(snd, time) {
snd1.stop();
snd1.attachSound(snd);
snd1.start(0, time);
}
function playSnd2(snd, time) {
snd2.stop();
snd2.attachSound(snd);
snd2.start(0, time);
}
function cANG(X1, Y1, X2, Y2) {
var _local2 = X1 - X2;
var _local3 = (Y1 - Y2) * -1;
var _local1 = Math.floor(Math.atan(_local3 / _local2) / (Math.PI/180));
if (_local2 < 0) {
_local1 = _local1 + 180;
}
if ((_local2 >= 0) && (_local3 < 0)) {
_local1 = _local1 + 360;
}
return(Math.round(_local1));
}
function tint(obj, r, g, b, a) {
myColor = new Color(obj);
myColor.setTint(r, g, b, a);
}
function kill() {
Player.removeMovieClip();
pTurbo.removeMovieClip();
guiHPBar.removeMovieClip();
option0.removeMovieClip();
option1.removeMovieClip();
myBoss.removeMovieClip();
myBossMask.removeMovieClip();
eT = -1;
xbg(0);
xbg(1);
CBackground.fpause(false);
stopAllSounds();
}
stop();
stopAllSounds();
var R_W = 400;
var R_H = 250;
var NAME = "";
var SCORE = 0;
var NAME = "";
var GPAUSE = 0;
var GSAY = false;
var bg = new Array("", "");
var mPOP = 0;
var myBoss;
var myBossMask;
var STAGE = 1;
var eT = 0;
var eCTR = 0;
var eOK = true;
var eCTR2 = 1;
var S_L = -30;
var S_R = 430;
var xxs = 5;
var xs = 10;
var s = 30;
var m = 60;
var l = 120;
var xl = 240;
var xxl = 480;
var pressA = false;
var press1 = false;
var press2 = false;
var pressU = false;
initGame();
_root.onEnterFrame = function () {
keylist();
if (GPAUSE != 4) {
if (eT > 0) {
eT--;
} else if (eT == 0) {
switch (STAGE) {
case 1 :
eT = Stage1(eCTR);
break;
case 2 :
eT = Stage2(eCTR);
break;
case 3 :
eT = Stage3(eCTR);
break;
case 4 :
eT = Stage4(eCTR);
break;
case 5 :
eT = Stage5(eCTR);
break;
case 6 :
eT = Stage6(eCTR);
break;
case 7 :
eT = Stage7(eCTR);
break;
case 8 :
eT = Stage8(eCTR);
}
if (eOK == true) {
eCTR++;
}
}
}
};
if (_root.DIFFICULTY == 0) {
var en = new Array();
en[1] = new Array(3, 180, 12, 0, 0, 0);
en[2] = new Array(3, 180, 8, 0, 0, 0);
en[3] = new Array(100, 180, 5, 2, 2, 30, 100, 3);
en[4] = new Array(7, 180, 15, 0, 0, 0);
en[5] = new Array(12, 180, 5, 1, 1, 60, 0, 3);
en[6] = new Array(16, 180, 2, 0, 1, 60);
en[7] = new Array(13, 180, 5, 0, 1, 50, 0, 3);
en[8] = new Array(19, 180, 5, 0, 1, 40, 0, 3);
en[9] = new Array(8, 90, 5, 3, 0, 0, 0, 0);
en[10] = new Array(8, 90, 5, 4, 0, 0, 0, 0);
en[11] = new Array(700, 180, 5, 2, 3, 90, 100, 3);
en[12] = new Array(70, 180, 2, 0, 1, 50);
en[13] = new Array(60, 180, 5, 1, 1, 50, 0, 3);
en[14] = new Array(60, 180, 5, 0, 1, 50, 0, 3);
en[15] = new Array(23, 180, 8, 0, 0, 0);
en[16] = new Array(52, 180, 2, 0, 1, 50);
en[17] = new Array(1000, 180, 5, 2, 3, 90, 100, 3);
} else if (_root.DIFFICULTY == 1) {
var en = new Array();
en[1] = new Array(4, 180, 12, 0, 0, 0);
en[2] = new Array(4, 180, 8, 0, 0, 0);
en[3] = new Array(150, 180, 5, 2, 2, 25, 100, 4);
en[4] = new Array(8, 180, 15, 0, 0, 0);
en[5] = new Array(14, 180, 5, 1, 1, 50, 0, 4);
en[6] = new Array(18, 180, 2, 0, 1, 50);
en[7] = new Array(13, 180, 5, 0, 1, 50, 0, 4);
en[8] = new Array(20, 180, 5, 0, 1, 35, 0, 4);
en[9] = new Array(8, 90, 5, 3, 0, 0, 0, 0);
en[10] = new Array(8, 90, 5, 4, 0, 0, 0, 0);
en[11] = new Array(800, 180, 5, 2, 3, 90, 100, 3);
en[12] = new Array(80, 180, 2, 0, 1, 50);
en[13] = new Array(70, 180, 5, 1, 1, 50, 0, 4);
en[14] = new Array(70, 180, 5, 0, 1, 50, 0, 4);
en[15] = new Array(25, 180, 8, 0, 0, 0);
en[16] = new Array(52, 180, 2, 0, 1, 50);
en[17] = new Array(1200, 180, 5, 2, 3, 90, 100, 3);
} else if (_root.DIFFICULTY == 2) {
var en = new Array();
en[1] = new Array(5, 180, 12, 0, 0, 0);
en[2] = new Array(5, 180, 8, 0, 0, 0);
en[3] = new Array(200, 180, 5, 2, 2, 20, 100, 5);
en[4] = new Array(9, 180, 15, 0, 0, 0);
en[5] = new Array(15, 180, 5, 1, 1, 40, 0, 5);
en[6] = new Array(24, 180, 2, 0, 1, 40);
en[7] = new Array(13, 180, 5, 0, 1, 50, 0, 5);
en[8] = new Array(25, 180, 5, 0, 1, 30, 0, 4);
en[9] = new Array(8, 90, 5, 3, 1, 40, 0, 3);
en[10] = new Array(8, 90, 5, 4, 0, 0, 0, 0);
en[11] = new Array(900, 180, 5, 2, 3, 90, 100, 3);
en[12] = new Array(90, 180, 2, 0, 1, 50);
en[13] = new Array(80, 180, 5, 1, 1, 50, 0, 4);
en[14] = new Array(80, 180, 5, 0, 2, 50, 0, 3);
en[15] = new Array(32, 180, 8, 0, 1, 60);
en[16] = new Array(62, 180, 2, 0, 1, 50);
en[17] = new Array(1300, 180, 5, 2, 3, 90, 100, 4);
}
var mus = new Sound(this);
var snd1 = new Sound(_root.Player);
var snd2 = new Sound(_root.guiHPBar);
Color.prototype.setTint = function (r, g, b, a) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - a));
var _local3 = a / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
function Stage1(teCTR) {
switch (teCTR) {
case 0 :
GPAUSE = 1;
playMus("pX9Defection.mp3", 9999);
cbg("Tunnel", 1);
Player.goto(120, 110);
Player.setinv(50);
return(s);
case 1 :
crShipNPC("agtBlue", S_L - 30, 70, 0);
crShipNPC("agtYellow", S_L, 150, 1);
agtBlue.goto(60, 70, 10);
agtYellow.goto(90, 150, 10);
return(s);
case 2 :
var _local1 = new Array();
if (ctrl == 0) {
_local1[0] = new Array("pCmdr1", "Commander", "Alright Agent Red, this is your first mission. (Press S to continue)");
} else {
_local1[0] = new Array("pCmdr1", "Commander", "Alright Agent Red, this is your first mission. (Press J to continue)");
}
_local1[1] = new Array("pCmdr1", "Commander", "Enemies have attacked our city. We don't know where they came from yet, but we have a feeling Agent Black is behind this.");
_local1[2] = new Array("pCmdr1", "Commander", "Let's try to review your training shall we?");
if (ctrl == 0) {
_local1[3] = new Array("pCmdr1", "Commander", "Press the Arrow Keys to move and press and HOLD down the Fire button S to shoot.");
} else {
_local1[3] = new Array("pCmdr1", "Commander", "Press the WASD keys to move and press and HOLD down the Fire button J to shoot.");
}
_local1[4] = new Array("pCmdr1", "Commander", "You don't need to mash the Fire button.");
_local1[5] = new Array("pCmdr1", "Commander", "You can also PAUSE the game anytime using the ENTER button.");
_local1[6] = new Array("pAgtBlue1", "Agent Blue", "You don't need to tell red that. I think the rookie knows what he's doing.");
_local1[7] = new Array("pAgtYellow1", "Agent Yellow", "Riiight. Well lets do this! WOOT!!!");
_local1[8] = new Array("pCmdr1", "Commander", "Good Luck");
say(_local1, false, false, 50);
return(-1);
case 3 :
GPAUSE = 0;
agtBlue.goto(600, -100, 5);
agtYellow.goto(600, 150, 5);
cbg("City", 0);
return(s);
case 4 :
crENE(1, S_R, 80);
return(s);
case 5 :
crENE(1, S_R, 110);
return(s);
case 6 :
crENE(2, S_R, 70);
rs(5);
return(xs);
case 7 :
crENE(2, S_R, 180);
rs(5);
return(xs);
case 8 :
crENE(2, S_R, 120);
rs(5);
return(xs);
case 9 :
crENE(6, S_R, 80);
crENE(6, S_R, 160);
return((l + m) + s);
case 10 :
_local1 = new Array();
if (ctrl == 0) {
_local1[0] = new Array("pCmdr1", "Commander", "I forgot to tell you. There is a SHIELD button (A).");
} else {
_local1[0] = new Array("pCmdr1", "Commander", "I forgot to tell you. There is a SHIELD button (H).");
}
_local1[1] = new Array("pCmdr1", "Commander", "Press it just in time before you get hit by an enemy bullet and it will absorb it as energy.");
_local1[2] = new Array("pCmdr1", "Commander", "Use it wisely.");
say(_local1, true, false, 50);
return(-1);
case 11 :
crENE(3, S_R, R_H / 2);
return(-1);
case 12 :
_local1 = new Array();
_local1[0] = new Array("pAgtYellow1", "Agent Yellow", "Heads up! Got 3 on my tail. Coming your way!");
say(_local1, false, true, s + xs);
return(-1);
case 13 :
crShipNPC("agtYellow", S_R + 30, 60, 0);
agtYellow._xscale = agtYellow._xscale * -1;
agtYellow.goto(-600, 60, 20);
return(m);
case 14 :
crENE(4, S_R, 60);
return(s);
case 15 :
crENE(4, S_R, 70);
return(s);
case 16 :
crENE(4, S_R, 50);
return(s);
case 17 :
crENE(5, S_R, 220);
return(m + s);
case 18 :
crENE(2, S_R, 180);
rs(3);
return(xs);
case 19 :
crENE(2, S_R, 120);
rs(3);
return(xs);
case 20 :
crENE(5, S_R, 220);
rs(2);
return(m);
case 21 :
crENE(2, S_R, 150);
return(xs);
case 22 :
crENE(2, S_R, 100);
crENE(2, S_R, 150);
return(xs);
case 23 :
crENE(2, S_R, 100);
return(xs);
case 24 :
crENE(2, S_R, 70);
rs(5);
return(xs);
case 25 :
return(m);
case 26 :
crBOSS(1, 320, 150);
CBackground.fpause(true);
return(-1);
case 27 :
CBackground.fpause(false);
return(s);
case 28 :
crPOW("powHP", S_R, 60, 180, 20, 0, 0);
return(xxs);
case 29 :
_local1 = new Array();
_local1[0] = new Array("pCmdr1", "Commander", "Those green thingys are health orbs. They replenish your health. Try grabbing them.");
say(_local1, true, false, xxs);
return(-1);
case 30 :
crPOW("powHP", S_R, 60, 180, 20, 0, 0);
rs(29);
return(xxs);
case 31 :
STAGE++;
eCTR = -1;
return(s);
}
}
function Stage2(teCTR) {
switch (teCTR) {
case 0 :
playMus("pX9Chaoz.mp3", 9999);
cbg("Tunnel", 1);
return(s);
case 1 :
crMINIBOSS("MINIBOSS1", S_R, 120);
MINIBOSS1.goto(350, 120, 10);
return(s);
case 2 :
var _local1 = new Array();
_local1[0] = new Array("pCmdr1", "Commander", "It's an enemy speeder. Don't let it get away.");
say(_local1, true, false, 50);
return(-1);
case 3 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(m);
case 4 :
XWall("Wall10");
XWall("Wall11");
return(s);
case 5 :
MINIBOSS1.goto(350, 200, 5);
return(s);
case 6 :
crWall("Wall1", 10, 0);
crWall("Wall1", 90, 1);
return(s);
case 7 :
XWall("Wall10");
XWall("Wall11");
return(s);
case 8 :
MINIBOSS1.goto(350, 120, 5);
return(s);
case 9 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(s);
case 10 :
XWall("Wall10");
return(s);
case 11 :
MINIBOSS1.goto(350, 50, 5);
return(s);
case 12 :
crWall("Wall1", 90, 0);
return(s);
case 13 :
XWall("Wall10");
XWall("Wall11");
return(s);
case 14 :
MINIBOSS1.goto(350, 120, 5);
return(s);
case 15 :
crENE(6, S_R, 50);
crENE(6, S_R, 170);
return(l + s);
case 16 :
MINIBOSS1.goto(350, 200, 5);
return(s);
case 17 :
crWall("Wall1", 90, 1);
return(xs);
case 18 :
crWall("Wall1", 10, 0);
return(xs);
case 19 :
MINIBOSS1.goto(350, 120, 5);
XWall("Wall11");
return(s);
case 20 :
crWall("Wall1", 170, 1);
return(s);
case 21 :
MINIBOSS1.goto(350, 200, 5);
XWall("Wall11");
return(s);
case 22 :
crWall("Wall1", 90, 1);
return(s);
case 23 :
MINIBOSS1.goto(350, 50, 5);
XWall("Wall10");
XWall("Wall11");
return(m);
case 24 :
crWall("Wall1", 90, 0);
return(s);
case 25 :
crENE(7, S_R, 220);
rs(5);
return(s);
case 26 :
MINIBOSS1.goto(350, 120, 5);
XWall("Wall10");
return(s);
case 27 :
MINIBOSS1.goto(350, 50, 5);
return(s);
case 28 :
MINIBOSS1.goto(350, 120, 5);
return(s);
case 29 :
crWall("Wall1", 10, 0);
return(s);
case 30 :
MINIBOSS1.goto(350, 200, 5);
return(xs);
case 31 :
MINIBOSS1.goto(350, 120, 5);
return(xs);
case 32 :
MINIBOSS1.goto(350, 200, 5);
return(s);
case 33 :
crWall("Wall1", 90, 1);
return(s);
case 34 :
XWall("Wall10");
XWall("Wall11");
return(s);
case 35 :
MINIBOSS1.goto(350, 120, 5);
return(xs);
case 36 :
crWall("Wall1", 170, 1);
return(s);
case 37 :
XWall("Wall11");
return(s);
case 38 :
MINIBOSS1.goto(350, 200, 5);
return(s);
case 39 :
crWall("Wall1", 10, 0);
crWall("Wall1", 90, 1);
return(s);
case 40 :
XWall("Wall10");
XWall("Wall11");
return(s);
case 41 :
MINIBOSS1.goto(350, 120, 5);
return(s);
case 42 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(s);
case 43 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(10);
return(xxs);
case 44 :
XWall("Wall10");
XWall("Wall11");
return(s);
case 45 :
crPOW("powHP", S_R, 200, 180, 20, 0, 0);
rs(10);
return(xxs);
case 46 :
MINIBOSS1.goto(350, 50, 5);
return(s);
case 47 :
crWall("Wall1", 90, 0);
return(xs);
case 48 :
crENE(7, S_R, 220);
rs(5);
return(s);
case 49 :
MINIBOSS1.goto(350, 120, 5);
XWall("Wall10");
return(m);
case 50 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(s);
case 51 :
MINIBOSS1.goto(350, 200, 5);
XWall("Wall11");
return(s);
case 52 :
crWall("Wall1", 90, 1);
return(s);
case 53 :
crShipNPC("agtBlue", S_L - 30, 200, 0);
agtBlue.goto(60, 200, 5);
return(s);
case 54 :
_local1 = new Array();
_local1[0] = new Array("pAgtBlue1", "Agent Blue", "I'll handle this.");
say(_local1, false, false, 15);
return(-1);
case 55 :
XWall("Wall10");
XWall("Wall11");
agtBlue.fire("agtBlueBullet", "MINIBOSS1", 60, "boom02");
tint(MINIBOSS1, 0, 0, 255, 50);
return(m);
case 56 :
_local1 = new Array();
_local1[0] = new Array("pAgtBlue2", "Agent Blue", "Pull up!");
say(_local1, false, false, s);
return(-1);
case 57 :
agtBlue.goto(60, 120, 5);
MINIBOSS1.goto(350, 120, 1);
return(xs);
case 58 :
crWall("Wall1", 180, 1);
MINIBOSS1.destroy();
return(s);
case 59 :
XWall("Wall11");
return(s);
case 60 :
cbg("OCity", 2);
return(l);
case 61 :
crBOSS(2, 300, 145);
CBackground.fpause(true);
return(xs);
case 62 :
_local1 = new Array();
_local1[0] = new Array("pAgtBlue2", "Agent Blue", "Oh no! They poisoned the great Deco Tree.");
say(_local1, true, false, m);
return(-1);
case 63 :
crShipNPC("agtYellow", S_L - 30, 70, 1);
agtYellow.goto(60, 70, 5);
agtBlue.goto(60, 180, 5);
return(s);
case 64 :
_local1 = new Array();
_local1[0] = new Array("pAgtYellow1", "Agent Yellow", "I'll help out.");
say(_local1, true, false, -1);
return(-1);
case 65 :
_local1 = new Array();
_local1[0] = new Array("pCmdr1", "Commander", "Agent Purple has reported that Agent Black is in Ice City. Purple is fighting Agent White right now...");
_local1[1] = new Array("pAgtYellow1", "Agent Yellow", "Hey Blue isn't Ice City your hometown?");
_local1[2] = new Array("pAgtBlue2", "Agent Blue", "...");
_local1[3] = new Array("pCmdr1", "Commander", "Blue, I need you to check it out.");
_local1[4] = new Array("pAgtBlue2", "Agent Blue", "I'm on it.");
_local1[5] = new Array("pCmdr1", "Commander", "Bring red with you.");
_local1[6] = new Array("pCmdr1", "Commander", "Yellow stay here. We need to you finish up the remaining enemies. Then you can catch up later.");
_local1[7] = new Array("pAgtYellow1", "Agent Yellow", "Sigh... yes maam.");
_local1[8] = new Array("pCmdr1", "Commander", "Red, try your best to help blue.");
say(_local1, true, false, 50);
return(-1);
case 66 :
CBackground.fpause(false);
agtYellow.goto(-600, 70, 5);
agtBlue.goto(600, 180, 5);
STAGE++;
eCTR = -1;
return(l);
}
}
function Stage3(teCTR) {
switch (teCTR) {
case 0 :
playMus("pX9Danger.mp3", 9999);
cbg("River", 1);
csplash();
return(s);
case 1 :
crENE(8, S_R, 100);
return(m);
case 2 :
crENE(8, S_R, 120);
return(m);
case 3 :
crENE(8, S_R, 80);
return(m);
case 4 :
crENE(8, S_R, 50);
return(m);
case 5 :
crENE(8, S_R, 180);
return(m);
case 6 :
crPOW("powHP", S_R, 180, 180, 20, 0, 0);
rs(15);
return(xxs);
case 7 :
crPOW("powHP", S_R, 200, 180, 20, 0, 0);
return(xxs);
case 8 :
crPOW("powHP", S_R, 220, 180, 20, 0, 0);
rs(15);
return(xxs);
case 9 :
crMINIBOSS("BOSS3Bullet", 400, 125);
BOSS3Bullet.fire(1);
return(l);
case 10 :
BOSS3Bullet.goto(400, Player._y, 5);
return(s);
case 11 :
BOSS3Bullet.fire(1);
return(l);
case 12 :
crENE(8, S_R, 120);
BOSS3Bullet.goto(400, Player._y, 5);
return(s);
case 13 :
BOSS3Bullet.fire(1);
return(l);
case 14 :
crENE(8, S_R, 80);
BOSS3Bullet.goto(400, Player._y, 5);
return(s);
case 15 :
BOSS3Bullet.fire(1);
return(l);
case 16 :
crENE(8, S_R, 100);
BOSS3Bullet.goto(400, Player._y, 5);
return(s);
case 17 :
BOSS3Bullet.fire(1);
return(l);
case 18 :
crENE(8, S_R, 80);
BOSS3Bullet.goto(400, Player._y, 5);
return(s);
case 19 :
BOSS3Bullet.fire(1);
return(l);
case 20 :
crENE(8, S_R, 80);
rs(3);
return(s);
case 21 :
crENE(8, S_R, 120);
rs(3);
return(s);
case 22 :
crENE(8, S_R, 160);
rs(3);
return(s);
case 23 :
BOSS3Bullet.goto(400, Player._y, 5);
return(s);
case 24 :
return(xs);
case 25 :
BOSS3Bullet.fire(1);
return(s);
case 26 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(20);
return(xxs);
case 27 :
BOSS3Bullet.goto(400, Player._y, 5);
return(s);
case 28 :
BOSS3Bullet.fire(1);
return(l);
case 29 :
BOSS3Bullet.goto(600, 100, 5);
return(s);
case 30 :
crENE(6, S_R, 80);
crENE(6, S_R, 180);
return(m);
case 31 :
crENE(8, S_R, 120);
rs(3);
return(s + xs);
case 32 :
crENE(8, S_R, 80);
rs(3);
return(s + xs);
case 33 :
crENE(8, S_R, 160);
rs(3);
return(s + xs);
case 34 :
crENE(3, S_R, R_H / 2);
return(-1);
case 35 :
crBOSS(3, 390, 200);
crShipNPC("agtBlue", 370, 200, 1);
CBackground.fpause(true);
return(xxs);
case 36 :
var _local1 = new Array();
_local1[0] = new Array("pCmdr1", "Commander", "Oh no! The giant enemy crab has blue.");
_local1[1] = new Array("pCmdr1", "Commander", "Attack its weakpoint for massive damage.");
say(_local1, true, false, -1);
return(-1);
case 37 :
CBackground.fpause(false);
return(xxs);
case 38 :
_local1 = new Array();
_local1[0] = new Array("pAgtBlue1", "Agent Blue", "I was careless, I'm sorry...");
say(_local1, true, false, s);
return(-1);
case 39 :
agtBlue.goto(600, 200, 5);
return(s);
case 40 :
crPOW("powHP", S_R, 200, 180, 20, 0, 0);
rs(15);
return(xxs);
case 41 :
crPOW("powHP", S_R, 180, 180, 20, 0, 0);
return(xxs);
case 42 :
crPOW("powHP", S_R, 160, 180, 20, 0, 0);
return(xxs);
case 43 :
crPOW("powHP", S_R, 140, 180, 20, 0, 0);
rs(15);
return(xxs);
case 44 :
STAGE++;
eCTR = -1;
return(s);
}
}
function Stage4(teCTR) {
switch (teCTR) {
case 0 :
playMus("pX9Blue.mp3", 9999);
cbg("Ocean", 3);
return(m);
case 1 :
crENE(9, 300, 250);
return(s);
case 2 :
crENE(9, 400, 250);
return(s);
case 3 :
crENE(9, 200, 250);
return(s);
case 4 :
crENE(10, 100, 250);
return(s);
case 5 :
crENE(10, 0, 250);
return(m);
case 6 :
crENE(10, 100, 250);
crENE(9, 300, 250);
return(s);
case 7 :
crENE(9, 400, 250);
rs(5);
return(s);
case 8 :
crENE(6, S_R, 70);
crENE(6, S_R, 180);
return(l);
case 9 :
crENE(10, 100, 250);
crENE(9, 300, 250);
return(m);
case 10 :
crENE(2, S_R, 80);
rs(3);
return(xs);
case 11 :
crENE(2, S_R, 120);
rs(3);
return(xs);
case 12 :
crENE(9, 400, 250);
rs(3);
return(s);
case 13 :
crENE(10, 0, 250);
rs(3);
return(s);
case 14 :
crENE(15, S_R, 120);
crENE(9, 400, 250);
return(s);
case 15 :
crENE(9, 350, 250);
return(s);
case 16 :
crENE(15, S_R, 140);
crENE(9, 300, 250);
return(s);
case 17 :
crENE(9, 250, 250);
return(s);
case 18 :
crENE(15, S_R, 160);
crENE(10, 150, 250);
return(s);
case 19 :
crENE(10, 100, 250);
return(s);
case 20 :
crENE(15, S_R, 100);
crENE(10, 50, 250);
return(s);
case 21 :
crENE(10, 0, 250);
return(s);
case 22 :
crENE(15, S_R, 80);
crENE(9, 400, 250);
crENE(10, 0, 250);
return(s);
case 23 :
crENE(10, 50, 250);
crENE(9, 350, 250);
return(s);
case 24 :
crENE(15, S_R, 60);
crENE(10, 100, 250);
crENE(9, 300, 250);
return(s);
case 25 :
crENE(10, 150, 250);
crENE(9, 250, 250);
return(s);
case 26 :
crENE(6, S_R, 120);
rs(3);
return(s);
case 27 :
crENE(6, S_R, 80);
rs(3);
return(s);
case 28 :
crENE(6, S_R, 160);
rs(3);
return(s);
case 29 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(30);
return(xxs);
case 30 :
crENE(11, S_R, R_H / 2);
return(-1);
case 31 :
crShipNPC("agtBlue", S_R, 180, 0);
agtBlue.goto(60, 180, 5);
return(s);
case 32 :
crMINIBOSS("agtWhite", S_R, 120);
agtWhite.goto(300, 120, 5);
return(s);
case 33 :
var _local2 = new Array();
_local2[0] = new Array("pAgtBlue2", "Agent Blue", "It can't be...");
_local2[1] = new Array("pCmdr1", "Commander", "What is it?");
_local2[2] = new Array("pAgtBlue2", "Agent Blue", "It's White.");
_local2[3] = new Array("pAgtWhite1", "Agent White", "Your journey ends here.");
_local2[4] = new Array("pAgtBlue2", "Agent Blue", "It's no use. He harness the power of the wind. Our bullets are no match against his speed.");
_local2[5] = new Array("pCmdr1", "Commander", "Try to think of something.");
say(_local2, true, false, xxl);
return(-1);
case 34 :
_local2 = new Array();
_local2[0] = new Array("pAgtBlue1", "Agent Blue", "We need to figure out how to STOP him.");
say(_local2, true, false, xxl);
return(-1);
case 35 :
_local2 = new Array();
_local2[0] = new Array("pAgtBlue1", "Agent Blue", "If only there was a way to make everything STOP.");
say(_local2, true, false, xxl);
return(-1);
case 36 :
_local2 = new Array();
_local2[0] = new Array("pAgtBlue1", "Agent Blue", "PAUSE (ENTER) the game for a sec so we can think this over.");
say(_local2, true, false, xxl);
_root.eCTR--;
return(-1);
case 37 :
return(s);
case 38 :
_local2 = new Array();
_local2[0] = new Array("pAgtWhite1", "Agent White", "???");
_local2[1] = new Array("pAgtWhite1", "Agent White", "Resume the game already!");
_local2[2] = new Array("pAgtWhite1", "Agent White", "This is getting boring!");
_local2[3] = new Array("pAgtWhite1", "Agent White", "...");
_local2[4] = new Array("pAgtWhite1", "Agent White", "All this water is making me wanna go pee!");
_local2[5] = new Array("pAgtWhite1", "Agent White", "Hold up dont resume the game.");
_local2[6] = new Array("pAgtWhite1", "Agent White", "BRB");
_local2[7] = new Array("pAgtBlue1", "Agent Blue", "...");
_local2[8] = new Array("pAgtBlue1", "Agent Blue", "Is he gone?");
_local2[9] = new Array("pAgtBlue2", "Agent Blue", "Okay shoot him now!");
say(_local2, true, false, s);
return(-1);
case 39 :
agtBlue.goto(60, agtWhite._y, 5);
return(s);
case 40 :
_root.agtBlue.fire("agtBlueBullet", "agtWhite", 60, "boom02");
return(l);
case 41 :
agtWhite.destroy();
return(xs);
case 42 :
_local2 = new Array();
_local2[0] = new Array("pAgtWhite1", "Agent White", "Cheater!");
_local2[1] = new Array("pAgtBlue1", "Agent Blue", "Good job!");
say(_local2, true, false, s);
return(-1);
case 43 :
agtBlue.goto(600, agtBlue._y, 5);
STAGE++;
eCTR = -1;
xsplash();
return(m);
}
}
function Stage5(teCTR) {
switch (teCTR) {
case 0 :
playMus("pX9Redoomed.mp3", 9999);
cbg("Tunnel", 1);
return(s);
case 1 :
crShipNPC("agtBlue", S_R, 120, 0);
agtBlue.goto(300, 120, 5);
crMINIBOSS("MINIBOSS2", S_L, 120);
MINIBOSS2.goto(50, 120, 5);
return(m);
case 2 :
var _local2 = new Array();
_local2[0] = new Array("pAgtBlue2", "Agent Blue", "Watch out behind you.");
_local2[1] = new Array("pAgtBlue2", "Agent Blue", "Try to follow my lead so you won't crash into anything.");
say(_local2, true, false, 50);
return(-1);
case 3 :
agtBlue.goto(300, 200, 5);
return(s);
case 4 :
MINIBOSS2.fire(m);
return(m);
case 5 :
MINIBOSS2.goto(50, 200, 5);
agtBlue.goto(300, 120, 5);
return(s);
case 6 :
MINIBOSS2.fire(m);
return(m);
case 7 :
crWall("Wall1", 10, 0);
return(s);
case 8 :
crENE(2, S_R, 100);
rs(5);
return(xs);
case 9 :
XWall("Wall10");
agtBlue.goto(300, 200, 5);
MINIBOSS2.goto(50, 120, 5);
return(s);
case 10 :
MINIBOSS2.fire(m);
return(m);
case 11 :
agtBlue.goto(300, 120, 5);
return(s);
case 12 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(s);
case 13 :
XWall("Wall10");
XWall("Wall11");
agtBlue.goto(300, 50, 5);
return(s);
case 14 :
MINIBOSS2.fire(m);
crWall("Wall1", 170, 1);
return(m);
case 15 :
agtBlue.goto(300, 120, 5);
XWall("Wall11");
return(s);
case 16 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(s);
case 17 :
XWall("Wall11");
return(m);
case 18 :
crWall("Wall1", 170, 1);
XWall("Wall10");
return(s);
case 19 :
agtBlue.goto(300, 50, 5);
return(s);
case 20 :
MINIBOSS2.fire(m);
return(m);
case 21 :
XWall("Wall11");
return(s);
case 22 :
crENE(2, S_R, 70);
rs(5);
return(xs);
case 23 :
MINIBOSS2.goto(50, 50, 5);
crENE(6, S_R, 70);
crWall("Wall1", 90, 0);
crWall("Wall1", 170, 1);
return(m);
case 24 :
agtBlue.goto(300, 120, 5);
XWall("Wall10");
return(s);
case 25 :
MINIBOSS2.fire(s);
return(s);
case 26 :
agtBlue.goto(300, 200, 5);
MINIBOSS2.goto(50, 120, 5);
XWall("Wall11");
return(s);
case 27 :
MINIBOSS2.fire(s);
return(s);
case 28 :
crPOW("powHP", S_R, 200, 180, 20, 0, 0);
rs(15);
return(xxs);
case 29 :
agtBlue.goto(300, 120, 5);
return(s);
case 30 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(s);
case 31 :
agtBlue.goto(300, 50, 5);
XWall("Wall10");
return(s);
case 32 :
MINIBOSS2.fire(s);
return(s);
case 33 :
crPOW("powHP", S_R, 50, 180, 20, 0, 0);
rs(15);
return(xxs);
case 34 :
agtBlue.goto(300, 120, 5);
XWall("Wall11");
return(m);
case 35 :
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(m);
case 36 :
XWall("Wall10");
return(s);
case 37 :
crWall("Wall1", 10, 0);
agtBlue.goto(300, 200, 5);
XWall("Wall11");
return(s);
case 38 :
MINIBOSS2.fire(s);
return(s);
case 39 :
XWall("Wall10");
return(s);
case 40 :
agtBlue.goto(300, 50, 5);
return(s + xs);
case 41 :
crWall("Wall1", 90, 0);
crWall("Wall1", 170, 1);
MINIBOSS2.destroy();
return(s);
case 42 :
agtBlue.goto(600, 50, 5);
_root.crPOW("powPow", 0, 120, 0, 5, 1, 1);
XWall("Wall10");
XWall("Wall11");
return(m);
case 43 :
STAGE++;
eCTR = -1;
return(m);
}
}
function Stage6(teCTR) {
switch (teCTR) {
case 0 :
playMus("pX9Japan.mp3", 9999);
cbg("Japan", 0);
return(s);
case 1 :
crShipNPC("agtBlue", S_R, 120, 0);
crShipNPC("agtOrange", S_R + 50, 70, 1);
crShipNPC("agtGreen", S_R + 50, 180, 2);
agtBlue.goto(250, 120, 5);
agtOrange.goto(300, 70, 5);
agtGreen.goto(300, 180, 5);
return(m + s);
case 2 :
var _local2 = new Array();
_local2[0] = new Array("pAgtBlue1", "Agent Blue", "What's the status here?");
_local2[1] = new Array("pAgtOrange1", "Agent Orange", "Nice timing. Dragon Town is in trouble.");
_local2[2] = new Array("pAgtGreen1", "Agent Green", "trouble...");
_local2[3] = new Array("pAgtBlue1", "Agent Blue", "We'll try to help out as much as we can.");
_local2[4] = new Array("pAgtOrange1", "Agent Orange", "You've better hurry to Ice City. We need to stop the source of this. We'll catch up after we clean this up.");
_local2[5] = new Array("pAgtGreen1", "Agent Green", "hurry...");
_local2[6] = new Array("pAgtBlue1", "Agent Blue", "We'll do.");
say(_local2, true, false, 50);
return(-1);
case 3 :
agtBlue.goto(600, 120, 5);
agtOrange.goto(600, 70, 5);
agtGreen.goto(600, 200, 5);
return(m);
case 4 :
crENE(15, S_R, 120);
rs(5);
return(xs);
case 5 :
crENE(15, S_R, 50);
rs(5);
return(xs);
case 6 :
crENE(15, S_R, 200);
rs(5);
return(xs);
case 7 :
crENE(16, S_R, 120);
crENE(16, S_R, 60);
crENE(16, S_R, 180);
return(l);
case 8 :
crMINIBOSS("MINIBOSS3", 400, 125);
MINIBOSS3.goto(400, Player._y, 5);
return(l);
case 9 :
MINIBOSS3.fire(1);
return(l);
case 10 :
MINIBOSS3.goto(400, Player._y, 5);
return(s);
case 11 :
crENE(16, S_R, 60);
crENE(16, S_R, 180);
MINIBOSS3.fire(1);
return(l);
case 12 :
MINIBOSS3.goto(400, Player._y, 5);
return(s);
case 13 :
MINIBOSS3.fire(1);
return(l);
case 14 :
MINIBOSS3.goto(400, Player._y, 5);
return(s);
case 15 :
crENE(16, S_R, 60);
crENE(16, S_R, 180);
MINIBOSS3.fire(1);
return(l);
case 16 :
MINIBOSS3.goto(400, Player._y, 5);
return(s);
case 17 :
MINIBOSS3.fire(1);
return(l);
case 18 :
MINIBOSS3.goto(600, Player._y, 5);
return(s);
case 19 :
crENE(17, S_R, 120);
return(-1);
case 20 :
crENE(16, S_R, 80);
crENE(16, S_R, 160);
rs(5);
return(s + xs);
case 21 :
crENE(16, S_R, 120);
return(s + xs);
case 22 :
crENE(16, S_R, 100);
crENE(16, S_R, 140);
return(s + xs);
case 23 :
crENE(16, S_R, 80);
crENE(16, S_R, 160);
return(s + xs);
case 24 :
crENE(16, S_R, 60);
crENE(16, S_R, 180);
return(s + xs);
case 25 :
crBOSS(4, 300, 125);
CBackground.fpause(true);
_root.bgJapanC.tpause = true;
return(-1);
case 26 :
CBackground.fpause(false);
_root.bgJapanC.tpause = false;
return(s);
case 27 :
STAGE++;
eCTR = -1;
return(s);
}
}
function Stage7(teCTR) {
switch (teCTR) {
case 0 :
playMus("pX9Defcon.mp3", 9999);
cbg("Tunnel", 1);
return(s);
case 1 :
crShipNPC("agtBlue", S_R, 120, 0);
agtBlue.goto(300, 120, 5);
crMINIBOSS("PAC", S_L, 125);
PAC.goto(50, 125, 5);
return(m);
case 2 :
var _local2 = new Array();
_local2[0] = new Array("pAgtBlue1", "Agent Blue", "Ice City is just around the corner. We need to hurry.");
say(_local2, true, false, 50);
return(-1);
case 3 :
agtBlue.goto(600, 120, 5);
return(s);
case 4 :
PAC.fire(true, 90);
return(s);
case 5 :
crENE(2, S_R, 120);
rs(3);
return(s);
case 6 :
PAC.goto(100, 125, 10);
return(s);
case 7 :
crENE(2, S_R, 200);
rs(3);
return(s);
case 8 :
PAC.goto(50, 125, 10);
return(s);
case 7 :
crENE(2, S_R, 50);
rs(3);
return(s);
case 8 :
crENE(6, S_R, 70);
crENE(6, S_R, 180);
return(l);
case 9 :
PAC.goto(100, 125, 10);
return(m);
case 10 :
PAC.goto(200, 125, 10);
return(m);
case 11 :
PAC.goto(50, 125, 10);
return(m);
case 12 :
crENE(7, S_R, 220);
rs(3);
return(m);
case 13 :
PAC.goto(100, 125, 10);
return(l);
case 14 :
PAC.goto(200, 125, 10);
return(m);
case 15 :
PAC.goto(50, 125, 10);
return(s);
case 16 :
crENE(6, S_R, 70);
crENE(6, S_R, 180);
return(l + s);
case 17 :
PAC.goto(200, 125, 10);
return(m);
case 18 :
PAC.goto(100, 125, 10);
return(m);
case 19 :
crENE(6, S_R, 70);
crENE(6, S_R, 180);
return(m);
case 20 :
PAC.goto(50, 125, 10);
return(m);
case 21 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(15);
return(xxs);
case 22 :
PAC.fire(false, 0);
PAC.goto(100, 125, 10);
return(s);
case 23 :
PAC.goto(150, 125, 10);
return(s);
case 24 :
PAC.goto(200, 125, 10);
return(s);
case 25 :
PAC.goto(250, 125, 10);
return(s);
case 26 :
PAC.goto(300, 125, 10);
return(s);
case 27 :
PAC.goto(-100, 125, 25);
crWall("Wall1", 10, 0);
crWall("Wall1", 170, 1);
return(m);
case 28 :
_root.SCORE = _root.SCORE + 2000;
_root.crPOW("powPow", 0, 120, 0, 5, 1, 1);
XWall("Wall10");
XWall("Wall11");
return(m);
case 29 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(25);
return(xxs);
case 30 :
STAGE++;
eCTR = -1;
return(s);
}
}
function Stage8(teCTR) {
switch (teCTR) {
case 0 :
playMus("pX9Polar.mp3", 9999);
cbg("Snow", 0);
return(m);
case 1 :
crENE(12, S_R, 120);
return(s);
case 2 :
crENE(12, S_R, 60);
return(s);
case 3 :
crENE(12, S_R, 180);
return(s);
case 4 :
crENE(12, S_R, 120);
rs(5);
return(s);
case 5 :
crENE(13, S_R, 220);
return(s);
case 6 :
crENE(12, S_R, 180);
return(s);
case 7 :
crENE(12, S_R, 60);
return(s);
case 8 :
crENE(13, S_R, 220);
return(s);
case 9 :
crENE(17, S_R, 120);
return(-1);
case 10 :
crENE(14, S_R, 210);
rs(3);
return(s);
case 11 :
crENE(14, S_R, 210);
crENE(12, S_R, 60);
crENE(12, S_R, 180);
return(m);
case 12 :
crENE(1, S_R, 160);
crENE(14, S_R, 210);
crENE(12, S_R, 120);
return(s);
case 13 :
crENE(1, S_R, 120);
crENE(12, S_R, 100);
crENE(12, S_R, 140);
return(s);
case 14 :
crENE(1, S_R, 140);
crENE(14, S_R, 210);
crENE(12, S_R, 80);
crENE(12, S_R, 160);
return(s);
case 15 :
crENE(1, S_R, 80);
crENE(12, S_R, 100);
crENE(12, S_R, 140);
return(s);
case 16 :
crENE(1, S_R, 100);
crENE(14, S_R, 210);
crENE(12, S_R, 120);
return(m);
case 17 :
crENE(12, S_R, 80);
crENE(12, S_R, 160);
rs(3);
return(s);
case 18 :
crENE(1, S_R, 160);
crENE(14, S_R, 210);
crENE(12, S_R, 160);
rs(5);
return(m);
case 19 :
crENE(1, S_R, 60);
crENE(12, S_R, 180);
return(s);
case 20 :
crENE(1, S_R, 80);
crENE(12, S_R, 160);
return(s);
case 21 :
crENE(1, S_R, 100);
crENE(12, S_R, 140);
return(s);
case 22 :
crENE(1, S_R, 120);
crENE(12, S_R, 120);
return(s);
case 23 :
crENE(1, S_R, 140);
crENE(12, S_R, 100);
return(s);
case 24 :
crENE(1, S_R, 160);
crENE(12, S_R, 80);
return(s);
case 25 :
crENE(1, S_R, 180);
crENE(12, S_R, 60);
return(m);
case 26 :
crENE(1, S_R, 60);
crENE(12, S_R, 180);
return(s);
case 27 :
crENE(1, S_R, 80);
crENE(12, S_R, 160);
return(s);
case 28 :
crENE(1, S_R, 100);
crENE(12, S_R, 140);
return(s);
case 29 :
crENE(1, S_R, 120);
crENE(12, S_R, 120);
return(s);
case 30 :
crENE(1, S_R, 140);
crENE(12, S_R, 100);
return(s);
case 31 :
crENE(1, S_R, 160);
crENE(12, S_R, 80);
return(s);
case 32 :
crENE(1, S_R, 180);
crENE(12, S_R, 60);
return(m);
case 33 :
crENE(14, S_R, 210);
crENE(12, S_R, 60);
crENE(12, S_R, 180);
return(m);
case 34 :
crENE(1, S_R, 160);
crENE(14, S_R, 210);
crENE(12, S_R, 120);
return(s);
case 35 :
crENE(1, S_R, 120);
crENE(12, S_R, 100);
crENE(12, S_R, 140);
return(s);
case 36 :
crENE(1, S_R, 140);
crENE(14, S_R, 210);
crENE(12, S_R, 80);
crENE(12, S_R, 160);
return(s);
case 37 :
crENE(1, S_R, 80);
crENE(12, S_R, 100);
crENE(12, S_R, 140);
return(s);
case 38 :
crENE(1, S_R, 100);
crENE(14, S_R, 210);
crENE(12, S_R, 120);
return(s);
case 39 :
crENE(17, S_R, 120);
return(-1);
case 40 :
crENE(12, S_R, 100);
crENE(12, S_R, 140);
crENE(17, S_R, 120);
return(-1);
case 41 :
crENE(12, S_R, 100);
crENE(12, S_R, 140);
crENE(17, S_R, 120);
return(-1);
case 42 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(10);
return(xxs);
case 43 :
crPOW("powHP", S_R, 200, 180, 20, 0, 0);
rs(10);
return(xxs);
case 44 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(10);
return(xxs);
case 45 :
crPOW("powHP", S_R, 50, 180, 20, 0, 0);
rs(10);
return(xxs);
case 46 :
crPOW("powHP", S_R, 120, 180, 20, 0, 0);
rs(20);
return(xxs);
case 47 :
playMus("pX9Immortality.mp3", 9999);
crShipNPC("agtBlue", S_R, 180, 0);
agtBlue.goto(100, 180, 5);
return(s);
case 48 :
crShipNPC("agtBlack", S_R, 120, 1);
agtBlack.goto(350, 120, 5);
return(m);
case 49 :
CBackground.fpause(true);
var _local2 = new Array();
_local2[0] = new Array("pAgtBlue2", "Agent Blue", "I can't move...");
_local2[1] = new Array("pAgtBlack1", "Agent Black", "Finally, you have arrived.");
_local2[2] = new Array("pAgtBlack1", "Agent Black", "I have been waiting for you... RED!");
_local2[3] = new Array("pAgtBlue2", "Agent Blue", "What?");
_local2[4] = new Array("pAgtBlack1", "Agent Black", "Come Red! Join me!");
_local2[5] = new Array("pAgtBlue2", "Agent Blue", "Red don't come any closer. He'll bind you with his shadow.");
_local2[6] = new Array("pAgtBlack1", "Agent Black", "SILLENCE!!!");
say(_local2, true, false, 50);
return(-1);
case 50 :
CBackground.fpause(false);
xbg(1);
agtBlue.removeMovieClip();
return(l + s);
case 51 :
_local2 = new Array();
_local2[0] = new Array("pAgtBlack1", "Agent Black", "Come Red. With our powers combined we can rule the world!");
_local2[1] = new Array("pAgtBlack1", "Agent Black", "I need your power... The elemental Fire.");
_local2[2] = new Array("pAgtBlack1", "Agent Black", "With it we can melt the polar ice caps and cause global warming!");
_local2[3] = new Array("pAgtBlack1", "Agent Black", "Then we will rule the world!");
_local2[4] = new Array("pAgtBlack1", "Agent Black", "MUHAHAHAHAHA!!!");
_local2[5] = new Array("pAgtBlack1", "Agent Black", "What do you say?");
_local2[6] = new Array("pAgtBlack1", "Agent Black", "Silence huh...");
_local2[7] = new Array("pAgtBlack1", "Agent Black", "I guess I'll have to kill you then and absorb your power.");
_local2[8] = new Array("pAgtBlack1", "Agent Black", "You are not prepared!");
say(_local2, true, false, 50);
return(-1);
case 52 :
crBOSS(5, 350, 120);
agtBlack.removeMovieClip();
crMINIBOSS("agtBlackBullet", S_L, 120);
agtBlackBullet._x = _root.Player._x;
agtBlackBullet._y = 220;
agtBlackBullet.fire(false);
return(-1);
case 53 :
_root.GPAUSE = 1;
_root.Player.goto(150, 120, 5);
agtBlackBullet.destroy();
crShipNPC("agtBlack", 350, 120, 0);
crShipNPC("agtBlue", S_L, 80, 1);
crShipNPC("agtYellow", S_L, 160, 2);
crShipNPC("agtOrange", S_L, 60, 3);
crShipNPC("agtGreen", S_L, 180, 4);
crShipNPC("agtPurple", S_L, 120, 5);
agtBlue.goto(100, 80, 5);
agtYellow.goto(100, 160, 5);
agtOrange.goto(75, 60, 5);
agtGreen.goto(75, 180, 5);
agtPurple.goto(75, 120, 5);
return(m);
case 54 :
_root.GPAUSE = 0;
_local2 = new Array();
_local2[0] = new Array("pAgtBlue1", "Agent Blue", "Give it up black. Its over.");
_local2[1] = new Array("pAgtBlack1", "Agent Black", "Never!");
_local2[2] = new Array("pAgtBlue2", "Agent Blue", "Then we have no choice. Super mega rainbow beam form!");
_local2[3] = new Array("pAgtYellow1", "Agent Yellow", "YELLOW THUNDER!");
_local2[4] = new Array("pAgtOrange1", "Agent Orange", "ORANGE EARTH!");
_local2[5] = new Array("pAgtGreen1", "Agent Green", "GREEN NATURE!");
_local2[6] = new Array("pAgtPurple1", "Agent Purple", "PURPLE POISON!");
_local2[7] = new Array("pAgtBlue1", "Agent Blue", "BLUE WATER!");
say(_local2, true, false, 50);
return(-1);
case 55 :
SCORE = SCORE + (_root.Player.getHP() * 100);
kill();
_root.gotoAndStop("end");
return(-1);
}
}
Frame 7
function sendScores(userName, userScore) {
bSub.enabled = false;
var _local1 = new LoadVars();
_local1.userName = userName;
_local1.myScore = userScore;
var _local2 = new LoadVars();
_local2.onLoad = function (success) {
if (success) {
stopAllSounds();
bSub.enabled = false;
txtErr.text = "Score Submitted...";
} else {
bSub.enabled = true;
txtErr.text = "Error connecting to server.";
}
};
_local1.sendAndLoad("http://lanstrash.awardspace.com/f/butangiscore.php", _local2, "POST");
}
function sendScores2(userName, userScore) {
bSub.enabled = false;
var _local1 = new LoadVars();
_local1.userName = userName;
_local1.myScore = userScore;
var _local2 = new LoadVars();
_local2.onLoad = function (success) {
if (success) {
stopAllSounds();
bSub.enabled = false;
txtErr.text = "Score Submitted...";
} else {
bSub.enabled = true;
txtErr.text = "Error connecting to server.";
}
};
_local1.sendAndLoad("http://lanstrash.awardspace.com/l/butangiscore.php", _local2, "POST");
}
if (_root.DIFFICULTY == 0) {
_root.bSub.enabled = false;
txtErr.text = "Play the game in Normal or Hard mode to submit scores";
}
Symbol 12 MovieClip Frame 1
function onEnterFrame() {
if ((_currentframe % 2) == 0) {
peb = Math.round(Math.random() * 100);
ex = Math.round((Math.random() * 10) - 5);
ey = Math.round((Math.random() * 10) - 5);
if ((_x + ex) > 10) {
_x = 10;
} else if ((_x + ex) < -10) {
_x = -10;
} else {
_x = (_x + ex);
}
if ((_y + ey) > 10) {
_y = 10;
} else if ((_y + ey) < -10) {
_y = -10;
} else {
_y = (_y + ey);
}
}
if (this.black1._x == -1000) {
if (peb == 1) {
this.black1._x = this.black1._x + 1;
}
} else if (this.black1._x > 1000) {
this.black1._x = -1000;
} else {
this.black1._x = this.black1._x + 100;
}
if (this.black2._x == -1000) {
if (peb == 2) {
this.black2._x = this.black2._x + 1;
}
} else if (this.black2._x > 1000) {
this.black2._x = -1000;
} else {
this.black2._x = this.black2._x + 100;
}
}
Symbol 25 Button
on (release) {
_root.gotoAndStop("intro");
}
Symbol 26 MovieClip Frame 1
_root.stop();
pLoad = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (pLoad != 100) {
setProperty(bar, _xscale , pLoad);
} else {
gotoAndStop ("load");
}
Symbol 26 MovieClip Frame 2
gotoAndPlay (1);
Symbol 438 MovieClip [__Packages.PObject] Frame 0
class PObject extends MovieClip
{
var _x, _y, removeMovieClip;
function PObject () {
super();
}
function move(dir, spd, round) {
if (_root.GPAUSE < 2) {
if (dir == 180) {
_x = _x - spd;
} else if (round == undefined) {
_x = _x + (Math.cos((dir * 3.14) / 180) * spd);
_y = _y + ((Math.sin((dir * 3.14) / 180) * spd) * -1);
} else if (round == true) {
_x = _x + Math.round(Math.cos((dir * Math.PI) / 180) * spd);
_y = _y + Math.round((Math.sin((dir * Math.PI) / 180) * spd) * -1);
}
}
if (_root.Player.getHP() <= 0) {
removeMovieClip();
}
}
function cleanup(plusX, plusY) {
if ((plusX == undefined) and (plusY == undefined)) {
if ((((_x < -30) or (_x > (_root.R_W + 30))) or (_y < -30)) or (_y > (_root.R_H + 30))) {
return(true);
}
} else if ((((_x < (-plusX)) or (_x > (_root.R_W + plusX))) or (_y < (-plusY))) or (_y > (_root.R_H + plusY))) {
return(true);
}
return(false);
}
}
Symbol 439 MovieClip [__Packages.CPBullet] Frame 0
class CPBullet extends PObject
{
var spd, dir, move, cleanup, removeMovieClip;
function CPBullet () {
super();
}
static function getPOP() {
return(POP);
}
static function subPOP() {
POP--;
}
function Init(tdir, tspd) {
POP++;
spd = tspd;
dir = tdir;
}
function onEnterFrame() {
move(dir, spd);
if (cleanup(10, 10)) {
POP--;
removeMovieClip();
}
}
static var POP = 0;
static var loc = 0;
}
Symbol 440 MovieClip [__Packages.CMsgBox] Frame 0
class CMsgBox extends MovieClip
{
var arrSay, p, a, t, removeMovieClip;
function CMsgBox () {
super();
}
function getsaySkip() {
return(saySkip);
}
function setsaySkip(b) {
sayCTR = arrSay[sayNum][2].length;
saySkip = b;
}
function nextSay() {
sayNum = sayNum + 1;
sayCTR = 0;
_root.guiMsgBox.myPic.gotoAndStop(arrSay[sayNum][0]);
saySkip = false;
}
function init(tarrSay, tp, ta, tt) {
function playSnd(snd, time) {
snd1.stop();
snd1.attachSound(snd);
snd1.start(0, time);
}
arrSay = tarrSay;
p = tp;
a = ta;
t = tt;
_root.guiMsgBox.myPic.gotoAndStop(arrSay[0][0]);
if (p == true) {
_root.GPAUSE = 3;
}
if (a == false) {
_root.GSAY = true;
}
_root.guiMsgBox.b_skip._visible = false;
var snd1 = new Sound(this);
playSnd("sndMsg", 1);
}
function onEnterFrame() {
if (sayNum < arrSay.length) {
_root.guiMsgBox.nameTxt.text = arrSay[sayNum][1];
if (sayCTR <= arrSay[sayNum][2].length) {
_root.guiMsgBox.sayTxt.text = arrSay[sayNum][2].substr(0, sayCTR);
sayCTR++;
} else if (a == false) {
_root.guiMsgBox.b_skip._visible = true;
saySkip = true;
} else if (kill == false) {
_root.eT = t;
kill = true;
}
} else {
_root.GPAUSE = 0;
_root.eT = t;
_root.GSAY = false;
removeMovieClip();
}
if (_root.eT == 0) {
removeMovieClip();
}
}
var kill = false;
var sayCTR = 0;
var sayNum = 0;
var saySkip = false;
var press2 = false;
}
Symbol 441 MovieClip [__Packages.CEnemy] Frame 0
class CEnemy extends PObject
{
var getDepth, HP, dir, spd, mType, bType, bTime, gunTimer, bSPD, other, _x, _y, removeMovieClip, cleanup, hitTest, move, _rotation;
function CEnemy () {
super();
}
static function getPOP() {
return(POP);
}
function init(tHP, tdir, tspd, tmType, tbType, tbTime, tbWait, tbSPD) {
POP[getDepth() - 200] = 1;
HP = tHP;
dir = tdir;
spd = tspd;
mType = tmType;
bType = tbType;
bTime = tbTime;
gunTimer = tbWait;
bSPD = tbSPD;
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
runMove();
runFire();
if (COLS()) {
if (_root.Player.getinv() == 0) {
if (_root.DIFFICULTY == 0) {
_root.Player.addHP(-10);
} else if (_root.DIFFICULTY == 1) {
_root.Player.addHP(-15);
} else if (_root.DIFFICULTY == 2) {
_root.Player.addHP(-20);
}
_root.Player.setinv(30);
}
}
if (COLB()) {
var _local3 = _root.Player.getbDMG();
_root.crMISC("boom01", other._x, other._y);
CPBullet.subPOP();
other.removeMovieClip();
HP = HP - _local3;
if (HP <= 0) {
POP[getDepth() - 200] = 0;
_root.crMISC("boom05", _x, _y, 0);
_root.SCORE = _root.SCORE + (_local3 + HP);
if (mType == 2) {
_root.eT = 50;
}
removeMovieClip();
} else {
_root.SCORE = _root.SCORE + _local3;
}
}
if (cleanup()) {
POP[getDepth() - 200] = 0;
removeMovieClip();
}
}
}
function COLB() {
var _local4 = CPBullet.getPOP();
var _local3 = 0;
while (_local3 <= _local4) {
if (hitTest(_root["pBullet" + _local3.toString()])) {
other = _root["pBullet" + _local3.toString()];
return(true);
}
_local3++;
}
return(false);
}
function COLS() {
if (hitTest(_root.Player)) {
return(true);
}
return(false);
}
function runMove() {
switch (mType) {
case 0 :
move(dir, spd);
break;
case 1 :
if ((_x < 200) and (mFlag == false)) {
dir = 0;
mFlag = true;
}
move(dir, spd);
break;
case 2 :
if (_x < 300) {
if (mFlag == false) {
dir = 90;
mFlag = true;
}
}
if (_y <= 50) {
dir = 270;
} else if (_y >= 200) {
dir = 90;
}
move(dir, spd);
break;
case 3 :
dir = dir + 2;
_rotation = dir;
move(dir, spd);
break;
case 4 :
dir = dir - 2;
_rotation = dir;
move(dir, spd);
}
}
function runFire() {
switch (bType) {
case 0 :
break;
case 1 :
if (gunTimer <= 0) {
_root.crENBUL("ENBullet01", _x, _y, _root.cANG(_root.Player._x, _root.Player._y, _x, _y), bSPD);
gunTimer = bTime + Math.floor(Math.random(bTime));
} else {
gunTimer--;
}
break;
case 2 :
if (gunTimer <= 0) {
_root.crENBUL("ENBullet01", _x, _y, 150, bSPD);
_root.crENBUL("ENBullet01", _x, _y, 180, bSPD);
_root.crENBUL("ENBullet01", _x, _y, 210, bSPD);
gunTimer = bTime + Math.floor(Math.random(bTime));
} else {
gunTimer--;
}
break;
case 3 :
if (gunTimer <= 0) {
rot = rot + 10;
_root.crENBUL("ENBullet01", _x, _y, rot, bSPD);
if (rot == 720) {
gunTimer = bTime;
rot = 0;
}
} else {
gunTimer--;
}
}
}
static var POP = new Array(20);
var mFlag = false;
var rot = 0;
}
Symbol 442 MovieClip [__Packages.CENBullet] Frame 0
class CENBullet extends PObject
{
var spd, dir, move, hitTest, dmg, _x, _y, removeMovieClip, cleanup;
function CENBullet () {
super();
}
static function getPOP() {
return(POP);
}
static function subPOP() {
POP--;
}
function Init(tdir, tspd) {
POP++;
spd = tspd;
dir = tdir;
}
function onEnterFrame() {
move(dir, spd);
if (hitTest(_root.Player)) {
if (_root.Player.getinv() == 0) {
if (_root.DIFFICULTY == 0) {
dmg = -5;
} else if (_root.DIFFICULTY == 1) {
dmg = -10;
} else if (_root.DIFFICULTY == 2) {
dmg = -20;
}
_root.Player.addHP(dmg);
} else {
_root.Player.col();
}
_root.crMISC("boom01", _x, _y, 0);
POP--;
removeMovieClip();
}
if (cleanup()) {
POP--;
removeMovieClip();
}
}
static var POP = 0;
static var loc = 0;
}
Symbol 443 MovieClip [__Packages.CBackground] Frame 0
class CBackground extends MovieClip
{
var _width, _x, removeMovieClip;
function CBackground () {
super();
}
static function fpause(temp) {
tpause = temp;
}
function init(ttype, tspd) {
type = ttype;
spd = tspd;
}
function destroy() {
kill = true;
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
if (tpause == false) {
if (kill == false) {
if (type == 0) {
if (_x <= ((-_root.R_W) - ((_width - (_root.R_W * 2)) / 2))) {
_x = _x + _root.R_W;
} else {
_x = _x - spd;
}
} else if (type == 1) {
if (_x <= ((-_width) - _root.R_W)) {
_x = _root.R_W;
} else {
_x = _x - spd;
}
} else if (type == 2) {
if (_x != 0) {
_x = _x - spd;
}
}
} else {
_x = _x - spd;
time3--;
if (time3 <= 0) {
removeMovieClip();
}
if (_x <= -1280) {
removeMovieClip();
}
}
}
}
if (_root.Player.getHP() <= 0) {
removeMovieClip();
}
}
static var tpause = false;
var type = 0;
var spd = 20;
var kill = false;
var time3 = 120;
}
Symbol 444 MovieClip [__Packages.CShipNPC] Frame 0
class CShipNPC extends PObject
{
var spd, gotoX, _x, gotoY, _y, move, cleanup, removeMovieClip, myBoom, myTarget, myBullet;
function CShipNPC () {
super();
}
function goto(tgotoX, tgotoY, tspd) {
spd = tspd;
gotoX = ((_x % spd) + tgotoX) - (tgotoX % spd);
gotoY = ((_y % spd) + tgotoY) - (tgotoY % spd);
}
function onEnterFrame() {
if ((gotoX != _x) || (gotoY != _y)) {
move(_root.cANG(gotoX, gotoY, _x, _y), spd, true);
}
if (cleanup(100, 100)) {
removeMovieClip();
}
if (bTimer > 0) {
bTimer--;
if ((bTimer % 10) == 0) {
_root.crMISC(myBoom, _root[myTarget]._x, _y);
}
if (bTimer == 1) {
_root[myBullet].removeMovieClip();
}
}
if (_root.Player.getHP() <= 0) {
removeMovieClip();
}
}
function fire(bullet, target, timer, boom) {
_root.crMISC(bullet, _x + 10, _y + 10);
myBullet = bullet;
myTarget = target;
bTimer = timer;
myBoom = boom;
}
var bTimer = 0;
}
Symbol 445 MovieClip [__Packages.CBossMask] Frame 0
class CBossMask extends MovieClip
{
var removeMovieClip, _currentframe;
function CBossMask () {
super();
}
function destroy() {
kill = true;
}
function getReady() {
return(ready);
}
function onEnterFrame() {
if (kill == true) {
timer--;
if (timer == 0) {
removeMovieClip();
_root.enemyTimer = 50;
}
}
if (ready == false) {
if (_currentframe == 40) {
ready = true;
}
}
}
var timer = 100;
var kill = false;
var ready = false;
}
Symbol 446 MovieClip [__Packages.CBoss] Frame 0
class CBoss extends MovieClip
{
var HP, MAXHP, mask, _visible, other, _x, _y, removeMovieClip, hitTest;
function CBoss () {
super();
}
function init(tHP, tmask) {
HP = tHP;
MAXHP = HP;
mask = tmask;
_visible = false;
}
function addHP(tHP) {
HP = HP + tHP;
hpcheck(-tHP);
}
function checkCol() {
if (COLB()) {
var _local3 = _root.Player.getbDMG();
_root.crMISC("boom01", other._x, other._y);
CPBullet.subPOP();
other.removeMovieClip();
HP = HP - _local3;
hpcheck(_local3);
return(true);
}
return(false);
}
function hpcheck(dmg) {
if (HP <= 0) {
_root.crMISC("boom06", _x, _y, 0);
_root.SCORE = _root.SCORE + (dmg + HP);
_root.eT = 100;
_root.crPOW("powPow", _x, _y, 0, 5, 1, 1);
mask.destroy();
removeMovieClip();
_root.BOSS3Bullet.removeMovieClip();
} else {
_root.SCORE = _root.SCORE + dmg;
}
return(HP);
}
function COLB() {
var _local4 = CPBullet.getPOP();
var _local3 = 0;
while (_local3 <= _local4) {
if (hitTest(_root["pBullet" + _local3.toString()]._x, _root["pBullet" + _local3.toString()]._y, true)) {
_root.tint(mask, 255, 0, 0, 50);
tintFlag = true;
other = _root["pBullet" + _local3.toString()];
return(true);
}
_local3++;
}
return(false);
}
function modTint() {
if (tintFlag == true) {
_root.tint(mask, 0, 0, 0, 0);
}
}
var tintFlag = false;
}
Symbol 447 MovieClip [__Packages.CBoss1] Frame 0
class CBoss1 extends CBoss
{
var HP, bTimer, bTimer1, bTimer2, bSPD, angle, mask, modTint, checkCol, _x, _y;
function CBoss1 () {
super();
}
function init(tmask) {
function playSnd(snd, time) {
snd1.stop();
snd1.attachSound(snd);
snd1.start(0, time);
}
if (_root.DIFFICULTY == 0) {
HP = 300;
bTimer = 80;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 3;
angle = 30;
} else if (_root.DIFFICULTY == 1) {
HP = 400;
bTimer = 100;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 4;
angle = 30;
} else if (_root.DIFFICULTY == 2) {
HP = 450;
bTimer = 150;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 5;
angle = 25;
}
mask = tmask;
super.init(HP, tmask);
var snd1 = new Sound(this);
playSnd("sndRoar01", 1);
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
modTint();
checkCol();
if (bTimer1 == 0) {
if (bTimer2 > 0) {
if ((bTimer2 % 10) == 0) {
fire();
if (_root.DIFFICULTY == 2) {
fire2();
}
}
bTimer2--;
} else if (bTimer2 == 0) {
bTimer1 = bTimer;
bTimer2 = bTimer;
}
} else {
if (mask.getReady()) {
mask.gotoAndStop("stand");
}
bTimer1--;
}
}
}
function fire() {
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70), bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70) + angle, bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70) - angle, bSPD);
mask.gotoAndStop("fire");
}
function fire2() {
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70) + 35, bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70) - 35, bSPD);
}
}
Symbol 448 MovieClip [__Packages.CPow] Frame 0
class CPow extends PObject
{
var dir, spd, mType, pType, move, _x, _y, hitTest, removeMovieClip, cleanup;
function CPow () {
super();
}
static function getPOP() {
return(POP);
}
static function subPOP() {
POP--;
}
function init(tdir, tspd, tmType, tpType) {
POP++;
dir = tdir;
spd = tspd;
mType = tmType;
pType = tpType;
}
function onEnterFrame() {
switch (mType) {
case 0 :
move(dir, spd);
break;
case 1 :
move(_root.cANG(_root.Player._x, _root.Player._y, _x, _y), spd);
}
if (hitTest(_root.Player)) {
switch (pType) {
case 0 :
if (_root.DIFFICULTY > 0) {
_root.Player.addHP(1);
} else {
_root.Player.addHP(2);
}
_root.playSnd2("sndPow02", 1);
break;
case 1 :
_root.Player.addPOW(1);
_root.playSnd2("sndPow01", 1);
}
POP--;
removeMovieClip();
}
if (cleanup()) {
POP--;
removeMovieClip();
}
}
static var POP = 0;
}
Symbol 449 MovieClip [__Packages.CMiniBoss] Frame 0
class CMiniBoss extends PObject
{
var spd, gotoX, gotoY, move, _x, _y, other, cleanup, removeMovieClip, hitTest;
function CMiniBoss () {
super();
}
function goto(tgotoX, tgotoY, tspd) {
spd = tspd;
gotoX = tgotoX;
gotoY = tgotoY;
}
function fire(g, t) {
gun = g;
gTimer = t;
gTimer2 = gTimer;
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
move(_root.cANG(gotoX, gotoY, _x, _y), spd, true);
if (COLS()) {
if (_root.Player.getinv() == 0) {
_root.Player.addHP(-20);
_root.Player.setinv(30);
}
}
if (COLB()) {
var _local3 = _root.Player.getbDMG();
_root.crMISC("boom01", other._x, other._y);
CPBullet.subPOP();
other.removeMovieClip();
_root.SCORE = _root.SCORE + _local3;
}
if (gun == true) {
if (gTimer == 0) {
_root.crENBUL("ENBullet01", _x - 100, _y, _root.cANG(_root.Player._x, _root.Player._y, _x - 100, _y) - 30, bSPD);
_root.crENBUL("ENBullet01", _x - 100, _y, _root.cANG(_root.Player._x, _root.Player._y, _x - 100, _y), bSPD);
_root.crENBUL("ENBullet01", _x - 100, _y, _root.cANG(_root.Player._x, _root.Player._y, _x - 100, _y) + 30, bSPD);
gTimer = gTimer2;
} else {
gTimer--;
}
}
if (cleanup(100, 100)) {
removeMovieClip();
}
}
}
function destroy() {
_root.crMISC("boom05", _x, _y);
removeMovieClip();
}
function COLB() {
var _local4 = CPBullet.getPOP();
var _local3 = 0;
while (_local3 <= _local4) {
if (hitTest(_root["pBullet" + _local3.toString()])) {
other = _root["pBullet" + _local3.toString()];
return(true);
}
_local3++;
}
return(false);
}
function COLS() {
if (hitTest(_root.Player)) {
return(true);
}
return(false);
}
var gun = false;
var gTimer = 0;
var gTimer2 = 0;
var bSPD = 3;
}
Symbol 450 MovieClip [__Packages.CBoss2] Frame 0
class CBoss2 extends CBoss
{
var HP, bTimer, bTimer1, bTimer2, bSPD, mask, modTint, checkCol, _x, _y;
function CBoss2 () {
super();
}
function init(tmask) {
function playSnd(snd, time) {
snd1.stop();
snd1.attachSound(snd);
snd1.start(0, time);
}
if (_root.DIFFICULTY == 0) {
HP = 500;
bTimer = 80;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 3;
} else if (_root.DIFFICULTY == 1) {
HP = 600;
bTimer = 100;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 4;
} else if (_root.DIFFICULTY == 2) {
HP = 700;
bTimer = 150;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 5;
}
mask = tmask;
super.init(HP, tmask);
var snd1 = new Sound(this);
playSnd("sndHRoar", 1);
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
modTint();
checkCol();
if (bTimer1 == 0) {
if (bTimer2 > 0) {
if ((bTimer2 % 20) == 0) {
fire();
}
bTimer2--;
} else if (bTimer2 == 0) {
bTimer1 = bTimer;
bTimer2 = bTimer;
}
} else {
if (mask.getReady()) {
mask.gotoAndStop("stand");
}
bTimer1--;
}
if (g1 == 0) {
_root.agtBlue.fire("agtBlueBullet", "BOSS2", 60, "boom02");
super.addHP(-2);
g1 = 120;
} else {
g1--;
}
if (g2 == 0) {
_root.agtYellow.fire("agtYellowBullet", "BOSS2", 12, "boom01");
super.addHP(-1);
g2 = 30;
} else {
g2--;
}
}
}
function fire() {
_root.crBOSSBUL("BOSS2Bullet", _x, _y + 20, _root.cANG(_root.Player._x, _root.Player._y, _x, _y + 20), bSPD);
mask.gotoAndStop("fire");
}
var g1 = 120;
var g2 = 30;
}
Symbol 451 MovieClip [__Packages.CBoss2Bullet] Frame 0
class CBoss2Bullet extends PObject
{
var spd, dir, gotoAndStop, _rotation, move, other, _x, _y, removeMovieClip, hitTest, cleanup;
function CBoss2Bullet () {
super();
}
static function getPOP() {
return(POP);
}
static function subPOP() {
POP--;
}
function Init(tdir, tspd) {
POP++;
spd = tspd;
dir = tdir;
var _local2 = Math.floor((Math.random() * 3) + 1);
(gotoAndStop(_local2));// not popped
}
function onEnterFrame() {
if (_root.GPAUSE == 0) {
_rotation = _rotation + 5;
}
move(dir, spd);
if (COLB()) {
_root.crMISC("boom01", other._x, other._y);
CPBullet.subPOP();
other.removeMovieClip();
_root.crENBUL("ENBullet01", _x, _y, _root.cANG(_root.Player._x, _root.Player._y, _x, _y), 3);
_root.crENBUL("ENBullet01", _x, _y, 150, 3);
_root.crENBUL("ENBullet01", _x, _y, 180, 3);
_root.crENBUL("ENBullet01", _x, _y, 210, 3);
removeMovieClip();
}
if (hitTest(_root.Player)) {
if (_root.Player.getinv() == 0) {
_root.Player.addHP(dmg);
} else {
_root.Player.col();
}
_root.crMISC("boom01", _x, _y, 0);
POP--;
removeMovieClip();
}
if (cleanup()) {
POP--;
removeMovieClip();
}
}
function COLB() {
var _local4 = CPBullet.getPOP();
var _local3 = 0;
while (_local3 <= _local4) {
if (hitTest(_root["pBullet" + _local3.toString()])) {
other = _root["pBullet" + _local3.toString()];
return(true);
}
_local3++;
}
return(false);
}
static var POP = 0;
static var loc = 0;
var dmg = -25;
}
Symbol 452 MovieClip [__Packages.CBoss3Bullet] Frame 0
class CBoss3Bullet extends PObject
{
var spd, gotoX, gotoY, move, _x, _y, other, cleanup, removeMovieClip, hitTest;
function CBoss3Bullet () {
super();
}
function goto(tgotoX, tgotoY, tspd) {
spd = tspd;
gotoX = tgotoX;
gotoY = tgotoY;
tempX = gotoX;
tempY = gotoY;
}
function setscore(b) {
score = b;
}
function onEnterFrame() {
move(_root.cANG(gotoX, gotoY, _x, _y), spd, true);
if (COLS()) {
if (_root.Player.getinv() == 0) {
_root.Player.addHP(-20);
_root.Player.setinv(30);
}
}
if (COLB()) {
var _local3 = _root.Player.getbDMG();
if (score == true) {
_root.SCORE = _root.SCORE + _local3;
}
_root.crMISC("boom01", other._x, other._y);
CPBullet.subPOP();
other.removeMovieClip();
}
if (gun == 1) {
if (_x > -50) {
_x = _x - 20;
} else {
gun = 0;
}
} else if (gun == 2) {
if (_x > pX) {
gotoX = pX - 1;
gotoY = pY;
spd = 5;
} else {
gun = 0;
}
} else {
gotoX = tempX;
gotoY = tempY;
spd = 5;
if (_x > tempX) {
_x = tempX;
_y = tempY;
}
}
if (cleanup(100, 100)) {
removeMovieClip();
}
}
function fire(type) {
gun = type;
tempX = _x;
tempY = _y;
pX = _root.Player._x;
pY = _root.Player._y;
}
function destroy() {
_root.crMISC("boom05", _x, _y);
removeMovieClip();
}
function COLB() {
var _local4 = CPBullet.getPOP();
var _local3 = 0;
while (_local3 <= _local4) {
if (hitTest(_root["pBullet" + _local3.toString()])) {
other = _root["pBullet" + _local3.toString()];
return(true);
}
_local3++;
}
return(false);
}
function COLS() {
if (hitTest(_root.Player)) {
return(true);
}
return(false);
}
var gun = 0;
var tempX = MovieClip.prototype._x;
var tempY = MovieClip.prototype._y;
var pX = MovieClip.prototype._x;
var pY = MovieClip.prototype._y;
var score = true;
}
Symbol 453 MovieClip [__Packages.CBoss3] Frame 0
class CBoss3 extends CBoss
{
var HP, bTimer, bTimer1, bTimer2, bSPD, nummod, _x, _y, mask, modTint, checkCol, _rotation;
function CBoss3 () {
super();
}
function init(tmask) {
if (_root.DIFFICULTY == 0) {
HP = 500;
bTimer = 80;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 3;
nummod = 25;
} else if (_root.DIFFICULTY == 1) {
HP = 600;
bTimer = 100;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 4;
nummod = 20;
} else if (_root.DIFFICULTY == 2) {
HP = 700;
bTimer = 150;
bTimer1 = bTimer;
bTimer2 = bTimer;
bSPD = 5;
nummod = 20;
}
_root.crMINIBOSS("BOSS3Bullet", _x - 150, _y);
_root.BOSS3Bullet.setscore(false);
mask = tmask;
super.init(HP, tmask);
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
modTint();
if (checkCol()) {
if (_rotation < 90) {
_rotation = _rotation + 5;
mask._rotation = mask._rotation + 5;
} else {
_rotation = 0;
mask._rotation = 0;
}
}
if (bTimer1 == 0) {
if (bTimer2 > 0) {
if ((bTimer2 % nummod) == 0) {
fire();
}
if (bTimer2 == 1) {
fire2();
}
if (_root.DIFFICULTY == 2) {
if ((bTimer2 % 15) == 0) {
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70), bSPD);
}
}
bTimer2--;
} else if (bTimer2 == 0) {
bTimer1 = bTimer;
bTimer2 = bTimer;
}
} else {
bTimer1--;
}
}
}
function fire() {
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70), bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70) + 30, bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70) - 30, bSPD);
}
function fire2() {
_root.BOSS3Bullet.fire(2);
}
var g1 = 120;
var g2 = 30;
}
Symbol 454 MovieClip [__Packages.CAgtWhite] Frame 0
class CAgtWhite extends PObject
{
var spd, gotoX, gotoY, move, _x, _y, other, removeMovieClip, hitTest;
function CAgtWhite () {
super();
}
function goto(tgotoX, tgotoY, tspd) {
spd = tspd;
gotoX = tgotoX;
gotoY = tgotoY;
}
function onEnterFrame() {
move(_root.cANG(gotoX, gotoY, _x, _y), spd, true);
if (COLS()) {
if (inv == true) {
_y = Math.floor((Math.random() * 180) + 20);
gotoY = _y;
}
}
if (COLB()) {
if (inv == true) {
_y = Math.floor((Math.random() * 180) + 20);
gotoY = _y;
} else {
_root.crMISC("boom01", other._x, other._y);
CPBullet.subPOP();
other.removeMovieClip();
_root.SCORE = _root.SCORE + _root.Player.getbDMG();
}
}
if (_root.GPAUSE < 2) {
if (inv == true) {
if (gunTimer <= 0) {
if (Math.floor(Math.random() * 2) == 0) {
_root.crENBUL("ENBullet01", _x, _y, 150, bSPD);
_root.crENBUL("ENBullet01", _x, _y, 180, bSPD);
_root.crENBUL("ENBullet01", _x, _y, 210, bSPD);
} else {
_root.crENBUL("ENBullet01", _x, _y, _root.cANG(_root.Player._x, _root.Player._y, _x, _y), bSPD);
}
gunTimer = bTime;
} else {
gunTimer--;
}
}
}
if (inv == true) {
if (_root.GPAUSE == 4) {
_root.eCTR = 37;
_root.eT = 0;
inv = false;
_root.GPAUSE = 3;
}
}
}
function destroy() {
_root.crPOW("powPow", _x, _y, 0, 5, 1, 1);
_root.crMISC("boom05", _x, _y);
removeMovieClip();
}
function COLB() {
var _local4 = CPBullet.getPOP();
var _local3 = 0;
while (_local3 <= _local4) {
if (hitTest(_root["pBullet" + _local3.toString()])) {
other = _root["pBullet" + _local3.toString()];
return(true);
}
_local3++;
}
return(false);
}
function COLS() {
if (hitTest(_root.Player)) {
return(true);
}
return(false);
}
var bTime = 35;
var gunTimer = CAgtWhite.prototype.bTime;
var bSPD = 5;
var inv = true;
}
Symbol 455 MovieClip [__Packages.CMiniBoss2] Frame 0
class CMiniBoss2 extends PObject
{
var spd, gotoX, gotoY, move, _x, _y, gotoAndStop, gotoAndPlay, cleanup, removeMovieClip, hitTest;
function CMiniBoss2 () {
super();
}
function goto(tgotoX, tgotoY, tspd) {
spd = tspd;
gotoX = tgotoX;
gotoY = tgotoY;
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
move(_root.cANG(gotoX, gotoY, _x, _y), spd, true);
if (COLS()) {
if (_root.Player.getinv() == 0) {
_root.Player.addHP(-20);
_root.Player.setinv(30);
}
}
if (gun == true) {
(gotoAndStop("fire"));// not popped
if (time > 0) {
time--;
} else {
(gotoAndPlay(1));// not popped
gun = false;
}
}
if (cleanup(100, 100)) {
removeMovieClip();
}
}
}
function fire(ttime) {
gun = true;
time = ttime;
}
function destroy() {
_root.crMISC("boom05", _x, _y);
_root.SCORE = _root.SCORE + 1500;
removeMovieClip();
}
function COLS() {
if (hitTest(_root.Player)) {
return(true);
}
return(false);
}
var gun = true;
var time = 0;
}
Symbol 456 MovieClip [__Packages.CBoss4] Frame 0
class CBoss4 extends CBoss
{
var HP, bTimer, bTimer1, bTimer2, bSPD, mask, modTint, checkCol, _x, _y;
function CBoss4 () {
super();
}
function init(tmask) {
function playSnd(snd, time) {
snd1.stop();
snd1.attachSound(snd);
snd1.start(0, time);
}
if (_root.DIFFICULTY == 0) {
HP = 3500;
bTimer = 80;
bTimer1 = bTimer;
bTimer2 = 90;
bSPD = 3;
} else if (_root.DIFFICULTY == 1) {
HP = 4000;
bTimer = 60;
bTimer1 = bTimer;
bTimer2 = 90;
bSPD = 4;
} else if (_root.DIFFICULTY == 2) {
HP = 4500;
bTimer = 60;
bTimer1 = bTimer;
bTimer2 = 90;
bSPD = 5;
}
mask = tmask;
super.init(HP, tmask);
var snd1 = new Sound(this);
playSnd("sndRoar04", 1);
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
modTint();
checkCol();
if (bTimer1 == 0) {
if (bTimer2 > 0) {
if ((bTimer2 % 5) == 0) {
fire();
fire2();
}
if ((bTimer2 % 10) == 0) {
fire3();
}
bTimer2--;
} else if (bTimer2 == 0) {
bTimer1 = bTimer;
bTimer2 = 90;
}
} else {
bTimer1--;
}
}
}
function fire() {
_root.crENBUL("ENBullet01", _x - 50, _y, 90 + (bTimer2 * 2), bSPD);
}
function fire2() {
_root.crENBUL("ENBullet01", _x - 50, _y, 270 - (bTimer2 * 2), bSPD);
}
function fire3() {
_root.crENBUL("ENBullet01", _x - 50, _y, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y), bSPD);
}
var g1 = 120;
var g2 = 30;
}
Symbol 457 MovieClip [__Packages.CAgtBlackBullet] Frame 0
class CAgtBlackBullet extends PObject
{
var _x, removeMovieClip, gotoAndStop, _y;
function CAgtBlackBullet () {
super();
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
_x = _root.Player._x;
if (bTimer == 0) {
fire2();
bTimer = 200;
} else {
bTimer--;
}
}
if (_root.Player.getHP() <= 0) {
removeMovieClip();
}
}
function fire(f) {
if (f == true) {
gotoAndStop("fire");
} else {
gotoAndStop("stand");
}
}
function destroy() {
removeMovieClip();
}
function fire2() {
_root.crENBUL("ENBullet01", _x + 30, _y, _root.cANG(_root.Player._x, _root.Player._y, _x, _y), bSPD);
_root.crENBUL("ENBullet01", _x - 30, _y, _root.cANG(_root.Player._x, _root.Player._y, _x, _y), bSPD);
}
var bTimer = 200;
var bSPD = 2;
}
Symbol 458 MovieClip [__Packages.CBoss5] Frame 0
class CBoss5 extends CBoss
{
var HP, bTimer, bTimer1, bTimer2, bSPD, bTimer3, bTimer4, rot, rot1, rot2, mask, modTint, checkCol, _x, _y;
function CBoss5 () {
super();
}
function init(tmask) {
if (_root.DIFFICULTY == 0) {
HP = 15000;
bTimer = 250;
bTimer1 = 60;
bTimer2 = 90;
bSPD = 3;
bTimer3 = 300;
bTimer4 = 70;
rot = 0;
rot1 = 360;
rot2 = 360;
} else if (_root.DIFFICULTY == 1) {
HP = 20000;
bTimer = 200;
bTimer1 = 60;
bTimer2 = 90;
bSPD = 3;
bTimer3 = 300;
bTimer4 = 70;
rot = 0;
rot1 = 720;
rot2 = 720;
} else if (_root.DIFFICULTY == 2) {
HP = 25000;
bTimer = 150;
bTimer1 = 60;
bTimer2 = 90;
bSPD = 4;
bTimer3 = 300;
bTimer4 = 70;
rot = 0;
rot1 = 720;
rot2 = 720;
}
mask = tmask;
super.init(HP, tmask);
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
modTint();
checkCol();
if (bTimer1 == 0) {
if (bTimer2 > 0) {
if ((bTimer2 % 5) == 0) {
fire();
fire2();
}
if ((bTimer2 % 10) == 0) {
fire5();
}
bTimer2--;
} else if (bTimer2 == 0) {
if (rot < rot1) {
fire3();
rot = rot + 10;
} else if (rot2 >= 0) {
fire4();
rot2 = rot2 - 10;
} else {
bTimer1 = bTimer;
bTimer2 = 90;
rot = 0;
rot2 = 720;
}
}
} else {
bTimer1--;
}
if (bTimer3 == 0) {
_root.GPAUSE = 1;
_root.Player.goto(_root.agtBlackBullet._x, _root.Player._y, 10);
_root.agtBlackBullet.fire(true);
_root.tint(_root.Player, 0, 0, 0, 50);
if (bTimer4 == 0) {
_root.tint(_root.Player, 0, 0, 0, 0);
_root.GPAUSE = 0;
_root.agtBlackBullet.fire(false);
bTimer4 = 70;
bTimer3 = 300;
} else {
bTimer4--;
}
} else {
bTimer3--;
}
}
}
function fire() {
_root.crENBUL("ENBullet01", _x - 50, _y, 90 + (bTimer2 * 2), bSPD);
}
function fire2() {
_root.crENBUL("ENBullet01", _x - 50, _y, 270 - (bTimer2 * 2), bSPD);
}
function fire3() {
_root.crENBUL("ENBullet01", _x - 50, _y, rot, bSPD);
}
function fire4() {
_root.crENBUL("ENBullet01", _x - 50, _y, rot2 + 5, bSPD);
}
function fire5() {
_root.crENBUL("ENBullet01", _x - 50, _y, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y), bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y) + 30, bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y) - 30, bSPD);
}
}
Symbol 459 MovieClip [__Packages.COption] Frame 0
class COption extends PObject
{
var _x, _y;
function COption () {
super();
}
function init(tx, ty) {
xpos = tx;
ypos = ty;
}
function onEnterFrame() {
_x = _root.Player._x + xpos;
_y = _root.Player._y + ypos;
}
function fire() {
var _local3 = 0;
switch (loc) {
case 1 :
_local3 = _local3 - 3;
break;
case 2 :
_local3 = _local3 + 3;
break;
case 3 :
loc = 0;
}
loc++;
_root.crBUL("pBullet", _x + 20, _y + _local3, 0, 20, 0);
}
var xpos = 0;
var ypos = 0;
static var loc = 0;
}
Symbol 460 MovieClip [__Packages.CPlayer] Frame 0
class CPlayer extends PObject
{
var _x, _y, attachMovie, move;
function CPlayer () {
super();
}
function getHP() {
return(HP);
}
function getMAXHP() {
return(MAXHP);
}
function addHP(num) {
if (num < 0) {
_root.playSnd2("sndExplode", 1);
}
if (num <= (MAXHP - HP)) {
HP = HP + num;
} else {
HP = MAXHP;
}
if (HP <= 0) {
_root.kill();
_root.gotoAndStop("gameover");
}
_root.guiHPBar.gotoAndStop(HP + 1);
}
function addPOW(num) {
POW = POW + num;
if (POW <= 4) {
setgunTimer(8 - POW);
}
if (POW == 4) {
_root.crOPTION(-30, -30, 0);
} else if (POW == 5) {
_root.crOPTION(-30, 30, 1);
}
setbDMG(1);
addHP(20);
}
function getbDMG() {
return(bDMG);
}
function setbDMG(num) {
bDMG = bDMG + num;
}
function getgunTimer() {
return(gunTimerSet);
}
function setgunTimer(num) {
gunTimerSet = num;
}
function getinv() {
return(inv);
}
function setinv(num) {
inv = num;
}
function col() {
if (parry == 1) {
_root.playSnd2("sndShield", 1);
_root.SCORE = _root.SCORE + 2;
addHP(1);
parry = 2;
parryCTR = 5;
_root.GPAUSE = 2;
}
}
function goto(tgotoX, tgotoY) {
gotoX = ((_x % pSPD) + tgotoX) - (tgotoX % pSPD);
gotoY = ((_y % pSPD) + tgotoY) - (tgotoY % pSPD);
}
function pMoveRIGHT() {
if ((_root.GPAUSE == 0) || (_root.GPAUSE == 2)) {
_x = _x + pSPD;
_root.pTurbo._x = _root.pTurbo._x + pSPD;
}
}
function pMoveUP() {
if ((_root.GPAUSE == 0) || (_root.GPAUSE == 2)) {
_y = _y - pSPD;
_root.pTurbo._y = _root.pTurbo._y - pSPD;
}
}
function pMoveLEFT() {
if ((_root.GPAUSE == 0) || (_root.GPAUSE == 2)) {
_x = _x - pSPD;
_root.pTurbo._x = _root.pTurbo._x - pSPD;
}
}
function pMoveDOWN() {
if ((_root.GPAUSE == 0) || (_root.GPAUSE == 2)) {
_y = _y + pSPD;
_root.pTurbo._y = _root.pTurbo._y + pSPD;
}
}
function pParry() {
if (parry == 0) {
var _local3 = attachMovie("pShield", "pShield", 1002);
if (_root.DIFFICULTY == 0) {
inv = 10;
} else if (_root.DIFFICULTY == 1) {
inv = 8;
} else if (_root.DIFFICULTY == 2) {
inv = 5;
}
parry = 1;
}
}
function pFire() {
if ((_root.GPAUSE == 0) || (_root.GPAUSE == 2)) {
if (gunTimer == 0) {
var _local3 = 0;
switch (loc) {
case 1 :
_local3 = -3;
break;
case 2 :
_local3 = 3;
break;
case 3 :
loc = 0;
}
loc++;
if (POW == 0) {
_root.crBUL("pBullet", _x + 40, _y + _local3, 0, bSPD, 0);
} else if (POW == 1) {
_root.crBUL("pBullet", _x + 40, _y + _local3, 0, bSPD, 1);
} else if (POW >= 2) {
_root.crBUL("pBullet", _x + 40, _y + _local3, 0, bSPD, 2);
}
if (POW >= 4) {
_root.option0.fire();
_root.option1.fire();
}
_root.playSnd1("sndB1", 1);
gunTimer = gunTimerSet;
}
}
}
function onEnterFrame() {
if ((_root.GPAUSE == 0) || (_root.GPAUSE == 2)) {
if (gunTimer > 0) {
gunTimer = gunTimer - 1;
}
if (inv > 0) {
if ((inv % 2) == 0) {
_root.tint(this, 255, 255, 255, 100);
} else {
_root.tint(this, 0, 0, 0, 0);
}
inv--;
} else if (parry == 1) {
parry = 2;
parryCTR = 10;
}
if (parry == 2) {
parryCTR--;
if (parryCTR == 0) {
parry = 0;
if (_root.GPAUSE == 2) {
_root.GPAUSE = 0;
}
}
}
}
if (_root.GPAUSE == 1) {
move(_root.cANG(gotoX, gotoY, _x, _y), pSPD);
_root.pTurbo._x = _x - 10;
_root.pTurbo._y = _y - 10;
}
}
var HP = 100;
var MAXHP = 150;
var pSPD = 6;
var bDMG = 5;
var bSPD = 20;
var POW = 0;
var gunTimer = 0;
var gunTimerSet = 8;
var gotoX = 0;
var gotoY = 0;
var inv = 0;
var parry = 0;
var parryCTR = 0;
static var loc = 0;
}
Symbol 35 MovieClip [Player] Frame 1
#initclip 87
Object.registerClass("Player", CPlayer);
#endinitclip
Symbol 41 MovieClip [pBullet] Frame 1
#initclip 24
Object.registerClass("pBullet", CPBullet);
#endinitclip
Symbol 81 MovieClip [guiMsgBox] Frame 1
#initclip 25
Object.registerClass("guiMsgBox", CMsgBox);
#endinitclip
Symbol 87 MovieClip [boom01] Frame 8
this.removeMovieClip();
Symbol 94 MovieClip [EN1] Frame 1
#initclip 26
Object.registerClass("EN1", CEnemy);
#endinitclip
Symbol 97 MovieClip [ENBullet01] Frame 1
#initclip 27
Object.registerClass("ENBullet01", CENBullet);
#endinitclip
Symbol 108 MovieClip [boom05] Frame 10
this.removeMovieClip();
Symbol 111 MovieClip [bgTunnelA] Frame 1
#initclip 28
Object.registerClass("bgTunnelA", CBackground);
#endinitclip
Symbol 114 MovieClip [bgTunnelC] Frame 1
#initclip 29
Object.registerClass("bgTunnelC", CBackground);
#endinitclip
Symbol 117 MovieClip [bgTunnelB] Frame 1
#initclip 30
Object.registerClass("bgTunnelB", CBackground);
#endinitclip
Symbol 122 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 125 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 126 MovieClip [bgCityC] Frame 1
#initclip 31
Object.registerClass("bgCityC", CBackground);
#endinitclip
Symbol 129 MovieClip [bgCityB] Frame 1
#initclip 32
Object.registerClass("bgCityB", CBackground);
#endinitclip
Symbol 132 MovieClip [bgCityA] Frame 1
#initclip 33
Object.registerClass("bgCityA", CBackground);
#endinitclip
Symbol 135 MovieClip [agtBlue] Frame 1
#initclip 34
Object.registerClass("agtBlue", CShipNPC);
#endinitclip
Symbol 138 MovieClip [agtYellow] Frame 1
#initclip 35
Object.registerClass("agtYellow", CShipNPC);
#endinitclip
Symbol 142 MovieClip [EN2] Frame 1
#initclip 36
Object.registerClass("EN2", CEnemy);
#endinitclip
Symbol 145 MovieClip [EN3] Frame 1
#initclip 37
Object.registerClass("EN3", CEnemy);
#endinitclip
Symbol 148 MovieClip [EN4] Frame 1
#initclip 38
Object.registerClass("EN4", CEnemy);
#endinitclip
Symbol 151 MovieClip [EN5] Frame 1
#initclip 39
Object.registerClass("EN5", CEnemy);
#endinitclip
Symbol 162 MovieClip [pShield] Frame 6
this.removeMovieClip();
Symbol 164 MovieClip [EN6] Frame 1
#initclip 40
Object.registerClass("EN6", CEnemy);
#endinitclip
Symbol 169 MovieClip [BOSS1MASK] Frame 1
#initclip 41
Object.registerClass("BOSS1MASK", CBossMask);
#endinitclip
Symbol 169 MovieClip [BOSS1MASK] Frame 40
stop();
Symbol 171 MovieClip [BOSS1] Frame 1
#initclip 42
Object.registerClass("BOSS1", CBoss1);
#endinitclip
Symbol 171 MovieClip [BOSS1] Frame 40
stop();
Symbol 172 MovieClip [boom06] Frame 109
this.removeMovieClip();
Symbol 175 MovieClip [powHP] Frame 1
#initclip 43
Object.registerClass("powHP", CPow);
#endinitclip
Symbol 178 MovieClip [MINIBOSS1] Frame 1
#initclip 44
Object.registerClass("MINIBOSS1", CMiniBoss);
#endinitclip
Symbol 179 MovieClip [EN7] Frame 1
#initclip 45
Object.registerClass("EN7", CEnemy);
#endinitclip
Symbol 182 MovieClip [boom02] Frame 12
this.removeMovieClip();
Symbol 185 MovieClip [bgOCityB] Frame 1
#initclip 46
Object.registerClass("bgOCityB", CBackground);
#endinitclip
Symbol 188 MovieClip [bgOCityA] Frame 1
#initclip 47
Object.registerClass("bgOCityA", CBackground);
#endinitclip
Symbol 191 MovieClip [Wall1] Frame 1
var kill = false;
Symbol 191 MovieClip [Wall1] Frame 26
if (kill == false) {
gotoAndPlay ("start");
}
Symbol 191 MovieClip [Wall1] Frame 35
this.removeMovieClip();
Symbol 196 MovieClip [BOSS2MASK] Frame 1
#initclip 48
Object.registerClass("BOSS2MASK", CBossMask);
#endinitclip
Symbol 196 MovieClip [BOSS2MASK] Frame 40
stop();
Symbol 198 MovieClip [BOSS2] Frame 1
#initclip 49
Object.registerClass("BOSS2", CBoss2);
#endinitclip
Symbol 198 MovieClip [BOSS2] Frame 40
stop();
Symbol 202 MovieClip [BOSS2Bullet] Frame 1
#initclip 50
Object.registerClass("BOSS2Bullet", CBoss2Bullet);
#endinitclip
Symbol 206 MovieClip [bgRiverA] Frame 1
#initclip 51
Object.registerClass("bgRiverA", CBackground);
#endinitclip
Symbol 221 MovieClip [bgSplash] Frame 1
var flw = true;
onEnterFrame = function () {
if (flw == true) {
if (_root.Player._y >= 200) {
_x = _root.Player._x;
_y = _root.Player._y;
} else {
flw = false;
}
} else if (_root.Player._y >= 200) {
_y = _root.Player._y;
_x = _root.Player._x;
flw = true;
gotoAndPlay (1);
}
};
Symbol 221 MovieClip [bgSplash] Frame 11
if (_root.Player._y >= 200) {
gotoAndPlay ("loop");
}
Symbol 221 MovieClip [bgSplash] Frame 12
flw = false;
Symbol 221 MovieClip [bgSplash] Frame 14
_x = -150;
_y = -150;
stop();
Symbol 234 MovieClip [EN8] Frame 1
#initclip 52
Object.registerClass("EN8", CEnemy);
#endinitclip
Symbol 237 MovieClip [BOSS3Bullet] Frame 1
#initclip 53
Object.registerClass("BOSS3Bullet", CBoss3Bullet);
#endinitclip
Symbol 240 MovieClip [BOSS3MASK] Frame 1
#initclip 54
Object.registerClass("BOSS3MASK", CBossMask);
#endinitclip
Symbol 240 MovieClip [BOSS3MASK] Frame 40
stop();
Symbol 242 MovieClip [BOSS3] Frame 1
#initclip 55
Object.registerClass("BOSS3", CBoss3);
#endinitclip
Symbol 242 MovieClip [BOSS3] Frame 40
stop();
Symbol 245 MovieClip [powPow] Frame 1
#initclip 56
Object.registerClass("powPow", CPow);
#endinitclip
Symbol 250 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 253 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 254 MovieClip [bgOceanC] Frame 1
#initclip 57
Object.registerClass("bgOceanC", CBackground);
#endinitclip
Symbol 261 MovieClip [bgOceanA] Frame 1
#initclip 58
Object.registerClass("bgOceanA", CBackground);
#endinitclip
Symbol 264 MovieClip [EN9] Frame 1
#initclip 59
Object.registerClass("EN9", CEnemy);
#endinitclip
Symbol 266 MovieClip [EN10] Frame 1
#initclip 60
Object.registerClass("EN10", CEnemy);
#endinitclip
Symbol 269 MovieClip [agtWhite] Frame 1
#initclip 61
Object.registerClass("agtWhite", CAgtWhite);
#endinitclip
Symbol 273 MovieClip [MINIBOSS2] Frame 1
#initclip 62
Object.registerClass("MINIBOSS2", CMiniBoss2);
#endinitclip
Symbol 273 MovieClip [MINIBOSS2] Frame 3
gotoAndPlay (1);
Symbol 276 MovieClip [bgJapanA] Frame 1
#initclip 63
Object.registerClass("bgJapanA", CBackground);
#endinitclip
Symbol 280 MovieClip [bgJapanC] Frame 1
#initclip 64
Object.registerClass("bgJapanC", CBackground);
#endinitclip
var tpause = false;
onEnterFrame = function () {
if (_root.GPAUSE < 2) {
if (tpause == false) {
bg._x = bg._x - 0.5;
if (bg._x <= -400) {
bg._x = 0;
}
}
}
if (_root.Player.getHP() <= 0) {
this.removeMovieClip();
}
};
Symbol 283 MovieClip [agtGreen] Frame 1
#initclip 65
Object.registerClass("agtGreen", CShipNPC);
#endinitclip
Symbol 286 MovieClip [agtOrange] Frame 1
#initclip 66
Object.registerClass("agtOrange", CShipNPC);
#endinitclip
Symbol 289 MovieClip [MINIBOSS3] Frame 1
#initclip 67
Object.registerClass("MINIBOSS3", CBoss3Bullet);
#endinitclip
Symbol 290 MovieClip [EN11] Frame 1
#initclip 68
Object.registerClass("EN11", CEnemy);
#endinitclip
Symbol 291 MovieClip [BOSS4] Frame 1
#initclip 69
Object.registerClass("BOSS4", CBoss4);
#endinitclip
Symbol 291 MovieClip [BOSS4] Frame 40
stop();
Symbol 292 MovieClip [BOSS4MASK] Frame 1
#initclip 70
Object.registerClass("BOSS4MASK", CBossMask);
#endinitclip
Symbol 292 MovieClip [BOSS4MASK] Frame 40
stop();
Symbol 295 MovieClip [PAC] Frame 1
#initclip 71
Object.registerClass("PAC", CMiniBoss);
#endinitclip
Symbol 298 MovieClip [bgSnowC] Frame 1
#initclip 72
Object.registerClass("bgSnowC", CBackground);
#endinitclip
Symbol 301 MovieClip [bgSnowB] Frame 1
#initclip 73
Object.registerClass("bgSnowB", CBackground);
#endinitclip
Symbol 304 MovieClip [bgSnowA] Frame 1
#initclip 74
Object.registerClass("bgSnowA", CBackground);
#endinitclip
Symbol 307 MovieClip [agtPurple] Frame 1
#initclip 75
Object.registerClass("agtPurple", CShipNPC);
#endinitclip
Symbol 310 MovieClip [agtBlack] Frame 1
#initclip 76
Object.registerClass("agtBlack", CShipNPC);
#endinitclip
Symbol 314 MovieClip [BOSS5MASK] Frame 1
#initclip 77
Object.registerClass("BOSS5MASK", CBossMask);
#endinitclip
Symbol 314 MovieClip [BOSS5MASK] Frame 40
stop();
Symbol 316 MovieClip [agtBlackBullet] Frame 1
#initclip 78
Object.registerClass("agtBlackBullet", CAgtBlackBullet);
#endinitclip
Symbol 318 MovieClip [BOSS5] Frame 1
#initclip 79
Object.registerClass("BOSS5", CBoss5);
#endinitclip
Symbol 318 MovieClip [BOSS5] Frame 40
stop();
Symbol 321 MovieClip [option] Frame 1
#initclip 80
Object.registerClass("option", COption);
#endinitclip
Symbol 341 MovieClip [EN12] Frame 1
#initclip 81
Object.registerClass("EN12", CEnemy);
#endinitclip
Symbol 342 MovieClip [EN13] Frame 1
#initclip 82
Object.registerClass("EN13", CEnemy);
#endinitclip
Symbol 343 MovieClip [EN14] Frame 1
#initclip 83
Object.registerClass("EN14", CEnemy);
#endinitclip
Symbol 344 MovieClip [EN15] Frame 1
#initclip 84
Object.registerClass("EN15", CEnemy);
#endinitclip
Symbol 345 MovieClip [EN16] Frame 1
#initclip 85
Object.registerClass("EN16", CEnemy);
#endinitclip
Symbol 346 MovieClip [EN17] Frame 1
#initclip 86
Object.registerClass("EN17", CEnemy);
#endinitclip
Symbol 350 Button
on (release) {
getURL ("http://lanstrash.com/", "_blank");
}
Symbol 361 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 364 Button
on (release) {
menu.gotoAndStop("controls");
}
Symbol 367 Button
on (release) {
menu.gotoAndStop("credits");
}
Symbol 370 Button
on (release) {
menu.gotoAndStop("quality");
}
Symbol 377 Button
on (release) {
_root.ctrl = 0;
_root.uUP = 38;
_root.uDOWN = 40;
_root.uLEFT = 37;
_root.uRIGHT = 39;
_root.uSHIELD = 65;
_root.uFIRE = 83;
_root.uPAUSE = 13;
ctxt.gotoAndStop(1);
}
Symbol 380 Button
on (release) {
_root.ctrl = 1;
_root.uUP = 87;
_root.uDOWN = 83;
_root.uLEFT = 65;
_root.uRIGHT = 68;
_root.uSHIELD = 72;
_root.uFIRE = 74;
_root.uPAUSE = 13;
ctxt.gotoAndStop(2);
}
Symbol 384 MovieClip Frame 1
stop();
Symbol 387 Button
on (release) {
_quality = "low";
qtxt.text = _quality;
}
Symbol 390 Button
on (release) {
_quality = "medium";
qtxt.text = _quality;
}
Symbol 393 Button
on (release) {
_quality = "high";
qtxt.text = _quality;
}
Symbol 404 Button
on (release) {
_root.DIFFICULTY = 0;
dtxt.text = "EASY";
}
Symbol 407 Button
on (release) {
_root.DIFFICULTY = 1;
dtxt.text = "NORMAL";
}
Symbol 410 Button
on (release) {
_root.DIFFICULTY = 2;
dtxt.text = "HARD";
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
ctxt.gotoAndStop(_root.ctrl + 1);
Symbol 412 MovieClip Frame 3
qtxt.text = _quality;
Symbol 412 MovieClip Frame 5
if (_root.DIFFICULTY == 0) {
dtxt.text = "EASY";
} else if (_root.DIFFICULTY == 1) {
dtxt.text = "NORMAL";
} else if (_root.DIFFICULTY == 2) {
dtxt.text = "HARD";
}
Symbol 416 Button
on (release) {
menu.gotoAndStop("difficulty");
}
Symbol 419 Button
on (release) {
getURL ("http://lanstrash.awardspace.com/", "_blank");
}
Symbol 424 MovieClip Frame 86
stop();
var t = 250;
onEnterFrame = function () {
t--;
if (t == 0) {
play();
}
};
Symbol 424 MovieClip Frame 273
stop();
var t = 100;
onEnterFrame = function () {
t--;
if (t == 0) {
_root.gotoAndStop("gameover");
}
};
Symbol 428 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 434 Button
on (release) {
if (_root.NAME == "") {
_root.txtErr.text = "Please Type in a Name";
} else {
if (_root.DIFFICULTY == 1) {
_root.sendScores(_root.NAME, _root.SCORE);
} else if (_root.DIFFICULTY == 2) {
_root.sendScores2(_root.NAME, _root.SCORE);
}
_root.txtErr.text = "Sending Scores, Please Wait...";
}
}