Frame 1
NewgroundsAPI.connectMovie(2239);
function gotoMySite() {
getURL ("http://www.dizimzgames.com", "_blank");
}
function gotoMySite2() {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
function qualitylow() {
_quality = "Low";
}
function qualityhigh() {
_quality = "High";
}
function qualitymedium() {
_quality = "Medium";
}
stop();
_quality = "High";
stop();
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mySiteLink = new ContextMenuItem("Dizimz Games", gotoMySite);
var mySiteLink2 = new ContextMenuItem("Newgrounds\u00A9", gotoMySite2);
var qualitysetter = new ContextMenuItem("quality---low", qualitylow);
var qualitysetter2 = new ContextMenuItem("quality---medium", qualitymedium);
var qualitysetter3 = new ContextMenuItem("quality---high", qualityhigh);
myMenu.customItems.push(mySiteLink, copyrightNotice);
myMenu.customItems.push(mySiteLink2, copyrightNotice2);
myMenu.customItems.push(qualitysetter);
myMenu.customItems.push(qualitysetter2);
myMenu.customItems.push(qualitysetter3);
_root.menu = myMenu;
Frame 2
stop();
Frame 3
stop();
Frame 4
stopAllSounds();
Frame 5
geger = 0;
Frame 6
stop();
_quality = "High";
Frame 7
stop();
ship.swapDepths(200);
hp.swapDepths(1500);
bombsd.swapDepths(1501);
ware1.swapDepths(1505);
ware2.swapDepths(1507);
music.swapDepths(20501);
bgauge.swapDepths(20000);
heat.swapDepths(1502);
egauge.swapDepths(1509);
cross.swapDepths(10499);
scorecard.swapDepths(10459);
enemy1.swapDepths(231);
enemy2.swapDepths(232);
enemy3.swapDepths(233);
enemy4.swapDepths(234);
enemy5.swapDepths(235);
enemy6.swapDepths(236);
enemy10.swapDepths(1946);
bossexpload.swapDepths(3346);
laserlock = false;
_quality = "Medium";
if (powerlevel == undefined) {
powerlevel = 1;
}
if (weapon2 == undefined) {
weapon2 = 3;
}
if (btype == undefined) {
btype = 1;
}
if (rockettype == undefined) {
rockettype = 1;
}
shieldhealth = 0;
mission = 1;
fork1 = 0;
reloadx1 = 0;
reloadx2 = 0;
gameover = false;
boss = false;
weapon1 = 2;
lives = 4;
zoho = 0;
ork = 0;
prize = 0;
wave = 1;
homing = false;
rocket = 0;
scoreq = 0;
kills = 0;
score = 0;
bomb = 3;
bosa = 1;
zoey = true;
pause = true;
health = 100;
select = 1;
startDrag ("cross", true);
selection = 1;
gun = weapon1;
speeder = 20;
reload = 0;
ren = 1;
zen = 1;
charger = 0;
jetstream = 0;
jo = 1;
starttimer = 0;
ac = 0.4;
ship.gotoAndStop(2);
mot = 1;
gunpow = 1;
bombs = 3;
reloadm1 = 0;
reloadm2 = 0;
reloadm3 = 0;
reloadm4 = 0;
reloadx1 = 0;
reloadx2 = 0;
cow = 1;
ehp1 = 100;
ehp2 = 100;
ehp3 = 100;
ehp4 = 100;
ehp5 = 100;
ehp6 = 100;
ehp7 = 100;
ehp8 = 100;
ehp9 = 100;
ehp10 = 14000;
enemy1._x = 800;
enemy1._y = 140;
enemy2._x = 840;
enemy2._y = 170;
enemy3._x = 860;
enemy3._y = 200;
enemy4._x = 880;
enemy4._y = 230;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
efire1 = 0;
efire2 = 0;
efire3 = 0;
efire4 = 0;
efire5 = 0;
efire6 = 0;
efire7 = 0;
efire8 = 0;
efire9 = 0;
efire10 = 0;
ety1 = 1;
ety2 = 1;
ety3 = 1;
ety4 = 1;
ety5 = 1;
ety6 = 1;
ety7 = 1;
ety8 = 1;
ety9 = 1;
ety10 = 5;
ejo1 = 0;
ejo2 = 0;
ejo3 = 0;
ejo4 = 0;
ejo5 = 0;
ejo6 = 0;
ejo7 = 0;
ejo8 = 0;
ejo9 = 0;
ero1 = 0;
ero2 = 0;
ero3 = 0;
ero4 = 0;
ero5 = 0;
ero6 = 0;
ero7 = 0;
ero8 = 0;
ero9 = 0;
victory = false;
onEnterFrame = function () {
i = 1;
while (i <= 10) {
if ((missile1.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 30;
duplicateMovieClip (explosion, "expload1", 600);
expload1._x = (missile1._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (missile1._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile1);
}
if ((missile2.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 30;
duplicateMovieClip (explosion, "expload2", 602);
expload2._x = (missile2._x + (Math.random() * 20)) - (Math.random() * 20);
expload2._y = (missile2._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile2);
}
if ((missile3.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 30;
duplicateMovieClip (explosion, "expload3", 603);
expload3._x = (missile3._x + (Math.random() * 20)) - (Math.random() * 20);
expload3._y = (missile3._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile3);
}
if ((missile4.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 30;
scoreq = scoreq + 10;
duplicateMovieClip (explosion, "expload4", 600);
expload4._x = (missile4._x + (Math.random() * 20)) - (Math.random() * 20);
expload4._y = (missile4._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(missile4);
}
if ((shot1.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot1);
}
if ((shot2.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot2);
}
if ((shot3.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot3);
}
if ((shot4.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot4);
}
if ((shot5.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot5);
}
if ((shot6.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot6);
}
if ((shot7.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot7);
}
if ((shot8.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot8);
}
if ((shot9.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot9);
}
if ((shota1.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota1);
}
if ((shota2.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota2);
}
if ((shota3.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota3);
}
if ((shota4.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota4);
}
if ((shota5.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota5);
}
if ((shotb1.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb1);
}
if ((shotb2.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb2);
}
if ((shotb3.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb3);
}
if ((shotb5.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb5);
}
if ((shotb4.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb4);
}
if ((shotx.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["enemy" + i].play();
_root["ehp" + i] = _root["ehp" + i] - (25 * powersx);
scoreq = scoreq + 205;
duplicateMovieClip ("explosionl" + talho, "expload1", 800);
expload1._x = (shotx._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (shotx._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(fobo);
}
if ((ultimate == true) && (boss != true)) {
fobo = "foo";
}
if ((ultimate != true) || (boss == true)) {
fobo = "shotx";
}
if ((blast1.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload1", 800);
expload1._x = (blast1._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (blast1._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast1);
}
if ((blast2.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload2", 802);
expload2._x = (blast2._x + (Math.random() * 20)) - (Math.random() * 20);
expload2._y = (blast2._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast2);
}
if ((blast3.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload3", 803);
expload3._x = (blast3._x + (Math.random() * 20)) - (Math.random() * 20);
expload3._y = (blast3._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast3);
}
if ((blast4.hitTest(_root["enemy" + i]) && (_root["enemy" + i]._x < 650)) && (_root["ehp" + i] > 0)) {
_root["ehp" + i] = _root["ehp" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload4", 805);
expload4._x = (blast4._x + (Math.random() * 20)) - (Math.random() * 20);
expload4._y = (blast4._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(blast4);
scoreq = scoreq + 100;
}
if (_root["enemy" + i].hitTest(ship) && (_root["ehp" + i] > 0)) {
duplicateMovieClip (explosion, "expload5", 700);
expload5._x = (_root["enemy" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (_root["enemy" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
health = health - 25;
ship.gotoAndPlay("damage");
_root["ehp" + i] = 100;
_root["enemy" + i]._x = -900;
}
if ((health <= 0) && (lives > 1)) {
duplicateMovieClip (explosion, "expload5", 700);
expload5._x = (ship._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (ship._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (explosion, "expload6", 703);
expload6._x = (ship._x + (Math.random() * 20)) - (Math.random() * 20);
expload6._y = (ship._y + (Math.random() * 20)) - (Math.random() * 20);
expload6._rotation = 90;
ship._x = -100;
select = 1;
geger = 0;
ultimate = false;
gun = 2;
boni = true;
jovi.play();
lives = lives - 1;
rocket = 0;
laserlock = false;
health = 100;
}
if (((health <= 0) && (lives <= 1)) && (gameover != true)) {
gover.play();
duplicateMovieClip (explosion, "expload5", 706);
expload5._x = (ship._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (ship._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (explosionm, "expload6", 703);
expload6._x = (ship._x + (Math.random() * 20)) - (Math.random() * 20);
expload6._y = (ship._y + (Math.random() * 20)) - (Math.random() * 20);
gameover = true;
geger = 0;
ultimate = false;
removeMovieClip(ship);
}
if (_root["eshot" + i].hitTest(ship)) {
duplicateMovieClip (explosionb, "expload5", 700);
expload5._x = (_root["eshot" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (_root["eshot" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
health = health - 25;
ship.gotoAndPlay("damage");
removeMovieClip(_root["eshot" + i]);
}
if ((_root["ehp" + i] <= 0) && (wave < 21)) {
duplicateMovieClip (explosionxx, "expload" + (5 + i), 700 + i);
_root["expload" + (5 + i)]._x = (_root["enemy" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
_root["expload" + (5 + i)]._y = (_root["enemy" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
zoho = zoho + 1;
_root["blasttype" + i] = false;
scoreq = scoreq + 100;
lastpox = _root["enemy" + i]._x;
lastpoy = _root["enemy" + i]._y;
_root["ehp" + i] = 100;
_root["enemy" + i]._x = -900;
}
if ((_root["enemy" + i]._x <= 0) && (_root["enemy" + i]._x > -100)) {
zoho = zoho - 1;
}
i++;
}
if (((starttimer < 240) && (pause == true)) && (zoey != true)) {
ship._x = dock._x;
ship._y = dock._y;
}
if ((((starttimer > 20) && (starttimer < 160)) && (pause == true)) && (zoey != true)) {
dock._x = dock._x + 1;
}
if (((starttimer > 205) && (pause == true)) && (zoey != true)) {
ship.play();
}
if (((starttimer > 240) && (pause == true)) && (zoey != true)) {
ship._x = ship._x + (ac / 1.3);
dock._x = dock._x - (ac * 5);
ac = ac + 0.1;
mot = mot + 0.07;
}
if (((starttimer > 300) && (pause == true)) && (zoey != true)) {
pause = false;
}
if ((pause == true) && (zoey != true)) {
starttimer = starttimer + 1;
}
if (((pause != true) && (cleared != true)) && (ship._x < 220)) {
ship._x = ship._x + 5;
}
if ((((cross._y > ship._y) && (pause != true)) && (cleared != true)) && (health > 0)) {
ship._y = ship._y + acc;
}
if ((((cross._y < ship._y) && (pause != true)) && (cleared != true)) && (health > 0)) {
ship._y = ship._y + acc;
}
if (((cross._y < (ship._y - 15)) && (pause != true)) && (cleared != true)) {
ship._rotation = (20 * acc) / 12;
ship.rocket1.gotoAndStop(1);
ship.rocket2.gotoAndStop(2);
}
if (((cross._y > (ship._y + 15)) && (pause != true)) && (cleared != true)) {
ship._rotation = (20 * acc) / 12;
ship.rocket1.gotoAndStop(2);
ship.rocket2.gotoAndStop(1);
}
if ((((cross._y <= (ship._y + 8)) && (cross._y >= (ship._y - 8))) && (pause != true)) && (cleared != true)) {
ship._rotation = 0;
ship.rocket1.gotoAndStop(1);
ship.rocket2.gotoAndStop(1);
}
if (((((cross._x > (ship._x + 20)) && (ship._x < 300)) && (pause != true)) && (cleared != true)) && (health > 0)) {
ship._x = ship._x + acc2;
}
if (((((cross._x < (ship._x - 5)) && (ship._x > 0)) && (pause != true)) && (cleared != true)) && (health > 0)) {
ship._x = ship._x + acc2;
}
if ((pause != true) && (cleared != true)) {
bg._x = bg._x - 0.05;
}
if (ren > shotlimit) {
ren = 1;
}
if ((pause != true) && (cleared != true)) {
shot1._x = shot1._x + (shotspeed1 * rambo1);
shot2._x = shot2._x + (shotspeed2 * rambo2);
shot3._x = shot3._x + (shotspeed3 * rambo3);
shot4._x = shot4._x + (shotspeed4 * rambo4);
shot5._x = shot5._x + (shotspeed5 * rambo5);
shot6._x = shot6._x + (shotspeed6 * rambo6);
shot7._x = shot7._x + (shotspeed7 * rambo7);
shot8._x = shot8._x + (shotspeed8 * rambo8);
shot9._x = shot9._x + (shotspeed9 * rambo9);
shot10._x = shot10._x + (shotspeed10 * rambo10);
shot1._y = shot1._y + (shotspeed1 * Math.sin(zeek1 * (Math.PI/180)));
shot2._y = shot2._y + (shotspeed2 * Math.sin(zeek2 * (Math.PI/180)));
shot3._y = shot3._y + (shotspeed3 * Math.sin(zeek3 * (Math.PI/180)));
shot4._y = shot4._y + (shotspeed4 * Math.sin(zeek4 * (Math.PI/180)));
shot5._y = shot5._y + (shotspeed5 * Math.sin(zeek5 * (Math.PI/180)));
shot6._y = shot6._y + (shotspeed6 * Math.sin(zeek6 * (Math.PI/180)));
shot7._y = shot7._y + (shotspeed7 * Math.sin(zeek7 * (Math.PI/180)));
shot8._y = shot8._y + (shotspeed8 * Math.sin(zeek8 * (Math.PI/180)));
shot9._y = shot9._y + (shotspeed9 * Math.sin(zeek9 * (Math.PI/180)));
shot10._y = shot10._y + (shotspeed10 * Math.sin(zeek10 * (Math.PI/180)));
shota1._x = shota1._x + 25;
shota2._x = shota2._x + 25;
shota3._x = shota3._x + 25;
shota4._x = shota4._x + 25;
shota5._x = shota5._x + 25;
shotb0._x = shotb0._x + 25;
shotb1._x = shotb1._x + 25;
shotb2._x = shotb2._x + 25;
shotb3._x = shotb3._x + 25;
shotb4._x = shotb4._x + 25;
shotb5._x = shotb5._x + 25;
shotb6._x = shotb6._x + 25;
zeek1 = zeek1 + osc1;
zeek2 = zeek2 + osc2;
zeek3 = zeek3 + osc3;
zeek4 = zeek4 + osc4;
zeek5 = zeek5 + osc5;
zeek6 = zeek6 + osc6;
zeek7 = zeek7 + osc7;
zeek8 = zeek8 + osc8;
zeek9 = zeek9 + osc9;
zeek10 = zeek10 + osc10;
missile1._x = missile1._x + (accm1 * Math.cos(mihunt1 * (Math.PI/180)));
missile3._x = missile3._x + (accm3 * Math.cos(mihunt3 * (Math.PI/180)));
missile2._x = missile2._x + (accm2 * Math.cos(mihunt2 * (Math.PI/180)));
missile4._x = missile4._x + (accm4 * Math.cos(mihunt4 * (Math.PI/180)));
missile1._y = missile1._y + (accm1 * Math.sin(mihunt1 * (Math.PI/180)));
missile3._y = missile3._y + (accm3 * Math.sin(mihunt3 * (Math.PI/180)));
missile2._y = missile2._y + (accm2 * Math.sin(mihunt2 * (Math.PI/180)));
missile4._y = missile4._y + (accm4 * Math.sin(mihunt4 * (Math.PI/180)));
accm1 = accm1 + 0.8;
accm2 = accm2 + 0.8;
accm3 = accm3 + 0.8;
accm4 = accm4 + 0.8;
reloadm1 = reloadm1 + 1;
reloadm2 = reloadm1;
reloadx1 = reloadx1 + 1;
reloadx2 = reloadx1;
reloadm3 = reloadm1;
reloadm4 = reloadm1;
missile1._rotation = mihunt1;
missile2._rotation = mihunt2;
missile3._rotation = mihunt3;
missile4._rotation = mihunt4;
eshot1._x = eshot1._x - (9 * Math.cos(ero1 * (Math.PI/180)));
eshot2._x = eshot2._x - (9 * Math.cos(ero2 * (Math.PI/180)));
eshot3._x = eshot3._x - (9 * Math.cos(ero3 * (Math.PI/180)));
eshot4._x = eshot4._x - (9 * Math.cos(ero4 * (Math.PI/180)));
eshot5._x = eshot5._x - (9 * Math.cos(ero5 * (Math.PI/180)));
eshot6._x = eshot6._x - (9 * Math.cos(ero6 * (Math.PI/180)));
eshot7._x = eshot7._x - (9 * Math.cos(ero7 * (Math.PI/180)));
eshot8._x = eshot8._x - (9 * Math.cos(ero8 * (Math.PI/180)));
eshot9._x = eshot9._x - (9 * Math.cos(ero9 * (Math.PI/180)));
eshot10._x = eshot10._x - (9 * Math.cos(ero10 * (Math.PI/180)));
eshot1._y = eshot1._y - (9 * Math.sin(ero1 * (Math.PI/180)));
eshot2._y = eshot2._y - (9 * Math.sin(ero2 * (Math.PI/180)));
eshot3._y = eshot3._y - (9 * Math.sin(ero3 * (Math.PI/180)));
eshot4._y = eshot4._y - (9 * Math.sin(ero4 * (Math.PI/180)));
eshot5._y = eshot5._y - (9 * Math.sin(ero5 * (Math.PI/180)));
eshot6._y = eshot6._y - (9 * Math.sin(ero6 * (Math.PI/180)));
eshot7._y = eshot7._y - (9 * Math.sin(ero7 * (Math.PI/180)));
eshot8._y = eshot8._y - (9 * Math.sin(ero8 * (Math.PI/180)));
eshot9._y = eshot9._y - (9 * Math.sin(ero9 * (Math.PI/180)));
eshot10._y = eshot10._y - (9 * Math.sin(ero10 * (Math.PI/180)));
}
if (((pause != true) && (cleared != true)) && (btype < 2)) {
blast1._x = blast1._x + (blastspeed1 * Math.cos(zeekb1 * (Math.PI/180)));
blast3._x = blast3._x + (blastspeed3 * Math.cos(zeekb3 * (Math.PI/180)));
blast2._x = blast2._x + (blastspeed2 * Math.cos(zeekb2 * (Math.PI/180)));
blast4._x = blast4._x + (blastspeed4 * Math.cos(zeekb4 * (Math.PI/180)));
blast1._y = blast1._y + (blastspeed1 * Math.sin(zeekb1 * (Math.PI/180)));
blast3._y = blast3._y + (blastspeed3 * Math.sin(zeekb3 * (Math.PI/180)));
blast2._y = blast2._y + (blastspeed2 * Math.sin(zeekb2 * (Math.PI/180)));
blast4._y = blast4._y + (blastspeed4 * Math.sin(zeekb4 * (Math.PI/180)));
zeekb1 = zeekb1 + oscb1;
zeekb2 = zeekb2 + oscb2;
zeekb3 = zeekb3 + oscb3;
zeekb4 = zeekb4 + oscb4;
}
if (((pause != true) && (cleared != true)) && (btype == 2)) {
blast1._x = ship._x + (40 * Math.cos(zeekb1 * (Math.PI/180)));
blast3._x = ship._x + (40 * Math.cos(zeekb3 * (Math.PI/180)));
blast2._x = ship._x + (40 * Math.cos(zeekb2 * (Math.PI/180)));
blast4._x = ship._x + (40 * Math.cos(zeekb4 * (Math.PI/180)));
blast1._y = ship._y + (40 * Math.sin(zeekb1 * (Math.PI/180)));
blast3._y = ship._y + (40 * Math.sin(zeekb3 * (Math.PI/180)));
blast2._y = ship._y + (40 * Math.sin(zeekb2 * (Math.PI/180)));
blast4._y = ship._y + (40 * Math.sin(zeekb4 * (Math.PI/180)));
zeekb1 = zeekb1 + (oscb1 / 2);
zeekb2 = zeekb2 + (oscb2 / 2);
zeekb3 = zeekb3 + (oscb3 / 2);
zeekb4 = zeekb4 + (oscb4 / 2);
}
if (shot == true) {
charger = charger + 1;
}
if (star._x < -600) {
star._x = 600;
}
if (star2._x < -600) {
star2._x = 600;
}
if (select == 1) {
ware1.gotoAndStop(2);
ware2.gotoAndStop(1);
ware3.gotoAndStop(1);
}
if (select == 2) {
ware1.gotoAndStop(1);
ware2.gotoAndStop(2);
ware3.gotoAndStop(1);
}
if (select == 3) {
ware1.gotoAndStop(1);
ware2.gotoAndStop(1);
ware3.gotoAndStop(2);
}
if (((((Key.isDown(65) && (laserlock == true)) && (pause != true)) && (cleared != true)) && (select <= 1)) && (boni != true)) {
select = 2;
gun = weapon2;
boni = true;
jovi.play();
}
if ((((Key.isDown(65) && (pause != true)) && (cleared != true)) && (select >= 2)) && (boni != true)) {
select = 1;
gun = weapon1;
boni = true;
jovi.play();
}
if ((!Key.isDown(65)) && (boni == true)) {
boni = false;
}
if ((rockettype == 2) && (rocket >= 1)) {
sphere1._x = ship._x + (60 * Math.cos(fork1 * (Math.PI/180)));
sphere1._y = ship._y + (60 * Math.sin(fork1 * (Math.PI/180)));
sphere1._visible = true;
fork1 = fork1 + 15;
}
if ((rockettype == 2) && (rocket >= 2)) {
sphere2._x = ship._x - (60 * Math.cos(fork1 * (Math.PI/180)));
sphere2._y = ship._y - (60 * Math.sin(fork1 * (Math.PI/180)));
sphere2._visible = true;
}
if ((rockettype == 2) && (rocket < 1)) {
sphere1._x = -555;
sphere1._visible = false;
}
if ((rockettype == 2) && (rocket < 2)) {
sphere2._x = -555;
sphere2._visible = false;
}
if ((rockettype >= 3) && (rocket >= 1)) {
shieldhealth = shieldhealth + 50;
rocket = 0;
}
if (pause != true) {
ship.shield.gotoAndStop(shieldhealth);
}
if (shieldhealth > 200) {
shieldhealth = 200;
}
if (shieldhealth <= 0) {
shieldhealth = 0;
}
if ((health < 100) && (shieldhealth > 0)) {
health = health + 1;
shieldhealth = shieldhealth - 1;
}
if (((gunpow > 1) && (pause != true)) && (cleared != true)) {
gunpow = gunpow - 0.2;
}
if (gunpow <= 1) {
gunpow = 1;
}
if (bosa > 4) {
bosa = 1;
}
if (((pause != true) && (cleared != true)) && (scoreq > score)) {
score = score + 10;
}
if ((!Key.isDown(83)) && (bomber == true)) {
bomber = false;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype <= 1)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = ship._x + 30;
_root["blast" + bosa]._y = ship._y;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 0;
_root["oscb" + bosa] = 0;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype == 2)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = ship._x + 15;
_root["blast" + bosa]._y = ship._y;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 90;
_root["oscb" + bosa] = 9;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype >= 3)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = ship._x;
_root["blast" + bosa]._y = ship._y + 20;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 90;
_root["oscb" + bosa] = 9;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if ((pause != true) && (cleared != true)) {
bombbonus1._x = bombbonus1._x - 2;
modmissile._x = modmissile._x - 2;
modhealth._x = modhealth._x - 2;
modlaser._x = modlaser._x - 2;
bombbonus1._rotation = bombbonus1._rotation + 3;
}
if (bombbonus1.hitTest(ship)) {
bomb = bomb + 1;
removeMovieClip(bombbonus1);
}
if (modmissile.hitTest(ship)) {
rocket = rocket + 1;
duplicateMovieClip (misbonus, "misbonus1", 999);
misbonus1._y = ship._y;
misbonus1._x = ship._x - 10;
removeMovieClip(modmissile);
}
if (modhealth.hitTest(ship)) {
health = 100;
duplicateMovieClip (healthbonus, "mishealth1", 999);
mishealth1._y = ship._y;
mishealth1._x = ship._x - 10;
removeMovieClip(modhealth);
}
if (modlaser.hitTest(ship)) {
laserlock = true;
duplicateMovieClip (lasbonus, "misbonus1", 999);
misbonus1._y = ship._y;
misbonus1._x = ship._x - 10;
removeMovieClip(modlaser);
}
if (bomb > 4) {
bomb = 4;
}
if ((zoho >= zohan) && (prize <= 1)) {
duplicateMovieClip (missilemod, "modmissile", 120);
modmissile._x = lastpox;
modmissile._y = lastpoy;
zoho = 0;
}
if ((zoho >= zohan) && (prize == 2)) {
duplicateMovieClip (lasermod, "modlaser", 120);
modlaser._x = lastpox;
modlaser._y = lastpoy;
zoho = 0;
}
if ((zoho >= zohan) && (prize == 3)) {
duplicateMovieClip (healthmod, "modhealth", 120);
modhealth._x = lastpox;
modhealth._y = lastpoy;
zoho = 0;
}
if (((wave == 1) && (pause != true)) && (cleared != true)) {
enemy1._x = enemy1._x - (1 * ein1);
enemy2._x = enemy2._x - (1 * ein2);
enemy3._x = enemy3._x - (1 * ein3);
enemy4._x = enemy4._x - (1 * ein4);
bonusor = "bonusbomb";
bonusoh = "bombbonus1";
prize = 2;
zohan = 12;
}
if ((((((wave <= 1) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) {
duplicateMovieClip (etype7, "enemy1", 231);
duplicateMovieClip (etype7, "enemy2", 232);
duplicateMovieClip (etype7, "enemy3", 233);
duplicateMovieClip (etype7, "enemy4", 234);
duplicateMovieClip (etype7, "enemy5", 235);
duplicateMovieClip (etype7, "enemy6", 236);
duplicateMovieClip (etype7, "enemy7", 237);
duplicateMovieClip (etype7, "enemy8", 238);
enemy1._x = 900;
enemy2._x = 930;
enemy3._x = 960;
enemy4._x = 990;
enemy5._x = 1020;
enemy6._x = 1050;
enemy7._x = 1080;
enemy8._x = 1100;
enemy1._y = 150;
enemy2._y = 150;
enemy3._y = 150;
enemy4._y = 150;
enemy5._y = 150;
enemy6._y = 150;
enemy7._y = 150;
enemy8._y = 150;
zoho = 0;
goop = 0;
wave = 2;
}
if (((wave == 2) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 2;
goop = goop + 1;
enemy1._y = enemy1._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy1._x = enemy1._x - 2;
enemy2._y = enemy2._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy2._x = enemy2._x - 2;
enemy3._y = enemy3._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy3._x = enemy3._x - 2;
enemy4._y = enemy4._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy4._x = enemy4._x - 2;
enemy5._y = enemy5._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy5._x = enemy5._x - 2;
enemy6._y = enemy6._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy6._x = enemy6._x - 2;
enemy7._y = enemy7._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy7._x = enemy7._x - 2;
enemy8._y = enemy8._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy8._x = enemy8._x - 2;
}
if ((((((((((wave == 2) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 6;
zoho = 0;
prize = 2;
removeMovieClip(enemy1);
removeMovieClip(enemy2);
removeMovieClip(enemy3);
removeMovieClip(enemy4);
duplicateMovieClip (etype1, "enemy1", 231);
duplicateMovieClip (etype1, "enemy2", 232);
duplicateMovieClip (etype1, "enemy3", 233);
duplicateMovieClip (etype1, "enemy4", 234);
duplicateMovieClip (etype1, "enemy5", 235);
duplicateMovieClip (etype1, "enemy6", 236);
enemy1._x = 900;
enemy1._y = 100;
enemy2._x = 950;
enemy2._y = 100;
enemy3._x = 1000;
enemy3._y = 100;
enemy4._x = 900;
enemy4._y = 200;
enemy5._x = 950;
enemy5._y = 200;
enemy6._x = 1000;
enemy6._y = 200;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
ein6 = 1;
wave = 3;
}
if (((wave == 3) && (pause != true)) && (cleared != true)) {
enemy1._x = enemy1._x - 1.5;
enemy2._x = enemy2._x - 1.5;
enemy3._x = enemy3._x - 1.5;
enemy4._x = enemy4._x - 1.5;
enemy5._x = enemy5._x - 1.5;
enemy6._x = enemy6._x - 1.5;
}
if (((((((wave == 3) && (enemy6._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) {
enemy1._x = 900;
enemy1._y = 150;
enemy2._x = 1200;
enemy2._y = 150;
ein1 = 1;
ein2 = 1;
wave = 4;
}
if (((wave == 4) && (pause != true)) && (cleared != true)) {
prize = 2;
enemy1._x = enemy1._x - 2;
enemy2._x = enemy2._x - 2;
enemy1._y = enemy1._y - (4 * Math.sin(enemy1._x * (Math.PI/180)));
enemy2._y = enemy2._y - (4 * Math.sin(enemy2._x * (Math.PI/180)));
}
if (((((((wave == 4) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) {
duplicateMovieClip (etype1, "enemy7", 237);
duplicateMovieClip (etype1, "enemy8", 238);
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
ein6 = 1;
ein7 = 1;
ein8 = 1;
enemy1._x = 900;
enemy1._y = 150;
enemy2._x = 980;
enemy2._y = 100;
enemy3._x = 980;
enemy3._y = 200;
enemy4._x = 1060;
enemy4._y = 100;
enemy5._x = 1060;
enemy5._y = 200;
enemy6._x = 1060;
enemy6._y = 60;
enemy7._x = 1060;
enemy7._y = 240;
enemy8._x = 1140;
enemy8._y = 150;
zoho = 0;
zohan = 8;
wave = 5;
}
if (((wave == 5) && (pause != true)) && (cleared != true)) {
prize = 1;
enemy1._x = enemy1._x - 2;
enemy2._x = enemy2._x - 2;
enemy3._x = enemy3._x - 2;
enemy4._x = enemy4._x - 2;
enemy5._x = enemy5._x - 2;
enemy6._x = enemy6._x - 2;
enemy7._x = enemy7._x - 2;
enemy8._x = enemy8._x - 2;
}
if (((((((((wave == 5) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 12;
zoho = 0;
wave = 6;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
enemy1._x = 900;
enemy1._y = 150;
enemy2._x = 1320;
enemy2._y = 150;
enemy3._x = 1180;
enemy3._y = 200;
enemy4._x = 1180;
enemy4._y = 100;
enemy5._x = 1260;
enemy5._y = 150;
}
if (((wave == 6) && (pause != true)) && (cleared != true)) {
enemy1._x = enemy1._x - 1;
enemy2._x = enemy2._x - 1;
enemy1._y = enemy1._y - (2 * Math.sin(enemy1._x * (Math.PI/180)));
enemy2._y = enemy2._y + (2 * Math.sin(enemy2._x * (Math.PI/180)));
enemy3._x = enemy3._x - 2;
enemy4._x = enemy4._x - 2;
enemy5._x = enemy5._x - 2;
}
if (((((((((wave == 6) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 1;
zoho = 0;
wave = 7;
ein1 = 1;
ety1 = 3;
duplicateMovieClip (etype2, "enemy1", 231);
ejo1 = 0;
ehp1 = 350;
enemy1._x = 900;
enemy1._y = 150;
}
if ((((wave == 7) && (pause != true)) && (cleared != true)) && (enemy1._x > 430)) {
enemy1._x = enemy1._x - 3;
}
if ((wave == 7) && (enemy1._x <= 500)) {
enemy1._y = enemy1._y - (6 * Math.cos(ejo1 * (Math.PI/180)));
ejo1 = ejo1 + 4;
enemy1._rotation = Math.atan2(enemy1._y - ship._y, enemy1._x - ship._x) / (Math.PI/180);
efire1 = efire1 + 1;
}
if ((efire1 > 130) && (wave == 7)) {
duplicateMovieClip (elaser, "eshot1", 271);
eshot1._x = enemy1._x;
eshot1._y = enemy1._y;
ero1 = enemy1._rotation;
efire1 = 0;
}
if (((((((((wave == 7) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 8;
prize = 1;
zoho = 0;
wave = 8;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
ein6 = 1;
ein7 = 1;
ein8 = 1;
ety1 = 1;
duplicateMovieClip (etype4, "enemy1", 231);
duplicateMovieClip (etype4, "enemy2", 232);
duplicateMovieClip (etype4, "enemy3", 233);
duplicateMovieClip (etype4, "enemy4", 234);
duplicateMovieClip (etype4, "enemy5", 235);
duplicateMovieClip (etype4, "enemy6", 236);
duplicateMovieClip (etype4, "enemy7", 237);
duplicateMovieClip (etype4, "enemy8", 238);
ehp1 = 100;
ehp2 = 100;
ehp3 = 100;
ehp4 = 100;
ehp5 = 100;
ehp6 = 100;
ehp7 = 100;
ehp8 = 100;
enemy1._rotation = 0;
enemy1._x = 1300;
enemy1._y = 100;
enemy2._x = 1450;
enemy2._y = 50;
enemy3._x = 1320;
enemy3._y = 33;
enemy4._x = 1640;
enemy4._y = 225;
enemy5._x = 1440;
enemy5._y = 245;
enemy6._x = 1450;
enemy6._y = 150;
enemy7._x = 1400;
enemy7._y = 100;
enemy8._x = 900;
enemy8._y = 150;
zohan = 8;
prize = 1;
zoho = 0;
}
if (((wave == 8) && (pause != true)) && (cleared != true)) {
enemy1._x = enemy1._x - 3;
enemy2._x = enemy2._x - 3;
enemy3._x = enemy3._x - 3;
enemy4._x = enemy4._x - 3;
enemy5._x = enemy5._x - 4;
enemy6._x = enemy6._x - 4;
enemy7._x = enemy7._x - 3;
enemy8._x = enemy8._x - 4;
enemy8._y = enemy8._y - 0.2;
enemy6._y = enemy6._y + 0.5;
}
if (((((((((wave == 8) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 6;
prize = 1;
zoho = 0;
wave = 9;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
ein6 = 1;
ein7 = 1;
ety1 = 1;
duplicateMovieClip (etype3, "enemy1", 231);
duplicateMovieClip (etype3, "enemy2", 232);
duplicateMovieClip (etype3, "enemy3", 233);
duplicateMovieClip (etype3, "enemy4", 234);
duplicateMovieClip (etype3, "enemy5", 235);
duplicateMovieClip (etype3, "enemy6", 236);
ehp1 = 100;
ehp2 = 100;
ehp3 = 100;
ehp4 = 100;
ehp5 = 100;
ehp6 = 100;
enemy1._x = 900;
enemy1._y = 150;
enemy2._x = 1100;
enemy2._y = 150;
enemy3._x = 1300;
enemy3._y = 33;
enemy4._x = 1500;
enemy4._y = 150;
enemy5._x = 1700;
enemy5._y = 150;
enemy6._x = 1900;
enemy6._y = 150;
}
if (((wave == 9) && (pause != true)) && (cleared != true)) {
prize = 1;
enemy1._x = enemy1._x - 3;
enemy2._x = enemy2._x - 3;
enemy3._x = enemy3._x - 3;
enemy4._x = enemy4._x - 3;
enemy5._x = enemy5._x - 3;
enemy6._x = enemy6._x - 3;
enemy1._y = enemy1._y - (4 * Math.cos(enemy1._x * (Math.PI/180)));
enemy2._y = enemy2._y - (4 * Math.sin(enemy2._x * (Math.PI/180)));
enemy3._y = enemy3._y - (4 * Math.cos(enemy3._x * (Math.PI/180)));
enemy4._y = enemy4._y - (4 * Math.sin(enemy4._x * (Math.PI/180)));
enemy5._y = enemy5._y - (4 * Math.cos(enemy5._x * (Math.PI/180)));
enemy6._y = enemy6._y - (4 * Math.sin(enemy6._x * (Math.PI/180)));
}
if (((((((((wave == 9) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 8;
prize = 1;
zoho = 0;
wave = 10;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
ein6 = 1;
ein7 = 1;
ein8 = 1;
ety1 = 1;
duplicateMovieClip (etype6, "enemy1", 231);
duplicateMovieClip (etype5, "enemy2", 232);
duplicateMovieClip (etype6, "enemy3", 233);
duplicateMovieClip (etype5, "enemy4", 234);
duplicateMovieClip (etype5, "enemy5", 235);
duplicateMovieClip (etype6, "enemy6", 236);
duplicateMovieClip (etype6, "enemy7", 237);
duplicateMovieClip (etype5, "enemy8", 238);
ehp1 = 100;
ehp2 = 100;
ehp3 = 100;
ehp4 = 100;
ehp5 = 100;
ehp6 = 100;
ehp7 = 100;
ehp8 = 100;
enemy1._x = 1300;
enemy1._y = 100;
enemy2._x = 1300;
enemy2._y = 200;
enemy3._x = 1400;
enemy3._y = 70;
enemy4._x = 1400;
enemy4._y = 230;
enemy5._x = 1600;
enemy5._y = 200;
enemy6._x = 1600;
enemy6._y = 100;
enemy7._x = 1800;
enemy7._y = 70;
enemy8._x = 1800;
enemy8._y = 230;
zohan = 8;
prize = 1;
efire1 = 0;
zoho = 0;
}
if (((wave == 10) && (pause != true)) && (cleared != true)) {
enemy1._x = enemy1._x - 1.5;
enemy2._x = enemy2._x - 1.5;
enemy3._x = enemy3._x - 1.5;
enemy4._x = enemy4._x - 1.5;
enemy5._x = enemy5._x - 1.5;
enemy6._x = enemy6._x - 1.5;
enemy7._x = enemy7._x - 1.5;
enemy8._x = enemy8._x - 1.5;
efire1 = efire1 + 1;
efire2 = efire2 + 1;
efire3 = efire3 + 1;
efire4 = efire4 + 1;
efire5 = efire5 + 1;
efire6 = efire6 + 1;
efire7 = efire7 + 1;
efire8 = efire8 + 1;
quo1 = 300;
quo2 = 300;
quo3 = 300;
quo4 = 300;
quo5 = 300;
quo6 = 300;
quo7 = 300;
quo8 = 300;
blasttype1 = true;
blasttype2 = true;
blasttype3 = true;
blasttype4 = true;
blasttype5 = true;
blasttype6 = true;
blasttype7 = true;
blasttype8 = true;
}
if (((((((((wave == 10) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
duplicateMovieClip (etype3, "enemy1", 231);
duplicateMovieClip (etype3, "enemy2", 232);
ein1 = 1;
ein2 = 1;
wave = 11;
zohan = 2;
prize = 3;
zoho = 0;
enemy1._x = 800;
enemy1._y = 100;
enemy2._x = 800;
enemy2._y = 200;
removeMovieClip(enemy3);
removeMovieClip(enemy4);
removeMovieClip(enemy5);
removeMovieClip(enemy6);
removeMovieClip(enemy7);
removeMovieClip(enemy8);
}
if (((wave == 11) && (pause != true)) && (cleared != true)) {
enemy1._x = enemy1._x - 3;
enemy2._x = enemy2._x - 3;
}
if ((((((((((wave == 11) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
duplicateMovieClip (etype7, "enemy1", 231);
duplicateMovieClip (etype7, "enemy2", 232);
duplicateMovieClip (etype7, "enemy3", 233);
duplicateMovieClip (etype7, "enemy4", 234);
duplicateMovieClip (etype7, "enemy5", 235);
duplicateMovieClip (etype7, "enemy6", 236);
duplicateMovieClip (etype7, "enemy7", 237);
duplicateMovieClip (etype7, "enemy8", 238);
enemy1._x = 900;
enemy2._x = 930;
enemy3._x = 960;
enemy4._x = 990;
enemy5._x = 1020;
enemy6._x = 1050;
enemy7._x = 1080;
enemy8._x = 1100;
enemy1._y = 150;
enemy2._y = 150;
enemy3._y = 150;
enemy4._y = 150;
enemy5._y = 150;
enemy6._y = 150;
enemy7._y = 150;
enemy8._y = 150;
zoho = 0;
goop = 0;
wave = 12;
}
if (((wave == 12) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 1;
goop = goop + 1;
enemy1._y = enemy1._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy1._x = enemy1._x - 2;
enemy2._y = enemy2._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy2._x = enemy2._x - 2;
enemy3._y = enemy3._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy3._x = enemy3._x - 2;
enemy4._y = enemy4._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy4._x = enemy4._x - 2;
enemy5._y = enemy5._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy5._x = enemy5._x - 2;
enemy6._y = enemy6._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy6._x = enemy6._x - 2;
enemy7._y = enemy7._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy7._x = enemy7._x - 2;
enemy8._y = enemy8._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy8._x = enemy8._x - 2;
}
if ((((((((((wave == 12) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
duplicateMovieClip (etype7, "enemy1", 231);
duplicateMovieClip (etype7, "enemy2", 232);
duplicateMovieClip (etype7, "enemy3", 233);
duplicateMovieClip (etype7, "enemy4", 234);
duplicateMovieClip (etype7, "enemy5", 235);
duplicateMovieClip (etype7, "enemy6", 236);
duplicateMovieClip (etype7, "enemy7", 237);
duplicateMovieClip (etype7, "enemy8", 238);
enemy1._x = 900;
enemy2._x = 930;
enemy3._x = 960;
enemy4._x = 990;
enemy5._x = 1020;
enemy6._x = 1050;
enemy7._x = 1080;
enemy8._x = 1100;
enemy1._y = 220;
enemy2._y = 220;
enemy3._y = 220;
enemy4._y = 220;
enemy5._y = 220;
enemy6._y = 220;
enemy7._y = 220;
enemy8._y = 220;
zoho = 0;
goop = 0;
wave = 13;
}
if (((wave == 13) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 1;
goop = goop + 1;
enemy1._y = enemy1._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy1._x = enemy1._x - 2;
enemy2._y = enemy2._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy2._x = enemy2._x - 2;
enemy3._y = enemy3._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy3._x = enemy3._x - 2;
enemy4._y = enemy4._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy4._x = enemy4._x - 2;
enemy5._y = enemy5._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy5._x = enemy5._x - 2;
enemy6._y = enemy6._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy6._x = enemy6._x - 2;
enemy7._y = enemy7._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy7._x = enemy7._x - 2;
enemy8._y = enemy8._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy8._x = enemy8._x - 2;
}
if ((((((((((wave == 13) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
duplicateMovieClip (etype8, "enemy1", 231);
duplicateMovieClip (etype8, "enemy2", 232);
duplicateMovieClip (etype8, "enemy3", 233);
duplicateMovieClip (etype8, "enemy4", 234);
duplicateMovieClip (etype8, "enemy5", 235);
duplicateMovieClip (etype8, "enemy6", 236);
duplicateMovieClip (etype8, "enemy7", 237);
duplicateMovieClip (etype8, "enemy8", 238);
enemy1._x = 900;
enemy2._x = 930;
enemy3._x = 960;
enemy4._x = 990;
enemy5._x = 1020;
enemy6._x = 1050;
enemy7._x = 1080;
enemy8._x = 1100;
blasttype1 = true;
blasttype2 = true;
blasttype3 = true;
blasttype4 = true;
blasttype5 = true;
blasttype6 = true;
blasttype7 = true;
blasttype8 = true;
enemy1._y = 50;
enemy2._y = 100;
enemy3._y = 150;
enemy4._y = 200;
enemy5._y = 200;
enemy6._y = 150;
enemy7._y = 100;
enemy8._y = 50;
zoho = 0;
wave = 14;
}
if (((wave == 14) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 1;
enemy1._x = enemy1._x - 2;
enemy2._x = enemy2._x - 2;
enemy3._x = enemy3._x - 2;
enemy4._x = enemy4._x - 2;
enemy5._x = enemy5._x - 2;
enemy6._x = enemy6._x - 2;
enemy7._x = enemy7._x - 2;
enemy8._x = enemy8._x - 2;
}
if ((((((((((wave == 14) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
duplicateMovieClip (etype8, "enemy1", 231);
duplicateMovieClip (etype8, "enemy2", 232);
duplicateMovieClip (etype8, "enemy3", 233);
duplicateMovieClip (etype8, "enemy4", 234);
duplicateMovieClip (etype8, "enemy5", 235);
duplicateMovieClip (etype8, "enemy6", 236);
duplicateMovieClip (etype8, "enemy7", 237);
duplicateMovieClip (etype8, "enemy8", 238);
enemy1._x = 900;
enemy2._x = 930;
enemy3._x = 960;
enemy4._x = 990;
enemy9._x = 1020;
enemy5._x = 1050;
enemy6._x = 1080;
enemy7._x = 1110;
enemy8._x = 1140;
quo1 = 200;
quo2 = 200;
quo3 = 200;
quo4 = 200;
quo5 = 200;
quo6 = 200;
quo7 = 200;
quo8 = 200;
quo9 = 200;
blasttype1 = true;
blasttype2 = true;
blasttype3 = true;
blasttype4 = true;
blasttype5 = true;
blasttype6 = true;
blasttype7 = true;
blasttype8 = true;
enemy1._y = 250;
enemy2._y = 200;
enemy3._y = 150;
enemy4._y = 100;
enemy4._y = 50;
enemy5._y = 100;
enemy6._y = 150;
enemy7._y = 200;
enemy8._y = 250;
zoho = 0;
wave = 15;
}
if (((wave == 15) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 1;
efire1 = efire1 + 1;
efire2 = efire2 + 1;
efire3 = efire3 + 1;
efire4 = efire4 + 1;
efire5 = efire5 + 1;
efire6 = efire6 + 1;
efire7 = efire7 + 1;
efire8 = efire8 + 1;
efire9 = efire9 + 1;
enemy1._x = enemy1._x - 2;
enemy2._x = enemy2._x - 2;
enemy3._x = enemy3._x - 2;
enemy4._x = enemy4._x - 2;
enemy5._x = enemy5._x - 2;
enemy6._x = enemy6._x - 2;
enemy7._x = enemy7._x - 2;
enemy8._x = enemy8._x - 2;
enemy9._x = enemy9._x - 2;
}
if (((((((((wave == 15) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 8;
prize = 1;
zoho = 0;
wave = 16;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
ein6 = 1;
ein7 = 1;
ein8 = 1;
ety1 = 1;
duplicateMovieClip (etype6, "enemy1", 231);
duplicateMovieClip (etype5, "enemy2", 232);
duplicateMovieClip (etype6, "enemy3", 233);
duplicateMovieClip (etype5, "enemy4", 234);
duplicateMovieClip (etype5, "enemy5", 235);
duplicateMovieClip (etype6, "enemy6", 236);
duplicateMovieClip (etype6, "enemy7", 237);
duplicateMovieClip (etype5, "enemy8", 238);
ehp1 = 100;
ehp2 = 100;
ehp3 = 100;
ehp4 = 100;
ehp5 = 100;
ehp6 = 100;
ehp7 = 100;
ehp8 = 100;
enemy1._x = 1300;
enemy1._y = 100;
enemy2._x = 1300;
enemy2._y = 200;
enemy3._x = 1400;
enemy3._y = 70;
enemy4._x = 1400;
enemy4._y = 230;
enemy5._x = 1600;
enemy5._y = 200;
enemy6._x = 1600;
enemy6._y = 100;
enemy7._x = 1800;
enemy7._y = 70;
enemy8._x = 1800;
enemy8._y = 230;
zohan = 8;
prize = 1;
efire1 = 0;
zoho = 0;
}
if (((wave == 16) && (pause != true)) && (cleared != true)) {
enemy1._x = enemy1._x - 1.5;
enemy2._x = enemy2._x - 1.5;
enemy3._x = enemy3._x - 1.5;
enemy4._x = enemy4._x - 1.5;
enemy5._x = enemy5._x - 1.5;
enemy6._x = enemy6._x - 1.5;
enemy7._x = enemy7._x - 1.5;
enemy8._x = enemy8._x - 1.5;
efire1 = efire1 + 1;
efire2 = efire2 + 1;
efire3 = efire3 + 1;
efire4 = efire4 + 1;
efire5 = efire5 + 1;
efire6 = efire6 + 1;
efire7 = efire7 + 1;
efire8 = efire8 + 1;
quo1 = 300;
quo2 = 300;
quo3 = 300;
quo4 = 300;
quo5 = 300;
quo6 = 300;
quo7 = 300;
quo8 = 300;
blasttype1 = true;
blasttype2 = true;
blasttype3 = true;
blasttype4 = true;
blasttype5 = true;
blasttype6 = true;
blasttype7 = true;
blasttype8 = true;
}
if (((((((((wave == 16) && (enemy2._x <= -100)) && (enemy1._x <= -100)) && (enemy4._x <= -100)) && (enemy3._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
zohan = 6;
prize = 1;
zoho = 0;
wave = 17;
ein1 = 1;
ein2 = 1;
ein3 = 1;
ein4 = 1;
ein5 = 1;
ein6 = 1;
ein7 = 1;
ety1 = 1;
duplicateMovieClip (etype3, "enemy1", 231);
duplicateMovieClip (etype3, "enemy2", 232);
duplicateMovieClip (etype3, "enemy3", 233);
duplicateMovieClip (etype3, "enemy4", 234);
duplicateMovieClip (etype3, "enemy5", 235);
duplicateMovieClip (etype3, "enemy6", 236);
ehp1 = 100;
ehp2 = 100;
ehp3 = 100;
ehp4 = 100;
ehp5 = 100;
ehp6 = 100;
enemy1._x = 900;
enemy1._y = 150;
enemy2._x = 1100;
enemy2._y = 150;
enemy3._x = 1300;
enemy3._y = 33;
enemy4._x = 1500;
enemy4._y = 150;
enemy5._x = 1700;
enemy5._y = 150;
enemy6._x = 1900;
enemy6._y = 150;
}
if (((wave == 17) && (pause != true)) && (cleared != true)) {
prize = 1;
enemy1._x = enemy1._x - 3;
enemy2._x = enemy2._x - 3;
enemy3._x = enemy3._x - 3;
enemy4._x = enemy4._x - 3;
enemy5._x = enemy5._x - 3;
enemy6._x = enemy6._x - 3;
enemy1._y = enemy1._y - (4 * Math.cos(enemy1._x * (Math.PI/180)));
enemy2._y = enemy2._y - (4 * Math.sin(enemy2._x * (Math.PI/180)));
enemy3._y = enemy3._y - (4 * Math.cos(enemy3._x * (Math.PI/180)));
enemy4._y = enemy4._y - (4 * Math.sin(enemy4._x * (Math.PI/180)));
enemy5._y = enemy5._y - (4 * Math.cos(enemy5._x * (Math.PI/180)));
enemy6._y = enemy6._y - (4 * Math.sin(enemy6._x * (Math.PI/180)));
}
if ((((((((((wave == 17) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
duplicateMovieClip (etype7, "enemy1", 231);
duplicateMovieClip (etype7, "enemy2", 232);
duplicateMovieClip (etype7, "enemy3", 233);
duplicateMovieClip (etype7, "enemy4", 234);
duplicateMovieClip (etype7, "enemy5", 235);
duplicateMovieClip (etype7, "enemy6", 236);
duplicateMovieClip (etype7, "enemy7", 237);
duplicateMovieClip (etype7, "enemy8", 238);
enemy1._x = 900;
enemy2._x = 930;
enemy3._x = 960;
enemy4._x = 990;
enemy5._x = 1020;
enemy6._x = 1050;
enemy7._x = 1080;
enemy8._x = 1100;
enemy1._y = 220;
enemy2._y = 220;
enemy3._y = 220;
enemy4._y = 220;
enemy5._y = 220;
enemy6._y = 220;
enemy7._y = 220;
enemy8._y = 220;
zoho = 0;
goop = 0;
wave = 19;
}
if (((wave == 19) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 1;
goop = goop + 1;
enemy1._y = enemy1._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy1._x = enemy1._x - 2;
enemy2._y = enemy2._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy2._x = enemy2._x - 2;
enemy3._y = enemy3._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy3._x = enemy3._x - 2;
enemy4._y = enemy4._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy4._x = enemy4._x - 2;
enemy5._y = enemy5._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy5._x = enemy5._x - 2;
enemy6._y = enemy6._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy6._x = enemy6._x - 2;
enemy7._y = enemy7._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy7._x = enemy7._x - 2;
enemy8._y = enemy8._y - (2 * Math.cos(goop * (Math.PI/180)));
enemy8._x = enemy8._x - 2;
}
if ((((((((((wave == 19) && (enemy4._x <= -100)) && (enemy1._x <= -100)) && (enemy2._x <= -100)) && (enemy3._x <= -100)) && (enemy4._x <= -100)) && (enemy5._x <= -100)) && (enemy6._x <= -100)) && (enemy7._x <= -100)) && (enemy8._x <= -100)) {
duplicateMovieClip (etype1, "enemy1", 231);
duplicateMovieClip (etype1, "enemy2", 232);
enemy1._x = 900;
enemy2._x = 900;
enemy1._y = 100;
enemy2._y = 200;
zoho = 0;
goop = 0;
wave = 20;
}
if (((wave == 20) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 1;
goop = goop + 1;
enemy1._x = enemy1._x - 2;
enemy2._x = enemy2._x - 2;
}
if (((wave == 20) && (enemy1._x <= -100)) && (enemy2._x <= -100)) {
duplicateMovieClip (claw, "enemy1", 231);
duplicateMovieClip (claw2, "enemy2", 232);
boss = true;
music.play();
wave = 21;
}
if ((boss == true) && (mot < 19)) {
mot = mot + 0.05;
zap = 0;
enemy10._x = 1200;
}
if (boss == true) {
enemy10._y = 58;
ehp1 = 300000 /* 0x0493E0 */;
ehp2 = 300000 /* 0x0493E0 */;
enemy1._x = enemy10._x - 80;
enemy1._y = enemy10._y - 20;
encannon._x = enemy10._x + 40;
encannon._y = enemy10._y + 70;
enemy2._x = enemy10._x - 80;
enemy2._y = enemy10._y + 210;
}
if ((wave >= 11) && (enemy10._x > 500)) {
enemy10._x = enemy10._x - 4;
}
if (((pause != true) && (cleared != true)) && (enemy10._x < 600)) {
zap = zap + 1;
}
if (zap < 500) {
enemy1.claw.gotoAndStop(1);
enemy2.claw.gotoAndStop(1);
encannon.gotoAndStop(1);
efire1 = efire1 + 1;
efire2 = efire2 + 1;
}
if (zap >= 500) {
enemy1.claw.play();
enemy2.claw.play();
encannon.play();
}
if (zap >= 700) {
zap = 0;
}
if ((((efire1 > 150) && (cleared != true)) && (zap < 500)) && (boss == true)) {
duplicateMovieClip (elaser, "eshot1", 271);
eshot1._x = enemy1._x + 10;
eshot1._y = enemy1._y + 30;
ero1 = Math.atan2(enemy1._y - ship._y, enemy1._x - ship._x) / (Math.PI/180);
efire1 = 0;
}
if ((((efire2 > 150) && (cleared != true)) && (zap < 500)) && (boss == true)) {
duplicateMovieClip (elaser, "eshot2", 272);
eshot2._x = enemy2._x + 10;
eshot2._y = enemy2._y - 30;
ero2 = Math.atan2(enemy2._y - ship._y, enemy2._x - ship._x) / (Math.PI/180);
efire2 = 0;
}
if (boss != true) {
encannon.gotoAndStop(1);
zap = 0;
}
if (encannon.hitbox.hitTest(ship)) {
duplicateMovieClip (explosionb, "expload5", 700);
expload5._x = (ship._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (ship._y + (Math.random() * 20)) - (Math.random() * 20);
health = -200;
zap = 670;
encannon.gotoAndPlay("endfaze");
removeMovieClip(_root["eshot" + i]);
}
if (ehp10 <= 0) {
mot = mot * 0.96;
zap = 0;
bossexpload.play();
encannon.gotoAndStop(1);
enemy10.gotoAndStop(6);
removeMovieClip(enemy1);
removeMovieClip(enemy2);
removeMovieClip(encannon);
}
if ((boss != true) || (cleared == true)) {
bgauge._visible = false;
}
if ((boss == true) && (cleared != true)) {
bgauge._visible = true;
bgauge.gotoAndStop(Math.round(101 - sol));
sol = Math.round(ehp10 / 140);
}
if (((efire1 > quo1) && (blasttype1 == true)) && (enemy1._x > 0)) {
duplicateMovieClip (elaser, "eshot1", 271);
eshot1._x = enemy1._x;
eshot1._y = enemy1._y;
ero1 = Math.atan2(enemy1._y - ship._y, enemy1._x - ship._x) / (Math.PI/180);
efire1 = 0;
}
if (((efire2 > quo2) && (blasttype2 == true)) && (enemy2._x > 0)) {
duplicateMovieClip (elaser, "eshot2", 272);
eshot2._x = enemy2._x;
eshot2._y = enemy2._y;
ero2 = Math.atan2(enemy2._y - ship._y, enemy2._x - ship._x) / (Math.PI/180);
efire2 = 0;
}
if (((efire3 > quo3) && (blasttype3 == true)) && (enemy3._x > 0)) {
duplicateMovieClip (elaser, "eshot3", 273);
eshot3._x = enemy3._x;
eshot3._y = enemy3._y;
ero3 = Math.atan2(enemy3._y - ship._y, enemy3._x - ship._x) / (Math.PI/180);
efire3 = 0;
}
if (((efire4 > quo4) && (blasttype4 == true)) && (enemy4._x > 0)) {
duplicateMovieClip (elaser, "eshot4", 274);
eshot4._x = enemy4._x;
eshot4._y = enemy4._y;
ero4 = Math.atan2(enemy4._y - ship._y, enemy4._x - ship._x) / (Math.PI/180);
efire4 = 0;
}
if (((efire5 > quo5) && (blasttype5 == true)) && (enemy5._x > 0)) {
duplicateMovieClip (elaser, "eshot5", 275);
eshot5._x = enemy5._x;
eshot5._y = enemy5._y;
ero5 = Math.atan2(enemy5._y - ship._y, enemy5._x - ship._x) / (Math.PI/180);
efire5 = 0;
}
if (((efire6 > quo6) && (blasttype6 == true)) && (enemy6._x > 0)) {
duplicateMovieClip (elaser, "eshot6", 276);
eshot6._x = enemy6._x;
eshot6._y = enemy6._y;
ero6 = Math.atan2(enemy6._y - ship._y, enemy6._x - ship._x) / (Math.PI/180);
efire6 = 0;
}
if (((efire7 > quo7) && (blasttype7 == true)) && (enemy7._x > 0)) {
duplicateMovieClip (elaser, "eshot7", 277);
eshot7._x = enemy7._x;
eshot7._y = enemy7._y;
ero7 = Math.atan2(enemy7._y - ship._y, enemy7._x - ship._x) / (Math.PI/180);
efire7 = 0;
}
if (((efire8 > quo8) && (blasttype8 == true)) && (enemy8._x > 0)) {
duplicateMovieClip (elaser, "eshot8", 288);
eshot8._x = enemy8._x;
eshot8._y = enemy8._y;
ero8 = Math.atan2(enemy8._y - ship._y, enemy8._x - ship._x) / (Math.PI/180);
efire8 = 0;
}
if (cleared == true) {
scorecard.play();
ship._x = ship._x + ork;
ork = ork + 0.3;
}
if (rocket >= 5) {
homing = true;
}
if (cow > 5) {
cow = 1;
}
if (rocket <= 0) {
homing = false;
}
if (chargelaser == true) {
powerbeam = powerbeam + 1;
ship.laserbeam.gotoAndStop(powerbeam);
}
if ((powerbeam > 60) && (powerbeam < 120)) {
lasertype = 1;
powersx = 5;
}
if ((powerbeam > 120) && (powerbeam < 170)) {
lasertype = 2;
powersx = 10;
}
if (powerbeam > 170) {
lasertype = 3;
powersx = 20;
}
if (pause != true) {
shotx._x = shotx._x + 28;
}
scorecard.kills = kills;
scorecard.score = score;
cross._rotation = cross._rotation + 4;
acc = (cross._y - ship._y) / 7;
acc2 = (cross._x - ship._x) / 7;
zen = zen + 1;
hp.gotoAndStop(Math.round(101 - health));
egauge.gotoAndStop(Math.round(ehp10 / 100));
hp.life.gotoAndStop(lives);
heat.gotoAndStop(Math.round(gunpow));
star._x = star._x - mot;
star2._x = star2._x - mot;
ware1.wep1.gotoAndStop(weapon1);
ware2.wep1.gotoAndStop(weapon2);
ware2._visible = laserlock;
bombsd.gotoAndStop(bomb + 1);
hp.score = score;
egauge._visible = boss;
sphere1._rotation = sphere1._rotation + 15;
sphere2._rotation = sphere2._rotation + 15;
};
onMouseDown = function () {
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun <= 2)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = ship._x + 30;
_root["shot" + ren]._y = ship._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
gunpow = gunpow + energy;
ren = ren + 1;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 3)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = ship._x + 30;
_root["shot" + ren]._y = ship._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = ship._x + 30;
_root["shot" + (ren + 1)]._y = ship._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 10;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 2), ren + 302);
_root["shot" + (ren + 2)]._x = ship._x + 30;
_root["shot" + (ren + 2)]._y = ship._y;
_root["shotspeed" + (ren + 2)] = speeder;
_root["zeek" + (ren + 2)] = -10;
_root["osc" + (ren + 2)] = 0;
_root["rambo" + (ren + 2)] = 1;
gunpow = gunpow + energy;
ren = ren + 3;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 4)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = ship._x + 30;
_root["shot" + ren]._y = ship._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = -30;
_root["osc" + ren] = -35;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = ship._x + 30;
_root["shot" + (ren + 1)]._y = ship._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 30;
_root["osc" + (ren + 1)] = 35;
_root["rambo" + (ren + 1)] = 1;
gunpow = gunpow + energy;
ren = ren + 2;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 6)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = ship._x + 30;
_root["shot" + ren]._y = ship._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
gunpow = gunpow + energy;
ren = ren + 1;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 5)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = ship._x + 30;
_root["shot" + ren]._y = ship._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = ship._x + 30;
_root["shot" + (ren + 1)]._y = ship._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 90;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 0;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 2), ren + 302);
_root["shot" + (ren + 2)]._x = ship._x + 30;
_root["shot" + (ren + 2)]._y = ship._y;
_root["shotspeed" + (ren + 2)] = speeder;
_root["zeek" + (ren + 2)] = -90;
_root["osc" + (ren + 2)] = 0;
_root["rambo" + (ren + 2)] = 0;
gunpow = gunpow + energy;
ren = ren + 3;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 7)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = ship._x - 30;
_root["shot" + ren]._y = ship._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["rambo" + ren] = -1;
_root["osc" + ren] = 0;
duplicateMovieClip (("laserx" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = ship._x + 30;
_root["shot" + (ren + 1)]._y = ship._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 0;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 1;
gunpow = gunpow + energy;
ren = ren + 2;
zen = 1;
}
if (((((rocket >= 1) && (rockettype >= 2)) && (pause != true)) && (cleared != true)) && (reloadx1 > 2)) {
duplicateMovieClip (laserff, "shota" + cow, 401 + cow);
_root["shota" + cow]._x = sphere1._x;
_root["shota" + cow]._y = sphere1._y;
reloadx1 = 0;
cow = cow + 1;
}
if (((((rocket >= 2) && (rockettype >= 2)) && (pause != true)) && (cleared != true)) && (reloadx2 > 2)) {
duplicateMovieClip (laserff, "shotb" + cow, 412 + cow);
_root["shotb" + cow]._x = sphere2._x;
_root["shotb" + cow]._y = sphere2._y;
reloadx2 = 0;
cow = cow + 1;
}
if (((((rocket >= 1) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm1 > 50)) {
duplicateMovieClip (rocketer, "missile1", 401);
missile1._x = ship._x;
missile1._y = ship._y + 10;
accm1 = 1.2;
reloadm1 = 0;
homing1 = homing;
mihunt1 = 0;
lockon1 = false;
}
if (((((rocket >= 2) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm2 > 50)) {
duplicateMovieClip (rocketer, "missile2", 402);
missile2._x = ship._x;
missile2._y = ship._y - 10;
accm2 = 1.2;
reloadm2 = 0;
homing2 = homing;
mihunt2 = 0;
lockon2 = false;
}
if (((((rocket >= 3) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm3 > 50)) {
duplicateMovieClip (rocketer, "missile3", 403);
missile3._x = ship._x;
missile3._y = ship._y + 20;
accm3 = 1.2;
reloadm3 = 0;
homing3 = homing;
mihunt3 = 3;
lockon3 = false;
}
if (((((rocket >= 4) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm4 > 50)) {
duplicateMovieClip (rocketer, "missile4", 404);
missile4._x = ship._x;
missile4._y = ship._y - 20;
accm4 = 1.2;
reloadm4 = 0;
homing4 = homing;
mihunt4 = -3;
lockon4 = false;
}
if (ultimate == true) {
ult = "m";
}
if (ultimate != true) {
ult = "";
}
if ((geger > 4) && (ultimate != true)) {
duplicateMovieClip (megapower, "mpower", 403);
mpower._x = ship._x;
mpower._y = ship._y;
ultimate = true;
}
powerbeam = 0;
chargelaser = true;
powers = 0;
};
onMouseUp = function () {
if (powerbeam > 30) {
duplicateMovieClip ("chargelaser" + lasertype, "shotx", 310);
talho = lasertype;
shotx._x = ship._x + 30;
shotx._y = ship._y;
shotpower = powers;
powerbeam = 1;
ren = 2;
ship.laserbeam.gotoAndStop(1);
}
chargelaser = false;
};
Instance of Symbol 500 MovieClip "gover" in Frame 7
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
if (_root.lives <= 0) {
this.play();
}
}
Frame 8
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval (onEnterFrame());
Frame 9
delete eval (onEnterFrame());
Frame 10
stop();
shipa.swapDepths(200);
hp.swapDepths(1500);
bombsd.swapDepths(1501);
ware1.swapDepths(1505);
ware2.swapDepths(1507);
music.swapDepths(20501);
heat.swapDepths(1502);
egauge.swapDepths(1509);
bgauge.swapDepths(20000);
cross.swapDepths(10499);
scorecarda.swapDepths(10459);
enemya1.swapDepths(231);
enemya2.swapDepths(232);
enemya3.swapDepths(233);
enemya4.swapDepths(234);
enemya5.swapDepths(235);
enemya6.swapDepths(236);
enemya10.swapDepths(1946);
bossexploada.swapDepths(3346);
cleared = false;
_quality = "Medium";
if (powerlevel == undefined) {
powerlevel = 1;
}
if (weapon2 == undefined) {
weapon2 = 3;
}
if (btype == undefined) {
btype = 3;
}
if (rockettype == undefined) {
rockettype = 2;
}
if (lives == undefined) {
weapon1 = 2;
lives = 4;
rocket = 0;
scoreq = 0;
kills = 0;
score = 0;
bomb = 3;
bosa = 1;
bombs = 3;
laserlock = false;
}
mission = 2;
fork1 = 0;
reloadx1 = 0;
reloadx2 = 0;
gameover = false;
boss = false;
zoho = 0;
ork = 0;
prize = 0;
wavea = 1;
homing = false;
zoho = 0;
zoey = true;
pause = true;
health = 100;
select = 1;
startDrag ("cross", true);
selection = 1;
gun = weapon1;
speeder = 20;
reload = 0;
ren = 1;
zen = 1;
charger = 0;
jetstream = 0;
jo = 1;
starttimer = 0;
ac = 0.4;
shipa.gotoAndStop(2);
mot = 1;
gunpow = 1;
reloadm1 = 0;
reloadm2 = 0;
reloadm3 = 0;
reloadm4 = 0;
reloadx1 = 0;
reloadx2 = 0;
cow = 1;
imu = 200;
ehpa1 = 100;
ehpa2 = 100;
ehpa3 = 100;
ehpa4 = 100;
ehpa5 = 100;
ehpa6 = 100;
ehpa7 = 100;
ehpa8 = 100;
ehpa9 = 100;
ehpa10 = 5000;
enemya1._x = 500;
enemya1._y = 670;
enemya2._x = 500;
enemya2._y = 700;
enemya3._x = 500;
enemya3._y = 730;
enemya4._x = 500;
enemya4._y = 760;
enemya5._x = 500;
enemya5._y = 790;
enemya6._x = 500;
enemya6._y = 640;
efire1 = 0;
efire2 = 0;
efire3 = 0;
efire4 = 0;
efire5 = 0;
efire6 = 0;
efire7 = 0;
efire8 = 0;
efire9 = 0;
efire10 = 0;
scorecarda.gotoAndStop(1);
bossexploada.gotoAndStop(1);
victorya = false;
onEnterFrame = function () {
i = 1;
while (i <= 10) {
if ((missile1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
duplicateMovieClip (explosion, "expload1", 600);
expload1._x = (missile1._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (missile1._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile1);
}
if ((missile2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
duplicateMovieClip (explosion, "expload2", 602);
expload2._x = (missile2._x + (Math.random() * 20)) - (Math.random() * 20);
expload2._y = (missile2._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile2);
}
if ((missile3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
duplicateMovieClip (explosion, "expload3", 603);
expload3._x = (missile3._x + (Math.random() * 20)) - (Math.random() * 20);
expload3._y = (missile3._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile3);
}
if ((missile4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
scoreq = scoreq + 10;
duplicateMovieClip (explosion, "expload4", 600);
expload4._x = (missile4._x + (Math.random() * 20)) - (Math.random() * 20);
expload4._y = (missile4._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(missile4);
}
if ((shot1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot1);
}
if ((shot2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot2);
}
if ((shot3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot3);
}
if ((shot4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot4);
}
if ((shot5.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot5);
}
if ((shot6.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot6);
}
if ((shot7.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot7);
}
if ((shot8.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot8);
}
if ((shot9.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot9);
}
if ((shota1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota1);
}
if ((shota2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota2);
}
if ((shota3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota3);
}
if ((shota4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota4);
}
if ((shota5.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota5);
}
if ((shotb1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb1);
}
if ((shotb2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb2);
}
if ((shotb3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb3);
}
if ((shotb5.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb5);
}
if ((shotb4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb4);
}
if ((shotx.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (5 * powersx);
scoreq = scoreq + 205;
duplicateMovieClip ("explosionl" + talho, "expload1", 800);
expload1._x = (shotx._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (shotx._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(fobo);
}
if ((ultimate == true) && (boss != true)) {
fobo = "foo";
}
if ((ultimate != true) || (boss == true)) {
fobo = "shotx";
}
if ((blast1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload1", 800);
expload1._x = (blast1._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (blast1._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast1);
}
if ((blast2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload2", 802);
expload2._x = (blast2._x + (Math.random() * 20)) - (Math.random() * 20);
expload2._y = (blast2._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast2);
}
if ((blast3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload3", 803);
expload3._x = (blast3._x + (Math.random() * 20)) - (Math.random() * 20);
expload3._y = (blast3._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast3);
}
if ((blast4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload4", 805);
expload4._x = (blast4._x + (Math.random() * 20)) - (Math.random() * 20);
expload4._y = (blast4._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(blast4);
scoreq = scoreq + 100;
}
if ((_root["enemya" + i].hitTest(shipa) && (imu > 300)) && (_root["ehpa" + i] > 0)) {
duplicateMovieClip (explosion, "expload5", 700);
expload5._x = (_root["enemya" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (_root["enemya" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
health = health - 25;
shipa.gotoAndPlay("damage");
_root["ehpa" + i] = 100;
_root["enemya" + i]._x = -900;
}
if ((_root["enemya" + i]._y < -500) || (_root["enemya" + i]._y > 800)) {
_root["enemya" + i]._x = -200;
}
if ((health <= 0) && (lives > 1)) {
imu = 0;
duplicateMovieClip (explosion, "expload5", 700);
expload5._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (explosion, "expload6", 703);
expload6._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload6._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
expload6._rotation = 90;
shipa._x = -100;
select = 1;
gun = 2;
geger = 0;
ultimate = false;
boni = true;
jovi.play();
lives = lives - 1;
rocket = 0;
laserlock = false;
health = 100;
}
if (((health <= 0) && (lives <= 1)) && (gameover != true)) {
duplicateMovieClip (explosion, "expload5", 706);
expload5._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (explosionm, "expload6", 703);
expload6._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload6._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
gameover = true;
gover.play();
removeMovieClip(shipa);
}
if (_root["eshot" + i].hitTest(shipa) && (imu > 300)) {
duplicateMovieClip (explosionb, "expload5", 700);
expload5._x = (_root["eshot" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (_root["eshot" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
health = health - 25;
shipa.gotoAndPlay("damage");
removeMovieClip(_root["eshot" + i]);
}
if (((_root["ehpa" + i] <= 0) && (wavea < 22)) && (scat != true)) {
duplicateMovieClip (explosionxx, "expload" + (5 + i), 700 + i);
_root["expload" + (5 + i)]._x = (_root["enemya" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
_root["expload" + (5 + i)]._y = (_root["enemya" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
zoho = zoho + 1;
_root["blasttype" + i] = false;
scoreq = scoreq + 100;
lastpox = _root["enemya" + i]._x;
lastpoy = _root["enemya" + i]._y;
_root["ehpa" + i] = 190;
_root["enemya" + i]._x = -900;
}
if (((ehpa1 <= 0) && (wavea < 22)) && (scat == true)) {
duplicateMovieClip (explosionxxx, "expload5", 700);
expload5._x = (enemya1._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (enemya1._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (etype4, "enemya2", 232);
duplicateMovieClip (etype4, "enemya3", 233);
duplicateMovieClip (etype4, "enemya4", 234);
duplicateMovieClip (etype4, "enemya5", 235);
ehpa2 = 100;
ehpa3 = 100;
ehpa4 = 100;
ehpa5 = 100;
enemya2._x = enemya1._x + 30;
enemya2._y = enemya1._y + 30;
enemya3._x = enemya1._x - 30;
enemya3._y = enemya1._y - 30;
enemya4._x = enemya1._x - 30;
enemya4._y = enemya1._y + 30;
enemya5._x = enemya1._x + 30;
enemya5._y = enemya1._y - 30;
kills = kills + 1;
zoho = zoho + 1;
blasttype1 = false;
scoreq = scoreq + 100;
scat = false;
ehpa1 = 100;
enemya1._x = -900;
}
if ((_root["enemya" + i]._x <= 0) && (_root["enemya" + i]._x > -100)) {
zoho = zoho - 1;
}
i++;
}
if (((starttimer > 75) && (pause == true)) && (zoey != true)) {
shipa.play();
}
if (((starttimer > 90) && (pause == true)) && (zoey != true)) {
shipa._x = shipa._x + (ac / 3);
ac = ac + 0.1;
mot = mot + 0.07;
}
if (((starttimer > 120) && (pause == true)) && (zoey != true)) {
pause = false;
}
if ((pause == true) && (zoey != true)) {
starttimer = starttimer + 1;
}
if (((pause != true) && (cleared != true)) && (shipa._x < 220)) {
shipa._x = shipa._x + 5;
}
if ((((cross._y > shipa._y) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._y = shipa._y + acc;
}
if ((((cross._y < shipa._y) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._y = shipa._y + acc;
}
if (((cross._y < (shipa._y - 15)) && (pause != true)) && (cleared != true)) {
shipa._rotation = (20 * acc) / 12;
shipa.rocket1.gotoAndStop(1);
shipa.rocket2.gotoAndStop(2);
}
if (((cross._y > (shipa._y + 15)) && (pause != true)) && (cleared != true)) {
shipa._rotation = (20 * acc) / 12;
shipa.rocket1.gotoAndStop(2);
shipa.rocket2.gotoAndStop(1);
}
if ((((cross._y <= (shipa._y + 8)) && (cross._y >= (shipa._y - 8))) && (pause != true)) && (cleared != true)) {
shipa._rotation = 0;
shipa.rocket1.gotoAndStop(1);
shipa.rocket2.gotoAndStop(1);
}
if (((((cross._x > (shipa._x + 20)) && (shipa._x < 300)) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._x = shipa._x + acc2;
}
if (((((cross._x < (shipa._x - 5)) && (shipa._x > 0)) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._x = shipa._x + acc2;
}
if ((pause != true) && (cleared != true)) {
bg._x = bg._x - 0.07;
}
if (ren > shotlimit) {
ren = 1;
}
if ((pause != true) && (cleared != true)) {
shot1._x = shot1._x + (shotspeed1 * rambo1);
shot2._x = shot2._x + (shotspeed2 * rambo2);
shot3._x = shot3._x + (shotspeed3 * rambo3);
shot4._x = shot4._x + (shotspeed4 * rambo4);
shot5._x = shot5._x + (shotspeed5 * rambo5);
shot6._x = shot6._x + (shotspeed6 * rambo6);
shot7._x = shot7._x + (shotspeed7 * rambo7);
shot8._x = shot8._x + (shotspeed8 * rambo8);
shot9._x = shot9._x + (shotspeed9 * rambo9);
shot10._x = shot10._x + (shotspeed10 * rambo10);
shot1._y = shot1._y + (shotspeed1 * Math.sin(zeek1 * (Math.PI/180)));
shot2._y = shot2._y + (shotspeed2 * Math.sin(zeek2 * (Math.PI/180)));
shot3._y = shot3._y + (shotspeed3 * Math.sin(zeek3 * (Math.PI/180)));
shot4._y = shot4._y + (shotspeed4 * Math.sin(zeek4 * (Math.PI/180)));
shot5._y = shot5._y + (shotspeed5 * Math.sin(zeek5 * (Math.PI/180)));
shot6._y = shot6._y + (shotspeed6 * Math.sin(zeek6 * (Math.PI/180)));
shot7._y = shot7._y + (shotspeed7 * Math.sin(zeek7 * (Math.PI/180)));
shot8._y = shot8._y + (shotspeed8 * Math.sin(zeek8 * (Math.PI/180)));
shot9._y = shot9._y + (shotspeed9 * Math.sin(zeek9 * (Math.PI/180)));
shot10._y = shot10._y + (shotspeed10 * Math.sin(zeek10 * (Math.PI/180)));
shota1._x = shota1._x + 25;
shota2._x = shota2._x + 25;
shota3._x = shota3._x + 25;
shota4._x = shota4._x + 25;
shota5._x = shota5._x + 25;
shotb0._x = shotb0._x + 25;
shotb1._x = shotb1._x + 25;
shotb2._x = shotb2._x + 25;
shotb3._x = shotb3._x + 25;
shotb4._x = shotb4._x + 25;
shotb5._x = shotb5._x + 25;
shotb6._x = shotb6._x + 25;
zeek1 = zeek1 + osc1;
zeek2 = zeek2 + osc2;
zeek3 = zeek3 + osc3;
zeek4 = zeek4 + osc4;
zeek5 = zeek5 + osc5;
zeek6 = zeek6 + osc6;
zeek7 = zeek7 + osc7;
zeek8 = zeek8 + osc8;
zeek9 = zeek9 + osc9;
zeek10 = zeek10 + osc10;
missile1._x = missile1._x + (accm1 * Math.cos(mihunt1 * (Math.PI/180)));
missile3._x = missile3._x + (accm3 * Math.cos(mihunt3 * (Math.PI/180)));
missile2._x = missile2._x + (accm2 * Math.cos(mihunt2 * (Math.PI/180)));
missile4._x = missile4._x + (accm4 * Math.cos(mihunt4 * (Math.PI/180)));
missile1._y = missile1._y + (accm1 * Math.sin(mihunt1 * (Math.PI/180)));
missile3._y = missile3._y + (accm3 * Math.sin(mihunt3 * (Math.PI/180)));
missile2._y = missile2._y + (accm2 * Math.sin(mihunt2 * (Math.PI/180)));
missile4._y = missile4._y + (accm4 * Math.sin(mihunt4 * (Math.PI/180)));
accm1 = accm1 + 0.8;
accm2 = accm2 + 0.8;
accm3 = accm3 + 0.8;
accm4 = accm4 + 0.8;
reloadm1 = reloadm1 + 1;
reloadm2 = reloadm1;
reloadx1 = reloadx1 + 1;
reloadx2 = reloadx1;
reloadm3 = reloadm1;
reloadm4 = reloadm1;
missile1._rotation = mihunt1;
missile2._rotation = mihunt2;
missile3._rotation = mihunt3;
missile4._rotation = mihunt4;
eshot1._x = eshot1._x - (9 * Math.cos(ero1 * (Math.PI/180)));
eshot2._x = eshot2._x - (9 * Math.cos(ero2 * (Math.PI/180)));
eshot3._x = eshot3._x - (9 * Math.cos(ero3 * (Math.PI/180)));
eshot4._x = eshot4._x - (9 * Math.cos(ero4 * (Math.PI/180)));
eshot5._x = eshot5._x - (9 * Math.cos(ero5 * (Math.PI/180)));
eshot6._x = eshot6._x - (9 * Math.cos(ero6 * (Math.PI/180)));
eshot7._x = eshot7._x - (9 * Math.cos(ero7 * (Math.PI/180)));
eshot8._x = eshot8._x - (9 * Math.cos(ero8 * (Math.PI/180)));
eshot9._x = eshot9._x - (9 * Math.cos(ero9 * (Math.PI/180)));
eshot10._x = eshot10._x - (9 * Math.cos(ero10 * (Math.PI/180)));
eshot1._y = eshot1._y - (9 * Math.sin(ero1 * (Math.PI/180)));
eshot2._y = eshot2._y - (9 * Math.sin(ero2 * (Math.PI/180)));
eshot3._y = eshot3._y - (9 * Math.sin(ero3 * (Math.PI/180)));
eshot4._y = eshot4._y - (9 * Math.sin(ero4 * (Math.PI/180)));
eshot5._y = eshot5._y - (9 * Math.sin(ero5 * (Math.PI/180)));
eshot6._y = eshot6._y - (9 * Math.sin(ero6 * (Math.PI/180)));
eshot7._y = eshot7._y - (9 * Math.sin(ero7 * (Math.PI/180)));
eshot8._y = eshot8._y - (9 * Math.sin(ero8 * (Math.PI/180)));
eshot9._y = eshot9._y - (9 * Math.sin(ero9 * (Math.PI/180)));
eshot10._y = eshot10._y - (9 * Math.sin(ero10 * (Math.PI/180)));
}
if (((pause != true) && (cleared != true)) && (btype < 2)) {
blast1._x = blast1._x + (blastspeed1 * Math.cos(zeekb1 * (Math.PI/180)));
blast3._x = blast3._x + (blastspeed3 * Math.cos(zeekb3 * (Math.PI/180)));
blast2._x = blast2._x + (blastspeed2 * Math.cos(zeekb2 * (Math.PI/180)));
blast4._x = blast4._x + (blastspeed4 * Math.cos(zeekb4 * (Math.PI/180)));
blast1._y = blast1._y + (blastspeed1 * Math.sin(zeekb1 * (Math.PI/180)));
blast3._y = blast3._y + (blastspeed3 * Math.sin(zeekb3 * (Math.PI/180)));
blast2._y = blast2._y + (blastspeed2 * Math.sin(zeekb2 * (Math.PI/180)));
blast4._y = blast4._y + (blastspeed4 * Math.sin(zeekb4 * (Math.PI/180)));
zeekb1 = zeekb1 + oscb1;
zeekb2 = zeekb2 + oscb2;
zeekb3 = zeekb3 + oscb3;
zeekb4 = zeekb4 + oscb4;
}
if (((pause != true) && (cleared != true)) && (btype == 2)) {
blast1._x = shipa._x + (40 * Math.cos(zeekb1 * (Math.PI/180)));
blast3._x = shipa._x + (40 * Math.cos(zeekb3 * (Math.PI/180)));
blast2._x = shipa._x + (40 * Math.cos(zeekb2 * (Math.PI/180)));
blast4._x = shipa._x + (40 * Math.cos(zeekb4 * (Math.PI/180)));
blast1._y = shipa._y + (40 * Math.sin(zeekb1 * (Math.PI/180)));
blast3._y = shipa._y + (40 * Math.sin(zeekb3 * (Math.PI/180)));
blast2._y = shipa._y + (40 * Math.sin(zeekb2 * (Math.PI/180)));
blast4._y = shipa._y + (40 * Math.sin(zeekb4 * (Math.PI/180)));
zeekb1 = zeekb1 + (oscb1 / 2);
zeekb2 = zeekb2 + (oscb2 / 2);
zeekb3 = zeekb3 + (oscb3 / 2);
zeekb4 = zeekb4 + (oscb4 / 2);
}
if (shot == true) {
charger = charger + 1;
}
if (star._x < -600) {
star._x = 600;
}
if (star2._x < -600) {
star2._x = 600;
}
if (select == 1) {
ware1.gotoAndStop(2);
ware2.gotoAndStop(1);
ware3.gotoAndStop(1);
}
if (select == 2) {
ware1.gotoAndStop(1);
ware2.gotoAndStop(2);
ware3.gotoAndStop(1);
}
if (select == 3) {
ware1.gotoAndStop(1);
ware2.gotoAndStop(1);
ware3.gotoAndStop(2);
}
if (((((Key.isDown(65) && (laserlock == true)) && (pause != true)) && (cleared != true)) && (select <= 1)) && (boni != true)) {
select = 2;
gun = weapon2;
boni = true;
jovi.play();
}
if ((((Key.isDown(65) && (pause != true)) && (cleared != true)) && (select >= 2)) && (boni != true)) {
select = 1;
gun = weapon1;
boni = true;
jovi.play();
}
if ((!Key.isDown(65)) && (boni == true)) {
boni = false;
}
if (ultimate == true) {
ult = "m";
}
if (ultimate != true) {
ult = "";
}
if ((geger > 4) && (ultimate != true)) {
duplicateMovieClip (megapower, "mpower", 403);
mpower._x = shipa._x;
mpower._y = shipa._y;
ultimate = true;
}
if ((rockettype == 2) && (rocket >= 1)) {
sphere1._x = shipa._x + (60 * Math.cos(fork1 * (Math.PI/180)));
sphere1._y = shipa._y + (60 * Math.sin(fork1 * (Math.PI/180)));
sphere1._visible = true;
fork1 = fork1 + 15;
}
if ((rockettype == 2) && (rocket >= 2)) {
sphere2._x = shipa._x - (60 * Math.cos(fork1 * (Math.PI/180)));
sphere2._y = shipa._y - (60 * Math.sin(fork1 * (Math.PI/180)));
sphere2._visible = true;
}
if ((rockettype == 2) && (rocket < 1)) {
sphere1._x = -555;
sphere1._visible = false;
}
if ((rockettype == 2) && (rocket < 2)) {
sphere2._x = -555;
sphere2._visible = false;
}
if ((rockettype >= 3) && (rocket >= 1)) {
shieldhealth = shieldhealth + 50;
rocket = 0;
}
if (pause != true) {
shipa.shield.gotoAndStop(shieldhealth);
}
if (shieldhealth > 200) {
shieldhealth = 200;
}
if (shieldhealth <= 0) {
shieldhealth = 0;
}
if ((health < 100) && (shieldhealth > 0)) {
health = health + 1;
shieldhealth = shieldhealth - 1;
}
if (((gunpow > 1) && (pause != true)) && (cleared != true)) {
gunpow = gunpow - 0.2;
}
if (gunpow <= 1) {
gunpow = 1;
}
if (bosa > 4) {
bosa = 1;
}
if (((pause != true) && (cleared != true)) && (scoreq > score)) {
score = score + 10;
}
if ((!Key.isDown(83)) && (bomber == true)) {
bomber = false;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype <= 1)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = shipa._x + 30;
_root["blast" + bosa]._y = shipa._y;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 0;
_root["oscb" + bosa] = 0;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype == 2)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = shipa._x + 15;
_root["blast" + bosa]._y = shipa._y;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 90;
_root["oscb" + bosa] = 9;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype >= 3)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = shipa._x;
_root["blast" + bosa]._y = shipa._y + 20;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 90;
_root["oscb" + bosa] = 9;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if ((pause != true) && (cleared != true)) {
bombbonus1._x = bombbonus1._x - 2;
modmissile._x = modmissile._x - 2;
modhealth._x = modhealth._x - 2;
modlaser._x = modlaser._x - 2;
bombbonus1._rotation = bombbonus1._rotation + 3;
}
if (bombbonus1.hitTest(shipa)) {
bomb = bomb + 1;
removeMovieClip(bombbonus1);
}
if (modmissile.hitTest(shipa)) {
rocket = rocket + 1;
duplicateMovieClip (misbonus, "misbonus1", 999);
misbonus1._y = shipa._y;
misbonus1._x = shipa._x - 10;
removeMovieClip(modmissile);
}
if (modhealth.hitTest(shipa)) {
health = 100;
duplicateMovieClip (healthbonus, "mishealth1", 999);
mishealth1._y = shipa._y;
mishealth1._x = shipa._x - 10;
removeMovieClip(modhealth);
}
if (modlaser.hitTest(shipa)) {
laserlock = true;
duplicateMovieClip (lasbonus, "misbonus1", 999);
misbonus1._y = shipa._y;
misbonus1._x = shipa._x - 10;
removeMovieClip(modlaser);
}
if (bomb > 4) {
bomb = 4;
}
if ((zoho >= zohan) && (prize <= 1)) {
duplicateMovieClip (missilemod, "modmissile", 120);
modmissile._x = lastpox;
modmissile._y = lastpoy;
zoho = 0;
}
if ((zoho >= zohan) && (prize == 2)) {
duplicateMovieClip (lasermod, "modlaser", 120);
modlaser._x = lastpox;
modlaser._y = lastpoy;
zoho = 0;
}
if ((zoho >= zohan) && (prize == 3)) {
duplicateMovieClip (healthmod, "modhealth", 120);
modhealth._x = lastpox;
modhealth._y = lastpoy;
zoho = 0;
}
if (((wavea <= 1) && (pause != true)) && (cleared != true)) {
enemya1._y = enemya1._y - 2;
enemya2._y = enemya2._y - 2;
enemya3._y = enemya3._y - 2;
enemya4._y = enemya4._y - 2;
enemya5._y = enemya5._y - 2;
enemya6._y = enemya6._y - 2;
blasttype2 = true;
blasttype4 = true;
blasttype6 = true;
efire2 = efire2 + 1;
efire4 = efire4 + 1;
efire6 = efire6 + 1;
quo2 = 260;
quo4 = 260;
quo6 = 260;
prize = 2;
zohan = 6;
}
if ((((((((wavea <= 1) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) {
zohan = 6;
zoho = 0;
prize = 2;
duplicateMovieClip (etype2, "enemya1", 231);
duplicateMovieClip (etype2, "enemya2", 232);
duplicateMovieClip (etype2, "enemya3", 233);
duplicateMovieClip (etype2, "enemya4", 234);
duplicateMovieClip (etype2, "enemya5", 235);
duplicateMovieClip (etype2, "enemya6", 236);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 1000;
enemya2._y = 150;
enemya3._x = 1100;
enemya3._y = 150;
enemya4._x = 1200;
enemya4._y = 150;
enemya5._x = 1300;
enemya5._y = 150;
enemya6._x = 1400;
enemya6._y = 150;
blasttype2 = false;
blasttype4 = false;
blasttype6 = false;
wavea = 2;
}
if (((wavea == 2) && (pause != true)) && (cleared != true)) {
prize = 3;
enemya1._x = enemya1._x - 3;
enemya2._x = enemya2._x - 3;
enemya3._x = enemya3._x - 3;
enemya4._x = enemya4._x - 3;
enemya5._x = enemya5._x - 3;
enemya6._x = enemya6._x - 3;
enemya1._y = enemya1._y - (3 * Math.cos(enemya1._x * (Math.PI/180)));
enemya2._y = enemya2._y - (3 * Math.sin(enemya2._x * (Math.PI/180)));
enemya3._y = enemya3._y - (3 * Math.cos(enemya3._x * (Math.PI/180)));
enemya4._y = enemya4._y - (3 * Math.sin(enemya4._x * (Math.PI/180)));
enemya5._y = enemya5._y - (4 * Math.cos(enemya5._x * (Math.PI/180)));
enemya6._y = enemya6._y - (4 * Math.sin(enemya6._x * (Math.PI/180)));
}
if ((((((((wavea == 2) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) {
zohan = 5;
zoho = 0;
duplicateMovieClip (etype3, "enemya1", 231);
enemya1._x = 900;
enemya1._y = 150;
ehpa1 = 300;
scat = true;
wavea = 3;
}
if (((wavea == 3) && (pause != true)) && (cleared != true)) {
prize = 1;
enemya1._x = enemya1._x - 1;
enemya2._x = enemya2._x - 4;
enemya3._x = enemya3._x - 4;
enemya4._x = enemya4._x - 4;
enemya3._y = enemya3._y - 0.7;
enemya4._y = enemya4._y + 0.7;
enemya5._x = enemya5._x - 4;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
}
if ((((((((wavea == 3) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) {
zohan = 12;
zoho = 0;
duplicateMovieClip (etype2, "enemya1", 231);
duplicateMovieClip (etype2, "enemya2", 232);
duplicateMovieClip (etype2, "enemya3", 233);
duplicateMovieClip (etype2, "enemya4", 234);
duplicateMovieClip (etype2, "enemya5", 235);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 950;
enemya2._y = 200;
enemya3._x = 950;
enemya3._y = 100;
enemya4._x = 1000;
enemya4._y = 100;
enemya5._x = 1000;
enemya5._y = 200;
wavea = 4;
}
if (((wavea == 4) && (pause != true)) && (cleared != true)) {
enemya1._x = enemya1._x - 1.5;
enemya2._x = enemya2._x - 1.5;
enemya3._x = enemya3._x - 1.5;
enemya4._x = enemya4._x - 1.5;
enemya5._x = enemya5._x - 1.5;
}
if ((((((((wavea == 4) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) {
zohan = 8;
zoho = 0;
prize = 1;
duplicateMovieClip (etype2, "enemya1", 231);
duplicateMovieClip (etype2, "enemya2", 232);
duplicateMovieClip (etype2, "enemya3", 233);
duplicateMovieClip (etype2, "enemya4", 234);
duplicateMovieClip (etype2, "enemya5", 235);
duplicateMovieClip (etype2, "enemya6", 236);
duplicateMovieClip (etype2, "enemya7", 237);
duplicateMovieClip (etype2, "enemya8", 238);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 950;
enemya2._y = 200;
enemya3._x = 950;
enemya3._y = 100;
enemya4._x = 1000;
enemya4._y = 100;
enemya5._x = 1000;
enemya5._y = 200;
enemya6._x = 1100;
enemya6._y = 150;
enemya7._x = 1100;
enemya7._y = 100;
enemya8._x = 1100;
enemya8._y = 200;
wavea = 5;
}
if (((wavea == 5) && (pause != true)) && (cleared != true)) {
prize = 1;
enemya1._x = enemya1._x - 3;
enemya2._x = enemya2._x - 3;
enemya3._x = enemya3._x - 3;
enemya4._x = enemya4._x - 3;
enemya5._x = enemya5._x - 3;
enemya6._x = enemya6._x - 3;
enemya7._x = enemya7._x - 3;
enemya8._x = enemya8._x - 3;
blasttype2 = true;
efire2 = efire2 + 1;
quo2 = 100;
blasttype3 = true;
efire3 = efire3 + 1;
quo3 = 100;
}
if ((((((((((wavea == 5) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zohan = 2;
zoho = 0;
prize = 2;
duplicateMovieClip (etype5, "enemya1", 231);
duplicateMovieClip (etype5, "enemya2", 232);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 900;
enemya2._y = 150;
ehpa1 = 300;
ehpa2 = 300;
coth = 0;
wavea = 6;
}
if ((((wavea == 6) && (pause != true)) && (enemya1._x > 500)) && (cleared != true)) {
prize = 2;
enemya1._x = enemya1._x - 3;
enemya2._x = enemya2._x - 3;
blasttype2 = true;
efire2 = efire2 + 1;
quo2 = 100;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
}
if ((((wavea == 6) && (pause != true)) && (enemya1._x < 500)) && (cleared != true)) {
prize = 2;
enemya1._y = enemya1._y + (3 * Math.cos(coth * (Math.PI/180)));
enemya2._y = enemya2._y - (3 * Math.cos(coth * (Math.PI/180)));
enemya1._rotation = Math.atan2(enemya1._y - shipa._y, enemya1._x - shipa._x) / (Math.PI/180);
enemya2._rotation = Math.atan2(enemya2._y - shipa._y, enemya2._x - shipa._x) / (Math.PI/180);
coth = coth + 1;
blasttype2 = true;
efire2 = efire2 + 1;
quo2 = 200;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 200;
}
if ((((((((((wavea == 6) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zohan = 7;
zoho = 0;
ehpa1 = 300;
scat = true;
prize = 2;
duplicateMovieClip (etype3, "enemya1", 231);
duplicateMovieClip (etype2, "enemya6", 236);
duplicateMovieClip (etype2, "enemya7", 237);
enemya1._x = 900;
enemya1._y = 150;
enemya6._x = 990;
enemya6._y = 200;
enemya7._x = 990;
enemya7._y = 100;
wavea = 7;
}
if (((wavea == 7) && (pause != true)) && (cleared != true)) {
prize = 1;
enemya1._x = enemya1._x - 1;
enemya2._x = enemya2._x - 4;
enemya3._x = enemya3._x - 4;
enemya4._x = enemya4._x - 4;
enemya3._y = enemya3._y - 0.7;
enemya4._y = enemya4._y + 0.7;
enemya5._x = enemya5._x - 4;
enemya6._x = enemya6._x - 1;
enemya7._x = enemya7._x - 1;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
blasttype6 = true;
efire6 = efire6 + 1;
quo6 = 100;
blasttype7 = true;
efire7 = efire7 + 1;
quo7 = 100;
}
if (((((((((wavea == 7) && (enemya7._x <= -100)) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) {
zohan = 6;
zoho = 0;
prize = 2;
duplicateMovieClip (etype5, "enemya1", 231);
duplicateMovieClip (etype5, "enemya2", 232);
duplicateMovieClip (etype5, "enemya3", 233);
duplicateMovieClip (etype5, "enemya4", 234);
duplicateMovieClip (etype5, "enemya5", 235);
duplicateMovieClip (etype5, "enemya6", 236);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 1000;
enemya2._y = 150;
enemya3._x = 1100;
enemya3._y = 150;
enemya4._x = 1200;
enemya4._y = 150;
enemya5._x = 1300;
enemya5._y = 150;
enemya6._x = 1400;
enemya6._y = 150;
blasttype2 = true;
blasttype1 = true;
blasttype6 = true;
wavea = 8;
}
if (((wavea == 8) && (pause != true)) && (cleared != true)) {
prize = 1;
enemya1._x = enemya1._x - 1;
enemya2._x = enemya2._x - 4;
enemya3._x = enemya3._x - 4;
enemya4._x = enemya4._x - 4;
enemya5._x = enemya5._x - 4;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
}
if (((((((wavea == 8) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) {
zohan = 6;
zoho = 0;
duplicateMovieClip (etype2, "enemya1", 231);
duplicateMovieClip (etype2, "enemya2", 232);
duplicateMovieClip (etype2, "enemya3", 233);
duplicateMovieClip (etype2, "enemya4", 234);
duplicateMovieClip (etype2, "enemya5", 235);
duplicateMovieClip (etype2, "enemya6", 236);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 950;
enemya2._y = 150;
enemya3._x = 1000;
enemya3._y = 150;
enemya4._x = 1050;
enemya4._y = 150;
enemya5._x = 1100;
enemya5._y = 150;
enemya6._x = 1150;
enemya6._y = 150;
wavea = 9;
}
if (((wavea == 9) && (pause != true)) && (cleared != true)) {
prize = 1;
enemya1._x = enemya1._x - 3;
enemya2._x = enemya2._x - 3;
enemya3._x = enemya3._x - 3;
enemya4._x = enemya4._x - 3;
enemya5._x = enemya5._x - 3;
enemya6._x = enemya6._x - 3;
enemya1._y = enemya1._y - (3 * Math.cos(enemya1._x * (Math.PI/180)));
enemya2._y = enemya2._y - (3 * Math.sin(enemya2._x * (Math.PI/180)));
enemya3._y = enemya3._y - (3 * Math.cos(enemya3._x * (Math.PI/180)));
enemya4._y = enemya4._y - (3 * Math.sin(enemya4._x * (Math.PI/180)));
enemya5._y = enemya5._y - (4 * Math.cos(enemya5._x * (Math.PI/180)));
enemya6._y = enemya6._y - (4 * Math.sin(enemya6._x * (Math.PI/180)));
blasttype2 = true;
efire2 = efire2 + 1;
quo1 = 200;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
blasttype6 = true;
efire6 = efire6 + 1;
quo6 = 100;
}
if ((((((((wavea == 9) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) {
zohan = 9;
zoho = 0;
prize = 2;
duplicateMovieClip (etype6, "enemya9", 239);
enemya9._x = 900;
enemya9._y = 100;
ehpa9 = 900;
spawn = 0;
spawnno = 1;
spawner = true;
wavea = 10;
}
if (((wavea == 10) && (pause != true)) && (cleared != true)) {
prize = 3;
enemya1._x = enemya1._x - 3;
enemya2._x = enemya2._x - 3;
enemya3._x = enemya3._x - 3;
enemya4._x = enemya4._x - 3;
enemya5._x = enemya5._x - 3;
enemya6._x = enemya6._x - 3;
enemya7._x = enemya7._x - 3;
enemya8._x = enemya8._x - 3;
enemya2._y = enemya2._y + 0.2;
enemya4._y = enemya4._y + 0.4;
enemya5._y = enemya5._y + 0.2;
enemya6._y = enemya6._y + 0.4;
enemya7._y = enemya7._y + 0.2;
enemya9._x = enemya9._x - 2;
spawn = spawn + 1;
}
if (((((((((wavea == 10) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya9._x <= -100)) {
zohan = 4;
zoho = 0;
prize = 3;
duplicateMovieClip (etype2, "enemya1", 231);
duplicateMovieClip (etype2, "enemya2", 232);
duplicateMovieClip (etype2, "enemya3", 233);
duplicateMovieClip (etype2, "enemya4", 234);
enemya1._x = 900;
enemya1._y = 100;
enemya2._x = 950;
enemya2._y = 200;
enemya3._x = 950;
enemya3._y = 100;
enemya4._x = 900;
enemya4._y = 200;
scat = false;
wavea = 11;
}
if (((wavea == 11) && (pause != true)) && (cleared != true)) {
prize = 3;
enemya1._x = enemya1._x - 2;
enemya2._x = enemya2._x - 2;
enemya3._x = enemya3._x - 2;
enemya4._x = enemya4._x - 2;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
blasttype2 = true;
efire2 = efire2 + 1;
quo1 = 200;
}
if (((((((((wavea == 11) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya9._x <= -100)) {
zohan = 8;
zoho = 0;
prize = 2;
duplicateMovieClip (etype8, "enemya1", 231);
duplicateMovieClip (etype8, "enemya2", 232);
duplicateMovieClip (etype8, "enemya3", 233);
duplicateMovieClip (etype8, "enemya4", 234);
duplicateMovieClip (etype8, "enemya5", 235);
duplicateMovieClip (etype8, "enemya6", 236);
duplicateMovieClip (etype8, "enemya7", 237);
duplicateMovieClip (etype8, "enemya8", 238);
enemya1._x = 900;
enemya2._x = 900;
enemya3._x = 950;
enemya4._x = 950;
enemya5._x = 1000;
enemya6._x = 1000;
enemya7._x = 1050;
enemya8._x = 1050;
enemya1._y = 100;
enemya2._y = 200;
enemya3._y = 100;
enemya4._y = 200;
enemya5._y = 100;
enemya6._y = 200;
enemya7._y = 100;
enemya8._y = 200;
scat = false;
wavea = 12;
}
if (((wavea == 12) && (pause != true)) && (cleared != true)) {
prize = 2;
enemya1._x = enemya1._x - 2;
enemya2._x = enemya2._x - 2;
enemya3._x = enemya3._x - 2;
enemya4._x = enemya4._x - 2;
enemya5._x = enemya5._x - 2;
enemya6._x = enemya6._x - 2;
enemya7._x = enemya7._x - 2;
enemya8._x = enemya8._x - 2;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
blasttype2 = true;
efire2 = efire2 + 1;
quo1 = 200;
}
if (((((((((wavea == 12) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya8._x <= -100)) {
zohan = 8;
zoho = 0;
prize = 2;
duplicateMovieClip (etype11, "enemya1", 231);
duplicateMovieClip (etype11, "enemya2", 232);
duplicateMovieClip (etype11, "enemya3", 233);
duplicateMovieClip (etype11, "enemya4", 234);
duplicateMovieClip (etype11, "enemya5", 235);
duplicateMovieClip (etype11, "enemya6", 236);
duplicateMovieClip (etype11, "enemya7", 237);
duplicateMovieClip (etype11, "enemya8", 238);
enemya1._x = 600;
enemya2._x = 650;
enemya3._x = 700;
enemya4._x = 750;
enemya5._x = 600;
enemya6._x = 650;
enemya7._x = 700;
enemya8._x = 750;
enemya1._y = 400;
enemya2._y = 450;
enemya3._y = 500;
enemya4._y = 550;
enemya5._y = -100;
enemya6._y = -150;
enemya7._y = -200;
enemya8._y = -250;
scat = false;
wavea = 13;
}
if (((wavea == 13) && (pause != true)) && (cleared != true)) {
prize = 2;
enemya1._x = enemya1._x - 3;
enemya2._x = enemya2._x - 3;
enemya3._x = enemya3._x - 3;
enemya4._x = enemya4._x - 3;
enemya5._x = enemya5._x - 3;
enemya6._x = enemya6._x - 3;
enemya7._x = enemya7._x - 3;
enemya8._x = enemya8._x - 3;
enemya1._y = enemya1._y - 2;
enemya2._y = enemya2._y - 2;
enemya3._y = enemya3._y - 2;
enemya4._y = enemya4._y - 2;
enemya5._y = enemya5._y + 2;
enemya6._y = enemya6._y + 2;
enemya7._y = enemya7._y + 2;
enemya8._y = enemya8._y + 2;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
blasttype2 = true;
efire2 = efire2 + 1;
quo1 = 200;
}
if (((((((((wavea == 13) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya8._x <= -100)) {
zohan = 8;
zoho = 0;
prize = 2;
duplicateMovieClip (etype11, "enemya1", 231);
duplicateMovieClip (etype11, "enemya2", 232);
duplicateMovieClip (etype11, "enemya3", 233);
duplicateMovieClip (etype11, "enemya4", 234);
duplicateMovieClip (etype11, "enemya5", 235);
duplicateMovieClip (etype11, "enemya6", 236);
duplicateMovieClip (etype11, "enemya7", 237);
duplicateMovieClip (etype11, "enemya8", 238);
enemya1._x = 600;
enemya2._x = 550;
enemya3._x = 500;
enemya4._x = 450;
enemya5._x = 600;
enemya6._x = 550;
enemya7._x = 500;
enemya8._x = 450;
enemya1._y = 400;
enemya2._y = 450;
enemya3._y = 500;
enemya4._y = 550;
enemya5._y = -100;
enemya6._y = -150;
enemya7._y = -200;
enemya8._y = -250;
scat = false;
bort = -3;
wavea = 14;
}
if (((wavea == 14) && (pause != true)) && (cleared != true)) {
prize = 2;
enemya1._x = enemya1._x - bort;
enemya2._x = enemya2._x - bort;
enemya3._x = enemya3._x - bort;
enemya4._x = enemya4._x - bort;
enemya5._x = enemya5._x - bort;
enemya6._x = enemya6._x - bort;
enemya7._x = enemya7._x - bort;
enemya8._x = enemya8._x - bort;
bort = bort + 0.09;
enemya1._y = enemya1._y - 2;
enemya2._y = enemya2._y - 2.5;
enemya3._y = enemya3._y - 3;
enemya4._y = enemya4._y - 3.5;
enemya5._y = enemya5._y + 2;
enemya6._y = enemya6._y + 2.5;
enemya7._y = enemya7._y + 3;
enemya8._y = enemya8._y + 3.5;
}
if (((((((((wavea == 14) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya8._x <= -100)) {
zohan = 8;
zoho = 0;
prize = 2;
duplicateMovieClip (etype2, "enemya1", 231);
duplicateMovieClip (etype2, "enemya2", 232);
duplicateMovieClip (etype2, "enemya3", 233);
duplicateMovieClip (etype2, "enemya4", 234);
enemya1._x = 700;
enemya2._x = 750;
enemya3._x = 800;
enemya4._x = 850;
enemya1._y = 70;
enemya2._y = 140;
enemya3._y = 210;
enemya4._y = 280;
scat = false;
bort = 4;
wavea = 15;
}
if (((wavea == 15) && (pause != true)) && (cleared != true)) {
prize = 2;
enemya1._x = enemya1._x - bort;
enemya2._x = enemya2._x - bort;
enemya3._x = enemya3._x - bort;
enemya4._x = enemya4._x - bort;
bort = bort - 0.2;
enemya1._rotation = Math.atan2(enemya1._y - shipa._y, enemya1._x - shipa._x) / (Math.PI/180);
enemya2._rotation = Math.atan2(enemya2._y - shipa._y, enemya2._x - shipa._x) / (Math.PI/180);
enemya3._rotation = Math.atan2(enemya3._y - shipa._y, enemya3._x - shipa._x) / (Math.PI/180);
enemya4._rotation = Math.atan2(enemya4._y - shipa._y, enemya4._x - shipa._x) / (Math.PI/180);
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
blasttype2 = true;
efire2 = efire2 + 1;
quo1 = 100;
blasttype3 = true;
efire3 = efire3 + 1;
quo3 = 100;
blasttype4 = true;
efire4 = efire4 + 1;
quo4 = 100;
}
if ((wavea == 15) && (bort <= -9)) {
scat = false;
duplicateMovieClip (etype11, "enemya1", 231);
duplicateMovieClip (etype11, "enemya2", 232);
duplicateMovieClip (etype11, "enemya3", 233);
duplicateMovieClip (etype11, "enemya4", 234);
duplicateMovieClip (etype11, "enemya5", 235);
duplicateMovieClip (etype11, "enemya6", 236);
duplicateMovieClip (etype11, "enemya7", 237);
duplicateMovieClip (etype11, "enemya8", 238);
enemya1._x = 600;
enemya2._x = 550;
enemya3._x = 500;
enemya4._x = 450;
enemya5._x = 600;
enemya6._x = 550;
enemya7._x = 500;
enemya8._x = 450;
enemya1._y = 400;
enemya2._y = 450;
enemya3._y = 500;
enemya4._y = 550;
enemya5._y = -100;
enemya6._y = -150;
enemya7._y = -200;
enemya8._y = -250;
bort = -3;
wavea = 16;
}
if (((wavea == 16) && (pause != true)) && (cleared != true)) {
prize = 2;
enemya1._x = enemya1._x - bort;
enemya2._x = enemya2._x - bort;
enemya3._x = enemya3._x - bort;
enemya4._x = enemya4._x - bort;
enemya5._x = enemya5._x - bort;
enemya6._x = enemya6._x - bort;
enemya7._x = enemya7._x - bort;
enemya8._x = enemya8._x - bort;
bort = bort + 0.09;
enemya1._y = enemya1._y - 2;
enemya2._y = enemya2._y - 2.5;
enemya3._y = enemya3._y - 3;
enemya4._y = enemya4._y - 3.5;
enemya5._y = enemya5._y + 2;
enemya6._y = enemya6._y + 2.5;
enemya7._y = enemya7._y + 3;
enemya8._y = enemya8._y + 3.5;
}
if ((((((((((wavea == 16) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) && (enemya9._x <= -100)) {
zoho = 0;
enemya1._rotation = 0;
ety = 1;
duplicateMovieClip (etype4, "enemya1", 231);
duplicateMovieClip (etype4, "enemya2", 232);
duplicateMovieClip (etype4, "enemya3", 233);
duplicateMovieClip (etype4, "enemya4", 234);
duplicateMovieClip (etype4, "enemya5", 235);
duplicateMovieClip (etype4, "enemya6", 236);
duplicateMovieClip (etype4, "enemya7", 237);
duplicateMovieClip (etype4, "enemya8", 238);
blasttype2 = true;
efire2 = 0;
quo2 = 100;
blasttype4 = true;
efire4 = 0;
quo4 = 100;
blasttype5 = true;
efire5 = 0;
quo5 = 100;
blasttype6 = true;
efire6 = 0;
quo6 = 100;
enemya1._x = 500;
enemya1._y = 500;
enemya2._x = 500;
enemya2._y = 530;
enemya3._x = 500;
enemya3._y = 560;
enemya4._x = 500;
enemya4._y = 590;
enemya5._x = 500;
enemya5._y = 620;
enemya6._x = 500;
enemya6._y = 650;
enemya7._x = 500;
enemya7._y = 680;
enemya8._x = 500;
enemya8._y = 710;
goop = 0;
wavea = 17;
}
if (((wavea == 17) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 3;
enemya1._y = enemya1._y - 2;
enemya1._x = enemya1._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya2._y = enemya2._y - 2;
enemya2._x = enemya2._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya3._y = enemya3._y - 2;
enemya3._x = enemya3._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya4._y = enemya4._y - 2;
enemya4._x = enemya4._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya5._y = enemya5._y - 2;
enemya5._x = enemya5._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya6._y = enemya6._y - 2;
enemya6._x = enemya6._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya7._y = enemya7._y - 2;
enemya7._x = enemya7._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya8._y = enemya8._y - 2;
enemya8._x = enemya8._x - (2 * Math.cos(goop * (Math.PI/180)));
efire2 = efire2 + 1;
efire4 = efire4 + 1;
efire6 = efire6 + 1;
efire8 = efire8 + 1;
goop = goop + 1;
}
if (((((((((wavea == 17) && (enemya7._x <= -100)) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) {
zohan = 6;
zoho = 0;
prize = 2;
duplicateMovieClip (etype5, "enemya1", 231);
duplicateMovieClip (etype5, "enemya2", 232);
duplicateMovieClip (etype5, "enemya3", 233);
duplicateMovieClip (etype5, "enemya4", 234);
duplicateMovieClip (etype5, "enemya5", 235);
duplicateMovieClip (etype5, "enemya6", 236);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 1000;
enemya2._y = 150;
enemya3._x = 1100;
enemya3._y = 150;
enemya4._x = 1200;
enemya4._y = 150;
enemya5._x = 1300;
enemya5._y = 150;
enemya6._x = 1400;
enemya6._y = 150;
blasttype2 = true;
blasttype1 = true;
blasttype6 = true;
wavea = 18;
}
if (((wavea == 18) && (pause != true)) && (cleared != true)) {
prize = 1;
enemya1._x = enemya1._x - 1;
enemya2._x = enemya2._x - 4;
enemya3._x = enemya3._x - 4;
enemya4._x = enemya4._x - 4;
enemya5._x = enemya5._x - 4;
blasttype1 = true;
efire1 = efire1 + 1;
quo1 = 100;
blasttype2 = true;
efire2 = efire2 + 1;
quo2 = 100;
blasttype3 = true;
efire3 = efire3 + 1;
quo3 = 100;
blasttype4 = true;
efire4 = efire4 + 1;
quo4 = 100;
}
if ((((((wavea == 18) && (enemya4._x <= -100)) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) {
music.play();
duplicateMovieClip (fort, "enemya10", 230);
duplicateMovieClip (etype9, "enemya1", 231);
duplicateMovieClip (etype9, "enemya2", 232);
duplicateMovieClip (etype9, "enemya3", 233);
duplicateMovieClip (etype9, "enemya4", 234);
duplicateMovieClip (etype9, "enemya5", 235);
ehpa1 = 1000000 /* 0x0F4240 */;
ehpa2 = 1000000 /* 0x0F4240 */;
ehpa3 = 1000000 /* 0x0F4240 */;
ehpa4 = 1000000 /* 0x0F4240 */;
ehpa5 = 1000000 /* 0x0F4240 */;
zoko = 0;
core.swapDepths(1501);
boss = true;
enemya10._x = 900;
enemya10._y = 150;
blap = 0;
fofo = 0;
wavea = 27;
}
if (fofo > 800) {
fofo = 0;
}
if ((boss == true) && (mot < 16)) {
mot = mot + 0.07;
}
if ((boss == true) && (enemya10._x > 500)) {
enemya10._x = enemya10._x - 1;
}
if (boss == true) {
enemy10._rotation = enemy10._rotation - 1;
enemya1._x = enemya10._x + (70 * Math.cos(zoko * (Math.PI/180)));
enemya1._y = enemya10._y + (70 * Math.sin(zoko * (Math.PI/180)));
enemya2._x = enemya10._x + (70 * Math.cos((zoko + 60) * (Math.PI/180)));
enemya2._y = enemya10._y + (70 * Math.sin((zoko + 60) * (Math.PI/180)));
enemya3._x = enemya10._x + (70 * Math.cos((zoko + 120) * (Math.PI/180)));
enemya3._y = enemya10._y + (70 * Math.sin((zoko + 120) * (Math.PI/180)));
enemya4._x = enemya10._x + (70 * Math.cos((zoko + 180) * (Math.PI/180)));
enemya4._y = enemya10._y + (70 * Math.sin((zoko + 180) * (Math.PI/180)));
enemya5._x = enemya10._x + (70 * Math.cos((zoko + 240) * (Math.PI/180)));
enemya5._y = enemya10._y + (70 * Math.sin((zoko + 240) * (Math.PI/180)));
zoko = zoko + 3;
enemya1._rotation = zoko;
enemya2._rotation = zoko + 60;
enemya3._rotation = zoko + 120;
enemya4._rotation = zoko + 180;
enemya5._rotation = zoko + 240;
blap = blap + 1;
}
if (((blap > 90) && (victorya != true)) && (ehpa10 > 0)) {
duplicateMovieClip (elaser2, "eshot1", 271);
eshot1._x = enemya1._x;
eshot1._y = enemya1._y;
ero1 = Math.atan2(enemya1._y - shipa._y, enemya1._x - shipa._x) / (Math.PI/180);
efire1 = 0;
duplicateMovieClip (elaser2, "eshot2", 272);
eshot2._x = enemya2._x;
eshot2._y = enemya2._y;
ero2 = Math.atan2(enemya2._y - shipa._y, enemya2._x - shipa._x) / (Math.PI/180);
efire2 = 0;
duplicateMovieClip (elaser2, "eshot3", 273);
eshot3._x = enemya3._x;
eshot3._y = enemya3._y;
ero3 = Math.atan2(enemya3._y - shipa._y, enemya3._x - shipa._x) / (Math.PI/180);
efire3 = 0;
duplicateMovieClip (elaser2, "eshot4", 274);
eshot4._x = enemya4._x;
eshot4._y = enemya4._y;
ero4 = Math.atan2(enemya4._y - shipa._y, enemya4._x - shipa._x) / (Math.PI/180);
efire4 = 0;
duplicateMovieClip (elaser2, "eshot5", 275);
eshot5._x = enemya5._x;
eshot5._y = enemya5._y;
ero5 = Math.atan2(enemya5._y - shipa._y, enemya5._x - shipa._x) / (Math.PI/180);
efire5 = 0;
blap = 0;
}
if ((boss != true) && (mot > 2)) {
mot = mot * 0.91;
}
if ((ehpa10 <= 0) && (victorya != true)) {
ehpa1 = 0;
ehpa2 = 0;
ehpa3 = 0;
ehpa4 = 0;
boss = false;
ehpa5 = 0;
enemya1._visible = false;
enemya2._visible = false;
enemya3._visible = false;
enemya5._visible = false;
enemya4._visible = false;
enemya10._visible = false;
bossexploada.play();
victorya = true;
}
if ((((spawn > 100) && (spawnno <= 8)) && (ehpa9 > 0)) && (enemya9._x > 0)) {
duplicateMovieClip (etype7, "enemya" + spawnno, 230 + spawnno);
_root["enemya" + spawnno]._x = enemya9._x;
_root["enemya" + spawnno]._y = enemya9._y + 40;
spawnno = spawnno + 1;
spawn = 0;
}
if ((((((efire1 > quo1) && (blasttype1 == true)) && (enemya1._x > 0)) && (enemya1._y > 0)) && (enemya1._x < 700)) && (enemya1._y < 400)) {
duplicateMovieClip (elaser, "eshot1", 271);
eshot1._x = enemya1._x;
eshot1._y = enemya1._y;
ero1 = Math.atan2(enemya1._y - shipa._y, enemya1._x - shipa._x) / (Math.PI/180);
efire1 = 0;
}
if ((((((efire2 > quo2) && (blasttype2 == true)) && (enemya2._x > 0)) && (enemya2._y > 0)) && (enemya2._x < 700)) && (enemya2._y < 400)) {
duplicateMovieClip (elaser, "eshot2", 272);
eshot2._x = enemya2._x;
eshot2._y = enemya2._y;
ero2 = Math.atan2(enemya2._y - shipa._y, enemya2._x - shipa._x) / (Math.PI/180);
efire2 = 0;
}
if ((((((efire3 > quo3) && (blasttype3 == true)) && (enemya3._x > 0)) && (enemya3._y > 0)) && (enemya3._x < 700)) && (enemya3._y < 400)) {
duplicateMovieClip (elaser, "eshot3", 273);
eshot3._x = enemya3._x;
eshot3._y = enemya3._y;
ero3 = Math.atan2(enemya3._y - shipa._y, enemya3._x - shipa._x) / (Math.PI/180);
efire3 = 0;
}
if ((((((efire4 > quo4) && (blasttype4 == true)) && (enemya4._x > 0)) && (enemya4._y > 0)) && (enemya4._x < 700)) && (enemya4._y < 400)) {
duplicateMovieClip (elaser, "eshot4", 274);
eshot4._x = enemya4._x;
eshot4._y = enemya4._y;
ero4 = Math.atan2(enemya4._y - shipa._y, enemya4._x - shipa._x) / (Math.PI/180);
efire4 = 0;
}
if ((((((efire5 > quo5) && (blasttype5 == true)) && (enemya5._x > 0)) && (enemya5._y > 0)) && (enemya5._x < 700)) && (enemya5._y < 400)) {
duplicateMovieClip (elaser, "eshot5", 275);
eshot5._x = enemya5._x;
eshot5._y = enemya5._y;
ero5 = Math.atan2(enemya5._y - shipa._y, enemya5._x - shipa._x) / (Math.PI/180);
efire5 = 0;
}
if ((((((efire6 > quo6) && (blasttype6 == true)) && (enemya6._x > 0)) && (enemya6._y > 0)) && (enemya6._x < 700)) && (enemya6._y < 400)) {
duplicateMovieClip (elaser, "eshot6", 276);
eshot6._x = enemya6._x;
eshot6._y = enemya6._y;
ero6 = Math.atan2(enemya6._y - shipa._y, enemya6._x - shipa._x) / (Math.PI/180);
efire6 = 0;
}
if ((((((efire7 > quo7) && (blasttype7 == true)) && (enemya7._x > 0)) && (enemya7._y > 0)) && (enemya7._x < 700)) && (enemya7._y < 400)) {
duplicateMovieClip (elaser, "eshot7", 277);
eshot7._x = enemya7._x;
eshot7._y = enemya7._y;
ero7 = Math.atan2(enemya7._y - shipa._y, enemya7._x - shipa._x) / (Math.PI/180);
efire7 = 0;
}
if ((((((efire8 > quo8) && (blasttype8 == true)) && (enemya8._x > 0)) && (enemya8._y > 0)) && (enemya8._x < 700)) && (enemya8._y < 400)) {
duplicateMovieClip (elaser, "eshot8", 288);
eshot8._x = enemya8._x;
eshot8._y = enemya8._y;
ero8 = Math.atan2(enemya8._y - shipa._y, enemya8._x - shipa._x) / (Math.PI/180);
efire8 = 0;
}
if (cleared == true) {
scorecarda.play();
shipa._x = shipa._x + ork;
ork = ork + 0.3;
}
if (enemya1._x < -100) {
scat = false;
}
if ((boss != true) || (cleared == true)) {
bgauge._visible = false;
}
if ((boss == true) && (cleared != true)) {
bgauge._visible = true;
bgauge.gotoAndStop(Math.round(101 - sol));
sol = Math.round(ehpa10 / 50);
}
if (rocket >= 5) {
homing = true;
}
if (cow > 5) {
cow = 1;
}
if (rocket <= 0) {
homing = false;
}
if (chargelaser == true) {
powerbeam = powerbeam + 1;
shipa.laserbeam.gotoAndStop(powerbeam);
}
if ((powerbeam > 60) && (powerbeam < 120)) {
lasertype = 1;
powersx = 5;
}
if ((powerbeam > 120) && (powerbeam < 170)) {
lasertype = 2;
powersx = 10;
}
if (powerbeam > 170) {
lasertype = 3;
powersx = 20;
}
if (pause != true) {
shotx._x = shotx._x + 28;
}
scorecarda.kills = kills;
scorecarda.score = score;
cross._rotation = cross._rotation + 4;
acc = (cross._y - shipa._y) / 7;
acc2 = (cross._x - shipa._x) / 7;
zen = zen + 1;
hp.gotoAndStop(Math.round(101 - health));
egauge.gotoAndStop(Math.round(ehpa10 / 100));
hp.life.gotoAndStop(lives);
heat.gotoAndStop(Math.round(gunpow));
star._x = star._x - mot;
star2._x = star2._x - mot;
ware1.wep1.gotoAndStop(weapon1);
ware2.wep1.gotoAndStop(weapon2);
ware2._visible = laserlock;
bombsd.gotoAndStop(bomb + 1);
hp.score = score;
egauge._visible = boss;
sphere1._rotation = sphere1._rotation + 15;
sphere2._rotation = sphere2._rotation + 15;
imu = imu + 1;
};
onMouseDown = function () {
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun <= 2)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
gunpow = gunpow + energy;
ren = ren + 1;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 3)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 10;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 2), ren + 302);
_root["shot" + (ren + 2)]._x = shipa._x + 30;
_root["shot" + (ren + 2)]._y = shipa._y;
_root["shotspeed" + (ren + 2)] = speeder;
_root["zeek" + (ren + 2)] = -10;
_root["osc" + (ren + 2)] = 0;
_root["rambo" + (ren + 2)] = 1;
gunpow = gunpow + energy;
ren = ren + 3;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 4)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = -30;
_root["osc" + ren] = -35;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 30;
_root["osc" + (ren + 1)] = 35;
_root["rambo" + (ren + 1)] = 1;
gunpow = gunpow + energy;
ren = ren + 2;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 6)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
gunpow = gunpow + energy;
ren = ren + 1;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 5)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 90;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 0;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 2), ren + 302);
_root["shot" + (ren + 2)]._x = shipa._x + 30;
_root["shot" + (ren + 2)]._y = shipa._y;
_root["shotspeed" + (ren + 2)] = speeder;
_root["zeek" + (ren + 2)] = -90;
_root["osc" + (ren + 2)] = 0;
_root["rambo" + (ren + 2)] = 0;
gunpow = gunpow + energy;
ren = ren + 3;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 7)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x - 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["rambo" + ren] = -1;
_root["osc" + ren] = 0;
duplicateMovieClip (("laserx" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 0;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 1;
gunpow = gunpow + energy;
ren = ren + 2;
zen = 1;
}
if (((((rocket >= 1) && (rockettype >= 2)) && (pause != true)) && (cleared != true)) && (reloadx1 > 2)) {
duplicateMovieClip (laserff, "shota" + cow, 401 + cow);
_root["shota" + cow]._x = sphere1._x;
_root["shota" + cow]._y = sphere1._y;
reloadx1 = 0;
cow = cow + 1;
}
if (((((rocket >= 2) && (rockettype >= 2)) && (pause != true)) && (cleared != true)) && (reloadx2 > 2)) {
duplicateMovieClip (laserff, "shotb" + cow, 412 + cow);
_root["shotb" + cow]._x = sphere2._x;
_root["shotb" + cow]._y = sphere2._y;
reloadx2 = 0;
cow = cow + 1;
}
if (((((rocket >= 1) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm1 > 50)) {
duplicateMovieClip (rocketer, "missile1", 401);
missile1._x = shipa._x;
missile1._y = shipa._y + 10;
accm1 = 1.2;
reloadm1 = 0;
homing1 = homing;
mihunt1 = 0;
lockon1 = false;
}
if (((((rocket >= 2) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm2 > 50)) {
duplicateMovieClip (rocketer, "missile2", 402);
missile2._x = shipa._x;
missile2._y = shipa._y - 10;
accm2 = 1.2;
reloadm2 = 0;
homing2 = homing;
mihunt2 = 0;
lockon2 = false;
}
if (((((rocket >= 3) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm3 > 50)) {
duplicateMovieClip (rocketer, "missile3", 403);
missile3._x = shipa._x;
missile3._y = shipa._y + 20;
accm3 = 1.2;
reloadm3 = 0;
homing3 = homing;
mihunt3 = 3;
lockon3 = false;
}
if (((((rocket >= 4) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm4 > 50)) {
duplicateMovieClip (rocketer, "missile4", 404);
missile4._x = shipa._x;
missile4._y = shipa._y - 20;
accm4 = 1.2;
reloadm4 = 0;
homing4 = homing;
mihunt4 = -3;
lockon4 = false;
}
powerbeam = 0;
chargelaser = true;
powers = 0;
};
onMouseUp = function () {
if (powerbeam > 30) {
duplicateMovieClip ("chargelaser" + lasertype, "shotx", 310);
talho = lasertype;
shotx._x = shipa._x + 30;
shotx._y = shipa._y;
shotpower = powers;
powerbeam = 1;
ren = 4;
shipa.laserbeam.gotoAndStop(1);
}
chargelaser = false;
};
Instance of Symbol 500 MovieClip "gover" in Frame 10
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
if (_root.lives <= 0) {
this.play();
}
}
Frame 11
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval (onEnterFrame());
Frame 12
delete eval (onEnterFrame());
Frame 13
stop();
!!!ERROR
Instance of Symbol 500 MovieClip "gover" in Frame 13
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
if (_root.lives <= 0) {
this.play();
}
}
Frame 14
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval (onEnterFrame());
Frame 15
delete eval (onEnterFrame());
Frame 16
stop();
shipa.swapDepths(200);
hp.swapDepths(1500);
bombsd.swapDepths(1501);
ware1.swapDepths(1505);
ware2.swapDepths(1507);
music.swapDepths(20501);
heat.swapDepths(1502);
egauge.swapDepths(1509);
bgauge.swapDepths(20000);
cross.swapDepths(10499);
scorecarda.swapDepths(10459);
enemya1.swapDepths(231);
enemya2.swapDepths(232);
enemya3.swapDepths(233);
enemya4.swapDepths(234);
enemya5.swapDepths(235);
enemya6.swapDepths(236);
enemya10.swapDepths(1946);
bossexploada.swapDepths(3346);
cleared = false;
_quality = "Medium";
if (chargetype == undefined) {
chargetype = 2;
}
cleared = false;
mission = 3;
fork1 = 0;
reloadx1 = 0;
reloadx2 = 0;
gameover = false;
boss = false;
zoho = 0;
ork = 0;
bock = 12;
prize = 0;
wavea = 1;
homing = false;
zoho = 0;
zoey = true;
pause = true;
health = 100;
select = 1;
startDrag ("cross", true);
selection = 1;
gun = weapon1;
speeder = 20;
reload = 0;
ren = 1;
zen = 1;
charger = 0;
jetstream = 0;
jo = 1;
starttimer = 0;
ac = 0.4;
shipa.gotoAndStop(2);
mot = 1;
gunpow = 1;
shipa._x = -200;
reloadm1 = 0;
reloadm2 = 0;
reloadm3 = 0;
reloadm4 = 0;
reloadx1 = 0;
reloadx2 = 0;
cow = 1;
imu = 200;
ehpa1 = 100;
ehpa2 = 100;
ehpa3 = 100;
ehpa4 = 100;
ehpa5 = 100;
ehpa6 = 100;
ehpa7 = 100;
ehpa8 = 100;
ehpa9 = 100;
ehpa10 = 20000;
efire1 = 0;
efire2 = 0;
efire3 = 0;
efire4 = 0;
efire5 = 0;
efire6 = 0;
efire7 = 0;
efire8 = 0;
efire9 = 0;
efire10 = 0;
scorecarda.gotoAndStop(1);
bossexploada.gotoAndStop(1);
victorya = false;
onEnterFrame = function () {
i = 1;
while (i <= 10) {
if ((missile1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
duplicateMovieClip (explosion, "expload1", 600);
expload1._x = (missile1._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (missile1._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile1);
}
if ((missile2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
duplicateMovieClip (explosion, "expload2", 602);
expload2._x = (missile2._x + (Math.random() * 20)) - (Math.random() * 20);
expload2._y = (missile2._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile2);
}
if ((missile3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
duplicateMovieClip (explosion, "expload3", 603);
expload3._x = (missile3._x + (Math.random() * 20)) - (Math.random() * 20);
expload3._y = (missile3._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 10;
removeMovieClip(missile3);
}
if ((missile4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 30;
scoreq = scoreq + 10;
duplicateMovieClip (explosion, "expload4", 600);
expload4._x = (missile4._x + (Math.random() * 20)) - (Math.random() * 20);
expload4._y = (missile4._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(missile4);
}
if ((shot1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot1);
}
if ((shot2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot2);
}
if ((shot3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot3);
}
if ((shot4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot4);
}
if ((shot5.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot5);
}
if ((shot6.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot6);
}
if ((shot7.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot7);
}
if ((shot8.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot8);
}
if ((shot9.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (10 + (5 * powerx));
scoreq = scoreq + 5;
removeMovieClip(shot9);
}
if ((shota1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota1);
}
if ((shota2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota2);
}
if ((shota3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota3);
}
if ((shota4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota4);
}
if ((shota5.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shota5);
}
if ((shotb1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb1);
}
if ((shotb2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb2);
}
if ((shotb3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb3);
}
if ((shotb5.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb5);
}
if ((shotb4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - 5;
scoreq = scoreq + 5;
removeMovieClip(shotb4);
}
if ((shotx.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (5 * powersx);
scoreq = scoreq + 205;
duplicateMovieClip ("explosionl" + talho, "expload1", 800);
expload1._x = (shotx._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (shotx._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(folkner);
}
if ((shotx2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (5 * powersx);
scoreq = scoreq + 205;
duplicateMovieClip ("explosionl" + talho, "expload2", 802);
expload2_x = (shotx2._x + (Math.random() * 20)) - (Math.random() * 20);
expload2._y = (shotx2._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(folkner + 2);
}
if ((shotx3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["enemya" + i].play();
_root["ehpa" + i] = _root["ehpa" + i] - (5 * powersx);
scoreq = scoreq + 205;
duplicateMovieClip ("explosionl" + talho, "expload3", 803);
expload3._x = (shotx._x + (Math.random() * 20)) - (Math.random() * 20);
expload3._y = (shotx._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(folkner + 3);
}
if ((blast1.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload1", 800);
expload1._x = (blast1._x + (Math.random() * 20)) - (Math.random() * 20);
expload1._y = (blast1._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast1);
}
if ((blast2.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload2", 802);
expload2._x = (blast2._x + (Math.random() * 20)) - (Math.random() * 20);
expload2._y = (blast2._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast2);
}
if ((blast3.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload3", 803);
expload3._x = (blast3._x + (Math.random() * 20)) - (Math.random() * 20);
expload3._y = (blast3._y + (Math.random() * 20)) - (Math.random() * 20);
scoreq = scoreq + 100;
removeMovieClip(blast3);
}
if ((blast4.hitTest(_root["enemya" + i]) && (_root["enemya" + i]._x < 650)) && (_root["ehpa" + i] > 0)) {
_root["ehpa" + i] = _root["ehpa" + i] - 220;
duplicateMovieClip ("explosion" + btype, "expload4", 805);
expload4._x = (blast4._x + (Math.random() * 20)) - (Math.random() * 20);
expload4._y = (blast4._y + (Math.random() * 20)) - (Math.random() * 20);
removeMovieClip(blast4);
scoreq = scoreq + 100;
}
if ((_root["enemya" + i].hitTest(shipa) && (imu > 300)) && (_root["ehpa" + i] > 0)) {
duplicateMovieClip ("explosionxx" + ety, "expload5", 700);
expload5._x = (_root["enemya" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (_root["enemya" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
health = health - 25;
shipa.gotoAndPlay("damage");
_root["ehpa" + i] = 400;
_root["enemya" + i]._x = -900;
_root["elocka" + i] = false;
}
if (_root["enemya" + i]._x <= 0) {
_root["elocka" + i] = false;
}
if ((_root["enemya" + i]._y < -500) || (_root["enemya" + i]._y > 800)) {
_root["enemya" + i]._x = -200;
}
if ((health <= 0) && (lives > 1)) {
superpower = false;
superpower2 = false;
imu = 0;
elocka1 = false;
elocka2 = false;
elocka3 = false;
elocka4 = false;
elocka5 = false;
elocka6 = false;
elocka7 = false;
elocka8 = false;
elocka9 = false;
geger = 0;
ultimate = false;
duplicateMovieClip (explosion, "expload5", 700);
expload5._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (explosion, "expload6", 703);
expload6._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload6._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
expload6._rotation = 90;
shipa._x = -100;
select = 1;
gun = 2;
boni = true;
jovi.play();
lives = lives - 1;
rocket = 0;
laserlock = false;
health = 100;
}
if (((health <= 0) && (lives <= 1)) && (gameover != true)) {
duplicateMovieClip (explosion, "expload5", 706);
expload5._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (explosionm, "expload6", 703);
expload6._x = (shipa._x + (Math.random() * 20)) - (Math.random() * 20);
expload6._y = (shipa._y + (Math.random() * 20)) - (Math.random() * 20);
gameover = true;
gover.play();
removeMovieClip(shipa);
}
if (_root["eshot" + i].hitTest(shipa) && (imu > 300)) {
duplicateMovieClip (explosionb, "expload5", 700);
expload5._x = (_root["eshot" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
expload5._y = (_root["eshot" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
kills = kills + 1;
health = health - 25;
shipa.gotoAndPlay("damage");
removeMovieClip(_root["eshot" + i]);
}
if (_root["eshot" + i].hitTest(laserss1) && (_root["eshot" + i]._rotation > 0)) {
_root["ero" + i]._rotation = _root["ero" + i]._rotation + 180;
}
if (_root["eshot" + i].hitTest(laserss2) && (_root["eshot" + i]._rotation < 0)) {
_root["ero" + i]._rotation = _root["ero" + i]._rotation + 180;
}
if ((((_root["elocka" + i] == true) && (_root["enemya" + i]._x < 600)) && (_root["enemya" + i]._y > 50)) && (_root["enemya" + i]._y < 300)) {
_root["enemya" + i]._rotation = Math.atan2(_root["enemya" + i]._y - shipa._y, _root["enemya" + i]._x - shipa._x) / (Math.PI/180);
}
if ((((_root["ehpa" + i] <= 0) && (wavea < 10)) && (_root["scat" + i] != true)) && (_root["suicide" + i] != true)) {
duplicateMovieClip ("explosionxx" + ety, "expload" + (5 + i), 700 + i);
_root["expload" + (5 + i)]._x = (_root["enemya" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
_root["expload" + (5 + i)]._y = (_root["enemya" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
_root["ein" + i] = 0;
_root["elocka" + i] = false;
kills = kills + 1;
zoho = zoho + 1;
_root["blasttype" + i] = false;
scoreq = scoreq + 100;
lastpox = _root["enemya" + i]._x;
lastpoy = _root["enemya" + i]._y;
_root["ehpa" + i] = 100;
_root["enemya" + i]._x = -900;
}
if (((_root["ehpa" + i] <= 0) && (wavea < 13)) && (_root["scat" + i] == true)) {
duplicateMovieClip (explosionxx, "expload" + (5 + i), 700 + i);
_root["expload" + (5 + i)]._x = (_root["enemya" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
_root["expload" + (5 + i)]._y = (_root["enemya" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (etype4, "enemya" + (1 + i), 230 + (1 + i));
duplicateMovieClip (etype4, "enemya" + (2 + i), 230 + (2 + i));
duplicateMovieClip (etype4, "enemya" + (3 + i), 230 + (3 + i));
duplicateMovieClip (etype4, "enemya" + (4 + i), 230 + (4 + i));
_root["enemya" + (1 + i)]._x = _root["enemya" + i]._x + 10;
_root["enemya" + (1 + i)]._y = _root["enemya" + i]._y + 10;
_root["enemya" + (2 + i)]._x = _root["enemya" + i]._x - 10;
_root["enemya" + (2 + i)]._y = _root["enemya" + i]._y + 10;
_root["enemya" + (3 + i)]._x = _root["enemya" + i]._x + 10;
_root["enemya" + (3 + i)]._y = _root["enemya" + i]._y - 10;
_root["enemya" + (4 + i)]._x = _root["enemya" + i]._x - 10;
_root["enemya" + (4 + i)]._y = _root["enemya" + i]._y - 10;
kills = kills + 1;
zoho = zoho + 1;
_root["blasttype" + i] = false;
scoreq = scoreq + 100;
_root["ehpa" + i] = 100;
_root["enemya" + i]._x = -900;
}
if (((_root["ehpa" + i] <= 0) && (wavea < 13)) && (_root["suicide" + i] == true)) {
lastpox = _root["enemya" + i]._x;
lastpoy = _root["enemya" + i]._y;
duplicateMovieClip (explosionxxxx, "expload" + (5 + i), 700 + i);
_root["expload" + (5 + i)]._x = (_root["enemya" + i]._x + (Math.random() * 20)) - (Math.random() * 20);
_root["expload" + (5 + i)]._y = (_root["enemya" + i]._y + (Math.random() * 20)) - (Math.random() * 20);
duplicateMovieClip (elaser, "eshot1", 331 + (10 * i));
duplicateMovieClip (elaser, "eshot2", 332 + (10 * i));
duplicateMovieClip (elaser, "eshot3", 333 + (10 * i));
duplicateMovieClip (elaser, "eshot4", 334 + (10 * i));
duplicateMovieClip (elaser, "eshot5", 335 + (10 * i));
duplicateMovieClip (elaser, "eshot6", 336 + (10 * i));
duplicateMovieClip (elaser, "eshot7", 337 + (10 * i));
duplicateMovieClip (elaser, "eshot8", 338 + (10 * i));
duplicateMovieClip (elaser, "eshot9", 339 + (10 * i));
eshot1._x = lastpox;
eshot1._y = lastpoy;
ero1 = 0;
eshot2._x = lastpox;
eshot2._y = lastpoy;
ero2 = 40;
eshot3._x = lastpox;
eshot3._y = lastpoy;
ero3 = 80;
eshot4._x = lastpox;
eshot4._y = lastpoy;
ero4 = 120;
eshot5._x = lastpox;
eshot5._y = lastpoy;
ero5 = 160;
eshot6._x = lastpox;
eshot6._y = lastpoy;
ero6 = 200;
eshot7._x = lastpox;
eshot7._y = lastpoy;
ero7 = 240;
eshot8._x = lastpox;
eshot8._y = lastpoy;
ero8 = 280;
eshot9._x = lastpox;
eshot9._y = lastpoy;
ero9 = 320;
kills = kills + 1;
zoho = zoho + 1;
_root["blasttype" + i] = false;
scoreq = scoreq + 100;
_root["ehpa" + i] = 100;
_root["enemya" + i]._x = -900;
}
if (((_root["enemya" + i]._x <= 0) && (_root["enemya" + i]._x > -100)) && (boss != true)) {
zoho = zoho - 1;
}
i++;
}
if (((starttimer > 75) && (pause == true)) && (zoey != true)) {
shipa.play();
}
if (((starttimer > 90) && (pause == true)) && (zoey != true)) {
shipa._x = shipa._x + (ac / 3);
ac = ac + 0.1;
mot = mot + 0.07;
}
if (((starttimer > 120) && (pause == true)) && (zoey != true)) {
pause = false;
}
if ((pause == true) && (zoey != true)) {
starttimer = starttimer + 1;
}
if (((pause != true) && (cleared != true)) && (shipa._x < 220)) {
shipa._x = shipa._x + 5;
}
if ((((cross._y > shipa._y) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._y = shipa._y + acc;
}
if ((((cross._y < shipa._y) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._y = shipa._y + acc;
}
if (((cross._y < (shipa._y - 15)) && (pause != true)) && (cleared != true)) {
shipa._rotation = (20 * acc) / 12;
shipa.rocket1.gotoAndStop(1);
shipa.rocket2.gotoAndStop(2);
}
if (((cross._y > (shipa._y + 15)) && (pause != true)) && (cleared != true)) {
shipa._rotation = (20 * acc) / 12;
shipa.rocket1.gotoAndStop(2);
shipa.rocket2.gotoAndStop(1);
}
if ((((cross._y <= (shipa._y + 8)) && (cross._y >= (shipa._y - 8))) && (pause != true)) && (cleared != true)) {
shipa._rotation = 0;
shipa.rocket1.gotoAndStop(1);
shipa.rocket2.gotoAndStop(1);
}
if (((((cross._x > (shipa._x + 20)) && (shipa._x < 300)) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._x = shipa._x + acc2;
}
if (((((cross._x < (shipa._x - 5)) && (shipa._x > 0)) && (pause != true)) && (cleared != true)) && (health > 0)) {
shipa._x = shipa._x + acc2;
}
if ((pause != true) && (cleared != true)) {
bg._x = bg._x - 0.07;
}
if (ren > shotlimit) {
ren = 1;
}
if ((pause != true) && (cleared != true)) {
shot1._x = shot1._x + (shotspeed1 * rambo1);
shot2._x = shot2._x + (shotspeed2 * rambo2);
shot3._x = shot3._x + (shotspeed3 * rambo3);
shot4._x = shot4._x + (shotspeed4 * rambo4);
shot5._x = shot5._x + (shotspeed5 * rambo5);
shot6._x = shot6._x + (shotspeed6 * rambo6);
shot7._x = shot7._x + (shotspeed7 * rambo7);
shot8._x = shot8._x + (shotspeed8 * rambo8);
shot9._x = shot9._x + (shotspeed9 * rambo9);
shot10._x = shot10._x + (shotspeed10 * rambo10);
shot1._y = shot1._y + (shotspeed1 * Math.sin(zeek1 * (Math.PI/180)));
shot2._y = shot2._y + (shotspeed2 * Math.sin(zeek2 * (Math.PI/180)));
shot3._y = shot3._y + (shotspeed3 * Math.sin(zeek3 * (Math.PI/180)));
shot4._y = shot4._y + (shotspeed4 * Math.sin(zeek4 * (Math.PI/180)));
shot5._y = shot5._y + (shotspeed5 * Math.sin(zeek5 * (Math.PI/180)));
shot6._y = shot6._y + (shotspeed6 * Math.sin(zeek6 * (Math.PI/180)));
shot7._y = shot7._y + (shotspeed7 * Math.sin(zeek7 * (Math.PI/180)));
shot8._y = shot8._y + (shotspeed8 * Math.sin(zeek8 * (Math.PI/180)));
shot9._y = shot9._y + (shotspeed9 * Math.sin(zeek9 * (Math.PI/180)));
shot10._y = shot10._y + (shotspeed10 * Math.sin(zeek10 * (Math.PI/180)));
shota1._x = shota1._x + 25;
shota2._x = shota2._x + 25;
shota3._x = shota3._x + 25;
shota4._x = shota4._x + 25;
shota5._x = shota5._x + 25;
shotb0._x = shotb0._x + 25;
shotb1._x = shotb1._x + 25;
shotb2._x = shotb2._x + 25;
shotb3._x = shotb3._x + 25;
shotb4._x = shotb4._x + 25;
shotb5._x = shotb5._x + 25;
shotb6._x = shotb6._x + 25;
zeek1 = zeek1 + osc1;
zeek2 = zeek2 + osc2;
zeek3 = zeek3 + osc3;
zeek4 = zeek4 + osc4;
zeek5 = zeek5 + osc5;
zeek6 = zeek6 + osc6;
zeek7 = zeek7 + osc7;
zeek8 = zeek8 + osc8;
zeek9 = zeek9 + osc9;
zeek10 = zeek10 + osc10;
missile1._x = missile1._x + (accm1 * Math.cos(mihunt1 * (Math.PI/180)));
missile3._x = missile3._x + (accm3 * Math.cos(mihunt3 * (Math.PI/180)));
missile2._x = missile2._x + (accm2 * Math.cos(mihunt2 * (Math.PI/180)));
missile4._x = missile4._x + (accm4 * Math.cos(mihunt4 * (Math.PI/180)));
missile1._y = missile1._y + (accm1 * Math.sin(mihunt1 * (Math.PI/180)));
missile3._y = missile3._y + (accm3 * Math.sin(mihunt3 * (Math.PI/180)));
missile2._y = missile2._y + (accm2 * Math.sin(mihunt2 * (Math.PI/180)));
missile4._y = missile4._y + (accm4 * Math.sin(mihunt4 * (Math.PI/180)));
accm1 = accm1 + 0.8;
accm2 = accm2 + 0.8;
accm3 = accm3 + 0.8;
accm4 = accm4 + 0.8;
reloadm1 = reloadm1 + 1;
reloadm2 = reloadm1;
reloadx1 = reloadx1 + 1;
reloadx2 = reloadx1;
reloadm3 = reloadm1;
reloadm4 = reloadm1;
missile1._rotation = mihunt1;
missile2._rotation = mihunt2;
missile3._rotation = mihunt3;
missile4._rotation = mihunt4;
eshot1._x = eshot1._x - (bock * Math.cos(ero1 * (Math.PI/180)));
eshot2._x = eshot2._x - (bock * Math.cos(ero2 * (Math.PI/180)));
eshot3._x = eshot3._x - (bock * Math.cos(ero3 * (Math.PI/180)));
eshot4._x = eshot4._x - (bock * Math.cos(ero4 * (Math.PI/180)));
eshot5._x = eshot5._x - (bock * Math.cos(ero5 * (Math.PI/180)));
eshot6._x = eshot6._x - (bock * Math.cos(ero6 * (Math.PI/180)));
eshot7._x = eshot7._x - (bock * Math.cos(ero7 * (Math.PI/180)));
eshot8._x = eshot8._x - (bock * Math.cos(ero8 * (Math.PI/180)));
eshot9._x = eshot9._x - (bock * Math.cos(ero9 * (Math.PI/180)));
eshot10._x = eshot10._x - (bock * Math.cos(ero10 * (Math.PI/180)));
eshot1._y = eshot1._y - (bock * Math.sin(ero1 * (Math.PI/180)));
eshot2._y = eshot2._y - (bock * Math.sin(ero2 * (Math.PI/180)));
eshot3._y = eshot3._y - (bock * Math.sin(ero3 * (Math.PI/180)));
eshot4._y = eshot4._y - (bock * Math.sin(ero4 * (Math.PI/180)));
eshot5._y = eshot5._y - (bock * Math.sin(ero5 * (Math.PI/180)));
eshot6._y = eshot6._y - (bock * Math.sin(ero6 * (Math.PI/180)));
eshot7._y = eshot7._y - (bock * Math.sin(ero7 * (Math.PI/180)));
eshot8._y = eshot8._y - (bock * Math.sin(ero8 * (Math.PI/180)));
eshot9._y = eshot9._y - (bock * Math.sin(ero9 * (Math.PI/180)));
eshot10._y = eshot10._y - (bock * Math.sin(ero10 * (Math.PI/180)));
}
if (((pause != true) && (cleared != true)) && (btype < 2)) {
blast1._x = blast1._x + (blastspeed1 * Math.cos(zeekb1 * (Math.PI/180)));
blast3._x = blast3._x + (blastspeed3 * Math.cos(zeekb3 * (Math.PI/180)));
blast2._x = blast2._x + (blastspeed2 * Math.cos(zeekb2 * (Math.PI/180)));
blast4._x = blast4._x + (blastspeed4 * Math.cos(zeekb4 * (Math.PI/180)));
blast1._y = blast1._y + (blastspeed1 * Math.sin(zeekb1 * (Math.PI/180)));
blast3._y = blast3._y + (blastspeed3 * Math.sin(zeekb3 * (Math.PI/180)));
blast2._y = blast2._y + (blastspeed2 * Math.sin(zeekb2 * (Math.PI/180)));
blast4._y = blast4._y + (blastspeed4 * Math.sin(zeekb4 * (Math.PI/180)));
zeekb1 = zeekb1 + oscb1;
zeekb2 = zeekb2 + oscb2;
zeekb3 = zeekb3 + oscb3;
zeekb4 = zeekb4 + oscb4;
}
if (((pause != true) && (cleared != true)) && (btype == 2)) {
blast1._x = shipa._x + (40 * Math.cos(zeekb1 * (Math.PI/180)));
blast3._x = shipa._x + (40 * Math.cos(zeekb3 * (Math.PI/180)));
blast2._x = shipa._x + (40 * Math.cos(zeekb2 * (Math.PI/180)));
blast4._x = shipa._x + (40 * Math.cos(zeekb4 * (Math.PI/180)));
blast1._y = shipa._y + (40 * Math.sin(zeekb1 * (Math.PI/180)));
blast3._y = shipa._y + (40 * Math.sin(zeekb3 * (Math.PI/180)));
blast2._y = shipa._y + (40 * Math.sin(zeekb2 * (Math.PI/180)));
blast4._y = shipa._y + (40 * Math.sin(zeekb4 * (Math.PI/180)));
zeekb1 = zeekb1 + (oscb1 / 2);
zeekb2 = zeekb2 + (oscb2 / 2);
zeekb3 = zeekb3 + (oscb3 / 2);
zeekb4 = zeekb4 + (oscb4 / 2);
}
if (shot == true) {
charger = charger + 1;
}
if (star._x < -600) {
star._x = 600;
}
if (star2._x < -600) {
star2._x = 600;
}
if (select == 1) {
ware1.gotoAndStop(2);
ware2.gotoAndStop(1);
ware3.gotoAndStop(1);
}
if (select == 2) {
ware1.gotoAndStop(1);
ware2.gotoAndStop(2);
ware3.gotoAndStop(1);
}
if (select == 3) {
ware1.gotoAndStop(1);
ware2.gotoAndStop(1);
ware3.gotoAndStop(2);
}
if (((((Key.isDown(65) && (laserlock == true)) && (pause != true)) && (cleared != true)) && (select <= 1)) && (boni != true)) {
select = 2;
gun = weapon2;
boni = true;
jovi.play();
}
if ((((Key.isDown(65) && (pause != true)) && (cleared != true)) && (select >= 2)) && (boni != true)) {
select = 1;
gun = weapon1;
boni = true;
jovi.play();
}
if ((!Key.isDown(65)) && (boni == true)) {
boni = false;
}
if ((rockettype == 2) && (rocket >= 1)) {
sphere1._x = shipa._x + (60 * Math.cos(fork1 * (Math.PI/180)));
sphere1._y = shipa._y + (60 * Math.sin(fork1 * (Math.PI/180)));
sphere1._visible = true;
fork1 = fork1 + 15;
}
if ((rockettype == 2) && (rocket >= 2)) {
sphere2._x = shipa._x - (60 * Math.cos(fork1 * (Math.PI/180)));
sphere2._y = shipa._y - (60 * Math.sin(fork1 * (Math.PI/180)));
sphere2._visible = true;
}
if ((rockettype == 2) && (rocket < 1)) {
sphere1._x = -555;
sphere1._visible = false;
}
if ((rockettype == 2) && (rocket < 2)) {
sphere2._x = -555;
sphere2._visible = false;
}
if ((rockettype >= 3) && (rocket >= 1)) {
shieldhealth = shieldhealth + 50;
rocket = 0;
}
if (pause != true) {
shipa.shield.gotoAndStop(shieldhealth);
}
if (shieldhealth > 200) {
shieldhealth = 200;
}
if (shieldhealth <= 0) {
shieldhealth = 0;
}
if ((health < 100) && (shieldhealth > 0)) {
health = health + 1;
shieldhealth = shieldhealth - 1;
}
if (((gunpow > 1) && (pause != true)) && (cleared != true)) {
gunpow = gunpow - 0.2;
}
if (gunpow <= 1) {
gunpow = 1;
}
if (bosa > 4) {
bosa = 1;
}
if (((pause != true) && (cleared != true)) && (scoreq > score)) {
score = score + 10;
}
if ((!Key.isDown(83)) && (bomber == true)) {
bomber = false;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype <= 1)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = shipa._x + 30;
_root["blast" + bosa]._y = shipa._y;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 0;
_root["oscb" + bosa] = 0;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype == 2)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = shipa._x + 15;
_root["blast" + bosa]._y = shipa._y;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 90;
_root["oscb" + bosa] = 9;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if (((((Key.isDown(83) && (bomb > 0)) && (btype >= 3)) && (pause != true)) && (cleared != true)) && (bomber != true)) {
duplicateMovieClip ("nuke" + btype, "blast" + bosa, bosa + 430);
_root["blast" + bosa]._x = shipa._x;
_root["blast" + bosa]._y = shipa._y + 20;
_root["blastspeed" + bosa] = 15;
_root["zeekb" + bosa] = 90;
_root["oscb" + bosa] = 9;
bomber = true;
bosa = bosa + 1;
bomb = bomb - 1;
}
if ((pause != true) && (cleared != true)) {
bombbonus1._x = bombbonus1._x - 2;
modmissile._x = modmissile._x - 2;
modhealth._x = modhealth._x - 2;
modbeam._x = modbeam._x - 2;
modlaser._x = modlaser._x - 2;
bombbonus1._rotation = bombbonus1._rotation + 3;
}
if (bombbonus1.hitTest(shipa)) {
bomb = bomb + 1;
removeMovieClip(bombbonus1);
}
if (modmissile.hitTest(shipa)) {
rocket = rocket + 1;
duplicateMovieClip (misbonus, "misbonus1", 999);
misbonus1._y = shipa._y;
misbonus1._x = shipa._x - 10;
removeMovieClip(modmissile);
}
if (modhealth.hitTest(shipa)) {
health = 100;
duplicateMovieClip (healthbonus, "mishealth1", 999);
mishealth1._y = shipa._y;
mishealth1._x = shipa._x - 10;
removeMovieClip(modhealth);
}
if (modlaser.hitTest(shipa)) {
laserlock = true;
duplicateMovieClip (lasbonus, "misbonus1", 999);
misbonus1._y = shipa._y;
misbonus1._x = shipa._x - 10;
removeMovieClip(modlaser);
}
if (modbeam.hitTest(shipa)) {
_root["superpower" + arp] = true;
duplicateMovieClip (beambonus, "beambonus1", 999);
beambonus1._y = shipa._y;
beambonus1._x = shipa._x - 10;
removeMovieClip(modbeam);
}
if (bomb > 4) {
bomb = 4;
}
if ((zoho >= zohan) && (prize <= 1)) {
duplicateMovieClip (missilemod, "modmissile", 120);
modmissile._x = lastpox;
modmissile._y = lastpoy;
zoho = 0;
}
if ((zoho >= zohan) && (prize == 2)) {
duplicateMovieClip (lasermod, "modlaser", 120);
modlaser._x = lastpox;
modlaser._y = lastpoy;
zoho = 0;
}
if ((zoho >= zohan) && (prize == 3)) {
duplicateMovieClip (healthmod, "modhealth", 120);
modhealth._x = lastpox;
modhealth._y = lastpoy;
zoho = 0;
}
if (((wavea <= 1) && (pause != true)) && (cleared != true)) {
suicide1 = true;
ety = 1;
zohan = 10;
prize = 1;
enemya1._x = enemya1._x - 2;
enemya2._x = enemya2._x - 2;
}
if ((wavea <= 1) && (enemya1._x <= -100)) {
zoho = 0;
suicide1 = false;
ety = 2;
duplicateMovieClip (etype2, "enemya1", 231);
duplicateMovieClip (etype2, "enemya2", 232);
duplicateMovieClip (etype2, "enemya3", 233);
duplicateMovieClip (etype2, "enemya4", 234);
duplicateMovieClip (etype2, "enemya5", 235);
duplicateMovieClip (etype2, "enemya6", 236);
duplicateMovieClip (etype2, "enemya7", 237);
duplicateMovieClip (etype2, "enemya8", 238);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 950;
enemya2._y = 200;
enemya3._x = 950;
enemya3._y = 100;
enemya4._x = 950;
enemya4._y = 150;
enemya5._x = 1000;
enemya5._y = 100;
enemya6._x = 1000;
enemya6._y = 200;
enemya7._x = 1050;
enemya7._y = 200;
enemya8._x = 1050;
enemya8._y = 100;
wavea = 2;
}
if (((wavea == 2) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
prize = 1;
enemya1._x = enemya1._x - 2;
enemya2._x = enemya2._x - 2;
enemya3._x = enemya3._x - 2;
enemya4._x = enemya4._x - 2;
enemya5._x = enemya5._x - 2;
enemya6._x = enemya6._x - 2;
enemya7._x = enemya7._x - 2;
enemya8._x = enemya8._x - 2;
}
if (((((((((wavea == 2) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
elocka1 = true;
elocka2 = true;
elocka3 = true;
elocka4 = true;
elocka5 = true;
elocka6 = true;
elocka7 = true;
elocka8 = true;
enemya1._rotation = 0;
enemya2._rotation = 0;
enemya3._rotation = 0;
enemya4._rotation = 0;
enemya5._rotation = 0;
enemya6._rotation = 0;
enemya7._rotation = 0;
enemya8._rotation = 0;
ety = 2;
duplicateMovieClip (etype3, "enemya1", 231);
duplicateMovieClip (etype3, "enemya2", 232);
duplicateMovieClip (etype3, "enemya3", 233);
duplicateMovieClip (etype3, "enemya4", 234);
duplicateMovieClip (etype3, "enemya5", 235);
duplicateMovieClip (etype3, "enemya6", 236);
duplicateMovieClip (etype3, "enemya7", 237);
duplicateMovieClip (etype3, "enemya8", 238);
enemya1._x = 900;
enemya1._y = 100;
enemya2._x = 950;
enemya2._y = 100;
enemya3._x = 1050;
enemya3._y = 100;
enemya4._x = 1100;
enemya4._y = 100;
enemya5._x = 1150;
enemya5._y = 100;
enemya6._x = 1200;
enemya6._y = 100;
enemya7._x = 1250;
enemya7._y = 100;
enemya8._x = 1350;
enemya8._y = 100;
wavea = 3;
}
if (((wavea == 3) && (pause != true)) && (cleared != true)) {
ety = 2;
zohan = 8;
prize = 2;
enemya1._x = enemya1._x - (4 * Math.cos(enemya1._rotation * (Math.PI/180)));
enemya2._x = enemya2._x - (4 * Math.cos(enemya2._rotation * (Math.PI/180)));
enemya3._x = enemya3._x - (4 * Math.cos(enemya3._rotation * (Math.PI/180)));
enemya4._x = enemya4._x - (4 * Math.cos(enemya4._rotation * (Math.PI/180)));
enemya5._x = enemya5._x - (4 * Math.cos(enemya5._rotation * (Math.PI/180)));
enemya6._x = enemya6._x - (4 * Math.cos(enemya6._rotation * (Math.PI/180)));
enemya7._x = enemya7._x - (4 * Math.cos(enemya7._rotation * (Math.PI/180)));
enemya8._x = enemya8._x - (4 * Math.cos(enemya8._rotation * (Math.PI/180)));
enemya1._y = enemya1._y - (4 * Math.sin(enemya1._rotation * (Math.PI/180)));
enemya2._y = enemya2._y - (4 * Math.sin(enemya2._rotation * (Math.PI/180)));
enemya3._y = enemya3._y - (4 * Math.sin(enemya3._rotation * (Math.PI/180)));
enemya4._y = enemya4._y - (4 * Math.sin(enemya4._rotation * (Math.PI/180)));
enemya5._y = enemya5._y - (4 * Math.sin(enemya5._rotation * (Math.PI/180)));
enemya6._y = enemya6._y - (4 * Math.sin(enemya6._rotation * (Math.PI/180)));
enemya7._y = enemya7._y - (4 * Math.sin(enemya7._rotation * (Math.PI/180)));
enemya8._y = enemya8._y - (4 * Math.sin(enemya8._rotation * (Math.PI/180)));
}
if (((((((((wavea == 3) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
suicide1 = true;
enemya1._rotation = 0;
enemya2._rotation = 0;
enemya3._rotation = 0;
enemya4._rotation = 0;
enemya5._rotation = 0;
enemya6._rotation = 0;
enemya7._rotation = 0;
enemya8._rotation = 0;
ety = 2;
duplicateMovieClip (etype4, "enemya1", 231);
duplicateMovieClip (etype3, "enemya2", 232);
duplicateMovieClip (etype3, "enemya3", 233);
duplicateMovieClip (etype3, "enemya4", 234);
duplicateMovieClip (etype3, "enemya5", 235);
duplicateMovieClip (etype3, "enemya6", 236);
duplicateMovieClip (etype3, "enemya7", 237);
duplicateMovieClip (etype3, "enemya8", 238);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 950;
enemya2._y = 200;
enemya3._x = 950;
enemya3._y = 100;
enemya4._x = 1000;
enemya4._y = 100;
enemya5._x = 1000;
enemya5._y = 200;
enemya6._x = 1000;
enemya6._y = 150;
enemya7._x = 1050;
enemya7._y = 100;
enemya8._x = 1050;
enemya8._y = 200;
wavea = 4;
}
if (((wavea == 4) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
prize = 2;
enemya1._x = enemya1._x - 2;
enemya2._x = enemya2._x - 2;
enemya3._x = enemya3._x - 2;
enemya4._x = enemya4._x - 2;
enemya5._x = enemya5._x - 2;
enemya6._x = enemya6._x - 2;
enemya7._x = enemya7._x - 2;
enemya8._x = enemya8._x - 2;
}
if (((((((((wavea == 4) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
suicide1 = true;
enemya1._rotation = 0;
ehpa1 = 1400;
ety = 1;
duplicateMovieClip (etype5, "enemya1", 231);
enemya1._x = 900;
enemya1._y = 150;
wavea = 5;
}
if ((((wavea == 5) && (pause != true)) && (cleared != true)) && (enemya1._x > 450)) {
ety = 1;
zohan = 1;
prize = 1;
spreadfire = 0;
enemya1._x = enemya1._x - 2;
goop = 0;
}
if ((((wavea == 5) && (pause != true)) && (cleared != true)) && (enemya1._x <= 450)) {
ety = 1;
zohan = 1;
prize = 1;
enemya1._y = enemya1._y - (3 * Math.cos(goop * (Math.PI/180)));
goop = goop + 1;
spreadfire = spreadfire + 1;
}
if (((((((((wavea == 5) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
enemya1._rotation = 0;
ety = 1;
duplicateMovieClip (etype4, "enemya1", 231);
duplicateMovieClip (etype4, "enemya2", 232);
duplicateMovieClip (etype4, "enemya3", 233);
duplicateMovieClip (etype4, "enemya4", 234);
duplicateMovieClip (etype4, "enemya5", 235);
duplicateMovieClip (etype4, "enemya6", 236);
duplicateMovieClip (etype4, "enemya7", 237);
duplicateMovieClip (etype4, "enemya8", 238);
enemya1._x = 900;
enemya1._y = 150;
enemya2._x = 930;
enemya2._y = 150;
enemya3._x = 960;
enemya3._y = 150;
enemya4._x = 990;
enemya4._y = 150;
enemya5._x = 1020;
enemya5._y = 150;
enemya6._x = 1050;
enemya6._y = 150;
enemya7._x = 1080;
enemya7._y = 150;
enemya8._x = 1110;
enemya8._y = 150;
goop = 0;
wavea = 6;
}
if (((wavea == 6) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 1;
enemya1._x = enemya1._x - 2;
enemya1._y = enemya1._y - (1 * Math.cos(goop * (Math.PI/180)));
enemya2._x = enemya2._x - 2;
enemya2._y = enemya2._y - (1 * Math.cos(goop * (Math.PI/180)));
enemya3._x = enemya3._x - 2;
enemya3._y = enemya3._y - (1 * Math.cos(goop * (Math.PI/180)));
enemya4._x = enemya4._x - 2;
enemya4._y = enemya4._y - (1 * Math.cos(goop * (Math.PI/180)));
enemya5._x = enemya5._x - 2;
enemya5._y = enemya5._y - (1 * Math.cos(goop * (Math.PI/180)));
enemya6._x = enemya6._x - 2;
enemya6._y = enemya6._y - (1 * Math.cos(goop * (Math.PI/180)));
enemya7._x = enemya7._x - 2;
enemya7._y = enemya7._y - (1 * Math.cos(goop * (Math.PI/180)));
enemya8._x = enemya8._x - 2;
enemya8._y = enemya8._y - (1 * Math.cos(goop * (Math.PI/180)));
goop = goop + 1;
}
if (((((((((wavea == 6) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
enemya1._rotation = 0;
ety = 1;
duplicateMovieClip (etype4, "enemya1", 231);
duplicateMovieClip (etype4, "enemya2", 232);
duplicateMovieClip (etype4, "enemya3", 233);
duplicateMovieClip (etype4, "enemya4", 234);
duplicateMovieClip (etype4, "enemya5", 235);
duplicateMovieClip (etype4, "enemya6", 236);
duplicateMovieClip (etype4, "enemya7", 237);
duplicateMovieClip (etype4, "enemya8", 238);
blasttype2 = true;
efire2 = 0;
quo2 = 100;
blasttype4 = true;
efire4 = 0;
quo4 = 100;
blasttype5 = true;
efire5 = 0;
quo5 = 100;
blasttype6 = true;
efire6 = 0;
quo6 = 100;
enemya1._x = 500;
enemya1._y = 500;
enemya2._x = 500;
enemya2._y = 530;
enemya3._x = 500;
enemya3._y = 560;
enemya4._x = 500;
enemya4._y = 590;
enemya5._x = 500;
enemya5._y = 620;
enemya6._x = 500;
enemya6._y = 650;
enemya7._x = 500;
enemya7._y = 680;
enemya8._x = 500;
enemya8._y = 710;
goop = 0;
wavea = 7;
}
if (((wavea == 7) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 2;
enemya1._y = enemya1._y - 2;
enemya1._x = enemya1._x - (1 * Math.cos(goop * (Math.PI/180)));
enemya2._y = enemya2._y - 2;
enemya2._x = enemya2._x - (1 * Math.cos(goop * (Math.PI/180)));
enemya3._y = enemya3._y - 2;
enemya3._x = enemya3._x - (1 * Math.cos(goop * (Math.PI/180)));
enemya4._y = enemya4._y - 2;
enemya4._x = enemya4._x - (1 * Math.cos(goop * (Math.PI/180)));
enemya5._y = enemya5._y - 2;
enemya5._x = enemya5._x - (1 * Math.cos(goop * (Math.PI/180)));
enemya6._y = enemya6._y - 2;
enemya6._x = enemya6._x - (1 * Math.cos(goop * (Math.PI/180)));
enemya7._y = enemya7._y - 2;
enemya7._x = enemya7._x - (1 * Math.cos(goop * (Math.PI/180)));
enemya8._y = enemya8._y - 2;
enemya8._x = enemya8._x - (1 * Math.cos(goop * (Math.PI/180)));
efire2 = efire2 + 1;
efire4 = efire4 + 1;
efire6 = efire6 + 1;
efire8 = efire8 + 1;
goop = goop + 1;
}
if (((((((((wavea == 7) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
enemya1._rotation = 0;
ety = 1;
duplicateMovieClip (etype6, "enemya1", 231);
duplicateMovieClip (etype6, "enemya2", 232);
duplicateMovieClip (etype6, "enemya3", 233);
duplicateMovieClip (etype6, "enemya4", 234);
duplicateMovieClip (etype6, "enemya5", 235);
duplicateMovieClip (etype6, "enemya6", 236);
duplicateMovieClip (etype6, "enemya7", 237);
duplicateMovieClip (etype6, "enemya8", 238);
ehpa1 = 500;
ehpa2 = 500;
ehpa3 = 500;
ehpa4 = 500;
ehpa5 = 500;
ehpa6 = 500;
ehpa7 = 500;
ehpa8 = 500;
blasttype2 = false;
efire2 = 0;
quo2 = 100;
blasttype4 = false;
efire4 = 0;
quo4 = 100;
blasttype5 = false;
efire5 = 0;
quo5 = 100;
blasttype6 = flash;
efire6 = 0;
quo6 = 100;
enemya1._x = 900;
enemya1._y = 50;
enemya2._x = 1150;
enemya2._y = 280;
enemya3._x = 1400;
enemya3._y = 300;
enemya4._x = 1550;
enemya4._y = 90;
enemya5._x = 1700;
enemya5._y = 180;
enemya6._x = 2250;
enemya6._y = 250;
enemya7._x = 2450;
enemya7._y = 0;
enemya8._x = 2800;
enemya8._y = 150;
goop = 0;
wavea = 8;
}
if (((wavea == 8) && (pause != true)) && (cleared != true)) {
ety = 5;
zohan = 8;
suicide1 = false;
prize = 3;
enemya1._x = enemya1._x - 2;
enemya2._x = enemya2._x - 2;
enemya3._x = enemya3._x - 2;
enemya4._x = enemya4._x - 2;
enemya5._x = enemya5._x - 2;
enemya6._x = enemya6._x - 2;
enemya7._x = enemya7._x - 2;
enemya8._x = enemya8._x - 2;
goop = goop + 1;
}
if (((((((((wavea == 8) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
enemya1._rotation = 0;
ety = 1;
duplicateMovieClip (etype4, "enemya1", 231);
duplicateMovieClip (etype4, "enemya2", 232);
duplicateMovieClip (etype4, "enemya3", 233);
duplicateMovieClip (etype4, "enemya4", 234);
duplicateMovieClip (etype4, "enemya5", 235);
duplicateMovieClip (etype4, "enemya6", 236);
duplicateMovieClip (etype4, "enemya7", 237);
duplicateMovieClip (etype4, "enemya8", 238);
blasttype2 = true;
efire2 = 0;
quo2 = 100;
blasttype4 = true;
efire4 = 0;
quo4 = 100;
blasttype5 = true;
efire5 = 0;
quo5 = 100;
blasttype6 = true;
efire6 = 0;
quo6 = 100;
enemya1._x = 500;
enemya1._y = 500;
enemya2._x = 500;
enemya2._y = 530;
enemya3._x = 500;
enemya3._y = 560;
enemya4._x = 500;
enemya4._y = 590;
enemya5._x = 500;
enemya5._y = 620;
enemya6._x = 500;
enemya6._y = 650;
enemya7._x = 500;
enemya7._y = 680;
enemya8._x = 500;
enemya8._y = 710;
goop = 0;
wavea = 9;
}
if (((wavea == 9) && (pause != true)) && (cleared != true)) {
ety = 1;
zohan = 8;
suicide1 = false;
prize = 3;
enemya1._y = enemya1._y - 2;
enemya1._x = enemya1._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya2._y = enemya2._y - 2;
enemya2._x = enemya2._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya3._y = enemya3._y - 2;
enemya3._x = enemya3._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya4._y = enemya4._y - 2;
enemya4._x = enemya4._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya5._y = enemya5._y - 2;
enemya5._x = enemya5._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya6._y = enemya6._y - 2;
enemya6._x = enemya6._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya7._y = enemya7._y - 2;
enemya7._x = enemya7._x - (2 * Math.cos(goop * (Math.PI/180)));
enemya8._y = enemya8._y - 2;
enemya8._x = enemya8._x - (2 * Math.cos(goop * (Math.PI/180)));
efire2 = efire2 + 1;
efire4 = efire4 + 1;
efire6 = efire6 + 1;
efire8 = efire8 + 1;
goop = goop + 1;
}
if (((((((((wavea == 9) && (enemya1._x <= -100)) && (enemya2._x <= -100)) && (enemya3._x <= -100)) && (enemya4._x <= -100)) && (enemya5._x <= -100)) && (enemya6._x <= -100)) && (enemya7._x <= -100)) && (enemya8._x <= -100)) {
zoho = 0;
enemya1._rotation = 0;
ety = 1;
duplicateMovieClip (etype7, "enemya10", 2231);
enemya10._x = 900;
enemya10._y = 150;
boss = true;
music.play();
shieldgenerator = 0;
duplicateMovieClip (etype4, "enemya1", 231);
duplicateMovieClip (etype4, "enemya2", 232);
duplicateMovieClip (etype4, "enemya3", 233);
duplicateMovieClip (etype4, "enemya4", 234);
duplicateMovieClip (etype4, "enemya5", 235);
duplicateMovieClip (etype4, "enemya6", 236);
ehpa1 = 200;
ehpa2 = 200;
ehpa3 = 200;
ehpa4 = 200;
ehpa5 = 200;
ehpa6 = 200;
firebeam = 0;
vok = 1;
enemya1._y = 350;
enemya2._y = 430;
enemya3._y = 510;
enemya4._y = 590;
enemya5._y = 670;
enemya6._y = 750;
goop = 0;
wavea = 10;
}
if (boss == true) {
laserss1.play();
laserss2.play();
laserss1._x = enemya10._x;
laserss1._y = enemya10._y - 80;
laserss2._x = enemya10._x;
laserss2._y = enemya10._y + 80;
}
if ((((wavea == 10) && (boss == true)) && (cleared != true)) && (pause != true)) {
shieldgenerator = shieldgenerator + 1;
goop = goop + 1;
enemya10._y = enemya10._y - (2 * Math.cos(goop * (Math.PI/180)));
spreadfire = spreadfire + 1;
}
if ((shieldgenerator > 500) && (depot != true)) {
depot = true;
shieldgenerator = false;
}
if ((shieldgenerator > 500) && (depot == true)) {
depot = false;
shieldgenerator = false;
}
if ((boss == true) && (enemya10._x > 500)) {
enemya10._x = enemya10._x - 2;
mot = mot + 0.08;
}
if (depot != true) {
enemya10.body.body.gotoAndStop(2);
}
if (depot == true) {
enemya10.body.body.gotoAndStop(1);
}
if (((spreadfire > 50) && (boss == true)) && (depot != true)) {
duplicateMovieClip (elaser, "eshot" + vok, 230 + vok);
_root["eshot" + vok]._x = enemya10._x;
_root["eshot" + vok]._y = enemya10._y;
_root["ero" + vok] = Math.atan2(enemya10._y - shipa._y, enemya10._x - shipa._x) / (Math.PI/180);
vok = vok + 1;
spreadfire = 0;
}
if (vok > 10) {
vok = 1;
}
if (((spreadfire > 200) && (boss == true)) && (depot == true)) {
duplicateMovieClip (elaser, "eshot1", 331);
duplicateMovieClip (elaser, "eshot2", 332);
duplicateMovieClip (elaser, "eshot3", 333);
duplicateMovieClip (elaser, "eshot4", 334);
duplicateMovieClip (elaser, "eshot5", 335);
duplicateMovieClip (elaser, "eshot6", 336);
duplicateMovieClip (elaser, "eshot7", 337);
duplicateMovieClip (elaser, "eshot8", 338);
duplicateMovieClip (elaser, "eshot9", 339);
eshot1._x = enemya10._x;
eshot1._y = enemya10._y;
ero1 = 0;
eshot2._x = enemya10._x;
eshot2._y = enemya10._y;
ero2 = 20;
eshot3._x = enemya10._x;
eshot3._y = enemya10._y;
ero3 = 40;
eshot4._x = enemya10._x;
eshot4._y = enemya10._y;
ero4 = 60;
eshot5._x = enemya10._x;
eshot5._y = enemya10._y;
ero5 = 340;
eshot6._x = enemya10._x;
eshot6._y = enemya10._y;
ero6 = 320;
eshot7._x = enemya10._x;
eshot7._y = enemya10._y;
ero7 = 300;
eshot8._x = enemya10._x;
eshot8._y = enemya10._y;
ero8 = 280;
eshot9._x = enemya10._x;
eshot9._y = enemya10._y;
ero9 = 80;
spreadfire = 0;
}
if ((spreadfire > 120) && (boss != true)) {
duplicateMovieClip (elaser, "eshot1", 331);
duplicateMovieClip (elaser, "eshot2", 332);
duplicateMovieClip (elaser, "eshot3", 333);
duplicateMovieClip (elaser, "eshot4", 334);
duplicateMovieClip (elaser, "eshot5", 335);
duplicateMovieClip (elaser, "eshot6", 336);
duplicateMovieClip (elaser, "eshot7", 337);
duplicateMovieClip (elaser, "eshot8", 338);
duplicateMovieClip (elaser, "eshot9", 339);
eshot1._x = enemya1._x;
eshot1._y = enemya1._y;
ero1 = 0;
eshot2._x = enemya1._x;
eshot2._y = enemya1._y;
ero2 = 40;
eshot3._x = enemya1._x;
eshot3._y = enemya1._y;
ero3 = 80;
eshot4._x = enemya1._x;
eshot4._y = enemya1._y;
ero4 = 120;
eshot5._x = enemya1._x;
eshot5._y = enemya1._y;
ero5 = 160;
eshot6._x = enemya1._x;
eshot6._y = enemya1._y;
ero6 = 200;
eshot7._x = enemya1._x;
eshot7._y = enemya1._y;
ero7 = 240;
eshot8._x = enemya1._x;
eshot8._y = enemya1._y;
ero8 = 280;
eshot9._x = enemya1._x;
eshot9._y = enemya1._y;
ero9 = 320;
spreadfire = 0;
}
if (((((((efire1 > quo1) && (blasttype1 == true)) && (enemya1._x > 0)) && (boss != true)) && (enemya1._y > 0)) && (enemya1._x < 700)) && (enemya1._y < 400)) {
duplicateMovieClip (elaser, "eshot1", 271);
eshot1._x = enemya1._x;
eshot1._y = enemya1._y;
ero1 = Math.atan2(enemya1._y - shipa._y, enemya1._x - shipa._x) / (Math.PI/180);
efire1 = 0;
}
if (((((((efire2 > quo2) && (blasttype2 == true)) && (enemya2._x > 0)) && (boss != true)) && (enemya2._y > 0)) && (enemya2._x < 700)) && (enemya2._y < 400)) {
duplicateMovieClip (elaser, "eshot2", 272);
eshot2._x = enemya2._x;
eshot2._y = enemya2._y;
ero2 = Math.atan2(enemya2._y - shipa._y, enemya2._x - shipa._x) / (Math.PI/180);
efire2 = 0;
}
if (((((((efire3 > quo3) && (blasttype3 == true)) && (enemya3._x > 0)) && (boss != true)) && (enemya3._y > 0)) && (enemya3._x < 700)) && (enemya3._y < 400)) {
duplicateMovieClip (elaser, "eshot3", 273);
eshot3._x = enemya3._x;
eshot3._y = enemya3._y;
ero3 = Math.atan2(enemya3._y - shipa._y, enemya3._x - shipa._x) / (Math.PI/180);
efire3 = 0;
}
if (((((((efire4 > quo4) && (blasttype4 == true)) && (enemya4._x > 0)) && (boss != true)) && (enemya4._y > 0)) && (enemya4._x < 700)) && (enemya4._y < 400)) {
duplicateMovieClip (elaser, "eshot4", 274);
eshot4._x = enemya4._x;
eshot4._y = enemya4._y;
ero4 = Math.atan2(enemya4._y - shipa._y, enemya4._x - shipa._x) / (Math.PI/180);
efire4 = 0;
}
if (((((((efire5 > quo5) && (blasttype5 == true)) && (enemya5._x > 0)) && (boss != true)) && (enemya5._y > 0)) && (enemya5._x < 700)) && (enemya5._y < 400)) {
duplicateMovieClip (elaser, "eshot5", 275);
eshot5._x = enemya5._x;
eshot5._y = enemya5._y;
ero5 = Math.atan2(enemya5._y - shipa._y, enemya5._x - shipa._x) / (Math.PI/180);
efire5 = 0;
}
if (((((((efire6 > quo6) && (blasttype6 == true)) && (enemya6._x > 0)) && (boss != true)) && (enemya6._y > 0)) && (enemya6._x < 700)) && (enemya6._y < 400)) {
duplicateMovieClip (elaser, "eshot6", 276);
eshot6._x = enemya6._x;
eshot6._y = enemya6._y;
ero6 = Math.atan2(enemya6._y - shipa._y, enemya6._x - shipa._x) / (Math.PI/180);
efire6 = 0;
}
if (((((((efire7 > quo7) && (blasttype7 == true)) && (enemya7._x > 0)) && (boss != true)) && (enemya7._y > 0)) && (enemya7._x < 700)) && (enemya7._y < 400)) {
duplicateMovieClip (elaser, "eshot7", 277);
eshot7._x = enemya7._x;
eshot7._y = enemya7._y;
ero7 = Math.atan2(enemya7._y - shipa._y, enemya7._x - shipa._x) / (Math.PI/180);
efire7 = 0;
}
if ((((((efire8 > quo8) && (blasttype8 == true)) && (enemya8._x > 0)) && (enemya8._y > 0)) && (enemya8._x < 700)) && (enemya8._y < 400)) {
duplicateMovieClip (elaser, "eshot8", 288);
eshot8._x = enemya8._x;
eshot8._y = enemya8._y;
ero8 = Math.atan2(enemya8._y - shipa._y, enemya8._x - shipa._x) / (Math.PI/180);
efire8 = 0;
}
if ((((((efire9 > quo9) && (blasttype9 == true)) && (enemya9._x > 0)) && (enemya9._y > 0)) && (enemya9._x < 700)) && (enemya9._y < 400)) {
duplicateMovieClip (elaser, "eshot9", 289);
eshot9._x = enemya9._x;
eshot9._y = enemya9._y;
ero9 = Math.atan2(enemya9._y - shipa._y, enemya9._x - shipa._x) / (Math.PI/180);
efire9 = 0;
}
if ((((((efire10 > quo10) && (blasttype10 == true)) && (enemya10._x > 0)) && (enemya10._y > 0)) && (enemya10._x < 700)) && (enemya10._y < 400)) {
duplicateMovieClip (elaser, "eshot10", 290);
eshot10._x = enemya10._x;
eshot10._y = enemya10._y;
ero10 = Math.atan2(enemya10._y - shipa._y, enemya10._x - shipa._x) / (Math.PI/180);
efire10 = 0;
}
if (ehpa10 <= 0) {
bossexploada.play();
enemya10._x = -700;
laserss1._x = -800;
laserss2._x = -800;
enemya1._x = -700;
enemya2._x = -700;
enemya3._x = -700;
enemya4._x = -700;
enemya5._x = -700;
enemya6._x = -700;
}
if (cleared == true) {
scorecarda.play();
shipa._x = shipa._x + ork;
mot = mot * 0.99;
ork = ork + 0.3;
}
if ((boss == true) || (superpower2 != true)) {
folkner = "shotx";
}
if ((boss != true) && (superpower2 == true)) {
folkner = "mjern";
}
if ((boss != true) || (cleared == true)) {
bgauge._visible = false;
}
if ((boss == true) && (cleared != true)) {
bgauge._visible = true;
bgauge.gotoAndStop(Math.round(101 - sol));
sol = Math.round(ehpa10 / 200);
}
if (rocket >= 5) {
homing = true;
}
if (cow > 5) {
cow = 1;
}
if (rocket <= 0) {
homing = false;
}
if (chargelaser == true) {
powerbeam = powerbeam + 1;
shipa.laserbeam.gotoAndStop(powerbeam);
}
if ((powerbeam > 60) && (powerbeam < 120)) {
lasertype = 1;
powersx = 5;
}
if ((powerbeam > 120) && (powerbeam < 170)) {
lasertype = 2;
powersx = 10;
}
if (powerbeam > 170) {
lasertype = 3;
powersx = 20;
}
if (ultimate == true) {
ult = "m";
}
if (ultimate != true) {
ult = "";
}
if ((geger > 4) && (ultimate != true)) {
duplicateMovieClip (megapower, "mpower", 403);
mpower._x = shipa._x;
mpower._y = shipa._y;
ultimate = true;
}
if (pause != true) {
shotx._x = shotx._x + 28;
shotx2._x = shotx2._x + 28;
shotx3._x = shotx3._x + 28;
shotx2._y = shotx2._y + (28 * Math.sin(shotx2._rotation * (Math.PI/180)));
shotx3._y = shotx3._y + (28 * Math.sin(shotx3._rotation * (Math.PI/180)));
}
scorecarda.kills = kills;
scorecarda.score = score;
cross._rotation = cross._rotation + 4;
acc = (cross._y - shipa._y) / 7;
acc2 = (cross._x - shipa._x) / 7;
zen = zen + 1;
hp.gotoAndStop(Math.round(101 - health));
egauge.gotoAndStop(Math.round(ehpa10 / 100));
hp.life.gotoAndStop(lives);
heat.gotoAndStop(Math.round(gunpow));
star._x = star._x - mot;
star2._x = star2._x - mot;
ware1.wep1.gotoAndStop(weapon1);
ware2.wep1.gotoAndStop(weapon2);
ware2._visible = laserlock;
bombsd.gotoAndStop(bomb + 1);
hp.score = score;
egauge._visible = boss;
sphere1._rotation = sphere1._rotation + 15;
sphere2._rotation = sphere2._rotation + 15;
imu = imu + 1;
};
onMouseDown = function () {
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun <= 2)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
gunpow = gunpow + energy;
ren = ren + 1;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 3)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 10;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 2), ren + 302);
_root["shot" + (ren + 2)]._x = shipa._x + 30;
_root["shot" + (ren + 2)]._y = shipa._y;
_root["shotspeed" + (ren + 2)] = speeder;
_root["zeek" + (ren + 2)] = -10;
_root["osc" + (ren + 2)] = 0;
_root["rambo" + (ren + 2)] = 1;
gunpow = gunpow + energy;
ren = ren + 3;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 4)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = -30;
_root["osc" + ren] = -35;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 30;
_root["osc" + (ren + 1)] = 35;
_root["rambo" + (ren + 1)] = 1;
gunpow = gunpow + energy;
ren = ren + 2;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 6)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
gunpow = gunpow + energy;
ren = ren + 1;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 5)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x + 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["osc" + ren] = 0;
_root["rambo" + ren] = 1;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 90;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 0;
duplicateMovieClip (("laser" + gun) + ult, "shot" + (ren + 2), ren + 302);
_root["shot" + (ren + 2)]._x = shipa._x + 30;
_root["shot" + (ren + 2)]._y = shipa._y;
_root["shotspeed" + (ren + 2)] = speeder;
_root["zeek" + (ren + 2)] = -90;
_root["osc" + (ren + 2)] = 0;
_root["rambo" + (ren + 2)] = 0;
gunpow = gunpow + energy;
ren = ren + 3;
zen = 1;
}
if ((((((pause != true) && (cleared != true)) && (shotx != true)) && (zen > reload)) && (gun == 7)) && (gunpow <= 99)) {
duplicateMovieClip (("laser" + gun) + ult, "shot" + ren, ren + 300);
_root["shot" + ren]._x = shipa._x - 30;
_root["shot" + ren]._y = shipa._y;
_root["shotspeed" + ren] = speeder;
_root["zeek" + ren] = 0;
_root["rambo" + ren] = -1;
_root["osc" + ren] = 0;
duplicateMovieClip (("laserx" + gun) + ult, "shot" + (ren + 1), ren + 301);
_root["shot" + (ren + 1)]._x = shipa._x + 30;
_root["shot" + (ren + 1)]._y = shipa._y;
_root["shotspeed" + (ren + 1)] = speeder;
_root["zeek" + (ren + 1)] = 0;
_root["osc" + (ren + 1)] = 0;
_root["rambo" + (ren + 1)] = 1;
gunpow = gunpow + energy;
ren = ren + 2;
zen = 1;
}
if (((((rocket >= 1) && (rockettype >= 2)) && (pause != true)) && (cleared != true)) && (reloadx1 > 2)) {
duplicateMovieClip (laserff, "shota" + cow, 401 + cow);
_root["shota" + cow]._x = sphere1._x;
_root["shota" + cow]._y = sphere1._y;
reloadx1 = 0;
cow = cow + 1;
}
if (((((rocket >= 2) && (rockettype >= 2)) && (pause != true)) && (cleared != true)) && (reloadx2 > 2)) {
duplicateMovieClip (laserff, "shotb" + cow, 412 + cow);
_root["shotb" + cow]._x = sphere2._x;
_root["shotb" + cow]._y = sphere2._y;
reloadx2 = 0;
cow = cow + 1;
}
if (((((rocket >= 1) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm1 > 50)) {
duplicateMovieClip (rocketer, "missile1", 401);
missile1._x = shipa._x;
missile1._y = shipa._y + 10;
accm1 = 1.2;
reloadm1 = 0;
homing1 = homing;
mihunt1 = 0;
lockon1 = false;
}
if (((((rocket >= 2) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm2 > 50)) {
duplicateMovieClip (rocketer, "missile2", 402);
missile2._x = shipa._x;
missile2._y = shipa._y - 10;
accm2 = 1.2;
reloadm2 = 0;
homing2 = homing;
mihunt2 = 0;
lockon2 = false;
}
if (((((rocket >= 3) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm3 > 50)) {
duplicateMovieClip (rocketer, "missile3", 403);
missile3._x = shipa._x;
missile3._y = shipa._y + 20;
accm3 = 1.2;
reloadm3 = 0;
homing3 = homing;
mihunt3 = 3;
lockon3 = false;
}
if (((((rocket >= 4) && (rockettype <= 1)) && (pause != true)) && (cleared != true)) && (reloadm4 > 50)) {
duplicateMovieClip (rocketer, "missile4", 404);
missile4._x = shipa._x;
missile4._y = shipa._y - 20;
accm4 = 1.2;
reloadm4 = 0;
homing4 = homing;
mihunt4 = -3;
lockon4 = false;
}
powerbeam = 0;
chargelaser = true;
powers = 0;
};
onMouseUp = function () {
if ((powerbeam > 30) && (superpower != true)) {
duplicateMovieClip ("chargelaser" + lasertype, "shotx", 310);
talho = lasertype;
shotx._x = shipa._x + 30;
shotx._y = shipa._y;
shotpower = powers;
powerbeam = 1;
ren = 4;
shipa.laserbeam.gotoAndStop(1);
}
if ((powerbeam > 30) && (superpower == true)) {
duplicateMovieClip ("chargelaser" + lasertype, "shotx", 310);
talho = lasertype;
shotx._x = shipa._x + 30;
shotx._y = shipa._y;
shotpower = powers;
duplicateMovieClip ("chargelaser" + lasertype, "shotx2", 312);
talho = lasertype;
shotx2._x = shipa._x + 30;
shotx2._y = shipa._y;
shotx2._rotation = 10;
duplicateMovieClip ("chargelaser" + lasertype, "shotx3", 313);
talho = lasertype;
shotx3._x = shipa._x + 30;
shotx3._y = shipa._y;
shotx3._rotation = -10;
shotpower = powers;
powerbeam = 1;
ren = 4;
shipa.laserbeam.gotoAndStop(1);
}
chargelaser = false;
};
Instance of Symbol 500 MovieClip "gover" in Frame 16
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
if (_root.lives <= 0) {
this.play();
}
}
Frame 17
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval (onEnterFrame());
Frame 18
delete eval (onEnterFrame());
Frame 19
stop();
_quality = "High";
geger = 0;
Frame 20
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval (onEnterFrame());
Frame 21
delete eval (onEnterFrame());
Frame 22
gotoAndStop (2);
Symbol 3 MovieClip Frame 1
stop();
Symbol 3 MovieClip Frame 2
stop();
Symbol 3 MovieClip Frame 3
stop();
Symbol 21 MovieClip Frame 40
stop();
Symbol 35 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 36 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 11 MovieClip in Symbol 37 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 37 MovieClip Frame 101
play();
Symbol 37 MovieClip Frame 165
stop();
Symbol 43 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 49 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 51 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 67 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
Symbol 71 MovieClip Frame 1
play();
Symbol 71 MovieClip Frame 49
stop();
Symbol 71 MovieClip Frame 106
_root.play();
Symbol 643 MovieClip [__Packages.NewgroundsAPI] Frame 0
!!!ERROR
Symbol 75 MovieClip Frame 1
stop();
Symbol 79 Button
on (release) {
gotoAndStop (2);
}
Symbol 83 Button
on (release) {
_root.inter.booya.play();
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stopAllSounds();
Symbol 87 MovieClip Frame 3
_root.inter.bot._visible = false;
_root.inter.cot._visible = false;
Symbol 87 MovieClip Frame 150
_root.trans.play();
stop();
Symbol 91 Button
on (release) {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
getURL ("http://www.newgrounds.com/game/", "_blank");
}
Symbol 121 MovieClip Frame 20
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 3
stop();
Symbol 135 Button
on (release) {
_root.weapon2 = 3;
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 139 Button
on (release) {
_root.weapon2 = 4;
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 143 Button
on (release) {
_root.weapon2 = 5;
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 147 Button
on (release) {
_root.weapon2 = 6;
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 151 Button
on (release) {
_root.weapon2 = 7;
}
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
stop();
Symbol 156 Button
on (release) {
_root.btype = 1;
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 160 Button
on (release) {
_root.btype = 2;
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
stop();
Symbol 164 Button
on (release) {
_root.btype = 3;
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Symbol 169 Button
on (release) {
_root.rockettype = 1;
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
stop();
Symbol 173 Button
on (release) {
_root.rockettype = 2;
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 177 Button
on (release) {
_root.rockettype = 3;
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 2
stop();
Instance of Symbol 153 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.weapon2 <= 3) || (_root.weapon2 == undefined)) {
this.wep1.gotoAndStop(2);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.weapon2 = 3;
_root.def3 = 10;
_root.att3 = 10;
_root.ran3 = 30;
}
if (_root.weapon2 <= 3) {
this.wep1.gotoAndStop(2);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def3 = 10;
_root.att3 = 10;
_root.ran3 = 30;
}
if (_root.weapon2 == 4) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(2);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def3 = 10;
_root.att3 = 40;
_root.ran3 = 0;
}
if (_root.weapon2 == 5) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(2);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def3 = 10;
_root.att3 = 20;
_root.ran3 = 20;
}
if (_root.weapon2 == 6) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(2);
this.wep5.gotoAndStop(1);
_root.def3 = 0;
_root.att3 = 30;
_root.ran3 = 20;
}
if (_root.weapon2 >= 7) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(2);
_root.def3 = 10;
_root.att3 = 10;
_root.ran3 = 30;
}
}
Instance of Symbol 166 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.btype <= 1) || (_root.btype == undefined)) {
this.wep1.gotoAndStop(2);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.btype = 1;
}
if (_root.btype <= 1) {
this.wep1.gotoAndStop(2);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def2 = 0;
_root.att2 = 20;
_root.ran2 = 30;
}
if (_root.btype == 2) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(2);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def2 = 30;
_root.att2 = 10;
_root.ran2 = 10;
}
if (_root.btype >= 3) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(2);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def2 = 0;
_root.att2 = 50;
_root.ran2 = 0;
}
}
Instance of Symbol 179 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.rockettype <= 1) || (_root.rockettype == undefined)) {
this.wep1.gotoAndStop(2);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.rockettype = 1;
}
if (_root.rockettype <= 1) {
this.wep1.gotoAndStop(2);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def1 = 20;
_root.att1 = 20;
_root.ran1 = 10;
}
if (_root.rockettype == 2) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(2);
this.wep3.gotoAndStop(1);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def1 = 10;
_root.att1 = 10;
_root.ran1 = 30;
}
if (_root.rockettype >= 3) {
this.wep1.gotoAndStop(1);
this.wep2.gotoAndStop(1);
this.wep3.gotoAndStop(2);
this.wep4.gotoAndStop(1);
this.wep5.gotoAndStop(1);
_root.def1 = 50;
_root.att1 = 0;
_root.ran1 = 0;
}
}
Instance of Symbol 189 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round((_root.att1 + _root.att2) + _root.att3));
}
Instance of Symbol 192 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round((_root.def1 + _root.def2) + _root.def3));
}
Instance of Symbol 195 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round((_root.ran1 + _root.ran2) + _root.ran3));
}
Instance of Symbol 201 MovieClip in Symbol 205 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((att > (def + 15)) && (att > (ran + 15))) {
this.gotoAndStop(1);
_root.custom.viper.gotoAndStop(1);
}
if ((def > (att + 15)) && (def > (ran + 15))) {
this.gotoAndStop(2);
_root.custom.viper.gotoAndStop(2);
}
if ((ran > (att + 15)) && (ran > (def + 15))) {
this.gotoAndStop(3);
_root.custom.viper.gotoAndStop(3);
}
if ((((def <= (att + 15)) && (def <= (ran + 15))) && (def >= (att - 15))) && (def >= (ran - 15))) {
this.gotoAndStop(4);
}
att = (_root.att1 + _root.att2) + _root.att3;
ran = (_root.ran1 + _root.ran2) + _root.ran3;
def = (_root.def1 + _root.def2) + _root.def3;
}
Symbol 208 Button
on (release) {
_root.trans.play();
}
Symbol 228 Button
on (release) {
_root.trans.play();
}
Symbol 237 MovieClip Frame 1
soundfx.gotoAndStop(1);
stopAllSounds();
Symbol 237 MovieClip Frame 2
soundfx.gotoAndStop(1);
stopAllSounds();
Symbol 237 MovieClip Frame 3
soundfx.gotoAndStop(1);
stopAllSounds();
Symbol 237 MovieClip Frame 4
soundfx.gotoAndStop(1);
stopAllSounds();
Symbol 237 MovieClip Frame 5
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 6
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 7
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 8
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 9
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 10
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 11
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 12
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 13
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 14
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 15
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 16
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 17
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 18
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 19
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 20
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 21
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 22
soundfx.gotoAndStop(1);
Symbol 237 MovieClip Frame 300
_root.zoey = false;
Symbol 237 MovieClip Frame 534
stop();
Symbol 237 MovieClip Frame 625
stopAllSounds();
Symbol 237 MovieClip Frame 723
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 35
gotoAndPlay (1);
Symbol 268 MovieClip Frame 70
gotoAndPlay (36);
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 2
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 105
gotoAndStop (1);
Symbol 282 MovieClip Frame 115
gotoAndStop (1);
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 5
stop();
gotoAndStop (1);
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 4
gotoAndStop (1);
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 5
gotoAndStop (1);
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 5
stop();
gotoAndStop (1);
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 5
stop();
gotoAndStop (1);
Symbol 304 MovieClip Frame 20
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 18
stop();
Symbol 305 MovieClip Frame 20
stop();
Symbol 305 MovieClip Frame 21
gotoAndStop (20);
Symbol 305 MovieClip Frame 22
gotoAndStop (20);
Symbol 305 MovieClip Frame 23
gotoAndStop (20);
Symbol 305 MovieClip Frame 24
gotoAndStop (20);
Symbol 305 MovieClip Frame 25
gotoAndStop (20);
Symbol 313 MovieClip Frame 25
stop();
Symbol 314 MovieClip Frame 4
_root.soundfx.gotoAndPlay("expload2");
Symbol 314 MovieClip Frame 23
stop();
Symbol 325 MovieClip Frame 35
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 66
if (_root.lives > 0) {
_root.cleared = true;
}
Symbol 327 MovieClip Frame 175
stop();
Symbol 327 MovieClip Frame 180
gotoAndStop (175);
Symbol 327 MovieClip Frame 181
gotoAndStop (175);
Symbol 327 MovieClip Frame 182
gotoAndStop (175);
Symbol 327 MovieClip Frame 183
gotoAndStop (175);
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 5
gotoAndStop (1);
Symbol 337 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 5
gotoAndStop (1);
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 5
gotoAndStop (1);
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 5
gotoAndStop (1);
Symbol 348 MovieClip Frame 3
_root.soundfx.gotoAndPlay("laser1");
Symbol 348 MovieClip Frame 5
stop();
Symbol 350 MovieClip Frame 2
_root.soundfx.gotoAndPlay("laser1");
Symbol 350 MovieClip Frame 5
stop();
Symbol 353 MovieClip Frame 41
stop();
Symbol 357 MovieClip Frame 2
_root.soundfx.gotoAndPlay("laser2");
Symbol 357 MovieClip Frame 5
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 3
_root.soundfx.gotoAndPlay("laser3");
Symbol 363 MovieClip Frame 5
stop();
Symbol 364 MovieClip Frame 2
_root.soundfx.gotoAndPlay("laser1");
Symbol 364 MovieClip Frame 5
stop();
Symbol 367 MovieClip Frame 2
_root.soundfx.gotoAndPlay("laser2");
Symbol 367 MovieClip Frame 5
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 3
stop();
Symbol 377 MovieClip Frame 4
stop();
Symbol 377 MovieClip Frame 5
stop();
Symbol 377 MovieClip Frame 6
stop();
Symbol 377 MovieClip Frame 7
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 3
stop();
Symbol 383 MovieClip Frame 4
stop();
Symbol 383 MovieClip Frame 5
stop();
Symbol 386 MovieClip Frame 3
_root.soundfx.gotoAndPlay("bonus1");
Symbol 386 MovieClip Frame 6
stop();
Symbol 389 MovieClip Frame 3
_root.soundfx.gotoAndPlay("bonus2");
Symbol 389 MovieClip Frame 36
stop();
stop();
Symbol 392 MovieClip Frame 5
_root.soundfx.gotoAndPlay("bonus2");
Symbol 392 MovieClip Frame 6
_root.geger = _root.geger + 2;
Symbol 392 MovieClip Frame 46
stop();
Symbol 399 MovieClip Frame 3
_root.soundfx.gotoAndPlay("bonus1");
Symbol 399 MovieClip Frame 6
stop();
Symbol 405 MovieClip Frame 4
_root.soundfx.gotoAndPlay("bonus1");
Symbol 405 MovieClip Frame 6
stop();
Symbol 408 MovieClip Frame 3
_root.soundfx.gotoAndPlay("bonus2");
Symbol 408 MovieClip Frame 41
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 10
gotoAndStop (1);
Symbol 426 MovieClip Frame 19
gotoAndStop (1);
Symbol 426 MovieClip Frame 28
gotoAndStop (1);
Symbol 426 MovieClip Frame 37
gotoAndStop (1);
Symbol 426 MovieClip Frame 46
gotoAndStop (1);
Symbol 426 MovieClip Frame 55
gotoAndStop (1);
Symbol 426 MovieClip Frame 64
gotoAndStop (1);
Symbol 426 MovieClip Frame 73
gotoAndStop (1);
Symbol 426 MovieClip Frame 82
gotoAndStop (1);
Symbol 429 MovieClip Frame 4
_root.soundfx.gotoAndPlay("bonus2");
_root.jovi.play();
Symbol 429 MovieClip Frame 45
stop();
Symbol 432 MovieClip Frame 3
_root.soundfx.gotoAndPlay("expload1");
Symbol 432 MovieClip Frame 5
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
stop();
Symbol 446 MovieClip Frame 3
stop();
Symbol 446 MovieClip Frame 4
stop();
Symbol 446 MovieClip Frame 5
stop();
Symbol 446 MovieClip Frame 6
stop();
Symbol 446 MovieClip Frame 7
stop();
Symbol 446 MovieClip Frame 8
stop();
Symbol 446 MovieClip Frame 9
stop();
Symbol 446 MovieClip Frame 10
stop();
Symbol 446 MovieClip Frame 11
stop();
Symbol 454 MovieClip Frame 4
if ((_root.gun == 1) && (_root.ultimate != true)) {
_root.energy = 1.5;
_root.powerx = 6;
_root.reload = 0;
_root.speeder = 25;
_root.shotlimit = 5;
_root.ren = 1;
}
if ((_root.gun == 2) && (_root.ultimate != true)) {
_root.energy = 2.5;
_root.powerx = 6.5;
_root.reload = 2;
_root.speeder = 25;
_root.shotlimit = 5;
_root.ren = 1;
}
if ((_root.gun == 3) && (_root.ultimate != true)) {
_root.energy = 3;
_root.powerx = 6.3;
_root.reload = 5;
_root.speeder = 25;
_root.shotlimit = 9;
_root.ren = 1;
}
if ((_root.gun == 4) && (_root.ultimate != true)) {
_root.energy = 3;
_root.powerx = 7.5;
_root.reload = 5;
_root.speeder = 15;
_root.shotlimit = 8;
_root.ren = 1;
}
if ((_root.gun == 5) && (_root.ultimate != true)) {
_root.energy = 2;
_root.powerx = 7.5;
_root.reload = 0;
_root.speeder = 25;
_root.shotlimit = 5;
_root.ren = 1;
}
if ((_root.gun == 6) && (_root.ultimate != true)) {
_root.energy = 2;
_root.powerx = 7.3;
_root.reload = 5;
_root.speeder = 25;
_root.shotlimit = 9;
_root.ren = 1;
}
if ((_root.gun == 7) && (_root.ultimate != true)) {
_root.energy = 2;
_root.powerx = 7.3;
_root.reload = 0;
_root.speeder = 40;
_root.shotlimit = 8;
_root.ren = 1;
}
if ((_root.gun == 1) && (_root.ultimate == true)) {
_root.energy = 1.5;
_root.powerx = 11;
_root.reload = 0;
_root.speeder = 25;
_root.shotlimit = 5;
_root.ren = 1;
}
if ((_root.gun == 2) && (_root.ultimate == true)) {
_root.energy = 2.5;
_root.powerx = 15;
_root.reload = 2;
_root.speeder = 25;
_root.shotlimit = 5;
_root.ren = 1;
}
if ((_root.gun == 3) && (_root.ultimate == true)) {
_root.energy = 3;
_root.powerx = 13;
_root.reload = 5;
_root.speeder = 25;
_root.shotlimit = 9;
_root.ren = 1;
}
if ((_root.gun == 4) && (_root.ultimate == true)) {
_root.energy = 3;
_root.powerx = 15;
_root.reload = 5;
_root.speeder = 15;
_root.shotlimit = 8;
_root.ren = 1;
}
if ((_root.gun == 5) && (_root.ultimate == true)) {
_root.energy = 2;
_root.powerx = 17;
_root.reload = 0;
_root.speeder = 25;
_root.shotlimit = 5;
_root.ren = 1;
}
if ((_root.gun == 6) && (_root.ultimate == true)) {
_root.energy = 2;
_root.powerx = 16;
_root.reload = 5;
_root.speeder = 25;
_root.shotlimit = 9;
_root.ren = 1;
}
if ((_root.gun == 7) && (_root.ultimate == true)) {
_root.energy = 2;
_root.powerx = 14;
_root.reload = 0;
_root.speeder = 40;
_root.shotlimit = 8;
_root.ren = 1;
}
Symbol 454 MovieClip Frame 5
_root.soundfx.gotoAndPlay("bonus1");
Symbol 454 MovieClip Frame 8
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 2
stop();
Symbol 478 MovieClip Frame 3
stop();
Symbol 478 MovieClip Frame 4
stop();
Symbol 478 MovieClip Frame 5
stop();
Symbol 478 MovieClip Frame 6
stop();
Symbol 482 MovieClip Frame 5
_root.bomb = _root.bomb + 1;
stop();
Symbol 484 MovieClip Frame 5
_root.bomb = _root.bomb + 2;
stop();
Symbol 486 MovieClip Frame 5
_root.lives = _root.lives + 1;
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 3
_root.cleared = true;
stopAllSounds();
Symbol 490 MovieClip Frame 4
_root.cleared = true;
Symbol 490 MovieClip Frame 5
_root.cleared = true;
Symbol 490 MovieClip Frame 6
_root.cleared = true;
Instance of Symbol 464 MovieClip in Symbol 490 MovieClip Frame 109
onClipEvent (load) {
total = 0;
}
onClipEvent (enterFrame) {
if ((_root.kills <= 80) && (_root.mission <= 1)) {
_root.scorecard.krank.gotoAndStop("F");
reward1 = 0;
}
if (((_root.kills <= 88) && (_root.kills > 80)) && (_root.mission <= 1)) {
_root.scorecard.krank.gotoAndStop("D");
reward1 = 1;
}
if (((_root.kills <= 96) && (_root.kills > 88)) && (_root.mission <= 1)) {
_root.scorecard.krank.gotoAndStop("C");
reward1 = 2;
}
if (((_root.kills <= 112) && (_root.kills > 96)) && (_root.mission <= 1)) {
_root.scorecard.krank.gotoAndStop("B");
reward1 = 3;
}
if (((_root.kills <= 112) && (_root.kills > 115)) && (_root.mission <= 1)) {
_root.scorecard.krank.gotoAndStop("A");
reward1 = 4;
}
if ((_root.kills > 115) && (_root.mission <= 1)) {
_root.scorecard.krank.gotoAndStop("S");
reward1 = 5;
}
if ((_root.score <= 9000) && (_root.mission <= 1)) {
_root.scorecard.srank.gotoAndStop("F");
reward2 = 0;
}
if (((_root.score <= 9600) && (_root.score > 9000)) && (_root.mission <= 1)) {
_root.scorecard.srank.gotoAndStop("D");
reward2 = 1;
}
if (((_root.score <= 13300) && (_root.score > 9600)) && (_root.mission <= 1)) {
_root.scorecard.srank.gotoAndStop("C");
reward2 = 2;
}
if (((_root.score <= 17500) && (_root.score > 13300)) && (_root.mission <= 1)) {
_root.scorecard.srank.gotoAndStop("B");
reward2 = 3;
}
if (((_root.score <= 24000) && (_root.score > 17500)) && (_root.mission <= 1)) {
_root.scorecard.srank.gotoAndStop("A");
reward2 = 4;
}
if ((_root.score > 24000) && (_root.mission <= 1)) {
_root.scorecard.srank.gotoAndStop("S");
reward2 = 5;
}
if ((_root.kills <= 170) && (_root.mission == 2)) {
_root.scorecarda.krank.gotoAndStop("F");
reward1 = 0;
}
if (((_root.kills <= 178) && (_root.kills > 170)) && (_root.mission == 2)) {
_root.scorecarda.krank.gotoAndStop("D");
reward1 = 1;
}
if (((_root.kills <= 186) && (_root.kills > 178)) && (_root.mission == 2)) {
_root.scorecarda.krank.gotoAndStop("C");
reward1 = 2;
}
if (((_root.kills <= 192) && (_root.kills > 186)) && (_root.mission == 2)) {
_root.scorecarda.krank.gotoAndStop("B");
reward1 = 3;
}
if (((_root.kills <= 219) && (_root.kills > 192)) && (_root.mission == 2)) {
_root.scorecarda.krank.gotoAndStop("A");
reward1 = 4;
}
if ((_root.kills > 219) && (_root.mission == 2)) {
_root.scorecarda.krank.gotoAndStop("S");
reward1 = 5;
}
if ((_root.score <= 8000) && (_root.mission == 2)) {
_root.scorecarda.srank.gotoAndStop("F");
reward2 = 0;
}
if (((_root.score <= 13600) && (_root.score > 8000)) && (_root.mission == 2)) {
_root.scorecarda.srank.gotoAndStop("D");
reward2 = 1;
}
if (((_root.score <= 17300) && (_root.score > 13600)) && (_root.mission == 2)) {
_root.scorecarda.srank.gotoAndStop("C");
reward2 = 2;
}
if (((_root.score <= 21500) && (_root.score > 17300)) && (_root.mission == 2)) {
_root.scorecarda.srank.gotoAndStop("B");
reward2 = 3;
}
if (((_root.score <= 27000) && (_root.score > 21500)) && (_root.mission == 2)) {
_root.scorecarda.srank.gotoAndStop("A");
reward2 = 4;
}
if ((_root.score > 27000) && (_root.mission == 2)) {
_root.scorecarda.srank.gotoAndStop("S");
reward2 = 5;
}
if ((_root.kills <= 150) && (_root.mission == 3)) {
_root.scorecarda.krank.gotoAndStop("F");
reward1 = 0;
}
if (((_root.kills <= 158) && (_root.kills > 150)) && (_root.mission == 3)) {
_root.scorecarda.krank.gotoAndStop("D");
reward1 = 1;
}
if (((_root.kills <= 166) && (_root.kills > 158)) && (_root.mission == 3)) {
_root.scorecarda.krank.gotoAndStop("C");
reward1 = 2;
}
if (((_root.kills <= 172) && (_root.kills > 166)) && (_root.mission == 3)) {
_root.scorecarda.krank.gotoAndStop("B");
reward1 = 3;
}
if (((_root.kills <= 179) && (_root.kills > 172)) && (_root.mission == 3)) {
_root.scorecarda.krank.gotoAndStop("A");
reward1 = 4;
}
if ((_root.kills > 179) && (_root.mission == 3)) {
_root.scorecarda.krank.gotoAndStop("S");
reward1 = 5;
}
if ((_root.score <= 28000) && (_root.mission == 3)) {
_root.scorecarda.srank.gotoAndStop("F");
reward2 = 0;
}
if (((_root.score <= 29600) && (_root.score > 28000)) && (_root.mission == 3)) {
_root.scorecarda.srank.gotoAndStop("D");
reward2 = 1;
}
if (((_root.score <= 30300) && (_root.score > 29600)) && (_root.mission == 3)) {
_root.scorecarda.srank.gotoAndStop("C");
reward2 = 2;
}
if (((_root.score <= 31500) && (_root.score > 30300)) && (_root.mission == 3)) {
_root.scorecarda.srank.gotoAndStop("B");
reward2 = 3;
}
if (((_root.score <= 35000) && (_root.score > 31500)) && (_root.mission == 3)) {
_root.scorecarda.srank.gotoAndStop("A");
reward2 = 4;
}
if ((_root.score > 35000) && (_root.mission == 3)) {
_root.scorecarda.srank.gotoAndStop("S");
reward2 = 5;
}
total = reward1 + reward2;
_root.scorecard.rewards.gotoAndStop(total);
_root.scorecarda.rewards.gotoAndStop(total);
_root.scorecard.tot = this.total;
}
Symbol 490 MovieClip Frame 932
stop();
_root.play();
Symbol 490 MovieClip Frame 933
stop();
_root.play();
Symbol 490 MovieClip Frame 934
stop();
_root.play();
Symbol 490 MovieClip Frame 935
stop();
_root.play();
Symbol 490 MovieClip Frame 936
stop();
_root.play();
Symbol 490 MovieClip Frame 937
stop();
_root.play();
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 94
stopAllSounds();
Symbol 500 MovieClip Frame 485
_root.gotoAndPlay("gover");
Symbol 506 MovieClip Frame 1
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 2
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 3
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 4
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 5
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 6
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 7
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 8
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 9
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 10
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 11
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 12
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 13
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 14
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 15
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 16
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 17
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 18
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 19
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 20
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 21
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 22
soundfx.gotoAndStop(1);
Symbol 506 MovieClip Frame 300
_root.zoey = false;
Symbol 506 MovieClip Frame 534
stop();
Symbol 506 MovieClip Frame 625
stopAllSounds();
Symbol 506 MovieClip Frame 723
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 5
gotoAndStop (1);
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 5
gotoAndStop (1);
Symbol 520 MovieClip Frame 10
stop();
Symbol 520 MovieClip Frame 14
gotoAndStop (10);
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 5
gotoAndStop (1);
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 5
gotoAndStop (1);
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 5
gotoAndStop (1);
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 5
gotoAndStop (1);
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 5
gotoAndStop (1);
Symbol 544 MovieClip Frame 1
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 2
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 3
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 4
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 5
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 6
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 7
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 8
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 9
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 10
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 11
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 12
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 13
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 14
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 15
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 16
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 17
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 18
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 19
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 20
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 21
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 22
soundfx.gotoAndStop(1);
Symbol 544 MovieClip Frame 25
stopAllSounds();
Symbol 544 MovieClip Frame 300
_root.zoey = false;
Symbol 544 MovieClip Frame 534
stop();
Symbol 544 MovieClip Frame 535
stopAllSounds();
Symbol 544 MovieClip Frame 549
stop();
Symbol 544 MovieClip Frame 724
stop();
Symbol 544 MovieClip Frame 726
gotoAndStop (725);
Symbol 544 MovieClip Frame 727
gotoAndStop (725);
Symbol 544 MovieClip Frame 728
gotoAndStop (725);
Symbol 544 MovieClip Frame 729
gotoAndStop (725);
Symbol 544 MovieClip Frame 730
gotoAndStop (725);
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 5
gotoAndStop (1);
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 5
gotoAndStop (1);
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 5
gotoAndStop (1);
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 5
gotoAndStop (1);
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 5
gotoAndStop (1);
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
stop();
Symbol 575 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 5
gotoAndStop (1);
Symbol 582 MovieClip Frame 3
_root.soundfx.gotoAndPlay("laser3");
Symbol 582 MovieClip Frame 5
stop();
Symbol 585 MovieClip Frame 3
_root.soundfx.gotoAndPlay("bonus2");
Symbol 585 MovieClip Frame 41
stop();
Symbol 591 MovieClip Frame 4
_root.soundfx.gotoAndPlay("bonus1");
Symbol 591 MovieClip Frame 6
stop();
Symbol 598 MovieClip Frame 1
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 2
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 3
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 4
stopAllSounds();
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 5
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 6
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 7
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 8
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 9
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 10
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 11
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 12
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 13
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 14
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 15
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 16
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 17
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 18
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 19
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 20
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 21
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 22
soundfx.gotoAndStop(1);
Symbol 598 MovieClip Frame 25
stopAllSounds();
Symbol 598 MovieClip Frame 300
_root.zoey = false;
Symbol 598 MovieClip Frame 534
stop();
Symbol 598 MovieClip Frame 535
stopAllSounds();
Symbol 598 MovieClip Frame 724
stop();
Symbol 598 MovieClip Frame 726
gotoAndStop (725);
Symbol 598 MovieClip Frame 727
gotoAndStop (725);
Symbol 598 MovieClip Frame 728
gotoAndStop (725);
Symbol 598 MovieClip Frame 729
gotoAndStop (725);
Symbol 598 MovieClip Frame 730
gotoAndStop (725);
Symbol 603 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 85
_root.bg.gotoAndStop(2);
_root.star.gotoAndStop(2);
_root.star2.gotoAndStop(2);
Symbol 614 MovieClip Frame 170
_root.scorecarda.play();
_root.cleared = true;
Symbol 614 MovieClip Frame 171
_root.scorecarda.play();
_root.cleared = true;
Symbol 614 MovieClip Frame 175
stop();
Symbol 614 MovieClip Frame 180
gotoAndStop (175);
Symbol 614 MovieClip Frame 181
gotoAndStop (175);
Symbol 614 MovieClip Frame 182
gotoAndStop (175);
Symbol 614 MovieClip Frame 183
gotoAndStop (175);
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 5
gotoAndStop (1);
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 5
gotoAndStop (1);
Symbol 623 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 5
gotoAndStop (1);
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 5
gotoAndStop (1);
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 2
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 5
gotoAndStop (1);
Symbol 641 Button
on (release) {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
Symbol 642 Button
on (release) {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}