Frame 2
stop();
this.onEnterFrame = function () {
var _local3 = Math.round(_root.getBytesLoaded());
var _local2 = Math.round(_root.getBytesTotal());
var _local4 = _local3 / _local2;
prelaoder.loadbar._width = _local4 * 100;
if (_local3 == _local2) {
_root.gotoAndStop("wiicade");
} else {
_root.gotoAndPlay(1);
}
};
Frame 5
stop();
var time = 0;
wiifade_mc.onEnterFrame = function () {
time++;
if (((this._alpha > 0) and (time < 72)) and (time > 12)) {
this._alpha = this._alpha - 4;
}
if (time >= 84) {
this._alpha = this._alpha + 4;
}
if (time > 132) {
gotoAndStop ("init");
}
};
wiifade_mc.onRelease = function () {
getURL ("http://wiicade.com/home.aspx", "_blank");
};
Frame 10
function countDown() {
nFrames++;
if ((nFrames % 24) == 0) {
if (nTime > 0) {
nTime--;
nSecs--;
if (nSecs < 0) {
nSecs = 59;
nMins--;
}
} else {
timeOver = true;
gotoAndStop ("end");
}
if (nSecs > 9) {
hud.time_txt.text = (nMins + ":") + nSecs;
} else {
hud.time_txt.text = (nMins + ":0") + nSecs;
}
}
}
function hitCount() {
if (nHits > 1) {
hud.combo_txt._visible = true;
hud.combo_txt.text = nHits + " hits!";
}
if (nReset == true) {
if (nHits > 1) {
updateScore(nHits * 100);
}
nHits = 0;
}
if (displayTime < 1) {
hud.combo_txt._visible = false;
} else {
displayTime--;
}
}
function updateScore(Score) {
if (valentMode == false) {
nScore = nScore + Score;
}
hud.score_txt.text = "sc " + nScore;
}
function createBullet(bulletType) {
var _local2 = mBulletClip.attachMovie(bulletType, "mBullet" + nBullet, nBullet, {_x:Player._x, _y:Player._y - 70});
nBullet++;
}
function bulletCollide(Caller) {
for (i in aEnemy_array) {
if (Caller.hitTest(aEnemy_array[i].hitarea)) {
aEnemy_array[i].nHP = aEnemy_array[i].nHP - 1;
delete Caller.onEnterFrame;
Caller.gotoAndPlay("des");
if (aEnemy_array[i].nHP < 1) {
delete aEnemy_array[i].onEnterFrame;
aEnemy_array[i].gotoAndPlay("des");
}
}
}
}
function chargeCollide(Caller) {
for (i in aEnemy_array) {
if (Caller.hitTest(aEnemy_array[i].hitarea)) {
if (Caller.damage > aEnemy_array[i].nHP) {
aEnemy_array[i].nHP = aEnemy_array[i].nHP - Caller.damage;
Caller.damage = Caller.damage - 2;
nHits++;
nReset = false;
displayTime = 30;
} else if (Caller.damage == aEnemy_array[i].nHP) {
aEnemy_array[i].nHP = aEnemy_array[i].nHP - Caller.damage;
nHits++;
nReset = true;
delete Caller.onEnterFrame;
Caller.gotoAndPlay("des");
} else if (Caller.damage < aEnemy_array[i].nHP) {
aEnemy_array[i].nHP = aEnemy_array[i].nHP - Caller.damage;
nReset = true;
delete Caller.onEnterFrame;
Caller.gotoAndPlay("des");
}
if (aEnemy_array[i].nHP < 1) {
delete aEnemy_array[i].onEnterFrame;
aEnemy_array[i].gotoAndPlay("des");
}
}
}
}
function clearPlayer() {
Player.gflash.removeMovieClip();
_root.cshield.removeMovieClip();
delete Player.onEnterFrame;
}
function destroyPlayer() {
gameOver = true;
life_mc._visible = false;
Player._visible = true;
clearPlayer();
Player.gotoAndPlay("des");
}
function initEnemy(Caller, HP, Speed, Score) {
Caller.nHP = HP;
Caller.nSpeed = Speed;
Caller.nscore = Score;
Caller.nTime = 0;
Caller.nhandler = 0;
}
function createEnemy(enemyType, xPos, yPos) {
var _local1 = mEnemyClip.attachMovie(enemyType, "mEnemy" + nEnemy, nEnemy, {_x:xPos, _y:yPos});
_local1.ID = nEnemy;
nEnemy++;
aEnemy_array.push(_local1);
}
function repeatEnemy(Reps, Freq, enemyType, xPos, yPos) {
var p = 0;
var i = 0;
var _local3 = _root.createEmptyMovieClip("mHandlerClip" + nHandler, _root.getNextHighestDepth());
if (nHandler < 4) {
nHandler++;
} else {
nHandler = 0;
}
_local3.onEnterFrame = function () {
i++;
if (p < Reps) {
if (i == Freq) {
i = 0;
p++;
createEnemy(enemyType, xPos, yPos);
}
}
if (p == Reps) {
delete this.onEnterFrame;
}
};
}
function removeEnemy(Caller, Score) {
updateScore(Score);
Caller.removeMovieClip();
aEnemy_array.splice(Caller.ID, 1);
}
function removeSeeker(Caller) {
if (Caller._y > (stageh + 100)) {
removeEnemy(Caller, 0);
}
if (Caller._y < -100) {
removeEnemy(Caller, 0);
}
if (Caller._x > (stagew + 100)) {
removeEnemy(Caller, 0);
}
if (Caller._x < -100) {
removeEnemy(Caller, 0);
}
}
function createEnemyBullet(Caller, bulletType, Speed, Direction) {
var _local1 = mEBulletClip.attachMovie(bulletType, "mEnemyBullet" + nEbullet, nEbullet, {_x:Caller._x, _y:Caller._y});
nEbullet++;
_local1.nSpeed = Speed;
_local1.nDirection = Direction;
}
function createSpread(Caller, bulletType, Reps, Startpoint, Offset, Speed) {
var _local5 = Startpoint - Offset;
i = 0;
while (i < Reps) {
var _local1 = mEBulletClip.attachMovie(bulletType, "mEnemyBullet" + nEbullet, nEbullet, {_x:Caller._x, _y:Caller._y});
nEbullet++;
_local1.nSpeed = Speed;
_local5 = _local5 + Offset;
_local1.nDirection = _local5;
i++;
}
}
function repeatBullet(Caller, Reps, Freq, bulletType, Speed, Direction) {
var p = 0;
var i = 0;
var _local2 = Caller.createEmptyMovieClip("SpreadHandler" + Caller.nhandler, Caller.getNextHighestDepth());
if (Caller.nhandler < 4) {
Caller.nhandler++;
} else {
Caller.nhandler = 0;
}
_local2.onEnterFrame = function () {
i++;
if (p < Reps) {
if (i == Freq) {
i = 0;
p++;
createEnemyBullet(Caller, bulletType, Speed, Direction);
}
}
if (p == Reps) {
delete this.onEnterFrame;
}
};
}
function createBeam(Caller, Reps, Freq, bulletType, Speed, Direction) {
var p = 0;
var i = 0;
var _local2 = Caller.createEmptyMovieClip("SpreadHandler" + Caller.nhandler, Caller.getNextHighestDepth());
if (Caller.nhandler < 4) {
Caller.nhandler++;
} else {
Caller.nhandler = 0;
}
_local2.onEnterFrame = function () {
i++;
if (p < Reps) {
if (i == Freq) {
i = 0;
p++;
if (p == 1) {
createEnemyBullet(Caller, bulletType + "Head", Speed, Direction);
} else if ((p > 1) and (p < Reps)) {
createEnemyBullet(Caller, bulletType, Speed, Direction);
}
if (p == Reps) {
delete this.onEnterFrame;
mBeamCap.beamCap._visible = false;
createEnemyBullet(Caller, bulletType + "Tail", Speed, Direction);
}
}
}
};
}
function removeBullet(Caller) {
if (Caller._y > stageh) {
Caller.removeMovieClip();
}
if (Caller._y < 0) {
Caller.removeMovieClip();
}
if (Caller._x > stagew) {
Caller.removeMovieClip();
}
if (Caller._x < 0) {
Caller.removeMovieClip();
}
if (Caller._x == 0) {
if (Caller._y == 0) {
Caller.removeMovieClip();
}
}
}
function collideEnemy(Caller) {
if (nHit >= nHitMax) {
if (Caller.hitarea.hitTest(Player.hitarea)) {
mHFlash.gotoAndPlay(2);
if (valentMode == false) {
nHP--;
}
hud.life_mc.gotoAndStop(nHP + 1);
nHit = 0;
nCharge = 0;
if (nHP < 1) {
destroyPlayer();
}
}
}
}
function collideBullet(Caller) {
if (nHit >= nHitMax) {
if (Caller.hitTest(Player.hitarea)) {
mHFlash.gotoAndPlay(2);
if (valentMode == false) {
nHP--;
}
hud.life_mc.gotoAndStop(nHP + 1);
nHit = 0;
nCharge = 0;
Caller.removeMovieClip();
if (nHP < 1) {
destroyPlayer();
}
}
}
}
function collideShield(Caller) {
if (Caller.hitTest(cshield)) {
if (nCharge >= 10) {
absorb_sound.start();
delete Caller.onEnterFrame;
Caller.gotoAndPlay("des");
updateScore(50);
if (nCharge < nChargeMax) {
nCharge = nCharge + 10;
}
}
}
}
function collideShieldB(Caller) {
if (Caller.hitTest(cshield)) {
if (nCharge >= 10) {
absorb_sound.start();
delete Caller.onEnterFrame;
Caller.gotoAndPlay("des");
if (nCharge < nChargeMax) {
nCharge = nCharge + 5;
}
updateScore(25);
if (_root.Player._y < (stageh - 25)) {
_root.Player._y = _root.Player._y + 5;
_root.cshield._y = _root.cshield._y + 5;
}
}
}
}
function createWarning(xPos, yPos) {
d = mEndText.getNextHighestDepth();
mEndText.attachMovie("warning", "warning" + d, d, {_x:xPos, _y:yPos});
}
function createStar(Reps, Speed) {
var star = mStarClip.attachMovie("mStar", "mStar" + Reps, Reps, {_x:random(340) + 10, _y:random(550)});
star._xscale = Speed * 8;
star._yscale = star._xscale;
star.onEnterFrame = function () {
if (star._y > (550 + random(30))) {
star._y = 0;
star._x = random(340) + 10;
}
star._y = star._y + Speed;
};
}
function onButtonDown(event) {
if (event.buttonCode == com.wiicade.WiiRemote.BUTTON_1) {
nTrans = 0;
nADelay = 8;
select_sound.start();
if (nQuality <= 2) {
nQuality++;
}
if (nQuality > 2) {
nQuality = 0;
}
trace("hp " + nHP);
}
if (event.buttonCode == com.wiicade.WiiRemote.BUTTON_PLUS) {
nTrans = 0;
nADelay = 8;
select_sound.start();
if (nMusic == true) {
nMusic = false;
menu_mc.music_txt.text = "off";
} else if (nMusic == false) {
nMusic = true;
menu_mc.music_txt.text = "on";
}
trace("nMusic " + nMusic);
}
}
function bossExplode(Caller, Reps, Freq) {
var p = 0;
var i = 0;
var _local3 = _root.createEmptyMovieClip("mHandlerClip", _root.getNextHighestDepth());
_local3.onEnterFrame = function () {
i++;
if (p < Reps) {
if (i == Freq) {
i = 0;
p++;
splode1_sound.start();
Caller.attachMovie("bossExplosion", "bossExplosion" + p, Caller.getNextHighestDepth(), {_x:random(100) - 50, _y:random(100) - 50});
}
}
if (p == Reps) {
delete this.onEnterFrame;
}
};
}
stop();
var remote = com.wiicade.Wii.getPrimaryRemote();
com.wiicade.Browser.setBackgroundColor(3355443);
var nHP = 3;
var nHPMax = 0;
var bspeed = 42;
var nPspeed = 16;
var nDelay = 0;
var nADelay = 0;
var nCharge = 0;
var nChargeMax = 100;
var nHit = 30;
var nHitMax = 30;
var nVolume = 0;
var nMusic = true;
var convertToDegrees = (Math.PI/180);
var convertToRadians = 57.2957795130823;
var nBullet = 0;
var nHandler = 0;
var nEnemy = 0;
var nKill = 0;
var nEbullet = 0;
var nValentine = 0;
var valentMode = false;
var nFrames = 0;
var nTime = 130;
var nSecs = 10;
var nMins = 2;
var nTrans = 0;
var nHits = 0;
var nReset = false;
var displayTime = 0;
var adjust = 1;
if (com.wiicade.Wii.isWii()) {
var theWii = true;
} else {
var theWii = false;
var nQuality = 1;
}
var nADelay = 0;
var nScore = 0;
var hiScore = 0;
var checkPoint = 0;
var sd = SharedObject.getLocal("saveData");
if (sd.data.Quality == undefined) {
sd.data.Quality = nQuality;
sd.data.hiScore = 1000;
sd.data.HP = nHP;
sd.data.Music = nMusic;
} else {
nQuality = sd.data.Quality;
hiScore = saveData.data.hiScore;
nHP = sd.data.HP;
nMusic = sd.data.Music;
}
var gameClear = false;
var timeOver = false;
var gameOver = false;
var stagew = Stage.width;
var stageh = Stage.height;
var aQuality_array = new Array("LOW", "MEDIUM", "HIGH");
var xcord = new Array(-50, (stagew / 4) - 20, stagew / 2, ((stagew * 3) / 4) + 20, stagew + 50);
var ycord = new Array(-50, stageh / 4, stageh / 2, (stageh * 3) / 4, stageh + 50);
var aEnemy_array = new Array();
var aEBullet_array = new Array();
_root.createEmptyMovieClip("mEndText", 500);
_root.createEmptyMovieClip("mBeamCap", 450);
_root.createEmptyMovieClip("mEBulletClip", 400);
_root.createEmptyMovieClip("mPlayerDepth", 300);
_root.createEmptyMovieClip("mChargeDepth", 350);
_root.createEmptyMovieClip("mBulletClip", 200);
_root.createEmptyMovieClip("mEnemyClip", 100);
_root.createEmptyMovieClip("mStarClip", 50);
var BGM_sound = new Sound(_root.createEmptyMovieClip("BGM", getNextHighestDepth()));
BGM_sound.setVolume(70);
BGM_sound.attachSound("BGM_snd");
var sndBG_sound = new Sound();
sndBG_sound.attachSound("sBG_snd");
var valentine_sound = new Sound();
valentine_sound.attachSound("valentine_snd");
var sndFM_sound = new Sound();
sndFM_sound.attachSound("sFM_snd");
var sndGO_sound = new Sound();
sndGO_sound.attachSound("sGO_snd");
var sndMC_sound = new Sound();
sndMC_sound.attachSound("sMC_snd");
var warning_sound = new Sound();
warning_sound.attachSound("warning_snd");
var target_sound = new Sound();
target_sound.attachSound("target_snd");
var select_sound = new Sound();
select_sound.attachSound("select_snd");
var boost_sound = new Sound();
boost_sound.attachSound("boost_snd");
var bsplode_sound = new Sound();
bsplode_sound.attachSound("bigsplode_snd");
var splode1_sound = new Sound();
splode1_sound.attachSound("splode1_snd");
var splode2_sound = new Sound();
splode2_sound.attachSound("splode2_snd");
var shoot_sound = new Sound();
shoot_sound.attachSound("shoot_snd");
var release_sound = new Sound(_root.createEmptyMovieClip("release", getNextHighestDepth()));
release_sound.attachSound("release_snd");
var ssplode_sound = new Sound();
ssplode_sound.attachSound("ssplode_snd");
var absorb_sound = new Sound();
absorb_sound.attachSound("absorb_snd");
var burst_sound = new Sound();
burst_sound.attachSound("burst_snd");
var laser_sound = new Sound();
laser_sound.attachSound("laser_snd");
gotoAndStop ("intro");
sndBG_sound.start();
Frame 15
stop();
var remote = com.wiicade.Wii.getPrimaryRemote();
remote.setRotated(true);
remote.addEventListener("buttondown", onButtonDown);
nTrans = 0;
instruct_txt._visible = false;
credits_txt._visible = false;
hiscore_txt.text = "hi " + sd.data.hiScore;
if (sd.data.Music != undefined) {
nMusic = sd.data.Music;
if (sd.data.Music == true) {
menu_mc.music_txt.text = "on";
} else {
menu_mc.music_txt.text = "off";
}
} else {
menu_mc.music_txt.text = "on";
nMusic = true;
}
if (sd.data.hiScore == undefined) {
hiscore_txt.text = "";
}
menu_mc.HP_mc.gotoAndStop(nHP + 1);
if (theWii == false) {
menu_mc.start_txt.text = "s";
menu_mc.qual_txt.text = "a";
} else {
menu_mc.start_txt.text = "2";
menu_mc.qual_txt.text = "1";
}
_root.attachMovie("hud", "hud", 1000);
hud._x = 7;
hud._y = 20;
hud._visible = false;
mBeamCap.attachMovie("beamExp", "beamExp", mBeamCap.getNextHighestDepth(), {_y:-35});
mBeamCap.attachMovie("beamCap", "beamCap", mBeamCap.getNextHighestDepth(), {_y:-35});
_root.onEnterFrame = function () {
nTrans++;
if (titlefade_mc._alpha > 0) {
titlefade_mc._alpha = titlefade_mc._alpha - 20;
}
if (nTrans >= 240) {
gotoAndStop ("attract");
_root.onEnterFrame = function () {
};
}
if (adjust == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_2)) {
if (nTrans >= 10) {
sd.data.Quality = nQuality;
sd.data.HP = nHP;
sd.data.Music = nMusic;
sd.flush();
nHPMax = nHP;
sndBG_sound.stop();
valentine_sound.stop();
sndFM_sound.start();
if (nMusic == true) {
BGM_sound.start(0, 2);
}
hud.score_txt.text = "sc 0";
hud.time_txt.text = "2:10";
delete _root.onEnterFrame;
if (theWii == false) {
i = 0;
while (i < 10) {
createStar(i, random(5) + 5);
i++;
}
}
hud.life_mc.gotoAndStop(nHP + 1);
hud._visible = true;
boost_sound.start();
remote.removeEventListener("buttondown", onButtonDown);
gotoAndPlay ("start");
}
}
if (nADelay > 0) {
nADelay--;
}
if (nADelay <= 0) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
nTrans = 10;
if (nHP > 3) {
nHP--;
nADelay = 8;
select_sound.start();
menu_mc.HP_mc.gotoAndStop(nHP + 1);
}
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
nTrans = 10;
nValentine++;
if (nHP < 6) {
nHP++;
nADelay = 8;
select_sound.start();
menu_mc.HP_mc.gotoAndStop(nHP + 1);
}
if (nValentine == 99) {
nValentine = 100;
valentine_sound.start();
valentMode = true;
}
}
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) && (!remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT))) {
nADelay = 0;
}
_quality = aQuality_array[nQuality];
menu_mc.quality_mc.gotoAndStop(_quality);
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) {
nTrans = 10;
if (!remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) {
instruct_txt._visible = true;
menu_mc._visible = false;
adjust = 0;
}
} else {
instruct_txt._visible = false;
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) {
nTrans = 10;
if (!remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) {
credits_txt._visible = true;
menu_mc._visible = false;
adjust = 0;
}
} else {
credits_txt._visible = false;
}
if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) && (!remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN))) {
menu_mc._visible = true;
adjust = 1;
}
};
Frame 45
stop();
var remote = com.wiicade.Wii.getPrimaryRemote();
remote.setRotated(true);
trace(nTime);
_root.attachMovie("charge_shield", "cshield", 150, {_x:Player._x, _y:Player._y - 50});
Player.attachMovie("gun_flash", "gflash", 160, {_y:-35});
if (theWii == false) {
cshield._alpha = 80;
}
cshield._xscale = 0;
cshield._yscale = 0;
Player.gflash._visible = false;
Player.hitarea._visible = false;
Player.boost._visible = false;
Player.swapDepths(mPlayerDepth);
cshield.swapDepths(mChargeDepth);
Player.onEnterFrame = function () {
hitCount();
if (nHit < nHitMax) {
nHit++;
if (Player._visible == true) {
Player._visible = false;
} else {
Player._visible = true;
}
} else {
Player._visible = true;
}
if (nHit == nHitMax) {
Player._visible = true;
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) {
if (this._y > 30) {
this._y = this._y - nPspeed;
cshield._y = cshield._y - nPspeed;
}
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) {
if (this._y < (stageh - 25)) {
this._y = this._y + nPspeed;
cshield._y = cshield._y + nPspeed;
}
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT)) {
if (this._x > 25) {
this._x = this._x - nPspeed;
cshield._x = cshield._x - nPspeed;
}
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT)) {
if (this._x < (stagew - 25)) {
this._x = this._x + nPspeed;
cshield._x = cshield._x + nPspeed;
}
}
if (nDelay > 0) {
nDelay--;
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_2)) {
nPspeed = 16;
if (nDelay <= 0) {
if (nCharge < 30) {
nDelay = 4;
shoot_sound.start();
createBullet("normal_bullet", bspeed);
}
if (nCharge >= 30) {
nDelay = 8;
release_sound.setVolume(nCharge);
release_sound.start();
createBullet("charge_shot", bspeed);
}
nCharge = 0;
cshield._visible = false;
Player.gflash._visible = true;
}
}
if (!remote.isDown(com.wiicade.WiiRemote.BUTTON_2)) {
nPspeed = 13;
Player.gflash._visible = false;
if (nDelay <= 0) {
if (nCharge < nChargeMax) {
nCharge = nCharge + 2;
cshield._visible = true;
cshield._xscale = nCharge;
cshield._yscale = nCharge;
}
}
}
};
nFrames = 0;
var bonus = false;
_root.onEnterFrame = function () {
countDown();
switch (nFrames) {
case 10 :
checkPoint = nScore;
repeatEnemy(3, 20, "nmeDrone", xcord[1], ycord[0]);
return;
case 60 :
repeatEnemy(3, 20, "nmeDrone", xcord[3], ycord[0]);
return;
case 150 :
if (nScore >= (checkPoint + 2000)) {
createEnemy("nmeFighter", xcord[2], ycord[0] - 15);
}
return;
case 170 :
createEnemy("nmeDrone", xcord[1], ycord[0]);
return;
case 190 :
createEnemy("nmeDrone", xcord[2], ycord[0]);
return;
case 210 :
createEnemy("nmeDrone", xcord[3], ycord[0]);
return;
case 230 :
createEnemy("nmeDrone", xcord[2], ycord[0]);
return;
case 250 :
createEnemy("nmeDrone", xcord[1], ycord[0]);
return;
case 280 :
repeatEnemy(4, 15, "nmeSwinder", xcord[2], ycord[0]);
return;
case 380 :
repeatEnemy(4, 15, "nmeSwinder", xcord[2], ycord[0]);
return;
case 480 :
warning_sound.start();
createWarning(xcord[1], ycord[3] + 50);
createWarning(xcord[3], ycord[3] + 50);
return;
case 500 :
createEnemy("nmeHarc", xcord[4] - 50, ycord[4]);
return;
case 515 :
createEnemy("nmeHarc", xcord[0] + 50, ycord[4]);
return;
case 575 :
createEnemy("nmeHarc", xcord[0] + 50, ycord[4]);
return;
case 590 :
createEnemy("nmeHarc", xcord[4] - 50, ycord[4]);
return;
case 640 :
createEnemy("nmeHarc", xcord[0] + 50, ycord[4]);
return;
case 655 :
createEnemy("nmeHarc", xcord[4] - 50, ycord[4]);
return;
case 705 :
createEnemy("nmeHarc", xcord[0] + 50, ycord[4]);
return;
case 720 :
createEnemy("nmeHarc", xcord[4] - 50, ycord[4]);
return;
case 780 :
createEnemy("nmeFighter", xcord[2], ycord[0] - 15);
return;
case 805 :
createEnemy("nmeFighter", xcord[3], ycord[0] - 15);
return;
case 840 :
createEnemy("nmeFighter", xcord[1], ycord[0] - 15);
return;
case 865 :
createEnemy("nmeFighter", xcord[2], ycord[0] - 15);
return;
case 895 :
createEnemy("nmeFighter", xcord[2], ycord[0] - 15);
return;
case 930 :
repeatEnemy(3, 15, "nmeQarc", xcord[4] + 50, ycord[0] - 110);
return;
case 1010 :
createEnemy("nmeHeavy", xcord[0] - 50, ycord[1]);
return;
case 1150 :
repeatEnemy(3, 15, "nmeQarc", xcord[0] - 50, ycord[0] - 110);
return;
case 1230 :
createEnemy("nmeHeavy", xcord[4] + 50, ycord[2]);
return;
case 1280 :
checkPoint = nScore;
return;
case 1360 :
if (nScore >= (checkPoint + 1000)) {
bonus = true;
createEnemy("nmeQarc", xcord[0] - 50, ycord[0] - 110);
} else {
bonus = false;
}
return;
case 1375 :
if (bonus == true) {
createEnemy("nmeQarc", xcord[4] + 50, ycord[0] - 110);
}
return;
case 1390 :
if (bonus == true) {
createEnemy("nmeQarc", xcord[0] - 50, ycord[0] - 110);
}
return;
case 1410 :
repeatEnemy(2, 20, "nmeSeeker", xcord[2], ycord[0]);
return;
case 1440 :
warning_sound.start();
createWarning(xcord[2], ycord[3] + 50);
repeatEnemy(2, 20, "nmeSeeker", xcord[2], ycord[4]);
return;
case 1470 :
repeatEnemy(2, 30, "nmeSeeker", xcord[0], ycord[1]);
return;
case 1490 :
repeatEnemy(2, 30, "nmeSeeker", xcord[4], ycord[1]);
return;
case 1560 :
warning_sound.start();
createWarning(xcord[1], ycord[2]);
createWarning(xcord[2], ycord[1] - 50);
createWarning(xcord[3], ycord[2]);
createWarning(xcord[2], ycord[3] + 50);
return;
case 1600 :
checkPoint = nScore;
createEnemy("nmeSeeker", xcord[2], ycord[0]);
createEnemy("nmeSeeker", xcord[2], ycord[4]);
createEnemy("nmeSeeker", xcord[0], ycord[2]);
createEnemy("nmeSeeker", xcord[4], ycord[2]);
return;
case 1635 :
if (nScore >= (checkPoint + 800)) {
createEnemy("nmeSeeker", xcord[1], ycord[0]);
createEnemy("nmeSeeker", xcord[2], ycord[0]);
createEnemy("nmeSeeker", xcord[3], ycord[0]);
}
return;
case 1640 :
createEnemy("nmeSheavy", xcord[2], ycord[0] - 80);
return;
case 1770 :
repeatEnemy(3, 20, "nmeDrone", xcord[3], ycord[0]);
return;
case 1830 :
createEnemy("nmeSheavy", xcord[1], ycord[0] - 80);
return;
case 2010 :
repeatEnemy(3, 20, "nmeDrone", xcord[1], ycord[0]);
return;
case 2020 :
createEnemy("nmeSheavy", xcord[3], ycord[0] - 80);
return;
case 2200 :
warning_sound.start();
createWarning(xcord[1], ycord[1] - 50);
createWarning(xcord[2], ycord[1] - 50);
createWarning(xcord[3], ycord[1] - 50);
return;
case 2220 :
repeatEnemy(6, 17, "nmeBeam", xcord[2], ycord[0]);
return;
case 2350 :
target_sound.start();
createWarning(xcord[1], ycord[1] - 50);
createWarning(xcord[2], ycord[1] - 50);
createWarning(xcord[3], ycord[1] - 50);
return;
case 2400 :
createEnemy("nmeAmalgam", xcord[2], ycord[0]);
}
};
Frame 50
stop();
var remote = com.wiicade.Wii.getPrimaryRemote();
remote.setRotated(true);
nTrans = 15;
nVolume = BGM_sound.getVolume();
clearPlayer();
adjust = 0;
endtext_mc.swapDepths(mEndText);
hud.combo_txt.text = "";
if (gameClear == true) {
mEnemyClip.removeMovieClip();
mEBulletClip.removeMovieClip();
endtext_mc.end_txt.text = "mission complete";
sndMC_sound.start();
boost_sound.start();
}
if (timeOver == true) {
endtext_mc.end_txt.text = "time over";
sndGO_sound.start();
}
if (gameOver == true) {
endtext_mc.end_txt.text = "mission failed";
sndGO_sound.start();
}
_root.onEnterFrame = function () {
if (nTrans > 0) {
nTrans--;
}
if (nVolume > 0) {
nVolume = nVolume - 5;
BGM_sound.setVolume(nVolume);
}
if (gameClear == true) {
Player.boost._visible = true;
if (Player._y > -1000) {
Player._y = Player._y - 20;
} else {
delete onEnterFrame;
BGM_sound.stop();
gotoAndPlay ("score");
}
} else if (remote.isDown(com.wiicade.WiiRemote.BUTTON_2)) {
if (nTrans == 0) {
delete onEnterFrame;
i = 0;
while (i < 4) {
_root["mHandlerClip" + i].removeMovieClip();
i++;
}
mEnemyClip.removeMovieClip();
mEBulletClip.removeMovieClip();
BGM_sound.stop();
gotoAndPlay ("score");
}
}
};
Frame 55
stop();
var remote = com.wiicade.Wii.getPrimaryRemote();
remote.removeEventListener("buttondown", onButtonDown);
remote.setRotated(true);
nTrans = 15;
Player._visible = false;
hud.removeMovieClip();
endtext_mc.removeMovieClip();
mBeamCap.removeMovieClip();
sndGO_sound.stop();
if (nHP > 0) {
if ((sd.data.HP == 3) || (nHPMax == 3)) {
nScore = nScore + (1000 * nHP);
bonus_txt.text = (("1000 x " + nHP) + " = ") + (1000 * nHP);
} else {
bonus_txt.text = "NO BONUS";
}
if ((nTime > 0) && (valentMode == false)) {
nScore = nScore + (200 * nSecs);
timebonus_txt.text = (("200 x " + nSecs) + " = ") + (200 * nSecs);
} else {
timebonus_txt.text = "NO BONUS";
}
} else {
bonus_txt.text = "NO BONUS";
timebonus_txt.text = "NO BONUS";
}
score_txt.text = nScore;
if (nScore > sd.data.hiScore) {
sd.data.hiScore = nScore;
hiscore_txt.text = nScore;
sd.flush();
} else {
hiscore_txt.text = sd.data.hiScore;
}
if (sd.data.hiScore == undefined) {
hs_txt._visible = false;
hiscore_txt._visible = false;
}
_root.onEnterFrame = function () {
if (nTrans > 0) {
nTrans--;
}
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_2)) {
if (nTrans == 0) {
delete onEnterFrame;
gotoAndPlay ("init");
BGM_sound.setVolume(100);
}
}
};
Frame 60
stop();
var remote = com.wiicade.Wii.getPrimaryRemote();
remote.removeEventListener("buttondown", onButtonDown);
remote.setRotated(true);
_root.attachMovie("charge_shield", "cshield", 150);
Player.attachMovie("gun_flash", "gflash", 160, {_y:-35});
if (theWii == false) {
cshield._alpha = 80;
}
press_start.swapDepths(mEndText);
cshield._xscale = 0;
cshield._yscale = 0;
Player.gflash._visible = false;
Player.boost._visible = false;
reps = 5;
nTime = 0;
hiscore_txt.text = "hi " + sd.data.hiScore;
if (sd.data.hiScore == undefined) {
hiscore_txt.text = "";
}
this.onEnterFrame = function () {
nTime++;
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_2)) {
delete onEnterFrame;
mEnemyClip.removeMovieClip();
cshield.removeMovieClip();
gotoAndPlay ("init");
}
if ((nTime > 0) and (nTime < 150)) {
attract_txt.text = "use the d-pad (arrow keys) to move the claymore.";
}
if ((nTime > 30) and (nTime < 40)) {
Player._x = Player._x + 6;
}
if ((nTime > 40) and (nTime < 60)) {
Player._x = Player._x - 6;
}
if ((nTime > 60) and (nTime < 70)) {
Player._x = Player._x + 6;
}
if ((nTime > 80) and (nTime < 100)) {
Player._y = Player._y - 6;
}
if ((nTime > 100) and (nTime < 120)) {
Player._y = Player._y + 6;
cshield._x = Player._x;
cshield._y = Player._y - 50;
}
if (nTime == 150) {
attract_txt.text = "press and hold 2 (S) to shoot.";
createEnemy("nmeDroneA", xcord[2], ycord[0]);
}
if (nTime == 170) {
if (reps > 0) {
reps--;
shoot_sound.start();
createBullet("normal_bullet", bspeed);
nTime = 166;
}
}
if ((nTime > 190) and (nTime < 195)) {
attract_txt.text = "release 2 to charge your weapon. the claymore is slightly slower while charging.";
if (nCharge < nChargeMax) {
nCharge = nCharge + 2;
cshield._xscale = nCharge;
cshield._yscale = nCharge;
nTime = 189;
}
}
if (nTime == 195) {
attract_txt.text = "blue bullets can be asborbed while charging. this will slightly increase your score and charge.";
createEnemy("nmeFighter", xcord[2], ycord[0] - 10);
}
if ((nTime > 195) and (nTime < 300)) {
cshield._xscale = nCharge;
cshield._yscale = nCharge;
}
if (nTime == 300) {
attract_txt.text = "pink bullets must be avoided. if you are hit by a bullet, you will lose your charge.";
}
if ((nTime > 300) and (nTime < 310)) {
if (nCharge < nChargeMax) {
nCharge = nCharge + 2;
cshield._xscale = nCharge;
cshield._yscale = nCharge;
nTime = 299;
}
}
if (nTime == 320) {
attract_txt.text = "destroy multiple enemies with one shot to create combos and increase your score!";
}
if (nTime == 335) {
createEnemy("nmeDroneA", xcord[2], ycord[0]);
}
if (nTime == 350) {
createEnemy("nmeDroneA", xcord[2], ycord[0]);
}
if (nTime == 365) {
createEnemy("nmeDroneA", xcord[2], ycord[0]);
}
if (nTime == 378) {
release_sound.start();
createBullet("charge_shot", bspeed);
cshield._visible = false;
}
if (nTime == 470) {
delete onEnterFrame;
cshield.removeMovieClip();
gotoAndPlay ("init");
}
};
Symbol 5 MovieClip [mainBG] Frame 1
Symbol 8 MovieClip [nmeBeam] Frame 1
stop();
_visible = false;
var nTime = 0;
var ran = (-30 + random(60));
_x = (_root.Player._x + ran);
onEnterFrame = function () {
nTime++;
if (nTime == 10) {
_root.laser_sound.start();
_root.createBeam(this, 4, 3, "bossBeam2", 15);
}
if (nTime == 30) {
_root.removeEnemy(this, 0);
}
};
Symbol 8 MovieClip [nmeBeam] Frame 5
stop();
_root.removeEnemy(this, nscore);
Symbol 278 MovieClip [__Packages.com.wiicade.Wii] Frame 0
class com.wiicade.Wii
{
static var instance;
var keyboard, lc;
function Wii () {
if (!_global.Wii) {
_global.Wii = this;
} else {
return;
}
wii = System.capabilities.os == "Nintendo Wii";
com.wiicade.WiiRemote.init();
com.wiicade.KeyboardController.init();
com.wiicade.Browser.init();
var _local3 = 0;
while (_local3 < 4) {
remotes[_local3] = new com.wiicade.WiiRemote(_local3);
_local3++;
}
if (!isWii()) {
keyboard = new com.wiicade.KeyboardController(wiicommand);
}
lc = new LocalConnection();
lc.connect("wii");
lc.wiicommand = function (packet) {
_global.Wii.wiicommand(packet);
};
if (isWii()) {
getURL (((("javascript:initializeWiiCadeAPI(20, " + Stage.width) + ", ") + Stage.height) + ");");
}
}
static function getInstance() {
if (!_global.Wii) {
instance = new com.wiicade.Wii();
}
return(_global.Wii);
}
static function init() {
_global.Wii = null;
instance = new com.wiicade.Wii();
}
static function isWii() {
var _local1 = getInstance();
return(_local1.wii || (_local1.virtualized));
}
function wiicommand(packet) {
var _local4 = getInstance();
var _local2 = (4294901760 & packet) >> 16;
var _local3 = packet & 65535;
if (_local2 < 5) {
_local4.remotes[_local2 - 1].buttonsUpdated(_local3);
} else if (_local2 < 9) {
_local4.remotes[_local2 - 5].twistUpdated(_local3);
} else if (_local2 < 13) {
_local4.remotes[_local2 - 9].distanceUpdated(_local3);
} else if (_local2 == 13) {
parseFlags(_local3);
} else if (_local2 < 18) {
parseAttachment(_local3, _local2 - 14);
} else if (_local2 < 22) {
_local4.remotes[_local2 - 18].cursorXUpdated(_local3);
} else if (_local2 < 32) {
_local4.remotes[_local2 - 22].cursorYUpdated(_local3);
}
}
function parseFlags(flags) {
var _local7 = primary;
var _local3;
var _local4;
var _local5 = 8;
primary = flags & 3;
if (primary != _local7) {
getRemote(_local7).updatePrimary(false);
getRemote(primary).updatePrimary(true);
}
virtualized = (4 & _local5) > 0;
var _local2 = 0;
while (_local2 < 4) {
_local3 = getRemote(_local2);
_local4 = (_local5 & flags) > 0;
if (_local3.isConnected() != _local4) {
_local3.connectedUpdated(_local4);
}
_local5 = _local5 << 1;
_local2++;
}
}
function parseAttachment(data, remote) {
var _local4 = getRemote(remote);
var _local3 = _local4.getAttachment();
var _local2;
var _local1;
if ((data & 256) == 0) {
if (!(_local3 instanceof com.wiicade.Nunchuk)) {
_local3 = new com.wiicade.Nunchuk(_local4);
_local4.updateAttachment(_local3);
}
_local3.updateButtons(data & 3);
_local2 = (data & 28) >>> 2;
_local1 = (data & 224) >>> 5;
if ((_local2 & 4) > 0) {
_local2 = _local2 | 65528;
}
if ((_local1 & 4) > 0) {
_local1 = _local1 | 65528;
}
_local2 = Math.floor((_local2 * 128) / 3);
_local1 = Math.floor((_local1 * 128) / 3);
_local3.updateStick(_local2, _local1);
}
}
static function getRemote(identity) {
var _local1 = getInstance();
if ((!_local1.activated[identity]) && (_local1.isWii())) {
getURL (("javascript:activateWiiRemoteFeature(" + identity) + ", null, true);");
_local1.activated[identity] = true;
}
return(_local1.remotes[identity]);
}
static function getPrimaryRemote() {
var _local1 = getInstance();
return(_local1.remotes[_local1.primary]);
}
static var COMMAND_BUTTONS = 1;
static var COMMAND_TWIST = 5;
static var COMMAND_DISTANCE = 9;
static var COMMAND_FLAGS = 13;
static var COMMAND_ATTACH = 14;
static var COMMAND_CURSORX = 18;
static var COMMAND_CURSORY = 22;
var remotes = new Array();
var activated = new Array();
var primary = 0;
var virtualized = false;
var wii = true;
}
Symbol 279 MovieClip [__Packages.com.wiicade.KeyboardController] Frame 0
class com.wiicade.KeyboardController
{
static var keyCodes, buttonCodes;
var callback;
function KeyboardController (callback) {
this.callback = callback;
Key.addListener(this);
Mouse.addListener(this);
if (!keyCodes) {
init();
}
}
static function init() {
keyCodes = new Array();
buttonCodes = new Array();
keyCodes[37] = com.wiicade.WiiRemote.BUTTON_LEFT;
keyCodes[38] = com.wiicade.WiiRemote.BUTTON_UP;
keyCodes[39] = com.wiicade.WiiRemote.BUTTON_RIGHT;
keyCodes[40] = com.wiicade.WiiRemote.BUTTON_DOWN;
keyCodes[65] = com.wiicade.WiiRemote.BUTTON_1;
keyCodes[83] = com.wiicade.WiiRemote.BUTTON_2;
keyCodes[68] = com.wiicade.WiiRemote.BUTTON_A;
keyCodes[32] = com.wiicade.WiiRemote.BUTTON_B;
keyCodes[187] = com.wiicade.WiiRemote.BUTTON_PLUS;
keyCodes[189] = com.wiicade.WiiRemote.BUTTON_MINUS;
buttonCodes[com.wiicade.WiiRemote.BUTTON_LEFT] = 37;
buttonCodes[com.wiicade.WiiRemote.BUTTON_UP] = 38;
buttonCodes[com.wiicade.WiiRemote.BUTTON_RIGHT] = 39;
buttonCodes[com.wiicade.WiiRemote.BUTTON_DOWN] = 40;
buttonCodes[com.wiicade.WiiRemote.BUTTON_1] = 65;
buttonCodes[com.wiicade.WiiRemote.BUTTON_2] = 83;
buttonCodes[com.wiicade.WiiRemote.BUTTON_A] = 68;
buttonCodes[com.wiicade.WiiRemote.BUTTON_B] = 32;
buttonCodes[com.wiicade.WiiRemote.BUTTON_PLUS] = 187;
buttonCodes[com.wiicade.WiiRemote.BUTTON_MINUS] = 189;
}
function onKeyDown() {
var _local2 = Key.getCode();
if (keyCodes[_local2]) {
bitmap = bitmap | keyCodes[_local2];
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
}
function onKeyUp() {
var _local2 = Key.getCode();
if (keyCodes[_local2]) {
bitmap = bitmap & (~keyCodes[_local2]);
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
}
function onMouseDown() {
bitmap = bitmap | com.wiicade.WiiRemote.BUTTON_A;
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
function onMouseUp() {
bitmap = bitmap & (~com.wiicade.WiiRemote.BUTTON_A);
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
function onMouseMove() {
callback((com.wiicade.Wii.COMMAND_CURSORX << 16) | _xmouse);
callback((com.wiicade.Wii.COMMAND_CURSORY << 16) | _ymouse);
}
static function getButtonMappingForKey(keyCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
return(keyCodes[keyCode]);
}
static function getKeyMappingForButton(buttonCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
return(buttonCodes[buttonCode]);
}
static function setKeyMapping(buttonCode, keyCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
var _local1 = buttonCodes[buttonCode];
var _local2 = keyCodes[keyCode];
if (_local1) {
keyCodes[_local1] = null;
}
if (_local2) {
buttonCodes[_local2] = null;
}
keyCodes[keyCode] = buttonCode;
buttonCodes[buttonCode] = keyCode;
}
var bitmap = 0;
}
Symbol 280 MovieClip [__Packages.com.wiicade.WiiRemote] Frame 0
class com.wiicade.WiiRemote
{
var identity, attachment, activated, dispatchEvent, oldcursorx, oldcursory;
function WiiRemote (identity) {
this.identity = identity;
allowRotate = com.wiicade.Wii.isWii();
attachment = new com.wiicade.Nunchuk(this);
activated = new Array();
if (this.identity == 0) {
primary = true;
connected = true;
}
mx.events.EventDispatcher.initialize(this);
}
static function init() {
}
function getIdentity() {
return(identity);
}
function isPrimary() {
return(primary);
}
function isConnected() {
return(connected);
}
function isRotated() {
return(rotated);
}
function setRotated(rotate) {
rotated = rotate;
}
function getTwistAngle() {
if ((!activated[com.wiicade.Wii.COMMAND_TWIST]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_TWIST + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_TWIST] = true;
}
return(twistAngle);
}
function getDistance() {
if ((!activated[com.wiicade.Wii.COMMAND_DISTANCE]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_DISTANCE + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_DISTANCE] = true;
}
return(distance);
}
function getCursorX() {
if ((!activated[com.wiicade.Wii.COMMAND_CURSORX]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_CURSORX + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_CURSORX] = true;
}
return(cursorx);
}
function getCursorY() {
if ((!activated[com.wiicade.Wii.COMMAND_CURSORX]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_CURSORX + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_CURSORX] = true;
}
return(cursory);
}
function isFacingScreen() {
return((cursorx > 0) || (cursory > 0));
}
function isDown(buttonCode) {
if (rotated && (allowRotate)) {
if (buttonCode == BUTTON_UP) {
buttonCode = BUTTON_RIGHT;
} else if (buttonCode == BUTTON_RIGHT) {
buttonCode = BUTTON_DOWN;
} else if (buttonCode == BUTTON_DOWN) {
buttonCode = BUTTON_LEFT;
} else if (buttonCode == BUTTON_LEFT) {
buttonCode = BUTTON_UP;
}
}
return((pressed & buttonCode) > 0);
}
function getAttachment() {
if ((!activated[com.wiicade.Wii.COMMAND_ATTACH]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_ATTACH + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_ATTACH] = true;
}
return(attachment);
}
function buttonsUpdated(bitmap) {
var _local2 = 1;
var _local8 = pressed;
var _local7;
pressed = bitmap;
_local7 = pressed ^ _local8;
var _local3 = 0;
while (_local3 < 10) {
if ((_local7 & _local2) > 0) {
if ((pressed & _local2) > 0) {
dispatchEvent({type:"buttondown", buttonCode:_local2, identity:identity});
} else {
dispatchEvent({type:"buttonup", buttonCode:_local2, identity:identity});
}
}
_local2 = _local2 << 1;
_local3++;
}
}
function twistUpdated(angle) {
var _local2 = twistAngle;
twistAngle = angle;
if (twistAngle != _local2) {
dispatchEvent({type:"twist", angle:angle, identity:identity});
}
}
function distanceUpdated(distance) {
var _local2 = this.distance;
this.distance = distance;
if (this.distance != _local2) {
dispatchEvent({type:"distance", distance:distance, identity:identity});
}
}
function connectedUpdated(connected) {
var _local2 = this.connected;
this.connected = connected;
if (this.connected != _local2) {
if (connected) {
dispatchEvent({type:"connected", identity:identity});
} else {
dispatchEvent({type:"disconnected", identity:identity});
}
}
}
function cursorXUpdated(cursorx) {
oldcursorx = this.cursorx;
this.cursorx = cursorx;
}
function cursorYUpdated(cursory) {
oldcursory = this.cursory;
this.cursory = cursory;
if ((cursorx != oldcursorx) || (this.cursory != oldcursory)) {
dispatchEvent({type:"pointer", cursorx:cursorx, cursory:this.cursory, identity:identity});
}
}
function updatePrimary(primary) {
this.primary = primary;
}
function updateAttachment(attachment) {
this.attachment = attachment;
}
static var BUTTON_UP = 8;
static var BUTTON_DOWN = 4;
static var BUTTON_RIGHT = 2;
static var BUTTON_LEFT = 1;
static var BUTTON_1 = 64;
static var BUTTON_2 = 32;
static var BUTTON_A = 256;
static var BUTTON_B = 128;
static var BUTTON_PLUS = 16;
static var BUTTON_MINUS = 512;
var primary = false;
var connected = false;
var rotated = false;
var allowRotate = true;
var twistAngle = 0;
var distance = 0;
var cursorx = 0;
var cursory = 0;
var pressed = 0;
}
Symbol 281 MovieClip [__Packages.com.wiicade.Nunchuk] Frame 0
class com.wiicade.Nunchuk
{
var parent, dispatchEvent;
function Nunchuk (parent) {
this.parent = parent;
mx.events.EventDispatcher.initialize(this);
}
function isDown(buttonCode) {
return((pressed & buttonCode) > 0);
}
function getStickX() {
return(stickx);
}
function getStickY() {
return(sticky);
}
function updateButtons(buttons) {
var _local2 = 1;
var _local8 = pressed;
var _local7;
pressed = buttons;
_local7 = pressed ^ _local8;
var _local3 = 0;
while (_local3 < 10) {
if ((_local7 & _local2) > 0) {
if ((pressed & _local2) > 0) {
dispatchEvent({type:"buttondown", buttonCode:_local2, identity:parent.getIdentity()});
} else {
dispatchEvent({type:"buttonup", buttonCode:_local2, identity:parent.getIdentity()});
}
}
_local2 = _local2 << 1;
_local3++;
}
}
function updateStick(x, y) {
stickx = x;
sticky = y;
}
static var BUTTON_C = 2;
static var BUTTON_Z = 1;
var pressed = 0;
var stickx = 0;
var sticky = 0;
}
Symbol 282 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 283 MovieClip [__Packages.com.wiicade.Browser] Frame 0
class com.wiicade.Browser
{
static var buttonEnabled;
function Browser () {
}
static function init() {
buttonEnabled = new Array();
buttonEnabled[com.wiicade.WiiRemote.BUTTON_LEFT] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_UP] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_RIGHT] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_DOWN] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_1] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_2] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_A] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_B] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_PLUS] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_MINUS] = false;
}
static function isDefaultEnabled(buttonCode) {
if (!buttonEnabled) {
com.wiicade.Wii.isWii();
}
return(buttonEnabled[buttonCode]);
}
static function setDefaultEnabled(buttonCode, enabled) {
if (!buttonEnabled) {
com.wiicade.Wii.isWii();
}
buttonEnabled[buttonCode] = enabled;
if (com.wiicade.Wii.isWii()) {
getURL (((("javascript:enableWiiButton(" + buttonCode) + ",") + enabled) + ");");
}
}
static function enableZooming() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_PLUS, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_MINUS, true);
}
static function disableZooming() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_PLUS, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_MINUS, false);
}
static function enableScrolling() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_LEFT, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_RIGHT, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_UP, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_DOWN, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_B, true);
}
static function disableScrolling() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_LEFT, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_RIGHT, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_UP, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_DOWN, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_B, false);
}
static function setBackgroundColor(color) {
if (com.wiicade.Wii.isWii()) {
getURL (("javascript:setBackgroundColor(" + color) + ");");
}
}
}
Symbol 22 MovieClip [bossExplosion] Frame 7
this.removeMovieClip();
Symbol 56 MovieClip [bltPoint] Frame 1
_visible = false;
Symbol 57 MovieClip [nmeAmalgam] Frame 1
stop();
_root.initEnemy(this, 100, 6, 5000);
var nThetay = 0;
var nThetax = 0;
var starty = 150;
var startx = 175;
var nRange = 0.012083048667653;
var nTarget = 100;
var ran = random(360);
var beam = true;
shoulder.cannon._rotation = 315;
right_arm._rotation = 50;
left_arm._rotation = -50;
hitarea._visible = false;
onEnterFrame = function () {
nTime++;
_root.collideEnemy(this);
cannon._x = _x;
cannon._y = _y + 160;
bpoint1._x = _x - 50;
bpoint1._y = _y - 50;
bpoint2._x = _x;
bpoint2._y = _y - 60;
bpoint3._x = _x + 50;
bpoint3._y = _y - 50;
if (nTime < 40) {
_y = (_y + 4);
} else {
_y = (starty + (nTarget * Math.sin(nThetay * nRange)));
_x = (startx + (nTarget * Math.sin(nThetax * nRange)));
}
if (nTime == 40) {
nThetay = 6;
nThetax = 3;
beam = false;
}
if (nTime == 100) {
_root.amalstop._x = 175;
}
if (beam == false) {
nSpeed = 6;
nThetay = nThetay + nSpeed;
nThetax = nThetax + (nSpeed / 2);
legs._rotation = (nTarget * Math.sin(nThetax * nRange)) / 8;
}
if (nTime == 120) {
boostbr._visible = false;
boostbl._visible = false;
}
if (nTime == 130) {
boosttr._visible = false;
boosttl._visible = false;
}
if (shoulder.cannon._rotation > 270) {
shoulder.cannon._rotation = shoulder.cannon._rotation - 5;
}
if (stop_point.hitTest(_root.amalstop)) {
nSpeed = 0;
nTime = 140;
beam = true;
_root.amalstop._x = 500;
}
if (_root.timeOver == true) {
this.onEnterFrame = function () {
_y = (_y - 4);
};
}
if (nTime == 65) {
bit1._visible = false;
_root.createEnemyBullet(bpoint1, "bossBullet", 19);
}
if (nTime == 75) {
bit2._visible = false;
_root.createEnemyBullet(bpoint2, "bossBullet", 19);
}
if (nTime == 85) {
bit3._visible = false;
_root.createEnemyBullet(bpoint3, "bossBullet", 19);
}
if (nTime == 105) {
_root.createSpread(this, "mEnemy_spreadbig", 8, 360, 45, 6);
}
if (nTime == 110) {
_root.createSpread(this, "mEnemy_spread", 8, ran, 45, 9);
}
if (nTime == 120) {
_root.createSpread(this, "mEnemy_spreadbig", 8, 360, 45, 6);
}
if (nTime == 125) {
_root.createSpread(this, "mEnemy_spread", 8, ran, 45, 9);
}
if ((nTime > 140) && (nTime < 160)) {
if (right_arm._rotation < 140) {
right_arm._rotation = right_arm._rotation + 10;
}
if (left_arm._rotation > -140) {
left_arm._rotation = left_arm._rotation - 10;
}
}
if (nTime == 160) {
bit1._visible = true;
boosttr._visible = true;
boosttl._visible = true;
_root.laser_sound.start();
_root.mBeamCap.beamCap._x = cannon._x - 0.5;
_root.mBeamCap.beamCap._y = cannon._y - 10;
_root.createBeam(cannon, 8, 2, "bossBeam", 18);
_root.mBeamCap.beamCap._visible = true;
}
if (nTime == 195) {
bit2._visible = true;
_root.laser_sound.start();
_root.createBeam(cannon, 8, 2, "bossBeam", 18);
_root.mBeamCap.beamCap._visible = true;
}
if (nTime == 230) {
bit3._visible = true;
_root.laser_sound.start();
_root.createBeam(cannon, 8, 2, "bossBeam", 18);
_root.mBeamCap.beamCap._visible = true;
}
if (nTime == 250) {
boostbr._visible = true;
boostbl._visible = true;
}
if ((nTime > 250) && (nTime < 270)) {
if (right_arm._rotation > 50) {
right_arm._rotation = right_arm._rotation - 10;
}
if (left_arm._rotation < -50) {
left_arm._rotation = left_arm._rotation + 10;
}
}
if (nTime == 260) {
beam = false;
ran = random(360);
reps++;
}
if (nTime == 270) {
nTime = 60;
_root.amalstop._x = 175;
}
};
Symbol 57 MovieClip [nmeAmalgam] Frame 18
stop();
_root.onEnterFrame = function () {
};
removeMovieClip(_root.mEBulletClip);
var myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
var my_color = new Color(this);
_root.mHFlash.gotoAndStop(2);
_root.mHFlash._alpha = 0;
_root.Player._visible = true;
_root.clearPlayer();
_root.bossExplode(this, 30, 6);
this.onEnterFrame = function () {
if (myColorTransform.aa == 100) {
_root.mHFlash._alpha = _root.mHFlash._alpha + 1;
}
if (_root.mHFlash._alpha > 50) {
if (myColorTransform.ra > -40) {
myColorTransform.ra = myColorTransform.ra - 2;
myColorTransform.ga = myColorTransform.ga - 2;
myColorTransform.ba = myColorTransform.ba - 2;
}
}
if (myColorTransform.ra == -40) {
if (myColorTransform.aa > -10) {
myColorTransform.aa = myColorTransform.aa - 2;
}
}
if (myColorTransform.aa == -10) {
if (_root.mHFlash._alpha > -10) {
_root.mHFlash._alpha = _root.mHFlash._alpha - 2;
}
}
my_color.setTransform(myColorTransform);
if (_root.mHFlash._alpha <= -9) {
_root.gameClear = true;
_root.braveGunner = true;
_root.gotoAndStop("end");
_root.removeEnemy(this, nscore);
}
};
Symbol 57 MovieClip [nmeAmalgam] Frame 34
Symbol 69 MovieClip Frame 7
this.removeMovieClip();
Symbol 70 MovieClip Frame 11
var p = _parent;
_root.nKill = _root.nKill + 1;
_root.removeEnemy(p, p.nscore);
Symbol 71 MovieClip [nmeFighter] Frame 1
stop();
_root.initEnemy(this, 8, 2.2, 500);
var nTheta = 0;
var starty = _y;
var nRange = 0.0136590984938687;
var nTarget = 270;
var reps = 4;
var nRadians = 0;
var nDegrees = 0;
var nDirection = 0;
var nDistance = 95;
var bulletDir = 0;
var firing = false;
var ran = 0;
cannon._visible = false;
hitarea._visible = false;
upperBody.boostl._visible = false;
upperBody.boostr._visible = false;
upperBody._rotation = 90;
onEnterFrame = function () {
nTime++;
if (upperBody._rotation == 90) {
upperBody.bpoint._x = _x + (nDistance * Math.cos(105 * _root.convertToDegrees));
upperBody.bpoint._y = _y + (nDistance * Math.sin(105 * _root.convertToDegrees));
}
if (firing == false) {
nRadians = Math.atan2(_root.Player._y - _y, _root.Player._x - _x);
nDegrees = Math.round(nRadians * _root.convertToRadians);
nDirection = nDegrees - 10;
}
if (nDirection >= 30) {
if (nDirection <= 145) {
nDx = nDirection;
upperBody._rotation = nDirection;
}
}
upperBody.bpoint._x = _x + (nDistance * Math.cos(((nDx + 25) * -1) * _root.convertToDegrees));
upperBody.bpoint._y = _y + (nDistance * Math.sin((nDx + 25) * _root.convertToDegrees));
_root.collideEnemy(this);
if (_y > -70) {
nTheta = nTheta + nSpeed;
_y = (starty + (nTarget * Math.sin(nTheta * nRange)));
} else {
_root.removeEnemy(this, 0);
}
if (nTime == 20) {
firing = true;
if (upperBody._rotation != 90) {
ran = random(10) - 5;
}
if (bulletDir == 0) {
bulletDir = upperBody._rotation;
}
if (firing == true) {
upperBody._rotation = bulletDir;
}
if (reps > 0) {
reps--;
_root.createEnemyBullet(upperBody.bpoint, "bltAbsorbs", 6.2, (bulletDir + ran) * -1);
nTime = 15;
} else {
firing = false;
reps = 2;
nTime = 50;
}
}
if (nTime > 60) {
upperBody.boostl._visible = true;
upperBody.boostr._visible = true;
}
if (nTime == 85) {
if (reps > 0) {
reps--;
_root.createEnemyBullet(upperBody.bpoint, "mEnemy_spread", 7, upperBody._rotation * -1);
nTime = 83;
}
}
};
Symbol 71 MovieClip [nmeFighter] Frame 2
stop();
_root.splode2_sound.start();
Symbol 75 MovieClip Frame 7
var p = _parent;
_root.nKill = _root.nKill + 1;
_root.removeEnemy(p, p.nscore);
Symbol 76 MovieClip [nmeDrone] Frame 1
stop();
_root.initEnemy(this, 2, 7, 200);
this.hitarea._visible = false;
onEnterFrame = function () {
nTime++;
_root.collideEnemy(this);
if (_y < 600) {
_y = (_y + nSpeed);
} else {
_root.removeEnemy(this, 0);
}
if (nTime == 3) {
_root.repeatBullet(this, 2, 7, "bltAbsorb", 10);
}
if (nTime == 35) {
_root.repeatBullet(this, 2, 7, "mEnemy_bullet2", 10);
}
};
Symbol 76 MovieClip [nmeDrone] Frame 2
stop();
_root.splode1_sound.start();
Symbol 77 MovieClip [nmeDroneA] Frame 1
stop();
_root.initEnemy(this, 2, 7, 200);
this.hitarea._visible = false;
onEnterFrame = function () {
nTime++;
if (_y < 600) {
_y = (_y + nSpeed);
} else {
_root.removeEnemy(this, 0);
}
};
Symbol 77 MovieClip [nmeDroneA] Frame 2
stop();
_root.splode1_sound.start();
Symbol 86 MovieClip [nmeHarc] Frame 1
stop();
_root.initEnemy(this, 5, 2, 600);
var nTheta = 0;
var starty = _y;
var nRange = 0.0169815819112962;
var nTarget = 400;
if (_x > 250) {
nSpeed = nSpeed * -1;
}
var ran = (random(20) - 10);
this.hitarea._visible = false;
boostl._visible = false;
boostr._visible = false;
onEnterFrame = function () {
nTime++;
_root.collideEnemy(this);
if (_y < 700) {
nTheta = nTheta + 1;
_y = (starty - (nTarget * Math.sin(nTheta * nRange)));
_x = (_x + nSpeed);
} else {
_root.removeEnemy(this, 0);
}
if (nTime > (50 + ran)) {
if (nTime < 80) {
boostl._visible = true;
boostr._visible = true;
}
}
if (nTime == (20 + ran)) {
_root.createSpread(this, "mEnemy_spread", 4, 45, 90, 4.6);
}
if (nTime == 70) {
_root.burst_sound.start();
gotoAndStop ("spread");
}
if (nTime == 80) {
boostl._visible = false;
boostr._visible = false;
_root.repeatBullet(this, 2, 3, "mEnemy_bullet1", 17);
}
if (nTime == 85) {
_root.createSpread(this, "mEnemy_spread", 3, 0, 90, 4.6);
}
if (nTime == (155 + ran)) {
_root.createSpread(this, "mEnemy_spread", 4, 0, 90, 4.6);
}
};
Symbol 86 MovieClip [nmeHarc] Frame 2
stop();
Symbol 86 MovieClip [nmeHarc] Frame 3
stop();
_root.splode2_sound.start();
Symbol 93 MovieClip Frame 12
var p = _parent;
_root.nKill = _root.nKill + 1;
_root.removeEnemy(p, p.nscore);
Symbol 94 MovieClip [nmeHeavy] Frame 1
stop();
_root.initEnemy(this, 30, 10, 1000);
var reps = 2;
_rotation = 20;
if (_x > Stage.width) {
nSpeed = nSpeed * -1;
_rotation = -20;
} else {
_rotation = 20;
}
this.hitarea._visible = false;
onEnterFrame = function () {
nTime++;
_root.collideEnemy(this);
if (nTime == 35) {
boostl._visible = false;
boostr._visible = false;
}
if (nTime >= 5) {
if (_rotation > 0) {
_rotation = (_rotation - 1);
}
if (_rotation < 0) {
_rotation = (_rotation + 1);
}
}
if (nTime >= 10) {
if (nSpeed > 2) {
nSpeed = nSpeed - 0.75;
}
if (nSpeed < -2) {
nSpeed = nSpeed + 0.75;
}
}
if ((_x < 500) && (_x > -150)) {
_x = (_x + nSpeed);
bpoint._x = _x - 50;
bpoint._y = _y + 10;
bpoint2._x = _x + 50;
bpoint2._y = _y + 10;
} else {
_root.removeEnemy(this, 0);
}
if (nTime == 20) {
if (nSpeed < 0) {
nSpeed = -2;
} else {
nSpeed = 2;
}
_root.repeatBullet(this, 4, 4, "mEnemy_bullet1", 12);
}
if (nTime == 55) {
_root.repeatBullet(this, 4, 4, "mEnemy_bullet1", 12);
}
if (nTime == 65) {
_root.createSpread(bpoint, "mEnemy_spread", 3, 230, 50, 5);
_root.createSpread(bpoint2, "mEnemy_spread", 3, 310, -50, 5);
}
if (nTime == 67) {
_root.createSpread(bpoint, "mEnemy_spread", 3, 230, 50, 5);
_root.createSpread(bpoint2, "mEnemy_spread", 3, 310, -50, 5);
}
if (nTime == 90) {
_root.repeatBullet(this, 4, 4, "mEnemy_bullet1", 12);
}
if (nTime == 105) {
_root.createSpread(bpoint, "mEnemy_spread", 3, 230, 50, 5);
_root.createSpread(bpoint2, "mEnemy_spread", 3, 310, -50, 5);
}
if (nTime == 107) {
_root.createSpread(bpoint, "mEnemy_spread", 3, 230, 50, 5);
_root.createSpread(bpoint2, "mEnemy_spread", 3, 310, -50, 5);
}
if (nTime == 125) {
_root.repeatBullet(this, 4, 4, "mEnemy_bullet1", 12);
}
};
Symbol 94 MovieClip [nmeHeavy] Frame 2
stop();
_root.bsplode_sound.start();
Symbol 97 MovieClip [nmeQarc] Frame 1
stop();
_root.initEnemy(this, 3, 1.5, 400);
var nDistance = 420;
var nTargetx = _x;
var nTargety = _y;
if (nTargetx == 450) {
nSpeed = nSpeed * -1;
var nTheta = 180;
} else {
var nTheta = 0;
}
this.hitarea._visible = false;
onEnterFrame = function () {
nTime++;
_root.collideEnemy(this);
nTheta = nTheta + nSpeed;
_x = (nTargetx + (nDistance * Math.cos(nTheta * _root.convertToDegrees)));
_y = (nTargety + (nDistance * Math.sin(nTheta * _root.convertToDegrees)));
if ((_x > 500) || (_x < -50)) {
_root.removeEnemy(this, 0);
}
if (nTime == 15) {
_root.createEnemyBullet(this, "mEnemy_bullet2", 13.5);
}
if (nTime == 40) {
_root.createEnemyBullet(this, "mEnemy_bullet2", 13.5);
}
};
Symbol 97 MovieClip [nmeQarc] Frame 2
stop();
_root.createSpread(this, "mEnemy_spread", 3, 240, 30, 6);
_root.splode2_sound.start();
Symbol 101 MovieClip [nmeSeeker] Frame 1
stop();
_root.initEnemy(this, 1, 13, 100);
var nRadians = Math.atan2(_root.Player._y - this._y, _root.Player._x - this._x);
var nDegrees = Math.round(nRadians * _root.convertToRadians);
var nDirection = (nDegrees + 90);
var xspeed = (nSpeed * Math.sin(nDirection * _root.convertToDegrees));
var yspeed = (nSpeed * Math.cos(nDirection * _root.convertToDegrees));
_rotation = nDegrees;
hitarea._visible = false;
this.onEnterFrame = function () {
_root.collideEnemy(this);
_root.removeSeeker(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
};
Symbol 101 MovieClip [nmeSeeker] Frame 2
stop();
_root.ssplode_sound.start();
Symbol 104 MovieClip [nmeSheavy] Frame 1
stop();
_root.initEnemy(this, 32, 6, 1600);
var reps = 2;
var ran = (random(90) - 45);
this.hitarea._visible = false;
onEnterFrame = function () {
nTime++;
_root.collideEnemy(this);
if ((nTime >= 35) && (reps > 0)) {
if (nSpeed > 1) {
nSpeed = nSpeed - 0.5;
}
}
if (nTime < 60) {
if (reps == 2) {
boostfl._visible = true;
boostfr._visible = true;
boostbl._visible = true;
boostbr._visible = true;
}
} else {
boostfl._visible = false;
boostfr._visible = false;
boostbl._visible = false;
boostbr._visible = false;
}
if ((nTime >= 85) && (reps == 0)) {
if (nSpeed < 8) {
nSpeed = nSpeed + 0.25;
}
boostbl._visible = true;
boostbr._visible = true;
}
if (_y < 650) {
_y = (_y + nSpeed);
} else {
_root.removeEnemy(this, 0);
}
if (nTime == 45) {
_root.repeatBullet(this, 4, 4, "bltAbsorb", 12);
}
if (nTime == 65) {
_root.createSpread(this, "mEnemy_spreadbig", 8, 0, 45, 4);
}
if (nTime == 75) {
_root.createSpread(this, "mEnemy_spread", 8, ran, 45, 8);
}
if (nTime == 85) {
if (reps > 0) {
reps--;
ran = random(360);
nTime = 20;
}
}
};
Symbol 104 MovieClip [nmeSheavy] Frame 2
stop();
_root.bsplode_sound.start();
Symbol 107 MovieClip [nmeSwinder] Frame 1
stop();
_root.initEnemy(this, 3, 5, 300);
var nTheta = 0;
var startx = _x;
this.hitarea._visible = false;
onEnterFrame = function () {
nTime++;
_root.collideEnemy(this);
if (_y < 600) {
nTheta = nTheta + 12;
_x = (startx + (100 * Math.sin(nTheta * _root.convertToDegrees)));
_y = (_y + nSpeed);
} else {
_root.removeEnemy(this, 0);
}
if (nTime == 15) {
_root.createEnemyBullet(this, "mEnemy_bullet2", 10);
}
if (nTime == 45) {
_root.createEnemyBullet(this, "mEnemy_bullet2", 10);
}
};
Symbol 107 MovieClip [nmeSwinder] Frame 2
stop();
_root.splode1_sound.start();
Symbol 111 MovieClip [warning] Frame 1
var nTime = 0;
this.onEnterFrame = function () {
nTime++;
if (nTime == 40) {
this.removeMovieClip();
}
};
Symbol 111 MovieClip [warning] Frame 4
this.gotoAndPlay(2);
Symbol 143 MovieClip [charge_shot] Frame 1
stop();
var p = _root.cshield;
var damage = Math.ceil(p._xscale / 10);
_alpha = p._alpha;
_xscale = (damage * 10);
_yscale = _xscale;
this.onEnterFrame = function () {
_root.chargeCollide(this);
if (_y > 0) {
_y = (_y - _root.bspeed);
} else {
_root.nReset = true;
this.removeMovieClip();
}
};
Symbol 143 MovieClip [charge_shot] Frame 6
this.removeMovieClip();
Symbol 162 MovieClip Frame 6
_parent.removeMovieClip();
Symbol 163 MovieClip [normal_bullet] Frame 1
stop();
this.onEnterFrame = function () {
_root.bulletCollide(this);
if (_y > 0) {
_y = (_y - _root.bspeed);
} else {
this.removeMovieClip();
}
};
Symbol 163 MovieClip [normal_bullet] Frame 2
stop();
Symbol 164 MovieClip [amalstop] Frame 1
_visible = false;
Symbol 169 MovieClip [beamExp] Frame 4
this._visible = false;
Symbol 172 MovieClip [bossBeam] Frame 1
stop();
this.hitarea._visible = false;
this.onEnterFrame = function () {
_root.collideEnemy(this);
_root.collideShieldB(this);
_y = (_y + nSpeed);
_root.removeBullet(this);
};
Symbol 172 MovieClip [bossBeam] Frame 2
_root.mBeamCap.beamExp._visible = true;
_root.mBeamCap.beamExp.gotoAndPlay(1);
_root.mBeamCap.beamExp._x = _x - 0.5;
_root.mBeamCap.beamExp._y = _y + 1;
this.removeMovieClip();
Symbol 175 MovieClip [bossBeam2] Frame 1
stop();
this.hitarea._visible = false;
this.onEnterFrame = function () {
_root.collideEnemy(this);
_y = (_y + nSpeed);
if (_y > 550) {
this.removeMovieClip();
}
};
Symbol 178 MovieClip [bossBeam2Head] Frame 1
stop();
this.hitarea._visible = false;
this.onEnterFrame = function () {
_root.collideEnemy(this);
_y = (_y + nSpeed);
if (_y > 550) {
this.removeMovieClip();
}
};
Symbol 181 MovieClip [bossBeam2Tail] Frame 1
stop();
this.hitarea._visible = false;
this.onEnterFrame = function () {
_root.collideEnemy(this);
_y = (_y + nSpeed);
if (_y > 550) {
this.removeMovieClip();
}
};
Symbol 182 MovieClip [bossBeamHead] Frame 1
stop();
this.hitarea._visible = false;
this.onEnterFrame = function () {
_root.collideEnemy(this);
_root.collideShieldB(this);
_y = (_y + nSpeed);
_root.removeBullet(this);
};
Symbol 182 MovieClip [bossBeamHead] Frame 2
_root.mBeamCap.beamExp._visible = true;
_root.mBeamCap.beamExp.gotoAndPlay(1);
_root.mBeamCap.beamExp._x = _x - 0.5;
_root.mBeamCap.beamExp._y = _y + 1;
this.removeMovieClip();
Symbol 185 MovieClip [bossBeamTail] Frame 1
stop();
this.hitarea._visible = false;
this.onEnterFrame = function () {
_root.collideEnemy(this);
_root.collideShieldB(this);
_y = (_y + nSpeed);
_root.removeBullet(this);
};
Symbol 185 MovieClip [bossBeamTail] Frame 2
_root.mBeamCap.beamExp._visible = false;
this.removeMovieClip();
Symbol 186 MovieClip [bossBullet] Frame 1
stop();
var nRadians = Math.atan2(_root.Player._y - this._y, _root.Player._x - this._x);
var nDegrees = Math.round(nRadians * _root.convertToRadians);
var nDirection = (nDegrees + 90);
var xspeed = (nSpeed * Math.sin(nDirection * _root.convertToDegrees));
var yspeed = (nSpeed * Math.cos(nDirection * _root.convertToDegrees));
var nTime = 0;
hitarea._visible = false;
this.onEnterFrame = function () {
nTime++;
if (nTime < 20) {
nRadians = Math.atan2(_root.Player._y - _y, _root.Player._x - _x);
nDegrees = Math.round(nRadians * _root.convertToRadians);
nDirection = nDegrees + 90;
_rotation = nDirection;
}
if (nTime == 20) {
xspeed = nSpeed * Math.sin(nDirection * _root.convertToDegrees);
yspeed = nSpeed * Math.cos(nDirection * _root.convertToDegrees);
}
if (nTime > 20) {
_root.collideEnemy(this);
_root.removeBullet(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
}
};
Symbol 191 MovieClip [bltAbsorb] Frame 1
stop();
var nRadians = Math.atan2(_root.Player._y - this._y, _root.Player._x - this._x);
var nDegrees = Math.round(nRadians * _root.convertToRadians);
var nDirection = (nDegrees + 90);
var xspeed = (nSpeed * Math.sin(nDirection * _root.convertToDegrees));
var yspeed = (nSpeed * Math.cos(nDirection * _root.convertToDegrees));
this.onEnterFrame = function () {
_root.collideBullet(this);
_root.collideShield(this);
_root.removeBullet(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
};
Symbol 191 MovieClip [bltAbsorb] Frame 2
stop();
Symbol 192 MovieClip [bltAbsorbs] Frame 1
stop();
var nDirection;
nDirection = nDirection + 90;
var xspeed = ((nSpeed * Math.sin(nDirection * _root.convertToDegrees)) * 2);
var yspeed = (((nSpeed * Math.cos(nDirection * _root.convertToDegrees)) * 2) * -1);
this.onEnterFrame = function () {
_root.collideBullet(this);
_root.collideShield(this);
_root.removeBullet(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
};
Symbol 192 MovieClip [bltAbsorbs] Frame 2
stop();
Symbol 196 MovieClip [mEnemy_bullet1] Frame 1
stop();
this.onEnterFrame = function () {
_root.collideBullet(this);
_root.collideShield(this);
_y = (_y + nSpeed);
_root.removeBullet(this);
};
Symbol 196 MovieClip [mEnemy_bullet1] Frame 2
stop();
Symbol 201 MovieClip [mEnemy_bullet2] Frame 1
var nRadians = Math.atan2(_root.Player._y - this._y, _root.Player._x - this._x);
var nDegrees = Math.round(nRadians * _root.convertToRadians);
var nDirection = (nDegrees + 90);
var xspeed = (nSpeed * Math.sin(nDirection * _root.convertToDegrees));
var yspeed = (nSpeed * Math.cos(nDirection * _root.convertToDegrees));
this.onEnterFrame = function () {
_root.collideBullet(this);
_root.removeBullet(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
};
gotoAndPlay (2);
Symbol 202 MovieClip [mEnemy_direct] Frame 1
stop();
var nDirection;
var xspeed = ((nSpeed * Math.sin(nDirection * _root.convertToDegrees)) * 2);
var yspeed = (((nSpeed * Math.cos(nDirection * _root.convertToDegrees)) * 2) * -1);
this.onEnterFrame = function () {
_root.collideBullet(this);
_root.removeBullet(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
};
Symbol 203 MovieClip [mEnemy_spread] Frame 1
stop();
var nDirection;
nDirection = nDirection + 90;
var xspeed = ((nSpeed * Math.sin(nDirection * _root.convertToDegrees)) * 2);
var yspeed = (((nSpeed * Math.cos(nDirection * _root.convertToDegrees)) * 2) * -1);
this.onEnterFrame = function () {
_root.collideBullet(this);
_root.removeBullet(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
};
Symbol 204 MovieClip [mEnemy_spreadbig] Frame 1
stop();
var nDirection;
nDirection = nDirection + 90;
var xspeed = ((nSpeed * Math.sin(nDirection * _root.convertToDegrees)) * 2);
var yspeed = (((nSpeed * Math.cos(nDirection * _root.convertToDegrees)) * 2) * -1);
this.onEnterFrame = function () {
_root.collideBullet(this);
_root.removeBullet(this);
_x = (_x + xspeed);
_y = (_y - yspeed);
};
Symbol 238 MovieClip [mQuality] Frame 1
stop();
Symbol 238 MovieClip [mQuality] Frame 5
stop();
Symbol 238 MovieClip [mQuality] Frame 10
stop();
Symbol 257 MovieClip Frame 35
stop();
_root.gotoAndStop("end");
Symbol 258 MovieClip Frame 1
stop();
this.hitarea._visible = false;
Symbol 258 MovieClip Frame 2
stop();
_root.bsplode_sound.start();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2