Combined Code
movieClip 3 {
frame 1 {
stop();
}
}
movieClip 6 {
}
movieClip 8 {
}
movieClip 10 lazerburn {
}
movieClip 11 badlazer {
frame 1 {
speed = 10;
lazerlife = 0;
lazerburned = 0;
myRadians = Math.atan2(_root.warrior._y - this._y, _root.warrior._x - this._x);
myDegrees = Math.round(myRadians * 180 / Math.PI);
this._rotation = myDegrees + 90;
cannonx = _global.topcannonx;
cannony = _global.topcannony;
playerx = _global.playerx;
playery = _global.playery;
this.onEnterFrame = function () {
if (this.hitTest(_root.warrior.car)) {
_root.warrior.bloodspray.play();
this.removeMovieClip();
}
if (this.hitTest(_root.redwall)) {
this.removeMovieClip();
}
lazerlife += 1;
if (lazerlife >= 200) {
this.removeMovieClip();
}
if (_global.gameover == 1) {
this.removeMovieClip();
}
if (Key.isDown(65) && lazerburned == 0) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68) && lazerburned == 0) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83) && lazerburned == 0) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87) && lazerburned == 0) {
this._y += _global.cameramoveup;
}
};
stop();
}
instance of movieClip 3 {
onClipEvent (load) {
lazerlife = 0;
}
onClipEvent (enterFrame) {
lazerlife += 1;
if (lazerlife < 175) {
this._y -= 10;
} else {
_parent.removeMovieClip();
this.removeMovieClip();
this.gotoAndStop(2);
}
}
}
frame 4 {
}
frame 5 {
gotoAndStop(7);
}
frame 6 {
decallife = 0;
this.onEnterFrame = function () {
decallife += 1;
if (decallife > 200) {
this.removeMovieClip();
}
if (Key.isDown(65)) {
this._x += _global.cameramove;
}
if (Key.isDown(68)) {
this._x -= _global.cameramove;
}
if (Key.isDown(83)) {
this._y -= _global.cameramove;
}
if (Key.isDown(87)) {
this._y += _global.cameramove;
}
};
stop();
}
frame 7 {
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
}
movieClip 12 lazer {
frame 1 {
speed = 20;
lazerlife = 0;
lazerburned = 0;
cannonx = _global.topcannonx;
cannony = _global.topcannony;
cannonxcoo = Math.sin(cannonx * Math.PI / 180);
cannonycoo = Math.cos(cannony * Math.PI / 180);
this.onEnterFrame = function () {
if (_global.gameover == 1) {
this.removeMovieClip();
}
lazerlife += 1;
if (lazerburned == 0) {
_global.bulletfiring = 1;
this._x += speed * cannonxcoo;
this._y -= speed * cannonycoo;
}
if (lazerlife > 40) {
lazerburned = 1;
_global.bulletfiring = 0;
lazerlife = 0;
this.removeMovieClip();
}
if (Key.isDown(65) && lazerburned == 0) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68) && lazerburned == 0) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83) && lazerburned == 0) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87) && lazerburned == 0) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
this.removeMovieClip();
}
frame 4 {
}
frame 5 {
gotoAndStop(7);
}
frame 6 {
this.removeMovieClip();
}
frame 7 {
this.removeMovieClip();
}
}
movieClip 14 enemy {
}
movieClip 16 food {
}
movieClip 28 {
frame 60 {
gotoAndPlay(1);
}
}
movieClip 29 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 32 {
}
movieClip 49 {
}
movieClip 50 {
frame 10 {
_global.kills += 1;
stop();
}
}
movieClip 77 {
frame 4 {
_global.killcount += 1;
}
frame 33 {
stop();
}
}
movieClip 79 badgreyship {
frame 1 {
badshipend = 0;
badshipalive = 1;
health = 1;
badshipgreyxspeed = 0.6;
badshipgreyyspeed = 0.6;
chaserengage = 1;
badshipgrey1x = this._x;
badshipgrey1y = this._y;
codetimer = 0;
badshipgreychase = 1;
badshipgreyalive = 1;
randomdirectionvar = random(100);
randomdirectionvar2 = random(100);
randomdirectionvar3 = random(100);
randomdirectionvar4 = random(100);
this.onEnterFrame = function () {
if (_global.gameover == 1) {
this.removeMovieClip();
}
if (badshipalive == 1) {
if (codetimer < 500) {
codetimer += 1;
badshiprandomlazer = random(150);
}
if (codetimer > 500) {
codetimer += 1;
badshiprandomlazer = 0;
}
if (codetimer > 1000) {
codetimer = 0;
}
if (badshiprandomlazer == 5) {
if (bullettimer < 20) {
bullettimer += 1;
}
if (bullettimer >= 20) {
badshiprandomlazer = 0;
bullettimer = 0;
}
}
if (this.hitTest(_root.lazer0) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer0.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer1) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer1.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer2) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer2.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer3) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer3.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer4) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer4.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer5) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer5.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer6) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer6.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer7) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer7.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer8) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer8.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer9) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer9.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer10) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer10.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer11) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer11.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer12) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer12.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer13) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer13.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer14) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer14.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer15) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer15.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer16) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer16.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer17) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer17.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer18) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer18.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer19) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer19.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer20) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer20.play();
_global.hostility = 1;
}
this._x = badshipgrey1x;
_global.badshipx = badshipgrey1x;
this._y = badshipgrey1y;
_global.badshipy = badshipgrey1y;
if (Key.isDown(65)) {
badshipgrey1x += _global.cameramoveright;
}
if (Key.isDown(68)) {
badshipgrey1x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
badshipgrey1y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
badshipgrey1y += _global.cameramoveup;
}
if (health <= 0) {
this.gotoAndStop(35);
badshipalive = 0;
badshipgreyxspeed = 0;
badshipgreyyspeed = 0;
badshipgreychase = 0;
}
}
if (health > 0) {
if (chaserengage == 1) {
badshipgreychase = 1;
chaserengage = 0;
}
}
if (badshiprandomlazer == 5 && badshipalive == 1 && badshipgreychase == 1 && _global.hostility == 1) {
++_global.badlazeri;
_root.attachMovie('badlazer', 'badlazer' + _global.badlazeri, _root.getNextHighestDepth());
_root['badlazer' + _global.badlazeri]._x = this._x;
_root['badlazer' + _global.badlazeri]._y = this._y;
}
if (badshipgreychase == 1) {
if (_global.playerx < badshipgrey1x + randomdirectionvar2 && badshipgreyalive == 1) {
badshipgrey1x -= badshipgreyxspeed;
}
if (_global.playerx > badshipgrey1x + randomdirectionvar3 && badshipgreyalive == 1) {
badshipgrey1x += badshipgreyxspeed;
}
if (_global.playery < badshipgrey1y + randomdirectionvar4 && badshipgreyalive == 1) {
badshipgrey1y -= badshipgreyyspeed;
}
if (_global.playery - randomdirectionvar > badshipgrey1y && badshipgreyalive == 1) {
badshipgrey1y += badshipgreyyspeed;
}
}
};
stop();
}
instance of movieClip 29 {
onClipEvent (load) {
badshipalive = 1;
health = 1;
moneygive = 0;
movementsensor = 0;
xload = this._x;
yload = this._y;
}
onClipEvent (enterFrame) {
this.gotoAndStop(2);
if (xload2 > xload) {
this.gotoAndStop(2);
}
if (xload2 < xload) {
this.gotoAndStop(2);
}
}
}
frame 2 {
badshipalive = 0;
badshipgreyxspeed = 0;
badshipgreyyspeed = 0;
badshipend = 0;
badshipalive = 1;
health = 1;
badshipgreyxspeed = 0.3;
badshipgreyyspeed = 0.6;
chaserengage = 1;
badshipgrey1x = this._x;
badshipgrey1y = this._y;
badshipgreychase = 1;
badshipgreyalive = 1;
this.onEnterFrame = function () {
this._x = badshipgrey1x;
this._y = badshipgrey1y;
if (Key.isDown(65)) {
badshipgrey1x += _global.cameramoveright;
}
if (Key.isDown(68)) {
badshipgrey1x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
badshipgrey1y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
badshipgrey1y += _global.cameramoveup;
}
if (_global.gameover == 1) {
this.removeMovieClip();
}
};
}
frame 28 {
badshipalive = 0;
badshipgreyxspeed = 0;
badshipgreyyspeed = 0;
badshipend = 0;
badshipalive = 1;
health = 1;
badshipgreyxspeed = 0.3;
badshipgreyyspeed = 0.6;
chaserengage = 1;
badshipgrey1x = this._x;
badshipgrey1y = this._y;
bodytimer = 0;
badshipgreychase = 1;
badshipgreyalive = 1;
this.onEnterFrame = function () {
if (_global.gameover == 1) {
this.removeMovieClip();
}
this._x = badshipgrey1x;
this._y = badshipgrey1y;
if (Key.isDown(65)) {
badshipgrey1x += _global.cameramoveright;
}
if (Key.isDown(68)) {
badshipgrey1x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
badshipgrey1y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
badshipgrey1y += _global.cameramoveup;
}
};
stop();
}
frame 29 {
gotoAndStop(28);
}
frame 30 {
gotoAndStop(29);
}
frame 31 {
gotoAndStop(29);
}
frame 32 {
gotoAndStop(29);
}
frame 33 {
gotoAndStop(29);
}
frame 34 {
gotoAndStop(29);
}
frame 35 {
badshipalive = 0;
badshipgreyxspeed = 0;
badshipgreyyspeed = 0;
badshipend = 0;
badshipalive = 1;
health = 1;
badshipgreyxspeed = 0.3;
badshipgreyyspeed = 0.6;
chaserengage = 1;
badshipgrey1x = this._x;
badshipgrey1y = this._y;
badshipgreychase = 1;
badshipgreyalive = 1;
bodytimer = 0;
coinshow = 0;
killcountadd = 0;
if (killcountadd == 0) {
killcountadd = 1;
}
this.onEnterFrame = function () {
if (_global.gameover == 1) {
this.removeMovieClip();
}
this._x = badshipgrey1x;
this._y = badshipgrey1y;
if (Key.isDown(65)) {
badshipgrey1x += _global.cameramoveright;
}
if (Key.isDown(68)) {
badshipgrey1x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
badshipgrey1y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
badshipgrey1y += _global.cameramoveup;
}
};
stop();
}
frame 36 {
gotoAndStop(35);
this.enemy1shotdeath.gotoAndStop(33);
}
frame 37 {
gotoAndStop(35);
}
frame 38 {
gotoAndStop(35);
}
}
movieClip 116 {
frame 35 {
this.removeMovieClip();
stop();
}
}
movieClip 117 {
frame 86 {
stop();
}
}
movieClip 118 tanktop {
frame 1 {
_global.cannonbolti = 0;
badshipalive = 1;
cannonalive = 1;
health = 25;
tanktimer = 0;
myRadians = Math.atan2(_root.warrior._y - this._y, _root.warrior._x - this._x);
myDegrees = Math.round(myRadians * 180 / Math.PI);
this._rotation = myDegrees + 90;
this.onEnterFrame = function () {
tanktimer += 1;
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (_global.bulletfiring == 1) {
if (this.hitTest(_root.lazer0) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer0.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer1) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer1.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer2) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer2.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer3) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer3.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer4) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer4.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer5) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer5.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer6) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer6.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer7) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer7.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer8) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer8.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer9) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer9.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer10) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer10.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer11) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer11.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer12) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer12.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer13) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer13.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer14) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer14.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer15) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer15.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer16) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer16.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer17) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer17.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer18) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer18.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer19) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer19.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer20) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer20.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer21) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer21.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer22) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer22.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer23) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer23.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer24) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer24.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer25) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer25.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer26) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer26.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer27) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer27.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer28) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer28.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer29) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer29.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer30) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer30.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer31) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer31.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer32) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer32.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer33) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer33.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer34) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer34.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer35) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer35.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer36) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer36.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer37) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer37.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer38) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer38.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer39) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer39.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer40) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer40.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer41) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer41.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer42) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer42.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer43) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer43.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer44) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer44.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer45) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer45.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer46) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer46.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer47) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer47.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer48) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer48.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer49) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer49.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer50) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer50.play();
_global.hostility = 1;
}
}
if (_global.hostility == 1 && tanktimer >= 200 && cannonalive == 1) {
tanktimer = 0;
_root.attachMovie('cannonbolt', 'cannonbolt' + _global.cannonbolti, _root.getNextHighestDepth());
_root['cannonbolt' + _global.cannonbolti]._x = this._x;
_root['cannonbolt' + _global.cannonbolti]._y = this._y;
++_global.cannonbolti;
}
if (_global.walking == 1) {
myRadians = Math.atan2(_root.warrior._y - this._y, _root.warrior._x - this._x);
myDegrees = Math.round(myRadians * 180 / Math.PI);
this._rotation = myDegrees + 90;
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
cannonalive = 0;
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {
this._x = -9999;
this._y = -9999;
this.removeMovieClip();
};
stop();
}
}
movieClip 120 {
frame 1 {
stop();
}
frame 2 {
this.removeMovieClip();
stop();
}
}
movieClip 121 cannonbolt {
frame 1 {
speed = 10;
lazerlife = 0;
lazerburned = 0;
myRadians = Math.atan2(_root.warrior._y - this._y, _root.warrior._x - this._x);
myDegrees = Math.round(myRadians * 180 / Math.PI);
this._rotation = myDegrees + 90;
cannonx = _global.topcannonx;
cannony = _global.topcannony;
playerx = _global.playerx;
playery = _global.playery;
this.onEnterFrame = function () {
lazerlife += 1;
if (lazerburned == 0) {
}
if (lazerlife > 175) {
lazerburned = 1;
lazerlife = 0;
gotoAndPlay(2);
}
if (this._y > 700) {
}
if (this._x > 900) {
}
if (this._x < 0) {
}
if (Key.isDown(65) && lazerburned == 0) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68) && lazerburned == 0) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83) && lazerburned == 0) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87) && lazerburned == 0) {
this._y += _global.cameramoveup;
}
};
stop();
}
instance of movieClip 120 {
onClipEvent (load) {
lazerlife = 0;
}
onClipEvent (enterFrame) {
lazerlife += 1;
if (lazerlife < 175) {
this._y -= 5;
} else {
this._y -= 9999;
this.gotoAndStop(2);
this.removeMovieClip();
}
}
}
frame 4 {
}
frame 5 {
gotoAndStop(7);
}
frame 6 {
decallife = 0;
this.onEnterFrame = function () {
decallife += 1;
if (decallife > 200) {
this.removeMovieClip();
}
if (Key.isDown(65)) {
this._x += _global.cameramove;
}
if (Key.isDown(68)) {
this._x -= _global.cameramove;
}
if (Key.isDown(83)) {
this._y -= _global.cameramove;
}
if (Key.isDown(87)) {
this._y += _global.cameramove;
}
};
stop();
}
frame 7 {
this.removeMovieClip();
}
}
movieClip 124 expbarrell {
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (this.hitTest(_root.lazer0) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer0.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer1) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer1.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer2) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer2.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer3) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer3.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer4) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer4.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer5) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer5.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer6) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer6.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer7) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer7.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer8) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer8.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer9) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer9.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer10) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer10.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer11) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer11.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer12) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer12.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer13) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer13.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer14) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer14.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer15) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer15.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer16) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer16.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer17) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer17.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer18) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer18.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer19) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer19.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer20) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer20.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer21) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer21.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer22) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer22.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer23) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer23.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer24) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer24.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer25) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer25.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer26) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer26.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer27) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer27.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer28) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer28.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer29) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer29.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer30) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer30.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer31) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer31.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer32) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer32.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer33) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer33.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer34) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer34.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer35) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer35.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer36) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer36.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer37) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer37.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer38) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer38.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer39) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer39.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer40) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer40.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer41) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer41.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer42) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer42.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer43) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer43.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer44) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer44.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer45) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer45.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer46) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer46.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer47) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer47.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer48) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer48.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer49) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer49.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer50) && badshipalive == 1) {
health -= 1;
_global.score += 10;
_root.lazer50.play();
_global.hostility = 1;
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (this.hitTest(_root.badgreyship0) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship0.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship1) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship1.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship2) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship2.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship3) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship3.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship4) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship4.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship5) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship5.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship6) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship6.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship7) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship7.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship8) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship8.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship9) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship9.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship10) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship10.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship11) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship11.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship12) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship12.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship13) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship13.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship14) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship14.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship15) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship15.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship16) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship16.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship17) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship17.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship18) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship18.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship19) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship19.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship20) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship20.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship21) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship21.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship22) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship22.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship23) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship23.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship24) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship24.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship25) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship25.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship26) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship26.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship27) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship27.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship28) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship28.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship29) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship29.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship30) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship30.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship31) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship31.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship32) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship32.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship33) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship33.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship34) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship34.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship35) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship35.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship36) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship36.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship37) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship37.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship38) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship38.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship39) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship39.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship40) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship40.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship41) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship41.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship42) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship42.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship43) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship43.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship44) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship44.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship45) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship45.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship46) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship46.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship47) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship47.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship48) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship48.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship49) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship49.play();
_global.hostility = 1;
}
if (this.hitTest(_root.badgreyship50) && explosiondone == 0) {
_global.score += 10;
_root.badgreyship50.play();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell0) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell0.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell1) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell1.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell2) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell2.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell3) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell3.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell4) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell4.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell5) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell5.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell6) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell6.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell7) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell7.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell8) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell8.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell9) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell9.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell10) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell10.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell11) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell11.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell12) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell12.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell13) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell13.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell14) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell14.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell15) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell15.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell16) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell16.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell17) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell17.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell18) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell18.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell19) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell19.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell20) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell20.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell21) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell21.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell22) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell22.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell23) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell23.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell24) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell24.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell25) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell25.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell26) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell26.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell27) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell27.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell28) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell28.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell29) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell29.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell30) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell30.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell31) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell31.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell32) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell32.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell33) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell33.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell34) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell34.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell35) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell35.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell36) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell36.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell37) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell37.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell38) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell38.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell39) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell39.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell40) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell40.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell41) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell41.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell42) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell42.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell43) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell43.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell44) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell44.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell45) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell45.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell46) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell46.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell47) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell47.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell48) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell48.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell49) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell49.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.expbarrell50) && explosiondone == 0) {
_global.score += 10;
(_root.expbarrell50.play())();
_global.hostility = 1;
}
if (this.hitTest(_root.tanktop1) && explosiondone == 0) {
_global.score += 10;
(_root.tanktop1.play())();
_global.hostility = 1;
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramoveup;
}
if (Key.isDown(87)) {
this._y += _global.cameramovedown;
}
};
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {
this._x = -9999;
this._y = -9999;
this.removeMovieClip();
};
stop();
}
}
movieClip 126 {
}
movieClip 127 exphitbox {
frame 15 {
this.removeMovieClip();
stop();
}
}
movieClip 139 {
}
movieClip 154 coin {
frame 1 {
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
instance of movieClip 139 {
onClipEvent (load) {
badshipalive = 1;
health = 1;
moneygive = 0;
}
onClipEvent (enterFrame) {
if (health <= 0) {
badshipalive = 0;
_parent.gotoAndStop(35);
}
if (this.hitTest(_root.warrior.car) && badshipalive == 1) {
_global.score += 10;
_parent.play();
_global.hostility = 1;
if (moneygive == 0) {
_global.moneyamount += 1;
moneygive = 1;
}
}
}
}
frame 17 {
stop();
}
}
movieClip 156 bug {
}
frame 1 {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
frame 1 {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
frame 1 {
_root.onMouseDown = function () {};
}
frame 1 {
Mouse.show();
_global.gameover = 0;
stop();
}
// unknown tag 88 length 37
movieClip 159 {
frame 700 {
_root.play();
}
}
button 164 {
on (press) {
gotoAndStop(1341);
}
}
button 168 {
on (press) {
play();
}
}
movieClip 170 {
}
instance of movieClip 170 {
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 174 {
}
button 178 {
on (press) {
gotoAndStop(1236);
}
}
// unknown tag 88 length 217
frame 1236 {
stop();
}
movieClip 194 {
frame 221 {
stop();
}
}
button 195 {
on (press) {
play();
stopAllSounds();
}
}
button 197 {
on (press) {
play();
}
}
movieClip 200 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance of movieClip 200 {
}
frame 1237 {
stop();
}
button 207 {
on (release) {
_root.play();
}
}
movieClip 208 {
frame 200 {
stop();
}
}
movieClip 209 {
frame 130 {
stop();
}
}
button 212 {
on (press) {
gotoAndStop(1341);
stopAllSounds();
}
}
frame 1238 {
stop();
}
movieClip 216 {
frame 130 {
stop();
}
}
frame 1239 {
stop();
}
movieClip 219 {
frame 130 {
stop();
}
}
frame 1240 {
stop();
}
movieClip 222 {
frame 130 {
stop();
}
}
frame 1241 {
stop();
}
movieClip 225 {
frame 130 {
stop();
}
}
frame 1242 {
stop();
}
movieClip 228 {
frame 130 {
stop();
}
}
frame 1243 {
stop();
}
movieClip 231 {
frame 130 {
stop();
}
}
frame 1244 {
stop();
}
movieClip 236 {
}
button 240 {
on (release) {
_root.play();
stopAllSounds();
}
}
movieClip 241 {
frame 130 {
stop();
}
}
frame 1341 {
}
frame 1341 {
_root._quality = 'LOW';
Mouse.hide();
ambientSound = new Sound(this);
ambientSound.attachSound('ambientnoise');
ambientSound.start(0, 99);
var eating = false;
arrive = 1;
_global.missioncomplete = 0;
_global.kills = 0;
_global.killcount = 0;
_global.cameramoveup = 3;
_global.cameramovedown = 3;
_global.cameramoveleft = 3;
_global.cameramoveright = 3;
_global.lazerreset = 0;
_global.lazeri = 0;
_global.badlazeri = 0;
_global.hostility = 1;
_global.comlinkshow = 0;
_global.coini = 0;
_global.moneyamount = 0;
walkdown = 0;
walkingdown = 0;
walkingleft = 0;
walkingright = 0;
walkingup = 0;
ambientover = 0;
collisionup = 0;
var speed = 3;
var enemySpd = 2;
_root.onMouseUp = function () {};
_root.onMouseDown = function () {
_root.warrior.car.muzzleflash.gotoAndPlay(2);
ambientSound.stop('ambientnoise');
if (_global.lazeri >= 20) {
_global.lazeri = 0;
}
++_global.lazeri;
_root.attachMovie('lazer', 'lazer' + _global.lazeri, _root.getNextHighestDepth());
_root['lazer' + _global.lazeri]._x = warrior._x;
_root['lazer' + _global.lazeri]._y = warrior._y;
};
warrior.onEnterFrame = function () {
_global.topcannonx = topcannon._rotation + 90;
_global.topcannony = topcannon._rotation + 90;
_root.kills.text = _global.kills;
_root.killcount.text = _global.killcount;
if (_global.kills == 20) {
_global.missioncomplete = 1;
_root.missioncomplete.play();
}
if (_global.killcount == 50) {
_root.play();
}
_global.playerx = warrior._x;
_global.playery = warrior._y;
plyrx.text = _global.playerx;
abbhp.text = 100;
plyry.text = _global.playery;
abbx.text = _global.badshipx;
abby.text = _global.badshipy;
if (this.car.hitTest(mc_backgroundcol2.wallhitbox2) || (this.car.hitTest(mc_backgroundcol2.wallhitbox) || (this.car.hitTest(mc_backgroundcol2.wallhitboxrightwallU) || (this.car.hitTest(mc_backgroundcol2.wallhitboxleftwallU) || (this.car.hitTest(mc_backgroundcol2.wallhitboxrightwallfU) || (this.car.hitTest(mc_background.aawallhitboxleftwallfU) || (this.car.hitTest(mc_backgroundcol2.wallhitboxredwallU) || (this.car.hitTest(mc_backgroundcol2.wallhitboxvendingU) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetableU) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable2U) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable3U) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable4U) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable5U) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable6U) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable7U) || this.car.hitTest(mc_backgroundcol2.wallhitboxcarU)))))))))))))))) {
_global.cameramoveup = 0;
} else {
_global.cameramoveup = 3;
}
if (this.car.hitTest(mc_backgroundcol2.wallhitbox3) || (this.car.hitTest(mc_backgroundcol2.wallhitbox4) || (this.car.hitTest(mc_backgroundcol2.wallhitboxleftfR) || (this.car.hitTest(mc_backgroundcol2.wallhitboxrightfR) || (this.car.hitTest(mc_backgroundcol2.wallhitboxrightwallR2) || (this.car.hitTest(mc_backgroundcol2.wallhitboxredwallR) || (this.car.hitTest(mc_backgroundcol2.wallhitboxvendingR) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetableL) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable2L) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable3L) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable4L) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable5L) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable6L) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable7L) || (this.car.hitTest(wallhitboxredwallL) || this.car.hitTest(mc_backgroundcol2.wallhitboxcarL)))))))))))))))) {
_global.cameramoveleft = 0;
} else {
_global.cameramoveleft = 3;
}
if (this.car.hitTest(mc_backgroundcol2.wallhitbox5) || (this.car.hitTest(mc_backgroundcol2.wallhitboxrightwallL) || (this.car.hitTest(mc_backgroundcol2.wallhitboxrightfL) || (s.car.hitTest(mc_backgroundcol2.wallhitboxleftfL) || (this.car.hitTest(mc_backgroundcol2.wallhitboxleftfL) || (this.car.hitTest(mc_backgroundcol2.wallhitboxleftwallL2) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetableR) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable2R) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable3R) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable4R) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable5R) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable6R) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable7R) || this.car.hitTest(mc_backgroundcol2.wallhitboxcarR)))))))))))))) {
_global.cameramoveright = 0;
} else {
_global.cameramoveright = 3;
}
if (this.car.hitTest(mc_backgroundcol2.wallhitbox6) || (this.car.hitTest(mc_backgroundcol2.wallhitboxrightwallD) || (this.car.hitTest(mc_backgroundcol2.wallhitboxleftwallD) || (this.car.hitTest(mc_backgroundcol2.wallhitboxredwallD) || (this.car.hitTest(mc_backgroundcol2.wallhitboxvendingD) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetableD) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable2D) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable3D) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable4D) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable5D) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable6D) || (this.car.hitTest(mc_backgroundcol2.wallhitboxcafetable7D) || this.car.hitTest(mc_backgroundcol2.wallhitboxcarD))))))))))))) {
_global.cameramovedown = 0;
} else {
_global.cameramovedown = 3;
}
if (Key.isDown(16)) {
_global.shiftdown = 1;
} else {
_global.shiftdown = 0;
}
_global.foodx = food._x;
warrior._x = bug._x;
warrior._y = bug._y;
if (Key.isDown(65)) {
_global.walking = 1;
directionwalk1 = 1;
walkingright = 1;
_root.warrior.legs.gotoAndStop(2);
mc_background._x += _global.cameramoveright;
mc_background2._x += _global.cameramoveright;
mc_background3._x += _global.cameramoveright;
mc_background4._x += _global.cameramoveright;
mc_background5._x += _global.cameramoveright;
mc_background11._x += _global.cameramoveright;
mc_background12._x += _global.cameramoveright;
mc_background13._x += _global.cameramoveright;
mc_background14._x += _global.cameramoveright;
mc_backgroundcol._x += _global.cameramoveright;
mc_backgroundcol2._x += _global.cameramoveright;
mc_frontground._x += _global.cameramoveright;
mc_frontground2._x += _global.cameramoveright;
footplace._x += _global.cameramoveright;
} else {
directionwalk1 = 0;
walkingright = 0;
}
if (Key.isDown(68)) {
_global.walking = 1;
directionwalk2 = 1;
walkingleft = 1;
_root.warrior.legs.gotoAndStop(2);
mc_frontground._x -= _global.cameramoveleft;
mc_frontground2._x -= _global.cameramoveleft;
mc_background._x -= _global.cameramoveleft;
mc_background2._x -= _global.cameramoveleft;
mc_background3._x -= _global.cameramoveleft;
mc_background4._x -= _global.cameramoveleft;
mc_background5._x -= _global.cameramoveleft;
mc_background11._x -= _global.cameramoveleft;
mc_background12._x -= _global.cameramoveleft;
mc_background13._x -= _global.cameramoveleft;
mc_background14._x -= _global.cameramoveleft;
mc_backgroundcol._x -= _global.cameramoveleft;
mc_backgroundcol2._x -= _global.cameramoveleft;
footplace._x -= _global.cameramoveleft;
} else {
directionwalk2 = 0;
walkingleft = 0;
}
if (Key.isDown(87) && collisionup == 1) {
_global.cameramovey = 0;
}
if (Key.isDown(83)) {
_global.cameramoveup = 3;
_global.walking = 1;
directionwalk3 = 1;
walkingdown = 1;
_root.warrior.legs.gotoAndStop(2);
mc_frontground._y -= _global.cameramovedown;
mc_frontground2._y -= _global.cameramovedown;
mc_background._y -= _global.cameramovedown;
mc_background2._y -= _global.cameramovedown;
mc_background3._y -= _global.cameramovedown;
mc_background4._y -= _global.cameramovedown;
mc_background5._y -= _global.cameramovedown;
mc_background11._y -= _global.cameramovedown;
mc_background12._y -= _global.cameramovedown;
mc_background13._y -= _global.cameramovedown;
mc_background14._y -= _global.cameramovedown;
mc_backgroundcol._y -= _global.cameramovedown;
mc_backgroundcol2._y -= _global.cameramovedown;
footplace._y -= _global.cameramovedown;
} else {
directionwalk3 = 0;
walkingdown = 0;
}
if (Key.isDown(87) && collisionup == 0) {
walkingup = 1;
_global.walking = 1;
directionwalk4 = 1;
_root.warrior.legs.gotoAndStop(2);
mc_frontground._y += _global.cameramoveup;
mc_frontground2._y += _global.cameramoveup;
mc_background._y += _global.cameramoveup;
mc_background2._y += _global.cameramoveup;
mc_background3._y += _global.cameramoveup;
mc_background4._y += _global.cameramoveup;
mc_background5._y += _global.cameramoveup;
mc_background11._y += _global.cameramoveup;
mc_background12._y += _global.cameramoveup;
mc_background13._y += _global.cameramoveup;
mc_background14._y += _global.cameramoveup;
mc_backgroundcol._y += _global.cameramoveup;
mc_backgroundcol2._y += _global.cameramoveup;
footplace._y += _global.cameramoveup;
} else {
directionwalk4 = 0;
walkingup = 0;
}
if (directionwalk1 == 0 && directionwalk2 == 0 && directionwalk3 == 0 && directionwalk4 == 0) {
_global.walking = 0;
_root.warrior.legs.gotoAndStop(1);
}
if (directionwalk3 == 1) {
}
};
footplace.onEnterFrame = function () {
footplace._x = food._x;
footplace._y = food._y;
};
bug.onEnterFrame = function () {
var v3 = this._x - food._x;
var v2 = this._y - food._y;
};
stop();
}
frame 1341 {
_global.exphitboxi = 0;
_global.gameover = 0;
}
movieClip 245 {
}
movieClip 246 {
}
movieClip 247 {
}
movieClip 250 {
}
movieClip 253 {
}
movieClip 256 {
}
movieClip 259 {
}
movieClip 262 {
}
movieClip 265 {
}
movieClip 268 {
}
movieClip 275 {
}
movieClip 277 {
}
movieClip 279 {
frame 1 {
}
}
instance crosshairplace of movieClip 279 {
onClipEvent (load) {
mousex = _root._xmouse;
mousey = _root._ymouse;
}
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
startDrag(_parent.crosshairplace, true);
if (_root._xmouse == mousex && _root._ymouse == mousey) {
} else {
mousex = _root._xmouse;
mousey = _root._ymouse;
}
}
}
movieClip 281 {
}
instance of movieClip 281 {
onClipEvent (load) {
badgreyshiptombalive = 1;
badgreyshipspawni2 = 0;
badgreyshiptombstart = 1;
codetimer = 0;
}
onClipEvent (enterFrame) {
randomize1 = random(450);
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
if (randomize1 == 336 && badgreyshiptombalive == 1 && badgreyshiptombstart == 1) {
if (badgreyshipspawni2 >= 25) {
badgreyshiptombalive = 0;
}
_root.attachMovie('badgreyship', 'badgreyship' + badgreyshipspawni2, _root.getNextHighestDepth());
_root['badgreyship' + badgreyshipspawni2]._x = this._x + 60;
_root['badgreyship' + badgreyshipspawni2]._y = this._y + 60;
++badgreyshipspawni2;
}
}
}
instance of movieClip 281 {
onClipEvent (load) {
badgreyshiptombalive = 1;
badgreyshipspawni2 = 26;
badgreyshiptombstart = 1;
codetimer = 0;
}
onClipEvent (enterFrame) {
randomize1 = random(450);
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
if (randomize1 == 336 && badgreyshiptombalive == 1 && badgreyshiptombstart == 1) {
if (badgreyshipspawni2 >= 50) {
badgreyshiptombalive = 0;
}
_root.attachMovie('badgreyship', 'badgreyship' + badgreyshipspawni2, _root.getNextHighestDepth());
_root['badgreyship' + badgreyshipspawni2]._x = this._x + 60;
_root['badgreyship' + badgreyshipspawni2]._y = this._y + 60;
++badgreyshipspawni2;
}
}
}
movieClip 282 {
}
movieClip 298 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (this.hitTest(_root.lazer0)) {
health -= 1;
_root.lazer0.play();
}
if (this.hitTest(_root.lazer1)) {
health -= 1;
_root.lazer1.play();
}
if (this.hitTest(_root.lazer2)) {
health -= 1;
_root.lazer2.play();
}
if (this.hitTest(_root.lazer3)) {
health -= 1;
_root.lazer3.play();
}
if (this.hitTest(_root.lazer4)) {
health -= 1;
_root.lazer4.play();
}
if (this.hitTest(_root.lazer5)) {
health -= 1;
_root.lazer5.play();
}
if (this.hitTest(_root.lazer6)) {
health -= 1;
_root.lazer6.play();
}
if (this.hitTest(_root.lazer7)) {
health -= 1;
_root.lazer7.play();
}
if (this.hitTest(_root.lazer8)) {
health -= 1;
_root.lazer8.play();
}
if (this.hitTest(_root.lazer9)) {
health -= 1;
_root.lazer9.play();
}
if (this.hitTest(_root.lazer10)) {
health -= 1;
_root.lazer10.play();
}
if (this.hitTest(_root.lazer11)) {
health -= 1;
_root.lazer11.play();
}
if (this.hitTest(_root.lazer12)) {
health -= 1;
_root.lazer12.play();
}
if (this.hitTest(_root.lazer13)) {
health -= 1;
_root.lazer13.play();
}
if (this.hitTest(_root.lazer14)) {
health -= 1;
_root.lazer14.play();
}
if (this.hitTest(_root.lazer15)) {
health -= 1;
_root.lazer15.play();
}
if (this.hitTest(_root.lazer16)) {
health -= 1;
_root.lazer16.play();
}
if (this.hitTest(_root.lazer17)) {
health -= 1;
_root.lazer17.play();
}
if (this.hitTest(_root.lazer18)) {
health -= 1;
_root.lazer18.play();
}
if (this.hitTest(_root.lazer19)) {
health -= 1;
_root.lazer19.play();
}
if (this.hitTest(_root.lazer20)) {
health -= 1;
_root.lazer20.play();
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 19 {
stop();
}
frame 21 {
gotoAndStop(19);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 318 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (this.hitTest(_root.lazer0)) {
health -= 1;
_root.lazer0.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer1)) {
health -= 1;
_root.lazer1.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer2)) {
health -= 1;
_root.lazer2.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer3)) {
health -= 1;
_root.lazer3.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer4)) {
health -= 1;
_root.lazer4.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer5)) {
health -= 1;
_root.lazer5.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer6)) {
health -= 1;
_root.lazer6.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer7)) {
health -= 1;
_root.lazer7.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer8)) {
health -= 1;
_root.lazer8.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer9)) {
health -= 1;
_root.lazer9.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer10)) {
health -= 1;
_root.lazer10.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer11)) {
health -= 1;
_root.lazer11.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer12)) {
health -= 1;
_root.lazer12.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer13)) {
health -= 1;
_root.lazer13.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer14)) {
health -= 1;
_root.lazer14.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer15)) {
health -= 1;
_root.lazer15.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer16)) {
health -= 1;
_root.lazer16.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer17)) {
health -= 1;
_root.lazer17.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer18)) {
health -= 1;
_root.lazer18.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer19)) {
health -= 1;
_root.lazer19.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer20)) {
health -= 1;
_root.lazer20.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer21)) {
health -= 1;
_root.lazer21.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer22)) {
health -= 1;
_root.lazer22.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer23)) {
health -= 1;
_root.lazer23.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer24)) {
health -= 1;
_root.lazer24.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer25)) {
health -= 1;
_root.lazer25.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer26)) {
health -= 1;
_root.lazer26.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer27)) {
health -= 1;
_root.lazer27.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer28)) {
health -= 1;
_root.lazer28.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer29)) {
health -= 1;
_root.lazer29.play();
_global.hostility = 1;
}
if (this.hitTest(_root.lazer30)) {
health -= 1;
_root.lazer30.play();
_global.hostility = 1;
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 25 {
stop();
}
frame 27 {
gotoAndStop(25);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 321 {
frame 1 {
badshipalive = 0;
badshipgreyxspeed = 0;
badshipgreyyspeed = 0;
badshipend = 0;
badshipalive = 1;
health = 1;
badshipgreyxspeed = 0.3;
badshipgreyyspeed = 0.6;
chaserengage = 1;
badshipgrey1x = this._x;
badshipgrey1y = this._y;
badshipgreychase = 1;
badshipgreyalive = 1;
this.onEnterFrame = function () {
this._x = badshipgrey1x;
this._y = badshipgrey1y;
if (_global.gameover == 1) {
this.removeMovieClip();
}
};
stop();
}
frame 6 {
badshipalive = 0;
badshipgreyxspeed = 0;
badshipgreyyspeed = 0;
badshipend = 0;
badshipalive = 1;
health = 1;
badshipgreyxspeed = 0.3;
badshipgreyyspeed = 0.6;
chaserengage = 1;
badshipgrey1x = this._x;
badshipgrey1y = this._y;
badshipgreychase = 1;
badshipgreyalive = 1;
this.onEnterFrame = function () {
this._x = badshipgrey1x;
this._y = badshipgrey1y;
if (_global.gameover == 1) {
this.removeMovieClip();
}
};
}
frame 25 {
if (_global.missioncomplete == 0) {
_root.play();
}
if (_global.missioncomplete == 1) {
_root.gotoAndPlay(1372);
}
stop();
}
frame 27 {
gotoAndStop(11);
}
}
movieClip 322 {
frame 5 {
badshipalive = 0;
badshipgreyxspeed = 0;
badshipgreyyspeed = 0;
badshipend = 0;
badshipalive = 1;
health = 1;
badshipgreyxspeed = 0.3;
badshipgreyyspeed = 0.6;
chaserengage = 1;
badshipgrey1x = this._x;
badshipgrey1y = this._y;
badshipgreychase = 1;
badshipgreyalive = 1;
this.onEnterFrame = function () {
this._x = badshipgrey1x;
this._y = badshipgrey1y;
if (Key.isDown(65)) {
badshipgrey1x += _global.cameramoveright;
}
if (Key.isDown(68)) {
badshipgrey1x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
badshipgrey1y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
badshipgrey1y += _global.cameramoveup;
}
if (_global.gameover == 1) {
this.removeMovieClip();
}
};
}
frame 24 {
_root.gotoAndPlay(1342);
stop();
}
frame 26 {
gotoAndStop(11);
}
}
movieClip 340 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (this.hitTest(_root.lazer0)) {
health -= 1;
_root.lazer0.play();
}
if (this.hitTest(_root.lazer1)) {
health -= 1;
_root.lazer1.play();
}
if (this.hitTest(_root.lazer2)) {
health -= 1;
_root.lazer2.play();
}
if (this.hitTest(_root.lazer3)) {
health -= 1;
_root.lazer3.play();
}
if (this.hitTest(_root.lazer4)) {
health -= 1;
_root.lazer4.play();
}
if (this.hitTest(_root.lazer5)) {
health -= 1;
_root.lazer5.play();
}
if (this.hitTest(_root.lazer6)) {
health -= 1;
_root.lazer6.play();
}
if (this.hitTest(_root.lazer7)) {
health -= 1;
_root.lazer7.play();
}
if (this.hitTest(_root.lazer8)) {
health -= 1;
_root.lazer8.play();
}
if (this.hitTest(_root.lazer9)) {
health -= 1;
_root.lazer9.play();
}
if (this.hitTest(_root.lazer10)) {
health -= 1;
_root.lazer10.play();
}
if (this.hitTest(_root.lazer11)) {
health -= 1;
_root.lazer11.play();
}
if (this.hitTest(_root.lazer12)) {
health -= 1;
_root.lazer12.play();
}
if (this.hitTest(_root.lazer13)) {
health -= 1;
_root.lazer13.play();
}
if (this.hitTest(_root.lazer14)) {
health -= 1;
_root.lazer14.play();
}
if (this.hitTest(_root.lazer15)) {
health -= 1;
_root.lazer15.play();
}
if (this.hitTest(_root.lazer16)) {
health -= 1;
_root.lazer16.play();
}
if (this.hitTest(_root.lazer17)) {
health -= 1;
_root.lazer17.play();
}
if (this.hitTest(_root.lazer18)) {
health -= 1;
_root.lazer18.play();
}
if (this.hitTest(_root.lazer19)) {
health -= 1;
_root.lazer19.play();
}
if (this.hitTest(_root.lazer20)) {
health -= 1;
_root.lazer20.play();
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 25 {
stop();
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 343 {
frame 1 {
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
}
movieClip 363 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (this.hitTest(_root.lazer0)) {
health -= 1;
_root.lazer0.play();
}
if (this.hitTest(_root.lazer1)) {
health -= 1;
_root.lazer1.play();
}
if (this.hitTest(_root.lazer2)) {
health -= 1;
_root.lazer2.play();
}
if (this.hitTest(_root.lazer3)) {
health -= 1;
_root.lazer3.play();
}
if (this.hitTest(_root.lazer4)) {
health -= 1;
_root.lazer4.play();
}
if (this.hitTest(_root.lazer5)) {
health -= 1;
_root.lazer5.play();
}
if (this.hitTest(_root.lazer6)) {
health -= 1;
_root.lazer6.play();
}
if (this.hitTest(_root.lazer7)) {
health -= 1;
_root.lazer7.play();
}
if (this.hitTest(_root.lazer8)) {
health -= 1;
_root.lazer8.play();
}
if (this.hitTest(_root.lazer9)) {
health -= 1;
_root.lazer9.play();
}
if (this.hitTest(_root.lazer10)) {
health -= 1;
_root.lazer10.play();
}
if (this.hitTest(_root.lazer11)) {
health -= 1;
_root.lazer11.play();
}
if (this.hitTest(_root.lazer12)) {
health -= 1;
_root.lazer12.play();
}
if (this.hitTest(_root.lazer13)) {
health -= 1;
_root.lazer13.play();
}
if (this.hitTest(_root.lazer14)) {
health -= 1;
_root.lazer14.play();
}
if (this.hitTest(_root.lazer15)) {
health -= 1;
_root.lazer15.play();
}
if (this.hitTest(_root.lazer16)) {
health -= 1;
_root.lazer16.play();
}
if (this.hitTest(_root.lazer17)) {
health -= 1;
_root.lazer17.play();
}
if (this.hitTest(_root.lazer18)) {
health -= 1;
_root.lazer18.play();
}
if (this.hitTest(_root.lazer19)) {
health -= 1;
_root.lazer19.play();
}
if (this.hitTest(_root.lazer20)) {
health -= 1;
_root.lazer20.play();
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 24 {
stop();
}
frame 25 {
gotoAndStop(24);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 383 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (this.hitTest(_root.lazer0)) {
health -= 1;
_root.lazer0.play();
}
if (this.hitTest(_root.lazer1)) {
health -= 1;
_root.lazer1.play();
}
if (this.hitTest(_root.lazer2)) {
health -= 1;
_root.lazer2.play();
}
if (this.hitTest(_root.lazer3)) {
health -= 1;
_root.lazer3.play();
}
if (this.hitTest(_root.lazer4)) {
health -= 1;
_root.lazer4.play();
}
if (this.hitTest(_root.lazer5)) {
health -= 1;
_root.lazer5.play();
}
if (this.hitTest(_root.lazer6)) {
health -= 1;
_root.lazer6.play();
}
if (this.hitTest(_root.lazer7)) {
health -= 1;
_root.lazer7.play();
}
if (this.hitTest(_root.lazer8)) {
health -= 1;
_root.lazer8.play();
}
if (this.hitTest(_root.lazer9)) {
health -= 1;
_root.lazer9.play();
}
if (this.hitTest(_root.lazer10)) {
health -= 1;
_root.lazer10.play();
}
if (this.hitTest(_root.lazer11)) {
health -= 1;
_root.lazer11.play();
}
if (this.hitTest(_root.lazer12)) {
health -= 1;
_root.lazer12.play();
}
if (this.hitTest(_root.lazer13)) {
health -= 1;
_root.lazer13.play();
}
if (this.hitTest(_root.lazer14)) {
health -= 1;
_root.lazer14.play();
}
if (this.hitTest(_root.lazer15)) {
health -= 1;
_root.lazer15.play();
}
if (this.hitTest(_root.lazer16)) {
health -= 1;
_root.lazer16.play();
}
if (this.hitTest(_root.lazer17)) {
health -= 1;
_root.lazer17.play();
}
if (this.hitTest(_root.lazer18)) {
health -= 1;
_root.lazer18.play();
}
if (this.hitTest(_root.lazer19)) {
health -= 1;
_root.lazer19.play();
}
if (this.hitTest(_root.lazer20)) {
health -= 1;
_root.lazer20.play();
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 22 {
stop();
}
frame 23 {
gotoAndStop(22);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 399 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (this.hitTest(_root.lazer0)) {
health -= 1;
_root.lazer0.play();
}
if (this.hitTest(_root.lazer1)) {
health -= 1;
_root.lazer1.play();
}
if (this.hitTest(_root.lazer2)) {
health -= 1;
_root.lazer2.play();
}
if (this.hitTest(_root.lazer3)) {
health -= 1;
_root.lazer3.play();
}
if (this.hitTest(_root.lazer4)) {
health -= 1;
_root.lazer4.play();
}
if (this.hitTest(_root.lazer5)) {
health -= 1;
_root.lazer5.play();
}
if (this.hitTest(_root.lazer6)) {
health -= 1;
_root.lazer6.play();
}
if (this.hitTest(_root.lazer7)) {
health -= 1;
_root.lazer7.play();
}
if (this.hitTest(_root.lazer8)) {
health -= 1;
_root.lazer8.play();
}
if (this.hitTest(_root.lazer9)) {
health -= 1;
_root.lazer9.play();
}
if (this.hitTest(_root.lazer10)) {
health -= 1;
_root.lazer10.play();
}
if (this.hitTest(_root.lazer11)) {
health -= 1;
_root.lazer11.play();
}
if (this.hitTest(_root.lazer12)) {
health -= 1;
_root.lazer12.play();
}
if (this.hitTest(_root.lazer13)) {
health -= 1;
_root.lazer13.play();
}
if (this.hitTest(_root.lazer14)) {
health -= 1;
_root.lazer14.play();
}
if (this.hitTest(_root.lazer15)) {
health -= 1;
_root.lazer15.play();
}
if (this.hitTest(_root.lazer16)) {
health -= 1;
_root.lazer16.play();
}
if (this.hitTest(_root.lazer17)) {
health -= 1;
_root.lazer17.play();
}
if (this.hitTest(_root.lazer18)) {
health -= 1;
_root.lazer18.play();
}
if (this.hitTest(_root.lazer19)) {
health -= 1;
_root.lazer19.play();
}
if (this.hitTest(_root.lazer20)) {
health -= 1;
_root.lazer20.play();
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 18 {
stop();
}
frame 19 {
gotoAndStop(18);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 402 {
frame 1 {
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
}
movieClip 405 {
frame 1 {
this.onEnterFrame = function () {
if (this.hitTest(_root.lazer0)) {
health -= 1;
_root.lazer0.play();
}
if (this.hitTest(_root.lazer1)) {
health -= 1;
_root.lazer1.play();
}
if (this.hitTest(_root.lazer2)) {
health -= 1;
_root.lazer2.play();
}
if (this.hitTest(_root.lazer3)) {
health -= 1;
_root.lazer3.play();
}
if (this.hitTest(_root.lazer4)) {
health -= 1;
_root.lazer4.play();
}
if (this.hitTest(_root.lazer5)) {
health -= 1;
_root.lazer5.play();
}
if (this.hitTest(_root.lazer6)) {
health -= 1;
_root.lazer6.play();
}
if (this.hitTest(_root.lazer7)) {
health -= 1;
_root.lazer7.play();
}
if (this.hitTest(_root.lazer8)) {
health -= 1;
_root.lazer8.play();
}
if (this.hitTest(_root.lazer9)) {
health -= 1;
_root.lazer9.play();
}
if (this.hitTest(_root.lazer10)) {
health -= 1;
_root.lazer10.play();
}
if (this.hitTest(_root.lazer11)) {
health -= 1;
_root.lazer11.play();
}
if (this.hitTest(_root.lazer12)) {
health -= 1;
_root.lazer12.play();
}
if (this.hitTest(_root.lazer13)) {
health -= 1;
_root.lazer13.play();
}
if (this.hitTest(_root.lazer14)) {
health -= 1;
_root.lazer14.play();
}
if (this.hitTest(_root.lazer15)) {
health -= 1;
_root.lazer15.play();
}
if (this.hitTest(_root.lazer16)) {
health -= 1;
_root.lazer16.play();
}
if (this.hitTest(_root.lazer17)) {
health -= 1;
_root.lazer17.play();
}
if (this.hitTest(_root.lazer18)) {
health -= 1;
_root.lazer18.play();
}
if (this.hitTest(_root.lazer19)) {
health -= 1;
_root.lazer19.play();
}
if (this.hitTest(_root.lazer20)) {
health -= 1;
_root.lazer20.play();
}
if (this.hitTest(_root.lazer21)) {
health -= 1;
_root.lazer21.play();
}
if (this.hitTest(_root.lazer22)) {
health -= 1;
_root.lazer22.play();
}
if (this.hitTest(_root.lazer23)) {
health -= 1;
_root.lazer23.play();
}
if (this.hitTest(_root.lazer24)) {
health -= 1;
_root.lazer24.play();
}
if (this.hitTest(_root.lazer25)) {
health -= 1;
_root.lazer25.play();
}
if (this.hitTest(_root.lazer26)) {
health -= 1;
_root.lazer26.play();
}
if (this.hitTest(_root.lazer27)) {
health -= 1;
_root.lazer27.play();
}
if (this.hitTest(_root.lazer28)) {
health -= 1;
_root.lazer28.play();
}
if (this.hitTest(_root.lazer29)) {
health -= 1;
_root.lazer29.play();
}
if (this.hitTest(_root.lazer30)) {
health -= 1;
_root.lazer30.play();
}
if (this.hitTest(_root.lazer31)) {
health -= 1;
_root.lazer31.play();
}
if (this.hitTest(_root.lazer32)) {
health -= 1;
_root.lazer32.play();
}
if (this.hitTest(_root.lazer33)) {
health -= 1;
_root.lazer33.play();
}
if (this.hitTest(_root.lazer34)) {
health -= 1;
_root.lazer34.play();
}
if (this.hitTest(_root.lazer35)) {
health -= 1;
_root.lazer35.play();
}
if (this.hitTest(_root.lazer36)) {
health -= 1;
_root.lazer36.play();
}
if (this.hitTest(_root.lazer37)) {
health -= 1;
_root.lazer37.play();
}
if (this.hitTest(_root.lazer38)) {
health -= 1;
_root.lazer38.play();
}
if (this.hitTest(_root.lazer39)) {
health -= 1;
_root.lazer39.play();
}
if (this.hitTest(_root.lazer40)) {
health -= 1;
_root.lazer40.play();
}
if (this.hitTest(_root.lazer41)) {
health -= 1;
_root.lazer41.play();
}
if (this.hitTest(_root.lazer42)) {
health -= 1;
_root.lazer42.play();
}
if (this.hitTest(_root.lazer43)) {
health -= 1;
_root.lazer43.play();
}
if (this.hitTest(_root.lazer44)) {
health -= 1;
_root.lazer44.play();
}
if (this.hitTest(_root.lazer45)) {
health -= 1;
_root.lazer45.play();
}
if (this.hitTest(_root.lazer46)) {
health -= 1;
_root.lazer46.play();
}
if (this.hitTest(_root.lazer47)) {
health -= 1;
_root.lazer47.play();
}
if (this.hitTest(_root.lazer48)) {
health -= 1;
_root.lazer48.play();
}
if (this.hitTest(_root.lazer49)) {
health -= 1;
_root.lazer49.play();
}
if (this.hitTest(_root.lazer50)) {
health -= 1;
_root.lazer50.play();
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
}
movieClip 414 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 4 {
stop();
}
frame 5 {
gotoAndStop(4);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 425 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 5 {
stop();
}
frame 6 {
gotoAndStop(4);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 436 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 5 {
stop();
}
frame 6 {
gotoAndStop(4);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
movieClip 445 {
frame 1 {
stop();
}
frame 1 {
expbarrell = 0;
badshipalive = 1;
cannonalive = 1;
health = 1;
this.onEnterFrame = function () {
if (health <= 0) {
cannonalive = 0;
badshipalive = 0;
gotoAndPlay(2);
}
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
stop();
}
frame 2 {
explosiondone = 0;
collisiondone = 0;
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._x += _global.cameramoveright;
}
if (Key.isDown(68)) {
this._x -= _global.cameramoveleft;
}
if (Key.isDown(83)) {
this._y -= _global.cameramovedown;
}
if (Key.isDown(87)) {
this._y += _global.cameramoveup;
}
};
}
frame 4 {
stop();
}
frame 5 {
gotoAndStop(4);
}
frame 49 {
badshipalive = 0;
}
frame 90 {
this.onEnterFrame = function () {};
stop();
}
}
// unknown tag 88 length 84
movieClip 455 {
frame 1 {
stop();
}
frame 40 {
stop();
}
frame 40 {
stop();
}
frame 41 {
gotoAndStop(40);
}
}
instance missioncomplete of movieClip 455 {
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 457 {
}
instance mc_frontground of movieClip 457 {
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 468 {
}
instance mc_frontground2 of movieClip 468 {
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 471 {
}
movieClip 472 {
}
instance topcannon of movieClip 472 {
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _parent.warrior._x;
this._y = _parent.warrior._y;
this._rotation += (Math.atan2(_ymouse, _xmouse) / Math.PI) * 180;
}
}
movieClip 476 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 478 {
}
movieClip 489 {
frame 1 {
stop();
}
frame 7 {
gotoAndStop(6);
}
}
movieClip 492 {
}
movieClip 504 {
}
movieClip 505 {
instance down of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(1);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(3);
}
}
instance right of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(3);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(2);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
if (_global.shiftdown == 0) {
_parent.car.gotoAndStop(2);
}
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(4);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(4);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
_parent.car.gotoAndStop(6);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
if (_global.shiftdown == 0) {
_parent.car.gotoAndStop(6);
}
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(6);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
_parent.car.gotoAndStop(8);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(8);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(8);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
if (_global.shiftdown == 0) {
_parent.car.gotoAndStop(12);
}
}
}
instance down of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(5);
}
}
instance right of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(7);
}
}
instance down of movieClip 478 {
onClipEvent (press) {
if (_global.shiftdown == 0) {
_parent.car.gotoAndStop(1);
}
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(3);
}
}
instance right of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(4);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
_parent.car.gotoAndStop(2);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(4);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
_parent.car.gotoAndStop(6);
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(6);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
if (_global.shiftdown == 0) {
_parent.car.gotoAndStop(8);
}
}
}
instance rightdown of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(8);
}
}
instance rightdown of movieClip 478 {
onClipEvent (press) {
_parent.car.gotoAndStop(12);
}
}
instance down of movieClip 478 {
onClipEvent (press) {
if (_global.shiftdown == 0) {
_parent.car.gotoAndStop(7);
}
}
}
instance right of movieClip 478 {
onClipEvent (rollOver) {
_parent.car.gotoAndStop(7);
}
}
}
instance warrior of movieClip 505 {
onClipEvent (enterFrame) {
if (Key.isDown(65) && _global.player1firing == 1) {
_root.warrior.car.gotoAndStop(7);
}
if (Key.isDown(68) && _global.player1firing == 1) {
_root.warrior.car.gotoAndStop(3);
}
if (Key.isDown(83) && _global.player1firing == 1) {
_root.warrior.car.gotoAndStop(1);
}
if (Key.isDown(87) && _global.player1firing == 1) {
_root.warrior.car.gotoAndStop(5);
}
this.swapDepths(_root.getNextHighestDepth());
}
}
frame 1342 {
_root.onMouseDown = function () {};
}
frame 1342 {
_root.onMouseDown = function () {};
}
frame 1342 {
_root.crosshairplace.removeMovieClip();
_root.warrior.removeMovieClip();
_root.mc_frontground.removeMovieClip();
_root.mc_frontground2.removeMovieClip();
_root.mc_background.removeMovieClip();
_root.missioncomplete.removeMovieClip();
_root.mc_background.removeMovieClip();
_root.badgreyship.removeMovieClip();
_root.badgreyship0.removeMovieClip();
_root.badgreyship1.removeMovieClip();
_root.badgreyship2.removeMovieClip();
_root.badgreyship3.removeMovieClip();
_root.badgreyship4.removeMovieClip();
_root.badgreyship5.removeMovieClip();
_root.badgreyship6.removeMovieClip();
_root.badgreyship7.removeMovieClip();
_root.badgreyship8.removeMovieClip();
_root.badgreyship9.removeMovieClip();
_root.badgreyship10.removeMovieClip();
_root.badgreyship11.removeMovieClip();
_root.badgreyship12.removeMovieClip();
_root.badgreyship13.removeMovieClip();
_root.badgreyship14.removeMovieClip();
_root.badgreyship15.removeMovieClip();
_root.badgreyship16.removeMovieClip();
_root.badgreyship17.removeMovieClip();
_root.badgreyship18.removeMovieClip();
_root.badgreyship19.removeMovieClip();
_root.badgreyship20.removeMovieClip();
_root.badgreyship21.removeMovieClip();
_root.badgreyship22.removeMovieClip();
_root.badgreyship23.removeMovieClip();
_root.badgreyship24.removeMovieClip();
_root.badgreyship25.removeMovieClip();
_root.badgreyship26.removeMovieClip();
_root.badgreyship27.removeMovieClip();
_root.badgreyship28.removeMovieClip();
_root.badgreyship29.removeMovieClip();
_root.badgreyship30.removeMovieClip();
_root.badgreyship31.removeMovieClip();
_root.badgreyship32.removeMovieClip();
_root.badgreyship33.removeMovieClip();
_root.badgreyship34.removeMovieClip();
_root.badgreyship35.removeMovieClip();
_root.badgreyship36.removeMovieClip();
_root.badgreyship37.removeMovieClip();
_root.badgreyship38.removeMovieClip();
_root.badgreyship39.removeMovieClip();
_root.badgreyship40.removeMovieClip();
_root.badgreyship41.removeMovieClip();
_root.badgreyship42.removeMovieClip();
_root.badgreyship43.removeMovieClip();
_root.badgreyship44.removeMovieClip();
_root.badgreyship45.removeMovieClip();
_root.badgreyship46.removeMovieClip();
_root.badgreyship47.removeMovieClip();
_root.badgreyship48.removeMovieClip();
_root.badgreyship49.removeMovieClip();
_root.badgreyship50.removeMovieClip();
}
frame 1370 {
_root.onMouseDown = function () {};
}
frame 1370 {
stop();
}
frame 1370 {
_root.crosshairplace.removeMovieClip();
_root.warrior.removeMovieClip();
_root.mc_frontground.removeMovieClip();
_root.mc_frontground2.removeMovieClip();
_root.mc_background.removeMovieClip();
_root.missioncomplete.removeMovieClip();
_root.mc_background.removeMovieClip();
_root.missioncomplete.removeMovieClip();
_root.badlazer.removeMovieClip();
_root.badlazer0.removeMovieClip();
_root.badlazer1.removeMovieClip();
_root.badlazer2.removeMovieClip();
_root.badlazer3.removeMovieClip();
_root.badlazer4.removeMovieClip();
_root.badlazer5.removeMovieClip();
_root.lazer.removeMovieClip();
_root.lazer0.removeMovieClip();
_root.lazer1.removeMovieClip();
_root.lazer2.removeMovieClip();
_root.lazer3.removeMovieClip();
_root.lazer4.removeMovieClip();
_root.lazer5.removeMovieClip();
_root.badgreyship.removeMovieClip();
_root.badgreyship0.removeMovieClip();
_root.badgreyship1.removeMovieClip();
_root.badgreyship2.removeMovieClip();
_root.badgreyship3.removeMovieClip();
_root.badgreyship4.removeMovieClip();
_root.badgreyship5.removeMovieClip();
_root.badgreyship6.removeMovieClip();
_root.badgreyship7.removeMovieClip();
_root.badgreyship8.removeMovieClip();
_root.badgreyship9.removeMovieClip();
_root.badgreyship10.removeMovieClip();
_root.badgreyship11.removeMovieClip();
_root.badgreyship12.removeMovieClip();
_root.badgreyship13.removeMovieClip();
_root.badgreyship14.removeMovieClip();
_root.badgreyship15.removeMovieClip();
_root.badgreyship16.removeMovieClip();
_root.badgreyship17.removeMovieClip();
_root.badgreyship18.removeMovieClip();
_root.badgreyship19.removeMovieClip();
_root.badgreyship20.removeMovieClip();
_root.badgreyship21.removeMovieClip();
_root.badgreyship22.removeMovieClip();
_root.badgreyship23.removeMovieClip();
_root.badgreyship24.removeMovieClip();
_root.badgreyship25.removeMovieClip();
_root.badgreyship26.removeMovieClip();
_root.badgreyship27.removeMovieClip();
_root.badgreyship28.removeMovieClip();
_root.badgreyship29.removeMovieClip();
_root.badgreyship30.removeMovieClip();
_root.badgreyship31.removeMovieClip();
}
movieClip 534 {
frame 235 {
_root.play();
stop();
}
}
frame 1371 {
_root.onMouseDown = function () {};
}
frame 1371 {
Mouse.show();
stop();
}
button 541 {
on (press) {
_root.gotoAndStop(1341);
}
}
movieClip 543 {
frame 330 {
stop();
}
}
frame 1372 {
_global.gameover = 1;
_root.crosshairplace.removeMovieClip();
_root.warrior.removeMovieClip();
_root.mc_frontground.removeMovieClip();
_root.mc_frontground2.removeMovieClip();
_root.mc_background.removeMovieClip();
_root.missioncomplete.removeMovieClip();
_root.badgreyship.removeMovieClip();
_root.badgreyship1.removeMovieClip();
_root.badgreyship2.removeMovieClip();
_root.badgreyship3.removeMovieClip();
_root.badgreyship4.removeMovieClip();
_root.badgreyship5.removeMovieClip();
_root.badgreyship6.removeMovieClip();
_root.badgreyship7.removeMovieClip();
_root.badgreyship8.removeMovieClip();
_root.badgreyship9.removeMovieClip();
_root.badgreyship10.removeMovieClip();
_root.badgreyship11.removeMovieClip();
_root.badgreyship12.removeMovieClip();
_root.badgreyship13.removeMovieClip();
_root.badgreyship14.removeMovieClip();
_root.badgreyship15.removeMovieClip();
_root.badgreyship16.removeMovieClip();
_root.badgreyship17.removeMovieClip();
_root.badgreyship18.removeMovieClip();
_root.badgreyship19.removeMovieClip();
_root.badgreyship20.removeMovieClip();
_root.badgreyship21.removeMovieClip();
_root.badgreyship22.removeMovieClip();
_root.badgreyship23.removeMovieClip();
_root.badgreyship24.removeMovieClip();
_root.badgreyship25.removeMovieClip();
_root.badgreyship26.removeMovieClip();
_root.badgreyship27.removeMovieClip();
_root.badgreyship28.removeMovieClip();
_root.badgreyship29.removeMovieClip();
_root.badgreyship30.removeMovieClip();
_root.badgreyship31.removeMovieClip();
}
frame 1373 {
stop();
}
frame 1374 {
stop();
}
movieClip 546 {
frame 250 {
_root.play();
stop();
}
}
frame 1375 {
stop();
}
movieClip 550 {
frame 352 {
_root.play();
stop();
}
}
frame 1376 {
this.onEnterFrame = function () {
_root.cops.text = _global.killcount;
};
stop();
}
movieClip 554 {
frame 409 {
_root.play();
stop;
}
}
frame 1377 {
stop();
}
movieClip 558 {
frame 435 {
_root.play();
stop();
}
}
frame 1378 {
stop();
}
movieClip 560 {
frame 354 {
_root.play();
play();
}
}
frame 1379 {
stop();
}
movieClip 563 {
frame 465 {
_root.play();
stop();
}
}
frame 1380 {
stopAllSounds();
}
frame 1381 {
stop();
}
movieClip 566 {
frame 734 {
_root.gotoAndPlay(1);
stop;
}
}