Frame 1
FQdata = SharedObject.getLocal("FQsave");
FQdata2 = SharedObject.getLocal("FQsave2");
FQdata3 = SharedObject.getLocal("FQsave3");
Frame 72
stop();
loadx._visible = "0";
onEnterframe = function () {
if (loadgame == "2") {
play();
}
};
Frame 102
if (loadgame == "2") {
gotoAndStop (104);
}
Frame 103
function startGame() {
lv = new LoadVars();
lv.onLoad = function (success) {
};
hash1 = int(Math.random() * 10000000);
hash2 = int(Math.random() * 10000000);
var _local1 = ((((((("http://itch.com/highscoresas1.cfm?g=starfighter&a=start&l=" + level) + "&s=") + score) + "&h=") + hash1) + ":") + hash2) + "&DONE=";
lv.sendAndLoad(_local1, lv, "GET");
}
stop();
_quality = "low";
if (startup == "2") {
} else {
startup = "2";
speed = 2;
decay = 1.2;
ship.a.gotoAndStop(1);
ship.b.gotoAndStop(1);
speed3 = 10;
gundelay = 7;
gundelay2 = 7;
gunacel = 1;
gunacel2 = 1;
gunspeed = 40;
gunlocate = 50;
gunlocate2 = 50;
gundecay = 1.1;
turn = "2";
emax = 20;
espeed2 = 2;
elife = 10;
tarvar = 0;
ACC = 100;
tarx = -1000;
tary = -1000;
tardis = 1000;
pattack = 1;
acc2 = 100;
targetx.dir.gotoAndStop(1);
lval = 0;
lval2 = 1;
allattack = "1";
slife = 100;
laserval = 1;
onepress.gotoAndStop(1);
pbotxval = 40;
pbotyval = 25;
pbot1on = "1";
pbot2on = "1";
pshotspeed = 30;
phealth1 = 1;
phealth2 = 1;
step1 = 60;
step2 = 1;
itemchance = 3;
eweaponsel = 1;
enumber = 100;
dnumber = 250;
relocate = "1";
framenumber = 0;
weaponset = 1;
dtimermax = 10;
dspeedmax = -40;
if (loadgame != "3") {
weaponsetmax = 0;
power = 100;
flife = 100;
hpcharge = 0;
wpower = 100;
shieldtime = 100;
powercharge = 0.1;
score = 0;
shipcolor = 1;
blackval = 1;
}
}
if (level > 1) {
dnumber = 150;
}
level = level + 1;
time = 4000;
endlevel = 100;
if (upchange == "2") {
weaponset = weaponsetmax + 1;
upchange = "1";
}
donce1 = "1";
donce2 = "1";
donce3 = "1";
donce4 = "1";
donce5 = "1";
donce6 = "1";
restartDone = "1";
this.onEnterFrame = function () {
var _local1 = _root;
if (restartDone == "1") {
overalltime = overalltime + 1;
if (overalltime > 21000) {
gotoAndStop (105);
}
if (Key.isDown(9)) {
gold = gold + 500000;
}
if ((level == 3) and (bosslife > 0)) {
blife.gotoAndStop((150 - math.round(bosslife)) + 1);
blife._visible = "1";
} else {
blife._visible = "0";
}
if ((bosslife < 1) and (bosson == "2")) {
endlevel = endlevel - 1;
}
if (endlevel < 0) {
bosscreate = 0;
bosson = "1";
gotoAndStop(2 + framenumber +102);
}
if (wpower <= 0) {
if (powercon == "2") {
wpower = wpower + power;
power = 0;
ship.disup.gotoAndStop(6);
itemd = "Power Converted";
} else {
ship.disup.gotoAndStop(7);
}
}
if (flife > 0) {
if (ship._y > 650) {
ship._y = 650;
}
if (ship._y < 10) {
ship._y = 10;
}
if (ship._x < -50) {
ship._x = -50;
}
if (ship._x > 750) {
ship._x = 750;
}
if ((ship._x < -40) and (ship._y < 575)) {
arrowleft._visible = "1";
arrowleft._y = ship._y;
} else {
arrowleft._visible = "0";
}
if ((ship._x > 740) and (ship._y < 575)) {
arrowright._visible = "1";
arrowright._y = ship._y;
} else {
arrowright._visible = "0";
}
if (((ship._y > 640) and (ship._x < 664)) and (ship._x > 36)) {
arrowdown._visible = "1";
arrowdown._x = ship._x;
} else {
arrowdown._visible = "0";
}
if ((ship._y > 575) and (ship._x > 665)) {
arrow2._visible = "1";
} else {
arrow2._visible = "0";
}
if ((ship._y > 575) and (ship._x < 35)) {
arrow1._visible = "1";
} else {
arrow1._visible = "0";
}
Scored = "Score: " + score;
if (level == 3) {
timed = "Boss Battle";
} else {
timed = "Time: " + math.round(time / 33);
}
leveld = "Level " + level;
time = time - 1;
if (time < 0) {
gotoAndStop(2 + framenumber +102);
}
if (level == 3) {
time = 5000;
}
inv = inv - 1;
flametimer = flametimer - 1;
if (pbot1on == "2") {
pbot1._x = pbot1._x - ((pbot1._x - (ship._x - pbotxval)) / 5);
pbot1._y = pbot1._y - ((pbot1._y - (ship._y + pbotyval)) / 4);
} else {
pbot1._x = -500;
}
if (pbot2on == "2") {
pbot2._x = pbot2._x - ((pbot2._x - (ship._x + pbotxval)) / 4);
pbot2._y = pbot2._y - ((pbot2._y - (ship._y + pbotyval)) / 5);
} else {
pbot2._x = -500;
}
pgundelay = pgundelay - 1;
pgundelay2 = pgundelay2 - 1;
pbot1.health.gotoAndStop(phealth1);
pbot2.health.gotoAndStop(phealth2);
if (key.isDown(32)) {
if (pbot1on == "2") {
if (pgundelay < 0) {
if (p1a == "2") {
pshot1._y = pbot1._y - 10;
pshot1._x = pbot1._x;
pgundelay = 50;
}
}
}
if (pbot2on == "2") {
if (pgundelay2 < 0) {
if (p2a == "2") {
pshot2._y = pbot2._y - 10;
pshot2._x = pbot2._x;
pgundelay2 = 50;
}
}
}
}
if (pshot1.hitTest(stage)) {
pshot1._y = pshot1._y - pshotspeed;
p1a = "1";
} else {
pshot1._x = -500;
p1a = "2";
}
if (pshot2.hitTest(stage)) {
pshot2._y = pshot2._y - pshotspeed;
p2a = "1";
} else {
p2a = "2";
pshot2._x = -500;
}
shieldmal._x = ship._x;
shieldmal._y = ship._y;
if (item.hitTest(stage)) {
item._y = item._y + 3;
itemoff = "1";
if (((((_local1.item._x + 40) > ship._x) and ((_local1.item._x - 40) < ship._x)) and ((_local1.item._y + 40) > ship._y)) and ((_local1.item._y - 40) < ship._y)) {
item._x = -700;
ship.disup.gotoAndStop(6);
if (item._currentframe == "1") {
itemd = "Laser Pod";
if (pbot1on == "1") {
pbot1on = "2";
phealth1 = 1;
pbot1.gotoAndStop(1);
} else {
pbot2on = "2";
phealth2 = 1;
pbot2.gotoAndStop(1);
}
} else if (item._currentframe == "2") {
itemd = "Health Point";
green.play();
} else if (item._currentframe == "3") {
itemd = "Weapon Up";
if (weaponsetmax < 9) {
weaponsetmax = weaponsetmax + 1;
}
weaponset = weaponsetmax + 1;
ship.weaponup.play();
if (hint1 == "2") {
} else {
hint1p.play();
hint1 = "2";
}
} else if (item._currentframe == "4") {
itemd = "Invincibility";
inv = 400;
} else if (item._currentframe == "5") {
itemd = "+1000 Gold";
gold = gold + 1000;
} else if (item._currentframe == "6") {
itemd = "Power Charge";
power = 100;
} else if (item._currentframe == "7") {
itemd = "Healing";
if ((flife + 20) < 100) {
flife = flife + 20;
} else {
flife = 100;
}
} else if (item._currentframe == "8") {
itemd = "Time Plus";
time = time + 1000;
} else if (item._currentframe == "9") {
itemd = "Time Minus";
time = time - 1000;
} else if (item._currentframe == "10") {
itemd = "Shield On";
if (shielduses < 25) {
shield = "2";
shieldtimer = 200;
} else {
shieldmal.play();
}
} else if (item._currentframe == "11") {
itemd = "Fire Element";
flametimer = 400;
} else if (item._currentframe == "12") {
itemd = "Energy Charge";
wpower = 100;
}
}
} else {
itemoff = "2";
item._x = -700;
}
if (phealth1 > 4) {
pbot1.play();
}
if (phealth2 > 4) {
pbot2.play();
}
if (shiphit == "2") {
shiphit = "1";
speed1 = shippushx;
speed2 = shippushy;
if (inv < 0) {
if (shield == "2") {
} else {
flife = flife - 5;
light.play();
phealth1 = phealth1 + 1;
phealth2 = phealth2 + 1;
pbothittimer = 50;
}
}
}
pbothittimer = pbothittimer - 1;
slife = slife + ((flife - slife) / 10);
dweapon.gotoAndStop(math.round(dval));
dval = dval - ((dval - dval2) / 5);
Dval2 = (weaponset * 25) - 14;
weaponpowerd.gotoAndStop(101 - math.round(wpower));
if (onepress._alpha > 0) {
onepress._alpha = onepress._alpha - 1;
}
if (wpower < 100) {
wpower = wpower + 0.1;
}
if (weaponset == "1") {
dwep1._visible = "0";
} else {
dwep1._visible = "1";
}
if (weaponset == "9") {
dwep2._visible = "0";
} else {
dwep2._visible = "1";
}
if (power < 1) {
targetx.noenergy.play();
targetx.lowenergy.gotoAndStop(1);
}
if ((power < 15) and (power > 1)) {
targetx.lowenergy.play();
targetx.noenergy.gotoAndStop(1);
}
if ((weaponset >= 1) and (weaponset <= 4)) {
Textdis = "Missiles Level " + weaponset;
energy = "Energy Drain: 0%";
if (weaponset == 3) {
Textdis = "Violet Magnetic";
} else if (weaponset == 4) {
Textdis = "Blue Magnetic";
}
}
if ((weaponset >= 5) and (weaponset <= 6)) {
rapid = "2";
if (weaponset == 5) {
Textdis = "Photon Red";
} else {
Textdis = "Photon Violet";
}
energy = "Energy Drain: 2%";
} else {
rapid = "1";
}
if ((weaponset >= 7) and (weaponset <= 8)) {
laser = "2";
Textdis = ("Level " + (weaponset - 6)) + " Laser";
energy = "Energy Drain: 4%";
Laserplus = 40;
} else {
laser = "1";
Laserplus = 0;
}
if (weaponset == "9") {
Textdis = "Photon Cannon";
energy = "Energy Drain: 15%";
}
if ((weaponset > 9) and (weaponset <= 12)) {
Textdis = "Dark Missile " + (weaponset - 9);
energy = "Energy Drain: 2%";
}
if (weaponset == 13) {
Textdis = "Light Missile ";
energy = "Energy Drain: 0%";
}
if (power > 1) {
powerd.gotoAndStop(math.round(power));
} else {
powerd.gotoAndStop(1);
}
health.gotoAndStop(101 - math.round(slife));
if (power < 100) {
power = power + powercharge;
}
speed1 = speed1 / decay;
speed2 = speed2 / decay;
targetx._x = (ship._x + (speed1 * 5)) + tarvar;
targetx._y = ship._y + 100;
targetx.a.gotoAndStop(ACC);
targetx.gotoAndStop(Math.round(((gunacel / gunacel2) * 200) - 100));
if (laser == "1") {
gundelay = gundelay2 * (gunacel / gunacel2);
}
gunlocate = gunlocate2 / ((ACC + 1) / 100);
if (Key.isDown(40)) {
speed2 = speed2 + speed;
}
if (Key.isDown(38)) {
speed2 = speed2 - speed;
}
if (Key.isDown(39)) {
speed1 = speed1 + speed;
}
if (Key.isDown(37)) {
speed1 = speed1 - speed;
}
timersd = timersd - 1;
acctimer = acctimer - 1;
allattacktimer = allattacktimer - 1;
if (m1.a._currentframe == 2) {
allattacktimer = 15;
}
if (allattacktimer > 0) {
targetx.color.gotoAndStop(2);
} else if (shieldtimer < 0) {
targetx.color.gotoAndStop(1);
}
shieldtimer = shieldtimer - 1;
if (shieldtimer < 0) {
shield = "1";
ship.shield._visible = "0";
} else {
targetx.color.gotoAndStop(3);
ship.shield._visible = "1";
}
if (weaponset > 4) {
wstyle.gotoAndStop(1);
}
if (power > 99) {
aup.gotoAndStop(2);
sup.gotoAndStop(2);
dup.gotoAndStop(2);
fup.gotoAndStop(2);
} else if (power > 75) {
aup.gotoAndStop(2);
sup.gotoAndStop(2);
dup.gotoAndStop(1);
fup.gotoAndStop(2);
} else if (power > 50) {
aup.gotoAndStop(2);
sup.gotoAndStop(2);
dup.gotoAndStop(1);
fup.gotoAndStop(1);
} else if (power > 25) {
aup.gotoAndStop(1);
sup.gotoAndStop(2);
dup.gotoAndStop(1);
fup.gotoAndStop(1);
} else {
aup.gotoAndStop(1);
sup.gotoAndStop(1);
dup.gotoAndStop(1);
fup.gotoAndStop(1);
}
if (((d_active == "2") and (power > 99)) and (weaponsetmax < 8)) {
powerupsel.gotoAndStop(1);
d_active = "1";
power = 0;
if (weaponsetmax < 9) {
weaponsetmax = weaponsetmax + 1;
}
weaponset = weaponsetmax + 1;
ship.weaponup.play();
if (hint1 == "2") {
} else {
hint1p.play();
hint1 = "2";
}
}
if (((f_active == "2") and ((power > 75) or (hpcharge == 4))) and (timersd < 0)) {
powerupsel.gotoAndStop(1);
if (timersd < 0) {
timersd = 20;
if (hpcharge > 3) {
f_active = "1";
hpcharge = 0;
flife = 100;
hup.play();
ship.green.play();
} else if (green._currentframe == 1) {
f_active = "1";
power = power - 75;
green.play();
}
}
}
if (((s_active == "2") and (power > 25)) and (timersd < 0)) {
if (shielduses < 25) {
shielduses = shielduses + 1;
powerupsel.gotoAndStop(1);
s_active = "1";
timersd = 30;
power = power - 40;
shield = "2";
shieldtimer = shieldtime;
} else {
shieldmal.play();
}
}
if (((a_active == "2") and (power > 50)) and (timersd < 0)) {
wchange = weaponset;
a_active = "1";
timersd = 65;
power = power - 50;
powerupsel.gotoAndStop(1);
weaponset = 1;
firetimer = 2;
sattackon = "2";
m1exp = "1";
exp1._x = m1._x;
exp1._y = m1._y;
exp1.play();
m1._x = -700;
m2exp = "1";
exp2._x = m2._x;
exp2._y = m2._y;
exp2.play();
m2._x = -700;
m3exp = "1";
exp3._x = m3._x;
exp3._y = m3._y;
exp3.play();
m3._x = -700;
m4exp = "1";
exp4._x = m4._x;
exp4._y = m4._y;
exp4.play();
m4._x = -700;
m5exp = "1";
exp5._x = m5._x;
exp5._y = m5._y;
exp5.play();
m5._x = -700;
m6exp = "1";
exp6._x = m6._x;
exp6._y = m6._y;
exp6.play();
m6._x = -700;
}
firetimer = firetimer - 1;
if ((firetimer < 0) and (sattackon == "2")) {
once43534 = "2";
sattackon = "1";
pattack = 1.5;
acc2 = ACC;
ACC = 1;
acctimer = 40;
allattack = "2";
allattacktimer = 3;
once = "2";
turn = "2";
lval = 0;
lval2 = 1;
}
a_active = "1";
s_active = "1";
d_active = "1";
f_active = "1";
if ((acctimer < 0) and (once == "2")) {
once = "1";
acc = acc2;
}
Ship._x = Ship._x + speed1;
Ship._y = Ship._y + speed2;
ship._rotation = speed1 * 2;
if (speed2 > speed3) {
speed3 = speed2;
}
asd._x = laserpoint;
flame = (-math.round((speed2 / speed3) * 20)) + 22;
ship.a.gotoAndStop(flame);
ship.b.gotoAndStop(flame);
guntimer = guntimer - 1;
gval = targetx._x - ship._x;
if (Key.isDown(32) or (allattack == "2")) {
if ((guntimer < 0) or (allattack == "2")) {
if ((weaponset == "9") and (wpower < 0)) {
} else if (((weaponset >= 5) and (weaponset <= 12)) and (wpower < 0)) {
} else if (turn == "2") {
if (((m1on == "2") and (turn == "2")) or (allattack == "2")) {
second = "1";
guntimer = gundelay;
turn = "1";
m1._x = ship._x - lval;
m1._y = ship._y;
m1speed1 = -8 * pattack;
m1speed2 = 8 * lval2;
m1xtarget = (ship._x - 20) + gval;
if (darkat == "2") {
ship.g2.play();
} else {
ship.g1.play();
}
m1._alpha = 0;
if (allattack == "2") {
pattack = pattack + 1;
}
if ((weaponset == 9) and (allattack == "1")) {
wpower = wpower - 7.5;
}
if ((rapid == "2") and (allattack == "1")) {
wpower = wpower - 4;
if (wpower < 0) {
wpower = -10;
}
}
if ((laser == "2") and (allattack == "1")) {
wpower = wpower - 4;
if (wpower < 0) {
wpower = -10;
}
}
if ((darkat == "2") and (allattack == "1")) {
if (weaponset != 13) {
wpower = wpower - 5;
}
if (wpower < 0) {
wpower = -10;
}
}
}
if (((m2on == "2") and (turn == "2")) or (allattack == "2")) {
second = "1";
guntimer = gundelay;
turn = "1";
m2._x = ship._x - lval;
m2._y = ship._y;
m2speed1 = -8 * pattack;
m2speed2 = 8 * lval2;
m2xtarget = (ship._x - 20) + gval;
if (darkat == "2") {
ship.g2.play();
} else {
ship.g1.play();
}
m2._alpha = 0;
if (allattack == "2") {
pattack = pattack + 1;
}
}
if (((m3on == "2") and (turn == "2")) or (allattack == "2")) {
second = "1";
guntimer = gundelay;
turn = "1";
m3._x = ship._x - lval;
m3._y = ship._y;
m3speed1 = -8 * pattack;
m3speed2 = 8 * lval2;
m3xtarget = (ship._x - 20) + gval;
if (darkat == "2") {
ship.g2.play();
} else {
ship.g1.play();
}
m3._alpha = 0;
if (allattack == "2") {
pattack = pattack + 1;
}
}
} else {
if (allattack == "2") {
pattack = 1.5;
}
if (((m4on == "2") and (turn == "1")) or (allattack == "2")) {
second = "2";
guntimer = gundelay * laserval;
turn = "2";
m4._x = (ship._x + lval) + speed1;
m4._y = (ship._y + Laserplus) + speed2;
m4speed1 = 8 * pattack;
m4speed2 = 8 * lval2;
m4xtarget = (ship._x + 20) + gval;
if (darkat == "2") {
ship.g1.play();
} else {
ship.g2.play();
}
m4._alpha = 0;
if (allattack == "2") {
pattack = pattack + 1;
}
}
if (((m5on == "2") and (turn == "1")) or (allattack == "2")) {
second = "2";
guntimer = gundelay * laserval;
turn = "2";
m5._x = (ship._x + lval) + speed1;
m5._y = (ship._y + Laserplus) + speed2;
m5speed1 = 8 * pattack;
m5speed2 = 8 * lval2;
m5xtarget = (ship._x + 20) + gval;
if (darkat == "2") {
ship.g1.play();
} else {
ship.g2.play();
}
m5._alpha = 0;
if (allattack == "2") {
pattack = pattack + 1;
}
}
if (((m6on == "2") and (turn == "1")) or (allattack == "2")) {
second = "2";
guntimer = gundelay * laserval;
turn = "2";
m6._x = (ship._x + lval) + speed1;
m6._y = (ship._y + Laserplus) + speed2;
m6speed1 = 8 * pattack;
m6speed2 = 8 * lval2;
m6xtarget = (ship._x + 20) + gval;
if (darkat == "2") {
ship.g1.play();
} else {
ship.g2.play();
}
m6._alpha = 0;
if (allattack == "2") {
pattack = pattack + 1;
}
}
if (allattack == "2") {
m1.a.gotoAndStop(2);
m2.a.gotoAndStop(2);
m3.a.gotoAndStop(2);
m4.a.gotoAndStop(2);
m5.a.gotoAndStop(2);
m6.a.gotoAndStop(2);
}
allattack = "1";
pattack = 1;
}
}
}
if (allattacktimer < 0) {
if (once43534 == "2") {
once43534 = "1";
weaponset = wchange;
}
if (weaponset > 4) {
m1._x = m1._x + (m1._rotation * rval);
m2._x = m2._x + (m2._rotation * rval);
m3._x = m3._x + (m3._rotation * rval);
m4._x = m4._x + (m4._rotation * rval);
m5._x = m5._x + (m5._rotation * rval);
m6._x = m6._x + (m6._rotation * rval);
lval = 12;
lval2 = 0;
ACC = 100;
gundelay2 = 1;
gunacel = 3;
m1speed1 = 0;
m2speed1 = 0;
m3speed1 = 0;
m4speed1 = 0;
m5speed1 = 0;
m6speed1 = 0;
once342 = "2";
rval = 2;
gunlocate = 50;
if ((weaponset >= 7) and (weaponset <= 8)) {
gunlocate = 5000;
lval2 = random(10) / 10;
gundelay = 4;
gunspeedx = 40;
laserdelay = 3;
m1._alpha = 100;
m2._alpha = 100;
m3._alpha = 100;
m4._alpha = 100;
m5._alpha = 100;
m6._alpha = 100;
m1speed2 = -gunspeedx;
m2speed2 = -gunspeedx;
m3speed2 = -gunspeedx;
m4speed2 = -gunspeedx;
m5speed2 = -gunspeedx;
m6speed2 = -gunspeedx;
gunacel = 0;
rval = 2;
m1._rotation = 0;
m2._rotation = 0;
m3._rotation = 0;
m4._rotation = 0;
m5._rotation = 0;
m6._rotation = 0;
laserval = 0;
if (speed1 < -8) {
laserdelay = -3;
} else if (speed1 > 5) {
laserdelay = 5;
} else {
laserdelay = 0;
}
} else {
laserval = 1;
}
if (weaponset == 9) {
lval = 0;
lval2 = random(10) / 10;
gundelay2 = 0.5;
gunacel = 5;
gunlocate = 50;
}
if (weaponset > 9) {
lval = 0;
lval2 = 0.7;
gunacel = 0.5;
gundelay2 = 15;
gunlocate = 50;
darkat = "2";
m1speed1 = 1.2;
m2speed1 = 1.2;
m3speed1 = 1.2;
m4speed1 = -1.2;
m5speed1 = -1.2;
m6speed1 = -1.2;
} else {
darkat = "1";
}
} else {
if (once342 == "2") {
once342 = "1";
gunacel = gunacel2;
}
lval = 0;
lval2 = 1;
gundelay2 = 7;
gunlocate = 50;
}
}
if (targetx.hitTest(stage)) {
} else {
tarx = ship._x;
}
if (m1.hitTest(stage)) {
m1on = "1";
m1._y = m1._y + m1speed2;
m1speed1 = m1speed1 - ((m1._x - m1xtarget) / gunlocate);
m1speed1 = m1speed1 / gundecay;
if (m1speed2 < gunspeed) {
m1speed2 = m1speed2 - gunacel;
}
if (darkat == "2") {
dtimer1 = dtimer1 + 1;
if (dtimer1 > dtimermax) {
if (donce1 != "2") {
donce1 = "2";
tail1._x = m1._x;
tail1._y = m1._y;
tail1.gotoAndPlay(1);
}
tail1._height = tail1._y - m1._y;
m1speed2 = dspeedmax;
m1speed1 = 0;
}
}
m1._x = m1._x + m1speed1;
} else {
donce1 = "1";
dtimer1 = 0;
m1.a.gotoAndStop(1);
m1on = "2";
m1._x = -1000;
}
if (m2.hitTest(stage)) {
m2on = "1";
m2._y = m2._y + m2speed2;
m2speed1 = m2speed1 / gundecay;
m2speed1 = m2speed1 - ((m2._x - m2xtarget) / gunlocate);
if (m2speed2 < gunspeed) {
m2speed2 = m2speed2 - gunacel;
}
if (darkat == "2") {
dtimer2 = dtimer2 + 1;
if (dtimer2 > dtimermax) {
if (donce2 != "2") {
donce2 = "2";
tail2._x = m2._x;
tail2._y = m2._y;
tail2.gotoAndPlay(1);
}
tail2._height = tail2._y - m2._y;
m2speed2 = dspeedmax;
m2speed1 = 0;
}
}
m2._x = m2._x + m2speed1;
} else {
donce2 = "1";
dtimer2 = 0;
m2.a.gotoAndStop(1);
m2on = "2";
m2._x = -1000;
}
if (m3.hitTest(stage)) {
m3on = "1";
m3._y = m3._y + m3speed2;
m3speed1 = m3speed1 / gundecay;
m3speed1 = m3speed1 - ((m3._x - m3xtarget) / gunlocate);
if (m3speed2 < gunspeed) {
m3speed2 = m3speed2 - gunacel;
}
if (darkat == "2") {
dtimer3 = dtimer3 + 1;
if (dtimer3 > dtimermax) {
if (donce3 != "2") {
donce3 = "2";
tail3._x = m3._x;
tail3._y = m3._y;
tail3.gotoAndPlay(1);
}
tail3._height = tail3._y - m3._y;
m3speed2 = dspeedmax;
m3speed1 = 0;
}
}
m3._x = m3._x + m3speed1;
} else {
donce3 = "1";
dtimer3 = 0;
m3.a.gotoAndStop(1);
m3on = "2";
m3._x = -1000;
}
if (m4.hitTest(stage)) {
m4on = "1";
m4._y = m4._y + m4speed2;
m4speed1 = m4speed1 / gundecay;
m4speed1 = m4speed1 - ((m4._x - m4xtarget) / gunlocate);
if (m4speed2 < gunspeed) {
m4speed2 = m4speed2 - gunacel;
}
if (darkat == "2") {
dtimer4 = dtimer4 + 1;
if (dtimer4 > dtimermax) {
if (donce4 != "2") {
donce4 = "2";
tail4._x = m4._x;
tail4._y = m4._y;
tail4.gotoAndPlay(1);
}
tail4._height = tail4._y - m4._y;
m4speed2 = dspeedmax;
m4speed1 = 0;
}
}
m4._x = m4._x + m4speed1;
} else {
donce4 = "1";
dtimer4 = 0;
m4.a.gotoAndStop(1);
m4on = "2";
m4._x = -1000;
}
if (m5.hitTest(stage)) {
m5on = "1";
m5._y = m5._y + m5speed2;
m5speed1 = m5speed1 / gundecay;
m5speed1 = m5speed1 - ((m5._x - m5xtarget) / gunlocate);
if (m5speed2 < gunspeed) {
m5speed2 = m5speed2 - gunacel;
}
if (darkat == "2") {
dtimer5 = dtimer5 + 1;
if (dtimer5 > dtimermax) {
if (donce5 != "2") {
donce5 = "2";
tail5._x = m5._x;
tail5._y = m5._y;
tail5.gotoAndPlay(1);
}
tail5._height = tail5._y - m5._y;
m5speed2 = dspeedmax;
m5speed1 = 0;
}
}
m5._x = m5._x + m5speed1;
} else {
donce5 = "1";
dtimer5 = 0;
m5.a.gotoAndStop(1);
m5on = "2";
m5._x = -1000;
}
if (m6.hitTest(stage)) {
m6on = "1";
m6._y = m6._y + m6speed2;
m6speed1 = m6speed1 / gundecay;
m6speed1 = m6speed1 - ((m6._x - m6xtarget) / gunlocate);
if (m6speed2 < gunspeed) {
m6speed2 = m6speed2 - gunacel;
}
if (darkat == "2") {
dtimer6 = dtimer6 + 1;
if (dtimer6 > dtimermax) {
if (donce6 != "2") {
donce6 = "2";
tail6._x = m6._x;
tail6._y = m6._y;
tail6.gotoAndPlay(1);
}
tail6._height = tail6._y - m6._y;
m6speed2 = dspeedmax;
m6speed1 = 0;
}
}
m6._x = m6._x + m6speed1;
} else {
donce6 = "1";
dtimer6 = 0;
m6.a.gotoAndStop(1);
m6on = "2";
m6._x = -1000;
}
m1._rotation = (m1speed1 * 5) * ((ACC + 100) / 200);
m2._rotation = (m2speed1 * 5) * ((ACC + 100) / 200);
m3._rotation = (m3speed1 * 5) * ((ACC + 100) / 200);
m4._rotation = (m4speed1 * 5) * ((ACC + 100) / 200);
m5._rotation = (m5speed1 * 5) * ((ACC + 100) / 200);
m6._rotation = (m6speed1 * 5) * ((ACC + 100) / 200);
if (m1._alpha < 100) {
m1._alpha = m1._alpha + 10;
}
if (m2._alpha < 100) {
m2._alpha = m2._alpha + 10;
}
if (m3._alpha < 100) {
m3._alpha = m3._alpha + 10;
}
if (m4._alpha < 100) {
m4._alpha = m4._alpha + 10;
}
if (m5._alpha < 100) {
m5._alpha = m5._alpha + 10;
}
if (m6._alpha < 100) {
m6._alpha = m6._alpha + 10;
}
if (m1exp == "2") {
if (m1.a._currentframe == 2) {
exp1.gotoAndPlay(10);
} else {
exp1.play();
}
m1exp = "1";
exp1._x = m1._x;
exp1._y = m1._y;
m1._x = -700;
}
if (m2exp == "2") {
m2exp = "1";
exp2._x = m2._x;
exp2._y = m2._y;
if (m2.a._currentframe == 2) {
exp2.gotoAndPlay(10);
} else {
exp2.play();
}
m2._x = -700;
}
if (m3exp == "2") {
m3exp = "1";
exp3._x = m3._x;
exp3._y = m3._y;
if (m3.a._currentframe == 2) {
exp3.gotoAndPlay(10);
} else {
exp3.play();
}
m3._x = -700;
}
if (m4exp == "2") {
m4exp = "1";
exp4._x = m4._x;
exp4._y = m4._y;
if (m4.a._currentframe == 2) {
exp4.gotoAndPlay(10);
} else {
exp4.play();
}
m4._x = -700;
}
if (m5exp == "2") {
m5exp = "1";
exp5._x = m5._x;
exp5._y = m5._y;
if (m5.a._currentframe == 2) {
exp5.gotoAndPlay(10);
} else {
exp5.play();
}
m5._x = -700;
}
if (m6exp == "2") {
m6exp = "1";
exp6._x = m6._x;
exp6._y = m6._y;
if (m6.a._currentframe == 2) {
exp6.gotoAndPlay(10);
} else {
exp6.play();
}
m6._x = -700;
}
} else {
death.play();
if (relocate == "2") {
death._x = death._x - ((death._x - 350) / 20);
death._y = death._y - ((death._y - 300) / 20);
} else {
death._x = ship._x;
death._y = ship._y;
}
if (moveon == "2") {
gotoAndStop(3 + framenumber +102);
}
}
}
};
startGame();
Frame 104
stop();
_quality = "high";
leveld = "Level " + level;
roll = 6;
bgx._visible = false;
if (loadgame == "2") {
loadgame = "3";
bgx._visible = true;
} else {
gold = gold + 5000;
}
save._visible = false;
FQdata = SharedObject.getLocal("FQsave");
FQdata2 = SharedObject.getLocal("FQsave2");
FQdata3 = SharedObject.getLocal("FQsave3");
bmarket._visible = false;
this.onEnterFrame = function () {
if (weaponsetmax > 7) {
black._visible = true;
} else {
black._visible = false;
}
shop.energy = ("Current Energy: " + math.round(wpower)) + "%";
shop.power = ("Current Power: " + math.round(power)) + "%";
shop.gotoAndStop(roll);
shop.gold = "Gold: " + gold;
bmarket.gold = "Gold: " + gold;
shop.life = ("Current Health: " + math.round(flife)) + "%";
if (flife == 100) {
repair._visible = 0;
}
if (weaponsetmax > 7) {
upgradeweapon._visible = false;
}
if (powercharge == 0.2) {
charger23._visible = false;
}
if (shieldtime == 200) {
sup2x._visible = false;
}
};
Frame 105
ax2.gotoAndPlay(20);
_quality = "high";
lv2 = new LoadVars();
lv2.onLoad = function (success) {
};
hash3 = Math.random();
hash4 = Math.random();
var str = (((((((((((((((("http://itch.com/highscoresas1.cfm?g=starfighter&a=start&l=" + level) + "&s=") + score) + "&cypher=") + hash3) + "&h=") + hash1) + ":") + ((score + hash1) % 17)) + ":") + hash2) + ":") + ((level + hash2) % 13)) + ":") + hash4) + "&DONE=");
lv2.sendAndLoad(str, lv2, "GET");
restartGame = function () {
score = 0;
gold = 0;
startup = "1";
restartDone = "0";
level = 0;
overalltime = 0;
gotoAndStop (103);
};
Symbol 2 Button
on (release) {
getURL ("http://itch.com/");
}
Symbol 24 Button
on (release) {
play();
startup = "1";
hsapi.startGame("", 1, 0, null);
}
Symbol 25 Button
on (release) {
loadx._visible = true;
}
Symbol 26 Button
on (press) {
help._visible = true;
}
Symbol 40 Button
on (release) {
_visible = false;
}
Symbol 41 MovieClip Frame 1
_visible = false;
Symbol 50 Button
on (release) {
_visible = false;
}
Symbol 54 Button
on (release) {
if (_name == "slot1") {
_root.flife = _root.FQdata.data.flife;
_root.score = _root.FQdata.data.score;
_root.level = _root.FQdata.data.level;
_root.weaponsetmax = _root.FQdata.data.weaponsetmax;
_root.shieldtime = _root.FQdata.data.shieldtime;
_root.powercharge = _root.FQdata.data.powercharge;
_root.gold = _root.FQdata.data.gold;
_root.shipcolor = _root.FQdata.data.shipcolor;
_root.power = _root.FQdata.data.power;
_root.wpower = _root.FQdata.data.wpower;
_root.loadgame = "2";
}
if (_name == "slot2") {
_root.flife = _root.FQdata2.data.flife;
_root.score = _root.FQdata2.data.score;
_root.level = _root.FQdata2.data.level;
_root.weaponsetmax = _root.FQdata2.data.weaponsetmax;
_root.shieldtime = _root.FQdata2.data.shieldtime;
_root.powercharge = _root.FQdata2.data.powercharge;
_root.gold = _root.FQdata2.data.gold;
_root.shipcolor = _root.FQdata2.data.shipcolor;
_root.power = _root.FQdata2.data.power;
_root.wpower = _root.FQdata2.data.wpower;
_root.loadgame = "2";
}
if (_name == "slot3") {
_root.flife = _root.FQdata3.data.flife;
_root.score = _root.FQdata3.data.score;
_root.level = _root.FQdata3.data.level;
_root.weaponsetmax = _root.FQdata3.data.weaponsetmax;
_root.shieldtime = _root.FQdata3.data.shieldtime;
_root.powercharge = _root.FQdata3.data.powercharge;
_root.gold = _root.FQdata3.data.gold;
_root.shipcolor = _root.FQdata3.data.shipcolor;
_root.power = _root.FQdata3.data.power;
_root.wpower = _root.FQdata3.data.wpower;
_root.loadgame = "2";
}
}
Symbol 65 Button
on (release) {
gotoAndStop (3);
_root.deletex = "2";
}
Symbol 70 Button
on (release) {
if (_name == "slot1") {
_root.FQdata.data.gameon = "1";
_root.FQdata.flush();
} else if (_name == "slot2") {
_root.FQdata2.data.gameon = "1";
_root.FQdata.flush();
} else if (_name == "slot3") {
_root.FQdata3.data.gameon = "1";
_root.FQdata.flush();
}
_root.deletex = "1";
}
Symbol 74 Button
on (release) {
gotoAndStop (2);
_root.deletex = "1";
}
Symbol 76 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _root;
if (_local1.deletex != "2") {
if (_local1.FQdata.data.gameon == "2") {
slot1.gotoAndStop(2);
slot1.gamename = _local1.FQdata.data.gamename;
slot1.level = "Level: " + _local1.FQdata.data.level;
slot1.score = "Score: " + _local1.FQdata.data.score;
slot1.gold = ("Health: " + _local1.FQdata.data.flife) + "%";
slot1.health = "Gold: " + _local1.FQdata.data.gold;
} else {
slot1.gotoAndStop(1);
}
if (_local1.FQdata2.data.gameon == "2") {
slot2.gotoAndStop(2);
slot2.gamename = _local1.FQdata2.data.gamename;
slot2.level = "Level: " + _local1.FQdata2.data.level;
slot2.score = "Score: " + _local1.FQdata2.data.score;
slot2.gold = ("Health: " + _local1.FQdata2.data.flife) + "%";
slot2.health = "Gold: " + _local1.FQdata2.data.gold;
} else {
slot2.gotoAndStop(1);
}
if (_local1.FQdata3.data.gameon == "2") {
slot3.gotoAndStop(2);
slot3.gamename = _local1.FQdata3.data.gamename;
slot3.level = "Level: " + _local1.FQdata3.data.level;
slot3.score = "Score: " + _local1.FQdata3.data.score;
slot3.gold = ("Health: " + _local1.FQdata3.data.flife) + "%";
slot3.health = "Gold: " + _local1.FQdata3.data.gold;
} else {
slot3.gotoAndStop(1);
}
}
};
Symbol 77 MovieClip Frame 21
stop();
Symbol 88 MovieClip Frame 1
gotoAndPlay(random(_totalframes + 1));
Symbol 88 MovieClip Frame 92
stop();
Symbol 89 MovieClip Frame 1
speed = ((random(100) / 100) * 5) + 3;
onEnterFrame = function () {
_y = (_y - speed);
};
Symbol 90 MovieClip Frame 1
Ename = 0;
Symbol 90 MovieClip Frame 2
if (_root.sparkscall == "2") {
Ename = Ename + 1;
e._x = (_root.locatex + random(100)) - random(100);
e._y = (_root.locatey + random(50)) - random(50);
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > 50) {
ename = 0;
}
Ename = Ename + 1;
e._x = (_root.locatex + random(100)) - random(100);
e._y = (_root.locatey + random(50)) - random(50);
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > 50) {
ename = 0;
}
}
Symbol 90 MovieClip Frame 3
gotoAndPlay (2);
Symbol 106 MovieClip Frame 1
stop();
onEnterFrame = function () {
_parent.rangex = _width / 2.5;
_parent.rangey = _height / 2.5;
};
Symbol 106 MovieClip Frame 14
stop();
Symbol 109 MovieClip Frame 1
speed2 = _root.espeed2 + random(5);
a.gotoAndStop(random(a._totalframes + 1));
a._rotation = a._rotation + (random(30) - random(30));
this.onEnterFrame = function () {
var _local1 = _root;
_y = (_y + speed2);
if (speed3 < -1) {
speedtimer = speedtimer + 1;
} else {
speedtimer = 0;
}
if (speedtimer > 10) {
speed3 = speed2;
}
if (((((_local1.ship._x + rangex) > _x) and ((_local1.ship._x - rangex) < _x)) and ((_local1.ship._y + rangey) > _y)) and ((_local1.ship._y - rangey) < _y)) {
_local1.shiphit = "2";
_local1.hitexpx = (_local1.ship._x + ((_x + _local1.ship._x) / 2)) / 2;
_local1.hitexpy = (_local1.ship._y + ((_y + _local1.ship._y) / 2)) / 2;
_local1.hitexp.play();
speed3 = (30 - (_local1.ship._y - _y)) / 10;
speed4 = (40 - (_local1.ship._x - _x)) / 30;
_local1.shippushy = (-speed3) * 2;
_local1.shippushx = (-speed4) * 5;
speed3 = speed3 / (10 - _local1.speed1);
hit = "2";
}
};
Symbol 110 MovieClip Frame 1
Ename = 0;
Symbol 110 MovieClip Frame 2
timer = timer - 1;
if (timer < 0) {
timer = _root.dnumber;
Ename = Ename + 1;
e._x = random(700);
e._y = -200 - random(200);
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > _root.emax) {
ename = 0;
}
}
Symbol 110 MovieClip Frame 3
gotoAndPlay (2);
Symbol 119 MovieClip Frame 10
stop();
Symbol 121 MovieClip Frame 10
stop();
Symbol 122 MovieClip Frame 10
stop();
Symbol 130 MovieClip Frame 71
_parent._parent.expnow = "2";
Symbol 130 MovieClip Frame 86
_parent._parent.expnow = "1";
Symbol 130 MovieClip Frame 91
_x = -5000;
stop();
Symbol 132 MovieClip Frame 49
_parent._parent.expnow = "2";
Symbol 132 MovieClip Frame 64
_parent._parent.expnow = "1";
Symbol 132 MovieClip Frame 69
_x = -5000;
stop();
Symbol 134 MovieClip Frame 1
gotoAndStop(_root.eweaponsel);
Symbol 134 MovieClip Frame 2
e.gotoAndStop(_root.eweaponsel2);
type = _root.expsel;
speed2 = _root.eweaponspeed;
rangex = 40;
rangey = 20;
onEnterFrame = function () {
var _local1 = _root;
_y = (_y + speed2);
if (_y > 500) {
removeMovieClip(this);
}
if (((((_local1.ship._x + rangex) > _x) and ((_local1.ship._x - rangex) < _x)) and ((_local1.ship._y + rangey) > _y)) and ((_local1.ship._y - rangey) < _y)) {
_local1.expcall = "2";
_local1.expx1 = _x;
_local1.expy1 = _y;
_local1.exptype = type;
_x = -500;
_local1.shippushy = 0;
_local1.shippushx = 0;
_local1.shiphit = "2";
}
};
Symbol 134 MovieClip Frame 3
e.gotoAndStop(_root.eweaponsel2);
type = _root.expsel;
rangex = 20;
rangey = 20;
speed = _root.eweaponspeed;
delta_x = _x - _root.ship._x;
delta_y = _y - _root.ship._y;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
if (Math.sqrt((delta_x * delta_x) + (delta_y * delta_y)) > speed) {
speed2 = speed * Math.cos(targetRotation * (Math.PI/180));
speed1 = speed * Math.sin(targetRotation * (Math.PI/180));
}
onEnterFrame = function () {
var _local1 = _root;
_y = (_y - speed2);
_x = (_x + speed1);
if (_y > 500) {
removeMovieClip(this);
}
if (((((_local1.ship._x + rangex) > _x) and ((_local1.ship._x - rangex) < _x)) and ((_local1.ship._y + rangey) > _y)) and ((_local1.ship._y - rangey) < _y)) {
_local1.expcall = "2";
_local1.expx1 = _x;
_local1.expy1 = _y;
_local1.exptype = type;
_x = -500;
_local1.shippushy = 0;
_local1.shippushx = 0;
_local1.shiphit = "2";
}
};
Symbol 134 MovieClip Frame 4
e.gotoAndStop(_root.eweaponsel2);
type = _root.expsel;
speed2 = _root.eweaponspeed;
rangex = 80;
rangey = 40;
onEnterFrame = function () {
var _local1 = _root;
_y = (_y + speed2);
if (_y > 500) {
removeMovieClip(this);
}
atimer = atimer - 1;
if (atimer < 0) {
if (((((_local1.ship._x + rangex) > _x) and ((_local1.ship._x - rangex) < _x)) and ((_local1.ship._y + rangey) > _y)) and ((_local1.ship._y - rangey) < _y)) {
atimer = 1;
_local1.expcall = "2";
_local1.expx1 = (_x + _local1.ship._x) / 2;
_local1.expy1 = (_y + _local1.ship._y) / 2;
_local1.exptype = type;
_local1.shippushy = 0;
_local1.shippushx = 0;
_local1.shiphit = "2";
}
}
};
Symbol 134 MovieClip Frame 5
e.gotoAndStop(_root.eweaponsel2);
type = _root.expsel;
_y = _root.ship._y;
_x = _root.ship._x;
rangex = 60;
rangey = 60;
onEnterFrame = function () {
var _local1 = _root;
if (btimer < -100) {
removeMovieClip(this);
}
btimer = btimer - 1;
atimer = atimer - 1;
if (atimer < 0) {
if (expnow == "2") {
if (((((_local1.ship._x + rangex) > _x) and ((_local1.ship._x - rangex) < _x)) and ((_local1.ship._y + rangey) > _y)) and ((_local1.ship._y - rangey) < _y)) {
atimer = 3;
_local1.expcall = "2";
_local1.expx1 = (_x + _local1.ship._x) / 2;
_local1.expy1 = (_y + _local1.ship._y) / 2;
_local1.exptype = type;
_local1.shippushy = 0;
_local1.shippushx = 0;
_local1.shiphit = "2";
}
}
}
};
Symbol 135 MovieClip Frame 1
Ename = 0;
Symbol 135 MovieClip Frame 2
if (_root.weaponcall == "2") {
_root.weaponcall = "1";
Ename = Ename + 1;
e._x = _root.weaponx1;
e._y = _root.weapony1;
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > 20) {
ename = 0;
}
}
if (_root.weaponcall2 == "2") {
_root.weaponcall2 = "1";
Ename = Ename + 1;
e._x = _root.weaponx2;
e._y = _root.weapony2;
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > 40) {
ename = 0;
}
}
Symbol 135 MovieClip Frame 3
gotoAndPlay (2);
Symbol 147 MovieClip Frame 1
onEnterFrame = function () {
if (_root.bosscharge > 0) {
play();
} else {
gotoAndStop (1);
}
};
Symbol 152 MovieClip Frame 1
stop();
onEnterFrame = function () {
_parent._parent.rangex = _width / 2;
_parent._parent.rangey = _height / 2;
};
Symbol 157 MovieClip Frame 1
onEnterFrame = function () {
a.gotoAndStop(_parent.esel);
};
Symbol 157 MovieClip Frame 3
a.gotoAndStop(_parent.esel);
Symbol 157 MovieClip Frame 7
_root.sparkscall = "2";
_root.locatex = _parent._x;
_root.locatey = _parent._y;
_root.score = _root.score + 5;
Symbol 157 MovieClip Frame 8
_root.sparkscall = "1";
Symbol 157 MovieClip Frame 11
gotoAndStop (1);
a.gotoAndStop(_parent.esel);
Symbol 157 MovieClip Frame 21
_root.sparkscall = "2";
_root.locatex = _parent._x;
_root.locatey = _parent._y;
_root.score = _root.score + 75;
Symbol 157 MovieClip Frame 29
_parent._y = 10000;
_root.sparkscall = "1";
Symbol 157 MovieClip Frame 39
_root.sparkscall = "2";
_root.locatex = _parent._x;
_root.locatey = _parent._y;
_root.score = _root.score + 75;
Symbol 157 MovieClip Frame 47
_parent._y = 10000;
_root.sparkscall = "1";
Symbol 157 MovieClip Frame 58
_root.sparkscall = "2";
_root.locatex = _parent._x;
_root.locatey = _parent._y;
_root.score = _root.score + 75;
Symbol 157 MovieClip Frame 65
_parent._y = 10000;
_root.sparkscall = "1";
Symbol 157 MovieClip Frame 66
a.gotoAndStop(_parent.esel);
Symbol 157 MovieClip Frame 69
_root.sparkscall = "2";
_root.locatex = _parent._x;
_root.locatey = _parent._y;
Symbol 157 MovieClip Frame 70
_root.sparkscall = "1";
_root.score = _root.score + 5;
Symbol 157 MovieClip Frame 74
gotoAndStop (1);
a.gotoAndStop(_parent.esel);
Symbol 158 MovieClip Frame 1
speed2 = (_root.espeed2 + (random(10) / 10)) - (random(10) / 10);
speed1 = 0;
esel = random(5 + _root.level) + 1;
if (_root.level > 1) {
life = 8 + esel;
} else {
life = 3 + (esel / 2);
}
if (esel == 10) {
life = 5;
}
weapontimer = random(150);
needran = random(30);
firstchance = "2";
timerz = 3000;
if (_root.level == 3) {
_root.bosscreate = _root.bosscreate + 1;
}
if (_root.bosscreate == 3) {
_root.bosson = "2";
boss = "2";
esel = 11;
life = 150;
}
if (_root.bosscreate == 2) {
positionz = "2";
esel = 12;
life = 30;
}
if (_root.bosscreate == 1) {
positionz = "3";
esel = 12;
life = 30;
}
this.onEnterFrame = function () {
var _local1 = _root;
timerz = timerz - 1;
if (timerz < 0) {
asd2 = _y;
if (math.abs(asd - asd2) > 30) {
_y = 1000;
}
asd = _y;
}
if (_y > 0) {
if (esel == 10) {
} else if (firstchance == "2") {
firstchance = "1";
if (random(5) == 1) {
fcommand = "2";
}
if (fcommand == "2") {
_local1.eclear = "2";
safety = "2";
}
}
}
if (boss == "2") {
fcommand = "2";
_local1.bosslife = life;
}
speed3 = speed3 - ((speed3 - speed2) / 30);
speed4 = speed4 - ((speed4 - speed1) / 30);
_rotation = (_rotation - ((_rotation - 0) / 30));
if (_local1.eclear == "2") {
if (safety == "2") {
safety = "1";
_local1.eclear = "1";
} else {
fcommand = "1";
_local1.eclear = "1";
}
}
if (offset2 > 200) {
offsetup = "1";
}
if (offset2 < 0) {
offsetup = "2";
}
if (offsetup == "2") {
offset2 = offset2 + 0.5;
} else {
offset2 = offset2 - 0.5;
}
offset = offset2 - 100;
if (fcommand == "2") {
if (_y < 150) {
_y = (_y + speed3);
}
_x = (_x - ((_x - _local1.ship._x) / 50));
} else if (positionz == "2") {
if (_y < 100) {
_y = (_y + speed3);
}
_x = (_x - (((_x - 150) + offset) / 30));
} else if (positionz == "3") {
if (_y < 100) {
_y = (_y + speed3);
}
_x = (_x - (((_x - 550) + offset) / 30));
} else {
_y = (_y + (speed3 + speedboost));
_x = (_x + speed4);
}
if ((positionz == "2") or (positionz == "3")) {
fcommand = "1";
}
if (speed3 < -1) {
speedtimer = speedtimer + 1;
} else {
speedtimer = 0;
}
if (speedtimer > 10) {
speed3 = speed2;
}
if (speedboost > 0) {
speedboost = speedboost - 0.1;
}
if (_y < 0) {
speedboost = 3;
}
weapontimer = weapontimer - 1;
if (weapontimer < 0) {
if ((_y > 50) and (_y < 500)) {
if (esel == "1") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x - 45;
_local1.weapony1 = _y + 20;
_local1.weaponcall2 = "2";
_local1.weaponx2 = _x + 45;
_local1.weapony2 = _y + 20;
_local1.eweaponsel = 2;
_local1.eweaponsel2 = 1;
_local1.eweaponspeed = 5 + random(3);
_local1.expsel = 2;
weapontimer = 300;
} else if (esel == "2") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x - 30;
_local1.weapony1 = _y + 20;
_local1.weaponcall2 = "2";
_local1.weaponx2 = _x + 30;
_local1.weapony2 = _y + 20;
_local1.eweaponsel = 2;
_local1.eweaponsel2 = 2;
_local1.eweaponspeed = 7 + random(3);
_local1.expsel = 3;
weapontimer = 330;
} else if (esel == "3") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x;
_local1.weapony1 = _y + 40;
_local1.eweaponsel = 3;
_local1.eweaponsel2 = 1;
_local1.eweaponspeed = 4;
_local1.expsel = 4;
weapontimer = 200;
} else if (esel == "4") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x;
_local1.weapony1 = _y;
_local1.eweaponsel = 4;
_local1.eweaponsel2 = 1;
_local1.eweaponspeed = 20;
_local1.expsel = 5;
weapontimer = 400;
} else if (esel == "5") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x - 65;
_local1.weapony1 = _y + 20;
_local1.weaponcall2 = "2";
_local1.weaponx2 = _x + 65;
_local1.weapony2 = _y + 20;
_local1.eweaponsel = 2;
_local1.eweaponsel2 = 3;
_local1.eweaponspeed = 5;
_local1.expsel = 6;
weapontimer = 200;
} else if (esel == "6") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x - 45;
_local1.weapony1 = _y + 20;
_local1.weaponcall2 = "2";
_local1.weaponx2 = _x + 45;
_local1.weapony2 = _y + 20;
_local1.eweaponsel = 2;
_local1.eweaponsel2 = 4;
_local1.eweaponspeed = 5 + random(3);
_local1.expsel = 10;
weapontimer = 100;
} else if (esel == "7") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x;
_local1.weapony1 = _y;
_local1.eweaponsel = 4;
_local1.eweaponsel2 = 2;
_local1.eweaponspeed = 25;
_local1.expsel = 7;
weapontimer = 300;
} else if (esel == "8") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x;
_local1.weapony1 = _y + 40;
_local1.eweaponsel = 3;
_local1.eweaponsel2 = 2;
_local1.eweaponspeed = 4;
_local1.expsel = 8;
weapontimer = 150;
} else if (esel == "9") {
_local1.weaponcall = "2";
_local1.eweaponsel = 5;
_local1.eweaponsel2 = 1;
_local1.expsel = 9;
weapontimer = 150;
} else if (esel == "11") {
chain = chain - 1;
if (chain > 0) {
bossattack = "3";
} else {
bossattack = random(4);
}
if (bossattack == "1") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x - 50;
_local1.weapony1 = _y + 65;
_local1.weaponcall2 = "2";
_local1.weaponx2 = _x + 50;
_local1.weapony2 = _y + 65;
_local1.eweaponsel = 2;
_local1.eweaponsel2 = 5;
_local1.eweaponspeed = 10;
_local1.expsel = 11;
weapontimer = 75;
} else if (bossattack == "2") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x - 120;
_local1.weapony1 = _y + 65;
_local1.weaponcall2 = "2";
_local1.weaponx2 = _x + 120;
_local1.weapony2 = _y + 65;
_local1.eweaponsel = 2;
_local1.eweaponsel2 = 5;
_local1.eweaponspeed = 10;
_local1.expsel = 11;
weapontimer = 75;
} else if (bossattack == "3") {
if (chain < 0) {
chain = 5;
}
_local1.weaponcall = "2";
_local1.weaponx1 = _x;
_local1.weapony1 = _y + 60;
_local1.eweaponsel = 3;
_local1.eweaponsel2 = 3;
_local1.eweaponspeed = 10;
_local1.expsel = 11;
if (chain == 0) {
weapontimer = 75;
} else {
weapontimer = 10;
}
} else {
_local1.bosscharge = 100;
attacktrue = "2";
weapontimer = 75;
}
} else if (esel == "12") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x;
_local1.weapony1 = _y + 30;
_local1.eweaponsel = 3;
_local1.eweaponsel2 = 3;
_local1.eweaponspeed = 5;
_local1.expsel = 12;
weapontimer = 75;
} else if (esel == "13") {
_local1.weaponcall = "2";
_local1.weaponx1 = _x - 55;
_local1.weapony1 = _y + 20;
_local1.weaponcall2 = "2";
_local1.weaponx2 = _x + 55;
_local1.weapony2 = _y + 20;
_local1.eweaponsel = 2;
_local1.eweaponsel2 = 6;
_local1.eweaponspeed = 10;
_local1.expsel = 13;
weapontimer = 150;
} else if (esel == "14") {
_local1.weaponcall = "2";
_local1.eweaponsel = 5;
_local1.eweaponsel2 = 2;
_local1.expsel = 14;
weapontimer = 100;
}
}
}
_local1.bosscharge = _local1.bosscharge - 1;
if ((_local1.bosscharge < 0) and (attacktrue == "2")) {
attacktrue = "1";
_local1.weaponcall = "2";
_local1.weaponx1 = _x;
_local1.weapony1 = _y;
_local1.eweaponsel = 4;
_local1.eweaponsel2 = 3;
_local1.eweaponspeed = 30;
_local1.expsel = 11;
weapontimer = 75;
}
if (life > 1) {
if (((((_local1.m1._x + rangex) > _x) and ((_local1.m1._x - rangex) < _x)) and ((_local1.m1._y + rangey) > _y)) and ((_local1.m1._y - rangey) < _y)) {
avar = _local1.m1._x - _x;
_local1.m1exp = "2";
hit = "2";
}
if (((((_local1.m2._x + rangex) > _x) and ((_local1.m2._x - rangex) < _x)) and ((_local1.m2._y + rangey) > _y)) and ((_local1.m2._y - rangey) < _y)) {
avar = _local1.m2._x - _x;
_local1.m2exp = "2";
hit = "2";
}
if (((((_local1.m3._x + rangex) > _x) and ((_local1.m3._x - rangex) < _x)) and ((_local1.m3._y + rangey) > _y)) and ((_local1.m3._y - rangey) < _y)) {
avar = _local1.m3._x - _x;
_local1.m3exp = "2";
hit = "2";
}
if (((((_local1.m4._x + rangex) > _x) and ((_local1.m4._x - rangex) < _x)) and ((_local1.m4._y + rangey) > _y)) and ((_local1.m4._y - rangey) < _y)) {
avar = _local1.m4._x - _x;
_local1.m4exp = "2";
hit = "2";
}
if (((((_local1.m5._x + rangex) > _x) and ((_local1.m5._x - rangex) < _x)) and ((_local1.m5._y + rangey) > _y)) and ((_local1.m5._y - rangey) < _y)) {
avar = _local1.m5._x - _x;
_local1.m5exp = "2";
hit = "2";
}
if (((((_local1.m6._x + rangex) > _x) and ((_local1.m6._x - rangex) < _x)) and ((_local1.m6._y + rangey) > _y)) and ((_local1.m6._y - rangey) < _y)) {
avar = _local1.m6._x - _x;
_local1.m6exp = "2";
hit = "2";
}
if (((((_local1.pshot1._x + rangex) > _x) and ((_local1.pshot1._x - rangex) < _x)) and ((_local1.pshot1._y + rangey) > _y)) and ((_local1.pshot1._y - rangey) < _y)) {
_local1.pexp1.play();
hit = "2";
}
if (((((_local1.pshot2._x + rangex) > _x) and ((_local1.pshot2._x - rangex) < _x)) and ((_local1.pshot2._y + rangey) > _y)) and ((_local1.pshot2._y - rangey) < _y)) {
_local1.pexp2.play();
hit = "2";
}
if (((((_local1.ship._x + rangex) > _x) and ((_local1.ship._x - rangex) < _x)) and ((_local1.ship._y + rangey) > _y)) and ((_local1.ship._y - rangey) < _y)) {
_local1.shiphit = "2";
_local1.hitexpx = (_x + _local1.ship._x) / 2;
_local1.hitexpy = (_y + _local1.ship._y) / 2;
_local1.hitexp.play();
speed3 = (30 - (_local1.ship._y - _y)) / 10;
speed4 = (40 - (_local1.ship._x - _x)) / 30;
_local1.shippushy = -speed3;
_local1.shippushx = -speed4;
speed3 = speed3 / (10 - _local1.speed1);
speed4 = speed4 / (10 - _local1.speed2);
hit = "2";
}
}
allattacktimer = allattacktimer - 1;
if (_local1.m1.a._currentframe == 2) {
allattacktimer = 15;
}
if (hit == "2") {
if (allattacktimer > 0) {
life = life - 20;
} else {
if (_local1.darkat == "2") {
life = life - 2;
}
if (_local1.weaponset == "9") {
life = life - 2;
} else if (_local1.flametimer > 0) {
life = life - 2;
} else if (_local1.laser == "2") {
life = life - 1;
} else {
life = life - 0.8;
}
}
hit = "1";
times = times + 1;
speed3 = speed3 + ((-3 / times) / ((_local1.weaponset / 7) + 1));
speed4 = speed4 - (avar / 100);
_rotation = speed4;
if (life > 1) {
if (_local1.flametimer > 0) {
a.gotoAndPlay(2);
} else if (_local1.weaponset > 1) {
a.gotoAndPlay(66);
} else {
a.gotoAndPlay(2);
}
} else {
if ((random(_local1.itemchance) == 1) or (esel == 10)) {
if (_local1.itemoff == "2") {
_local1.item.gotoAndStop(random(_local1.item._totalframes + 1));
if (random(50) == 1) {
_local1.item.play();
}
_local1.item._y = _y;
_local1.item._x = _x;
if ((_local1.item._currentframe == 3) and (_local1.weaponsetmax > 7)) {
_local1.item._x = -400;
}
if ((_local1.item._currentframe == 2) and (_local1.hpcharge == 4)) {
_local1.item._x = -400;
}
if (((_local1.item._currentframe == 1) and (_local1.pbot1on == "2")) and (_local1.pbot2on == "2")) {
_local1.item._x = -400;
}
}
}
if ((allattacktimer > 0) or (_local1.weaponset == 9)) {
a.gotoAndPlay(30);
} else if (_local1.weaponset == 1) {
a.gotoAndPlay(12);
} else {
a.gotoAndPlay(48);
}
}
}
};
Symbol 159 MovieClip Frame 1
Ename = 0;
Symbol 159 MovieClip Frame 2
if (_root.bosscreate < 3) {
timer = timer - 1;
if (timer < 0) {
timer = _root.Enumber;
Ename = Ename + 1;
e._x = random(700);
e._y = -200 - random(200);
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > _root.emax) {
ename = 0;
}
}
}
Symbol 159 MovieClip Frame 3
gotoAndPlay (2);
Symbol 161 MovieClip Frame 1
stop();
_x = -500;
Symbol 161 MovieClip Frame 2
_x = _root.hitexpx;
_y = _root.hitexpy;
Symbol 170 MovieClip Frame 1
stop();
Symbol 172 Button
on (keyPress "e") {
if (weaponset <= weaponsetmax) {
weaponset = weaponset + 1;
}
}
on (keyPress "q") {
if (weaponset > 1) {
weaponset = weaponset - 1;
}
}
on (keyPress "a") {
if ((powerupsel._currentframe == 2) or (onepress._currentframe == 2)) {
a_active = "2";
}
if (aup._currentframe == "2") {
powerupsel.gotoAndStop(2);
}
}
on (keyPress "s") {
if ((powerupsel._currentframe == 3) or (onepress._currentframe == 2)) {
s_active = "2";
}
if (sup._currentframe == "2") {
powerupsel.gotoAndStop(3);
}
}
on (keyPress "d") {
if ((powerupsel._currentframe == 4) or (onepress._currentframe == 2)) {
d_active = "2";
}
if (dup._currentframe == "2") {
powerupsel.gotoAndStop(4);
}
}
on (keyPress "f") {
if ((powerupsel._currentframe == 5) or (onepress._currentframe == 2)) {
f_active = "2";
}
if (fup._currentframe == "2") {
powerupsel.gotoAndStop(5);
}
}
on (keyPress "w") {
powerupsel.gotoAndStop(1);
}
on (keyPress "z") {
if (weaponset < 5) {
wstyle.gotoAndStop(1);
}
}
on (keyPress "x") {
if (weaponset < 5) {
wstyle.gotoAndStop(2);
}
}
on (keyPress "c") {
if (weaponset < 5) {
wstyle.gotoAndStop(3);
}
}
on (keyPress "g") {
weaponsetmax = 12;
}
on (keyPress "b") {
time = 5;
}
on (keyPress "v") {
power = 6000;
}
on (keyPress "t") {
gold = 100000 /* 0x0186A0 */;
}
on (keyPress "r") {
onepress._alpha = 100;
if (onepress._currentframe == 1) {
onepress.gotoAndStop(2);
} else {
onepress.gotoAndStop(1);
}
}
Symbol 175 MovieClip Frame 1
esize = random(50) + 50;
_width = esize;
_height = esize;
Symbol 175 MovieClip Frame 21
stop();
Symbol 176 MovieClip Frame 1
Ename = 0;
Symbol 176 MovieClip Frame 2
if (_root.smoke == "2") {
Ename = Ename + 1;
e._x = (_root.smokex + random(50)) - random(50);
e._y = (_root.smokey + random(50)) - random(50);
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > 50) {
ename = 0;
}
}
Symbol 176 MovieClip Frame 3
gotoAndPlay (2);
Symbol 183 MovieClip Frame 1
a.gotoAndStop(_root.weaponset - 9);
Symbol 183 MovieClip Frame 22
_x = -400;
stop();
Symbol 185 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.flametimer > 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 195 MovieClip Frame 1
onEnterframe = function () {
_rotation = (-_parent._parent._rotation);
};
Symbol 199 MovieClip Frame 1
timer = 0;
_visible = false;
if (_root.second == "1") {
_visible = true;
}
onEnterFrame = function () {
timer = timer - 1;
if (timer < 0) {
_visible = true;
}
};
Symbol 201 MovieClip Frame 1
timer = 0;
_visible = false;
if (_root.second == "1") {
_visible = true;
}
onEnterFrame = function () {
timer = timer - 1;
if (timer < 0) {
_visible = true;
}
};
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
r.gotoAndPlay(random(74) + 1);
r2.gotoAndPlay(random(74) + 1);
Symbol 206 MovieClip Frame 3
stop();
Symbol 206 MovieClip Frame 4
stop();
Symbol 206 MovieClip Frame 5
stop();
Symbol 206 MovieClip Frame 10
stop();
r.gotoAndPlay(random(74) + 1);
r2.gotoAndPlay(random(74) + 1);
Symbol 206 MovieClip Frame 11
stop();
Symbol 206 MovieClip Frame 12
stop();
Symbol 206 MovieClip Frame 13
stop();
Symbol 206 MovieClip Frame 14
stop();
Symbol 207 MovieClip Frame 1
this.onEnterFrame = function () {
if (_x < -500) {
if (_root.weaponset == 1) {
a.gotoAndStop(1);
} else {
a.gotoAndStop(_root.weaponset + 1);
}
}
};
Symbol 210 MovieClip Frame 1
size = Number((random(20) + 1) / 10) + 1;
_width = (_width * size);
_height = (_height * size);
stop();
Symbol 210 MovieClip Frame 2
_root.smoke = "2";
_root.smokex = _x;
_root.smokey = _y;
if (_root.weaponset == 2) {
gotoAndPlay ("a1");
} else if (_root.weaponset == 3) {
gotoAndPlay ("a2");
} else if (_root.weaponset == 4) {
gotoAndPlay ("a3");
} else if (_root.weaponset == 5) {
gotoAndPlay ("a4");
} else if (_root.weaponset == 6) {
gotoAndPlay ("a5");
} else if (_root.weaponset == 7) {
gotoAndPlay ("a6");
} else if (_root.weaponset == 8) {
gotoAndPlay ("a7");
} else if (_root.weaponset == 9) {
gotoAndPlay ("a8");
} else if (_root.weaponset == 10) {
gotoAndPlay ("a9");
} else if (_root.weaponset == 11) {
gotoAndPlay ("a10");
} else if (_root.weaponset == 12) {
gotoAndPlay ("a11");
} else if (_root.weaponset == 13) {
gotoAndPlay ("a12");
}
Symbol 210 MovieClip Frame 9
_root.smoke = "1";
_width = (_width / size);
_height = (_height / size);
gotoAndPlay (1);
Symbol 210 MovieClip Frame 10
play();
Symbol 210 MovieClip Frame 30
_width = (_width / size);
_height = (_height / size);
gotoAndPlay (1);
Symbol 210 MovieClip Frame 38
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 46
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 54
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 64
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 74
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 84
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 94
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 99
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 107
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 115
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 123
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 210 MovieClip Frame 131
_width = (_width / size);
_height = (_height / size);
_root.smoke = "1";
gotoAndPlay (1);
Symbol 219 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.allattacktimer > 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 223 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.weaponsetmax > 9) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 225 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.weaponsetmax > 10) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 226 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.weaponsetmax > 11) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 228 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.weaponsetmax > 8) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
_x = _root.pshot1._x;
_y = (_root.pshot1._y - random(40));
_root.pshot1._x = -500;
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
_x = _root.pshot2._x;
_y = (_root.pshot2._y - random(40));
_root.pshot2._x = -500;
Symbol 245 MovieClip Frame 1
stop();
_root.acc = 100;
_root.gunacel = _root.gunacel2;
Symbol 245 MovieClip Frame 2
_root.acc = 1;
_root.gunacel = _root.gunacel2;
Symbol 245 MovieClip Frame 3
_root.acc = 15;
_root.gunacel = 0.5;
Symbol 249 MovieClip Frame 1
stop();
_root.ship.disup.gotoAndStop(1);
onEnterFrame = function () {
if (_currentframe == 1) {
timer = 75;
} else {
timer = timer - 1;
if (timer < 0) {
gotoAndStop (1);
}
}
};
Symbol 249 MovieClip Frame 2
stop();
_root.ship.disup.gotoAndStop(2);
timer = 75;
Symbol 249 MovieClip Frame 3
_root.ship.disup.gotoAndStop(3);
timer = 75;
Symbol 249 MovieClip Frame 4
_root.ship.disup.gotoAndStop(4);
timer = 75;
Symbol 249 MovieClip Frame 5
_root.ship.disup.gotoAndStop(5);
timer = 75;
Symbol 253 MovieClip Frame 25
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 25
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 25
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 25
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 88
_width = (_root.slife * 1.26);
Symbol 292 MovieClip Frame 89
stop();
Symbol 299 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.wpower > 99) {
gotoAndStop (1);
} else {
play();
}
};
Symbol 306 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
gotoAndStop(_root.hpcharge + 1);
};
Symbol 314 MovieClip Frame 1
stop();
_x = -400;
_root.follow = "1";
Symbol 314 MovieClip Frame 2
this.onEnterframe = function () {
_x = _root.ship._x;
_y = _root.ship._y;
};
Symbol 314 MovieClip Frame 11
this.onEnterframe = function () {
var _local1 = _root;
_x = (_x - ((_x - _local1.greentarget._x) / 50));
_y = (_y - ((_y - _local1.greentarget._y) / 50));
if (this.hittest(_local1.greentarget)) {
play();
}
};
Symbol 314 MovieClip Frame 21
stop();
Symbol 314 MovieClip Frame 22
_root.powerupsel.gotoAndStop(1);
_root.hpcharge = _root.hpcharge + 1;
Symbol 314 MovieClip Frame 30
this.onEnterframe = function () {
};
Symbol 317 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.shipcolor);
};
Symbol 330 MovieClip Frame 1
stop();
onEnterframe = function () {
if (_root.pbothittimer > 0) {
health._alpha = 100;
}
if (health._alpha > 0) {
health._alpha = health._alpha - 3;
}
};
Symbol 330 MovieClip Frame 20
if (_name == "pbot1") {
_root.pbot1on = "1";
} else {
_root.pbot2on = "1";
}
Symbol 356 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 2
stop();
Symbol 361 MovieClip Frame 3
stop();
Symbol 361 MovieClip Frame 4
stop();
Symbol 361 MovieClip Frame 10
stop();
Symbol 361 MovieClip Frame 11
stop();
Symbol 361 MovieClip Frame 12
stop();
Symbol 361 MovieClip Frame 13
stop();
Symbol 362 MovieClip Frame 1
this.onEnterFrame = function () {
a.gotoAndStop(_root.weaponset);
};
Symbol 365 MovieClip Frame 1
stop();
onEnterFrame = function () {
var _local1 = _root;
if (_local1.inv > _local1.step1) {
gotoAndStop (2);
} else if (_local1.inv > _local1.step2) {
play();
} else if (_local1.inv < 0) {
gotoAndStop (1);
}
};
Symbol 366 MovieClip Frame 10
stop();
Symbol 370 MovieClip Frame 1
stop();
onEnterFrame = function () {
var _local1 = _root;
if (_local1.inv > _local1.step1) {
gotoAndStop (2);
} else if (_local1.inv > _local1.step2) {
play();
} else if (_local1.inv < 0) {
gotoAndStop (1);
}
};
Symbol 371 MovieClip Frame 10
stop();
Symbol 376 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _root;
if (_local1.laser == "2") {
_rotation = (-_local1.ship._rotation);
if (_local1.weaponset == 7) {
a.gotoAndStop(1);
} else {
a.gotoAndStop(2);
}
}
};
Symbol 377 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.inv > _local1.step1) {
gotoAndStop (2);
} else if (_local1.inv > _local1.step2) {
play();
} else if (_local1.inv < 0) {
gotoAndStop (1);
}
};
Symbol 383 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.shipcolor);
};
Symbol 385 MovieClip Frame 1
stop();
onEnterFrame = function () {
var _local1 = _root;
if (_local1.inv > _local1.step1) {
gotoAndStop (2);
} else if (_local1.inv > _local1.step2) {
play();
} else if (_local1.inv < 0) {
gotoAndStop (1);
}
};
Symbol 397 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
_rotation = (-_root.ship._rotation);
};
Symbol 399 MovieClip Frame 51
stop();
Symbol 401 MovieClip Frame 51
stop();
Symbol 404 MovieClip Frame 1
if (_root.weaponsetmax < 8) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
Symbol 405 MovieClip Frame 50
stop();
Symbol 408 MovieClip Frame 1
if (_root.hpcharge == 4) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 409 MovieClip Frame 51
stop();
Symbol 411 MovieClip Frame 1
onEnterFrame = function () {
atext = _root.itemd;
};
Symbol 412 MovieClip Frame 59
_root.itemd = "";
Symbol 412 MovieClip Frame 61
stop();
Symbol 414 MovieClip Frame 1
if (_root.hpcharge == 4) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 415 MovieClip Frame 51
stop();
_parent.gotoAndStop(1);
Symbol 416 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
_rotation = (-_root.ship._rotation);
if ((_root.itemd == "") and (_currentframe == 6)) {
gotoAndStop (1);
}
};
Symbol 417 MovieClip Frame 1
onEnterFrame = function () {
if (_root.laser == "2") {
laser._visible = "1";
} else {
laser._visible = "0";
}
};
Symbol 423 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 429 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 431 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 432 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 434 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 436 MovieClip Frame 6
stop();
removeMovieClip(this);
Symbol 439 MovieClip Frame 1
_rotation = random(360);
Symbol 439 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 441 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 443 MovieClip Frame 13
stop();
removeMovieClip(this);
Symbol 446 MovieClip Frame 10
stop();
removeMovieClip(this);
Symbol 447 MovieClip Frame 1
gotoAndStop(_root.exptype);
Symbol 448 MovieClip Frame 1
Ename = 0;
Symbol 448 MovieClip Frame 2
if (_root.expcall == "2") {
_root.expcall = "1";
ename = ename + 1;
e._x = _root.expx1;
e._y = _root.expy1;
duplicateMovieClip ("e", "e" + enumber, ename);
e._x = -500;
if (ename > 20) {
ename = 0;
}
}
Symbol 448 MovieClip Frame 3
gotoAndPlay (2);
Symbol 452 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
a.gotoAndStop(_root.hpcharge + 1);
};
Symbol 567 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 29
_root.relocate = "2";
Symbol 574 MovieClip Frame 105
_root.moveon = "2";
stop();
Symbol 575 MovieClip Frame 10
stop();
Symbol 589 Button
on (rollOver) {
roll = 1;
}
on (release) {
if ((gold - 1000) >= 0) {
gold = gold - 1000;
flife = 100;
}
}
Symbol 592 Button
on (rollOver) {
roll = 2;
}
on (release) {
if ((gold - 3000) >= 0) {
gold = gold - 3000;
weaponsetmax = weaponsetmax + 1;
wupg.play();
upchange = "2";
}
}
Symbol 594 Button
on (rollOver) {
roll = 3;
}
on (release) {
if ((gold - 10000) >= 0) {
gold = gold - 10000;
powercharge = 0.2;
}
}
Symbol 596 Button
on (rollOver) {
roll = 4;
}
on (release) {
if ((gold - 3000) >= 0) {
gold = gold - 3000;
shieldtime = 200;
}
}
Symbol 597 Button
on (rollOver) {
roll = 5;
}
Symbol 598 Button
on (rollOver) {
roll = 6;
}
on (release) {
gotoAndStop (103);
}
Symbol 628 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.shipcolor);
};
Symbol 630 Button
on (release) {
if ((_root.gold - 1000) >= 0) {
_root.gold = _root.gold - 1000;
_root.shipcolor = 1;
}
}
Symbol 632 Button
on (release) {
if ((_root.gold - 1000) >= 0) {
_root.gold = _root.gold - 1000;
_root.shipcolor = 2;
}
}
Symbol 634 Button
on (release) {
if ((_root.gold - 1000) >= 0) {
_root.gold = _root.gold - 1000;
_root.shipcolor = 3;
}
}
Symbol 636 Button
on (release) {
if ((_root.gold - 1000) >= 0) {
_root.gold = _root.gold - 1000;
_root.shipcolor = 4;
}
}
Symbol 638 Button
on (release) {
if ((_root.gold - 1000) >= 0) {
_root.gold = _root.gold - 1000;
_root.shipcolor = 5;
}
}
Symbol 639 MovieClip Frame 1
if (_root.gold < 20000) {
_visible = false;
} else {
_visible = true;
}
Symbol 661 Button
on (release) {
save._visible = true;
}
Symbol 667 Button
on (release) {
bmarket._visible = true;
}
Symbol 670 Button
on (rollOver) {
_root.roll = 9;
}
on (release) {
if ((_root.gold - 2000) >= 0) {
_root.gold = _root.gold - 2000;
_root.power = 100;
}
}
Symbol 673 MovieClip Frame 1
this.onEnterFrame = function () {
if (math.round(_root.power) == 100) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 674 Button
on (rollOver) {
_root.roll = 10;
}
on (release) {
if ((_root.gold - 5000) >= 0) {
_root.gold = _root.gold - 5000;
_root.speed = _root.speed + 0.5;
_root.decay = _root.decay + 0.03;
}
}
Symbol 677 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.speed > 5) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 678 Button
on (rollOver) {
_root.roll = 8;
}
on (release) {
if ((_root.gold - 2000) >= 0) {
_root.gold = _root.gold - 2000;
_root.wpower = 100;
}
}
Symbol 689 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.wpower == 100) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 695 MovieClip Frame 1
stop();
Symbol 700 Button
on (release) {
_visible = false;
}
Symbol 701 Button
on (release) {
_parent.save1._visible = true;
_parent.save1.gotoAndStop(1);
_parent.slotval = _name;
}
Symbol 702 Button
on (release) {
_parent.save1._visible = "1";
_parent.save1.gotoAndStop(3);
_parent.slotval = _name;
}
Symbol 709 Button
on (release) {
_parent.save1._visible = "1";
_parent.save1.gotoAndStop(1);
_parent.slotval = _name;
_parent.rename = "2";
}
Symbol 710 Button
on (release) {
gotoAndStop (3);
_root.deletex = "2";
}
Symbol 711 Button
on (release) {
gotoAndStop (2);
_root.deletex = "1";
}
Symbol 719 Button
on (release) {
if (_parent.rename == "2") {
if (gamename == "") {
name._visible = true;
} else {
if (_parent.slotval == "slot1") {
_root.FQdata.data.gamename = gamename;
_root.FQdata.flush();
}
if (_parent.slotval == "slot2") {
_root.FQdata2.data.gamename = gamename;
_root.FQdata2.flush();
}
if (_parent.slotval == "slot3") {
_root.FQdata3.data.gamename = gamename;
_root.FQdata3.flush();
}
_visible = false;
_parent.rename = "1";
}
} else if (gamename == "") {
name._visible = true;
} else {
nextFrame();
}
}
Symbol 724 Button
on (release) {
if (_parent.slotval == "slot1") {
_root.FQdata.data.flife = _root.flife;
_root.FQdata.data.gamename = gamename;
_root.FQdata.data.score = _root.score;
_root.FQdata.data.level = _root.level;
_root.FQdata.data.weaponsetmax = _root.weaponsetmax;
_root.FQdata.data.shieldtime = _root.shieldtime;
_root.FQdata.data.powercharge = _root.powercharge;
_root.FQdata.data.gold = _root.gold;
_root.FQdata.data.shipcolor = _root.shipcolor;
_root.FQdata.data.power = _root.power;
_root.FQdata.data.wpower = _root.wpower;
_root.FQdata.data.gameon = "2";
_root.FQdata.flush();
}
if (_parent.slotval == "slot2") {
_root.FQdata2.data.flife = _root.flife;
_root.FQdata2.data.gamename = gamename;
_root.FQdata2.data.score = _root.score;
_root.FQdata2.data.level = _root.level;
_root.FQdata2.data.weaponsetmax = _root.weaponsetmax;
_root.FQdata2.data.shieldtime = _root.shieldtime;
_root.FQdata2.data.powercharge = _root.powercharge;
_root.FQdata2.data.gold = _root.gold;
_root.FQdata2.data.shipcolor = _root.shipcolor;
_root.FQdata2.data.power = _root.power;
_root.FQdata2.data.wpower = _root.wpower;
_root.FQdata2.data.gameon = "2";
_root.FQdata2.flush();
}
if (_parent.slotval == "slot3") {
_root.FQdata3.data.flife = _root.flife;
_root.FQdata3.data.gamename = gamename;
_root.FQdata3.data.score = _root.score;
_root.FQdata3.data.level = _root.level;
_root.FQdata3.data.weaponsetmax = _root.weaponsetmax;
_root.FQdata3.data.shieldtime = _root.shieldtime;
_root.FQdata3.data.powercharge = _root.powercharge;
_root.FQdata3.data.gold = _root.gold;
_root.FQdata3.data.shipcolor = _root.shipcolor;
_root.FQdata3.data.power = _root.power;
_root.FQdata3.data.wpower = _root.wpower;
_root.FQdata3.data.gameon = "2";
_root.FQdata3.flush();
}
_visible = false;
}
Symbol 731 Button
on (release) {
gotoAndStop (2);
if (_parent.slotval == "slot1") {
gamename = _root.FQdata.data.gamename;
} else if (_parent.slotval == "slot2") {
gamename = _root.FQdata2.data.gamename;
} else if (_parent.slotval == "slot3") {
gamename = _root.FQdata3.data.gamename;
}
}
Symbol 734 Button
on (release) {
_visible = false;
}
Symbol 735 MovieClip Frame 1
name._visible = "0";
if (_parent.rename == "2") {
if (_parent.slotval == "slot1") {
gamename = _root.FQdata.data.gamename;
}
if (_parent.slotval == "slot2") {
gamename = _root.FQdata2.data.gamename;
}
if (_parent.slotval == "slot3") {
gamename = _root.FQdata3.data.gamename;
}
}
Symbol 736 MovieClip Frame 1
save1._visible = "0";
onEnterFrame = function () {
var _local1 = _root;
if (_local1.deletex != "2") {
asd = _local1.FQdata.data.gameon;
if (_local1.FQdata.data.gameon == "2") {
slot1.gotoAndStop(2);
slot1.gamename = _local1.FQdata.data.gamename;
slot1.level = "Level: " + _local1.FQdata.data.level;
slot1.score = "Score: " + _local1.FQdata.data.score;
slot1.gold = ("Health: " + _local1.FQdata.data.flife) + "%";
slot1.health = "Gold: " + _local1.FQdata.data.gold;
} else {
slot1.gotoAndStop(1);
}
if (_local1.FQdata2.data.gameon == "2") {
slot2.gotoAndStop(2);
slot2.gamename = _local1.FQdata2.data.gamename;
slot2.level = "Level: " + _local1.FQdata2.data.level;
slot2.score = "Score: " + _local1.FQdata2.data.score;
slot2.gold = ("Health: " + _local1.FQdata2.data.flife) + "%";
slot2.health = "Gold: " + _local1.FQdata2.data.gold;
} else {
slot2.gotoAndStop(1);
}
if (_local1.FQdata3.data.gameon == "2") {
slot3.gotoAndStop(2);
slot3.gamename = _local1.FQdata3.data.gamename;
slot3.level = "Level: " + _local1.FQdata3.data.level;
slot3.score = "Score: " + _local1.FQdata3.data.score;
slot3.gold = ("Health: " + _local1.FQdata3.data.flife) + "%";
slot3.health = "Gold: " + _local1.FQdata3.data.gold;
} else {
slot3.gotoAndStop(1);
}
}
};
Symbol 747 Button
on (release) {
if ((_root.gold - 20000) >= 0) {
_root.gold = _root.gold - 20000;
_root.weaponsetmax = 9;
_root.upchange = "2";
_root.blackval = 2;
}
}
Symbol 748 Button
on (release) {
if ((_root.gold - 40000) >= 0) {
_root.gold = _root.gold - 40000;
_root.weaponsetmax = 10;
_root.upchange = "2";
_root.blackval = 3;
}
}
Symbol 749 Button
on (release) {
if ((_root.gold - 60000) >= 0) {
_root.gold = _root.gold - 60000;
_root.weaponsetmax = 11;
_root.upchange = "2";
_root.blackval = 4;
}
}
Symbol 750 Button
on (release) {
if ((_root.gold - 100000) >= 0) {
_root.gold = _root.gold - 100000;
_root.weaponsetmax = 12;
_root.upchange = "2";
_root.blackval = 5;
}
}
Symbol 754 Button
on (release) {
_visible = false;
}
Symbol 766 Button
on (release) {
if ((_root.gold - 20000) >= 0) {
_root.gold = _root.gold - 20000;
_root.weaponsetmax = 10;
_root.upchange = "2";
_root.blackval = 3;
}
}
Symbol 767 Button
on (release) {
if ((_root.gold - 40000) >= 0) {
_root.gold = _root.gold - 40000;
_root.weaponsetmax = 11;
_root.upchange = "2";
_root.blackval = 4;
}
}
Symbol 768 Button
on (release) {
if ((_root.gold - 80000) >= 0) {
_root.gold = _root.gold - 80000;
_root.weaponsetmax = 12;
_root.upchange = "2";
_root.blackval = 5;
}
}
Symbol 772 Button
on (release) {
if ((_root.gold - 20000) >= 0) {
_root.gold = _root.gold - 20000;
_root.weaponsetmax = 11;
_root.upchange = "2";
_root.blackval = 4;
}
}
Symbol 773 Button
on (release) {
if ((_root.gold - 60000) >= 0) {
_root.gold = _root.gold - 60000;
_root.weaponsetmax = 12;
_root.upchange = "2";
_root.blackval = 5;
}
}
Symbol 774 Button
on (release) {
if ((_root.gold - 40000) >= 0) {
_root.gold = _root.gold - 40000;
_root.weaponsetmax = 12;
_root.upchange = "2";
_root.blackval = 5;
}
}
Symbol 775 Button
on (release) {
_visible = false;
}
Symbol 777 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
gotoAndStop(_root.blackval);
};
Symbol 785 MovieClip Frame 1
score = _root.score;
Symbol 790 Button
on (release) {
_parent.restartGame();
}
Symbol 794 Button
on (release) {
getURL ("http://itch.com/");
}
Symbol 795 MovieClip Frame 50
stop();