Frame 3
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");
}
};
_quality = "low";
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 (com.wiicade.WiiMote.isDown(com.wiicade.WiiMote.BUTTON_UP)) {
if (Player._y > 30) {
Player.pMoveUP();
}
}
if (com.wiicade.WiiMote.isDown(com.wiicade.WiiMote.BUTTON_DOWN)) {
if (Player._y < (R_H - 30)) {
Player.pMoveDOWN();
}
}
if (com.wiicade.WiiMote.isDown(com.wiicade.WiiMote.BUTTON_LEFT)) {
if (Player._x > 20) {
Player.pMoveLEFT();
}
}
if (com.wiicade.WiiMote.isDown(com.wiicade.WiiMote.BUTTON_RIGHT)) {
if (Player._x < (R_W - 40)) {
Player.pMoveRIGHT();
}
}
if (com.wiicade.WiiMote.isDown(com.wiicade.WiiMote.BUTTON_1)) {
if (press1 == false) {
Player.pParry();
press1 = true;
}
} else {
press1 = false;
}
if (com.wiicade.WiiMote.isDown(com.wiicade.WiiMote.BUTTON_2)) {
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 (com.wiicade.WiiMote.isDown(com.wiicade.WiiMote.BUTTON_A)) {
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)) {
Player.addHP(-25);
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 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();
com.wiicade.WiiMote.init();
var R_W = 400;
var R_H = 250;
var NAME = "";
var SCORE = 0;
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;
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++;
}
}
}
};
var en = new Array();
en[1] = new Array(5, 180, 12, 0, 0, 0);
en[2] = new Array(5, 180, 8, 0, 1, 120);
en[3] = new Array(100, 180, 5, 2, 2, 30, 100, 5);
en[4] = new Array(7, 180, 15, 0, 0, 0);
en[5] = new Array(15, 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, 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(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(23, 180, 8, 0, 1, 120);
en[16] = new Array(52, 180, 2, 0, 1, 50);
en[17] = new Array(1000, 180, 5, 2, 3, 90, 100, 3);
var mus = new Sound(this);
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();
_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?");
_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 pause button (ENTER).");
_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);
case 10 :
crENE(3, S_R, R_H / 2);
return(-1);
case 11 :
_local1 = new Array();
_local1[0] = new Array("pAgtYellow1", "Agent Yellow", "Heads up! Got 3 on my tail. Coming your way!");
say(_local1, false, true, m);
return(-1);
case 12 :
crShipNPC("agtYellow", S_R + 30, 60, 0);
agtYellow._xscale = agtYellow._xscale * -1;
agtYellow.goto(-600, 60, 20);
return(m);
case 13 :
crENE(4, S_R, 60);
return(s);
case 14 :
crENE(4, S_R, 70);
return(s);
case 15 :
crENE(4, S_R, 50);
return(s);
case 16 :
crENE(5, S_R, 220);
return(m + s);
case 17 :
crENE(2, S_R, 180);
rs(3);
return(xs);
case 18 :
crENE(2, S_R, 120);
rs(3);
return(xs);
case 19 :
crENE(5, S_R, 220);
rs(2);
return(m);
case 20 :
crENE(2, S_R, 150);
return(xs);
case 21 :
crENE(2, S_R, 100);
crENE(2, S_R, 150);
return(xs);
case 22 :
crENE(2, S_R, 100);
return(xs);
case 23 :
crENE(2, S_R, 70);
rs(5);
return(xs);
case 24 :
return(m);
case 25 :
_local1 = new Array();
_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 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 :
XWall("Wall11");
return(s);
case 52 :
MINIBOSS1.goto(350, 200, 5);
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 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);
}
}
Symbol 12 MovieClip Frame 1
function onEnterFrame() {
if ((_currentframe % 2) == 0) {
peb = Math.round(Math.random() * 150);
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 23 Button
on (release) {
_root.gotoAndStop("intro");
}
Symbol 24 MovieClip Frame 1
_root.stop();
pLoad = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (pLoad != 100) {
setProperty(bar, _xscale , pLoad);
} else {
gotoAndStop ("load");
}
Symbol 24 MovieClip Frame 2
gotoAndPlay (1);
Symbol 389 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 390 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 391 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) {
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;
}
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 392 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) {
_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 393 MovieClip [__Packages.CENBullet] Frame 0
class CENBullet extends PObject
{
var spd, dir, move, hitTest, _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) {
_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;
var dmg = -10;
}
Symbol 394 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 395 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 396 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 397 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 398 MovieClip [__Packages.CBoss1] Frame 0
class CBoss1 extends CBoss
{
var mask, modTint, checkCol, _x, _y;
function CBoss1 () {
super();
}
function init(tmask) {
mask = tmask;
super.init(HP, tmask);
}
function onEnterFrame() {
if (_root.GPAUSE < 2) {
modTint();
checkCol();
if (bTimer1 == 0) {
if (bTimer2 > 0) {
if ((bTimer2 % 10) == 0) {
fire(2);
}
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) + 30, bSPD);
_root.crENBUL("ENBullet01", _x - 50, _y - 70, _root.cANG(_root.Player._x, _root.Player._y, _x - 50, _y - 70) - 30, bSPD);
mask.gotoAndStop("fire");
}
var HP = 400;
var bTimer = 100;
var bTimer1 = CBoss1.prototype.bTimer;
var bTimer2 = CBoss1.prototype.bTimer;
var bSPD = 4;
}
Symbol 399 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 :
_root.Player.addHP(1);
break;
case 1 :
_root.Player.addPOW(1);
}
POP--;
removeMovieClip();
}
if (cleanup()) {
POP--;
removeMovieClip();
}
}
static var POP = 0;
}
Symbol 400 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 401 MovieClip [__Packages.CBoss2] Frame 0
class CBoss2 extends CBoss
{
var mask, modTint, checkCol, _x, _y;
function CBoss2 () {
super();
}
function init(tmask) {
mask = tmask;
super.init(HP, tmask);
}
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 HP = 600;
var bTimer = 100;
var bTimer1 = CBoss2.prototype.bTimer;
var bTimer2 = CBoss2.prototype.bTimer;
var bSPD = 4;
var g1 = 120;
var g2 = 30;
}
Symbol 402 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 403 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 404 MovieClip [__Packages.CBoss3] Frame 0
class CBoss3 extends CBoss
{
var _x, _y, mask, modTint, checkCol, _rotation;
function CBoss3 () {
super();
}
function init(tmask) {
_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 % 25) == 0) {
fire();
}
if (bTimer2 == 1) {
fire2();
}
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 HP = 600;
var bTimer = 100;
var bTimer1 = CBoss3.prototype.bTimer;
var bTimer2 = CBoss3.prototype.bTimer;
var bSPD = 4;
var g1 = 120;
var g2 = 30;
}
Symbol 405 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 = 0;
}
}
}
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 406 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 407 MovieClip [__Packages.CBoss4] Frame 0
class CBoss4 extends CBoss
{
var mask, modTint, checkCol, _x, _y;
function CBoss4 () {
super();
}
function init(tmask) {
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) {
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 HP = 4500;
var bTimer = 60;
var bTimer1 = CBoss4.prototype.bTimer;
var bTimer2 = 90;
var bSPD = 2;
var g1 = 120;
var g2 = 30;
}
Symbol 408 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 409 MovieClip [__Packages.CBoss5] Frame 0
class CBoss5 extends CBoss
{
var mask, modTint, checkCol, _x, _y;
function CBoss5 () {
super();
}
function init(tmask) {
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 < 720) {
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);
}
var HP = 20000;
var bTimer = 200;
var bTimer1 = 60;
var bTimer2 = 90;
var bSPD = 3;
var bTimer3 = 300;
var bTimer4 = 70;
var rot = 0;
var rot2 = 720;
}
Symbol 410 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 411 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 <= (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.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 _local2 = attachMovie("pShield", "pShield", 1002);
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 < 2) {
_root.crBUL("pBullet", _x + 40, _y + _local3, 0, bSPD, 0);
} else {
_root.crBUL("pBullet", _x + 40, _y + _local3, 0, bSPD, 1);
}
if (POW >= 4) {
_root.option0.fire();
_root.option1.fire();
}
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 412 MovieClip [__Packages.com.wiicade.WiiMote] Frame 0
class com.wiicade.WiiMote
{
static var kc5, _instance, kc0, kc1, dispatchEvent;
var lc;
function WiiMote () {
mx.events.EventDispatcher.initialize(com.wiicade.WiiMote);
lc = new LocalConnection();
lc.connect("wii");
lc.keysUpdated = mx.utils.Delegate.create(this, keysUpdated);
Mouse.addListener(this);
Key.addListener(this);
kc5 = 0;
}
static function init() {
if (_instance == null) {
_instance = new com.wiicade.WiiMote();
resetKeyMappings();
}
}
static function resetKeyMappings() {
kc0 = new Array();
kc1 = new Array();
kc0[65] = BUTTON_LEFT;
kc0[87] = BUTTON_UP;
kc0[68] = BUTTON_RIGHT;
kc0[83] = BUTTON_DOWN;
kc0[72] = BUTTON_1;
kc0[74] = BUTTON_2;
kc0[13] = BUTTON_A;
kc0[32] = BUTTON_B;
kc0[187] = BUTTON_PLUS;
kc0[189] = BUTTON_MINUS;
kc1[BUTTON_LEFT] = 65;
kc1[BUTTON_UP] = 87;
kc1[BUTTON_RIGHT] = 68;
kc1[BUTTON_DOWN] = 83;
kc1[BUTTON_1] = 72;
kc1[BUTTON_2] = 74;
kc1[BUTTON_A] = 13;
kc1[BUTTON_B] = 32;
kc1[BUTTON_PLUS] = 187;
kc1[BUTTON_MINUS] = 189;
}
static function isRotated() {
return(rotated);
}
static function setRotated(rotate) {
rotated = rotate;
}
static function getMappingForKey(kc3) {
return(kc0[kc3]);
}
static function getKeyMapping(kc4) {
return(kc1[kc4]);
}
static function setKeyMapping(kc4, kc3) {
var _local1 = kc1[kc4];
if (_local1) {
kc0[_local1] = null;
}
kc0[kc3] = kc4;
kc1[kc4] = kc3;
}
static function isDown(kc4) {
if (rotated && (allowRotate)) {
if (kc4 == BUTTON_UP) {
kc4 = BUTTON_RIGHT;
} else if (kc4 == BUTTON_RIGHT) {
kc4 = BUTTON_DOWN;
} else if (kc4 == BUTTON_DOWN) {
kc4 = BUTTON_LEFT;
} else if (kc4 == BUTTON_LEFT) {
kc4 = BUTTON_UP;
}
}
return((kc5 & kc4) > 0);
}
function keysUpdated(kc0) {
kc5 = kc0;
dispatchEvent({type:"keysUpdated"});
}
function onMouseDown() {
kc5 = kc5 | BUTTON_A;
dispatchEvent({type:"keysUpdated"});
}
function onMouseUp() {
kc5 = kc5 & (BUTTON_A ^ 1023);
dispatchEvent({type:"keysUpdated"});
}
function onKeyDown() {
var _local1 = Key.getCode();
if (kc0[_local1]) {
allowRotate = false;
kc5 = kc5 | kc0[_local1];
dispatchEvent({type:"keysUpdated"});
}
}
function onKeyUp() {
var _local1 = Key.getCode();
if (kc0[_local1]) {
kc5 = kc5 & (kc0[_local1] ^ 1023);
dispatchEvent({type:"keysUpdated"});
}
}
static var BUTTON_UP = 4;
static var BUTTON_DOWN = 8;
static var BUTTON_RIGHT = 2;
static var BUTTON_LEFT = 1;
static var BUTTON_1 = 16;
static var BUTTON_2 = 32;
static var BUTTON_A = 64;
static var BUTTON_B = 128;
static var BUTTON_PLUS = 256;
static var BUTTON_MINUS = 512;
static var rotated = false;
static var allowRotate = true;
}
Symbol 413 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 414 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 32 MovieClip [Player] Frame 1
#initclip 90
Object.registerClass("Player", CPlayer);
#endinitclip
Symbol 37 MovieClip [pBullet] Frame 1
#initclip 27
Object.registerClass("pBullet", CPBullet);
#endinitclip
Symbol 77 MovieClip [guiMsgBox] Frame 1
#initclip 28
Object.registerClass("guiMsgBox", CMsgBox);
#endinitclip
Symbol 83 MovieClip [boom01] Frame 8
this.removeMovieClip();
Symbol 90 MovieClip [EN1] Frame 1
#initclip 29
Object.registerClass("EN1", CEnemy);
#endinitclip
Symbol 93 MovieClip [ENBullet01] Frame 1
#initclip 30
Object.registerClass("ENBullet01", CENBullet);
#endinitclip
Symbol 103 MovieClip [boom05] Frame 10
this.removeMovieClip();
Symbol 106 MovieClip [bgTunnelA] Frame 1
#initclip 31
Object.registerClass("bgTunnelA", CBackground);
#endinitclip
Symbol 109 MovieClip [bgTunnelC] Frame 1
#initclip 32
Object.registerClass("bgTunnelC", CBackground);
#endinitclip
Symbol 112 MovieClip [bgTunnelB] Frame 1
#initclip 33
Object.registerClass("bgTunnelB", CBackground);
#endinitclip
Symbol 117 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 120 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 121 MovieClip [bgCityC] Frame 1
#initclip 34
Object.registerClass("bgCityC", CBackground);
#endinitclip
Symbol 124 MovieClip [bgCityB] Frame 1
#initclip 35
Object.registerClass("bgCityB", CBackground);
#endinitclip
Symbol 127 MovieClip [bgCityA] Frame 1
#initclip 36
Object.registerClass("bgCityA", CBackground);
#endinitclip
Symbol 130 MovieClip [agtBlue] Frame 1
#initclip 37
Object.registerClass("agtBlue", CShipNPC);
#endinitclip
Symbol 133 MovieClip [agtYellow] Frame 1
#initclip 38
Object.registerClass("agtYellow", CShipNPC);
#endinitclip
Symbol 137 MovieClip [EN2] Frame 1
#initclip 39
Object.registerClass("EN2", CEnemy);
#endinitclip
Symbol 140 MovieClip [EN3] Frame 1
#initclip 40
Object.registerClass("EN3", CEnemy);
#endinitclip
Symbol 143 MovieClip [EN4] Frame 1
#initclip 41
Object.registerClass("EN4", CEnemy);
#endinitclip
Symbol 146 MovieClip [EN5] Frame 1
#initclip 42
Object.registerClass("EN5", CEnemy);
#endinitclip
Symbol 157 MovieClip [pShield] Frame 6
this.removeMovieClip();
Symbol 159 MovieClip [EN6] Frame 1
#initclip 43
Object.registerClass("EN6", CEnemy);
#endinitclip
Symbol 164 MovieClip [BOSS1MASK] Frame 1
#initclip 44
Object.registerClass("BOSS1MASK", CBossMask);
#endinitclip
Symbol 164 MovieClip [BOSS1MASK] Frame 40
stop();
Symbol 166 MovieClip [BOSS1] Frame 1
#initclip 45
Object.registerClass("BOSS1", CBoss1);
#endinitclip
Symbol 166 MovieClip [BOSS1] Frame 40
stop();
Symbol 167 MovieClip [boom06] Frame 109
this.removeMovieClip();
Symbol 170 MovieClip [powHP] Frame 1
#initclip 46
Object.registerClass("powHP", CPow);
#endinitclip
Symbol 173 MovieClip [MINIBOSS1] Frame 1
#initclip 47
Object.registerClass("MINIBOSS1", CMiniBoss);
#endinitclip
Symbol 174 MovieClip [EN7] Frame 1
#initclip 48
Object.registerClass("EN7", CEnemy);
#endinitclip
Symbol 177 MovieClip [boom02] Frame 12
this.removeMovieClip();
Symbol 180 MovieClip [bgOCityB] Frame 1
#initclip 49
Object.registerClass("bgOCityB", CBackground);
#endinitclip
Symbol 183 MovieClip [bgOCityA] Frame 1
#initclip 50
Object.registerClass("bgOCityA", CBackground);
#endinitclip
Symbol 186 MovieClip [Wall1] Frame 1
var kill = false;
Symbol 186 MovieClip [Wall1] Frame 26
if (kill == false) {
gotoAndPlay ("start");
}
Symbol 186 MovieClip [Wall1] Frame 35
this.removeMovieClip();
Symbol 191 MovieClip [BOSS2MASK] Frame 1
#initclip 51
Object.registerClass("BOSS2MASK", CBossMask);
#endinitclip
Symbol 191 MovieClip [BOSS2MASK] Frame 40
stop();
Symbol 193 MovieClip [BOSS2] Frame 1
#initclip 52
Object.registerClass("BOSS2", CBoss2);
#endinitclip
Symbol 193 MovieClip [BOSS2] Frame 40
stop();
Symbol 197 MovieClip [BOSS2Bullet] Frame 1
#initclip 53
Object.registerClass("BOSS2Bullet", CBoss2Bullet);
#endinitclip
Symbol 201 MovieClip [bgRiverA] Frame 1
#initclip 54
Object.registerClass("bgRiverA", CBackground);
#endinitclip
Symbol 216 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 216 MovieClip [bgSplash] Frame 11
if (_root.Player._y >= 200) {
gotoAndPlay ("loop");
}
Symbol 216 MovieClip [bgSplash] Frame 12
flw = false;
Symbol 216 MovieClip [bgSplash] Frame 14
_x = -150;
_y = -150;
stop();
Symbol 228 MovieClip [EN8] Frame 1
#initclip 55
Object.registerClass("EN8", CEnemy);
#endinitclip
Symbol 231 MovieClip [BOSS3Bullet] Frame 1
#initclip 56
Object.registerClass("BOSS3Bullet", CBoss3Bullet);
#endinitclip
Symbol 234 MovieClip [BOSS3MASK] Frame 1
#initclip 57
Object.registerClass("BOSS3MASK", CBossMask);
#endinitclip
Symbol 234 MovieClip [BOSS3MASK] Frame 40
stop();
Symbol 236 MovieClip [BOSS3] Frame 1
#initclip 58
Object.registerClass("BOSS3", CBoss3);
#endinitclip
Symbol 236 MovieClip [BOSS3] Frame 40
stop();
Symbol 239 MovieClip [powPow] Frame 1
#initclip 59
Object.registerClass("powPow", CPow);
#endinitclip
Symbol 244 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 247 MovieClip Frame 1
onEnterFrame = function () {
_x = (_x - 0.1);
if (_x <= ((-_width) - 100)) {
_x = 400;
_y = (Math.random() * 100);
}
};
Symbol 248 MovieClip [bgOceanC] Frame 1
#initclip 60
Object.registerClass("bgOceanC", CBackground);
#endinitclip
Symbol 255 MovieClip [bgOceanA] Frame 1
#initclip 61
Object.registerClass("bgOceanA", CBackground);
#endinitclip
Symbol 258 MovieClip [EN9] Frame 1
#initclip 62
Object.registerClass("EN9", CEnemy);
#endinitclip
Symbol 260 MovieClip [EN10] Frame 1
#initclip 63
Object.registerClass("EN10", CEnemy);
#endinitclip
Symbol 263 MovieClip [agtWhite] Frame 1
#initclip 64
Object.registerClass("agtWhite", CAgtWhite);
#endinitclip
Symbol 267 MovieClip [MINIBOSS2] Frame 1
#initclip 65
Object.registerClass("MINIBOSS2", CMiniBoss2);
#endinitclip
Symbol 267 MovieClip [MINIBOSS2] Frame 3
gotoAndPlay (1);
Symbol 270 MovieClip [bgJapanA] Frame 1
#initclip 66
Object.registerClass("bgJapanA", CBackground);
#endinitclip
Symbol 274 MovieClip [bgJapanC] Frame 1
#initclip 67
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;
}
}
}
};
Symbol 277 MovieClip [agtGreen] Frame 1
#initclip 68
Object.registerClass("agtGreen", CShipNPC);
#endinitclip
Symbol 280 MovieClip [agtOrange] Frame 1
#initclip 69
Object.registerClass("agtOrange", CShipNPC);
#endinitclip
Symbol 283 MovieClip [MINIBOSS3] Frame 1
#initclip 70
Object.registerClass("MINIBOSS3", CBoss3Bullet);
#endinitclip
Symbol 284 MovieClip [EN11] Frame 1
#initclip 71
Object.registerClass("EN11", CEnemy);
#endinitclip
Symbol 285 MovieClip [BOSS4] Frame 1
#initclip 72
Object.registerClass("BOSS4", CBoss4);
#endinitclip
Symbol 285 MovieClip [BOSS4] Frame 40
stop();
Symbol 286 MovieClip [BOSS4MASK] Frame 1
#initclip 73
Object.registerClass("BOSS4MASK", CBossMask);
#endinitclip
Symbol 286 MovieClip [BOSS4MASK] Frame 40
stop();
Symbol 289 MovieClip [PAC] Frame 1
#initclip 74
Object.registerClass("PAC", CMiniBoss);
#endinitclip
Symbol 292 MovieClip [bgSnowC] Frame 1
#initclip 75
Object.registerClass("bgSnowC", CBackground);
#endinitclip
Symbol 295 MovieClip [bgSnowB] Frame 1
#initclip 76
Object.registerClass("bgSnowB", CBackground);
#endinitclip
Symbol 298 MovieClip [bgSnowA] Frame 1
#initclip 77
Object.registerClass("bgSnowA", CBackground);
#endinitclip
Symbol 301 MovieClip [agtPurple] Frame 1
#initclip 78
Object.registerClass("agtPurple", CShipNPC);
#endinitclip
Symbol 304 MovieClip [agtBlack] Frame 1
#initclip 79
Object.registerClass("agtBlack", CShipNPC);
#endinitclip
Symbol 308 MovieClip [BOSS5MASK] Frame 1
#initclip 80
Object.registerClass("BOSS5MASK", CBossMask);
#endinitclip
Symbol 308 MovieClip [BOSS5MASK] Frame 40
stop();
Symbol 310 MovieClip [agtBlackBullet] Frame 1
#initclip 81
Object.registerClass("agtBlackBullet", CAgtBlackBullet);
#endinitclip
Symbol 312 MovieClip [BOSS5] Frame 1
#initclip 82
Object.registerClass("BOSS5", CBoss5);
#endinitclip
Symbol 312 MovieClip [BOSS5] Frame 40
stop();
Symbol 315 MovieClip [option] Frame 1
#initclip 83
Object.registerClass("option", COption);
#endinitclip
Symbol 327 MovieClip [EN12] Frame 1
#initclip 84
Object.registerClass("EN12", CEnemy);
#endinitclip
Symbol 328 MovieClip [EN13] Frame 1
#initclip 85
Object.registerClass("EN13", CEnemy);
#endinitclip
Symbol 329 MovieClip [EN14] Frame 1
#initclip 86
Object.registerClass("EN14", CEnemy);
#endinitclip
Symbol 330 MovieClip [EN15] Frame 1
#initclip 87
Object.registerClass("EN15", CEnemy);
#endinitclip
Symbol 331 MovieClip [EN16] Frame 1
#initclip 88
Object.registerClass("EN16", CEnemy);
#endinitclip
Symbol 332 MovieClip [EN17] Frame 1
#initclip 89
Object.registerClass("EN17", CEnemy);
#endinitclip
Symbol 336 Button
on (release) {
getURL ("http://lanstrash.com/", "_blank");
}
Symbol 344 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 347 Button
on (release) {
menu.gotoAndStop("controls");
}
Symbol 350 Button
on (release) {
menu.gotoAndStop("credits");
}
Symbol 353 Button
on (release) {
menu.gotoAndStop("quality");
}
Symbol 367 Button
on (release) {
_quality = "low";
}
Symbol 370 Button
on (release) {
_quality = "medium";
}
Symbol 373 Button
on (release) {
_quality = "high";
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 86
stop();
var t = 350;
onEnterFrame = function () {
t--;
if (t == 0) {
play();
}
};
Symbol 381 MovieClip Frame 273
stop();
var t = 350;
onEnterFrame = function () {
t--;
if (t == 0) {
_root.gotoAndStop("gameover");
}
};
Symbol 385 Button
on (release) {
_root.gotoAndStop("menu");
}