Frame 1
stop();
Frame 2
stop();
PShotParticles = true;
point = 0;
PowerupChance = 50;
Instance of Symbol 85 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 20 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 10) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 96 MovieClip "ShieldBar" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 98 MovieClip "ShieldBar2" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 100 MovieClip "ShieldBar3" in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 102 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 20 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.ship.firePower >= 5) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 20 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;
}
}
Symbol 2 MovieClip [EnemyMissile] Frame 1
#initclip 39
Object.registerClass("EnemyMissile", EnemyMissile);
#endinitclip
Symbol 5 MovieClip [particleSpawner2] Frame 1
#initclip 20
Object.registerClass("particleSpawner2", particleSpawner2);
#endinitclip
Symbol 6 MovieClip [Missile] Frame 1
#initclip 21
Object.registerClass("Missile", Missile);
#endinitclip
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 11 MovieClip in Symbol 12 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Symbol 17 MovieClip [EnemyTurret1] Frame 1
#initclip 22
Object.registerClass("EnemyTurret1", EnemyTurret1);
#endinitclip
Instance of Symbol 19 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Symbol 23 MovieClip [EnemyShip2] Frame 1
#initclip 23
Object.registerClass("EnemyShip2", EnemyFighterAI2);
#endinitclip
Symbol 24 MovieClip [FighterFastAdvanceThroughScreen] Frame 57
stop();
Symbol 25 MovieClip [FighterAdvanceThroughScreen] Frame 1
#initclip 24
Object.registerClass("FighterAdvanceThroughScreen", EnemyFighterAI2);
#endinitclip
Symbol 25 MovieClip [FighterAdvanceThroughScreen] Frame 63
stop();
Symbol 28 MovieClip [EnemyBomber] Frame 1
#initclip 25
Object.registerClass("EnemyBomber", EnemyBomberAI1);
#endinitclip
Symbol 29 MovieClip [BomberAdvanceAndRetreat] Frame 70
stop();
Symbol 31 MovieClip [EnemyShip] Frame 1
#initclip 26
Object.registerClass("EnemyShip", EnemyFighterAI1);
#endinitclip
Symbol 32 MovieClip [FighterAdvanceAndRetreat] Frame 60
stop();
Symbol 34 MovieClip [particle3] Frame 1
#initclip 27
Object.registerClass("particle3", particle3);
#endinitclip
Symbol 35 MovieClip [particle2] Frame 1
#initclip 28
Object.registerClass("particle2", particle2);
#endinitclip
Symbol 37 MovieClip [particle1] Frame 1
#initclip 29
Object.registerClass("particle1", particle1);
#endinitclip
Symbol 39 MovieClip [ShieldPowerUp] Frame 1
#initclip 30
Object.registerClass("ShieldPowerUp", ShieldPowerUp);
#endinitclip
Symbol 41 MovieClip [HealthPowerUp] Frame 1
#initclip 31
Object.registerClass("HealthPowerUp", HealthPowerUp);
#endinitclip
Symbol 44 MovieClip [DAKKAPowerUp] Frame 1
#initclip 32
Object.registerClass("DAKKAPowerUp", DAKKAPowerUp);
#endinitclip
Instance of Symbol 43 MovieClip in Symbol 44 MovieClip [DAKKAPowerUp] Frame 1
onClipEvent (load) {
firstX = _x;
firstY = _y;
}
onClipEvent (enterFrame) {
_x = ((firstX - 10) + random(21));
_y = ((firstY - 10) + random(21));
}
Symbol 46 MovieClip [FirePowerUp] Frame 1
#initclip 33
Object.registerClass("FirePowerUp", FirePowerUp);
#endinitclip
Symbol 47 MovieClip [particleSpawner3] Frame 1
#initclip 34
Object.registerClass("particleSpawner3", particleSpawner3);
#endinitclip
Symbol 49 MovieClip [EnemyHomingMissile] Frame 1
#initclip 35
Object.registerClass("EnemyHomingMissile", EnemyHomingMissile);
#endinitclip
Symbol 59 MovieClip [Explosion] Frame 10
stop();
unloadMovie (this);
Symbol 60 MovieClip [EnemyShip3] Frame 1
#initclip 36
Object.registerClass("EnemyShip3", EnemyFighterAI3);
#endinitclip
Symbol 61 MovieClip [FighterArcUpFireAndRetreat] Frame 58
unloadMovie (this);
Symbol 62 MovieClip [FighterArcDownFireAndRetreat] Frame 57
Symbol 62 MovieClip [FighterArcDownFireAndRetreat] Frame 58
unloadMovie (this);
Symbol 63 MovieClip [particleSpawner] Frame 1
#initclip 37
Object.registerClass("particleSpawner", particleSpawner1);
#endinitclip
Symbol 65 MovieClip [Ship] Frame 1
#initclip 38
Object.registerClass("Ship", Ship);
#endinitclip
Instance of Symbol 9 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 6) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 12 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 7) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 8) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 10) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 9 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 11) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 12 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 12) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 20 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 13) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 20 MovieClip in Symbol 65 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
if (_parent.firePower >= 9) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 70 Button
on (release) {
play();
}
Symbol 111 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("particle2", "particle2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = xpos;
_local3._y = ypos;
timer = 0;
}
}
}
Symbol 112 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 _local3 in _root.ship.enemies) {
if (hitTest(_root.ship.enemies[_local3])) {
removeMovieClip();
_root.ship.enemies[_local3].takeDamage();
}
}
if (_x > 600) {
removeMovieClip();
}
}
}
Symbol 113 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 = 10;
firetime = 15;
time = 0;
}
function onEnterFrame() {
_x = _x - 5;
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 >= 30) && ((time % firetime) == 0)) {
var _local3 = _root.attachMovie("EnemyMissile", "EnemyMissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x + (30 * Math.cos(TurAlign * (Math.PI/180)));
_local3._y = _y + (30 * Math.sin(TurAlign * (Math.PI/180)));
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;
}
}
_root.debugEnemyHP.text = HitPoints;
if (_root.ship.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 114 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.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 115 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.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 116 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.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 117 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 118 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 119 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 120 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 121 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 122 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 123 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 124 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 125 MovieClip [__Packages.EnemyHomingMissile] Frame 0
class EnemyHomingMissile extends MovieClip
{
var unloadMovie, _x, _y, _rotation;
function EnemyHomingMissile () {
super();
}
function onEnterFrame() {
if (_root.ship.hitTest(this)) {
unloadMovie(this);
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._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) {
_rotation = -PrvRot;
if (((Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) >= 45) || ((Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) <= -45)) {
if ((Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) > 0) {
_rotation = 45;
}
if ((Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823) < 0) {
_rotation = -45;
}
} else {
_rotation = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
PrvRot = Math.atan((_y - _root.ship._y) / (_x - _root.ship._x)) * 57.2957795130823;
}
}
}
var PrvRot = 0;
var speed = -10;
}
Symbol 126 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.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 127 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 128 MovieClip [__Packages.Ship] Frame 0
class Ship extends MovieClip
{
var velocity, shootLimiter, firePower, enemies, time, HP, firingAngle, PRVFPL, _width, _x, _height, _y, firingAngle2, unloadMovie, foCe, tiB, rgea;
function Ship () {
super();
}
function onLoad() {
_root.ship.newGame();
}
function newGame() {
velocity = 15;
shootLimiter = 0;
firePower = 5;
enemies = [];
time = 0;
HP = 40;
firingAngle = 20;
firingAngle = -20;
}
function onEnterFrame() {
var _local3 = 0;
while (_local3 <= enemies.length) {
if (enemies[_local3]._x >= 550) {
enemies.splice(_local3, 1);
}
_local3++;
}
if (Dakka) {
if (DakkaTimer <= 0) {
PRVFPL = firePower;
}
DakkaTimer = 100;
Dakka = false;
}
if (DakkaTimer >= 1) {
firePower = 14;
shootLimiter = 3;
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;
if (Key.isDown(32) && (shootLimiter > 2)) {
fireShot(1, 0, 0);
if (firePower >= 1) {
fireShot(1, 0.2, 0);
fireShot(1, -0.2, 0);
}
if (firePower >= 2) {
fireShot(1, 0, firingAngle);
if (firingAngle >= 40) {
firingAngle = -40;
}
firingAngle = firingAngle + 5;
}
if (firePower >= 3) {
fireShot(1, 1, 20);
fireShot(1, -1, -20);
}
if (firePower >= 4) {
fireShot(1, 0.5, 10);
fireShot(1, -0.5, -10);
}
if (firePower >= 5) {
fireShot(1, 0, -firingAngle);
FPRedTimer--;
}
if (firePower >= 6) {
fireShot(1, 0, firingAngle2);
fireShot(1, 0, -firingAngle2);
if (firingAngle >= 40) {
firingAngle2 = -40;
}
firingAngle2 = firingAngle2 + 5;
if (FPRedTimer <= 0) {
FPRedTimer = 50;
firePower--;
}
}
if (firePower >= 7) {
fireShot(1, 0, firingAngle / 2);
fireShot(1, 0, (-firingAngle) / 2);
}
if (firePower >= 8) {
fireShot(1, 0, firingAngle2 / 2);
fireShot(1, 0, (-firingAngle2) / 2);
}
if (firePower >= 9) {
_root.PShotParticles = false;
fireShot(1, 0.25, 5);
fireShot(1, 0.25, -5);
}
if (firePower >= 10) {
fireShot(1, 0.75, 15);
fireShot(1, 0.75, -15);
}
if (firePower >= 11) {
fireShot(1, 0.6, 10);
fireShot(1, 0.4, 10);
fireShot(1, -0.6, -10);
fireShot(1, -0.4, -10);
}
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 (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 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 <= 10000000) && (time >= 1100)) && ((time % 60) == 0)) {
rgea = 100 + random(200);
attachEnemy(1, 500, rgea);
}
if ((((time <= 10000000) && (time >= 1100)) && (rgea >= 100)) && (((time - 2) % 60) == 0)) {
attachEnemy(1, 500, rgea + 25);
attachEnemy(1, 500, rgea - 25);
}
if ((((time <= 10000000) && (time >= 1100)) && (rgea >= 100)) && (((time - 4) % 60) == 0)) {
attachEnemy(1, 500, rgea + 50);
attachEnemy(1, 500, rgea - 50);
}
if (((time <= 10000000) && (time >= 1100)) && ((time % 30) == 0)) {
attachEnemy(3, 600, 25 + random(350));
}
if (((time <= 10000000) && (time >= 1100)) && ((time % 30) == 0)) {
attachEnemy(4, 600, 25 + random(350));
}
if (((time <= 10000000) && (time >= 1100)) && ((time % 30) == 0)) {
attachEnemy(5 + random(2), 600, 25 + random(350));
}
if (((time <= 10000000) && (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);
}
}
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;
}
}
function takeDamage() {
if (PossibleToDamage) {
if (HP >= 1) {
HP--;
} else {
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 129 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)) {
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 < 0) {
unloadMovie(this);
}
if (_x > 700) {
unloadMovie(this);
}
}
}
Symbol 84 MovieClip Frame 10
gotoAndPlay (1);
Symbol 92 Button
on (release) {
_root.ship.firePower++;
}
Symbol 94 Button
on (release) {
_root.ship.godmode = true;
}
Instance of Symbol 107 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = _root.ship.FPRedTimer;
}
Instance of Symbol 109 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = (_root.ship.KC % 40);
}