Frame 1
level = 1000;
hilevel = 1000000 /* 0x0F4240 */;
fscommand ("fullscreen", true);
stop();
Frame 2
stop();
_root.hud._visible = false;
_root.pgame._y = 500;
Frame 3
function register(iname, array) {
ina = eval ("_root." + iname);
ina.anum = array[array.length];
array[array.length] = ina;
}
function unregister(anum, array) {
_root.testtext.text = anum;
i = anum;
while (i < array) {
ina = eval (array[i]);
if (ina == _root.blank) {
array.splice(anum, 1);
ina.anum--;
}
i++;
}
}
function stopgame() {
i = 0;
while (i < _root.gob.length) {
ob = eval ("_root." + _root.gob[i]);
ob.removeMovieClip();
i++;
}
}
function spawnEnemy(x, y, t, r) {
ent = eval ("_root.enemy" + t);
duplicateMovieClip (ent, "enemy" + _root.level, _root.level);
en = eval ("_root.enemy" + _root.level);
en._rotation = r;
en._x = x;
en._y = y;
en.active = true;
_root.level++;
}
function spawnPowerup(x, y, t) {
duplicateMovieClip (_root.powerup, "powerup" + _root.level, _root.level);
pu = eval ("_root.powerup" + _root.level);
pu._x = x;
pu._y = y;
pu._rotation = random(360);
pu.gotoAndStop(t);
pu.active = true;
_root.level++;
}
gameover = false;
paused = false;
score = 0;
sco = 0;
clevel = 1;
_root.hud._visible = true;
_root.pgame.active = true;
enemies = new Array(_root.blank);
gob = new Array(_root.blank);
stop();
Instance of Symbol 68 MovieClip "ship" in Frame 3
onClipEvent (load) {
function moveForward() {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
speed = 10;
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function rotate(dir) {
rot = this._rotation;
nrot = rot * (Math.PI/180);
if (dir == "left") {
this._rotation = this._rotation - 7;
} else if (dir == "right") {
this._rotation = this._rotation + 7;
}
}
function lightTrail(frame, wid, len) {
drawLine(_root.line, frame, currentPos, oldPos, wid, len);
}
function fire(weapon) {
if (weapon == "laser") {
if ((ltimer == 0) && (energy > 0)) {
if (lasgun == 0) {
duplicateMovieClip (_root.laser, "laser" + _root.level, _root.level);
las = eval ("_root.laser" + _root.level);
las._rotation = _rotation;
las._x = las1.x;
las._y = las1.y;
las.active = true;
las.ltype = "n";
las.active = true;
las.unregistered = true;
slas.start();
lasgun = 1;
_root.level++;
} else if (lasgun == 1) {
duplicateMovieClip (_root.laser, "laser" + _root.level, _root.level);
las = eval ("_root.laser" + _root.level);
las._rotation = _rotation;
las._x = las2.x;
las._y = las2.y;
las.active = true;
las.ltype = "n";
las.active = true;
las.unregistered = true;
slas.start();
lasgun = 0;
_root.level++;
}
ltimer = 2;
energy = energy - 1;
}
} else if (weapon == "armageddon") {
if ((atimer == 0) && (energy > 29)) {
i = 0;
while (i < 72) {
duplicateMovieClip (_root.laser, "laser" + _root.level, _root.level);
las = eval ("_root.laser" + _root.level);
las._width = 20;
las._rotation = i * 5;
las._x = this._x;
las._y = this._y;
las.active = true;
las.unregistered = true;
las.ltype = "a";
_root.level++;
i++;
}
atimer = 15;
energy = energy - 30;
ags.start();
}
} else if (weapon == "missile") {
if ((mtimer == 0) && (missile > 1)) {
duplicateMovieClip (_root.missile, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation;
las._x = las1.x;
las._y = las1.y;
las.active = true;
las.ltype = "n";
las.unregistered = true;
las.active = true;
_root.level++;
duplicateMovieClip (_root.missile, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation;
las._x = las2.x;
las._y = las2.y;
las.active = true;
las.ltype = "n";
las.unregistered = true;
las.active = true;
_root.level++;
mtimer = 10;
missile = missile - 2;
mis.start();
}
} else if (weapon == "volley") {
if ((vtimer == 0) && (missile > 1)) {
if (missile >= 8) {
av = 4;
} else {
av = Math.round(missile / 2);
}
i = 0;
while (i < av) {
duplicateMovieClip (_root.missile, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = (_rotation + (i * 20)) + 10;
las._x = las1.x;
las._y = las1.y;
las.active = true;
las.ltype = "n";
las.unregistered = true;
las.active = true;
_root.level++;
i++;
}
i = 0;
while (i < av) {
duplicateMovieClip (_root.missile, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = (_rotation - (i * 20)) - 10;
las._x = las2.x;
las._y = las2.y;
las.active = true;
las.ltype = "n";
las.unregistered = true;
las.active = true;
_root.level++;
i++;
}
vtimer = 30;
missile = missile - (av * 2);
mis.start();
}
}
}
function drawLine(iname, frame, p1, p2, width, len) {
duplicateMovieClip (iname, "line" + _root.level, _root.level);
nline = eval ("_root.line" + _root.level);
nline._x = p1[0];
nline._y = p1[1];
xdif = p2[0] - p1[0];
ydif = p2[1] - p1[1];
dist = Math.sqrt((xdif * xdif) + (ydif * ydif));
nline._xscale = dist;
nline._alpha = len * 5;
if (nline._xscale > 100) {
nline._alpha = 0;
}
nline._height = width;
rad = Math.asin(ydif / dist);
degcon = 57.2957795130823;
nrad = rad * degcon;
if (xdif < 0) {
nrad = 180 - nrad;
}
nline._rotation = nrad;
nline.gotoAndStop(frame);
nline.unregistered = true;
nline.active = true;
_root.level++;
}
function detonate() {
duplicateMovieClip (_root.edet, "edet" + _root.level, _root.level);
det = eval ("_root.edet" + _root.level);
det._x = this._x;
det._y = this._y;
det._alpha = 100;
det.active = true;
det.gotoAndPlay(1);
_root.level++;
exp.start();
this.active = false;
this._x = 700;
_name = "deadship";
_root.gameover = true;
}
unregistered = true;
flame._visible = false;
ltimer = 0;
mtimer = 0;
atimer = 0;
vtimer = 0;
lasgun = 0;
mis = new Sound();
mis.attachSound("_missile");
slas = new Sound();
slas.attachSound("_laser");
ags = new Sound();
ags.attachSound("_armageddon");
nlv = new Sound();
nlv.attachSound("_nextlevel");
active = true;
this.getBounds(_root);
lvltimer = 0;
energy = 100;
sheild = 100;
missile = 40;
_x = 320;
_y = 240;
currentPos = new Array(this._x, this._y);
oldPos = new Array(this._x, this._y);
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
flame._visible = false;
lflame._visible = false;
rflame._visible = false;
if (Key.isDown(38)) {
moveForward();
flame._visible = true;
this.currentPos[0] = this._x;
this.currentPos[1] = this._y;
lightTrail(1, 4, 10);
this.oldPos[0] = this._x;
this.oldPos[1] = this._y;
}
if (Key.isDown(37)) {
rotate("left");
lflame._visible = true;
}
if (Key.isDown(39)) {
rotate("right");
rflame._visible = true;
}
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
if (Key.isDown(65)) {
fire("laser");
}
if (Key.isDown(83)) {
fire("missile");
}
if (Key.isDown(90)) {
fire("armageddon");
}
if (Key.isDown(88)) {
fire("volley");
}
if (ltimer > 0) {
ltimer--;
}
if (mtimer > 0) {
mtimer--;
}
if (atimer > 0) {
atimer--;
}
if (vtimer > 0) {
vtimer--;
}
if (energy < 100) {
energy = energy + 0.1;
}
if (sheild < 100) {
sheild = sheild + 0.1;
}
if (missile < 40) {
missile = missile + 0.005;
}
if (sheild < 0) {
detonate();
}
lvltimer++;
if (lvltimer > 899) {
_root.clevel++;
lvltimer = 0;
nlv.start();
}
}
}
Instance of Symbol 70 MovieClip "laser" in Frame 3
onClipEvent (load) {
function moveForward() {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
speed = 20;
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function htest() {
i = 0;
while (i < _root.enemies.length) {
t = eval ("_root." + _root.enemies[i]);
hit = this.hitTest(t);
if (hit) {
detonate(t);
i = _root.enemies.length;
}
i++;
}
}
function detonate(target) {
duplicateMovieClip (_root.ldet, "ldet" + _root.level, _root.level);
det = eval ("_root.ldet" + _root.level);
det._rotation = this._rotation;
det._x = _x;
det._y = _y;
det._alpha = 100;
det.active = true;
ldt.start();
target.hp = target.hp - 1;
_root.level++;
blank = _root.blank;
_root.gob[inum] = blank;
this.removeMovieClip();
}
ldt = new Sound();
ldt.attachSound("_lasdeath");
inum = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
moveForward();
htest();
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
if (ltype == "n") {
_alpha = (_alpha - 2);
} else if (ltype == "a") {
_alpha = (_alpha - 10);
}
if (_alpha < 0) {
blank = _root.blank;
_root.gob[inum] = blank;
this.removeMovieClip();
}
}
}
Instance of Symbol 73 MovieClip "line" in Frame 3
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (active) {
_alpha = (_alpha - 5);
if (_alpha < 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 47 MovieClip "enemy1" in Frame 3
onClipEvent (load) {
function seekTarget() {
ydif = _root.ship._y - _y;
xdif = _root.ship._x - _x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
moveForward(2);
}
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
if (speed > 15) {
speed = 15;
}
if (speed < 1) {
speed = 1;
}
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function rotate(dir, need) {
if (need > 4) {
need = 5;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function fire(weapon) {
if (weapon == "laser") {
if (ltimer == 0) {
duplicateMovieClip (_root.elaser, "elaser" + _root.level, _root.level);
las = eval ("_root.elaser" + _root.level);
las._x = _x;
las._y = _y;
las.active = true;
las.unregistered = true;
las._rotation = _rotation;
ltimer = 30;
_root.level++;
}
} else if (weapon == "missile") {
if (ltimer == 0) {
duplicateMovieClip (_root.emis, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation;
las._x = _x;
las._y = _y;
las.active = true;
las.unregistered = true;
_root.level++;
ltimer = 60;
}
}
}
function detonate() {
duplicateMovieClip (_root.edet, "edet" + _root.level, _root.level);
det = eval ("_root.edet" + _root.level);
det._x = this._x;
det._y = this._y;
det._alpha = 100;
det.active = true;
det.gotoAndPlay(1);
blank = _root.blank;
_root.enemies[anum] = blank;
blank = _root.blank;
_root.gob[inum] = blank;
_root.level++;
exp.start();
i = 0;
while (i < rp) {
ranp = random(3) + 1;
_root.spawnPowerup(_x, _y, ranp);
i++;
}
_root.score = _root.score + 100;
_root.level++;
this.removeMovieClip();
}
unregistered = true;
hp = 10;
this.getBounds(_root);
ltimer = 0;
ranp = 0;
exp = new Sound();
exp.attachSound("_explosion");
rp = 1;
anum = 0;
inum = 0;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
anum = _root.enemies.length;
_root.enemies[_root.enemies.length] = this;
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
_root.testtext.text = _root.gob[inum];
}
seekTarget();
f = Math.random() * 100;
if ((f > 0) && (f < 80)) {
fire("laser");
} else if (f > 80) {
fire("missile");
}
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
if (ltimer > 0) {
ltimer--;
}
if (hp < 1) {
detonate();
}
}
}
Instance of Symbol 79 MovieClip "ldet" in Frame 3
onClipEvent (load) {
active = false;
}
onClipEvent (enterFrame) {
if (active) {
play();
}
}
Instance of Symbol 87 MovieClip "missile" in Frame 3
onClipEvent (load) {
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
if (speed > 15) {
speed = 15;
}
if (speed < 1) {
speed = 1;
}
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
this.currentPos[0] = this._x;
this.currentPos[1] = this._y;
lightTrail(1, 2, 20);
this.oldPos[0] = this._x;
this.oldPos[1] = this._y;
}
function htest() {
i = 0;
while (i < _root.enemies.length) {
t = eval ("_root." + _root.enemies[i]);
hit = this.hitTest(t);
if (hit) {
detonate(t);
i = _root.enemies.length;
}
i++;
}
}
function detonate(target) {
duplicateMovieClip (_root.mdet, "mdet" + _root.level, _root.level);
det = eval ("_root.mdet" + _root.level);
det._rotation = this._rotation;
det._x = _x;
det._y = _y;
det._alpha = 100;
det.active = true;
target.hp = target.hp - 5;
_root.level++;
mex.start();
blank = _root.blank;
_root.gob[inum] = blank;
this.removeMovieClip();
}
function rotate(dir, need) {
if (need > 5) {
need = 5;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function lightTrail(frame, wid, len) {
drawLine(_root.line, frame, currentPos, oldPos, wid, len);
}
function drawLine(iname, frame, p1, p2, width, len) {
duplicateMovieClip (iname, "line" + _root.level, _root.level);
nline = eval ("_root.line" + _root.level);
nline._x = p1[0];
nline._y = p1[1];
xdif = p2[0] - p1[0];
ydif = p2[1] - p1[1];
dist = Math.sqrt((xdif * xdif) + (ydif * ydif));
nline._xscale = dist;
nline._alpha = len * 5;
if (nline._xscale > 100) {
nline._alpha = 0;
}
nline._height = width;
rad = Math.asin(ydif / dist);
degcon = 57.2957795130823;
nrad = rad * degcon;
if (xdif < 0) {
nrad = 180 - nrad;
}
nline._rotation = nrad;
nline.gotoAndStop(frame);
nline.unregistered = true;
nline.active = true;
_root.level++;
}
function seekTarget() {
istarget = false;
shortest = 1000;
closest = "";
yshort = 1000;
xshort = 1000;
i = 0;
while (i < _root.enemies.length) {
en = eval ("_root." + _root.enemies[i]);
xdif = en._x - this._x;
ydif = en._y - this._y;
dist = Math.sqrt((xdif * xdif) + (ydif * ydif));
if (dist < shortest) {
shortest = dist;
closest = eval (en);
yshort = ydif;
xshort = xdif;
istarget = true;
}
i++;
}
if (istarget) {
degcon = 57.2957795130823;
rad = Math.asin(yshort / shortest);
rot = (rad * degcon) + 90;
if (xshort < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
}
moveForward(shortest);
}
etimer = 80 + random(20);
currentPos = new Array();
oldPos = new Array(_x, _y);
mex = new Sound();
mex.attachSound("_misexplode");
inum = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
htest();
seekTarget();
etimer--;
if (etimer < 0) {
detonate(0);
}
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
}
}
Instance of Symbol 98 MovieClip "mdet" in Frame 3
onClipEvent (load) {
active = false;
unregistered = true;
inum = 0;
}
onClipEvent (enterFrame) {
if (active) {
gotoAndStop(_currentframe + 1);
}
}
Instance of Symbol 152 MovieClip "hud" in Frame 3
onClipEvent (enterFrame) {
this.swapDepths(_root.hilevel + 2);
}
Instance of Symbol 155 MovieClip "powerup" in Frame 3
onClipEvent (load) {
function seekTarget() {
ydif = _root.ship._y - _y;
xdif = _root.ship._x - _x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
moveForward(1);
}
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
if (speed > 15) {
speed = 15;
}
if (speed < 1) {
speed = 1;
}
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function rotate(dir, need) {
if (need > 0.5) {
need = 0.5;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function pickupCheck(f) {
hit = this.hitTest(_root.ship);
if (hit) {
if (f == 1) {
_root.ship.sheild = _root.ship.sheild + 10;
if (_root.ship.sheild > 100) {
_root.score = _root.score + Math.round((_root.ship.sheild - 100) * 10);
_root.ship.sheild = 100;
}
} else if (f == 2) {
_root.ship.energy = _root.ship.energy + 10;
if (_root.ship.energy > 100) {
_root.score = _root.score + Math.round((_root.ship.energy - 100) * 10);
_root.ship.energy = 100;
}
} else if (f == 3) {
_root.ship.missile = _root.ship.missile + 4;
if (_root.ship.missile > 40) {
_root.score = _root.score + Math.round((_root.ship.missile - 40) * 25);
_root.ship.missile = 40;
}
}
pwp.start();
blank = _root.blank;
_root.gob[inum] = blank;
this.removeMovieClip();
}
}
pwp = new Sound();
pwp.attachSound("_powerup");
inum = 0;
unregistered = true;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
seekTarget();
pickupCheck(this._currentframe);
}
}
Instance of Symbol 158 MovieClip "pgame" in Frame 3
onClipEvent (load) {
ptimer = 10;
active = true;
ctimer = 0;
stopped = false;
}
onClipEvent (enterFrame) {
if (active) {
if ((Key.isDown(32) && (_root.paused == false)) && (ptimer == 0)) {
_root.paused = true;
ptimer = 10;
_y = 120;
i = 0;
while (i < _root.gob.length) {
ob = eval ("_root." + _root.gob[i]);
ob.active = false;
i++;
}
} else if ((Key.isDown(32) && (_root.paused == true)) && (ptimer == 0)) {
_root.paused = false;
ptimer = 10;
_y = 500;
i = 0;
while (i < _root.gob.length) {
ob = eval ("_root." + _root.gob[i]);
ob.active = true;
i++;
}
}
if (ptimer > 0) {
ptimer--;
}
this.swapDepths(_root.hilevel + 1);
}
if (_root.gameover) {
if (!stopped) {
_root.stopgame();
stopped = true;
_root.egen.active = false;
}
_root.pgame._y = 500;
ptimer = 10;
active = false;
_root.gover.active = true;
}
i = 0;
while (i < _root.enemies.length) {
if (_root.enemies[i] == _level0.blank) {
_root.enemies.splice(i, 1);
x = i;
while (x < _root.enemies.length) {
_root.enemies[x].anum--;
x++;
}
}
i++;
}
_root.testtext.text = _root.paused;
}
Instance of Symbol 169 MovieClip "edet" in Frame 3
onClipEvent (load) {
unregistered = true;
inum = 0;
}
onClipEvent (enterFrame) {
if (active) {
gotoAndStop(_currentframe + 1);
if (unregistered) {
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
}
if (_alpha < 0) {
this.removeMovieClip();
}
}
Instance of Symbol 171 MovieClip "elaser" in Frame 3
onClipEvent (load) {
function moveForward() {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
speed = 20;
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function htest() {
hit = this.hitTest(_root.ship);
if (hit) {
detonate(_root.ship);
}
}
function detonate(target) {
duplicateMovieClip (_root.ldet, "ldet" + _root.level, _root.level);
det = eval ("_root.ldet" + _root.level);
det._rotation = this._rotation;
det._x = _x;
det._y = _y;
det._alpha = 100;
det.active = true;
ldt.start();
target.sheild = target.sheild - 1;
_root.level++;
blank = _root.blank;
_root.gob[inum] = blank;
this.removeMovieClip();
}
ldt = new Sound();
ldt.attachSound("_lasdeath");
inum = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
moveForward();
htest();
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
if ((ltype = "a")) {
_alpha = (_alpha - 5);
} else {
_alpha = (_alpha - 2);
}
if (_alpha < 0) {
blank = _root.blank;
_root.gob[inum] = blank;
this.removeMovieClip();
}
}
}
Instance of Symbol 174 MovieClip "emis" in Frame 3
onClipEvent (load) {
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
this.currentPos[0] = this._x;
this.currentPos[1] = this._y;
lightTrail(2, 2, 20);
this.oldPos[0] = this._x;
this.oldPos[1] = this._y;
}
function htest() {
hit = this.hitTest(_root.ship);
if (hit) {
detonate(_root.ship);
}
}
function detonate(target) {
duplicateMovieClip (_root.mdet, "mdet" + _root.level, _root.level);
det = eval ("_root.mdet" + _root.level);
det._rotation = this._rotation;
det._x = _x;
det._y = _y;
det._alpha = 100;
det.active = true;
target.sheild = target.sheild - 4;
_root.level++;
mex.start();
blank = _root.blank;
_root.gob[inum] = blank;
this.removeMovieClip();
}
function rotate(dir, need) {
if (need > 4) {
need = 4;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function lightTrail(frame, wid, len) {
drawLine(_root.line, frame, currentPos, oldPos, wid, len);
}
function drawLine(iname, frame, p1, p2, width, len) {
duplicateMovieClip (iname, "line" + _root.level, _root.level);
nline = eval ("_root.line" + _root.level);
nline._x = p1[0];
nline._y = p1[1];
xdif = p2[0] - p1[0];
ydif = p2[1] - p1[1];
dist = Math.sqrt((xdif * xdif) + (ydif * ydif));
nline._xscale = dist;
nline._alpha = len * 5;
if (nline._xscale > 100) {
nline._alpha = 0;
}
nline._height = width;
rad = Math.asin(ydif / dist);
degcon = 57.2957795130823;
nrad = rad * degcon;
if (xdif < 0) {
nrad = 180 - nrad;
}
nline._rotation = nrad;
nline.gotoAndStop(frame);
nline.unregistered = true;
nline.active = true;
_root.level++;
}
function seekTarget() {
ydif = _root.ship._y - _y;
xdif = _root.ship._x - _x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
moveForward(9);
}
etimer = 80 + random(20);
currentPos = new Array();
oldPos = new Array(_x, _y);
mex = new Sound();
mex.attachSound("_misexplode");
inum = 0;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
htest();
seekTarget();
etimer--;
if (etimer < 0) {
detonate(0);
}
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
}
}
Instance of Symbol 177 MovieClip "gover" in Frame 3
onClipEvent (load) {
_alpha = 0;
active = false;
}
onClipEvent (enterFrame) {
if (active) {
if (_alpha < 101) {
this._x = 0;
this._y = 120;
this._alpha = this._alpha + 2;
}
if (Key.isDown(13)) {
_root.stopgame();
stopAllSounds();
_y = 500;
_root.gotoAndStop(2);
_root.gameover = false;
_root.paused = false;
}
}
if (Key.isDown(13) && (_root.paused == true)) {
_root.gameover = true;
}
}
Instance of Symbol 179 MovieClip "egen" in Frame 3
onClipEvent (load) {
function make() {
s = random(_root.clevel) + 1;
if ((s > 0) && (s < 5)) {
p = random(8);
x = pos[p][0];
y = pos[p][1];
r = pos[p][2];
_root.spawnEnemy(x, y, 1, r);
} else if ((s > 4) && (s < 10)) {
p = random(8);
x = pos[p][0];
y = pos[p][1];
r = pos[p][2];
_root.spawnEnemy(x, y, 2, r);
} else if ((s > 9) && (s < 15)) {
p = random(8);
x = pos[p][0];
y = pos[p][1];
r = pos[p][2];
_root.spawnEnemy(x, y, 3, r);
} else if ((s > 14) && (s < 20)) {
p = random(8);
x = pos[p][0];
y = pos[p][1];
r = pos[p][2];
_root.spawnEnemy(x, y, 4, r);
} else if (s > 19) {
p = random(8);
x = pos[p][0];
y = pos[p][1];
r = pos[p][2];
_root.spawnEnemy(x, y, 5, r);
}
}
unregistered = true;
mtimer = 0;
mt = 60;
active = true;
AW = new Sound();
AW.attachSound("_music");
AW.start();
pos = new Array();
pos[0] = new Array(-10, -10, 135);
pos[1] = new Array(650, -10, 225);
pos[2] = new Array(-10, 490, 45);
pos[3] = new Array(650, 490, 315);
pos[4] = new Array(320, -10, 180);
pos[5] = new Array(320, 490, 0);
pos[6] = new Array(-10, 240, 90);
pos[7] = new Array(650, 240, 270);
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
_root.register(this._name, _root.gob);
}
AW.onSoundComplete = function () {
AW.start();
};
mtimer++;
if (mtimer > mt) {
make();
mtimer = 0;
}
_root.sco = _root.sco + Math.ceil((_root.score - _root.sco) / 30);
_root.sco3 = _root.sco / 100000;
_root.sco2 = _root.sco3 - (_root.sco / 100);
_root.sco1 = _root.sco3 - _root.sco2;
}
}
Instance of Symbol 50 MovieClip "enemy2" in Frame 3
onClipEvent (load) {
function seekTarget() {
ydif = _root.ship._y - _y;
xdif = _root.ship._x - _x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
moveForward(1);
}
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
if (speed > 15) {
speed = 15;
}
if (speed < 1) {
speed = 1;
}
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function rotate(dir, need) {
if (need > 2) {
need = 2;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function fire(weapon) {
if (weapon == "laser") {
if (ltimer == 0) {
i = 0;
while (i < 3) {
duplicateMovieClip (_root.elaser, "elaser" + _root.level, _root.level);
las = eval ("_root.elaser" + _root.level);
las._x = _x;
las._y = _y;
las.active = true;
las.unregistered = true;
las._rotation = (_rotation - 10) + (i * 10);
ltimer = 30;
_root.level++;
i++;
}
}
} else if (weapon == "missile") {
if (ltimer == 0) {
duplicateMovieClip (_root.emis, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation - 30;
las._x = las1._x;
las._y = las1._y;
las.active = true;
las.unregistered = true;
_root.level++;
duplicateMovieClip (_root.emis, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation + 30;
las._x = las1._x;
las._y = las1._y;
las.active = true;
las.unregistered = true;
_root.level++;
ltimer = 60;
}
}
}
function detonate() {
duplicateMovieClip (_root.edet, "edet" + _root.level, _root.level);
det = eval ("_root.edet" + _root.level);
det._x = this._x;
det._y = this._y;
det._alpha = 100;
det.active = true;
det.gotoAndPlay(1);
blank = _root.blank;
_root.enemies[anum] = blank;
blank = _root.blank;
_root.gob[inum] = blank;
_root.level++;
exp.start();
ranp = random(3) + 1;
i = 0;
while (i < rp) {
ranp = random(3) + 1;
_root.spawnPowerup(_x, _y, ranp);
i++;
}
_root.score = _root.score + 400;
_root.level++;
this.removeMovieClip();
}
unregistered = true;
hp = 20;
this.getBounds(_root);
ltimer = 0;
ranp = 0;
exp = new Sound();
exp.attachSound("_explosion");
rp = 2;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
anum = _root.enemies.length;
_root.enemies[_root.enemies.length] = this;
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
seekTarget();
f = Math.random() * 100;
if ((f > 0) && (f < 80)) {
fire("laser");
} else if (f > 80) {
fire("missile");
}
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
if (ltimer > 0) {
ltimer--;
}
if (hp < 1) {
detonate();
}
}
}
Instance of Symbol 52 MovieClip "enemy3" in Frame 3
onClipEvent (load) {
function seekTarget() {
ydif = _root.ship._y - _y;
xdif = _root.ship._x - _x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
moveForward(5);
}
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
if (speed > 15) {
speed = 15;
}
if (speed < 1) {
speed = 1;
}
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function rotate(dir, need) {
if (need > 6) {
need = 6;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function fire(weapon) {
if (weapon == "laser") {
if (ltimer == 0) {
i = 0;
while (i < 3) {
duplicateMovieClip (_root.elaser, "elaser" + _root.level, _root.level);
las = eval ("_root.elaser" + _root.level);
las._x = _x;
las._y = _y;
las.active = true;
las.unregistered = true;
las._rotation = (_rotation - 10) + (i * 10);
ltimer = 10;
_root.level++;
i++;
}
}
} else if (weapon == "missile") {
if (ltimer == 0) {
duplicateMovieClip (_root.emis, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation - 30;
las._x = las1._x;
las._y = las1._y;
las.active = true;
las.unregistered = true;
_root.level++;
duplicateMovieClip (_root.emis, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation + 30;
las._x = las1._x;
las._y = las1._y;
las.active = true;
las.unregistered = true;
_root.level++;
ltimer = 20;
}
}
}
function detonate() {
duplicateMovieClip (_root.edet, "edet" + _root.level, _root.level);
det = eval ("_root.edet" + _root.level);
det._x = this._x;
det._y = this._y;
det._alpha = 100;
det.active = true;
det.gotoAndPlay(1);
blank = _root.blank;
_root.enemies[anum] = blank;
blank = _root.blank;
_root.gob[inum] = blank;
_root.level++;
exp.start();
ranp = random(3) + 1;
i = 0;
while (i < rp) {
ranp = random(3) + 1;
_root.spawnPowerup(_x, _y, ranp);
i++;
}
_root.score = _root.score + 600;
_root.level++;
this.removeMovieClip();
}
unregistered = true;
hp = 10;
this.getBounds(_root);
ltimer = 0;
ranp = 0;
exp = new Sound();
exp.attachSound("_explosion");
rp = 3;
inum = 0;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
anum = _root.enemies.length;
_root.enemies[_root.enemies.length] = this;
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
seekTarget();
f = Math.random() * 100;
if ((f > 0) && (f < 80)) {
fire("laser");
} else if (f > 80) {
fire("missile");
}
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
if (ltimer > 0) {
ltimer--;
}
if (hp < 1) {
detonate();
}
}
}
Instance of Symbol 54 MovieClip "enemy4" in Frame 3
onClipEvent (load) {
function seekTarget() {
ydif = _root.ship._y - _y;
xdif = _root.ship._x - _x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
moveForward(0.3);
}
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
if (speed > 15) {
speed = 15;
}
if (speed < 1) {
speed = 1;
}
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function rotate(dir, need) {
if (need > 0.5) {
need = 0.5;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function fire(weapon) {
if (weapon == "missile") {
if (ltimer == 0) {
duplicateMovieClip (_root.emis, "missile" + _root.level, _root.level);
clas = eval ("this.las" + cl);
las = eval ("_root.missile" + _root.level);
las._rotation = _rotation + ((cl * 45) - 22);
las._x = clas.x;
las._y = clas.y;
las.active = true;
las.unregistered = true;
_root.level++;
ltimer = 15;
cl++;
if (cl > 8) {
cl = 1;
}
}
}
}
function detonate() {
duplicateMovieClip (_root.edet, "edet" + _root.level, _root.level);
det = eval ("_root.edet" + _root.level);
det._x = this._x;
det._y = this._y;
det._alpha = 100;
det.active = true;
det.gotoAndPlay(1);
blank = _root.blank;
_root.enemies[anum] = blank;
blank = _root.blank;
_root.gob[inum] = blank;
_root.level++;
exp.start();
ranp = random(3) + 1;
i = 0;
while (i < rp) {
ranp = random(3) + 1;
_root.spawnPowerup(_x, _y, ranp);
i++;
}
_root.score = _root.score + 1200;
_root.level++;
this.removeMovieClip();
}
unregistered = true;
hp = 65;
this.getBounds(_root);
ltimer = 0;
ranp = 0;
exp = new Sound();
exp.attachSound("_explosion");
cl = 1;
rp = 4;
inum = 0;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
anum = _root.enemies.length;
_root.enemies[_root.enemies.length] = this;
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
seekTarget();
fire("missile");
if (this._y < -21) {
this._y = 500;
} else if (this._y > 501) {
this._y = -20;
}
if (this._x < -21) {
this._x = 660;
} else if (this._x > 661) {
this._x = -20;
}
if (ltimer > 0) {
ltimer--;
}
if (hp < 1) {
detonate();
}
}
}
Instance of Symbol 181 MovieClip "enemy5" in Frame 3
onClipEvent (load) {
function seekTarget() {
ydif = sdest[1] - _y;
xdif = sdest[0] - _x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
crot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
if (crot < 0) {
xrot = 0 + (360 - Math.abs(crot));
} else {
xrot = crot;
}
brot = 0;
zrot = xrot - nrot;
if (zrot < 0) {
zrot = zrot + 360;
}
if (zrot <= 180) {
rotate("left", Math.abs(zrot - brot));
} else if (zrot > 180) {
rotate("right", Math.abs(zrot - brot));
}
if (nrot > 180) {
rot = -180 + (nrot - 180);
} else {
rot = nrot;
}
moveForward(0.3);
}
function moveForward(speed) {
rot = this._rotation;
if (rot < 0) {
nrot = 0 + (360 - Math.abs(rot));
} else {
nrot = rot;
}
nrot = nrot * (Math.PI/180);
rot = this._rotation;
xmove = Math.sin(nrot) * speed;
ymove = Math.cos(nrot) * speed;
this._x = this._x + xmove;
this._y = this._y - ymove;
}
function rotate(dir, need) {
if (need > 0.5) {
need = 0.5;
}
if (dir == "left") {
this._rotation = this._rotation - need;
} else if (dir == "right") {
this._rotation = this._rotation + need;
}
}
function fire() {
if (ltimer == 0) {
i = 0;
while (i < 8) {
w = random(2) + 1;
if (w == 1) {
weapon = "laser";
} else if (w == 2) {
weapon = "missile";
}
clas = eval ("this.las" + (i + 1));
_root.testtext.text = "this.las" + (i + 1);
ydif = _root.ship._y - clas.y;
xdif = _root.ship._x - clas.x;
dist = Math.sqrt((ydif * ydif) + (xdif * xdif));
degcon = 57.2957795130823;
rad = Math.asin(ydif / dist);
rot = (rad * degcon) + 90;
if (xdif < 0) {
rot = 360 - rot;
}
if (weapon == "laser") {
duplicateMovieClip (_root.elaser, "elaser" + _root.level, _root.level);
las = eval ("_root.elaser" + _root.level);
las._x = clas.x;
las._y = clas.y;
las.active = true;
las.unregistered = true;
las._rotation = rot;
_root.level++;
} else if (weapon == "missile") {
duplicateMovieClip (_root.emis, "missile" + _root.level, _root.level);
las = eval ("_root.missile" + _root.level);
las._rotation = rot;
las._x = clas.x;
las._y = clas.y;
las.active = true;
las.unregistered = true;
_root.level++;
}
i++;
}
ltimer = 60;
}
}
function detonate() {
duplicateMovieClip (_root.edet, "edet" + _root.level, _root.level);
det = eval ("_root.edet" + _root.level);
det._x = this._x;
det._y = this._y;
det._alpha = 100;
det._xscale = 500;
det._yscale = 500;
det.active = true;
det.gotoAndPlay(1);
blank = _root.blank;
_root.enemies[anum] = blank;
blank = _root.blank;
_root.gob[inum] = blank;
_root.level++;
exp.start();
i = 0;
while (i < rp) {
ranp = random(3) + 1;
_root.spawnPowerup(_x, _y, ranp);
i++;
}
_root.score = _root.score + 5000;
_root.level++;
this.removeMovieClip();
}
unregistered = true;
hp = 300;
this.getBounds(_root);
ltimer = 0;
ranp = 0;
exp = new Sound();
exp.attachSound("_explosion");
rp = 12;
sstart = new Array(_x, _y);
sdest = new Array();
cl = 1;
nodest = true;
inum = 0;
}
onClipEvent (enterFrame) {
if (active) {
if (unregistered) {
anum = _root.enemies.length;
_root.enemies[_root.enemies.length] = this;
inum = _root.gob.length;
_root.gob[_root.gob.length] = this;
unregistered = false;
}
if (nodest) {
pos = new Array();
pos[0] = new Array(-10, -10, 135);
pos[1] = new Array(650, -10, 225);
pos[2] = new Array(-10, 490, 45);
pos[3] = new Array(650, 490, 315);
pos[4] = new Array(320, -10, 180);
pos[5] = new Array(320, 490, 0);
pos[6] = new Array(-10, 240, 90);
pos[7] = new Array(650, 240, 270);
sdest = pos[random(8)];
nodest = false;
}
moveForward(1);
f = Math.random() * 100;
fire();
if (this._y < -51) {
this.removeMovieClip();
} else if (this._y > 531) {
this.removeMovieClip();
} else if (this._x < -51) {
this.removeMovieClip();
} else if (this._x > 691) {
this.removeMovieClip();
}
if (ltimer > 0) {
ltimer--;
}
if (hp < 1) {
detonate();
}
}
}
Instance of Symbol 183 MovieClip "blank" in Frame 3
onClipEvent (load) {
anum = 100;
}
Symbol 21 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 1
_root.stop();
l = _root.getBytesLoaded();
t = _root.getBytesTotal();
p = (l / t) * 100;
bar._xscale = p;
if (p > 98) {
_root.plb.gotoAndStop(2);
}
Symbol 28 MovieClip Frame 2
gotoAndPlay (1);
Symbol 35 Button
on (release) {
getURL ("http://www.xenoverse.net", _blank);
}
Instance of Symbol 49 MovieClip "las1" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las2" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las1" in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las2" in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las1" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las2" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las3" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las4" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las5" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las6" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las7" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las8" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Symbol 61 Button
on (release) {
_root.gotoAndStop(3);
}
Instance of Symbol 65 MovieClip "lflame" in Symbol 68 MovieClip Frame 1
onClipEvent (enterFrame) {
if (thrust) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 65 MovieClip "rflame" in Symbol 68 MovieClip Frame 1
onClipEvent (enterFrame) {
if (thrust) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 49 MovieClip "las1" in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las2" in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 8
this.removeMovieClip();
Symbol 98 MovieClip Frame 11
this.removeMovieClip();
Instance of Symbol 108 MovieClip "sbar" in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.ship.sheild;
}
Instance of Symbol 108 MovieClip "ebar" in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.ship.energy;
}
Instance of Symbol 150 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round(_root.ship.missile) + 1);
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 10
this.removeMovieClip();
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 40;
}
Instance of Symbol 49 MovieClip "las1" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las2" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las3" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las4" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las5" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las6" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las7" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 49 MovieClip "las8" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}