Frame 1
fscommand ("allowscale", "true");
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
fscommand ("fullscreen", "false");
if (first == null) {
_root.attachMovie("frame", "frame", 1002);
}
menumusic = false;
diff = 0.5;
first = true;
stopAllSounds();
play();
music = true;
snd = true;
wait = false;
Instance of Symbol 11 MovieClip "bar" in Frame 1
onClipEvent (enterFrame) {
this._width = 176 * (1 - (_root.getBytesLoaded() / _root.getBytesTotal()));
}
Frame 3
if (getBytesLoaded() != getBytesTotal()) {
gotoAndPlay (2);
}
Frame 4
if (_root.music && (!menumusic)) {
stopAllSounds();
menumusic = true;
gotoAndPlay (6);
}
autofireflag = false;
continues = 5;
bossmode = false;
gamewin = false;
level = 0;
menuwithoutsound._visible = !snd;
menuwithsound._visible = snd;
curpos = 175;
if (!music) {
curpos2 = 140;
} else {
curpos2 = 110;
}
if (!snd) {
curpos3 = 220;
} else {
curpos3 = 190;
}
if (_quality == "HIGH") {
curpos4 = 270;
} else {
curpos4 = 300;
}
menuwithoutsound._visible = !snd;
menuwithsound._visible = snd;
if (diff == 0.125) {
curpos = 115;
}
if (diff == 0.25) {
curpos = 145;
}
if (diff == 0.5) {
curpos = 175;
}
if (diff == 1) {
curpos = 205;
}
if (diff == 2) {
curpos = 235;
}
if (diff == 3) {
curpos = 265;
}
Frame 5
gotoAndPlay (4);
Frame 6
gotoAndPlay (4);
Frame 7
gotoAndPlay (4);
Frame 12
stopAllSounds();
menumusic = false;
if (!music) {
_root.gotoAndPlay("game");
}
score = 0;
kill = 0;
if (level == 0) {
level = 1;
}
lives = Math.max(3, 2 / diff);
Frame 14
function getNextDepth() {
if ((++enum) > maxenum) {
enum = 1;
}
return(enum);
}
function getNextDepth2() {
if ((++enum2) > maxenum2) {
enum2 = maxenum + 1;
}
return(enum2);
}
function getCurrentDepth() {
return(enum);
}
function getCurrentDepth2() {
return(enum2);
}
function updateShip() {
ship._x = ship._x - Math.max(-maxspeed, Math.min(maxspeed, ((ship._x + 42) - _xmouse) * shipspeed));
ship._y = ship._y - Math.max(-maxspeed, Math.min(maxspeed, ((ship._y + 23) - _ymouse) * shipspeed));
helper1._x = helper1._x - Math.max((-maxspeed) * 1.25, Math.min(maxspeed * 1.25, ((((helper1._x + 42) - 30) - _xmouse) * shipspeed) * 1.25));
helper1._y = helper1._y - Math.max((-maxspeed) * 1.25, Math.min(maxspeed * 1.25, (((helper1._y + 23) - _ymouse) * shipspeed) * 1.25));
helper2._x = helper2._x - Math.max((-maxspeed) * 1.25, Math.min(maxspeed * 1.25, ((((helper2._x + 42) - 30) - _xmouse) * shipspeed) * 1.25));
helper2._y = helper2._y - Math.max((-maxspeed) * 1.25, Math.min(maxspeed * 1.25, ((((helper2._y + 23) - 50) - _ymouse) * shipspeed) * 1.25));
if (ship._x < -12) {
ship._x = -12;
}
if (ship._y < 68) {
ship._y = 68;
}
if (ship._x > 490) {
ship._x = 490;
}
if (ship._y > 360) {
ship._y = 360;
}
}
function collisiontest(x) {
return(((x.hitTest(_root.ship._x + 4, _root.ship._y + 23, true) || (x.hitTest(_root.ship._x + 80, _root.ship._y + 23, true))) || (x.hitTest(_root.ship._x + 42, _root.ship._y + 4, true))) || (x.hitTest(_root.ship._x + 42, _root.ship._y + 42, true)));
}
function makeLaser(lasertype, x, y, pwr) {
if ((ship._y + y) > 80) {
lasername = "laser" + getNextDepth();
eval ("_root." + lasertype).duplicateMovieClip(lasername, getCurrentDepth());
eval (lasername)._x = ship._x + x;
eval (lasername)._y = ship._y + y;
if (lasertype == "laser help") {
eval (lasername)._x = helper1._x + x;
eval (lasername)._y = (helper1._y + y) + helper1.h._y;
}
if (lasertype == "laser help2") {
eval (lasername)._x = helper1._x + x;
eval (lasername)._y = (helper1._y + y) - helper1.h._y;
}
eval (lasername).onEnterFrame = function () {
yval = this._y + (this._height / 2);
i = 0;
while (i <= 10) {
enemy = eval ("enemies.enemy" + i);
if ((enemy.hp > 0) && (enemy.hitTest(this._x + 10, yval, true) || (enemy.hitTest(this._x, yval, true)))) {
enemy.hp = enemy.hp - (pwr + 1);
enemy.hit = true;
this.removeMovieClip();
stop();
} else if (((this.ymov != null) && (enemy.hp > 0)) && ((enemy.hitTest(this._x + 5, yval, true) || (enemy.hitTest(this._x + 5, yval + 5, true))) || (enemy.hitTest(this._x + 5, yval - 5, true)))) {
enemy.hp = enemy.hp - (pwr + 1);
enemy.hit = true;
this.removeMovieClip();
stop();
} else if ((this._y < 80) || (this._x > 550)) {
this.removeMovieClip();
stop();
}
i++;
}
};
}
}
function makeLaser2(lasertype, enemy, x, y) {
if ((enemy._y + y) > 80) {
lasername = "laser" + getNextDepth2();
eval ("_root." + lasertype).duplicateMovieClip(lasername, getCurrentDepth2());
eval (lasername)._x = enemy._x + x;
eval (lasername)._y = enemy._y + y;
eval (lasername).onEnterFrame = function () {
if ((!_root.ship.invincible) && (_root.ship.hitTest(this._x + (this._width / 2), this._y + (this._height / 2), true))) {
_root.ship.hit = true;
_root.onMouseUp();
this.removeMovieClip();
stop();
} else if ((this._y < 80) || (this._x < -100)) {
this.removeMovieClip();
stop();
}
};
}
}
function shoot() {
if (!ship.hit) {
if (upg1._currentframe == 1) {
makeLaser("laser", 75, 22, 1);
}
if (upg1._currentframe > 4) {
makeLaser("lasersuper", 75, 15, 3);
makeLaser("lasersuper", 75, 30, 3);
} else if (upg1._currentframe > 1) {
makeLaser("laser", 75, 15, 1);
makeLaser("laser", 75, 30, 1);
}
if (upg1._currentframe > 2) {
makeLaser("laserup", 55, 10);
}
if (upg1._currentframe > 3) {
makeLaser("laserdown", 55, 30);
}
if (specweap <= 0) {
specweap = firedelay;
if (upg2._currentframe > 1) {
makeLaser("laser help", 30, -5, 3);
}
if (upg2._currentframe > 2) {
makeLaser("laser help2", 30, 45, 3);
}
if (upg2._currentframe > 3) {
makeLaser("laser high", 55, 10, 3);
}
if (upg3._currentframe > 4) {
makeLaser("missile shot4", 15, -5, 7);
makeLaser("missile shot3", 15, 49, 7);
}
}
if (specweap2 <= 0) {
specweap2 = firedelay;
if (upg3._currentframe > 1) {
makeLaser("missile shot", 15, 0, 6);
}
if (upg3._currentframe > 2) {
makeLaser("missile shot2", 15, 44, 6);
}
if (upg3._currentframe > 3) {
makeLaser("bomb shot", 15, 50, 11);
}
}
}
}
function powerup() {
if (Math.random() > (((kill++) - 2) / 90)) {
pwrup = 0;
} else if (Math.random() < 0.2) {
pwrup = enemies.powerup5;
} else if (Math.random() < 0.33) {
pwrup = enemies.powerup2;
} else if (Math.random() < 0.5) {
pwrup = enemies.powerup3;
} else {
pwrup = enemies.powerup4;
}
if ((pwrup != 0) && (pwrup._currentframe == 1)) {
kill = 0;
pwrup.gotoAndPlay(2);
}
}
enemies = eval ("enemies" + level);
enemies.gotoAndPlay(2);
pauselet = false;
bar._visible = false;
life._visible = false;
boss = false;
if (diff == 0.125) {
lives = 40;
}
defnuke = Math.max(2, 1 / diff);
if (diff == 0.125) {
defnuke = 20;
}
shipspeed = 0.2;
maxspeed = 20;
maxenum = 100;
maxenum2 = 200;
enum = 1;
enum2 = maxenum + 1;
mousedown = false;
firedelay = 3;
specweap = 0;
specweap2 = 0;
autofire = 0;
autofireflaglet = false;
if (bossmode) {
upg2.gotoAndStop(3);
}
helper1._visible = false;
helper2._visible = false;
Instance of Symbol 516 MovieClip "bar" in Frame 14
onClipEvent (enterFrame) {
if ((_root.enemies.enemy1.hp <= 0) && (_root.enemies.enemy2 != null)) {
this._width = 176 * (1 - ((_root.enemies.enemy2.hp + _root.enemies.enemy3.hp) / (_root.enemies.enemy2.hpmax + _root.enemies.enemy3.hpmax)));
} else {
this._width = 176 * (1 - (_root.enemies.enemy1.hp / _root.enemies.enemy1.hpmax));
}
}
Frame 15
if (boss) {
bar._visible = true;
life._visible = true;
}
if ((upg2._currentframe > 4) && (ship.inv._currentframe > 20)) {
ship.inv.gotoAndPlay(1);
}
if (!Key.isDown(8)) {
autofireflaglet = true;
}
if (autofireflaglet && (Key.isDown(8))) {
autofireflag = !autofireflag;
autofireflaglet = false;
}
if (!Key.isDown(13)) {
pauselet = true;
}
if (pauselet && (Key.isDown(13))) {
pauselet = false;
if (paused._currentframe == 1) {
paused.gotoAndPlay(2);
enemies.bg.stop();
i = 0;
while (i < maxenum2) {
eval ("laser" + i).stop();
i++;
}
enemies.stop();
i = 0;
while (i <= 10) {
eval ("_root.enemies.enemy" + i).stop();
eval ("_root.enemies.powerup" + i).stop();
i++;
}
_root.enemies.powerupb.stop();
ship.stop();
} else {
paused.gotoAndStop(1);
enemies.bg.play();
i = 0;
while (i < maxenum2) {
eval ("laser" + i).play();
i++;
}
enemies.play();
i = 0;
while (i <= 10) {
if (eval ("_root.enemies.enemy" + i).hp > 0) {
eval ("_root.enemies.enemy" + i).play();
} else {
eval ("_root.enemies.enemy" + i)._visible = false;
}
if ((eval ("_root.enemies.powerup" + i)._currentframe > 1) && (eval ("_root.enemies.powerup" + i)._currentframe < 291)) {
eval ("_root.enemies.powerup" + i).play();
}
i++;
}
if ((_root.enemies.powerupb._currentframe > 1) && (_root.enemies.powerupb._currentframe < 291)) {
_root.enemies.powerupb.play();
}
ship.play();
}
}
if (paused._currentframe == 1) {
if (((nuke > 0) && (ship.special._currentframe == 1)) && (Key.isDown(32))) {
nuke--;
ship.invincible = true;
ship.special.gotoAndPlay(2);
i = 1;
while (i <= 5) {
eval ("_root.enemies.powerup" + i).gotoAndPlay(291);
i++;
}
_root.enemies.powerupb.gotoAndPlay(291);
i = 1;
while (i <= 10) {
enemy = eval ("enemies.enemy" + i);
enemy.hp = enemy.hp - Math.max(50, 100 * diff);
if (enemy.hp < 0) {
enemy.hp = 0;
}
enemy.hit = true;
i++;
}
}
if (lives <= 0) {
gotoAndPlay (17);
}
updateShip();
helper1._visible = upg2._currentframe > 1;
helper2._visible = upg2._currentframe > 2;
this.onMouseUp = function () {
mousedown = false;
};
this.onMouseDown = function () {
if (!ship.hit) {
mousedown = true;
}
};
if ((mousedown || (autofireflag && (!ship.hit))) && (autofire <= 0)) {
autofire = firedelay;
shoot();
ship.gotoAndPlay("shoot");
}
if (autofire > 0) {
autofire = autofire - 0.6;
}
if (specweap > 0) {
specweap = specweap - 0.2;
}
if (specweap2 > 0) {
specweap2 = specweap2 - 0.1;
}
}
Frame 16
if (gamewin) {
gotoAndPlay (20);
} else {
gotoAndPlay (15);
}
Frame 17
i = 0;
while (i < maxenum2) {
eval ("laser" + i).removeMovieClip();
i++;
}
continues2 = continues + " continues left.";
con1._visible = continues > 0;
con2._visible = continues > 0;
con3._visible = continues > 0;
con4._visible = continues > 0;
con5._visible = continues > 0;
retry._visible = continues > 0;
continues--;
Frame 19
gotoAndPlay (18);
Frame 20
i = 0;
while (i < maxenum2) {
eval ("laser" + i).removeMovieClip();
i++;
}
Frame 23
gotoAndPlay (22);
Symbol 2 MovieClip Frame 1
_x = (_x + -10);
_y = (_y + 0);
if (_x < -10) {
this.removeMovieClip();
}
Symbol 2 MovieClip Frame 2
gotoAndPlay (1);
Symbol 3 MovieClip [laser2] Frame 61
this.removeMovieClip();
stop();
Symbol 6 MovieClip [laserdown] Frame 1
_x = (_x + 17);
_y = (_y + 5);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 6 MovieClip [laserdown] Frame 2
gotoAndPlay (1);
Symbol 27 Button
on (release) {
_root.gotoAndPlay("startmission");
if (Key.isDown(13)) {
bossmode = true;
}
}
Symbol 30 MovieClip Frame 1
_y = (_y + ((((_y + _root.curpos) / 2) - _y) * 0.5));
Symbol 37 MovieClip Frame 1
_y = (_y + (((_y + _root.curpos2) / 2) - _y));
Symbol 38 MovieClip Frame 1
_y = (_y + (((_y + _root.curpos3) / 2) - _y));
Symbol 43 Button
on (release) {
_root.diff = 0.5;
_root.curpos = 175;
}
Symbol 46 Button
on (release) {
_root.diff = 1;
_root.curpos = 205;
}
Symbol 49 Button
on (release) {
_root.diff = 0.25;
_root.curpos = 145;
}
Symbol 52 Button
on (release) {
_root.diff = 3;
_root.curpos = 265;
}
Symbol 55 Button
on (release) {
_root.diff = 2;
_root.curpos = 235;
}
Symbol 58 Button
on (release) {
_root.diff = 0.125;
_root.curpos = 115;
}
Symbol 61 Button
on (release) {
if (!_root.music) {
_root.music = true;
_root.curpos2 = 110;
_root.gotoAndPlay("music on");
}
}
Symbol 64 Button
on (release) {
if (_root.music) {
_root.music = false;
_root.curpos2 = 140;
_root.gotoAndPlay("music off");
}
}
Symbol 67 Button
on (release) {
_root.snd = true;
_root.curpos3 = 190;
}
Symbol 70 Button
on (release) {
_root.snd = false;
_root.curpos3 = 220;
}
Symbol 73 Button
on (release) {
_root._quality = "HIGH";
_root.curpos4 = 270;
}
Symbol 76 Button
on (release) {
_root._quality = "LOW";
_root.curpos4 = 300;
}
Symbol 78 Button
on (release) {
_root.diff = 0.5;
_root.curpos = 175;
}
Symbol 79 Button
on (release) {
_root.diff = 1;
_root.curpos = 205;
}
Symbol 80 Button
on (release) {
_root.diff = 0.25;
_root.curpos = 145;
}
Symbol 81 Button
on (release) {
_root.diff = 3;
_root.curpos = 265;
}
Symbol 82 Button
on (release) {
_root.diff = 2;
_root.curpos = 235;
}
Symbol 83 Button
on (release) {
_root.diff = 0.125;
_root.curpos = 115;
}
Symbol 84 Button
on (release) {
if (!_root.music) {
_root.music = true;
_root.curpos2 = 110;
_root.gotoAndPlay("music on");
}
}
Symbol 85 Button
on (release) {
if (_root.music) {
_root.music = false;
_root.curpos2 = 140;
_root.gotoAndPlay("music off");
}
}
Symbol 86 Button
on (release) {
_root.snd = true;
_root.curpos3 = 190;
}
Symbol 87 Button
on (release) {
_root.snd = false;
_root.curpos3 = 220;
}
Symbol 88 Button
on (release) {
_root._quality = "HIGH";
_root.curpos4 = 270;
}
Symbol 89 Button
on (release) {
_root._quality = "LOW";
_root.curpos4 = 300;
}
Symbol 92 MovieClip Frame 1
_y = (_y + (((_y + _root.curpos4) / 2) - _y));
Symbol 98 MovieClip Frame 1
upgtype = 1;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup1))) {
upg = eval ("_root.upg" + upgtype);
if (upg._currentframe >= 4) {
upg.gotoAndPlay(5);
} else {
upg.gotoAndStop(upg._currentframe + 1);
}
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
Symbol 98 MovieClip Frame 291
upgtype = 0;
stop();
Symbol 98 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 98 MovieClip Frame 293
gotoAndStop (294);
Symbol 98 MovieClip Frame 294
stop();
Symbol 98 MovieClip Frame 295
gotoAndStop (294);
Symbol 104 MovieClip Frame 1
if (xmov == null) {
xmov = 0;
}
if (ymov == null) {
ymov = 8;
}
_x = (_x + xmov);
xmov = xmov + 2;
if (xmov > 40) {
xmov = 40;
}
_y = (_y + ymov);
if (ymov > 0) {
ymov = ymov - 0.5;
}
if (_x > 560) {
this.removeMovieClip();
}
Symbol 104 MovieClip Frame 2
gotoAndPlay (1);
Symbol 105 MovieClip Frame 1
_x = (_x + 20);
_y = (_y + 0);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 105 MovieClip Frame 2
gotoAndPlay (1);
Symbol 108 MovieClip Frame 1
_x = (_x + 10);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 108 MovieClip Frame 2
gotoAndPlay (1);
Symbol 109 MovieClip Frame 1
if (xmov == null) {
xmov = 0;
}
_x = (_x + xmov);
xmov = xmov + 1;
if (xmov > 10) {
xmov = 10;
}
if (ymov == null) {
ymov = 6;
}
_y = (_y - ymov);
if (ymov > 0) {
ymov = ymov - 0.2;
}
if (_x > 560) {
this.removeMovieClip();
}
Symbol 109 MovieClip Frame 2
gotoAndPlay (1);
Symbol 110 MovieClip Frame 1
if (xmov == null) {
xmov = 0;
}
_x = (_x + xmov);
xmov = xmov + 2;
if (xmov > 40) {
xmov = 40;
}
_y = (_y + 0.8);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 110 MovieClip Frame 2
gotoAndPlay (1);
Symbol 111 MovieClip Frame 1
if (xmov == null) {
xmov = 0;
}
_x = (_x + xmov);
xmov = xmov + 2;
if (xmov > 40) {
xmov = 40;
}
_y = (_y - 0.8);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 111 MovieClip Frame 2
gotoAndPlay (1);
Symbol 112 MovieClip Frame 1
_x = (_x + 17);
_y = (_y - 5);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 112 MovieClip Frame 2
gotoAndPlay (1);
Symbol 113 MovieClip Frame 1
_x = (_x + -8);
_y = (_y + 5);
if (_y > 410) {
this.removeMovieClip();
}
if (_x < -10) {
this.removeMovieClip();
}
Symbol 113 MovieClip Frame 2
gotoAndPlay (1);
Symbol 114 MovieClip Frame 1
_x = (_x + -8);
_y = (_y + -5);
if (_y < -10) {
this.removeMovieClip();
}
if (_x < -10) {
this.removeMovieClip();
}
Symbol 114 MovieClip Frame 2
gotoAndPlay (1);
Symbol 115 MovieClip Frame 1
if (xmov == null) {
xpos = (_x - _root.ship._x) - 42;
ypos = (_y - _root.ship._y) - 23;
hyp = Math.sqrt((xpos * xpos) + (ypos * ypos));
xmov = Math.abs(10 * Math.sin(xpos / hyp));
ymov = Math.abs(10 * Math.sin(ypos / hyp));
if (_root.ship._y < _y) {
ymov = ymov * -1;
}
if (_root.ship._x < _x) {
xmov = xmov * -1;
}
}
_x = (_x + xmov);
_y = (_y + ymov);
if (_x < -10) {
this.removeMovieClip();
}
Symbol 115 MovieClip Frame 2
gotoAndPlay (1);
Symbol 116 MovieClip Frame 1
_x = (_x + 20);
_y = (_y + 0);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 116 MovieClip Frame 2
gotoAndPlay (1);
Symbol 117 MovieClip Frame 1
if (xmov == null) {
xmov = 0;
}
_x = (_x + xmov);
xmov = xmov + 2;
if (xmov > 40) {
xmov = 40;
}
_y = (_y + 0.8);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 117 MovieClip Frame 2
gotoAndPlay (1);
Symbol 118 MovieClip Frame 1
if (xmov == null) {
xmov = 0;
}
_x = (_x + xmov);
xmov = xmov + 2;
if (xmov > 40) {
xmov = 40;
}
_y = (_y - 0.8);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 118 MovieClip Frame 2
gotoAndPlay (1);
Symbol 120 MovieClip Frame 1
if (xmov == null) {
xpos = (_x - _root.ship._x) - 42;
ypos = (_y - _root.ship._y) - 23;
hyp = Math.sqrt((xpos * xpos) + (ypos * ypos));
xmov = Math.abs(17 * Math.sin(xpos / hyp));
ymov = Math.abs(17 * Math.sin(ypos / hyp));
if (_root.ship._y < _y) {
ymov = ymov * -1;
}
if (_root.ship._x < _x) {
xmov = xmov * -1;
}
}
_x = (_x + xmov);
_y = (_y + ymov);
if (_x < -10) {
this.removeMovieClip();
}
Symbol 120 MovieClip Frame 2
gotoAndPlay (1);
Symbol 121 MovieClip Frame 1
if (xmov == null) {
xpos = (_x - _root.ship._x) - 42;
ypos = (_y - _root.ship._y) - 23;
hyp = Math.sqrt((xpos * xpos) + (ypos * ypos));
xmov = Math.abs(12 * Math.sin(xpos / hyp));
ymov = Math.abs(12 * Math.sin(ypos / hyp));
if (_root.ship._y < _y) {
ymov = ymov * -1;
}
if (_root.ship._x < _x) {
xmov = xmov * -1;
}
}
_x = (_x + xmov);
_y = (_y + ymov);
if (_x < -10) {
this.removeMovieClip();
}
Symbol 121 MovieClip Frame 2
gotoAndPlay (1);
Symbol 122 MovieClip Frame 1
_x = (_x + 10);
_y = (_y + 0);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 122 MovieClip Frame 2
gotoAndPlay (1);
Symbol 123 MovieClip Frame 1
_x = (_x + 8);
_y = (_y + 5);
if (_y > 410) {
this.removeMovieClip();
}
if (_x > 560) {
this.removeMovieClip();
}
Symbol 123 MovieClip Frame 2
gotoAndPlay (1);
Symbol 124 MovieClip Frame 1
_x = (_x + 8);
_y = (_y + -5);
if (_y < -10) {
this.removeMovieClip();
}
if (_x > 560) {
this.removeMovieClip();
}
Symbol 124 MovieClip Frame 2
gotoAndPlay (1);
Symbol 125 MovieClip Frame 1
if (xmov == null) {
xpos = (_x - _root.ship._x) - 42;
ypos = (_y - _root.ship._y) - 23;
hyp = Math.sqrt((xpos * xpos) + (ypos * ypos));
xmov = Math.abs(10 * Math.sin(xpos / hyp));
ymov = Math.abs(10 * Math.sin(ypos / hyp));
if (_root.ship._y < _y) {
ymov = ymov * -1;
}
if (_root.ship._x < _x) {
xmov = xmov * -1;
}
}
_x = (_x - xmov);
_y = (_y + ymov);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 125 MovieClip Frame 2
gotoAndPlay (1);
Symbol 126 MovieClip Frame 1
_x = (_x + 10);
if (_x > 560) {
this.removeMovieClip();
}
Symbol 126 MovieClip Frame 2
gotoAndPlay (1);
Symbol 132 MovieClip Frame 1
upgtype = 1;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup2))) {
upg = eval ("_root.upg" + upgtype);
if (upg._currentframe >= 4) {
upg.gotoAndPlay(5);
} else {
upg.gotoAndStop(upg._currentframe + 1);
}
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
stop();
Symbol 132 MovieClip Frame 291
gotoAndStop (1);
Symbol 132 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 132 MovieClip Frame 293
gotoAndStop (294);
Symbol 132 MovieClip Frame 294
gotoAndStop (1);
Symbol 132 MovieClip Frame 295
gotoAndStop (294);
Symbol 135 MovieClip Frame 1
upgtype = 2;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup3))) {
upg = eval ("_root.upg" + upgtype);
if (upg._currentframe >= 4) {
upg.gotoAndPlay(5);
} else {
upg.gotoAndStop(upg._currentframe + 1);
}
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
stop();
Symbol 135 MovieClip Frame 291
gotoAndStop (1);
Symbol 135 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 135 MovieClip Frame 293
gotoAndStop (294);
Symbol 135 MovieClip Frame 294
gotoAndStop (1);
Symbol 135 MovieClip Frame 295
gotoAndStop (294);
Symbol 138 MovieClip Frame 1
upgtype = 3;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup4))) {
upg = eval ("_root.upg" + upgtype);
if (upg._currentframe >= 4) {
upg.gotoAndPlay(5);
} else {
upg.gotoAndStop(upg._currentframe + 1);
}
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
stop();
Symbol 138 MovieClip Frame 291
gotoAndStop (1);
Symbol 138 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 138 MovieClip Frame 293
gotoAndStop (294);
Symbol 138 MovieClip Frame 294
gotoAndStop (1);
Symbol 138 MovieClip Frame 295
gotoAndStop (294);
Symbol 141 MovieClip Frame 1
upgtype = 1;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup5))) {
_root.nuke = _root.nuke + _root.defnuke;
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
stop();
Symbol 141 MovieClip Frame 291
gotoAndStop (1);
Symbol 141 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 141 MovieClip Frame 293
gotoAndStop (294);
Symbol 141 MovieClip Frame 294
gotoAndStop (1);
Symbol 141 MovieClip Frame 295
gotoAndStop (294);
Symbol 159 MovieClip Frame 1
hp = 70 * _root.diff;
pts = 2500;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 2);
_y = (_y - 1);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 159 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if ((count++) >= 12) {
if (count == 14) {
_root.makeLaser2("laserblueaim", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 17) {
_root.makeLaser2("laserblueaim", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 20) {
_root.makeLaser2("laserblueaim", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 20) {
count = 0;
}
} else if (_root.diff == 3) {
count++;
}
Symbol 159 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 159 MovieClip Frame 4
if ((count++) >= 12) {
if (count == 14) {
_root.makeLaser2("laserblueaim", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 17) {
_root.makeLaser2("laserblueaim", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 20) {
_root.makeLaser2("laserblueaim", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 20) {
count = 0;
}
} else if (_root.diff == 4) {
count++;
}
Symbol 159 MovieClip Frame 6
gotoAndPlay (2);
Symbol 159 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill = _root.kill + 4;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 159 MovieClip Frame 8
gotoAndPlay (9);
Symbol 159 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 168 MovieClip Frame 1
hp = 5 * _root.diff;
pts = 700;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
if (ymov == null) {
ymov = 0;
}
_y = (_y + ymov);
ymov = ymov - 0.1;
_x = (_x - 10);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 168 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
Symbol 168 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 168 MovieClip Frame 6
gotoAndPlay (2);
Symbol 168 MovieClip Frame 7
_root.score = _root.score + pts;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 168 MovieClip Frame 8
gotoAndPlay (9);
Symbol 168 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 169 MovieClip Frame 1
upgtype = 3;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup1))) {
upg = eval ("_root.upg" + upgtype);
if (upg._currentframe >= 4) {
upg.gotoAndPlay(5);
} else {
upg.gotoAndStop(upg._currentframe + 1);
}
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
Symbol 169 MovieClip Frame 291
upgtype = 0;
stop();
Symbol 169 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 169 MovieClip Frame 293
gotoAndStop (294);
Symbol 169 MovieClip Frame 294
stop();
Symbol 169 MovieClip Frame 295
gotoAndStop (294);
Symbol 176 MovieClip Frame 1
hp = 5 * _root.diff;
pts = 700;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
if (ymov == null) {
ymov = 0;
}
_y = (_y + ymov);
ymov = ymov + 0.1;
_x = (_x - 10);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 176 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
Symbol 176 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 176 MovieClip Frame 6
gotoAndPlay (2);
Symbol 176 MovieClip Frame 7
_root.score = _root.score + pts;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 176 MovieClip Frame 8
gotoAndPlay (9);
Symbol 176 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 182 MovieClip Frame 1
hp = 20 * _root.diff;
pts = 1100;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 6);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 182 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= 20) {
count = 0;
_root.makeLaser2("laserblueaim", this, -15 + _parent._x, 15 + _parent._y);
}
Symbol 182 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 182 MovieClip Frame 4
count++;
Symbol 182 MovieClip Frame 6
gotoAndPlay (2);
Symbol 182 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill++;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 182 MovieClip Frame 8
gotoAndPlay (9);
Symbol 182 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 189 MovieClip Frame 1
hp = 70 * _root.diff;
pts = 2000;
alt = false;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 2);
_y = (_y - 1);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 189 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= 8) {
alt = !alt;
count = 0;
if (!alt) {
_root.makeLaser2("laserblue", this, 50 + _parent._x, 40 + _parent._y);
}
if (alt) {
_root.makeLaser2("laserblueup", this, 60 + _parent._x, 40 + _parent._y);
}
if (alt) {
_root.makeLaser2("laserbluedown", this, 60 + _parent._x, 40 + _parent._y);
}
}
Symbol 189 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 189 MovieClip Frame 4
count++;
Symbol 189 MovieClip Frame 6
gotoAndPlay (2);
Symbol 189 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill = _root.kill + 4;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 189 MovieClip Frame 8
gotoAndPlay (9);
Symbol 189 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 195 MovieClip Frame 1
hp = 5 * _root.diff;
pts = 600;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 12);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 195 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
Symbol 195 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 195 MovieClip Frame 6
gotoAndPlay (2);
Symbol 195 MovieClip Frame 7
_root.score = _root.score + pts;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 195 MovieClip Frame 8
gotoAndPlay (9);
Symbol 195 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 199 MovieClip Frame 1
hp = 15 * _root.diff;
pts = 800;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 6);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 199 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= 30) {
count = 0;
_root.makeLaser2("laserblue", this, -15 + _parent._x, 15 + _parent._y);
}
Symbol 199 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 199 MovieClip Frame 4
count++;
Symbol 199 MovieClip Frame 6
gotoAndPlay (2);
Symbol 199 MovieClip Frame 7
_root.score = _root.score + pts;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 199 MovieClip Frame 8
gotoAndPlay (9);
Symbol 199 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 205 MovieClip Frame 1
hp = 15 * _root.diff;
pts = 800;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 5);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 205 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= 20) {
count = 0;
_root.makeLaser2("laserblueup", this, -15 + _parent._x, 15 + _parent._y);
_root.makeLaser2("laserbluedown", this, -15 + _parent._x, 15 + _parent._y);
}
Symbol 205 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 205 MovieClip Frame 4
count++;
Symbol 205 MovieClip Frame 6
gotoAndPlay (2);
Symbol 205 MovieClip Frame 7
_root.score = _root.score + pts;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 205 MovieClip Frame 8
gotoAndPlay (9);
Symbol 205 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 211 MovieClip Frame 1
hp = 20 * _root.diff;
pts = 1100;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 5);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 211 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= 15) {
count = 0;
_root.makeLaser2("laserblueaim", this, -20 + _parent._x, 20 + _parent._y);
_root.makeLaser2("laserblueaim", this, -20 + _parent._x, 10 + _parent._y);
}
Symbol 211 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 211 MovieClip Frame 4
count++;
Symbol 211 MovieClip Frame 6
gotoAndPlay (2);
Symbol 211 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill++;
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 211 MovieClip Frame 8
gotoAndPlay (9);
Symbol 211 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 212 MovieClip Frame 1
upgtype = 1;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerupb))) {
upg = eval ("_root.upg" + upgtype);
if (upg._currentframe >= 4) {
upg.gotoAndPlay(5);
} else {
upg.gotoAndStop(upg._currentframe + 1);
}
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
Symbol 212 MovieClip Frame 291
upgtype = 0;
stop();
Symbol 212 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 212 MovieClip Frame 293
gotoAndStop (294);
Symbol 212 MovieClip Frame 294
stop();
Symbol 212 MovieClip Frame 295
gotoAndStop (294);
Symbol 228 MovieClip Frame 11
gotoAndPlay (1);
Symbol 228 MovieClip Frame 13
gotoAndPlay (1);
Symbol 236 MovieClip Frame 1
hpmax = 800 + (300 * (2 * Math.min(2, Math.max(0.5, _root.diff) - 1)));
hp = hpmax;
pts = 25000;
count = 0;
xspd = 10;
if (yspd == null) {
yspd = 0;
}
appear = true;
dirleft = true;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
if (hp > 0) {
if ((_x < -150) && (appear)) {
appear = false;
bossball.gotoAndPlay("break");
} else if (appear) {
bossball.gotoAndPlay("rock");
}
if (dirleft && (_x >= -650)) {
_x = (_x - xspd);
}
if ((!dirleft) && (_x <= 100)) {
_x = (_x + xspd);
}
if ((!dirleft) && (_x > 100)) {
dirleft = true;
}
if (dirleft && (_x < -650)) {
dirleft = false;
}
if (yspd > 0) {
if (_y < 430) {
_y = (_y + yspd);
} else {
yspd = yspd * -1;
}
} else {
_y = (_y + yspd);
}
yspd = yspd + 0.5;
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 236 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if (((count++) >= Math.max(8, Math.min(hp / 4, 20))) && (!appear)) {
count = 0;
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 5 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 139 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 140 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 10 + _parent._x, 72 + _parent._y);
}
Symbol 236 MovieClip Frame 3
if ((!hit) || (appear)) {
gotoAndPlay (2);
}
if (appear) {
hp = hpmax;
}
hit = false;
_root.enemies.enemy2.hp = _root.enemies.enemy2.hpmax;
_root.enemies.enemy3.hp = _root.enemies.enemy3.hpmax;
Symbol 236 MovieClip Frame 5
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if (((count++) >= Math.max(8, Math.min(hp / 4, 20))) && (!appear)) {
count = 0;
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 5 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 139 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 140 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimbig", this, 10 + _parent._x, 72 + _parent._y);
}
Symbol 236 MovieClip Frame 6
gotoAndPlay (2);
Symbol 236 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill = _root.kill + 20;
_root.powerup();
_root.ship.inv.gotoAndPlay(1);
if (!_root.snd) {
gotoAndPlay (11);
}
Symbol 236 MovieClip Frame 11
_root.enemies.enemy2.gotoAndPlay(2);
_root.enemies.enemy3.gotoAndPlay(2);
Symbol 236 MovieClip Frame 12
this.removeMovieClip();
stop();
Symbol 263 MovieClip Frame 1
hpmax = 500 + (200 * (2 * Math.min(2, Math.max(0.5, _root.diff) - 1)));
hp = hpmax;
pts = 12000;
count = 0;
if (yspd == null) {
yspd = 0;
}
dirleft = true;
hit = false;
this.onEnterFrame = function () {
if ((_root.paused._currentframe == 1) && (_root.enemies.enemy1.hp <= 0)) {
if (hp > 0) {
if (dirleft && (_x >= -570)) {
_x = (_x - 4);
}
if ((!dirleft) && (_x <= 100)) {
_x = (_x + 4);
}
if ((!dirleft) && (_x > 100)) {
dirleft = true;
}
if (dirleft && (_x < -570)) {
dirleft = false;
}
if (yspd > 0) {
if (_y < 270) {
_y = (_y + yspd);
} else {
yspd = yspd * -1;
}
} else {
_y = (_y + yspd);
}
yspd = yspd + 0.1;
} else {
_y = (_y + 10);
_x = (_x - 5);
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
stop();
Symbol 263 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.enemies.enemy1.hp <= 0) {
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 2 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 70 + _parent._y);
}
} else {
gotoAndStop (1);
}
Symbol 263 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 263 MovieClip Frame 5
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 5 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 139 + _parent._y);
}
Symbol 263 MovieClip Frame 6
gotoAndPlay (2);
Symbol 263 MovieClip Frame 7
_root.kill = _root.kill + 5;
_root.powerup();
_root.score = _root.score + pts;
if (!_root.snd) {
gotoAndPlay (11);
}
Symbol 263 MovieClip Frame 30
this.removeMovieClip();
stop();
Symbol 290 MovieClip Frame 1
hpmax = 500 + (200 * (2 * Math.min(2, Math.max(0.5, _root.diff) - 1)));
hp = hpmax;
pts = 12000;
count = 10;
if (yspd == null) {
yspd = 3;
}
dirleft = false;
hit = false;
this.onEnterFrame = function () {
if ((_root.paused._currentframe == 1) && (_root.enemies.enemy1.hp <= 0)) {
if (hp > 0) {
if (dirleft && (_x >= -570)) {
_x = (_x - 4);
}
if ((!dirleft) && (_x <= 100)) {
_x = (_x + 4);
}
if ((!dirleft) && (_x > 100)) {
dirleft = true;
}
if (dirleft && (_x < -570)) {
dirleft = false;
}
if (yspd > 0) {
if (_y < 270) {
_y = (_y + yspd);
} else {
yspd = yspd * -1;
}
} else {
_y = (_y + yspd);
}
yspd = yspd + 0.1;
} else {
_y = (_y + 10);
_x = (_x - 5);
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
stop();
Symbol 290 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.enemies.enemy1.hp <= 0) {
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 2 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 70 + _parent._y);
}
} else {
gotoAndStop (1);
}
Symbol 290 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 290 MovieClip Frame 5
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 5 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 139 + _parent._y);
}
Symbol 290 MovieClip Frame 6
gotoAndPlay (2);
Symbol 290 MovieClip Frame 7
_root.kill = _root.kill + 5;
_root.powerup();
_root.score = _root.score + pts;
if (!_root.snd) {
gotoAndPlay (11);
}
Symbol 290 MovieClip Frame 30
this.removeMovieClip();
stop();
Symbol 293 MovieClip Frame 1
this._visible = false;
stop();
Symbol 293 MovieClip Frame 2
this._visible = true;
_root.ship.invincible = false;
play();
Symbol 293 MovieClip Frame 49
if (_root.bossmode) {
gotoAndPlay (2148);
}
Symbol 293 MovieClip Frame 2150
if (!_root.music) {
gotoAndPlay (2152);
}
Symbol 293 MovieClip Frame 2199
_root.boss = true;
Symbol 293 MovieClip Frame 2201
if (((enemy1.hp > 0) || (enemy2.hp > 0)) || (enemy3.hp > 0)) {
gotoAndPlay (2200);
} else {
_root.lives++;
}
Symbol 293 MovieClip Frame 2202
_root.ship.invincible = true;
if (!_root.music) {
gotoAndPlay (2204);
}
Symbol 293 MovieClip Frame 2315
if (!_root.music) {
gotoAndPlay (2317);
}
Symbol 293 MovieClip Frame 2318
_root.boss = false;
_root.level++;
this.visible = false;
gotoAndStop (1);
_root.gotoAndPlay("game");
Symbol 293 MovieClip Frame 2319
stop();
Symbol 329 MovieClip Frame 1
hpmax = 1200 + (600 * (2 * Math.min(2, Math.max(0.5, _root.diff) - 1)));
hp = hpmax;
pts = 35000;
count = 0;
appear = true;
dirup = true;
dirleft = true;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
if (hp > 0) {
if (appear) {
if (_x > -250) {
_x = (_x - 5);
}
appear = false;
} else {
if (dirleft && (_x >= -250)) {
_x = (_x-1);
}
if ((!dirleft) && (_x <= -200)) {
_x = (_x+1);
}
if ((!dirleft) && (_x > -200)) {
dirleft = true;
}
if (dirleft && (_x < -250)) {
dirleft = false;
}
}
if (dirup && (_y > -350)) {
_y = (_y - 5);
}
if ((!dirup) && (_y < 150)) {
_y = (_y + 5);
}
if ((!dirup) && (_y > 150)) {
dirup = true;
}
if (dirup && (_y < -350)) {
dirup = false;
}
} else {
_y = (_y + 10);
_x = (_x - 5);
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 329 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(5, Math.min(hp / 4, 30))) {
count = 0;
_root.makeLaser2("laserblue", this, 215 + _parent._x, 115 + _parent._y);
_root.makeLaser2("laserblueup", this, 215 + _parent._x, 115 + _parent._y);
_root.makeLaser2("laserbluedown", this, 215 + _parent._x, 115 + _parent._y);
_root.makeLaser2("laserblue", this, 180 + _parent._x, 165 + _parent._y);
_root.makeLaser2("laserblue", this, 215 + _parent._x, 215 + _parent._y);
_root.makeLaser2("laserblueup", this, 215 + _parent._x, 245 + _parent._y);
_root.makeLaser2("laserbluedown", this, 215 + _parent._x, 245 + _parent._y);
}
Symbol 329 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 329 MovieClip Frame 4
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(5, Math.min(hp / 4, 10))) {
count = 0;
_root.makeLaser2("laserblue", this, 215 + _parent._x, 15 + _parent._y);
_root.makeLaser2("laserblueup", this, 215 + _parent._x, 115 + _parent._y);
_root.makeLaser2("laserbluedown", this, 215 + _parent._x, 115 + _parent._y);
_root.makeLaser2("laserblue", this, 180 + _parent._x, 165 + _parent._y);
_root.makeLaser2("laserblue", this, 215 + _parent._x, 215 + _parent._y);
_root.makeLaser2("laserblueup", this, 215 + _parent._x, 245 + _parent._y);
_root.makeLaser2("laserbluedown", this, 215 + _parent._x, 245 + _parent._y);
}
Symbol 329 MovieClip Frame 6
gotoAndPlay (2);
Symbol 329 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill = _root.kill + 20;
_root.powerup();
_root.lives++;
if (!_root.snd) {
gotoAndPlay (11);
}
Symbol 329 MovieClip Frame 30
this.removeMovieClip();
stop();
Symbol 330 MovieClip Frame 1
this._visible = false;
stop();
Symbol 330 MovieClip Frame 2
this._visible = true;
_root.ship.invincible = false;
play();
Symbol 330 MovieClip Frame 49
if (_root.bossmode) {
gotoAndPlay (2898);
}
Symbol 330 MovieClip Frame 2900
if (!_root.music) {
gotoAndPlay (2902);
}
Symbol 330 MovieClip Frame 3000
_root.boss = true;
Symbol 330 MovieClip Frame 3002
if (enemy1.hp > 0) {
gotoAndPlay (3001);
}
Symbol 330 MovieClip Frame 3003
_root.ship.invincible = true;
if (!_root.music) {
gotoAndPlay (3005);
}
Symbol 330 MovieClip Frame 3117
if (!_root.music) {
gotoAndPlay (3119);
}
Symbol 330 MovieClip Frame 3120
_root.boss = false;
_root.level++;
this.visible = false;
gotoAndStop (1);
_root.gotoAndPlay("game");
Symbol 330 MovieClip Frame 3121
stop();
Symbol 349 MovieClip Frame 1
hp = 90 * _root.diff;
pts = 1900;
count = 0;
hit = false;
xmov = 3;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - xmov);
xmov = xmov + 0.1;
if (xmov > 3) {
xmov = 3;
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 349 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
Symbol 349 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
} else {
xmov = xmov - 0.3;
}
hit = false;
Symbol 349 MovieClip Frame 6
gotoAndPlay (2);
Symbol 349 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill++;
_root.powerup();
_root.powerup();
_root.powerup();
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 349 MovieClip Frame 8
gotoAndPlay (9);
Symbol 349 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 356 MovieClip Frame 1
hp = 15 * _root.diff;
pts = 1600;
count = 30;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
if (ymov == null) {
ymov = 0;
}
_y = (_y - ymov);
ymov = ymov + 0.3;
if (ymov >= 10) {
ymovdone = true;
}
if (ymovdone && (ymov >= -10)) {
ymov = ymov - 0.8;
}
if (ymovdone && (ymov <= -10)) {
ymovdone = false;
}
if (xmov == null) {
xmov = -20;
}
_x = (_x + xmov);
xmov = xmov + 0.5;
if (xmov >= 15) {
xmovdone = true;
}
if (xmovdone) {
xmov = xmov - 2;
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 356 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if ((count++) >= 40) {
count = 0;
_root.makeLaser2("laserblueaim", this, 15 + _parent._x, 15 + _parent._y);
}
Symbol 356 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 356 MovieClip Frame 6
gotoAndPlay (2);
Symbol 356 MovieClip Frame 7
_root.score = _root.score + pts;
_root.powerup();
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 356 MovieClip Frame 8
gotoAndPlay (9);
Symbol 356 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 362 MovieClip Frame 1
hp = 30 * _root.diff;
pts = 2100;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 5);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 362 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= 25) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, -20 + _parent._x, 20 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, -20 + _parent._x, 10 + _parent._y);
}
Symbol 362 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 362 MovieClip Frame 4
count++;
Symbol 362 MovieClip Frame 6
gotoAndPlay (2);
Symbol 362 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill++;
_root.powerup();
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 362 MovieClip Frame 8
gotoAndPlay (9);
Symbol 362 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 363 MovieClip Frame 1
upgtype = 2;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup1))) {
upg = eval ("_root.upg" + upgtype);
if (upg._currentframe >= 4) {
upg.gotoAndPlay(5);
} else {
upg.gotoAndStop(upg._currentframe + 1);
}
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
Symbol 363 MovieClip Frame 291
upgtype = 0;
stop();
Symbol 363 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 363 MovieClip Frame 293
gotoAndStop (294);
Symbol 363 MovieClip Frame 294
stop();
Symbol 363 MovieClip Frame 295
gotoAndStop (294);
Symbol 369 MovieClip Frame 1
hp = 15 * _root.diff;
pts = 1600;
count = 30;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
if (ymov == null) {
ymov = 0;
}
_y = (_y + ymov);
ymov = ymov + 0.3;
if (ymov >= 10) {
ymovdone = true;
}
if (ymovdone && (ymov >= -10)) {
ymov = ymov - 0.8;
}
if (ymovdone && (ymov <= -10)) {
ymovdone = false;
}
if (xmov == null) {
xmov = -20;
}
_x = (_x + xmov);
xmov = xmov + 0.5;
if (xmov >= 15) {
xmovdone = true;
}
if (xmovdone) {
xmov = xmov - 2;
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 369 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if ((count++) >= 40) {
count = 0;
_root.makeLaser2("laserblueaim", this, 15 + _parent._x, 15 + _parent._y);
}
Symbol 369 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 369 MovieClip Frame 6
gotoAndPlay (2);
Symbol 369 MovieClip Frame 7
_root.score = _root.score + pts;
_root.powerup();
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 369 MovieClip Frame 8
gotoAndPlay (9);
Symbol 369 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 373 MovieClip Frame 1
hp = 30 * _root.diff;
pts = 2100;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 6);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 373 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= 30) {
count = 0;
_root.makeLaser2("laserblueaimbig", this, -15 + _parent._x, 15 + _parent._y);
}
Symbol 373 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 373 MovieClip Frame 4
count++;
Symbol 373 MovieClip Frame 6
gotoAndPlay (2);
Symbol 373 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill++;
_root.powerup();
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 373 MovieClip Frame 8
gotoAndPlay (9);
Symbol 373 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 380 MovieClip Frame 1
hp = 140 * _root.diff;
pts = 2500;
count = 0;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
_x = (_x - 2);
_y = (_y - 1);
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 380 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if ((count++) >= 10) {
if (count == 12) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 16) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 20) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 24) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 24) {
count = 0;
}
} else if (_root.diff >= 3) {
count++;
}
Symbol 380 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 380 MovieClip Frame 4
if ((count++) >= 10) {
if (count == 12) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 16) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 20) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 24) {
_root.makeLaser2("laserblueaimfast", this, 50 + _parent._x, 40 + _parent._y);
}
if (count == 24) {
count = 0;
}
} else if (_root.diff == 4) {
count++;
}
Symbol 380 MovieClip Frame 6
gotoAndPlay (2);
Symbol 380 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill = _root.kill + 4;
_root.powerup();
_root.powerup();
_root.powerup();
if (_root.snd) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
Symbol 380 MovieClip Frame 8
gotoAndPlay (9);
Symbol 380 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 381 MovieClip Frame 1
upgtype = 1;
this.onEnterFrame = function () {
if (((_root.paused._currentframe == 1) && (upgtype > 0)) && (_root.ship.hitTest(_root.enemies.powerup1))) {
_root.nuke = _root.nuke + _root.defnuke;
upgtype = 0;
_root.score = _root.score + 1000;
gotoAndPlay (292);
}
};
Symbol 381 MovieClip Frame 291
upgtype = 0;
stop();
Symbol 381 MovieClip Frame 292
if (!_root.snd) {
gotoAndPlay (294);
}
Symbol 381 MovieClip Frame 293
gotoAndStop (294);
Symbol 381 MovieClip Frame 294
stop();
Symbol 381 MovieClip Frame 295
gotoAndStop (294);
Symbol 397 MovieClip Frame 1
hpmax = 800 + (300 * (2 * Math.min(2, Math.max(0.5, _root.diff) - 1)));
hp = hpmax;
pts = 35000;
count = 0;
xspd = 6;
if (yspd == null) {
yspd = 2;
}
appear = false;
dirleft = true;
hit = false;
this.onEnterFrame = function () {
if (_root.paused._currentframe == 1) {
if (hp > 0) {
if (dirleft && (_x >= -450)) {
_x = (_x - xspd);
}
if ((!dirleft) && (_x <= 100)) {
_x = (_x + xspd);
}
if ((!dirleft) && (_x > 100)) {
dirleft = true;
}
if (dirleft && (_x < -450)) {
dirleft = false;
}
if (yspd > 0) {
if (_y < 150) {
_y = (_y + yspd);
} else if (_y < 160) {
_y = (_y + 1);
} else {
yspd = yspd * -1;
}
} else if (_y > -120) {
_y = (_y + yspd);
} else if (_y > -130) {
_y = (_y - 1);
} else {
yspd = yspd * -1;
}
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
Symbol 397 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((((count++) >= Math.round(Math.max(8, Math.min(hp / 4, 20) / 2))) && (!appear)) && (midpt)) {
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 5 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 139 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 140 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 10 + _parent._x, 72 + _parent._y);
midpt = false;
} else if ((count >= Math.max(8, Math.min(hp / 4, 20))) && (!appear)) {
count = 0;
midpt = true;
_root.makeLaser2("laserblue", this, (215 + _parent._x) - 150, (15 + _parent._y) - 40);
_root.makeLaser2("laserblueup", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("laserbluedown", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("laserblue", this, (180 + _parent._x) - 150, (165 + _parent._y) - 40);
_root.makeLaser2("laserblue", this, (215 + _parent._x) - 150, (215 + _parent._y) - 90);
_root.makeLaser2("laserblueup", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
_root.makeLaser2("laserbluedown", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
_root.makeLaser2("backlaserblue", this, (215 + _parent._x) - 150, (15 + _parent._y) - 40);
_root.makeLaser2("backlaserblueup", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("backlaserbluedown", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("backlaserblue", this, (180 + _parent._x) - 150, (165 + _parent._y) - 40);
_root.makeLaser2("backlaserblue", this, (215 + _parent._x) - 150, (215 + _parent._y) - 90);
_root.makeLaser2("backlaserblueup", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
_root.makeLaser2("backlaserbluedown", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
}
Symbol 397 MovieClip Frame 3
if ((!hit) || (appear)) {
gotoAndPlay (2);
}
if (appear) {
hp = hpmax;
}
hit = false;
_root.enemies.enemy2.hp = _root.enemies.enemy2.hpmax;
_root.enemies.enemy3.hp = _root.enemies.enemy3.hpmax;
Symbol 397 MovieClip Frame 5
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((((count++) >= Math.round(Math.max(8, Math.min(hp / 4, 20) / 2))) && (!appear)) && (midpt)) {
_root.makeLaser2("laserblueaimbig", this, 75 + _parent._x, 5 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 75 + _parent._x, 139 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 140 + _parent._x, 72 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 10 + _parent._x, 72 + _parent._y);
midpt = false;
} else if ((count >= Math.max(8, Math.min(hp / 4, 20))) && (!appear)) {
count = 0;
midpt = true;
_root.makeLaser2("laserblue", this, (215 + _parent._x) - 150, (15 + _parent._y) - 40);
_root.makeLaser2("laserblueup", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("laserbluedown", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("laserblue", this, (180 + _parent._x) - 150, (165 + _parent._y) - 40);
_root.makeLaser2("laserblue", this, (215 + _parent._x) - 150, (215 + _parent._y) - 90);
_root.makeLaser2("laserblueup", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
_root.makeLaser2("laserbluedown", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
_root.makeLaser2("backlaserblue", this, (215 + _parent._x) - 150, (15 + _parent._y) - 40);
_root.makeLaser2("backlaserblueup", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("backlaserbluedown", this, (215 + _parent._x) - 150, (115 + _parent._y) - 40);
_root.makeLaser2("backlaserblue", this, (180 + _parent._x) - 150, (165 + _parent._y) - 40);
_root.makeLaser2("backlaserblue", this, (215 + _parent._x) - 150, (215 + _parent._y) - 90);
_root.makeLaser2("backlaserblueup", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
_root.makeLaser2("backlaserbluedown", this, (215 + _parent._x) - 150, (245 + _parent._y) - 90);
}
Symbol 397 MovieClip Frame 6
gotoAndPlay (2);
Symbol 397 MovieClip Frame 7
_root.score = _root.score + pts;
_root.kill = _root.kill + 20;
_root.powerup();
_root.ship.inv.gotoAndPlay(1);
if (!_root.snd) {
gotoAndPlay (11);
}
Symbol 397 MovieClip Frame 11
_root.enemies.enemy2.gotoAndPlay(2);
_root.enemies.enemy3.gotoAndPlay(2);
Symbol 397 MovieClip Frame 12
this.removeMovieClip();
stop();
Symbol 426 MovieClip Frame 1
hpmax = 500 + (200 * (2 * Math.min(2, Math.max(0.5, _root.diff) - 1)));
hp = hpmax;
pts = 22000;
count = 0;
xspd = 4;
if (yspd == null) {
yspd = 4;
}
dirleft = true;
hit = false;
this.onEnterFrame = function () {
if ((_root.paused._currentframe == 1) && (_root.enemies.enemy1.hp <= 0)) {
if (hp > 0) {
if (dirleft && (_x >= -570)) {
_x = (_x - xspd);
}
if ((!dirleft) && (_x <= 100)) {
_x = (_x + xspd);
}
if ((!dirleft) && (_x > 100)) {
dirleft = true;
}
if (dirleft && (_x < -570)) {
dirleft = false;
}
if (yspd > 0) {
if (_y < 200) {
_y = (_y + yspd);
} else if (_y < 210) {
_y = (_y + 1);
} else {
yspd = yspd * -1;
}
} else if (_y > -60) {
_y = (_y + yspd);
} else if (_y > -70) {
_y = (_y - 1);
} else {
yspd = yspd * -1;
}
} else {
_y = (_y + 10);
_x = (_x - 5);
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
stop();
Symbol 426 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.enemies.enemy1.hp <= 0) {
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 2 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 70 + _parent._y);
_root.makeLaser2("laserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueup", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserbluedown", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblueup", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserbluedown", this, 37 + _parent._x, 34 + _parent._y);
}
} else {
gotoAndStop (1);
}
Symbol 426 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 426 MovieClip Frame 5
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 2 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 70 + _parent._y);
_root.makeLaser2("laserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueup", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserbluedown", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblueup", this, 37 + _parent._x, 34 + _parent._y);
}
Symbol 426 MovieClip Frame 6
gotoAndPlay (2);
Symbol 426 MovieClip Frame 7
_root.kill = _root.kill + 5;
_root.powerup();
_root.score = _root.score + pts;
if (!_root.snd) {
gotoAndPlay (11);
}
Symbol 426 MovieClip Frame 30
this.removeMovieClip();
stop();
Symbol 455 MovieClip Frame 1
hpmax = 500 + (200 * (2 * Math.min(2, Math.max(0.5, _root.diff) - 1)));
hp = hpmax;
pts = 22000;
count = 10;
xspd = 4;
if (yspd == null) {
yspd = 4;
}
dirleft = false;
hit = false;
this.onEnterFrame = function () {
if ((_root.paused._currentframe == 1) && (_root.enemies.enemy1.hp <= 0)) {
if (hp > 0) {
if (dirleft && (_x >= -570)) {
_x = (_x - xspd);
}
if ((!dirleft) && (_x <= 100)) {
_x = (_x + xspd);
}
if ((!dirleft) && (_x > 100)) {
dirleft = true;
}
if (dirleft && (_x < -570)) {
dirleft = false;
}
if (yspd > 0) {
if (_y < 200) {
_y = (_y + yspd);
} else if (_y < 210) {
_y = (_y + 1);
} else {
yspd = yspd * -1;
}
} else if (_y > -60) {
_y = (_y + yspd);
} else if (_y > -70) {
_y = (_y - 1);
} else {
yspd = yspd * -1;
}
} else {
_y = (_y + 10);
_x = (_x - 5);
}
if (((hp > 0) && (!_root.ship.invincible)) && (_root.collisiontest(this))) {
_root.ship.hit = true;
_root.onMouseUp();
}
}
};
stop();
Symbol 455 MovieClip Frame 2
if (hp <= 0) {
gotoAndPlay (7);
}
if (_root.enemies.enemy1.hp <= 0) {
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 2 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 70 + _parent._y);
_root.makeLaser2("laserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueup", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserbluedown", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblueup", this, 37 + _parent._x, 34 + _parent._y);
}
} else {
gotoAndStop (1);
}
Symbol 455 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
}
hit = false;
Symbol 455 MovieClip Frame 5
if (_root.diff == 0.25) {
count = count - 0.2;
}
if (_root.diff == 0.125) {
count = count - 0.5;
}
if (_root.diff == 3) {
count++;
}
if ((count++) >= Math.max(8, Math.min(hp / 4, 22))) {
count = 0;
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 2 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueaimfast", this, 37 + _parent._x, 70 + _parent._y);
_root.makeLaser2("laserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserblueup", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("laserbluedown", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblue", this, 37 + _parent._x, 34 + _parent._y);
_root.makeLaser2("backlaserblueup", this, 37 + _parent._x, 34 + _parent._y);
}
Symbol 455 MovieClip Frame 6
gotoAndPlay (2);
Symbol 455 MovieClip Frame 7
_root.kill = _root.kill + 5;
_root.powerup();
_root.score = _root.score + pts;
if (!_root.snd) {
gotoAndPlay (11);
}
Symbol 455 MovieClip Frame 30
this.removeMovieClip();
stop();
Symbol 456 MovieClip Frame 1
this._visible = false;
stop();
Symbol 456 MovieClip Frame 2
this._visible = true;
_root.ship.invincible = false;
play();
Symbol 456 MovieClip Frame 48
if (_root.bossmode) {
gotoAndPlay (2136);
}
Symbol 456 MovieClip Frame 2150
if (!_root.music) {
gotoAndPlay (2152);
}
Symbol 456 MovieClip Frame 2199
_root.boss = true;
Symbol 456 MovieClip Frame 2201
if (((enemy1.hp > 0) || (enemy2.hp > 0)) || (enemy3.hp > 0)) {
gotoAndPlay (2200);
}
Symbol 456 MovieClip Frame 2202
_root.ship.invincible = true;
Symbol 456 MovieClip Frame 2315
if (!_root.music) {
gotoAndPlay (2317);
}
Symbol 456 MovieClip Frame 2318
_root.boss = false;
_root.gamewin = true;
Symbol 456 MovieClip Frame 2319
stop();
Symbol 480 MovieClip Frame 1
_root.ship.invincible = true;
Symbol 480 MovieClip Frame 61
_root.ship.invincible = false;
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 2
_root.ship.invincible = true;
_root.ship.inv.gotoAndPlay(1);
if (!_root.snd) {
gotoAndPlay (4);
}
Symbol 483 MovieClip Frame 18
gotoAndStop (1);
Symbol 488 MovieClip Frame 1
hit = false;
_root.nuke = _root.defnuke;
invincible = true;
inv.gotoAndPlay(1);
Symbol 488 MovieClip Frame 3
if (!hit) {
gotoAndPlay (2);
} else {
gotoAndPlay (8);
}
Symbol 488 MovieClip Frame 4
if (!_root.snd) {
gotoAndPlay (6);
} else {
gotoAndPlay (5);
}
Symbol 488 MovieClip Frame 5
gotoAndPlay (6);
Symbol 488 MovieClip Frame 7
gotoAndPlay (2);
Symbol 488 MovieClip Frame 8
invincible = true;
_root.lives--;
if (_root.lives <= 0) {
_root.enemies.gotoAndPlay("gameover");
} else {
if ((_root.upg1._currentframe > 2) && (_root.enemies.powerup2._currentframe == 1)) {
if ((!_root.boss) || (_root.upg1._currentframe > 3)) {
_root.enemies.powerup2.gotoAndPlay(2);
}
}
if ((_root.upg2._currentframe > 2) && (_root.enemies.powerup3._currentframe == 1)) {
_root.enemies.powerup3.gotoAndPlay(2);
}
if ((_root.upg3._currentframe > 2) && (_root.enemies.powerup4._currentframe == 1)) {
_root.enemies.powerup4.gotoAndPlay(2);
}
}
_root.upg1.gotoAndStop(1);
_root.upg2.gotoAndStop(1);
_root.upg3.gotoAndStop(1);
if (_root.boss && (_root.enemies.powerupb._currentframe > 290)) {
_root.enemies.powerupb.upgtype = 1;
_root.enemies.powerupb.gotoAndPlay(2);
}
if (_root.snd) {
gotoAndPlay (10);
}
Symbol 488 MovieClip Frame 9
gotoAndPlay (11);
Symbol 488 MovieClip Frame 42
if (_root.lives > 0) {
gotoAndPlay (1);
} else {
stop();
}
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 2
stop();
Symbol 499 MovieClip Frame 3
stop();
Symbol 499 MovieClip Frame 4
stop();
Symbol 499 MovieClip Frame 400
gotoAndStop (4);
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 2
stop();
Symbol 502 MovieClip Frame 3
stop();
Symbol 502 MovieClip Frame 4
stop();
Symbol 502 MovieClip Frame 250
gotoAndStop (4);
Symbol 505 MovieClip Frame 1
stop();
stop();
Symbol 505 MovieClip Frame 2
stop();
Symbol 505 MovieClip Frame 3
stop();
Symbol 505 MovieClip Frame 4
stop();
Symbol 505 MovieClip Frame 400
gotoAndStop (4);
Symbol 511 Button
on (release) {
i = 0;
while (i < maxenum2) {
eval ("laser" + i).removeMovieClip();
i++;
}
_root.boss = false;
_root.gotoAndPlay("start");
}
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 31
gotoAndPlay (2);
Symbol 527 Button
on (release) {
_root.score = 0;
_root.upg1.gotoAndStop(1);
_root.upg2.gotoAndStop(1);
_root.upg3.gotoAndStop(1);
_root.ship.gotoAndPlay(1);
gotoAndPlay (12);
}
Symbol 532 Button
on (release) {
gotoAndPlay (4);
}
Symbol 541 Button
on (release) {
_root.gotoAndPlay("1");
}