Frame 1
stop();
levelnum = 1;
Instance of Symbol 194 MovieClip in Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_visible = true;
}
}
Instance of Symbol 195 MovieClip in Frame 1
onClipEvent (enterFrame) {
_width = ((Math.round(getBytesLoaded()) / Math.round(getBytesLoaded())) * 300);
}
Instance of Symbol 200 MovieClip in Frame 1
onClipEvent (load) {
var blur = (new flash.filters.BlurFilter(10, 0, 2));
time = 0;
}
onClipEvent (enterFrame) {
if (time == 10) {
if (random(2)) {
blur.blurX = random(10);
this.filters = [blur];
}
time = 0;
} else {
blur.blurX = 0;
this.filters = [blur];
}
time++;
}
Instance of Symbol 201 MovieClip "cheatholder" in Frame 1
onClipEvent (load) {
godmode = false;
}
onClipEvent (enterFrame) {
if (_root.CHEATS.text == "footwear") {
godmode = true;
}
}
Frame 2
stop();
PShotParticles = true;
point = 0;
ship.levnum = 1;
PowerupChance = 50;
Instance of Symbol 228 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = (_x-1);
if (_x <= -3225) {
_x = 550;
}
}
Instance of Symbol 229 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 14) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 13) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 22 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 10) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 235 MovieClip "ShieldBar" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 237 MovieClip "ShieldBar2" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 239 MovieClip "ShieldBar3" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "ShieldBar4" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 9 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 9) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 12 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 6) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 7) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 12) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 22 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 5) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 22 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 8) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 11) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 175 MovieClip [BossBar] "BossBar" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 253 MovieClip "Level1EndScore" in Frame 2
onClipEvent (load) {
_visible = false;
}
Frame 3
stop();
PShotParticles = true;
point = 0;
PowerupChance = 50;
ship.levnum = 2;
Instance of Symbol 259 MovieClip in Frame 3
onClipEvent (enterFrame) {
_x = (_x-1);
if (_x <= -3225) {
_x = 550;
}
}
Instance of Symbol 264 MovieClip "Level2EndScore" in Frame 3
onClipEvent (load) {
_visible = false;
}
Symbol 2 MovieClip [EnemyMissile] Frame 1
#initclip 61
Object.registerClass("EnemyMissile", EnemyMissile);
#endinitclip
Symbol 5 MovieClip [particleSpawner2] Frame 1
#initclip 30
Object.registerClass("particleSpawner2", particleSpawner2);
#endinitclip
Symbol 6 MovieClip [Missile] Frame 1
#initclip 31
Object.registerClass("Missile", Missile);
#endinitclip
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (load) {
if (random(2) == 1) {
rotationspeed = 5 + random(6);
} else {
rotationspeed = -5 - random(6);
}
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rotationspeed);
}
Instance of Symbol 11 MovieClip in Symbol 12 MovieClip Frame 1
onClipEvent (load) {
rotationspeed = -20 + random(41);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rotationspeed);
}
Symbol 19 MovieClip [EnemyTurret1] Frame 1
#initclip 32
Object.registerClass("EnemyTurret1", EnemyTurret1);
#endinitclip
Instance of Symbol 21 MovieClip in Symbol 22 MovieClip Frame 1
onClipEvent (load) {
if (random(2) == 1) {
rotationspeed = 5 + random(6);
} else {
rotationspeed = -5 - random(6);
}
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rotationspeed);
}
Symbol 27 MovieClip [EnemyShip2] Frame 1
#initclip 33
Object.registerClass("EnemyShip2", EnemyFighterAI2);
#endinitclip
Symbol 28 MovieClip [FighterFastAdvanceThroughScreen] Frame 57
stop();
Symbol 29 MovieClip [FighterAdvanceThroughScreen] Frame 1
#initclip 34
Object.registerClass("FighterAdvanceThroughScreen", EnemyFighterAI2);
#endinitclip
Symbol 29 MovieClip [FighterAdvanceThroughScreen] Frame 63
stop();
Symbol 34 MovieClip [EnemyBomber] Frame 1
#initclip 35
Object.registerClass("EnemyBomber", EnemyBomberAI1);
#endinitclip
Symbol 35 MovieClip [BomberAdvanceAndRetreat] Frame 70
stop();
Symbol 39 MovieClip [EnemyShip] Frame 1
#initclip 36
Object.registerClass("EnemyShip", EnemyFighterAI1);
#endinitclip
Symbol 40 MovieClip [FighterAdvanceAndRetreat] Frame 60
stop();
Symbol 42 MovieClip [particle5] Frame 1
#initclip 37
Object.registerClass("particle5", particle5);
#endinitclip
Symbol 44 MovieClip [particle3] Frame 1
#initclip 38
Object.registerClass("particle3", particle3);
#endinitclip
Symbol 46 MovieClip [particle4] Frame 1
#initclip 39
Object.registerClass("particle4", particle2);
#endinitclip
Symbol 47 MovieClip [particle2] Frame 1
#initclip 40
Object.registerClass("particle2", particle2);
#endinitclip
Symbol 49 MovieClip [particle1] Frame 1
#initclip 41
Object.registerClass("particle1", particle1);
#endinitclip
Symbol 51 MovieClip [ShieldPowerUp] Frame 1
#initclip 42
Object.registerClass("ShieldPowerUp", ShieldPowerUp);
#endinitclip
Symbol 53 MovieClip [HealthPowerUp] Frame 1
#initclip 43
Object.registerClass("HealthPowerUp", HealthPowerUp);
#endinitclip
Symbol 56 MovieClip [DAKKAPowerUp] Frame 1
#initclip 44
Object.registerClass("DAKKAPowerUp", DAKKAPowerUp);
#endinitclip
Instance of Symbol 55 MovieClip in Symbol 56 MovieClip [DAKKAPowerUp] Frame 1
onClipEvent (load) {
firstX = _x;
firstY = _y;
}
onClipEvent (enterFrame) {
_x = ((firstX - 10) + random(21));
_y = ((firstY - 10) + random(21));
}
Symbol 58 MovieClip [FirePowerUp] Frame 1
#initclip 45
Object.registerClass("FirePowerUp", FirePowerUp);
#endinitclip
Symbol 60 MovieClip [particleSpawner3] Frame 1
#initclip 46
Object.registerClass("particleSpawner3", particleSpawner3);
#endinitclip
Symbol 61 MovieClip [HomingMissile] Frame 1
#initclip 47
Object.registerClass("HomingMissile", HomingMissile);
#endinitclip
Symbol 63 MovieClip [PlayerRocket] Frame 1
#initclip 48
Object.registerClass("PlayerRocket", PlayerRocket);
#endinitclip
Symbol 64 MovieClip [EnemyHomingMissile] Frame 1
#initclip 49
Object.registerClass("EnemyHomingMissile", EnemyHomingMissile);
#endinitclip
Symbol 74 MovieClip [Explosion] Frame 10
stop();
unloadMovie (this);
Symbol 75 MovieClip [EnemyShip3] Frame 1
#initclip 50
Object.registerClass("EnemyShip3", EnemyFighterAI3);
#endinitclip
Symbol 76 MovieClip [FighterArcUpFireAndRetreat] Frame 58
unloadMovie (this);
Symbol 77 MovieClip [FighterArcDownFireAndRetreat] Frame 57
Symbol 77 MovieClip [FighterArcDownFireAndRetreat] Frame 58
unloadMovie (this);
Instance of Symbol 79 MovieClip in Symbol 80 MovieClip Frame 1
onClipEvent (load) {
if (random(2) == 1) {
rotationspeed = 5 + random(6);
} else {
rotationspeed = -5 - random(6);
}
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rotationspeed);
}
Instance of Symbol 86 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T3Rot;
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 98 MovieClip [DyingMiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T1Rot;
}
Instance of Symbol 89 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T2Rot;
}
Instance of Symbol 86 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T4Rot;
}
Instance of Symbol 91 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T5Rot;
}
Instance of Symbol 95 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
var explosion = _parent.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
explosion._x = -210 + random(440);
explosion._y = (_y - 90) + random(200);
}
Instance of Symbol 86 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 163
onClipEvent (enterFrame) {
_rotation = _parent.T3Rot;
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 98 MovieClip [DyingMiniBoss1] Frame 163
onClipEvent (enterFrame) {
_rotation = _parent.T1Rot;
}
Instance of Symbol 89 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 163
onClipEvent (enterFrame) {
_rotation = _parent.T2Rot;
}
Instance of Symbol 86 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 163
onClipEvent (enterFrame) {
_rotation = _parent.T4Rot;
}
Instance of Symbol 91 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 163
onClipEvent (enterFrame) {
_rotation = _parent.T5Rot;
}
Instance of Symbol 95 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 163
onClipEvent (enterFrame) {
_visible = false;
var explosion = attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
explosion._x = -210 + random(440);
explosion._y = (_y - 90) + random(200);
}
Instance of Symbol 95 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 216
onClipEvent (enterFrame) {
var explosion = attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
explosion._x = -210 + random(440);
explosion._y = (_y - 90) + random(200);
}
Symbol 98 MovieClip [DyingMiniBoss1] Frame 217
_root.Level1EndScore._visible = true;
this.unloadMovie(this);
Instance of Symbol 18 MovieClip [Turret1] in Symbol 98 MovieClip [DyingMiniBoss1] Frame 217
onClipEvent (enterFrame) {
_rotation = _parent.T1Rot;
}
Instance of Symbol 89 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 217
onClipEvent (enterFrame) {
_rotation = _parent.T2Rot;
}
Instance of Symbol 86 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 217
onClipEvent (enterFrame) {
_rotation = _parent.T4Rot;
}
Instance of Symbol 91 MovieClip in Symbol 98 MovieClip [DyingMiniBoss1] Frame 217
onClipEvent (enterFrame) {
_rotation = _parent.T5Rot;
}
Symbol 101 MovieClip [EnemyHitBox] Frame 1
#initclip 51
Object.registerClass("EnemyHitBox", EnemyHitBox);
#endinitclip
Symbol 102 MovieClip [MiniBoss1] Frame 1
#initclip 52
Object.registerClass("MiniBoss1", MiniBoss1);
#endinitclip
Instance of Symbol 86 MovieClip in Symbol 102 MovieClip [MiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T3Rot;
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 102 MovieClip [MiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T1Rot;
}
Instance of Symbol 89 MovieClip in Symbol 102 MovieClip [MiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T2Rot;
}
Instance of Symbol 86 MovieClip in Symbol 102 MovieClip [MiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T4Rot;
}
Instance of Symbol 91 MovieClip in Symbol 102 MovieClip [MiniBoss1] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.T5Rot;
}
Instance of Symbol 104 MovieClip in Symbol 105 MovieClip Frame 1
onClipEvent (load) {
if (random(2) == 1) {
rotationspeed = 5 + random(6);
} else {
rotationspeed = -5 - random(6);
}
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rotationspeed);
}
Instance of Symbol 107 MovieClip in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
if (random(2) == 1) {
rotationspeed = 5 + random(6);
} else {
rotationspeed = -5 - random(6);
}
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rotationspeed);
}
Symbol 109 MovieClip [EnemyShip4] Frame 1
#initclip 53
Object.registerClass("EnemyShip4", EnemyFighterAI4);
#endinitclip
Symbol 110 MovieClip [FighterFigureEightUp] Frame 61
removeMovieClip(this);
unloadMovie (this);
Symbol 111 MovieClip [DoubleFighterArcUpOrbitRetreat] Frame 61
unloadMovie (this);
Symbol 112 MovieClip [FighterArcDownAdvance] Frame 97
unloadMovie (this);
Symbol 113 MovieClip [FighterArcUpAdvance] Frame 97
unloadMovie (this);
Symbol 114 MovieClip [FighterArcUp] Frame 60
unloadMovie (this);
Symbol 115 MovieClip [FighterArcDown] Frame 60
unloadMovie (this);
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 38
var laser = _root.attachMovie("Boss2Laser", "Boss2Laser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
laser._x = _parent._x - 200;
laser._y = _parent._y;
Symbol 138 MovieClip Frame 80
gotoAndStop (1);
Instance of Symbol 95 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = false;
var explosion = _parent.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
explosion._x = -20 - random(350);
explosion._y = -100 + random(150);
}
Symbol 140 MovieClip [Boss2Dying] Frame 99
_root.Level2EndScore._visible = true;
this.unloadMovie(this);
Symbol 141 MovieClip [Boss2] Frame 1
#initclip 54
Object.registerClass("Boss2", Boss2);
#endinitclip
Instance of Symbol 138 MovieClip "ani" in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (enterFrame) {
if (_parent.laserfire == true) {
_parent.laserfire = false;
play();
}
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
firing = true;
stage1 = true;
stage2 = false;
_rotation = -70;
c = 1;
}
onClipEvent (enterFrame) {
if (firing) {
if (stage1) {
_rotation = (_rotation + 1);
if ((c % 5) == 0) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
}
c++;
if (c >= 40) {
c = 0;
}
if (_rotation >= 30) {
stage1 = false;
c = 0;
}
}
if (!stage1) {
_rotation = (_rotation - 5);
c++;
if (c >= 20) {
c = 1;
_rotation = -70;
stage1 = true;
}
}
}
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
firing = true;
stage1 = true;
stage2 = false;
_rotation = 70;
c = 0;
}
onClipEvent (enterFrame) {
if (firing) {
if (stage1) {
_rotation = (_rotation - 1);
if ((c % 5) == 0) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
}
c++;
if (c >= 40) {
c = 0;
}
if (_rotation <= -30) {
stage1 = false;
c = 0;
}
}
if (!stage1) {
_rotation = (_rotation + 5);
c++;
if (c >= 20) {
c = 0;
_rotation = 70;
stage1 = true;
}
}
}
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
xpos = 0;
ypos = 0;
relx = 0;
rely = 0;
c = 3;
}
onClipEvent (enterFrame) {
xpos = _parent._x + _x;
ypos = _parent._y + _y;
relx = xpos - _root.ship._x;
rely = ypos - _root.ship._y;
if (relx >= 0) {
_rotation = (Math.atan(rely / relx) * 57.2957795130823);
}
if (relx <= 0) {
_rotation = ((Math.atan(rely / relx) * 57.2957795130823) + 180);
}
c++;
if (c >= 10) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
c = 0;
}
}
Instance of Symbol 86 MovieClip in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
xpos = 0;
ypos = 0;
relx = 0;
rely = 0;
c = 0;
}
onClipEvent (enterFrame) {
c++;
if (c >= 60) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation + 5;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation - 5;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation + 10;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation - 10;
c = 0;
}
xpos = _parent._x + _x;
ypos = _parent._y + _y;
relx = xpos - _root.ship._x;
rely = ypos - _root.ship._y;
if (relx >= 0) {
_rotation = (Math.atan(rely / relx) * 57.2957795130823);
}
if (relx <= 0) {
_rotation = ((Math.atan(rely / relx) * 57.2957795130823) + 180);
}
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
xpos = 0;
ypos = 0;
relx = 0;
rely = 0;
c = 3;
}
onClipEvent (enterFrame) {
xpos = _parent._x + _x;
ypos = _parent._y + _y;
relx = xpos - _root.ship._x;
rely = ypos - _root.ship._y;
if (relx >= 0) {
_rotation = (Math.atan(rely / relx) * 57.2957795130823);
}
if (relx <= 0) {
_rotation = ((Math.atan(rely / relx) * 57.2957795130823) + 180);
}
c++;
if (c >= 10) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
c = 0;
}
}
Instance of Symbol 86 MovieClip in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
xpos = 0;
ypos = 0;
relx = 0;
rely = 0;
c = 0;
}
onClipEvent (enterFrame) {
c++;
if (c >= 60) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation + 5;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation - 5;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation + 10;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation - 10;
c = 0;
}
xpos = _parent._x + _x;
ypos = _parent._y + _y;
relx = xpos - _root.ship._x;
rely = ypos - _root.ship._y;
if (relx >= 0) {
_rotation = (Math.atan(rely / relx) * 57.2957795130823);
}
if (relx <= 0) {
_rotation = ((Math.atan(rely / relx) * 57.2957795130823) + 180);
}
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
xpos = 0;
ypos = 0;
relx = 0;
rely = 0;
c = 0;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
c++;
if (c >= 4) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
c = 0;
}
}
Instance of Symbol 86 MovieClip in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
xpos = 0;
ypos = 0;
relx = 0;
rely = 0;
c = 0;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
c++;
if (c >= 10) {
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation + 5;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation - 5;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation + 10;
var missile = _root.attachMovie("EnemyMissile", "EnemyMissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = _parent._x + this._x;
missile._y = _parent._y + this._y;
missile._rotation = this._rotation - 10;
c = 0;
}
}
Instance of Symbol 93 MovieClip in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
var time = 50;
}
onClipEvent (enterFrame) {
time++;
if (time >= 100) {
var missile = _root.attachMovie("EnemyHomingMissile", "EnemyHomingMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = (_parent._x + _x) - 25;
missile._y = _parent._y + _y;
time = 0;
}
}
Instance of Symbol 93 MovieClip in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
var time = 0;
}
onClipEvent (enterFrame) {
time++;
if (time >= 100) {
var missile = _root.attachMovie("EnemyHomingMissile", "EnemyHomingMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missile._x = (_parent._x + _x) - 25;
missile._y = _parent._y + _y;
time = 0;
}
}
Instance of Symbol 18 MovieClip [Turret1] in Symbol 141 MovieClip [Boss2] Frame 1
onClipEvent (load) {
xpos = 0;
ypos = 0;
relx = 0;
rely = 0;
}
onClipEvent (enterFrame) {
xpos = _parent._x + _x;
ypos = _parent._y + _y;
relx = xpos - _root.ship._x;
rely = ypos - _root.ship._y;
if (relx >= 0) {
_rotation = (Math.atan(rely / relx) * 57.2957795130823);
}
if (relx <= 0) {
_rotation = ((Math.atan(rely / relx) * 57.2957795130823) + 180);
}
}
Instance of Symbol 143 MovieClip in Symbol 144 MovieClip [Boss2Laser] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.hitBox)) {
var particle = _root.attachMovie("particle2", "particle2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
particle._x = _root.ship._x;
particle._y = _root.ship._y;
_root.ship.takeDamage();
}
}
Symbol 144 MovieClip [Boss2Laser] Frame 21
removeMovieClip(this);
unloadMovie (this);
Symbol 156 MovieClip [Laser1Up] Frame 1
#initclip 55
Object.registerClass("Laser1Up", PlayerLaser);
#endinitclip
Symbol 156 MovieClip [Laser1Up] Frame 20
unloadMovie (this);
Symbol 164 MovieClip [PlayerLaser] Frame 1
#initclip 56
Object.registerClass("PlayerLaser", PlayerLaser);
#endinitclip
Symbol 164 MovieClip [PlayerLaser] Frame 15
this.unloadMovie(this);
Symbol 166 MovieClip [PlayerBlobShot] Frame 1
#initclip 57
Object.registerClass("PlayerBlobShot", PlayerBlobShot);
#endinitclip
Symbol 170 MovieClip [particleSpawner] Frame 1
#initclip 58
Object.registerClass("particleSpawner", particleSpawner1);
#endinitclip
Symbol 171 MovieClip [Ship2] Frame 1
#initclip 59
Object.registerClass("Ship2", Ship2);
#endinitclip
Instance of Symbol 9 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 6) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 12 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 7) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 8) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 10) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 11) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 12 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 12) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 22 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 13) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 168 MovieClip "hitBox" in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 22 MovieClip in Symbol 171 MovieClip [Ship2] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 9) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 173 MovieClip [Ship] Frame 1
#initclip 60
Object.registerClass("Ship", Ship1);
#endinitclip
Instance of Symbol 9 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 6) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 12 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 7) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 8) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 10) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 11) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 12 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 12) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 22 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 13) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 168 MovieClip "hitBox" in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 22 MovieClip in Symbol 173 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 9) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 189 MovieClip Frame 10
gotoAndPlay (1);
Symbol 193 Button
on (release) {
_root.gotoAndStop(_root.levelnum + 1);
}
Symbol 265 MovieClip [__Packages.particleSpawner2] Frame 0
class particleSpawner2 extends MovieClip
{
var xpos, _parent, _x, ypos, _y, timer;
function particleSpawner2 () {
super();
}
function onEnterFrame() {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
timer--;
if ((timer <= 0) && (_root.PShotParticles)) {
var _local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = xpos;
_local3._y = ypos;
timer = 0;
}
}
}
Symbol 266 MovieClip [__Packages.Missile] Frame 0
class Missile extends MovieClip
{
var speed, _x, _rotation, _y, hitTest, removeMovieClip;
function Missile () {
super();
}
function onLoad() {
speed = 25;
}
function onEnterFrame() {
_x = _x + (Math.cos((_rotation * Math.PI) / 180) * speed);
_y = _y + (Math.sin((_rotation * Math.PI) / 180) * speed);
for (var _local4 in _root.ship.enemies) {
if (hitTest(_root.ship.enemies[_local4])) {
var _local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.ship.enemies[_local4].takeDamage();
}
}
if ((((_x > 600) || (_x < -200)) || (_y > 600)) || (_y < -200)) {
removeMovieClip();
}
}
}
Symbol 267 MovieClip [__Packages.EnemyTurret1] Frame 0
class EnemyTurret1 extends MovieClip
{
var HitPoints, firetime, _x, _y, TurAlign, unloadMovie;
function EnemyTurret1 () {
super();
}
function onLoad() {
_root.ship.enemies.push(this);
HitPoints = 100;
firetime = 15;
time = 0;
}
function onEnterFrame() {
_x = _x - 2;
time++;
if (_x >= _root.ship._x) {
TurAlign._rotation = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
}
if (_x <= _root.ship._x) {
TurAlign._rotation = (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) + 180;
}
if ((time >= 15) && ((time % firetime) == 0)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (_x >= _root.ship._x) {
_local3._rotation = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
}
if (_x <= _root.ship._x) {
_local3._rotation = (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) + 180;
}
}
if ((time >= 15) && ((time % firetime) == 2)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (_x >= _root.ship._x) {
_local3._rotation = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
}
if (_x <= _root.ship._x) {
_local3._rotation = (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) + 180;
}
}
if ((time >= 15) && ((time % firetime) == 4)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (_x >= _root.ship._x) {
_local3._rotation = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
}
if (_x <= _root.ship._x) {
_local3._rotation = (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) + 180;
}
}
if ((time >= 15) && ((time % firetime) == 6)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (_x >= _root.ship._x) {
_local3._rotation = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
}
if (_x <= _root.ship._x) {
_local3._rotation = (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) + 180;
}
}
if ((time >= 15) && ((time % firetime) == 8)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (_x >= _root.ship._x) {
_local3._rotation = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
}
if (_x <= _root.ship._x) {
_local3._rotation = (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) + 180;
}
}
if (_x <= -100) {
unloadMovie();
}
_root.debugEnemyHP.text = HitPoints;
if (_root.ship.hitBox.hitTest(this)) {
takeDamage();
_root.ship.takeDamage();
}
}
function takeDamage() {
HitPoints--;
if (HitPoints <= 0) {
if ((random(_root.PowerupChance) == 2) && (_root.ship.firePower <= 8)) {
var _local4 = _root.attachMovie("firePowerUp", "firePowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
if (random(_root.PowerupChance) == 3) {
var _local4 = _root.attachMovie("HealthPowerUp", "HealthPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
if (random(_root.PowerupChance) == 4) {
var _local4 = _root.attachMovie("ShieldPowerUp", "ShieldPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
if (random(_root.PowerupChance) == 5) {
var _local4 = _root.attachMovie("DAKKAPowerUp", "DAKKAPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_root.point = _root.point + 500;
_root.ship.gainKill();
unloadMovie();
unloadMovie(this);
}
}
var time = 0;
}
Symbol 268 MovieClip [__Packages.EnemyFighterAI2] Frame 0
class EnemyFighterAI2 extends MovieClip
{
var HitPoints, time, firetime, _x, _parent, _y, unloadMovie;
function EnemyFighterAI2 () {
super();
}
function onLoad() {
_root.ship.enemies.push(this);
HitPoints = 5;
time = 0;
firetime = random(20);
}
function onEnterFrame() {
time++;
if ((time == firetime) && (HitPoints >= 1)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = _parent._y + _y;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
}
_root.debugEnemyHP.text = HitPoints;
if (_root.ship.hitBox.hitTest(this)) {
takeDamage();
_root.ship.takeDamage();
}
}
function takeDamage() {
HitPoints--;
if (HitPoints <= 0) {
if ((random(_root.PowerupChance) == 2) && (_root.ship.firePower <= 8)) {
var _local5 = _root.attachMovie("firePowerUp", "firePowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 3) {
var _local5 = _root.attachMovie("HealthPowerUp", "HealthPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 4) {
var _local5 = _root.attachMovie("ShieldPowerUp", "ShieldPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 5) {
var _local5 = _root.attachMovie("DAKKAPowerUp", "DAKKAPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _parent._x + _x;
_local4._y = _parent._y + _y;
_root.point = _root.point + 100;
var _local3 = 0;
while (_local3 <= _root.ship.enemies.length) {
if (_root.ship.enemies[_local3] == this) {
_root.ship.enemies.splice(_local3, 1);
}
_local3++;
}
_root.ship.gainKill();
_parent.unloadMovie(_parent);
unloadMovie(this);
}
}
}
Symbol 269 MovieClip [__Packages.EnemyBomberAI1] Frame 0
class EnemyBomberAI1 extends MovieClip
{
var HitPoints, time, _x, _parent, _y, unloadMovie;
function EnemyBomberAI1 () {
super();
}
function onLoad() {
_root.ship.enemies.push(this);
HitPoints = 5;
time = 0;
}
function onEnterFrame() {
time++;
if (time == 30) {
var _local3 = _root.attachMovie("EnemyHomingMissile", "EnemyHomingMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = _parent._y + _y;
}
if (_root.ship.hitBox.hitTest(this)) {
takeDamage();
_root.ship.takeDamage();
}
}
function takeDamage() {
HitPoints--;
if (HitPoints <= 0) {
if ((random(_root.PowerupChance) == 2) && (_root.ship.firePower <= 8)) {
var _local5 = _root.attachMovie("firePowerUp", "firePowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance / 2) == 3) {
var _local5 = _root.attachMovie("HealthPowerUp", "HealthPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 4) {
var _local5 = _root.attachMovie("ShieldPowerUp", "ShieldPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 5) {
var _local5 = _root.attachMovie("DAKKAPowerUp", "DAKKAPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
_root.point = _root.point + 100;
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _parent._x + _x;
_local4._y = _parent._y + _y;
var _local3 = 0;
while (_local3 <= _root.ship.enemies.length) {
if (_root.ship.enemies[_local3] == this) {
_root.ship.enemies.splice(_local3, 1);
}
_local3++;
}
_root.ship.gainKill();
_parent.unloadMovie(_parent);
unloadMovie(this);
}
}
}
Symbol 270 MovieClip [__Packages.EnemyFighterAI1] Frame 0
class EnemyFighterAI1 extends MovieClip
{
var HitPoints, time, _x, _parent, _y, unloadMovie;
function EnemyFighterAI1 () {
super();
}
function onLoad() {
_root.ship.enemies.push(this);
HitPoints = 5;
time = 0;
}
function onEnterFrame() {
time++;
_root.debugEnemyHP.text = HitPoints;
if ((time == 30) && (HitPoints >= 1)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = _parent._y + _y;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
}
if (_root.ship.hitBox.hitTest(this)) {
takeDamage();
_root.ship.takeDamage();
}
}
function takeDamage() {
HitPoints--;
if (HitPoints <= 0) {
if ((random(_root.PowerupChance) == 2) && (_root.ship.firePower <= 8)) {
var _local5 = _root.attachMovie("firePowerUp", "firePowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 3) {
var _local5 = _root.attachMovie("HealthPowerUp", "HealthPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 4) {
var _local5 = _root.attachMovie("ShieldPowerUp", "ShieldPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 5) {
var _local5 = _root.attachMovie("DAKKAPowerUp", "DAKKAPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _parent._x + _x;
_local4._y = _parent._y + _y;
_root.point = _root.point + 100;
var _local3 = 0;
while (_local3 <= _root.ship.enemies.length) {
if (_root.ship.enemies[_local3] == this) {
_root.ship.enemies.splice(_local3, 1);
}
_local3++;
}
_root.ship.gainKill();
_parent.unloadMovie(_parent);
unloadMovie(this);
}
}
}
Symbol 271 MovieClip [__Packages.particle5] Frame 0
class particle5 extends MovieClip
{
var time, removeMovieClip, _xscale, _yscale;
function particle5 () {
super();
}
function onLoad() {
time = 100;
}
function onEnterFrame() {
if (time <= 0) {
removeMovieClip();
}
_xscale = time;
_yscale = time;
time = time - 5;
}
}
Symbol 272 MovieClip [__Packages.particle3] Frame 0
class particle3 extends MovieClip
{
var xdir, ydir, time, removeMovieClip, _x, _y, _xscale, _yscale;
function particle3 () {
super();
}
function onLoad() {
xdir = random(5);
ydir = -2 + (Math.random() * 4);
time = 100;
}
function onEnterFrame() {
if (time <= 0) {
removeMovieClip();
}
_x = _x + xdir;
_y = _y + ydir;
_xscale = time;
_yscale = time;
time = time - 10;
}
}
Symbol 273 MovieClip [__Packages.particle2] Frame 0
class particle2 extends MovieClip
{
var xdir, ydir, time, removeMovieClip, _x, _y, _xscale, _yscale;
function particle2 () {
super();
}
function onLoad() {
xdir = -10 + (Math.random() * 20);
ydir = -10 + (Math.random() * 20);
time = 50;
}
function onEnterFrame() {
if (time <= 0) {
removeMovieClip();
}
_x = _x + xdir;
_y = _y + ydir;
_xscale = time;
_yscale = time;
time = time - 16.6666666666667;
}
}
Symbol 274 MovieClip [__Packages.particle1] Frame 0
class particle1 extends MovieClip
{
var xdir, ydir, time, removeMovieClip, _x, _y, _xscale, _yscale;
function particle1 () {
super();
}
function onLoad() {
xdir = (Math.random() * -15) - 5;
ydir = (-0.5 + Math.random()) * 5;
time = 50;
}
function onEnterFrame() {
if (time <= 0) {
removeMovieClip();
}
_x = _x + xdir;
_y = _y + ydir;
_xscale = time;
_yscale = time;
time = time - 10;
}
}
Symbol 275 MovieClip [__Packages.ShieldPowerUp] Frame 0
class ShieldPowerUp extends MovieClip
{
var _x, unloadMovie;
function ShieldPowerUp () {
super();
}
function onEnterFrame() {
_x = _x - 5;
if (_root.ship.hitTest(this)) {
_root.ship.shieldingTime = _root.ship.shieldingTime + 100;
unloadMovie();
}
}
var shielding = false;
}
Symbol 276 MovieClip [__Packages.HealthPowerUp] Frame 0
class HealthPowerUp extends MovieClip
{
var _x, unloadMovie;
function HealthPowerUp () {
super();
}
function onEnterFrame() {
_x = _x - 5;
if (_x <= -100) {
unloadMovie(this);
}
if (_root.ship.hitTest(this)) {
_root.ship.HP = 40;
unloadMovie(this);
}
}
}
Symbol 277 MovieClip [__Packages.DAKKAPowerUp] Frame 0
class DAKKAPowerUp extends MovieClip
{
var _x, unloadMovie;
function DAKKAPowerUp () {
super();
}
function onEnterFrame() {
_x = _x - 5;
if (_x <= -100) {
unloadMovie(this);
}
if (_root.ship.hitTest(this)) {
_root.ship.Dakka = true;
unloadMovie(this);
}
}
}
Symbol 278 MovieClip [__Packages.FirePowerUp] Frame 0
class FirePowerUp extends MovieClip
{
var _x, unloadMovie;
function FirePowerUp () {
super();
}
function onEnterFrame() {
_x = _x - 5;
if (_x <= -100) {
unloadMovie(this);
}
if (_root.ship.hitTest(this)) {
_root.ship.firePower++;
_root.ship.FPRedTimer = 50;
unloadMovie(this);
}
}
}
Symbol 279 MovieClip [__Packages.particleSpawner3] Frame 0
class particleSpawner3 extends MovieClip
{
var timer, attachMovie;
function particleSpawner3 () {
super();
}
function onEnterFrame() {
timer--;
var _local3 = attachMovie("particle3", "particle3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = random(5);
_local3._y = 0;
_local3._alpha = 25;
_local3 = attachMovie("particle3", "particle3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = random(5);
_local3._y = 0;
_local3._alpha = 25;
}
}
Symbol 280 MovieClip [__Packages.HomingMissile] Frame 0
class HomingMissile extends MovieClip
{
var _rotation, _x, unloadMovie, eneX, eneY, _y, enemy;
function HomingMissile () {
super();
}
function onLoad() {
_rotation = 180;
}
function onEnterFrame() {
if (_x >= 700) {
unloadMovie();
}
prvdist = 1000000 /* 0x0F4240 */;
for (var _local3 in _root.ship.enemies) {
eneX = _root.ship.enemies[_local3]._parent._x + _root.ship.enemies[_local3]._x;
eneY = _root.ship.enemies[_local3]._parent._x + _root.ship.enemies[_local3]._y;
if (Math.sqrt(eval (eneX - _x)(eneX - _x) + eval (eneY - _y)(eneY - _y)) < prvdist) {
prvdist = Math.sqrt(eval (eneX - _x)(eneX - _x) + eval (eneY - _y)(eneY - _y));
enemy = _root.ship.enemies[_local3];
}
}
eneX = enemy._parent._x + _x;
eneY = enemy._parent._y + _y;
_root.cross._x = eneX;
_root.cross._y = eneY;
}
var PrvRot = 0;
var speed = -10;
var prvdist = 1000000;
}
Symbol 281 MovieClip [__Packages.PlayerRocket] Frame 0
class PlayerRocket extends MovieClip
{
var speed, _x, _y, pathtime, _rotation, rotpath, hitTest, removeMovieClip;
function PlayerRocket () {
super();
}
function onLoad() {
speed = 10;
}
function onEnterFrame() {
var _local5 = _root.attachMovie("particle5", "particle5" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _x;
_local5._y = _y;
time++;
if (time <= pathtime) {
_rotation = _rotation + rotpath;
}
_x = _x + (Math.cos((_rotation * Math.PI) / 180) * speed);
_y = _y + (Math.sin((_rotation * Math.PI) / 180) * speed);
for (var _local4 in _root.ship.enemies) {
if (hitTest(_root.ship.enemies[_local4])) {
var _local3 = _root.attachMovie("explosion", "explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.ship.enemies[_local4].takeDamage();
_root.ship.enemies[_local4].takeDamage();
_root.ship.enemies[_local4].takeDamage();
_root.ship.enemies[_local4].takeDamage();
_root.ship.enemies[_local4].takeDamage();
}
}
if ((((_x > 600) || (_x < -200)) || (_y > 600)) || (_y < -200)) {
removeMovieClip();
}
}
var time = 0;
}
Symbol 282 MovieClip [__Packages.EnemyHomingMissile] Frame 0
class EnemyHomingMissile extends MovieClip
{
var _x, _y, unloadMovie, _rotation;
function EnemyHomingMissile () {
super();
}
function onEnterFrame() {
time++;
var _local3 = _root.attachMovie("particle5", "particle5" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
if (time >= 200) {
unloadMovie(this);
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
}
if (_root.ship.hitBox.hitTest(this)) {
unloadMovie(this);
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
_root.ship.takeDamage();
_root.ship.takeDamage();
_root.ship.takeDamage();
_root.ship.takeDamage();
_root.ship.takeDamage();
}
_x = _x + (Math.cos((_rotation * Math.PI) / 180) * speed);
_y = _y + (Math.sin((_rotation * Math.PI) / 180) * speed);
if (_x >= _root.ship._x) {
if (_rotation < (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823)) {
_rotation = _rotation + 5;
}
if (_rotation > (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823)) {
_rotation = _rotation - 5;
}
}
if (_x <= _root.ship._x) {
if (_rotation < (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823)) {
_rotation = _rotation - 5;
}
if (_rotation > (Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823)) {
_rotation = _rotation + 5;
}
}
}
var PrvRot = 0;
var speed = -10;
var time = 0;
}
Symbol 283 MovieClip [__Packages.EnemyFighterAI3] Frame 0
class EnemyFighterAI3 extends MovieClip
{
var HitPoints, time, firetime, _x, _parent, _y, unloadMovie;
function EnemyFighterAI3 () {
super();
}
function onLoad() {
_root.ship.enemies.push(this);
HitPoints = 5;
time = 0;
firetime = 25;
}
function onEnterFrame() {
time++;
if ((time == firetime) && (HitPoints >= 1)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = _parent._y + _y;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = (_parent._y + _y) + 5;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = (_parent._y + _y) - 5;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
}
if ((time == (firetime + 5)) && (HitPoints >= 1)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = _parent._y + _y;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = (_parent._y + _y) + 5;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = (_parent._y + _y) - 5;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
}
if ((time == (firetime + 10)) && (HitPoints >= 1)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = _parent._y + _y;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = (_parent._y + _y) + 5;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
_local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = (_parent._y + _y) - 5;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
}
_root.debugEnemyHP.text = HitPoints;
if (_root.ship.hitBox.hitTest(this)) {
takeDamage();
_root.ship.takeDamage();
}
}
function takeDamage() {
HitPoints--;
if (HitPoints <= 0) {
if ((random(_root.PowerupChance) == 2) && (_root.ship.firePower <= 8)) {
var _local5 = _root.attachMovie("firePowerUp", "firePowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 3) {
var _local5 = _root.attachMovie("HealthPowerUp", "HealthPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 4) {
var _local5 = _root.attachMovie("ShieldPowerUp", "ShieldPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 5) {
var _local5 = _root.attachMovie("DAKKAPowerUp", "DAKKAPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _parent._x + _x;
_local4._y = _parent._y + _y;
_root.point = _root.point + 500;
var _local3 = 0;
while (_local3 <= _root.ship.enemies.length) {
if (_root.ship.enemies[_local3] == this) {
_root.ship.enemies.splice(_local3, 1);
}
_local3++;
}
_root.ship.gainKill();
_parent.unloadMovie(_parent);
unloadMovie(this);
}
}
}
Symbol 284 MovieClip [__Packages.EnemyHitBox] Frame 0
class EnemyHitBox extends MovieClip
{
var _alpha, _parent;
function EnemyHitBox () {
super();
}
function onLoad() {
_root.ship.enemies.push(this);
_alpha = 0;
}
function onEnterFrame() {
if (_root.ship.hitTest(this)) {
_root.ship.takeDamage();
takeDamage();
}
}
function takeDamage() {
_parent.takeDamage();
}
}
Symbol 285 MovieClip [__Packages.MiniBoss1] Frame 0
class MiniBoss1 extends MovieClip
{
var time, _x, T1Rot, _y, unloadMovie;
function MiniBoss1 () {
super();
}
function onLoad() {
time = 0;
_root.BossBar._visible = true;
}
function onEnterFrame() {
if (startup == true) {
if (_x > 350) {
_x--;
}
if (_x > 400) {
_x = _x - 2;
}
if (_x > 500) {
_x = _x - 5;
}
if (_x > 700) {
_x = _x - 10;
}
if (_x <= 350) {
startup = false;
}
}
time++;
_root.BossBar._width = (HitPoints / 20) - ((HitPoints / 20) % 1);
if ((_x + 175) >= _root.ship._x) {
T1Rot = Math.atan(((_y - 75) - _root.ship._y) / ((_x + 175) - _root.ship._x)) * 57.2957795130823;
if (T1FD >= 40) {
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 175;
_local4._y = _y - 75;
_local4._rotation = T1Rot;
T1FD = 0;
}
} else if ((_x + 175) <= _root.ship._x) {
T1Rot = (Math.atan(((_y - 75) - _root.ship._y) / ((_x + 175) - _root.ship._x)) * 57.2957795130823) + 180;
if (T1FD >= 40) {
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 175;
_local4._y = _y - 75;
_local4._rotation = T1Rot;
T1FD = 0;
}
}
T1FD++;
if ((time % 200) == 0) {
T2FireState = 1;
T2Rot = -30;
}
if (T2FireState == 1) {
T2Rot++;
if (((time % 3) == 0) && ((T2Rot % 2) == 0)) {
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 100;
_local4._y = _y - 25;
_local4._rotation = T2Rot;
}
if (T2Rot >= 30) {
T2Rot = 0;
T2FireState = 0;
}
}
if (((time - 100) % 200) == 0) {
if (((_x + 75) >= _root.ship._x) && (_root.ship._y <= (_y - 70))) {
T3Rot = Math.atan(((_y - 70) - _root.ship._y) / ((_x + 70) - _root.ship._x)) * 57.2957795130823;
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot + 10;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot - 10;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot + 20;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot - 20;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot + 30;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot - 30;
} else {
T3Rot = 0;
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot + 10;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot - 10;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot + 20;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot - 20;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot + 30;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 75;
_local4._y = _y - 70;
_local4._rotation = T3Rot - 30;
}
}
if (((time - 150) % 200) == 0) {
if ((_x + 40) >= _root.ship._x) {
T4Rot = Math.atan(((_y + 60) - _root.ship._y) / ((_x + 40) - _root.ship._x)) * 57.2957795130823;
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 60;
_local4._rotation = T4Rot;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 60;
_local4._rotation = T4Rot + 10;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 60;
_local4._rotation = T4Rot - 10;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 60;
_local4._rotation = T4Rot + 20;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 60;
_local4._rotation = T4Rot - 20;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 60;
_local4._rotation = T4Rot + 30;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x + 40;
_local4._y = _y + 60;
_local4._rotation = T4Rot - 30;
}
}
if (((time % 50) == 0) && (T5State == 0)) {
T5State = 1;
T5Count = 0;
}
if (T5State == 1) {
if ((_x - 50) >= _root.ship._x) {
T5Rot = Math.atan(((_y + 25) - _root.ship._y) / ((_x - 50) - _root.ship._x)) * 57.2957795130823;
} else if ((_x + 175) <= _root.ship._x) {
T5Rot = (Math.atan(((_y + 25) - _root.ship._y) / ((_x - 50) - _root.ship._x)) * 57.2957795130823) + 180;
}
var _local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = (_x - 50) + (Math.cos(Math.atan(((_y + 25) - _root.ship._y) / ((_x - 50) - _root.ship._x))) * 10);
_local4._y = (_y + 25) + (Math.sin(Math.atan(((_y + 25) - _root.ship._y) / ((_x - 50) - _root.ship._x))) * 10);
_local4._rotation = T5Rot;
_local4 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = (_x - 50) + (Math.cos(Math.atan(((_y + 25) - _root.ship._y) / ((_x - 50) - _root.ship._x))) * -10);
_local4._y = (_y + 25) + (Math.sin(Math.atan(((_y + 25) - _root.ship._y) / ((_x - 50) - _root.ship._x))) * -10);
_local4._rotation = T5Rot;
T5Count++;
if (T5Count >= 5) {
T5State = 0;
}
}
if ((time % 300) == 0) {
var _local4 = _root.attachMovie("EnemyHomingMissile", "EnemyHomingMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x - 100;
_local4._y = _y - 25;
}
if (HitPoints <= 0) {
var _local3 = _root.attachMovie("DyingMiniBoss1", "DyingMiniBoss1", _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
unloadMovie(this);
}
}
function takeDamage() {
HitPoints--;
PU++;
if (PU >= 30) {
_root.ship.gainKill();
PU = 0;
}
}
var HitPoints = 4000;
var PU = 0;
var T1FD = 0;
var T2Rot = 0;
var T2FD = 0;
var T2Firing = false;
var T2FireState = 0;
var T3Rot = 0;
var T4Rot = 0;
var T5Rot = 0;
var T5Count = 0;
var T5State = 0;
var startup = true;
}
Symbol 286 MovieClip [__Packages.EnemyFighterAI4] Frame 0
class EnemyFighterAI4 extends MovieClip
{
var HitPoints, time, _x, _parent, _y, unloadMovie;
function EnemyFighterAI4 () {
super();
}
function onLoad() {
_root.ship.enemies.push(this);
HitPoints = 5;
time = 0;
}
function onEnterFrame() {
time++;
_root.debugEnemyHP.text = HitPoints;
if (((time >= 25) && (time <= 35)) && (HitPoints >= 1)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_parent._x + _x) - 13.5;
_local3._y = _parent._y + _y;
_local3._rotation = Math.atan(((_parent._y + _y) - _root.ship._y) / ((_parent._x + _x) - _root.ship._x)) * 57.2957795130823;
}
if (_root.ship.hitBox.hitTest(this)) {
takeDamage();
_root.ship.takeDamage();
}
}
function takeDamage() {
HitPoints--;
if (HitPoints <= 0) {
if ((random(_root.PowerupChance) == 2) && (_root.ship.firePower <= 8)) {
var _local5 = _root.attachMovie("firePowerUp", "firePowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 3) {
var _local5 = _root.attachMovie("HealthPowerUp", "HealthPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 4) {
var _local5 = _root.attachMovie("ShieldPowerUp", "ShieldPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
if (random(_root.PowerupChance) == 5) {
var _local5 = _root.attachMovie("DAKKAPowerUp", "DAKKAPowerUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _parent._x + _x;
_local5._y = _parent._y + _y;
}
var _local4 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _parent._x + _x;
_local4._y = _parent._y + _y;
_root.point = _root.point + 100;
var _local3 = 0;
while (_local3 <= _root.ship.enemies.length) {
if (_root.ship.enemies[_local3] == this) {
_root.ship.enemies.splice(_local3, 1);
}
_local3++;
}
_root.ship.gainKill();
_parent.unloadMovie(_parent);
unloadMovie(this);
}
}
}
Symbol 287 MovieClip [__Packages.Boss2] Frame 0
class Boss2 extends MovieClip
{
var _x, _y, unloadMovie;
function Boss2 () {
super();
}
function onLoad() {
_root.BossBar._visible = true;
}
function onEnterFrame() {
time++;
if (startup == true) {
if (_x > 450) {
_x--;
}
if (_x > 500) {
_x = _x - 2;
}
if (_x > 600) {
_x = _x - 5;
}
if (_x > 800) {
_x = _x - 10;
}
if (_x <= 450) {
startup = false;
}
}
_root.BossBar._width = (HitPoints / 20) - ((HitPoints / 20) % 1);
if (time >= 400) {
time = 0;
laserfire = true;
}
if (HitPoints <= 0) {
var _local3 = _root.attachMovie("Boss2Dying", "Boss2Dying", _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
unloadMovie();
}
}
function takeDamage() {
HitPoints--;
PU++;
if (PU >= 30) {
_root.ship.gainKill();
PU = 0;
}
}
var HitPoints = 4000;
var time = 0;
var startup = true;
var laserfire = false;
var PU = 0;
}
Symbol 288 MovieClip [__Packages.PlayerLaser] Frame 0
class PlayerLaser extends MovieClip
{
var hitTest;
function PlayerLaser () {
super();
}
function onEnterFrame() {
for (var _local4 in _root.ship.enemies) {
if (hitTest(_root.ship.enemies[_local4])) {
var _local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship.enemies[_local4]._x;
_local3._y = _root.ship.enemies[_local4]._y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ship.enemies[_local4]._x;
_local3._y = _root.ship.enemies[_local4]._y;
_root.ship.enemies[_local4].takeDamage();
}
}
}
}
Symbol 289 MovieClip [__Packages.PlayerBlobShot] Frame 0
class PlayerBlobShot extends MovieClip
{
var speed, _x, _rotation, _y, hitTest, removeMovieClip;
function PlayerBlobShot () {
super();
}
function onLoad() {
speed = 15;
}
function onEnterFrame() {
_x = _x + (Math.cos((_rotation * Math.PI) / 180) * speed);
_y = _y + (Math.sin((_rotation * Math.PI) / 180) * speed);
for (var _local4 in _root.ship.enemies) {
if (hitTest(_root.ship.enemies[_local4])) {
var _local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle4", "particle4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
removeMovieClip();
_root.ship.enemies[_local4].takeDamage();
_root.ship.enemies[_local4].takeDamage();
_root.ship.enemies[_local4].takeDamage();
_root.ship.enemies[_local4].takeDamage();
}
}
if ((((_x > 600) || (_x < -200)) || (_y > 600)) || (_y < -200)) {
removeMovieClip();
}
}
}
Symbol 290 MovieClip [__Packages.particleSpawner1] Frame 0
class particleSpawner1 extends MovieClip
{
var xpos, _parent, _x, ypos, _y, timer;
function particleSpawner1 () {
super();
}
function onEnterFrame() {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
timer--;
var _local3 = _root.attachMovie("particle1", "particle1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = xpos - random(10);
_local3._y = (ypos + random(10)) - random(10);
_local3._alpha = 25;
_local3 = _root.attachMovie("particle1", "particle1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = xpos - random(10);
_local3._y = (ypos + random(10)) - random(10);
_local3._alpha = 25;
}
}
Symbol 291 MovieClip [__Packages.Ship2] Frame 0
class Ship2 extends MovieClip
{
var velocity, shootLimiter, shootLimiter2, firePower, enemies, time, HP, firingAngle, PRVFPL, _width, _x, _height, _y, firingAngle2, unloadMovie, tiB, rgea, foCe;
function Ship2 () {
super();
}
function onLoad() {
_root.ship.newGame();
}
function newGame() {
if (_root.cheatholder.godmode) {
godmode = true;
}
velocity = 15;
shootLimiter = 0;
shootLimiter2 = 0;
firePower = 5;
enemies = [];
time = 0;
HP = 40;
firingAngle = 20;
firingAngle = -20;
}
function onEnterFrame() {
_root.timedebug = time;
var _local3 = 0;
while (_local3 <= enemies.length) {
if (enemies[_local3]._visible == undefined) {
enemies.splice(_local3, 1);
}
_local3++;
}
if (Dakka) {
if (DakkaTimer <= 0) {
PRVFPL = firePower;
}
DakkaTimer = 100;
Dakka = false;
}
if (DakkaTimer >= 1) {
firePower = 14;
FPRedTimer = 50;
DakkaTimer--;
if (DakkaTimer == 0) {
firePower = PRVFPL;
}
}
numOfEnemies = enemies.length;
if (shieldingTime > 1) {
_root.ShieldBar._visible = true;
shieldingTime--;
PossibleToDamage = false;
if ((shieldingTime < 200) && (shieldingTime > 0)) {
_root.ShieldBar._width = shieldingTime * 0.4;
_root.ShieldBar2._visible = false;
} else if ((shieldingTime >= 200) && (shieldingTime < 400)) {
_root.ShieldBar._width = 80;
_root.ShieldBar2._visible = true;
_root.ShieldBar2._width = (shieldingTime - 200) * 0.4;
_root.ShieldBar3._visible = false;
} else if ((shieldingTime >= 400) && (shieldingTime < 600)) {
_root.ShieldBar2._width = 80;
_root.ShieldBar3._visible = true;
_root.ShieldBar3._width = (shieldingTime - 400) * 0.4;
_root.ShieldBar4._visible = false;
} else if (shieldingTime >= 600) {
_root.ShieldBar3._width = 80;
_root.ShieldBar4._visible = true;
_root.ShieldBar4._width = (shieldingTime - 400) * 0.4;
}
} else if (shieldingTime <= 1) {
shieldingTime = 0;
_root.ShieldBar._visible = false;
PossibleToDamage = true;
}
if (godmode) {
HP = 40;
}
_root.HPbar._width = HP * 2;
if (Key.isDown(37) && (_x >= (_width / 2))) {
_x = _x - velocity;
}
if (Key.isDown(39) && (_x <= (550 - (_width / 2)))) {
_x = _x + velocity;
}
if (Key.isDown(38) && (_y >= (_height / 2))) {
_y = _y - velocity;
}
if (Key.isDown(40) && (_y <= (400 - (_height / 2)))) {
_y = _y + velocity;
}
shootLimiter = shootLimiter + 1;
shootLimiter2 = shootLimiter2 + 1;
if (Key.isDown(32) && (shootLimiter > 2)) {
if ((firePower >= 1) && (firePower <= 6)) {
fireShot(1, 0.2, 0);
fireShot(1, 0, 0);
fireShot(1, -0.2, 0);
}
if (firePower >= 2) {
fireShot(1, 0, firingAngle);
if (firingAngle >= 40) {
firingAngle = -40;
}
firingAngle = firingAngle + 5;
}
if (firePower >= 4) {
fireShot(1, 0.5, 10);
fireShot(1, -0.5, -10);
}
if (firePower >= 5) {
fireShot(1, 0, -firingAngle);
FPRedTimer--;
}
if (firePower >= 8) {
fireShot(1, 0, firingAngle2 / 2);
fireShot(1, 0, (-firingAngle2) / 2);
}
if (firePower >= 12) {
fireShot(1, 1.1, 20);
fireShot(1, 0.9, 20);
fireShot(1, -1.1, -20);
fireShot(1, -0.9, -20);
}
shootLimiter = 0;
}
if (Key.isDown(32) && ((shootLimiter == 1) || (DakkaTimer >= 1))) {
if (firePower >= 3) {
fireShot(1, 1, 20);
fireShot(1, -1, -20);
}
if (firePower >= 6) {
if (FPRedTimer <= 0) {
FPRedTimer = 50;
firePower--;
}
}
if (firePower >= 9) {
_root.PShotParticles = false;
fireShot(1, 0.25, 5);
fireShot(1, 0.25, -5);
}
}
if (Key.isDown(32) && (shootLimiter2 == 7)) {
if (firePower >= 10) {
fireLaser(1, 1, 0);
fireLaser(1, -1, 0);
}
if (firePower >= 12) {
fireRocket(-1, 0, 90, -5, 18);
fireRocket(-1, 0, -90, 5, 18);
}
}
if (Key.isDown(32) && (shootLimiter2 >= 14)) {
if (firePower >= 7) {
fireLaser(1, 0, 0);
}
if (firePower >= 11) {
fireRocket(-1, 0, 90, -10, 9);
fireRocket(-1, 0, -90, 10, 9);
}
if (firePower >= 6) {
fireBlob(1, 0, firingAngle2);
fireBlob(1, 0, -firingAngle2);
if (firingAngle2 >= 40) {
firingAngle2 = -40;
}
firingAngle2 = firingAngle2 + 5;
}
if (firePower > 6) {
fireBlob(1, 0, 0);
}
shootLimiter2 = 0;
}
if (HP <= 0) {
unloadMovie(this);
}
time++;
spawnEnemies();
}
function fireShot(xdis, ydis, rot) {
var _local3 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
}
function fireLaser(xdis, ydis, rot) {
var _local3 = _root.attachMovie("PlayerLaser", "PlayerLaser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
}
function fireRocket(xdis, ydis, rot, path, time) {
var _local3 = _root.attachMovie("PlayerRocket", "PlayerRocket" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
_local3.rotpath = path;
_local3.pathtime = time;
}
function fireBlob(xdis, ydis, rot) {
var _local3 = _root.attachMovie("PlayerBlobShot", "PlayerBlobShot" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
}
function spawnEnemies() {
if (time >= 60) {
tiB = 1000;
if ((time <= tiB) && ((time % 60) == 0)) {
rgea = 100 + random(200);
attachEnemy(1, 500, rgea);
}
if (((time <= tiB) && (rgea >= 100)) && (((time - 2) % 60) == 0)) {
attachEnemy(1, 500, rgea + 25);
attachEnemy(1, 500, rgea - 25);
}
if (((time <= tiB) && (rgea >= 100)) && (((time - 4) % 60) == 0)) {
attachEnemy(1, 500, rgea + 50);
attachEnemy(1, 500, rgea - 50);
}
if ((time <= tiB) && ((time % 30) == 0)) {
attachEnemy(3, 600, 25 + random(350));
}
if ((time <= tiB) && ((time % 30) == 0)) {
attachEnemy(4, 600, 25 + random(350));
}
if ((time <= tiB) && ((time % 30) == 0)) {
attachEnemy(5 + random(2), 600, 25 + random(350));
}
if ((time <= tiB) && ((time % 90) == 0)) {
foCe = 100 + random(200);
attachEnemy(3, 600, foCe);
attachEnemy(3, 620, foCe + 25);
attachEnemy(3, 620, foCe - 25);
attachEnemy(3, 640, foCe + 50);
attachEnemy(3, 640, foCe - 50);
}
tiB = 1200;
foCe = 200;
if (time == tiB) {
attachEnemy(10, 700, 200);
} else if (time == (tiB + 200)) {
attachEnemy(10, 700, 100);
attachEnemy(10, 700, 300);
}
tiB = 1300;
if (time == tiB) {
attachEnemy(12, 575, 150);
attachEnemy(13, 575, 250);
} else if (time == (tiB + 5)) {
attachEnemy(12, 580, 155);
attachEnemy(13, 580, 245);
} else if (time == (tiB + 10)) {
attachEnemy(12, 585, 160);
attachEnemy(13, 585, 240);
} else if (time == (tiB + 15)) {
attachEnemy(12, 590, 165);
attachEnemy(13, 590, 235);
} else if (time == (tiB + 20)) {
attachEnemy(12, 595, 170);
attachEnemy(13, 595, 230);
}
foCe = 200;
tiB = 1400;
if (time == tiB) {
attachEnemy(1, 600, foCe - 150);
attachEnemy(1, 600, foCe + 150);
} else if (time == (tiB + 2)) {
attachEnemy(1, 600, foCe - 100);
attachEnemy(1, 600, foCe + 100);
} else if (time == (tiB + 4)) {
attachEnemy(1, 600, foCe - 50);
attachEnemy(1, 600, foCe + 50);
} else if (time == (tiB + 6)) {
attachEnemy(11, 600, foCe);
}
tiB = 1475;
foCe = 100;
if (time == tiB) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 125;
if (time == (tiB + 10)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 150;
if (time == (tiB + 20)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 175;
if (time == (tiB + 30)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 200;
if (time == (tiB + 40)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 225;
if (time == (tiB + 50)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 250;
if (time == (tiB + 60)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 275;
if (time == (tiB + 70)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 300;
if (time == (tiB + 80)) {
attachEnemy(12, 675, foCe - 25);
attachEnemy(13, 675, foCe + 25);
attachEnemy(1, 575, foCe);
}
foCe = 575;
tiB = 1600;
if (time == tiB) {
attachEnemy(12, foCe, 200);
attachEnemy(13, foCe, 200);
} else if (time == (tiB + 10)) {
attachEnemy(12, foCe + 25, 200);
attachEnemy(13, foCe + 25, 200);
} else if (time == (tiB + 20)) {
attachEnemy(12, foCe + 50, 200);
attachEnemy(13, foCe + 50, 200);
} else if (time == (tiB + 30)) {
attachEnemy(12, foCe + 75, 200);
attachEnemy(13, foCe + 75, 200);
} else if (time == (tiB + 40)) {
attachEnemy(11, 600, 200);
attachEnemy(12, foCe + 100, 200);
attachEnemy(13, foCe + 100, 200);
} else if (time == (tiB + 50)) {
attachEnemy(12, foCe + 125, 200);
attachEnemy(13, foCe + 125, 200);
} else if (time == (tiB + 60)) {
attachEnemy(12, foCe + 150, 200);
attachEnemy(13, foCe + 150, 200);
} else if (time == (tiB + 67)) {
attachEnemy(12, foCe + 175, 200);
attachEnemy(13, foCe + 175, 200);
} else if (time == (tiB + 80)) {
attachEnemy(12, foCe + 200, 200);
attachEnemy(13, foCe + 200, 200);
}
tiB = 2200;
if (((time >= 1800) && (time <= tiB)) && ((time % 60) == 0)) {
rgea = 100 + random(200);
attachEnemy(1, 500, rgea);
}
if ((((time >= 1800) && (time <= tiB)) && (rgea >= 100)) && (((time - 2) % 60) == 0)) {
attachEnemy(1, 500, rgea + 25);
attachEnemy(1, 500, rgea - 25);
}
if ((((time >= 1800) && (time <= tiB)) && (rgea >= 100)) && (((time - 4) % 60) == 0)) {
attachEnemy(1, 500, rgea + 50);
attachEnemy(1, 500, rgea - 50);
}
if (((time >= 1800) && (time <= tiB)) && ((time % 30) == 0)) {
attachEnemy(3, 600, 25 + random(350));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 30) == 0)) {
attachEnemy(4, 600, 25 + random(350));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 30) == 0)) {
attachEnemy(5 + random(2), 600, 25 + random(350));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 90) == 0)) {
foCe = 100 + random(200);
attachEnemy(3, 600, foCe);
attachEnemy(3, 620, foCe + 25);
attachEnemy(3, 620, foCe - 25);
attachEnemy(3, 640, foCe + 50);
attachEnemy(3, 640, foCe - 50);
}
if (((time >= 1800) && (time <= tiB)) && ((time % 30) == 10)) {
attachEnemy(12, 575 + random(200), 100 + random(200));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 30) == 20)) {
attachEnemy(13, 575 + random(200), 100 + random(200));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 10) == 0)) {
attachEnemy(7, 350, 100 + random(200));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 10) == 5)) {
attachEnemy(8, 350, 100 + random(200));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 400) == 0)) {
attachEnemy(10, 650, 100 + random(200));
}
if (((time >= 1800) && (time <= tiB)) && ((time % 50) == 0)) {
attachEnemy(11, 565, 100 + random(200));
}
if (time == 2300) {
var _local3 = _root.attachMovie("Boss2", "Boss2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = 1200;
_local3._y = 200;
}
}
}
function attachEnemy(Etype, eX, eY) {
if (Etype == 1) {
var _local5 = _root.attachMovie("FighterAdvanceAndRetreat", "FighterAdvanceAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 2) {
var _local5 = _root.attachMovie("FighterAdvanceThroughScreen", "FighterAdvanceThroughScreen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 3) {
var _local5 = _root.attachMovie("FighterFastAdvanceThroughScreen", "FighterFastAdvanceThroughScreen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 4) {
var _local5 = _root.attachMovie("BomberAdvanceAndRetreat", "BomberAdvanceAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 5) {
var _local5 = _root.attachMovie("FighterArcUpFireAndRetreat", "FighterArcUpFireAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 6) {
var _local5 = _root.attachMovie("FighterArcDownFireAndRetreat", "FighterArcDownFireAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 7) {
var _local5 = _root.attachMovie("FighterArcUp", "FighterArcUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 8) {
var _local5 = _root.attachMovie("FighterArcDown", "FighterArcDown" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 10) {
var _local5 = _root.attachMovie("EnemyTurret1", "EnemyTurret1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 11) {
var _local5 = _root.attachMovie("DoubleFighterArcUpOrbitRetreat", "DoubleFighterArcUpOrbitRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 12) {
var _local5 = _root.attachMovie("FighterArcDownAdvance", "FighterArcDownAdvance" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 13) {
var _local5 = _root.attachMovie("FighterArcUpAdvance", "FighterArcUpAdvance" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
}
}
function takeDamage() {
if (PossibleToDamage) {
if (HP >= 1) {
HP--;
} else {
_root.Level1EndScore._visible = true;
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
unloadMovie();
}
} else {
shieldingTime = shieldingTime - 2;
}
}
function gainKill() {
KC++;
if ((KC % 40) == 0) {
firePower++;
}
}
var godmode = false;
var PossibleToDamage = true;
var shieldingTime = 0;
var numOfEnemies = 0;
var FPRedTimer = 0;
var Dakka = false;
var DakkaTimer = 0;
var KC = 0;
}
Symbol 292 MovieClip [__Packages.Ship1] Frame 0
class Ship1 extends MovieClip
{
var velocity, shootLimiter, shootLimiter2, firePower, enemies, time, HP, firingAngle, PRVFPL, _width, _x, _height, _y, firingAngle2, unloadMovie, foCe, tiB, rgea;
function Ship1 () {
super();
}
function onLoad() {
_root.ship.newGame();
}
function newGame() {
if (_root.cheatholder.godmode) {
godmode = true;
}
velocity = 15;
shootLimiter = 0;
shootLimiter2 = 0;
firePower = 5;
enemies = [];
time = 0;
HP = 40;
firingAngle = 20;
firingAngle = -20;
}
function onEnterFrame() {
_root.timedebug = time;
var _local3 = 0;
while (_local3 <= enemies.length) {
if (enemies[_local3]._visible == undefined) {
enemies.splice(_local3, 1);
}
_local3++;
}
if (Dakka) {
if (DakkaTimer <= 0) {
PRVFPL = firePower;
}
DakkaTimer = 100;
Dakka = false;
}
if (DakkaTimer >= 1) {
firePower = 14;
FPRedTimer = 50;
DakkaTimer--;
if (DakkaTimer == 0) {
firePower = PRVFPL;
}
}
numOfEnemies = enemies.length;
if (shieldingTime > 1) {
_root.ShieldBar._visible = true;
shieldingTime--;
PossibleToDamage = false;
if ((shieldingTime < 200) && (shieldingTime > 0)) {
_root.ShieldBar._width = shieldingTime * 0.4;
_root.ShieldBar2._visible = false;
} else if ((shieldingTime >= 200) && (shieldingTime < 400)) {
_root.ShieldBar._width = 80;
_root.ShieldBar2._visible = true;
_root.ShieldBar2._width = (shieldingTime - 200) * 0.4;
_root.ShieldBar3._visible = false;
} else if ((shieldingTime >= 400) && (shieldingTime < 600)) {
_root.ShieldBar2._width = 80;
_root.ShieldBar3._visible = true;
_root.ShieldBar3._width = (shieldingTime - 400) * 0.4;
_root.ShieldBar4._visible = false;
} else if (shieldingTime >= 600) {
_root.ShieldBar3._width = 80;
_root.ShieldBar4._visible = true;
_root.ShieldBar4._width = (shieldingTime - 400) * 0.4;
}
} else if (shieldingTime <= 1) {
shieldingTime = 0;
_root.ShieldBar._visible = false;
PossibleToDamage = true;
}
if (godmode) {
HP = 40;
}
_root.HPbar._width = HP * 2;
if (Key.isDown(37) && (_x >= (_width / 2))) {
_x = _x - velocity;
}
if (Key.isDown(39) && (_x <= (550 - (_width / 2)))) {
_x = _x + velocity;
}
if (Key.isDown(38) && (_y >= (_height / 2))) {
_y = _y - velocity;
}
if (Key.isDown(40) && (_y <= (400 - (_height / 2)))) {
_y = _y + velocity;
}
shootLimiter = shootLimiter + 1;
shootLimiter2 = shootLimiter2 + 1;
if (Key.isDown(32) && (shootLimiter > 2)) {
if ((firePower >= 1) && (firePower <= 6)) {
fireShot(1, 0.2, 0);
fireShot(1, 0, 0);
fireShot(1, -0.2, 0);
}
if (firePower >= 2) {
fireShot(1, 0, firingAngle);
if (firingAngle >= 40) {
firingAngle = -40;
}
firingAngle = firingAngle + 5;
}
if (firePower >= 4) {
fireShot(1, 0.5, 10);
fireShot(1, -0.5, -10);
}
if (firePower >= 5) {
fireShot(1, 0, -firingAngle);
FPRedTimer--;
}
if (firePower >= 8) {
fireShot(1, 0, firingAngle2 / 2);
fireShot(1, 0, (-firingAngle2) / 2);
}
if (firePower >= 12) {
fireShot(1, 1.1, 20);
fireShot(1, 0.9, 20);
fireShot(1, -1.1, -20);
fireShot(1, -0.9, -20);
}
shootLimiter = 0;
}
if (Key.isDown(32) && ((shootLimiter == 1) || (DakkaTimer >= 1))) {
if (firePower >= 3) {
fireShot(1, 1, 20);
fireShot(1, -1, -20);
}
if (firePower >= 6) {
if (FPRedTimer <= 0) {
FPRedTimer = 50;
firePower--;
}
}
if (firePower >= 9) {
_root.PShotParticles = false;
fireShot(1, 0.25, 5);
fireShot(1, 0.25, -5);
}
}
if (Key.isDown(32) && (shootLimiter2 == 7)) {
if (firePower >= 10) {
fireLaser(1, 1, 0);
fireLaser(1, -1, 0);
}
if (firePower >= 12) {
fireRocket(-1, 0, 90, -5, 18);
fireRocket(-1, 0, -90, 5, 18);
}
}
if (Key.isDown(32) && (shootLimiter2 >= 14)) {
if (firePower >= 7) {
fireLaser(1, 0, 0);
}
if (firePower >= 11) {
fireRocket(-1, 0, 90, -10, 9);
fireRocket(-1, 0, -90, 10, 9);
}
if (firePower >= 6) {
fireBlob(1, 0, firingAngle2);
fireBlob(1, 0, -firingAngle2);
if (firingAngle2 >= 40) {
firingAngle2 = -40;
}
firingAngle2 = firingAngle2 + 5;
}
if (firePower > 6) {
fireBlob(1, 0, 0);
}
shootLimiter2 = 0;
}
if (HP <= 0) {
unloadMovie(this);
}
time++;
spawnEnemies();
}
function fireShot(xdis, ydis, rot) {
var _local3 = _root.attachMovie("Missile", "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
}
function fireLaser(xdis, ydis, rot) {
var _local3 = _root.attachMovie("PlayerLaser", "PlayerLaser" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
}
function fireRocket(xdis, ydis, rot, path, time) {
var _local3 = _root.attachMovie("PlayerRocket", "PlayerRocket" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
_local3.rotpath = path;
_local3.pathtime = time;
}
function fireBlob(xdis, ydis, rot) {
var _local3 = _root.attachMovie("PlayerBlobShot", "PlayerBlobShot" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + ((_width / 2) * xdis);
_local3._y = _y + ((_height / 2) * ydis);
_local3._rotation = rot;
}
function spawnEnemies() {
foCe = 200;
tiB = 60;
if (time == tiB) {
attachEnemy(1, 500, foCe);
} else if (time == (tiB + 1)) {
attachEnemy(1, 500, foCe + 25);
attachEnemy(1, 500, foCe - 25);
} else if (time == (tiB + 2)) {
attachEnemy(1, 500, foCe + 50);
attachEnemy(1, 500, foCe - 50);
} else if (time == (tiB + 3)) {
attachEnemy(1, 500, foCe + 75);
attachEnemy(1, 500, foCe - 75);
} else if (time == (tiB + 4)) {
attachEnemy(1, 500, foCe + 100);
attachEnemy(1, 500, foCe - 100);
} else if (time == (tiB + 5)) {
attachEnemy(1, 500, foCe + 125);
attachEnemy(1, 500, foCe - 125);
} else if (time == (tiB + 6)) {
attachEnemy(1, 500, foCe + 150);
attachEnemy(1, 500, foCe - 150);
}
foCe = 200;
tiB = 100;
if (time == tiB) {
attachEnemy(1, 500, foCe - 150);
} else if (time == (tiB + 2)) {
attachEnemy(1, 500, foCe - 100);
} else if (time == (tiB + 4)) {
attachEnemy(1, 500, foCe - 50);
} else if (time == (tiB + 6)) {
attachEnemy(1, 500, foCe);
} else if (time == (tiB + 8)) {
attachEnemy(1, 500, foCe + 50);
} else if (time == (tiB + 10)) {
attachEnemy(1, 500, foCe + 100);
} else if (time == (tiB + 12)) {
attachEnemy(1, 500, foCe + 150);
}
if (((time <= 400) && (time >= 180)) && ((time % 10) == 0)) {
attachEnemy(3, 600, 25 + random(350));
}
if (((time <= 300) && (time >= 180)) && ((time % 30) == 0)) {
rgea = 100 + random(200);
attachEnemy(1, 500, rgea);
}
if ((((time <= 400) && (time >= 180)) && (rgea >= 100)) && (((time - 2) % 30) == 0)) {
attachEnemy(1, 500, rgea + 25);
attachEnemy(1, 500, rgea - 25);
}
if ((((time <= 400) && (time >= 180)) && (rgea >= 100)) && (((time - 4) % 30) == 0)) {
attachEnemy(1, 500, rgea + 50);
attachEnemy(1, 500, rgea - 50);
}
tiB = 450;
if (time == tiB) {
attachEnemy(4, 500, foCe);
} else if (time == (tiB + 2)) {
attachEnemy(4, 500, foCe + 50);
attachEnemy(4, 500, foCe - 50);
} else if (time == (tiB + 4)) {
attachEnemy(4, 500, foCe + 100);
attachEnemy(4, 500, foCe - 100);
} else if (time == (tiB + 6)) {
attachEnemy(4, 500, foCe + 150);
attachEnemy(4, 500, foCe - 150);
}
tiB = 500;
foCe = 200;
if (time == tiB) {
attachEnemy(4, 500, foCe + 150);
attachEnemy(4, 500, foCe - 150);
} else if (time == (tiB + 2)) {
attachEnemy(4, 500, foCe + 125);
attachEnemy(4, 500, foCe - 125);
} else if (time == (tiB + 4)) {
attachEnemy(4, 500, foCe + 100);
attachEnemy(4, 500, foCe - 100);
} else if (time == (tiB + 6)) {
attachEnemy(4, 500, foCe + 75);
attachEnemy(4, 500, foCe - 75);
} else if (time == (tiB + 8)) {
attachEnemy(4, 500, foCe + 50);
attachEnemy(4, 500, foCe - 50);
} else if (time == (tiB + 12)) {
attachEnemy(3, 600, foCe + 25);
attachEnemy(3, 600, foCe - 25);
} else if (time == (tiB + 10)) {
attachEnemy(3, 600, foCe);
}
if (((time <= 700) && (time >= 600)) && ((time % 10) == 0)) {
attachEnemy(3, 600, 25 + random(350));
}
if (((time <= 700) && (time >= 600)) && ((time % 60) == 0)) {
rgea = 100 + random(200);
attachEnemy(1, 500, rgea);
}
if ((((time <= 700) && (time >= 600)) && (rgea >= 100)) && (((time - 2) % 60) == 0)) {
attachEnemy(1, 500, rgea + 25);
attachEnemy(1, 500, rgea - 25);
}
if ((((time <= 700) && (time >= 600)) && (rgea >= 100)) && (((time - 4) % 60) == 0)) {
attachEnemy(1, 500, rgea + 50);
attachEnemy(1, 500, rgea - 50);
}
if (((time <= 700) && (time >= 600)) && ((time % 30) == 0)) {
attachEnemy(3, 600, 25 + random(350));
}
if (((time <= 700) && (time >= 600)) && ((time % 30) == 0)) {
attachEnemy(4, 600, 25 + random(350));
}
if (((time <= 700) && (time >= 600)) && ((time % 90) == 0)) {
foCe = 100 + random(200);
attachEnemy(3, 600, foCe);
attachEnemy(3, 620, foCe + 25);
attachEnemy(3, 620, foCe - 25);
attachEnemy(3, 640, foCe + 50);
attachEnemy(3, 640, foCe - 50);
}
if (time == 800) {
HP = 40;
}
foCe = 200;
tiB = 900;
if (time == tiB) {
attachEnemy(5, 550, foCe + 150);
} else if (time == (tiB + 2)) {
attachEnemy(5, 550, foCe + 100);
} else if (time == (tiB + 4)) {
attachEnemy(5, 550, foCe + 50);
} else if (time == (tiB + 6)) {
attachEnemy(5, 550, foCe);
} else if (time == (tiB + 8)) {
attachEnemy(5, 550, foCe - 50);
} else if (time == (tiB + 10)) {
attachEnemy(5, 550, foCe - 100);
} else if (time == (tiB + 12)) {
attachEnemy(5, 550, foCe - 150);
}
foCe = 200;
tiB = 1000;
if (time == tiB) {
attachEnemy(5, 550, foCe - 150);
} else if (time == (tiB + 2)) {
attachEnemy(5, 550, foCe - 100);
} else if (time == (tiB + 4)) {
attachEnemy(5, 550, foCe - 50);
} else if (time == (tiB + 6)) {
attachEnemy(5, 550, foCe);
} else if (time == (tiB + 8)) {
attachEnemy(5, 550, foCe + 50);
} else if (time == (tiB + 10)) {
attachEnemy(5, 550, foCe + 100);
} else if (time == (tiB + 12)) {
attachEnemy(5, 550, foCe + 150);
}
if (((time <= 2000) && (time >= 1100)) && ((time % 60) == 0)) {
rgea = 100 + random(200);
attachEnemy(1, 500, rgea);
}
if ((((time <= 2000) && (time >= 1100)) && (rgea >= 100)) && (((time - 2) % 60) == 0)) {
attachEnemy(1, 500, rgea + 25);
attachEnemy(1, 500, rgea - 25);
}
if ((((time <= 2000) && (time >= 1100)) && (rgea >= 100)) && (((time - 4) % 60) == 0)) {
attachEnemy(1, 500, rgea + 50);
attachEnemy(1, 500, rgea - 50);
}
if (((time <= 2000) && (time >= 1100)) && ((time % 30) == 0)) {
attachEnemy(3, 600, 25 + random(350));
}
if (((time <= 2000) && (time >= 1100)) && ((time % 30) == 0)) {
attachEnemy(4, 600, 25 + random(350));
}
if (((time <= 2000) && (time >= 1100)) && ((time % 30) == 0)) {
attachEnemy(5 + random(2), 600, 25 + random(350));
}
if (((time <= 2000) && (time >= 1100)) && ((time % 90) == 0)) {
foCe = 100 + random(200);
attachEnemy(3, 600, foCe);
attachEnemy(3, 620, foCe + 25);
attachEnemy(3, 620, foCe - 25);
attachEnemy(3, 640, foCe + 50);
attachEnemy(3, 640, foCe - 50);
}
if (time == 2200) {
var _local3 = _root.attachMovie("MiniBoss1", "MiniBoss1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = 1200;
_local3._y = 250;
}
}
function attachEnemy(Etype, eX, eY) {
if (Etype == 1) {
var _local5 = _root.attachMovie("FighterAdvanceAndRetreat", "FighterAdvanceAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 2) {
var _local5 = _root.attachMovie("FighterAdvanceThroughScreen", "FighterAdvanceThroughScreen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 3) {
var _local5 = _root.attachMovie("FighterFastAdvanceThroughScreen", "FighterFastAdvanceThroughScreen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 4) {
var _local5 = _root.attachMovie("BomberAdvanceAndRetreat", "BomberAdvanceAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 5) {
var _local5 = _root.attachMovie("FighterArcUpFireAndRetreat", "FighterArcUpFireAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 6) {
var _local5 = _root.attachMovie("FighterArcDownFireAndRetreat", "FighterArcDownFireAndRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 7) {
var _local5 = _root.attachMovie("FighterArcUp", "FighterArcUp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 8) {
var _local5 = _root.attachMovie("FighterArcDown", "FighterArcDown" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 10) {
var _local5 = _root.attachMovie("EnemyTurret1", "EnemyTurret1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 11) {
var _local5 = _root.attachMovie("DoubleFighterArcUpOrbitRetreat", "DoubleFighterArcUpOrbitRetreat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 12) {
var _local5 = _root.attachMovie("FighterArcDownAdvance", "FighterArcDownAdvance" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
} else if (Etype == 13) {
var _local5 = _root.attachMovie("FighterArcUpAdvance", "FighterArcUpAdvance" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = eX;
_local5._y = eY;
}
}
function takeDamage() {
if (PossibleToDamage) {
if (HP >= 1) {
HP--;
} else {
_root.Level1EndScore._visible = true;
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
unloadMovie();
}
} else {
shieldingTime = shieldingTime - 2;
}
}
function gainKill() {
KC++;
if ((KC % 40) == 0) {
firePower++;
}
}
var godmode = false;
var PossibleToDamage = true;
var shieldingTime = 0;
var numOfEnemies = 0;
var FPRedTimer = 0;
var Dakka = false;
var DakkaTimer = 0;
var KC = 0;
}
Symbol 293 MovieClip [__Packages.EnemyMissile] Frame 0
class EnemyMissile extends MovieClip
{
var speed, _x, _rotation, _y, hitTest, removeMovieClip, unloadMovie;
function EnemyMissile () {
super();
}
function onLoad() {
speed = -20;
}
function onEnterFrame() {
_x = _x + (Math.cos((_rotation * Math.PI) / 180) * speed);
_y = _y + (Math.sin((_rotation * Math.PI) / 180) * speed);
if (hitTest(_root.ship.hitBox)) {
var _local3 = _root.attachMovie("particle2", "particle2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle2", "particle2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle2", "particle2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle2", "particle2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3 = _root.attachMovie("particle2", "particle2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_root.ship.takeDamage();
removeMovieClip();
}
if (_x < -600) {
unloadMovie(this);
}
if (_x > 700) {
unloadMovie(this);
}
}
}
Instance of Symbol 8 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 79 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 244 MovieClip in Symbol 247 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = _root.ship.FPRedTimer;
}
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = (_root.ship.KC % 40);
}
Symbol 252 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 258 MovieClip Frame 62
unloadMovie (this);
Symbol 263 Button
on (release) {
_root.gotoAndPlay(1);
}