Frame 1
function deadClick() {
}
function gotoMySite() {
getURL ("http://www33.brinkster.com/jewgioh", "_blank");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2008 ViolentAJ", deadClick);
var mySiteLink = new ContextMenuItem("My Site", gotoMySite);
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, myStuffLink, copyrightNotice);
_root.menu = myMenu;
MochiAd.showPreGameAd({id:"11854aa7c5ea07b6", res:"500x500"});
Frame 2
function deadClick() {
}
function gotoMySite() {
getURL ("http://www33.brinkster.com/jewgioh", "_blank");
}
stop();
impactSound = new Sound(this);
impactSound.attachSound("impact.wav");
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2008 ViolentAJ", deadClick);
var mySiteLink = new ContextMenuItem("My Site", gotoMySite);
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, myStuffLink, copyrightNotice);
_root.menu = myMenu;
Frame 3
stop();
Frame 6
stop();
score = 0;
power = 0;
ki = 0;
character = "";
Frame 7
stop();
enemyShot = 1300;
powerUpNumber = 2000;
_root.attachMovie("spawner1", "spawner", 70000);
_root.spawner._x = -100;
_root.spawner._y = 60;
_root.attachMovie("scoreShow", "showScore", 64000);
_root.showScore._x = 430;
_root.showScore._y = 15;
_root.attachMovie("powerIndicator", "powerIndicator", 64001);
_root.powerIndicator._x = 25;
_root.powerIndicator._y = 485;
_root.attachMovie("kiIndicator", "kiIndicator", 64003);
_root.kiIndicator._x = 310;
_root.kiIndicator._y = 485;
_root.attachMovie("healthMeter", "healthMeter", 64002);
_root.healthMeter._x = 150;
_root.healthMeter._y = 485;
_root.attachMovie("specialIndicator", "specialIndicator", 64004);
_root.specialIndicator._x = 450;
_root.specialIndicator._y = 485;
if (character == "AJ") {
_root.attachMovie("ajPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "DALTON") {
_root.attachMovie("daltonPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "MITSUKI") {
_root.attachMovie("mitsukiPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
this.onEnterFrame = function () {
if (this.enemyShot >= 1500) {
this.enemyShot = 1300;
}
if (this.powerUpNumber >= 2020) {
this.powerUpNumber = 2000;
}
};
Frame 8
stop();
Frame 9
stop();
enemyShot = 1300;
powerUpNumber = 2000;
_root.attachMovie("spawner2", "spawner", 70000);
_root.spawner._x = -100;
_root.spawner._y = 60;
_root.attachMovie("scoreShow", "showScore", 64000);
_root.showScore._x = 430;
_root.showScore._y = 15;
_root.attachMovie("powerIndicator", "powerIndicator", 64001);
_root.powerIndicator._x = 25;
_root.powerIndicator._y = 485;
_root.attachMovie("kiIndicator", "kiIndicator", 64003);
_root.kiIndicator._x = 310;
_root.kiIndicator._y = 485;
_root.attachMovie("healthMeter", "healthMeter", 64002);
_root.healthMeter._x = 150;
_root.healthMeter._y = 485;
_root.attachMovie("specialIndicator", "specialIndicator", 64004);
_root.specialIndicator._x = 450;
_root.specialIndicator._y = 485;
if (character == "AJ") {
_root.attachMovie("ajPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "DALTON") {
_root.attachMovie("daltonPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "MITSUKI") {
_root.attachMovie("mitsukiPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
this.onEnterFrame = function () {
if (this.enemyShot >= 1500) {
this.enemyShot = 1300;
}
if (this.powerUpNumber >= 2020) {
this.powerUpNumber = 2000;
}
};
Frame 10
stop();
Frame 11
stop();
enemyShot = 1300;
powerUpNumber = 2000;
_root.attachMovie("spawner3", "spawner", 70000);
_root.spawner._x = -100;
_root.spawner._y = 60;
_root.attachMovie("scoreShow", "showScore", 64000);
_root.showScore._x = 430;
_root.showScore._y = 15;
_root.attachMovie("powerIndicator", "powerIndicator", 64001);
_root.powerIndicator._x = 25;
_root.powerIndicator._y = 485;
_root.attachMovie("kiIndicator", "kiIndicator", 64003);
_root.kiIndicator._x = 310;
_root.kiIndicator._y = 485;
_root.attachMovie("healthMeter", "healthMeter", 64002);
_root.healthMeter._x = 150;
_root.healthMeter._y = 485;
_root.attachMovie("specialIndicator", "specialIndicator", 64004);
_root.specialIndicator._x = 450;
_root.specialIndicator._y = 485;
if (character == "AJ") {
_root.attachMovie("ajPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "DALTON") {
_root.attachMovie("daltonPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "MITSUKI") {
_root.attachMovie("mitsukiPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
this.onEnterFrame = function () {
if (this.enemyShot >= 1500) {
this.enemyShot = 1300;
}
if (this.powerUpNumber >= 2020) {
this.powerUpNumber = 2000;
}
};
Frame 12
stop();
Frame 13
stop();
enemyShot = 1300;
powerUpNumber = 2000;
_root.attachMovie("spawner4", "spawner", 70000);
_root.spawner._x = -100;
_root.spawner._y = 60;
_root.attachMovie("scoreShow", "showScore", 64000);
_root.showScore._x = 430;
_root.showScore._y = 15;
_root.attachMovie("powerIndicator", "powerIndicator", 64001);
_root.powerIndicator._x = 25;
_root.powerIndicator._y = 485;
_root.attachMovie("kiIndicator", "kiIndicator", 64003);
_root.kiIndicator._x = 310;
_root.kiIndicator._y = 485;
_root.attachMovie("healthMeter", "healthMeter", 64002);
_root.healthMeter._x = 150;
_root.healthMeter._y = 485;
_root.attachMovie("specialIndicator", "specialIndicator", 64004);
_root.specialIndicator._x = 450;
_root.specialIndicator._y = 485;
if (character == "AJ") {
_root.attachMovie("ajPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "DALTON") {
_root.attachMovie("daltonPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "MITSUKI") {
_root.attachMovie("mitsukiPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
this.onEnterFrame = function () {
if (this.enemyShot >= 1500) {
this.enemyShot = 1300;
}
if (this.powerUpNumber >= 2020) {
this.powerUpNumber = 2000;
}
};
Frame 14
stop();
Frame 15
stop();
minSpeed = 7;
maxSpeed = 10;
stars = 95;
enemyShot = 1300;
powerUpNumber = 2000;
_root.attachMovie("spawner5", "spawner", 70000);
_root.spawner._x = -100;
_root.spawner._y = 60;
_root.attachMovie("scoreShow", "showScore", 64000);
_root.showScore._x = 430;
_root.showScore._y = 15;
_root.attachMovie("powerIndicator", "powerIndicator", 64001);
_root.powerIndicator._x = 25;
_root.powerIndicator._y = 485;
_root.attachMovie("kiIndicator", "kiIndicator", 64003);
_root.kiIndicator._x = 310;
_root.kiIndicator._y = 485;
_root.attachMovie("healthMeter", "healthMeter", 64002);
_root.healthMeter._x = 150;
_root.healthMeter._y = 485;
_root.attachMovie("specialIndicator", "specialIndicator", 64004);
_root.specialIndicator._x = 450;
_root.specialIndicator._y = 485;
var i = 5;
while (i < stars) {
var star = this.attachMovie("star", "star" + i, i);
star._x = random(Stage.width);
star._y = random(Stage.height);
var size = (random(2) + (0.6 * random(4)));
star._width = size;
star._height = size;
i++;
}
if (character == "AJ") {
_root.attachMovie("ajPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "DALTON") {
_root.attachMovie("daltonPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "MITSUKI") {
_root.attachMovie("mitsukiPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
this.onEnterFrame = function () {
if (this.enemyShot >= 1500) {
this.enemyShot = 1300;
}
if (this.powerUpNumber >= 2020) {
this.powerUpNumber = 2000;
}
var _local3 = 0;
while (_local3 < stars) {
var _local2 = this["star" + _local3];
if (_local2._y < Stage.height) {
_local2._y = _local2._y + (random(maxSpeed - minSpeed) + minSpeed);
} else {
_local2._y = 0;
}
_local3++;
}
};
Frame 16
stop();
var i = 5;
while (i < 100) {
_root["star" + i].removeMovieClip();
i++;
}
Frame 17
stop();
minSpeed = 7;
maxSpeed = 10;
stars = 95;
enemyShot = 1300;
powerUpNumber = 2000;
_root.attachMovie("scoreShow", "showScore", 64000);
_root.showScore._x = 430;
_root.showScore._y = 15;
_root.attachMovie("powerIndicator", "powerIndicator", 64001);
_root.powerIndicator._x = 25;
_root.powerIndicator._y = 485;
_root.attachMovie("kiIndicator", "kiIndicator", 64003);
_root.kiIndicator._x = 310;
_root.kiIndicator._y = 485;
_root.attachMovie("healthMeter", "healthMeter", 64002);
_root.healthMeter._x = 150;
_root.healthMeter._y = 485;
_root.attachMovie("specialIndicator", "specialIndicator", 64004);
_root.specialIndicator._x = 450;
_root.specialIndicator._y = 485;
_root.attachMovie("lastBoss", "bg", 98);
_root.bg._x = 250;
_root.bg._y = -10;
var i = 5;
while (i < stars) {
var star = this.attachMovie("star", "star" + i, i);
star._x = random(Stage.width);
star._y = random(Stage.height);
var size = (random(2) + (0.6 * random(4)));
star._width = size;
star._height = size;
i++;
}
if (character == "AJ") {
_root.attachMovie("ajPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "DALTON") {
_root.attachMovie("daltonPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
if (character == "MITSUKI") {
_root.attachMovie("mitsukiPlane", "playerShip", 201);
_root.playerShip._x = 234;
_root.playerShip._y = 378;
}
this.onEnterFrame = function () {
if (this.enemyShot >= 1500) {
this.enemyShot = 1300;
}
if (this.powerUpNumber >= 2020) {
this.powerUpNumber = 2000;
}
var _local3 = 0;
while (_local3 < stars) {
var _local2 = this["star" + _local3];
if (_local2._y < Stage.height) {
_local2._y = _local2._y + (random(maxSpeed - minSpeed) + minSpeed);
} else {
_local2._y = 0;
}
_local3++;
}
};
Frame 18
stop();
var i = 5;
while (i < 100) {
_root["star" + i].removeMovieClip();
i++;
}
Frame 30
stop();
spawner.removeMovieClip();
boss.removeMovieClip();
bg.removeMovieClip();
var i = 5;
while (i < 100) {
_root["star" + i].removeMovieClip();
i++;
}
a = 1000;
while (a <= 1060) {
_root["enemy" + a].removeMovieClip();
a++;
}
b = 1300;
while (b <= 1550) {
_root["enemyBullet" + b].removeMovieClip();
b++;
}
c = 300;
while (c <= 625) {
_root["bullet" + c].removeMovieClip();
_root["bulletL" + c].removeMovieClip();
_root["bulletLL" + c].removeMovieClip();
_root["bulletLLL" + c].removeMovieClip();
_root["bulletLLP" + c].removeMovieClip();
_root["bulletLLLP" + c].removeMovieClip();
_root["bulletR" + c].removeMovieClip();
_root["bulletRR" + c].removeMovieClip();
_root["bulletRRR" + c].removeMovieClip();
_root["bulletRRP" + c].removeMovieClip();
_root["bulletRRRP" + c].removeMovieClip();
c++;
}
d = 210;
while (d <= 225) {
_root["kiAttack" + d].removeMovieClip();
d++;
}
e = 110;
while (e <= 150) {
_root["missileL" + e].removeMovieClip();
_root["missileR" + e].removeMovieClip();
_root["daltonBomb" + e].removeMovieClip();
_root["specialMitsuki" + e].removeMovieClip();
e++;
}
f = 2000;
while (f <= 2030) {
_root["powerUp" + f].removeMovieClip();
f++;
}
showScore.removeMovieClip();
kiIndicator.removeMovieClip();
powerIndicator.removeMovieClip();
healthMeter.removeMovieClip();
specialIndicator.removeMovieClip();
stopAllSounds();
Frame 31
passbutton.onRelease = function () {
if (passText.text == "exit") {
gotoAndStop ("menu");
}
if (passText.text == "firstLevel") {
gotoAndStop ("level1");
}
if (passText.text == "blazing") {
gotoAndStop ("level2");
}
if (passText.text == "saddles") {
gotoAndStop ("level3");
}
if (passText.text == "bloke") {
gotoAndStop ("level4");
}
if (passText.text == "penguin") {
gotoAndStop ("level5");
}
if (passText.text == "snakes") {
gotoAndStop ("finalLevel");
}
if (passText.text == "credits") {
gotoAndStop ("credits");
}
};
Symbol 8 MovieClip [player_ship1] Frame 1
function shooting() {
if (this.power == 1) {
_root.attachMovie("bulletLvl1", "bullet" + i, i);
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 14.8;
}
this.i++;
}
stop();
moveSpeed = 8;
shotTimer = 0;
invulTimer = 200;
power = 1;
maxPower = 3;
invul = true;
i = 300;
this.onEnterFrame = function () {
if (this.invulTimer > 0) {
this.invul = true;
this.invulTimer--;
this._alpha = 70;
} else {
this.invul = false;
this._alpha = 100;
}
if (Key.isDown(38) && (_y > 25)) {
this._y = this._y - moveSpeed;
}
if (Key.isDown(40) && (_y < 460)) {
this._y = this._y + moveSpeed;
}
if (Key.isDown(37) && (_x > 20)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(39) && (_x < 473)) {
this._x = this._x + moveSpeed;
}
if (Key.isDown(90) && (shotTimer <= 0)) {
this.shooting();
this.shotTimer = 10;
}
this.shotTimer--;
if (this.i >= 600) {
this.i = 300;
}
};
Symbol 10 MovieClip [bulletLvl1] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 17;
if (this._y <= -5) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1250) {
if (this.hitTest(_root["enemy" + a].hitBox)) {
_root["enemy" + a].health--;
this.removeMovieClip();
}
a++;
}
};
Symbol 12 MovieClip [enemy] Frame 1
stop();
health = 3;
this.onEnterFrame = function () {
this._y = this._y + 5;
this._alpha = (health / 3) * 100;
if (this.health <= 0) {
this.removeMovieClip();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1 || (_root.playerShip.hitBox2)))) {
trace("hit");
}
};
Symbol 21 MovieClip Frame 5
stop();
Symbol 22 MovieClip [ajPlane] Frame 1
function shooting() {
if (this.power == 0) {
_root.attachMovie("ajBulletLvl1", "bullet" + i, i);
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 33.3;
} else if (this.power == 1) {
_root.attachMovie("ajBulletLvl2", "bullet" + i, i);
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 33.3;
} else if (this.power == 2) {
_root.attachMovie("ajBulletLvl3", "bullet" + i, i);
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 33.3;
} else if (this.power == 3) {
_root.attachMovie("ajBulletLvl4", "bullet" + i, i);
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 33.3;
}
this.i++;
}
function missiles() {
_root.attachMovie("ajMissile_Left", "missileL" + n, n);
_root["missileL" + n]._x = this._x - 5.3;
_root["missileL" + n]._y = this._y + 3.3;
n++;
_root.attachMovie("ajMissile_Right", "missileR" + m, m);
_root["missileR" + m]._x = this._x + 5.3;
_root["missileR" + m]._y = this._y + 3.3;
n++;
this.special--;
}
function useKi() {
_root.attachMovie("ajKiAttack", "kiAttack" + k, k);
_root["kiAttack" + k]._x = this._x - 1;
_root["kiAttack" + k]._y = this._y - 33;
this.ki = this.ki - 100;
_root.ki = _root.ki - 100;
}
stop();
moveSpeed = 9;
shotTimer = 0;
invulTimer = 150;
power = _root.power;
maxPower = 3;
invul = true;
ki = _root.ki;
maxKi = 100;
special = 6;
maxSpecial = 12;
specialIncrement = 2;
specialTimer = 0;
usingKi = false;
i = 300;
n = 110;
m = 130;
k = 210;
health = 100;
maxHealth = 100;
damageAccrued = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.invul) {
this._alpha = 50;
} else {
this._alpha = 100;
}
if (this.invulTimer > 0) {
this.invul = true;
this.invulTimer--;
}
if ((this.invulTimer <= 0) && (!this.usingKi)) {
this.invul = false;
}
if (this.damageAccrued >= 20) {
this.invul = true;
this.invulTimer = 150;
if (this.power > 0) {
this.power--;
_root.power--;
}
this.damageAccrued = 0;
}
if (this.health <= 0) {
this.play();
}
if (Key.isDown(38) && (_y > 30)) {
this._y = this._y - moveSpeed;
}
if (Key.isDown(40) && (_y < 470)) {
this._y = this._y + moveSpeed;
}
if (Key.isDown(37) && (_x > 20)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(39) && (_x < 478)) {
this._x = this._x + moveSpeed;
}
if ((Key.isDown(90) && (shotTimer <= 0)) && (!this.usingKi)) {
this.shooting();
this.shotTimer = 10;
}
if ((Key.isDown(88) && (specialTimer <= 0)) && (this.special > 0)) {
this.missiles();
this.specialTimer = 100;
}
if ((Key.isDown(67) && (!this.usingKi)) && (this.ki == this.maxKi)) {
this.useKi();
this.usingKi = true;
this.invul = true;
}
if (this.shotTimer > 0) {
this.shotTimer--;
}
if (this.specialTimer > 0) {
this.specialTimer--;
}
if (this.ki > this.maxKi) {
this.ki = maxKi;
_root.ki = maxKi;
}
if (this.i >= 600) {
this.i = 300;
}
if (this.n >= 120) {
this.n = 110;
}
if (this.m >= 140) {
this.m = 130;
}
if (this.k >= 220) {
this.k = 210;
}
}
};
Symbol 22 MovieClip [ajPlane] Frame 39
stop();
_root.gotoAndStop("gameOver");
Symbol 25 MovieClip [ajBulletLvl1] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 24;
if (this._y <= -5) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health--;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health--;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health--;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health--;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health--;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health--;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health--;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health--;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 27 MovieClip [ajBulletLvl2] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 24;
if (this._y <= -5) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 2;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 2;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 2;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 2;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 2;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 2;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 2;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 2;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 29 MovieClip [ajBulletLvl3] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 24;
if (this._y <= -5) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 3;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 3;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 3;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health - 3;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 3;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 3;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 3;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 3;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 31 MovieClip [ajBulletLvl4] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 24;
if (this._y <= -5) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 4;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 4;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 4;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 4;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 4;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 4;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 4;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 4;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 40 MovieClip [ajMissile_Right] Frame 1
stop();
xPos = this._x;
this.onEnterFrame = function () {
if (this._currentframe < 3) {
if (this._y <= -10) {
this.removeMovieClip();
}
if (this._x < (xPos + 20)) {
this._x = this._x + 2;
} else {
this._y = this._y - 12;
this.gotoAndStop(2);
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health--;
this.gotoAndPlay(3);
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root.boss.hitBox2)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root.boss.hitBox3)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
}
if (this._currentframe >= 3) {
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a])) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
}
a++;
}
if (this.hitTest(_root.boss)) {
_root.boss.health = _root.boss.health - 0.5;
}
}
};
Symbol 40 MovieClip [ajMissile_Right] Frame 2
stop();
Symbol 40 MovieClip [ajMissile_Right] Frame 3
play();
Symbol 40 MovieClip [ajMissile_Right] Frame 4
play();
Symbol 40 MovieClip [ajMissile_Right] Frame 5
play();
Symbol 40 MovieClip [ajMissile_Right] Frame 6
play();
Symbol 40 MovieClip [ajMissile_Right] Frame 7
play();
Symbol 40 MovieClip [ajMissile_Right] Frame 8
this.removeMovieClip();
Symbol 41 MovieClip [ajMissile_Left] Frame 1
stop();
xPos = this._x;
this.onEnterFrame = function () {
if (this._currentframe < 3) {
if (this._y <= -10) {
this.removeMovieClip();
}
if (this._x > (xPos - 20)) {
this._x = this._x - 2;
} else {
this._y = this._y - 12;
this.gotoAndStop(2);
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health--;
this.gotoAndPlay(3);
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root.boss.hitBox2)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
if (this.hitTest(_root.boss.hitBox3)) {
_root["enemy" + a].health--;
this.gotoAndPlay(3);
}
}
if (this._currentframe >= 3) {
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a])) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
}
a++;
}
if (this.hitTest(_root.boss)) {
_root.boss.health = _root.boss.health - 0.5;
}
}
};
Symbol 41 MovieClip [ajMissile_Left] Frame 2
stop();
Symbol 41 MovieClip [ajMissile_Left] Frame 3
play();
Symbol 41 MovieClip [ajMissile_Left] Frame 4
play();
Symbol 41 MovieClip [ajMissile_Left] Frame 5
play();
Symbol 41 MovieClip [ajMissile_Left] Frame 6
play();
Symbol 41 MovieClip [ajMissile_Left] Frame 7
play();
Symbol 41 MovieClip [ajMissile_Left] Frame 8
this.removeMovieClip();
Symbol 46 MovieClip [ajKiAttack] Frame 1
this.onEnterFrame = function () {
this._x = _root.playerShip._x - 1;
this._y = _root.playerShip._y - 33;
if (this._currentframe >= 28) {
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a]) && (_root["enemy" + a]._y > -20)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.25;
}
a++;
}
b = 1300;
while (b <= 1550) {
if (this.hitTest(_root["enemyBullet" + b])) {
_root["enemyBullet" + b].removeMovieClip();
}
b++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.25;
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.25;
}
a++;
}
if (this.hitTest(_root.boss)) {
_root.boss.health = _root.boss.health - 0.25;
}
}
if (this._currentframe < 280) {
_root.playerShip.invul = true;
}
};
Symbol 46 MovieClip [ajKiAttack] Frame 282
stop();
_root.playerShip.invul = false;
_root.playerShip.usingKi = false;
this.removeMovieClip();
Symbol 48 MovieClip [mitsukiPlane] Frame 1
function shooting() {
if (this.power == 0) {
_root.attachMovie("mitsukiVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 8.3;
_root["bulletL" + i]._y = this._y - 4.8;
i++;
_root.attachMovie("mitsukiVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 8.3;
_root["bulletR" + i]._y = this._y - 4.8;
i++;
this.shotTimer = 8;
} else if (this.power == 1) {
_root.attachMovie("mitsukiVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 8.3;
_root["bulletL" + i]._y = this._y - 4.8;
i++;
_root.attachMovie("mitsukiVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 8.3;
_root["bulletR" + i]._y = this._y - 4.8;
i++;
this.shotTimer = 6;
} else if (this.power == 2) {
_root.attachMovie("mitsukiVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 8.3;
_root["bulletL" + i]._y = this._y - 4.8;
i++;
_root.attachMovie("mitsukiVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 8.3;
_root["bulletR" + i]._y = this._y - 4.8;
i++;
this.shotTimer = 4;
} else if (this.power == 3) {
_root.attachMovie("mitsukiVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 8.3;
_root["bulletL" + i]._y = this._y - 4.8;
i++;
_root.attachMovie("mitsukiVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 8.3;
_root["bulletR" + i]._y = this._y - 4.8;
i++;
this.shotTimer = 2;
}
}
function missiles() {
_root.attachMovie("specialMitsuki", "specialMitsuki" + n, n);
_root["specialMitsuki" + n]._x = this._x;
_root["specialMitsuki" + n]._y = this._y - 31.6;
n++;
this.special--;
}
function useKi() {
_root.attachMovie("mitsukiKi", "kiAttack" + k, k);
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
this.ki = this.ki - 75;
_root.ki = _root.ki - 75;
}
stop();
moveSpeed = 14;
shotTimer = 0;
invulTimer = 150;
power = _root.power;
maxPower = 3;
invul = true;
ki = _root.ki;
maxKi = 75;
special = 10;
maxSpecial = 20;
specialIncrement = 3;
specialTimer = 0;
usingKi = false;
i = 300;
n = 110;
k = 210;
health = 60;
maxHealth = 60;
damageAccrued = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.invul) {
this._alpha = 50;
} else {
this._alpha = 100;
}
if (this.invulTimer > 0) {
this.invul = true;
this.invulTimer--;
}
if ((this.invulTimer <= 0) && (!this.usingKi)) {
this.invul = false;
}
if (this.damageAccrued >= 20) {
this.invul = true;
this.invulTimer = 150;
if (this.power > 0) {
this.power--;
_root.power--;
}
this.damageAccrued = 0;
}
if (this.health <= 0) {
this.play();
}
if (Key.isDown(38) && (_y > 30)) {
this._y = this._y - moveSpeed;
}
if (Key.isDown(40) && (_y < 470)) {
this._y = this._y + moveSpeed;
}
if (Key.isDown(37) && (_x > 20)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(39) && (_x < 478)) {
this._x = this._x + moveSpeed;
}
if ((Key.isDown(90) && (shotTimer <= 0)) && (!this.usingKi)) {
this.shooting();
}
if ((Key.isDown(88) && (specialTimer <= 0)) && (this.special > 0)) {
this.missiles();
this.specialTimer = 50;
}
if ((Key.isDown(67) && (!this.usingKi)) && (this.ki == this.maxKi)) {
this.useKi();
this.usingKi = true;
this.invul = true;
}
if (this.shotTimer > 0) {
this.shotTimer--;
}
if (this.specialTimer > 0) {
this.specialTimer--;
}
if (this.ki > this.maxKi) {
this.ki = maxKi;
_root.ki = maxKi;
}
if (this.i >= 600) {
this.i = 300;
}
if (this.n >= 140) {
this.n = 110;
}
if (this.k >= 220) {
this.k = 210;
}
}
};
Symbol 48 MovieClip [mitsukiPlane] Frame 38
stop();
_root.gotoAndPlay("gameOver");
Symbol 51 MovieClip [mitsukiVulcan] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 34;
if (this._y <= -5) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.25;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.25;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.25;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.25;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.25;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 0.25;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 0.25;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 0.25;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 54 MovieClip [specialMitsuki] Frame 1
damage = 1;
this.onEnterFrame = function () {
this._y = this._y - 20;
if (this._y <= -5) {
this.removeMovieClip();
}
this._xscale = this._xscale + 10;
if (this.damage > 0) {
this.damage = this.damage - 0.01;
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a])) {
_root["enemy" + a].health = _root["enemy" + a].health - this.damage;
}
a++;
}
b = 1300;
while (b <= 1550) {
if (this.hitTest(_root["enemyBullet" + b])) {
_root["enemyBullet" + b].removeMovieClip();
}
b++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - this.damage;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - this.damage;
}
a++;
}
};
Symbol 56 MovieClip Frame 1
this.onEnterFrame = function () {
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a]) && (_root["enemy" + a]._y > -20)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.1;
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root.bg["building" + a])) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.1;
}
a++;
}
if (this.hitTest(_root.boss)) {
_root.boss.health = _root.boss.health - 0.1;
}
};
Symbol 58 MovieClip Frame 1
this.onEnterFrame = function () {
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a]) && (_root["enemy" + a]._y > -20)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.25;
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root.bg["building" + a])) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.25;
}
a++;
}
if (this.hitTest(_root.boss)) {
_root.boss.health = _root.boss.health - 0.25;
}
};
Symbol 59 MovieClip [mitsukiKi] Frame 1
this.onEnterFrame = function () {
this._x = _root.playerShip._x;
this._y = _root.playerShip._y;
if (this._currentframe < 44) {
_root.playerShip.invul = true;
}
b = 1300;
while (b <= 1550) {
if (this.hitTest(_root["enemyBullet" + b])) {
_root["enemyBullet" + b].removeMovieClip();
}
b++;
}
};
Symbol 59 MovieClip [mitsukiKi] Frame 73
stop();
_root.playerShip.invul = false;
_root.playerShip.usingKi = false;
this.removeMovieClip();
Symbol 61 MovieClip [daltonPlane] Frame 1
function shooting() {
if (this.power == 0) {
_root.attachMovie("forwardVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 2.7;
_root["bulletL" + i]._y = this._y - 23;
i++;
_root.attachMovie("forwardVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 2.7;
_root["bulletR" + i]._y = this._y - 23;
i++;
} else if (this.power == 1) {
_root.attachMovie("forwardVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 2.7;
_root["bulletL" + i]._y = this._y - 23;
i++;
_root.attachMovie("forwardVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 2.7;
_root["bulletR" + i]._y = this._y - 23;
i++;
_root.attachMovie("fortyFiveLeft", "bulletLL" + i, i);
_root["bulletLL" + i]._x = this._x - 13.6;
_root["bulletLL" + i]._y = this._y - 7.1;
i++;
_root.attachMovie("fortyFiveRight", "bulletRR" + i, i);
_root["bulletRR" + i]._x = this._x + 13.6;
_root["bulletRR" + i]._y = this._y - 7.1;
i++;
} else if (this.power == 2) {
_root.attachMovie("forwardVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 2.7;
_root["bulletL" + i]._y = this._y - 23;
i++;
_root.attachMovie("forwardVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 2.7;
_root["bulletR" + i]._y = this._y - 23;
i++;
_root.attachMovie("fortyFiveLeft", "bulletLL" + i, i);
_root["bulletLL" + i]._x = this._x - 13.6;
_root["bulletLL" + i]._y = this._y - 7.1;
i++;
_root.attachMovie("fortyFiveRight", "bulletRR" + i, i);
_root["bulletRR" + i]._x = this._x + 13.6;
_root["bulletRR" + i]._y = this._y - 7.1;
i++;
_root.attachMovie("thirtyLeft", "bulletLLL" + i, i);
_root["bulletLLL" + i]._x = this._x - 9.3;
_root["bulletLLL" + i]._y = this._y - 10.8;
i++;
_root.attachMovie("thirtyRight", "bulletRRR" + i, i);
_root["bulletRRR" + i]._x = this._x + 9.3;
_root["bulletRRR" + i]._y = this._y - 10.8;
i++;
} else if (this.power == 3) {
_root.attachMovie("forwardVulcan", "bulletL" + i, i);
_root["bulletL" + i]._x = this._x - 2.7;
_root["bulletL" + i]._y = this._y - 23;
i++;
_root.attachMovie("forwardVulcan", "bulletR" + i, i);
_root["bulletR" + i]._x = this._x + 2.7;
_root["bulletR" + i]._y = this._y - 23;
i++;
_root.attachMovie("fortyFiveLeft", "bulletLL" + i, i);
_root["bulletLL" + i]._x = this._x - 13.6;
_root["bulletLL" + i]._y = this._y - 7.1;
i++;
_root.attachMovie("fortyFiveRight", "bulletRR" + i, i);
_root["bulletRR" + i]._x = this._x + 13.6;
_root["bulletRR" + i]._y = this._y - 7.1;
i++;
_root.attachMovie("thirtyLeft", "bulletLLL" + i, i);
_root["bulletLLL" + i]._x = this._x - 9.3;
_root["bulletLLL" + i]._y = this._y - 10.8;
i++;
_root.attachMovie("thirtyRight", "bulletRRR" + i, i);
_root["bulletRRR" + i]._x = this._x + 9.3;
_root["bulletRRR" + i]._y = this._y - 10.8;
i++;
_root.attachMovie("fortyFiveLeft", "bulletLLP" + i, i);
_root["bulletLLP" + i]._x = this._x - 13.6;
_root["bulletLLP" + i]._y = this._y - 7.1;
i++;
_root.attachMovie("fortyFiveRight", "bulletRRP" + i, i);
_root["bulletRRP" + i]._x = this._x + 13.6;
_root["bulletRRP" + i]._y = this._y - 7.1;
i++;
_root.attachMovie("thirtyLeft", "bulletLLLP" + i, i);
_root["bulletLLLP" + i]._x = this._x - 9.3;
_root["bulletLLLP" + i]._y = this._y - 10.8;
i++;
_root.attachMovie("thirtyRight", "bulletRRRP" + i, i);
_root["bulletRRRP" + i]._x = this._x + 9.3;
_root["bulletRRRP" + i]._y = this._y - 10.8;
i++;
}
}
function missiles() {
_root.attachMovie("daltonBomb", "daltonBomb" + n, n);
_root["daltonBomb" + n]._x = this._x;
_root["daltonBomb" + n]._y = this._y;
n++;
this.special--;
}
function useKi() {
_root.attachMovie("daltonKiBubble", "kiAttack" + k, k);
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
this.ki = this.ki - 50;
_root.ki = _root.ki - 50;
}
stop();
moveSpeed = 6.5;
shotTimer = 0;
invulTimer = 150;
power = _root.power;
maxPower = 3;
invul = true;
ki = _root.ki;
maxKi = 50;
special = 2;
maxSpecial = 4;
specialIncrement = 1;
specialTimer = 0;
usingKi = false;
i = 300;
n = 110;
k = 210;
health = 150;
maxHealth = 150;
damageAccrued = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.invul) {
this._alpha = 50;
} else {
this._alpha = 100;
}
if (this.invulTimer > 0) {
this.invul = true;
this.invulTimer--;
}
if ((this.invulTimer <= 0) && (!this.usingKi)) {
this.invul = false;
}
if (this.damageAccrued >= 20) {
this.invul = true;
this.invulTimer = 150;
if (this.power > 0) {
this.power--;
_root.power--;
}
this.damageAccrued = 0;
}
if (this.health <= 0) {
this.play();
}
if (Key.isDown(38) && (_y > 30)) {
this._y = this._y - moveSpeed;
}
if (Key.isDown(40) && (_y < 470)) {
this._y = this._y + moveSpeed;
}
if (Key.isDown(37) && (_x > 20)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(39) && (_x < 478)) {
this._x = this._x + moveSpeed;
}
if (Key.isDown(90) && (shotTimer <= 0)) {
this.shooting();
this.shotTimer = 10;
}
if ((Key.isDown(88) && (specialTimer <= 0)) && (this.special > 0)) {
this.missiles();
this.specialTimer = 150;
}
if ((Key.isDown(67) && (!this.usingKi)) && (this.ki == this.maxKi)) {
this.useKi();
this.usingKi = true;
this.invul = true;
}
if (this.shotTimer > 0) {
this.shotTimer--;
}
if (this.specialTimer > 0) {
this.specialTimer--;
}
if (this.ki > this.maxKi) {
this.ki = maxKi;
_root.ki = maxKi;
}
if (this.i >= 600) {
this.i = 300;
}
if (this.n >= 140) {
this.n = 110;
}
if (this.k >= 220) {
this.k = 210;
}
}
};
Symbol 61 MovieClip [daltonPlane] Frame 50
stop();
_root.gotoAndStop("gameOver");
Symbol 64 MovieClip [forwardVulcan] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 27;
if (this._y <= -5) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 66 MovieClip [fortyFiveLeft] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 27;
this._x = this._x - 27;
if ((this._y <= -5) || (this._x < -5)) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 68 MovieClip [fortyFiveRight] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 27;
this._x = this._x + 27;
if ((this._y <= -5) || (this._x > 505)) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 70 MovieClip [thirtyLeft] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 27;
this._x = this._x - 6.03738353924943;
if ((this._y <= -5) || (this._x < -5)) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 72 MovieClip [thirtyRight] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 27;
this._x = this._x + 6.03738353924943;
if ((this._y <= -5) || (this._x < -5)) {
this.removeMovieClip();
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a].hitBox1)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox2)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + a].hitBox3)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
this.removeMovieClip();
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
a++;
}
if (this.hitTest(_root.boss.hitBox1)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox2)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
if (this.hitTest(_root.boss.hitBox3)) {
_root.boss.health = _root.boss.health - 0.5;
_root.impactSound.start(0, 0);
this.removeMovieClip();
}
};
Symbol 75 MovieClip [daltonKiBubble] Frame 1
this.onEnterFrame = function () {
this._x = _root.playerShip._x;
this._y = _root.playerShip._y;
if (this._currentframe < 300) {
_root.playerShip.invul = true;
}
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a]) && (_root["enemy" + a]._y > -20)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.05;
}
a++;
}
b = 1300;
while (b <= 1550) {
if (this.hitTest(_root["enemyBullet" + b])) {
_root["enemyBullet" + b].removeMovieClip();
}
b++;
}
};
Symbol 75 MovieClip [daltonKiBubble] Frame 301
stop();
_root.playerShip.usingKi = false;
_root.playerShip.invul = false;
this.removeMovieClip();
Symbol 78 MovieClip [daltonBomb] Frame 1
this.onEnterFrame = function () {
if (this._currentframe < 30) {
this._y = this._y - 0.03;
} else {
a = 1000;
while (a <= 1060) {
if (this.hitTest(_root["enemy" + a]) && (_root["enemy" + a]._y > -20)) {
_root["enemy" + a].health = _root["enemy" + a].health - 0.5;
}
a++;
}
b = 1300;
while (b <= 1550) {
if (this.hitTest(_root["enemyBullet" + b])) {
_root["enemyBullet" + b].removeMovieClip();
}
b++;
}
a = 1;
while (a <= 50) {
if (this.hitTest(_root["groundEnemy" + a].hitBox1)) {
_root["groundEnemy" + a].health = _root["groundEnemy" + a].health - 0.5;
}
if (this.hitTest(_root.bg["building" + a].hitBox1)) {
_root.bg["building" + a].health = _root.bg["building" + a].health - 0.5;
}
a++;
}
if (this.hitTest(_root.boss)) {
_root.boss.health = _root.boss.health - 0.5;
}
}
};
Symbol 78 MovieClip [daltonBomb] Frame 61
stop();
this.removeMovieClip();
Symbol 84 MovieClip [basicEnemy] Frame 1
stop();
health = 1;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + 7;
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
}
if (this._y > 530) {
this.removeMovieClip();
}
};
Symbol 84 MovieClip [basicEnemy] Frame 2
_root.score = _root.score + 100;
if ((_root.playerShip.ki < _root.playerShip.maxKi) && (!_root.playerShip.usingKi)) {
_root.playerShip.ki++;
_root.ki++;
}
Symbol 84 MovieClip [basicEnemy] Frame 7
stop();
this.removeMovieClip();
Symbol 87 MovieClip [basicEnemyBullet] Frame 1
this.onEnterFrame = function () {
this._y = this._y + 17;
if (this._y >= 505) {
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox1) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox2) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
};
Symbol 89 MovieClip [shootingEnemy] Frame 1
function shooting() {
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 25;
_root.enemyShot++;
}
stop();
health = 1;
shotTimer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + 5;
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 25) {
this.shotTimer++;
}
if ((this.shotTimer == 25) && (this._y > 10)) {
this.shooting();
this.shotTimer = 0;
}
}
if (this._y > 530) {
this.removeMovieClip();
}
};
Symbol 89 MovieClip [shootingEnemy] Frame 2
_root.score = _root.score + 200;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 2)) {
_root.playerShip.ki = _root.playerShip.ki + 2;
_root.ki = _root.ki + 2;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 89 MovieClip [shootingEnemy] Frame 12
stop();
this.removeMovieClip();
Symbol 91 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
Symbol 94 MovieClip [weaponPowerUp] Frame 1
stop();
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.hitTest(_root.playerShip.hitBox1)) {
this.play();
}
if (this.hitTest(_root.playerShip.hitBox2)) {
this.play();
}
this._y = this._y + 1.5;
if (this._y >= 520) {
this.removeMovieClip();
}
}
};
Symbol 94 MovieClip [weaponPowerUp] Frame 2
stop();
if (_root.playerShip.power < _root.playerShip.maxPower) {
_root.power++;
_root.playerShip.power++;
} else {
_root.score = _root.score + 1000;
}
_root.playerShip.damageAccrued = 0;
this.removeMovieClip();
Symbol 98 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
Symbol 100 MovieClip [kiPowerUp] Frame 1
stop();
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.hitTest(_root.playerShip.hitBox1)) {
this.play();
}
if (this.hitTest(_root.playerShip.hitBox2)) {
this.play();
}
this._y = this._y + 1.5;
if (this._y >= 520) {
this.removeMovieClip();
}
}
};
Symbol 100 MovieClip [kiPowerUp] Frame 2
stop();
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 10)) {
_root.ki = _root.ki + 10;
_root.playerShip.ki = _root.playerShip.ki + 10;
} else if (_root.playerShip.ki < _root.playerShip.maxKi) {
_root.ki = _root.playerShip.maxKi;
_root.playerShip.ki = _root.playerShip.maxKi;
} else {
_root.score = _root.score + 1000;
}
this.removeMovieClip();
Symbol 102 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
Symbol 105 MovieClip [repair] Frame 1
stop();
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.hitTest(_root.playerShip.hitBox1)) {
this.play();
}
if (this.hitTest(_root.playerShip.hitBox2)) {
this.play();
}
this._y = this._y + 1.5;
if (this._y >= 520) {
this.removeMovieClip();
}
}
};
Symbol 105 MovieClip [repair] Frame 2
stop();
if (_root.playerShip.health <= (_root.playerShip.maxHealth - 20)) {
_root.playerShip.health = _root.playerShip.health + 20;
} else if (_root.playerShip.health < _root.playerShip.maxHealth) {
_root.playerShip.health = _root.playerShip.maxHealth;
} else {
_root.score = _root.score + 1000;
}
_root.playerShip.damageAccrued = 0;
this.removeMovieClip();
Symbol 114 MovieClip [powerIndicator] Frame 1
stop();
this.onEnterFrame = function () {
this.gotoAndStop(_root.playerShip.power + 1);
};
Symbol 114 MovieClip [powerIndicator] Frame 2
stop();
Symbol 114 MovieClip [powerIndicator] Frame 3
stop();
Symbol 114 MovieClip [powerIndicator] Frame 4
stop();
Symbol 117 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.playerShip.health > 0) {
this._xscale = (_root.playerShip.health / _root.playerShip.maxHealth) * 100;
} else if (_root.playerShip.health > _root.playerShip.maxHealth) {
this._xscale = 100;
} else {
this._xscale = 0;
}
};
Symbol 121 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.playerShip.ki > 0) {
this._xscale = (_root.playerShip.ki / _root.playerShip.maxKi) * 100;
} else if (_root.playerShip.ki > _root.playerShip.maxKi) {
this._xscale = 100;
} else {
this._xscale = 0;
}
};
Symbol 125 MovieClip [kiIndicator] Frame 1
this.onEnterFrame = function () {
if (_root.playerShip.ki == _root.playerShip.maxKi) {
this.ready._alpha = 100;
} else {
this.ready._alpha = 0;
}
};
Symbol 130 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
Symbol 132 MovieClip [specialUp] Frame 1
stop();
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.hitTest(_root.playerShip.hitBox1)) {
this.play();
}
if (this.hitTest(_root.playerShip.hitBox2)) {
this.play();
}
this._y = this._y + 1.5;
if (this._y >= 520) {
this.removeMovieClip();
}
}
};
Symbol 132 MovieClip [specialUp] Frame 2
stop();
if (_root.playerShip.special <= (_root.playerShip.maxSpecial - _root.playerShip.specialIncrement)) {
_root.playerShip.special = _root.playerShip.special + _root.playerShip.specialIncrement;
} else if (_root.playerShip.special < _root.playerShip.maxSpecial) {
_root.playerShip.special = _root.playerShip.maxSpecial;
} else {
_root.score = _root.score + 1000;
}
this.removeMovieClip();
Symbol 134 MovieClip [dualShooter] Frame 1
function shooting() {
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x - 18.5;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 5.4;
_root.enemyShot++;
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + 18.5;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 5.4;
_root.enemyShot++;
}
stop();
health = 4;
shotTimer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + 3.5;
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 40) {
this.shotTimer++;
}
if ((this.shotTimer == 40) && (this._y > 10)) {
this.shooting();
this.shotTimer = 0;
}
}
if (this._y > 530) {
this.removeMovieClip();
}
};
Symbol 134 MovieClip [dualShooter] Frame 2
_root.score = _root.score + 400;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 4)) {
_root.playerShip.ki = _root.playerShip.ki + 4;
_root.ki = _root.ki + 4;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 134 MovieClip [dualShooter] Frame 8
stop();
this.removeMovieClip();
Symbol 137 MovieClip [followerEnemy] Frame 1
function shooting() {
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 33;
_root.enemyShot++;
}
stop();
health = 3;
shotTimer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this._y < 100) {
this._y = this._y + 4;
}
if (this._x > (_root.playerShip._x + 5)) {
this._x = this._x - 4;
} else if (this._x < (_root.playerShip._x - 5)) {
this._x = this._x + 4;
}
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 20) {
this.shotTimer++;
}
if (((this.shotTimer == 20) && (this._y > 10)) && (Math.abs(this._x - _root.playerShip._x) <= 40)) {
this.shooting();
this.shotTimer = 0;
}
}
if (this._y > 530) {
this.removeMovieClip();
}
};
Symbol 137 MovieClip [followerEnemy] Frame 2
_root.score = _root.score + 500;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 3)) {
_root.playerShip.ki = _root.playerShip.ki + 3;
_root.ki = _root.ki + 3;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 137 MovieClip [followerEnemy] Frame 7
stop();
this.removeMovieClip();
Symbol 139 MovieClip [enemyBulletLeft] Frame 1
this.onEnterFrame = function () {
this._y = this._y + 17;
this._x = this._x - 17;
if ((this._y >= 505) || (this._x < -5)) {
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox1) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox2) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
};
Symbol 141 MovieClip [enemyBulletRight] Frame 1
this.onEnterFrame = function () {
this._y = this._y + 17;
this._x = this._x + 17;
if ((this._y >= 505) || (this._x > 505)) {
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox1) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox2) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
};
Symbol 145 MovieClip [shuttleEnemy] Frame 1
function shooting() {
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 43;
_root.enemyShot++;
_root.attachMovie("enemyBulletLeft", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x - 18.2;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 13.6;
_root.enemyShot++;
_root.attachMovie("enemyBulletRight", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + 18.2;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 13.6;
_root.enemyShot++;
}
stop();
health = 10;
shotTimer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + 0.5;
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 50) {
this.shotTimer++;
}
if (((this.shotTimer == 50) && (this._y > 10)) && (this._y < 500)) {
this.shooting();
this.shotTimer = 0;
}
}
if (this._y > 580) {
this.removeMovieClip();
}
};
Symbol 145 MovieClip [shuttleEnemy] Frame 2
_root.score = _root.score + 500;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 5)) {
_root.playerShip.ki = _root.playerShip.ki + 5;
_root.ki = _root.ki + 5;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 145 MovieClip [shuttleEnemy] Frame 13
stop();
randomizer = Math.round(Math.random() * 6);
if (randomizer <= 3) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y;
_root.powerUpNumber++;
} else if (randomizer <= 5) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y;
_root.powerUpNumber++;
} else {
_root.attachMovie("specialUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y;
_root.powerUpNumber++;
}
this.removeMovieClip();
Symbol 147 MovieClip [enemyMissile] Frame 1
stop();
health = 0.25;
timer = 0;
velocity = 8;
turning_speed = 10;
targ = _root.playerShip;
xspeed = 0;
yspeed = 0;
turning = turning_speed * (Math.PI/180);
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
}
if (this._y > 530) {
this.removeMovieClip();
}
this.timer++;
if (this.timer >= 150) {
this.play();
}
lrot2 = lrot;
lrot = _rotation;
waypoint = Math.atan((_x - targ._x) / (targ._y - _y));
if (targ._y > _y) {
waypoint = waypoint + Math.PI;
}
if (waypoint < 0) {
waypoint = waypoint + (Math.PI*2);
} else if (waypoint >= (Math.PI*2)) {
waypoint = waypoint - (Math.PI*2);
}
rota = _rotation * (Math.PI/180);
if (rota < 0) {
rota = rota + (Math.PI*2);
} else if (rota >= (Math.PI*2)) {
rota = rota - (Math.PI*2);
}
orota = waypoint - rota;
if (orota < 0) {
orota = orota + (Math.PI*2);
} else if (orota >= (Math.PI*2)) {
orota = orota - (Math.PI*2);
}
if ((rota < ((waypoint - (turning / 2)) + turning)) && (rota > (waypoint - (turning / 2)))) {
rota = waypoint;
} else if (orota <= Math.PI) {
rota = rota + turning;
} else {
rota = rota - turning;
}
if (_rotation == 0) {
_rotation = (_rotation+1);
rota = _rotation * (Math.PI/180);
}
_rotation = ((rota * 180) / Math.PI);
xspeed = velocity * Math.sin(rota);
yspeed = velocity * Math.cos(rota);
_x = (_x + xspeed);
_y = (_y - yspeed);
if ((((_rotation > 0) && (lrot < 0)) && (lrot2 > 0)) || (((_rotation < 0) && (lrot > 0)) && (lrot2 < 0))) {
_rotation = 0;
}
};
Symbol 147 MovieClip [enemyMissile] Frame 6
this.stop();
this.removeMovieClip();
Symbol 149 MovieClip [enemyAtBullet] Frame 1
movespeed = 16;
xdist = _root.playerShip._x - this._x;
ydist = _root.playerShip._y - this._y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
this.onEnterFrame = function () {
this._x = this._x + xmov;
this._y = this._y + ymov;
this._rotation = this._rotation - 20;
if ((((this._y >= 505) || (this._x <= -5)) || (this._y <= -5)) || (this._x >= 505)) {
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox1) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox2) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 5;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 5;
this.removeMovieClip();
}
};
Symbol 154 MovieClip Frame 1
this.stop();
Symbol 154 MovieClip Frame 9
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = _parent._x + this._x;
_root["enemyBullet" + _root.enemyShot]._y = _parent._y + this._y;
_root.enemyShot++;
Symbol 156 MovieClip [enemyGunship] Frame 1
stop();
health = 30;
shotTimer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + 0.5;
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 60) {
this.shotTimer++;
} else {
this.shotTimer = 0;
}
if ((this.shotTimer == 30) && (this._y > 10)) {
this.door1.play();
this.door2.play();
}
if ((this.shotTimer == 35) && (this._y > 10)) {
this.door3.play();
this.door4.play();
}
if ((this.shotTimer == 40) && (this._y > 10)) {
this.door5.play();
this.door6.play();
}
}
if (this._y > 560) {
this.removeMovieClip();
}
};
Symbol 156 MovieClip [enemyGunship] Frame 2
_root.score = _root.score + 1500;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 15)) {
_root.playerShip.ki = _root.playerShip.ki + 15;
_root.ki = _root.ki + 15;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 156 MovieClip [enemyGunship] Frame 13
randomizer = Math.floor(Math.random() * 11);
if (randomizer == 4) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y;
_root.powerUpNumber++;
} else if (randomizer == 9) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y;
_root.powerUpNumber++;
}
Symbol 156 MovieClip [enemyGunship] Frame 20
this.stop();
this.removeMovieClip();
Symbol 158 MovieClip [enemySweepRot] Frame 1
function shooting() {
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root.enemyShot++;
this.timer = 0;
this.hasShot = true;
}
this.stop();
health = 0.25;
timer = 0;
hasShot = false;
speed = 14;
rot = (_rotation / 180) * Math.PI;
xMov = Math.sin(this.rot);
yMov = Math.cos(this.rot);
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this.rot = (this._rotation / 180) * Math.PI;
this.xMov = Math.sin(this.rot);
this.yMov = Math.cos(this.rot);
this._x = this._x - (this.xMov * speed);
this._y = this._y + (this.yMov * speed);
this._rotation = this._rotation + this.rotVar;
if (((((this.timer == 30) && (this._y > -10)) && (this._y < 510)) && (this._x > -10)) && (this._x < 510)) {
this.shooting();
}
if ((this._y > 510) && (this.hasShot)) {
this.removeMovieClip();
}
if ((this._x > 510) && (this.hasShot)) {
this.removeMovieClip();
}
if ((this._y < -10) && (this.hasShot)) {
this.removeMovieClip();
}
if ((this._x < -10) && (this.hasShot)) {
this.removeMovieClip();
}
this.timer++;
if (this.timer > 31) {
this.timer = 0;
}
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
}
};
Symbol 158 MovieClip [enemySweepRot] Frame 2
_root.score = _root.score + 200;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 2)) {
_root.playerShip.ki = _root.playerShip.ki + 2;
_root.ki = _root.ki + 2;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 158 MovieClip [enemySweepRot] Frame 8
this.stop();
this.removeMovieClip();
Symbol 160 MovieClip [enemySweep] Frame 1
function shooting() {
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root.enemyShot++;
this.timer = 0;
}
this.stop();
health = 0.25;
timer = 0;
this.onEnterFrame = function () {
this._y = this._y + 10;
if (this._currentframe == 1) {
if ((this.timer == 15) && (this._y > -10)) {
this.shooting();
}
if (this._y > 510) {
this.removeMovieClip();
}
this.timer++;
if (this.health <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
}
};
Symbol 160 MovieClip [enemySweep] Frame 2
_root.score = _root.score + 200;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 2)) {
_root.playerShip.ki = _root.playerShip.ki + 2;
_root.ki = _root.ki + 2;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 160 MovieClip [enemySweep] Frame 8
this.stop();
this.removeMovieClip();
Symbol 162 MovieClip [spawner5] Frame 1
function spawnEnemy(enemyType, xcoord, ycoord) {
_root.attachMovie(enemyType, "enemy" + enemyNumber, enemyNumber);
_root["enemy" + enemyNumber]._x = xcoord;
_root["enemy" + enemyNumber]._y = ycoord;
enemyNumber++;
}
timer = 0;
enemyNumber = 1000;
bossLoop = new Sound(this);
bossLoop.attachSound("bossMusic");
this.onEnterFrame = function () {
this.timer++;
if (Key.isDown(32)) {
trace(this.timer);
}
if (enemyNumber >= 1050) {
enemyNumber = 1000;
}
if (this.timer == 1) {
spawnEnemy("shuttleEnemy", 250, 30);
}
if (((this.timer >= 90) && (this.timer <= 111)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", -20, 70);
_root["enemy" + (this.enemyNumber - 1)]._rotation = -30;
_root["enemy" + (this.enemyNumber - 1)].rotVar = -4;
}
if (((this.timer >= 115) && (this.timer <= 136)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", 520, 70);
_root["enemy" + (this.enemyNumber - 1)]._rotation = 30;
_root["enemy" + (this.enemyNumber - 1)].rotVar = 4;
}
if (((this.timer >= 150) && (this.timer <= 300)) && ((this.timer % 30) == 0)) {
spawnEnemy("dualShooter", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (((this.timer >= 150) && (this.timer <= 450)) && ((this.timer % 30) == 0)) {
spawnEnemy("shootingEnemy", 30 + (Math.random() * (Stage.width - 70)), -30);
}
if (((this.timer >= 453) && (this.timer <= 486)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", -20, 170);
_root["enemy" + (this.enemyNumber - 1)]._rotation = -45;
_root["enemy" + (this.enemyNumber - 1)].rotVar = -5;
}
if (this.timer == 500) {
spawnEnemy("shuttleEnemy", 250, -30);
}
if (((this.timer >= 570) && (this.timer <= 603)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", 520, 170);
_root["enemy" + (this.enemyNumber - 1)]._rotation = 45;
_root["enemy" + (this.enemyNumber - 1)].rotVar = 5;
}
if (this.timer == 650) {
spawnEnemy("enemyGunship", 350, -100);
}
if (this.timer == 750) {
spawnEnemy("enemyGunship", 150, -100);
}
if (((this.timer >= 753) && (this.timer <= 783)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", -20, 270);
_root["enemy" + (this.enemyNumber - 1)]._rotation = -45;
_root["enemy" + (this.enemyNumber - 1)].rotVar = -5;
}
if (((this.timer >= 762) && (this.timer <= 792)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", 520, 170);
_root["enemy" + (this.enemyNumber - 1)]._rotation = 35;
_root["enemy" + (this.enemyNumber - 1)].rotVar = 4;
}
if (this.timer == 1000) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 30 + (Math.random() * (Stage.width - 70));
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
}
if (((this.timer >= 1050) && (this.timer <= 1200)) && ((this.timer % 15) == 0)) {
spawnEnemy("enemySpreadMissile", 10 + (Math.random() * (Stage.width - 30)), -10);
}
if (this.timer == 1500) {
spawnEnemy("shuttleEnemy", 30 + (Math.random() * (Stage.width - 70)), -30);
}
if (((this.timer >= 1503) && (this.timer <= 1533)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", 520, 170);
_root["enemy" + (this.enemyNumber - 1)]._rotation = 35;
_root["enemy" + (this.enemyNumber - 1)].rotVar = 4;
}
if (((this.timer >= 1566) && (this.timer <= 1596)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", -20, 170);
_root["enemy" + (this.enemyNumber - 1)]._rotation = -35;
_root["enemy" + (this.enemyNumber - 1)].rotVar = -4;
}
if (((this.timer >= 1596) && (this.timer <= 1626)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", 520, 70);
_root["enemy" + (this.enemyNumber - 1)]._rotation = 45;
_root["enemy" + (this.enemyNumber - 1)].rotVar = 4;
}
if (((this.timer >= 1656) && (this.timer <= 1686)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", -20, 90);
_root["enemy" + (this.enemyNumber - 1)]._rotation = -45;
_root["enemy" + (this.enemyNumber - 1)].rotVar = -4;
}
if (((this.timer >= 1900) && (this.timer <= 3100)) && ((this.timer % 100) == 0)) {
spawnEnemy("followerEnemy", 30 + (Math.random() * (Stage.width - 70)), -30);
}
if (((this.timer >= 2500) && (this.timer <= 2800)) && ((this.timer % 30) == 0)) {
spawnEnemy("enemySpreadMissile", 10 + (Math.random() * (Stage.width - 30)), -10);
}
if (((this.timer >= 2950) && (this.timer <= 3200)) && ((this.timer % 50) == 0)) {
spawnEnemy("dualShooter", 30 + (Math.random() * (Stage.width - 70)), -30);
}
if (this.timer == 3400) {
spawnEnemy("enemyGunship", 100, -50);
spawnEnemy("enemyGunship", 250, -100);
spawnEnemy("enemyGunship", 400, -50);
}
if (((this.timer >= 4000) && (this.timer <= 4030)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", 520, 170);
_root["enemy" + (this.enemyNumber - 1)]._rotation = 35;
_root["enemy" + (this.enemyNumber - 1)].rotVar = 4;
}
if (((this.timer >= 4090) && (this.timer <= 4120)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", -20, 170);
_root["enemy" + (this.enemyNumber - 1)]._rotation = -35;
_root["enemy" + (this.enemyNumber - 1)].rotVar = -4;
}
if (((this.timer >= 4150) && (this.timer <= 4180)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", 520, 70);
_root["enemy" + (this.enemyNumber - 1)]._rotation = 45;
_root["enemy" + (this.enemyNumber - 1)].rotVar = 4;
}
if (((this.timer >= 4210) && (this.timer <= 4240)) && ((this.timer % 3) == 0)) {
spawnEnemy("enemySweepRot", -20, 90);
_root["enemy" + (this.enemyNumber - 1)]._rotation = -45;
_root["enemy" + (this.enemyNumber - 1)].rotVar = -4;
}
if (this.timer == 4450) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 250;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 150;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 350;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
}
if (this.timer == 4500) {
stopAllSounds();
bossLoop.start(0, 5);
_root.attachMovie("fifthBoss", "boss", 97);
_root.boss._x = 250;
_root.boss._y = -130;
}
};
Symbol 163 MovieClip [spawner4] Frame 1
function spawnEnemy(enemyType, xcoord, ycoord) {
_root.attachMovie(enemyType, "enemy" + enemyNumber, enemyNumber);
_root["enemy" + enemyNumber]._x = xcoord;
_root["enemy" + enemyNumber]._y = ycoord;
enemyNumber++;
}
timer = 0;
enemyNumber = 1000;
this.onEnterFrame = function () {
this.timer++;
if (enemyNumber >= 1050) {
enemyNumber = 1000;
}
if (((this.timer >= 50) && (this.timer <= 200)) && ((this.timer % 20) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (this.timer == 250) {
spawnEnemy("shuttleEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (((this.timer >= 340) && (this.timer <= 500)) && ((this.timer % 20) == 0)) {
spawnEnemy("shootingEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (this.timer == 550) {
spawnEnemy("enemyGunship", 70 + (Math.random() * 100), -60);
}
if (this.timer == 650) {
spawnEnemy("enemyGunship", 300 + (Math.random() * 100), -60);
}
if (((this.timer >= 900) && (this.timer <= 1200)) && ((this.timer % 40) == 0)) {
spawnEnemy("followerEnemy", 30 + (Math.random() * (Stage.width - 70)), -30);
}
if (this.timer == 1300) {
spawnEnemy("shuttleEnemy", 250, -40);
spawnEnemy("shuttleEnemy", 40 + (Math.random() * (Stage.width - 80)), -100);
}
if (this.timer == 1400) {
spawnEnemy("dualShooter", 250, -30);
spawnEnemy("dualShooter", 300, -70);
spawnEnemy("dualShooter", 200, -70);
}
if (((this.timer >= 1500) && (this.timer <= 1700)) && ((this.timer % 25) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (this.timer == 1800) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 100;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 400;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 250;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
}
};
Symbol 164 MovieClip [spawner3] Frame 1
function spawnEnemy(enemyType, xcoord, ycoord) {
_root.attachMovie(enemyType, "enemy" + enemyNumber, enemyNumber);
_root["enemy" + enemyNumber]._x = xcoord;
_root["enemy" + enemyNumber]._y = ycoord;
enemyNumber++;
}
timer = 0;
enemyNumber = 1000;
this.onEnterFrame = function () {
this.timer++;
if (enemyNumber >= 1050) {
enemyNumber = 1000;
}
if (this.timer == 50) {
spawnEnemy("shuttleEnemy", 250, -40);
}
if (this.timer == 150) {
spawnEnemy("dualShooter", 50, -30);
spawnEnemy("dualShooter", 150, -30);
spawnEnemy("dualShooter", 250, -30);
spawnEnemy("dualShooter", 350, -30);
spawnEnemy("dualShooter", 450, -30);
}
if (((this.timer >= 415) && (this.timer <= 570)) && ((this.timer % 20) == 0)) {
spawnEnemy("enemySweep", 20 + (Math.random() * (Stage.width - 60)), -20);
}
if (this.timer == 600) {
spawnEnemy("shuttleEnemy", 40 + (Math.random() * (Stage.width - 80)), -40);
}
if (((this.timer >= 900) && (this.timer <= 1200)) && ((this.timer % 20) == 0)) {
spawnEnemy("shootingEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (this.timer == 1337) {
spawnEnemy("enemyGunship", 50, -60);
spawnEnemy("enemyGunship", 450, -60);
}
if (((this.timer >= 1850) && (this.timer <= 2100)) && ((this.timer % 10) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (((this.timer >= 2200) && (this.timer <= 2400)) && ((this.timer % 40) == 0)) {
spawnEnemy("dualShooter", 30 + (Math.random() * (Stage.width - 70)), -20);
}
if (this.timer == 2550) {
spawnEnemy("shuttleEnemy", 40 + (Math.random() * (Stage.width - 80)), -40);
}
if (((this.timer >= 2700) && (this.timer <= 3400)) && ((this.timer % 90) == 0)) {
spawnEnemy("followerEnemy", 40 + (Math.random() * (Stage.width - 80)), -40);
}
if (((this.timer >= 3200) && (this.timer <= 3500)) && ((this.timer % 30) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (((this.timer >= 3600) && (this.timer <= 3760)) && ((this.timer % 20) == 0)) {
spawnEnemy("enemySweep", 20 + (Math.random() * (Stage.width - 60)), -20);
}
if (this.timer == 3900) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 100;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = 400;
_root["powerUp" + _root.powerUpNumber]._y = -10;
_root.powerUpNumber++;
}
};
Symbol 165 MovieClip [spawner2] Frame 1
function spawnEnemy(enemyType, xcoord, ycoord) {
_root.attachMovie(enemyType, "enemy" + enemyNumber, enemyNumber);
_root["enemy" + enemyNumber]._x = xcoord;
_root["enemy" + enemyNumber]._y = ycoord;
enemyNumber++;
}
timer = 0;
enemyNumber = 1000;
this.onEnterFrame = function () {
this.timer++;
if (enemyNumber >= 1050) {
enemyNumber = 1000;
}
if (this.timer == 50) {
spawnEnemy("basicEnemy", 190, -90);
spawnEnemy("basicEnemy", 220, -60);
spawnEnemy("basicEnemy", 250, -30);
spawnEnemy("basicEnemy", 280, -60);
spawnEnemy("basicEnemy", 310, -90);
}
if (this.timer == 100) {
spawnEnemy("basicEnemy", 190, -90);
spawnEnemy("basicEnemy", 220, -60);
spawnEnemy("basicEnemy", 250, -30);
spawnEnemy("basicEnemy", 280, -60);
spawnEnemy("basicEnemy", 310, -90);
}
if (this.timer == 130) {
spawnEnemy("shootingEnemy", 200, -30);
spawnEnemy("shootingEnemy", 300, -30);
}
if (this.timer == 150) {
spawnEnemy("dualShooter", 250, -30);
}
if (((this.timer >= 300) && (this.timer <= 500)) && ((this.timer % 20) == 0)) {
spawnEnemy("shootingEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (this.timer == 615) {
spawnEnemy("shuttleEnemy", 60 + (Math.random() * (Stage.width - 100)), -50);
}
if (this.timer == 800) {
spawnEnemy("dualShooter", 160, -120);
spawnEnemy("shootingEnemy", 190, -90);
spawnEnemy("shootingEnemy", 220, -60);
spawnEnemy("shootingEnemy", 250, -30);
spawnEnemy("shootingEnemy", 280, -60);
spawnEnemy("shootingEnemy", 310, -90);
spawnEnemy("dualShooter", 340, -120);
}
if (this.timer == 900) {
spawnEnemy("shuttleEnemy", 60 + (Math.random() * (Stage.width - 100)), -50);
}
if (((this.timer >= 910) && (this.timer <= 1200)) && ((this.timer % 30) == 0)) {
spawnEnemy("dualShooter", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (this.timer == 1500) {
spawnEnemy("enemyGunship", 100, -50);
spawnEnemy("enemyGunship", 400, -50);
}
if (((this.timer >= 2040) && (this.timer <= 2300)) && ((this.timer % 20) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (((this.timer >= 2400) && (this.timer <= 2600)) && ((this.timer % 20) == 0)) {
spawnEnemy("shootingEnemy", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (((this.timer >= 2700) && (this.timer <= 2900)) && ((this.timer % 50) == 0)) {
spawnEnemy("dualShooter", 40 + (Math.random() * (Stage.width - 80)), -30);
}
if (this.timer == 3000) {
spawnEnemy("shuttleEnemy", 150, -60);
spawnEnemy("shuttleEnemy", 250, -40);
spawnEnemy("shuttleEnemy", 350, -60);
}
if (this.timer == 3600) {
spawnEnemy("shuttleEnemy", 250, -40);
}
};
Symbol 166 MovieClip [spawner1] Frame 1
function spawnEnemy(enemyType, xcoord, ycoord) {
_root.attachMovie(enemyType, "enemy" + enemyNumber, enemyNumber);
_root["enemy" + enemyNumber]._x = xcoord;
_root["enemy" + enemyNumber]._y = ycoord;
enemyNumber++;
}
timer = 0;
enemyNumber = 1000;
this.onEnterFrame = function () {
this.timer++;
if (enemyNumber >= 1050) {
enemyNumber = 1000;
}
if (this.timer == 70) {
spawnEnemy("basicEnemy", 30, -60);
spawnEnemy("basicEnemy", 60, -40);
spawnEnemy("basicEnemy", 90, -20);
}
if (this.timer == 90) {
spawnEnemy("basicEnemy", 350, -20);
spawnEnemy("basicEnemy", 380, -40);
spawnEnemy("basicEnemy", 410, -60);
}
if (((this.timer > 100) && (this.timer <= 300)) && ((this.timer % 10) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -20);
}
if (this.timer == 350) {
spawnEnemy("shuttleEnemy", 300, -30);
}
if ((this.timer == 500) || (this.timer == 600)) {
spawnEnemy("shootingEnemy", 220, -30);
spawnEnemy("shootingEnemy", 280, -30);
}
if (((this.timer > 700) && (this.timer <= 1000)) && ((this.timer % 10) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -20);
}
if (this.timer == 1050) {
spawnEnemy("shuttleEnemy", 350, -30);
spawnEnemy("shuttleEnemy", 150, -30);
}
if (((this.timer > 1200) && (this.timer <= 1600)) && ((this.timer % 20) == 0)) {
spawnEnemy("basicEnemy", 40 + (Math.random() * (Stage.width - 80)), -20);
}
if (((this.timer > 1200) && (this.timer <= 1600)) && ((this.timer % 50) == 0)) {
spawnEnemy("shootingEnemy", 40 + (Math.random() * (Stage.width - 80)), -20);
}
if (this.timer == 1800) {
spawnEnemy("enemyGunship", 250, -30);
}
if (((this.timer == 2000) || (this.timer == 2100)) || (this.timer == 2200)) {
spawnEnemy("shootingEnemy", 100, -20);
spawnEnemy("shootingEnemy", 400, -20);
}
if (this.timer == 2350) {
spawnEnemy("shootingEnemy", 100, -80);
spawnEnemy("shootingEnemy", 200, -20);
spawnEnemy("shootingEnemy", 300, -20);
spawnEnemy("shootingEnemy", 400, -80);
}
if (this.timer == 2500) {
spawnEnemy("shuttleEnemy", 250, -40);
}
};
Symbol 170 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.boss.health >= 0) {
this._xscale = (_root.boss.health / _root.boss.maxHealth) * 100;
}
};
Symbol 172 MovieClip [firstBoss] Frame 1
function shooting() {
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + 8;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 47.8;
_root.enemyShot++;
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x - 8;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 47.8;
_root.enemyShot++;
}
function patternShot(xPos, yPos) {
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + xPos;
_root["enemyBullet" + _root.enemyShot]._y = this._y + yPos;
_root.enemyShot++;
}
stop();
health = 150;
maxHealth = 150;
shotTimer = 0;
down = false;
yMax = 0;
xMax = 0;
yMin = 0;
xMin = 0;
xDir = "left";
yDir = "down";
this.onEnterFrame = function () {
if ((this._y >= 140) && (!this.down)) {
this.xMax = this._x + 150;
this.yMax = this._y + 75;
this.yMin = this._y - 75;
this.xMin = this._x - 150;
this.down = true;
}
if (!this.down) {
this._y = this._y + 2;
}
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
if (this.down) {
if (this.xDir == "left") {
this._x = this._x - 3;
}
if (this.xDir == "right") {
this._x = this._x + 3;
}
if (this.yDir == "up") {
this._y = this._y - 3;
}
if (this.yDir == "down") {
this._y = this._y + 3;
}
if (this._y > this.yMax) {
this.yDir = "up";
}
if (this._y < this.yMin) {
this.yDir = "down";
}
if (this._x > this.xMax) {
this.xDir = "left";
}
if (this._x < this.xMin) {
this.xDir = "right";
}
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 300) {
this.shotTimer++;
}
if (this.shotTimer >= 300) {
this.shotTimer = 0;
}
if (((this.shotTimer % 30) == 0) && (this._y > 10)) {
this.shooting();
}
if (this.shotTimer == 50) {
patternShot(-65, 2.8);
patternShot(65, 2.8);
}
if (this.shotTimer == 60) {
patternShot(-31.1, 2.8);
patternShot(31.1, 2.8);
}
if (this.shotTimer == 70) {
patternShot(-16.1, 8.8);
patternShot(16.1, 8.8);
}
if (this.shotTimer == 80) {
patternShot(-20.1, -38.8);
patternShot(20.1, -38.8);
}
if (this.shotTimer == 90) {
patternShot(-20.1, -38.8);
patternShot(20.1, -38.8);
}
if (this.shotTimer == 100) {
patternShot(-16.1, 8.8);
patternShot(16.1, 8.8);
}
if (this.shotTimer == 110) {
patternShot(-31.1, 2.8);
patternShot(31.1, 2.8);
}
if (this.shotTimer == 120) {
patternShot(-65, 2.8);
patternShot(65, 2.8);
}
if (((this.shotTimer == 150) || (this.shotTimer == 200)) || (this.shotTimer == 250)) {
patternShot(-20.1, -38.8);
patternShot(20.1, -38.8);
patternShot(-16.1, 8.8);
patternShot(16.1, 8.8);
patternShot(-31.1, 2.8);
patternShot(31.1, 2.8);
patternShot(-65, 2.8);
patternShot(65, 2.8);
}
}
};
Symbol 172 MovieClip [firstBoss] Frame 2
_root.score = _root.score + 30000;
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 20)) {
_root.playerShip.ki = _root.playerShip.ki + 20;
_root.ki = _root.ki + 20;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
Symbol 172 MovieClip [firstBoss] Frame 90
stop();
_root.attachMovie("stageComplete", "stageComplete", 70005);
_root.stageComplete._x = 250;
_root.stageComplete._y = 250;
this.removeMovieClip();
Symbol 182 Button
on (release) {
_root.stageComplete.play();
}
Symbol 183 MovieClip [stageComplete] Frame 1
stop();
timer = 0;
specialBonus = Math.floor((_root.playerShip.special / _root.playerShip.maxSpecial) * 5000);
healthBonus = Math.floor((_root.playerShip.health / _root.playerShip.maxHealth) * 10000);
_root.score = _root.score + (specialBonus + healthBonus);
_root.spawner.removeMovieClip();
_root.boss.removeMovieClip();
a = 1000;
while (a <= 1060) {
_root["enemy" + a].removeMovieClip();
a++;
}
b = 1300;
while (b <= 1550) {
_root["enemyBullet" + b].removeMovieClip();
b++;
}
c = 300;
while (c <= 625) {
_root["bullet" + c].removeMovieClip();
_root["bulletL" + c].removeMovieClip();
_root["bulletLL" + c].removeMovieClip();
_root["bulletLLL" + c].removeMovieClip();
_root["bulletLLP" + c].removeMovieClip();
_root["bulletLLLP" + c].removeMovieClip();
_root["bulletR" + c].removeMovieClip();
_root["bulletRR" + c].removeMovieClip();
_root["bulletRRR" + c].removeMovieClip();
_root["bulletRRP" + c].removeMovieClip();
_root["bulletRRRP" + c].removeMovieClip();
c++;
}
d = 210;
while (d <= 225) {
_root["kiAttack" + d].removeMovieClip();
d++;
}
e = 110;
while (e <= 150) {
_root["missileL" + e].removeMovieClip();
_root["missileR" + e].removeMovieClip();
_root["daltonBomb" + e].removeMovieClip();
_root["specialMitsuki" + e].removeMovieClip();
e++;
}
f = 2000;
while (f <= 2030) {
_root["powerUp" + f].removeMovieClip();
f++;
}
_root.showScore.removeMovieClip();
_root.kiIndicator.removeMovieClip();
_root.powerIndicator.removeMovieClip();
_root.healthMeter.removeMovieClip();
_root.specialIndicator.removeMovieClip();
this.onEnterFrame = function () {
if (this.timer >= 10) {
_root.playerShip.removeMovieClip();
}
if (this.timer <= 10) {
this.timer++;
}
};
Symbol 183 MovieClip [stageComplete] Frame 2
stop();
stopAllSounds();
_root.nextFrame();
this.removeMovieClip();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 12
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) - 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 187 MovieClip Frame 14
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) - 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 187 MovieClip Frame 16
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) - 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 187 MovieClip Frame 18
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) - 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 187 MovieClip Frame 20
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) - 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 12
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) + 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 188 MovieClip Frame 14
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) + 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 188 MovieClip Frame 16
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) + 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 188 MovieClip Frame 18
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) + 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 188 MovieClip Frame 20
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = (_parent._x + this._x) + 58;
_root["enemyBullet" + _root.enemyShot]._y = (_parent._y + this._y) + 31.9;
_root.enemyShot++;
Symbol 198 MovieClip [secondBoss] Frame 1
function shooting() {
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x - 21;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 54.9;
_root.enemyShot++;
_root.attachMovie("basicEnemyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + 21;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 54.9;
_root.enemyShot++;
}
function patternShot(xPos, yPos) {
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + xPos;
_root["enemyBullet" + _root.enemyShot]._y = this._y + yPos;
_root.enemyShot++;
}
function claws() {
this.claw1.play();
this.claw2.play();
}
stop();
health = 200;
maxHealth = 200;
shotTimer = 0;
down = false;
yMax = 0;
xMax = 0;
yMin = 0;
xMin = 0;
xDir = "left";
yDir = "down";
this.onEnterFrame = function () {
if ((this._y >= 140) && (!this.down)) {
this.xMax = this._x + 120;
this.yMax = this._y + 75;
this.yMin = this._y - 75;
this.xMin = this._x - 120;
this.down = true;
}
if (!this.down) {
this._y = this._y + 2;
}
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
if (this.down) {
if (this.xDir == "left") {
this._x = this._x - 4;
}
if (this.xDir == "right") {
this._x = this._x + 4;
}
if (this.yDir == "up") {
this._y = this._y - 4;
}
if (this.yDir == "down") {
this._y = this._y + 4;
}
if (this._y > this.yMax) {
this.yDir = "up";
}
if (this._y < this.yMin) {
this.yDir = "down";
}
if (this._x > this.xMax) {
this.xDir = "left";
}
if (this._x < this.xMin) {
this.xDir = "right";
}
}
if (this.shotTimer < 300) {
this.shotTimer++;
}
if (this.shotTimer >= 300) {
this.shotTimer = 0;
}
if (this._y > 10) {
if ((this.shotTimer % 40) == 0) {
this.claws();
}
if ((this.shotTimer % 100) == 0) {
this.shooting();
}
if (this.shotTimer == 90) {
this.patternShot(-52, 0);
}
if (this.shotTimer == 100) {
this.patternShot(-52, 0);
}
if (this.shotTimer == 110) {
this.patternShot(-16, 0);
}
if (this.shotTimer == 120) {
this.patternShot(52, 0);
}
if (this.shotTimer == 130) {
this.patternShot(16, 0);
}
if (this.shotTimer == 140) {
this.patternShot(35.5, -3.9);
}
if (this.shotTimer == 150) {
this.patternShot(-35.5, -3.9);
}
}
}
};
Symbol 198 MovieClip [secondBoss] Frame 2
_root.score = _root.score + 40000;
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 30)) {
_root.playerShip.ki = _root.playerShip.ki + 30;
_root.ki = _root.ki + 30;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
Symbol 198 MovieClip [secondBoss] Frame 91
stop();
_root.attachMovie("stageComplete", "stageComplete", 70005);
_root.stageComplete._x = 250;
_root.stageComplete._y = 250;
this.removeMovieClip();
Symbol 202 MovieClip Frame 1
function shoot() {
startX = (_parent._x + this._x) + (181 * Math.cos(this.angle));
startY = (_parent._y + this._y) + (181 * Math.sin(this.angle));
_root.attachMovie("enemySpreadMissile", "enemy" + _root.spawner.enemyNumber, _root.spawner.enemyNumber);
_root["enemy" + _root.spawner.enemyNumber]._x = startX;
_root["enemy" + _root.spawner.enemyNumber]._y = startY;
_root["enemy" + _root.spawner.enemyNumber]._rotation = this._rotation;
_root.spawner.enemyNumber++;
}
angle = (this._rotation + 90) * (Math.PI/180);
timer = 0;
this.onEnterFrame = function () {
this.angle = (this._rotation + 90) * (Math.PI/180);
if (_parent.down && (_parent._currentframe == 1)) {
if ((this.timer >= 10) && (this.timer <= 50)) {
this._rotation = this._rotation + 1;
}
if (this.timer == 60) {
this.shoot();
}
if ((this.timer >= 70) && (this.timer <= 150)) {
this._rotation = this._rotation - 1;
}
if (this.timer == 160) {
this.shoot();
}
if ((this.timer >= 170) && (this.timer <= 210)) {
this._rotation = this._rotation + 1;
}
if (this.timer == 220) {
this.shoot();
}
}
this.timer++;
if (this.timer >= 300) {
this.timer = 0;
}
};
Symbol 204 MovieClip [thirdBoss] Frame 1
function shooting() {
}
function patternShot(xPos, yPos) {
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + xPos;
_root["enemyBullet" + _root.enemyShot]._y = this._y + yPos;
_root.enemyShot++;
}
stop();
health = 280;
maxHealth = 280;
shotTimer = 0;
down = false;
this.onEnterFrame = function () {
if ((this._y <= 145) && (!this.down)) {
this.down = true;
}
if (!this.down) {
this._y = this._y - 2;
}
if ((this._currentframe == 1) && (this.down)) {
if (this.health <= 0) {
this.play();
}
if (this.down) {
if (this.shotTimer == 60) {
patternShot(-44.1, 79);
patternShot(44.1, 79);
}
if (this.shotTimer == 75) {
patternShot(-44.1, 51);
patternShot(44.1, 51);
}
if (this.shotTimer == 90) {
patternShot(-44.1, -71);
patternShot(44.1, -71);
}
if (this.shotTimer == 105) {
patternShot(-73.1, -6);
patternShot(73.1, -6);
patternShot(-73.1, -23);
patternShot(73.1, -23);
}
}
if (this.shotTimer < 200) {
this.shotTimer++;
}
if (this.shotTimer >= 200) {
this.shotTimer = 0;
}
}
};
Symbol 204 MovieClip [thirdBoss] Frame 2
_root.score = _root.score + 50000;
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 30)) {
_root.playerShip.ki = _root.playerShip.ki + 40;
_root.ki = _root.ki + 40;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
Symbol 204 MovieClip [thirdBoss] Frame 70
stop();
_root.attachMovie("stageComplete", "stageComplete", 70005);
_root.stageComplete._x = 250;
_root.stageComplete._y = 250;
this.removeMovieClip();
Symbol 206 MovieClip [enemySpreadMissile] Frame 1
function setRotation(newRotation) {
this._rotation = newRotation;
}
function setSpeed(newSpeed) {
this.speed = newSpeed;
}
function setFuse(newFuse) {
this.fuse = newFuse;
}
stop();
health = 0.5;
speed = 4;
fuse = 20 + Math.floor(Math.random() * 20);
rot = (this._rotation / 180) * Math.PI;
xMov = Math.sin(this.rot);
yMov = Math.cos(this.rot);
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this.rot = (this._rotation / 180) * Math.PI;
this.xMov = Math.sin(this.rot);
this.yMov = Math.cos(this.rot);
this._x = this._x - (this.xMov * this.speed);
this._y = this._y + (this.yMov * this.speed);
if (this.health <= 0) {
this.play();
}
this.fuse--;
if (this.fuse <= 0) {
this.play();
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
}
if (this._y > 510) {
this.removeMovieClip();
}
if (this._x > 510) {
this.removeMovieClip();
}
if (this._y < -10) {
this.removeMovieClip();
}
if (this._x < -10) {
this.removeMovieClip();
}
};
Symbol 206 MovieClip [enemySpreadMissile] Frame 2
currentShot = _root.enemyShot;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].yMov = 15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].yMov = -15;
_root["enemyBullet" + _root.enemyShot].xMov = -15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].yMov = -15;
_root["enemyBullet" + _root.enemyShot].xMov = 15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].yMov = 0;
_root["enemyBullet" + _root.enemyShot].xMov = -15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].yMov = -15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].yMov = 0;
_root["enemyBullet" + _root.enemyShot].xMov = 15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].xMov = 15;
_root["enemyBullet" + _root.enemyShot].yMov = 15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x;
_root["enemyBullet" + _root.enemyShot]._y = this._y;
_root["enemyBullet" + _root.enemyShot].xMov = -15;
_root["enemyBullet" + _root.enemyShot].yMov = 15;
_root.enemyShot++;
Symbol 206 MovieClip [enemySpreadMissile] Frame 3
Symbol 206 MovieClip [enemySpreadMissile] Frame 6
stop();
this.removeMovieClip();
Symbol 209 MovieClip [enemyHeavyBulletRot] Frame 1
speed = 15;
rot = (_rotation / 180) * Math.PI;
xMov = Math.sin(this.rot);
yMov = Math.cos(this.rot);
this.onEnterFrame = function () {
this.rot = (this._rotation / 180) * Math.PI;
this.xMov = Math.sin(this.rot);
this.yMov = Math.cos(this.rot);
this._x = this._x - (this.xMov * speed);
this._y = this._y + (this.yMov * speed);
if (this._y >= 505) {
this.removeMovieClip();
}
if (this._x >= 505) {
this.removeMovieClip();
}
if (this._y <= -10) {
this.removeMovieClip();
}
if (this._x <= -10) {
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox1) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 10;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 10;
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox2) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 10;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 10;
this.removeMovieClip();
}
};
Symbol 210 MovieClip [enemyHeavyBullet] Frame 1
this.onEnterFrame = function () {
this._y = this._y + this.yMov;
this._x = this._x + this.xMov;
if (this._y >= 505) {
this.removeMovieClip();
}
if (this._x >= 505) {
this.removeMovieClip();
}
if (this._y <= -10) {
this.removeMovieClip();
}
if (this._x <= -10) {
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox1) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 10;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 10;
this.removeMovieClip();
}
if (this.hitTest(_root.playerShip.hitBox2) && (!_root.playerShip.invul)) {
_root.playerShip.health = _root.playerShip.health - 10;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 10;
this.removeMovieClip();
}
};
Symbol 212 MovieClip Frame 1
this.onEnterFrame = function () {
this._alpha = ((_parent.health / _parent.maxHealth) * 100) + 20;
};
Symbol 214 MovieClip [fourthBoss] Frame 1
function shooting() {
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + 53;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 115.8;
_root["enemyBullet" + _root.enemyShot].yMov = 15;
_root.enemyShot++;
_root.attachMovie("enemyHeavyBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x - 53;
_root["enemyBullet" + _root.enemyShot]._y = this._y + 115.8;
_root["enemyBullet" + _root.enemyShot].yMov = 15;
_root.enemyShot++;
}
function patternShot(xPos, yPos) {
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + xPos;
_root["enemyBullet" + _root.enemyShot]._y = this._y + yPos;
_root.enemyShot++;
}
stop();
health = 100;
maxHealth = 100;
shotTimer = 0;
down = false;
yMax = 0;
xMax = 0;
yMin = 0;
xMin = 0;
xDir = "left";
yDir = "down";
this.onEnterFrame = function () {
if ((this._y >= 150) && (!this.down)) {
this.xMax = this._x + 75;
this.yMax = this._y + 37;
this.yMin = this._y - 37;
this.xMin = this._x - 75;
this.down = true;
}
if (!this.down) {
this._y = this._y + 4;
}
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
if (this.down) {
if (this.xDir == "left") {
this._x = this._x - 5;
}
if (this.xDir == "right") {
this._x = this._x + 5;
}
if (this.yDir == "up") {
this._y = this._y - 5;
}
if (this.yDir == "down") {
this._y = this._y + 5;
}
if (this._y > this.yMax) {
this.yDir = "up";
}
if (this._y < this.yMin) {
this.yDir = "down";
}
if (this._x > this.xMax) {
this.xDir = "left";
}
if (this._x < this.xMin) {
this.xDir = "right";
}
}
if ((!_root.playerShip.invul) && (this.hitPlace1.hitTest(_root.playerShip.hitBox1))) {
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitPlace2.hitTest(_root.playerShip.hitBox1))) {
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitPlace1.hitTest(_root.playerShip.hitBox2))) {
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitPlace2.hitTest(_root.playerShip.hitBox2))) {
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 100) {
this.shotTimer++;
}
if (this.shotTimer >= 100) {
this.shotTimer = 0;
}
if ((this.shotTimer % 25) == 0) {
this.shooting();
}
if (this.shotTimer == 50) {
this.patternShot(-64, 17.9);
}
if (this.shotTimer == 55) {
this.patternShot(64, 17.9);
}
if (this.shotTimer == 60) {
this.patternShot(36, 48.9);
}
if (this.shotTimer == 65) {
this.patternShot(-36, 48.9);
}
if (this.shotTimer == 70) {
this.patternShot(-114, -2.1);
}
if (this.shotTimer == 75) {
this.patternShot(114, -2.1);
}
if (this.shotTimer == 80) {
this.patternShot(76, -3.1);
}
if (this.shotTimer == 85) {
this.patternShot(-76, -3.1);
}
if (this.shotTimer == 90) {
this.patternShot(-91, 37.9);
}
if (this.shotTimer == 95) {
this.patternShot(91, 37.9);
}
}
};
Symbol 214 MovieClip [fourthBoss] Frame 2
_root.score = _root.score + 35000;
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 30)) {
_root.playerShip.ki = _root.playerShip.ki + 30;
_root.ki = _root.ki + 30;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
Symbol 214 MovieClip [fourthBoss] Frame 90
stop();
_root.attachMovie("stageComplete", "stageComplete", 70005);
_root.stageComplete._x = 250;
_root.stageComplete._y = 250;
this.removeMovieClip();
Symbol 216 MovieClip [fifthBoss] Frame 1
function shooting() {
_root.attachMovie("enemySpreadMissile", "enemy" + _root.spawner.enemyNumber, _root.spawner.enemyNumber);
_root["enemy" + _root.spawner.enemyNumber]._x = this._x - 49;
_root["enemy" + _root.spawner.enemyNumber]._y = this._y + 41.9;
_root.spawner.enemyNumber++;
_root.attachMovie("enemySpreadMissile", "enemy" + _root.spawner.enemyNumber, _root.spawner.enemyNumber);
_root["enemy" + _root.spawner.enemyNumber]._x = this._x + 49;
_root["enemy" + _root.spawner.enemyNumber]._y = this._y + 41.9;
_root.spawner.enemyNumber++;
}
function patternShot(xPos, yPos) {
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = this._x + xPos;
_root["enemyBullet" + _root.enemyShot]._y = this._y + yPos;
_root.enemyShot++;
}
stop();
health = 200;
maxHealth = 200;
shotTimer = 0;
down = false;
yMax = 0;
xMax = 0;
yMin = 0;
xMin = 0;
xDir = "left";
yDir = "down";
this.onEnterFrame = function () {
if ((this._y >= 140) && (!this.down)) {
this.xMax = this._x + 150;
this.yMax = this._y + 35;
this.yMin = this._y - 75;
this.xMin = this._x - 150;
this.down = true;
}
if (!this.down) {
this._y = this._y + 2;
}
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
if (this.down) {
if (this.xDir == "left") {
this._x = this._x - 4;
}
if (this.xDir == "right") {
this._x = this._x + 4;
}
if (this.yDir == "up") {
this._y = this._y - 4;
}
if (this.yDir == "down") {
this._y = this._y + 4;
}
if (this._y > this.yMax) {
this.yDir = "up";
}
if (this._y < this.yMin) {
this.yDir = "down";
}
if (this._x > this.xMax) {
this.xDir = "left";
}
if (this._x < this.xMin) {
this.xDir = "right";
}
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox1))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox1.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox2.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if ((!_root.playerShip.invul) && (this.hitBox3.hitTest(_root.playerShip.hitBox2))) {
this.health = this.health - 20;
_root.playerShip.health = _root.playerShip.health - 20;
_root.playerShip.damageAccrued = _root.playerShip.damageAccrued + 20;
}
if (this.shotTimer < 300) {
this.shotTimer++;
}
if (this.shotTimer >= 300) {
this.shotTimer = 0;
}
if ((this.shotTimer % 150) == 0) {
this.shooting();
}
if (this.shotTimer == 50) {
patternShot(-48, 0);
patternShot(48, 0);
}
if (this.shotTimer == 60) {
patternShot(-47, -15.2);
patternShot(47, -15.2);
}
if (this.shotTimer == 70) {
patternShot(-96, -22.1);
patternShot(96, -22.1);
}
if (this.shotTimer == 80) {
patternShot(-66, -36);
patternShot(66, -36);
}
if (this.shotTimer == 90) {
patternShot(-66, -36);
patternShot(66, -36);
}
if (this.shotTimer == 100) {
patternShot(-96, -22.1);
patternShot(96, -22.1);
}
if (this.shotTimer == 110) {
patternShot(-47, -15.2);
patternShot(47, -15.2);
}
if (this.shotTimer == 120) {
patternShot(-48, 0);
patternShot(48, 0);
}
if (((this.shotTimer == 150) || (this.shotTimer == 200)) || (this.shotTimer == 250)) {
patternShot(-66, -36);
patternShot(66, -36);
patternShot(-96, -22.1);
patternShot(96, -22.1);
patternShot(-47, -15.2);
patternShot(47, -15.2);
patternShot(-48, 0);
patternShot(48, 0);
}
}
};
Symbol 216 MovieClip [fifthBoss] Frame 2
_root.score = _root.score + 40000;
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 50)) {
_root.playerShip.ki = _root.playerShip.ki + 50;
_root.ki = _root.ki + 50;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
Symbol 216 MovieClip [fifthBoss] Frame 111
stop();
_root.attachMovie("stageComplete", "stageComplete", 70005);
_root.stageComplete._x = 250;
_root.stageComplete._y = 250;
this.removeMovieClip();
Symbol 220 MovieClip Frame 1
function shooting() {
_root.attachMovie("enemyHeavyBulletRot", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = _parent._x + this._x;
_root["enemyBullet" + _root.enemyShot]._y = _parent._y + this._y;
_root["enemyBullet" + _root.enemyShot]._rotation = this._rotation - _parent._rotation;
_root.enemyShot++;
}
stop();
health = 30;
timer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
if (((this.timer == 7) && (((-this._rotation) + _parent._rotation) <= 90)) && (((-this._rotation) + _parent._rotation) >= -90)) {
this.shooting();
}
if (this.timer < 8) {
this.timer++;
} else {
this.timer = 0;
}
}
};
Symbol 220 MovieClip Frame 2
_root.score = _root.score + 500;
if (!_root.playerShip.usingKi) {
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 10)) {
_root.playerShip.ki = _root.playerShip.ki + 10;
_root.ki = _root.ki + 10;
} else {
_root.playerShip.ki = _root.playerShip.maxKi;
_root.ki = _root.playerShip.maxKi;
}
}
Symbol 220 MovieClip Frame 6
stop();
Symbol 221 MovieClip [lastBoss] Frame 1
stop();
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if ((((((((this.building1._currentframe > 1) && (this.building2._currentframe > 1)) && (this.building3._currentframe > 1)) && (this.building4._currentframe > 1)) && (this.building5._currentframe > 1)) && (this.building6._currentframe > 1)) && (this.building7._currentframe > 1)) && (this.building8._currentframe > 1)) {
this.play();
}
this._rotation = this._rotation + 6;
}
};
Symbol 221 MovieClip [lastBoss] Frame 2
stopAllSounds();
Symbol 221 MovieClip [lastBoss] Frame 122
stop();
_root.attachMovie("stageComplete", "stageComplete", 70005);
_root.stageComplete._x = 250;
_root.stageComplete._y = 250;
this.removeMovieClip();
Symbol 226 MovieClip [enemyTurretOne] Frame 1
function shooting() {
startballx = (_parent._x + this._x) - (50 * Math.cos((angle * Math.PI) / 180));
startbally = (_parent._y + this._y) + (50 * Math.sin((angle * Math.PI) / 180));
_root.attachMovie("enemyAtBullet", "enemyBullet" + _root.enemyShot, _root.enemyShot);
_root["enemyBullet" + _root.enemyShot]._x = startballx;
_root["enemyBullet" + _root.enemyShot]._y = startbally;
_root.enemyShot++;
}
stop();
health = 4;
shotTimer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
playerx = (_root.playerShip._x - (_parent._x + this._x)) * -1;
playery = _root.playerShip._y - (_parent._y + this._y);
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if (this.health <= 0) {
this.play();
}
if (this.shotTimer < 50) {
this.shotTimer++;
}
if (((this.shotTimer == 50) && ((_parent._y + this._y) > 10)) && ((_parent._y + this._y) < 500)) {
this.shooting();
this.shotTimer = 0;
}
}
if (this._y > 530) {
this.removeMovieClip();
}
};
Symbol 226 MovieClip [enemyTurretOne] Frame 2
stop();
_root.score = _root.score + 100;
if ((_root.playerShip.ki < _root.playerShip.maxKi) && (!_root.playerShip.usingKi)) {
_root.playerShip.ki++;
_root.ki++;
}
Symbol 437 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 235 Button
on (release) {
gotoAndStop ("characterSelect");
}
Symbol 239 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 242 Button
on (release) {
getURL ("http://creativecommons.org/licenses/by-nd/3.0/", "_blank");
}
Symbol 248 Button
on (release) {
nextFrame();
}
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
if (_root.playerShip.health <= (_root.playerShip.maxHealth - 20)) {
_root.playerShip.health = _root.playerShip.health + 20;
} else if (_root.playerShip.health < _root.playerShip.maxHealth) {
_root.playerShip.health = _root.playerShip.maxHealth;
} else {
_root.score = _root.score + 1000;
}
_root.playerShip.damageAccrued = 0;
this.removeMovieClip();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
if (_root.playerShip.ki <= (_root.playerShip.maxKi - 10)) {
_root.ki = _root.ki + 10;
_root.playerShip.ki = _root.playerShip.ki + 10;
} else if (_root.playerShip.ki < _root.playerShip.maxKi) {
_root.ki = _root.playerShip.maxKi;
_root.playerShip.ki = _root.playerShip.maxKi;
} else {
_root.score = _root.score + 1000;
}
this.removeMovieClip();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
stop();
if (_root.playerShip.special <= (_root.playerShip.maxSpecial - _root.playerShip.specialIncrement)) {
_root.playerShip.special = _root.playerShip.special + _root.playerShip.specialIncrement;
} else if (_root.playerShip.special < _root.playerShip.maxSpecial) {
_root.playerShip.special = _root.playerShip.maxSpecial;
} else {
_root.score = _root.score + 1000;
}
this.removeMovieClip();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 271 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 50
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 39
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 38
stop();
Symbol 299 MovieClip Frame 1
stop();
timer = 0;
keyPressed = false;
charSelected = false;
pass = false;
_root.character = "DALTON";
beepSound = new Sound(this);
beepSound.attachSound("beep.wav");
selectedSound = new Sound(this);
selectedSound.attachSound("idse001.wav");
this.onEnterFrame = function () {
if (!charSelected) {
if (Key.isDown(39)) {
if (!this.keyPressed) {
this.nextFrame();
this.keyPressed = true;
beepSound.start(0, 0);
}
} else if (Key.isDown(37)) {
if (!this.keyPressed) {
this.prevFrame();
this.keyPressed = true;
beepSound.start(0, 0);
}
} else if (Key.isDown(90)) {
this.charSelected = true;
selectedSound.start(0, 0);
} else if (Key.isDown(88)) {
this.charSelected = true;
this.pass = true;
selectedSound.start(0, 0);
} else {
this.keyPressed = false;
}
}
if (this.charSelected) {
this.timer++;
}
if (this.timer == 30) {
stopAllSounds();
if (pass) {
_root.gotoAndStop("inputPassword");
} else {
_root.nextFrame();
}
}
};
Symbol 299 MovieClip Frame 2
stop();
_root.character = "AJ";
Symbol 299 MovieClip Frame 3
stop();
_root.character = "MITSUKI";
Symbol 303 MovieClip Frame 1
this.stop();
health = 10;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
}
};
Symbol 303 MovieClip Frame 2
stop();
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
this.removeMovieClip();
Symbol 304 MovieClip Frame 1
moveSpeed = 1;
bossOn = false;
bossLoop = new Sound(this);
bossLoop.attachSound("bossMusic");
this.onEnterFrame = function () {
this._y = this._y + this.moveSpeed;
if (this._y >= 1663) {
if (!this.bossOn) {
stopAllSounds();
bossLoop.start(0, 5);
_root.attachMovie("firstBoss", "boss", 50);
_root.boss._x = 250;
_root.boos._y = -80;
}
this.bossOn = true;
}
if (bossOn) {
this.moveSpeed = 0;
}
};
Symbol 307 Button
on (release) {
_root.nextFrame();
}
Symbol 312 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.character == "MITSUKI") {
this.gotoAndStop(4);
}
if (_root.character == "AJ") {
this.gotoAndStop(3);
}
if (_root.character == "DALTON") {
this.gotoAndStop(2);
}
};
Symbol 312 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 3
stop();
Symbol 312 MovieClip Frame 4
stop();
Symbol 316 MovieClip Frame 1
stop();
health = 5;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
}
};
Symbol 316 MovieClip Frame 2
stop();
randomizer = Math.round(Math.random() * 10);
if (randomizer <= 4) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else if (randomizer <= 7) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else {
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
}
Symbol 319 MovieClip Frame 1
stop();
health = 3;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
}
};
Symbol 319 MovieClip Frame 2
stop();
randomizer = Math.round(Math.random() * 10);
if (randomizer <= 6) {
} else if (randomizer <= 7) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else if (randomizer <= 9) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else {
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
}
Symbol 322 MovieClip Frame 1
stop();
health = 3;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
}
};
Symbol 322 MovieClip Frame 2
stop();
randomizer = Math.round(Math.random() * 10);
if (randomizer <= 6) {
} else if (randomizer <= 7) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else if (randomizer <= 9) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else {
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
}
Symbol 325 MovieClip Frame 1
stop();
health = 3;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
}
};
Symbol 325 MovieClip Frame 2
stop();
randomizer = Math.round(Math.random() * 10);
if (randomizer <= 6) {
} else if (randomizer <= 7) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else if (randomizer <= 9) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else {
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
}
Symbol 328 MovieClip Frame 1
stop();
health = 5;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
}
};
Symbol 328 MovieClip Frame 2
stop();
randomizer = Math.round(Math.random() * 10);
if (randomizer <= 6) {
} else if (randomizer <= 7) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else if (randomizer <= 9) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else {
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
}
Symbol 329 MovieClip Frame 1
moveSpeed = 0.75;
bossOn = false;
bossLoop = new Sound(this);
bossLoop.attachSound("bossMusic");
this.onEnterFrame = function () {
this._y = this._y + this.moveSpeed;
if (this._y >= 1663) {
if (!this.bossOn) {
stopAllSounds();
bossLoop.start(0, 5);
_root.attachMovie("secondBoss", "boss", 50);
_root.boss._x = 250;
_root.boos._y = -80;
}
this.bossOn = true;
}
if (bossOn) {
this.moveSpeed = 0;
}
};
Symbol 336 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.character == "MITSUKI") {
this.gotoAndStop(4);
}
if (_root.character == "AJ") {
this.gotoAndStop(3);
}
if (_root.character == "DALTON") {
this.gotoAndStop(2);
}
};
Symbol 336 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 3
stop();
Symbol 336 MovieClip Frame 4
stop();
Symbol 340 MovieClip Frame 1
stop();
health = 2;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.health <= 0) {
this.play();
}
}
};
Symbol 340 MovieClip Frame 2
stop();
randomizer = Math.round(Math.random() * 10);
if (randomizer <= 7) {
} else if (randomizer <= 8) {
_root.attachMovie("weaponPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else if (randomizer <= 9) {
_root.attachMovie("repair", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
} else {
_root.attachMovie("kiPowerUp", "powerUp" + _root.powerUpNumber, _root.powerUpNumber);
_root["powerUp" + _root.powerUpNumber]._x = this._x + _parent._x;
_root["powerUp" + _root.powerUpNumber]._y = this._y + _parent._y;
_root.powerUpNumber++;
}
Symbol 342 MovieClip Frame 1
moveSpeed = 0.75;
bossOn = false;
bossLoop = new Sound(this);
bossLoop.attachSound("bossMusic");
this.onEnterFrame = function () {
this._y = this._y + this.moveSpeed;
if (this._y >= 1677) {
if (!this.bossOn) {
stopAllSounds();
bossLoop.start(0, 5);
_root.attachMovie("thirdBoss", "boss", 50);
_root.boss._x = 250;
_root.boss._y = 653;
}
this.bossOn = true;
}
if (bossOn) {
this.moveSpeed = 0;
}
};
Symbol 349 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.character == "MITSUKI") {
this.gotoAndStop(4);
}
if (_root.character == "AJ") {
this.gotoAndStop(3);
}
if (_root.character == "DALTON") {
this.gotoAndStop(2);
}
};
Symbol 349 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 3
stop();
Symbol 349 MovieClip Frame 4
stop();
Symbol 352 MovieClip Frame 1
moveSpeed = 1.5;
bossOn = false;
bossLoop = new Sound(this);
bossLoop.attachSound("bossMusic");
this.onEnterFrame = function () {
this._y = this._y + this.moveSpeed;
if (this._y >= 1670) {
if (!this.bossOn) {
stopAllSounds();
bossLoop.start(0, 5);
_root.attachMovie("fourthBoss", "boss", 50);
_root.boss._x = 250;
_root.boss._y = -130;
}
this.bossOn = true;
}
if (bossOn) {
this.moveSpeed = 0;
}
};
Symbol 359 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.character == "MITSUKI") {
this.gotoAndStop(4);
}
if (_root.character == "AJ") {
this.gotoAndStop(3);
}
if (_root.character == "DALTON") {
this.gotoAndStop(2);
}
};
Symbol 359 MovieClip Frame 2
stop();
Symbol 359 MovieClip Frame 3
stop();
Symbol 359 MovieClip Frame 4
stop();
Symbol 367 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.character == "MITSUKI") {
this.gotoAndStop(4);
}
if (_root.character == "AJ") {
this.gotoAndStop(3);
}
if (_root.character == "DALTON") {
this.gotoAndStop(2);
}
};
Symbol 367 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 3
stop();
Symbol 367 MovieClip Frame 4
stop();
Symbol 419 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._y > -435.4) {
this._y = this._y - 1;
}
if (Key.isDown(86)) {
stopAllSounds();
_root.gotoAndStop("menu");
}
};
Symbol 430 MovieClip Frame 1
this.onEnterFrame = function () {
if (Key.isDown(86)) {
stopAllSounds();
_root.gotoAndStop("menu");
}
};
Symbol 430 MovieClip Frame 2
stop();