Frame 1
function killAd() {
removeMovieClip(adBox);
}
stop();
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 5;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
Instance of Symbol 64 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
_root.statusThing.text = framesLoaded + " % completed";
if (framesLoaded >= 100) {
}
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
_quality = "MEDIUM";
Frame 8
function transitions() {
if (transitioning) {
elasticScale(prevLevel, 500, lastLevelEase, 0.6);
elasticX(prevLevel, -275, lastLevelEase, 0.6);
elasticY(prevLevel, -200, lastLevelEase, 0.6);
elasticScale(curLevel, 100, curLevelEase, 0.4);
elasticX(curLevel, 0, curLevelEase, 0.4);
elasticY(curLevel, 0, curLevelEase, 0.4);
stageCounter++;
if (stageCounter == 10) {
}
if (prevLevel._alpha > 30) {
prevLevel._alpha = prevLevel._alpha - 5;
}
if (curLevel._xscale >= 98) {
curLevel._x = 0;
curLevel._y = 0;
curLevel._xscale = (curLevel._yscale = 100);
transitioning = false;
stageCounter = 0;
curBmp.fillRect(new flash.geom.Rectangle(0, 0, 550, 400), 0);
}
} else {
prevLevel._x = (curLevel.ship._x * (prevLevel._xscale / 100)) / 3;
prevLevel._y = (curLevel.ship._y * (prevLevel._xscale / 100)) / 3;
}
}
function clearShit() {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
clearInterval(intervalID);
killSwitch();
}
function depths() {
powerUpArea.swapDepths(k++);
ship.swapDepths(k++);
fadeWhite.swapDepths(k++);
bar.swapDepths(k++);
fadeWhite2.swapDepths(k++);
}
function myTimer() {
if (fps != 0) {
frameRate = makiMaki;
}
if ((miliSeconds - (100 / frameRate)) < 0) {
seconds--;
if (seconds == 5) {
attachMovie("fadeWhite", "fadeWhite", k++);
}
if (seconds < 0) {
timeDisp = "0.00";
onEnterFrame = function () {
waitCounter++;
if (waitCounter == 90) {
clearShit();
gotoAndStop (9);
}
};
}
miliSeconds = miliSeconds + 100;
}
miliSeconds = miliSeconds - (100 / frameRate);
if (miliSeconds < 10) {
miliSecondsDisp = "0" + Math.floor(miliSeconds);
} else {
miliSecondsDisp = String(Math.floor(miliSeconds));
}
secondsDisp = seconds;
if (seconds < 7) {
bar.fadeScore.play();
}
if (seconds < 0) {
timeDisp = "0.00";
} else {
timeDisp = (secondsDisp + ".") + miliSecondsDisp;
}
}
function killSwitch() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
_root[_local2].removeMovieClip();
}
}
}
function bars() {
i = 0;
while (i < 3) {
_root[("bar" + i) + "Disp"] = _root[("bar" + i) + "Disp"] - (0.3 * ((_root[("bar" + i) + "Disp"] - _root[("bar" + i) + "Current"]) / 2));
bar["bar" + i]._width = (_root[("bar" + i) + "Disp"] / _root[("bar" + i) + "Goal"]) * barWidth;
bar[("bar" + i) + "LevelDisp"] = "Intensity Level " + _root[("bar" + i) + "Level"];
if ((_root[("bar" + i) + "Disp"] / _root[("bar" + i) + "Goal"]) > 0.98) {
_root[("bar" + i) + "Level"]++;
_root[("bar" + i) + "Goal"] = getLevel(_root[("bar" + i) + "Level"]);
_root[("bar" + i) + "Current"] = 0;
yell.start(0, 1);
l = 0;
while (l < 30) {
particleCounter++;
particles.push(particleCounter);
shel = curLevel.particleArea.attachMovie("explosion", "particle" + particleCounter, k++);
shel._x = ship._x;
shel._y = ship._y;
shel.type = "special";
if (i == 0) {
shel.colour = 4278216447 / (random(5) + 1);
} else if (i == 1) {
shel.colour = 4290874430 / (random(5) + 1);
} else if (i == 2) {
shel.colour = 4278255360 / (random(5) + 1);
}
shel.drawOldX = shel._x;
shel.drawOldY = shel._y;
shel._xscale = (shel._yscale = random(200) + 100);
shel.life = 100;
shel._rotation = random(360);
tempNumber = random(50) + 5;
shel.xVel = tempNumber * Math.cos(shel._rotation * (Math.PI/180));
shel.yVel = tempNumber * Math.sin(shel._rotation * (Math.PI/180));
l++;
}
shel = bar.attachMovie("addOne", "ad" + k, k++);
altColor = new Color(shel);
if (i == 0) {
altColor.setRGB(26367);
} else if (i == 1) {
altColor.setRGB(12684350);
} else if (i == 2) {
altColor.setRGB(6684876);
}
}
i++;
}
}
function getLevel(num) {
switch (num) {
case 2 :
return(6);
case 3 :
return(8);
case 4 :
return(12);
case 5 :
return(12);
case 6 :
return(16);
case 7 :
return(16);
case 8 :
return(20);
}
return(8);
}
function movePowerUps() {
i = 0;
while (i < powerUps.length) {
curPowerUp = powerUpArea["pUp" + powerUps[i]];
curPowerUp.life--;
curPowerUp.lifeM--;
if (curPowerUp.life <= 0) {
powerUps.splice(i, 1);
curPowerUp.removeMovieClip();
}
curDist = dist(curPowerUp._x, curPowerUp._y, ship._x, ship._y);
curRot = rot(curPowerUp._x, curPowerUp._y, ship._x, ship._y) - 90;
speed = 4;
curPowerUp.xVel = speed * Math.cos(curRot * (Math.PI/180));
curPowerUp.yVel = speed * Math.sin(curRot * (Math.PI/180));
curPowerUp._x = curPowerUp._x + curPowerUp.xVel;
curPowerUp._y = curPowerUp._y + curPowerUp.yVel;
if (curPowerUp._currentframe == 1) {
curPowerUp.colour = 4278216447;
} else if (curPowerUp._currentframe == 2) {
curPowerUp.colour = 4290874430;
} else if (curPowerUp._currentframe == 3) {
curPowerUp.colour = 4284874956;
}
if (ship.hitTest(curPowerUp._x, curPowerUp._y)) {
if (curPowerUp._currentframe == 1) {
cp = 0;
} else if (curPowerUp._currentframe == 2) {
cp = 1;
} else if (curPowerUp._currentframe == 3) {
cp = 2;
}
coin.start(0, 1);
_root[("bar" + cp) + "Current"]++;
curPowerUp.removeMovieClip();
powerUps.splice(i, 1);
}
constrain(curPowerUp);
bitmapLine5(curPowerUp._x, curPowerUp._y, curPowerUp.oldX, curPowerUp.oldY, curPowerUp.colour, 10);
curPowerUp.oldX = curPowerUp._x;
curPowerUp.oldY = curPowerUp._y;
i++;
}
}
function loadPowerUp(xPos, yPos) {
powerUpCounter++;
powerUps.push(powerUpCounter);
shel = powerUpArea.attachMovie("pUp", "pUp" + powerUpCounter, k++);
shel._x = xPos;
shel._y = yPos;
shel.oldX = xPos;
shel.oldY = yPos;
shel.life = 400;
shel.speed = random(15) + 5;
shel.lifeM = pUpSwitchRate;
shel.gotoAndStop(1);
}
function loadLevel() {
particles.splice(0, particles.length);
bullets.splice(0, bullets.length);
enemies.splice(0, enemies.length);
curLevelName = "level" + level;
_root.createEmptyMovieClip(curLevelName, k++);
nextLevel = _root[curLevelName];
nextLevel.createEmptyMovieClip("drawArea", k++);
nextLevel.drawArea.attachBitmap(bmp1, k++);
nextLevel.createEmptyMovieClip("bulletArea", k++);
nextLevel.createEmptyMovieClip("particleArea", k++);
nextLevel.createEmptyMovieClip("enemyArea", k++);
nextLevel.lineStyle(1, 3355443, 100);
nextLevel.moveTo(0, 0);
nextLevel.lineTo(550, 0);
nextLevel.lineTo(550, 400);
nextLevel.lineTo(0, 400);
nextLevel.lineTo(0, 0);
if (level == 1) {
curLevel = nextLevel;
}
ship.xVel = 0;
ship.yVel = 0;
if (level > 1) {
nextLevel._xscale = (nextLevel._yscale = 1);
}
levelColour = Math.round(Math.random() * 4294967295);
g = 0;
while (g < 20) {
loadEnemy(levelColour);
g++;
}
}
function loadEnemy(pushColour) {
enemyCounter++;
enemies.push(enemyCounter);
shel = nextLevel.enemyArea.attachMovie("enemy1", "enemy" + enemyCounter, k++);
shel._x = random(550);
shel._y = random(400);
shel.colour = pushColour;
altColor = new Color(shel.inside);
altColor.setRGB(shel.colour);
shel.drawOldX = shel._x;
shel.drawOldY = shel._y;
shel.curStage = 0;
shel._rotation = random(360);
shel.xVel = 10 * Math.cos(shel._rotation * (Math.PI/180));
shel.yVel = 10 * Math.sin(shel._rotation * (Math.PI/180));
shel.speed = random(25) + 5;
}
function cameraControl() {
_root._x = Math.floor((275 - ship._x) / 3);
_root._y = Math.floor((200 - ship._y) / 3);
}
function detectHitting() {
i = 0;
while (i < enemies.length) {
j = 0;
while (j < bullets.length) {
curEnemy = curLevel.enemyArea["enemy" + enemies[i]];
curBullet = curLevel.bulletArea["bullet" + bullets[j]];
if (curEnemy.hitTest(curBullet._x, curBullet._y)) {
popSound.start(0, 1);
kills++;
l = 0;
while (l < particleLoad) {
particleCounter++;
particles.push(particleCounter);
shel = curLevel.particleArea.attachMovie("explosion", "particle" + particleCounter, k++);
shel._x = curEnemy._x;
shel._y = curEnemy._y;
shel.type = "notSpecial";
shel.colour = curEnemy.colour / (random(5) + 1);
shel.drawOldX = shel._x;
shel.drawOldY = shel._y;
shel._xscale = (shel._yscale = random(200) + 100);
shel.life = 20 * (bar0Level - 1);
shel._rotation = random(360);
tempNumber = random(20) + 5;
shel.xVel = tempNumber * Math.cos(shel._rotation * (Math.PI/180));
shel.yVel = tempNumber * Math.sin(shel._rotation * (Math.PI/180));
l++;
}
enemies.splice(i, 1);
bullets.splice(j, 1);
powerUpFreqCounter++;
if (powerUpFreq == powerUpFreqCounter) {
loadPowerUp(curEnemy._x, curEnemy._y);
powerUpFreqCounter = 0;
}
curEnemy.removeMovieClip();
curBullet.removeMovieClip();
}
j++;
}
i++;
}
if (enemies.length < 1) {
newLevel();
}
}
function newLevel() {
transitioning = true;
rotGoal = random(360);
level++;
loadLevel();
prevLevel.removeMovieClip();
prevLevel = curLevel;
curLevel = nextLevel;
}
function moveParticles() {
i = 0;
while (i < particles.length) {
curParticle = curLevel.particleArea["particle" + particles[i]];
curParticle._x = curParticle._x + curParticle.xVel;
curParticle._y = curParticle._y + curParticle.yVel;
curParticle.xVel = curParticle.xVel * 0.9;
curParticle.yVel = curParticle.yVel * 0.9;
curParticle.life--;
constrain(curParticle);
tempColour = curParticle.colour;
if (curParticle.type == "special") {
bitmapLine6(curParticle.life, curParticle._x, curParticle._y, curParticle.drawOldX, curParticle.drawOldY, tempColour, 10);
} else {
bitmapLine4(curParticle.life, curParticle._x, curParticle._y, curParticle.drawOldX, curParticle.drawOldY, tempColour, 10);
}
if (curParticle.life <= 0) {
particles.splice(i, 1);
curParticle.removeMovieClip();
}
i++;
}
}
function moveBar() {
bar._x = -_root._x;
bar._y = -_root._y;
}
function getBackCoord() {
var _local1 = {};
_local1.x = ship.back._x;
_local1.y = ship.back._y;
ship.localToGlobal(_local1);
ship.X2 = _local1.x;
ship.Y2 = _local1.y;
}
function shipLine() {
bitmapLine2(ship._x, ship._y, ship.oldX, ship.oldY, 4294967295, 20);
ship.oldX = ship._x;
ship.oldY = ship._y;
getBackCoord();
}
function loadBullet() {
bulletSuppress--;
if (bulletSuppress <= 0) {
bulletSound.start(0, 1);
bulletSuppress = fireRate;
loadNormalBullet(bar0Level);
}
}
function moveEnemies() {
i = 0;
while (i < enemies.length) {
curEnemy = curLevel.enemyArea["enemy" + enemies[i]];
curEnemy._x = curEnemy._x + ((curEnemy.xVel * bar0Level) / 3);
curEnemy._y = curEnemy._y + ((curEnemy.yVel * bar0Level) / 3);
constrain(curEnemy);
bitmapLine(curEnemy._x, curEnemy._y, curEnemy.drawOldX, curEnemy.drawOldY, curEnemy.colour, 20);
curEnemy.drawOldX = curEnemy._x;
curEnemy.drawOldY = curEnemy._y;
i++;
}
}
function loadNormalBullet(lev) {
if (lev < 20) {
i = 0;
while (i < lev) {
bulletCounter++;
bullets.push(bulletCounter);
shel = curLevel.bulletArea.attachMovie("bullet", "bullet" + bulletCounter, k++);
shel._x = ship._x;
shel._y = ship._y;
shel.life = 50 - (4 * i);
shel.colour = 4294967295;
shel.drawOldX = shel._x;
shel.drawOldY = shel._y;
shel.curStage = 0;
tempRot = ((ship._rotation - ((lev * spreadWidth) / 2)) + (spreadWidth * i)) + (spreadWidth / 2);
shel.xVel = 10 * Math.cos(tempRot * (Math.PI/180));
shel.yVel = 10 * Math.sin(tempRot * (Math.PI/180));
i++;
}
}
}
function moveBullets() {
if (holdMouse) {
loadBullet();
}
i = 0;
while (i < bullets.length) {
curBullet = curLevel.bulletArea["bullet" + bullets[i]];
if (curBullet.curStage == 0) {
curBullet._x = curBullet._x + curBullet.xVel;
curBullet._y = curBullet._y + curBullet.yVel;
constrain(curBullet);
bitmapLine3(curBullet._x, curBullet._y, curBullet.drawOldX, curBullet.drawOldY, curBullet.colour, 8);
curBullet.drawOldX = curBullet._x;
curBullet.drawOldY = curBullet._y;
curBullet.life--;
if (curBullet.life < 10) {
curBullet._alpha = curBullet.life * 10;
if (curBullet.life == 0) {
bullets.splice(i, 1);
curBullet.removeMovieClip();
i = 0;
}
}
}
i++;
}
}
function inc() {
fps = "Frames per Second: " + aad;
makiMaki = aad;
nmbr = aad;
aad = 0;
}
function bitmapLine(startx, starty, endx, endy, colour, resolution) {
if (bar0Level >= levelThresh) {
x3 = (endx - startx) / resolution;
y3 = (endy - starty) / resolution;
a = 1;
while (a < resolution) {
startx = startx + x3;
starty = starty + y3;
bmp1.setPixel32(startx, starty, colour);
bmp1.setPixel32(startx + 2, starty, colour / 2);
bmp1.setPixel32(startx - 2, starty, colour / 2);
bmp1.setPixel32(startx, starty + 2, colour / 2);
bmp1.setPixel32(startx, starty - 2, colour / 2);
a++;
}
}
}
function bitmapLine2(startx, starty, endx, endy, colour, resolution) {
if (bar0Level >= levelThresh) {
x3 = (endx - startx) / resolution;
y3 = (endy - starty) / resolution;
a = 1;
while (a < resolution) {
startx = startx + x3;
starty = starty + y3;
bmp1.setPixel32(startx, starty, colour);
bmp1.setPixel32(startx + 5, starty, colour / 2);
bmp1.setPixel32(startx - 5, starty, colour / 2);
bmp1.setPixel32(startx, starty + 5, colour / 2);
bmp1.setPixel32(startx, starty - 5, colour / 2);
a++;
}
}
}
function bitmapLine3(startx, starty, endx, endy, colour, resolution) {
if (bar0Level > (1 + levelThresh)) {
x3 = (endx - startx) / resolution;
y3 = (endy - starty) / resolution;
a = 1;
while (a < resolution) {
startx = startx + x3;
starty = starty + y3;
bmp1.setPixel32(startx, starty, 4294967295);
a++;
}
}
}
function bitmapLine4(lif, startx, starty, endx, endy, colour, resolution) {
if (bar0Level > levelThresh) {
bmp1.fillRect(new flash.geom.Rectangle(startx, starty, lif, lif), colour);
}
}
function bitmapLine5(startx, starty, endx, endy, colour, resolution) {
if (bar0Level > levelThresh) {
x3 = (endx - startx) / resolution;
y3 = (endy - starty) / resolution;
a = 1;
while (a < resolution) {
startx = startx + x3;
starty = starty + y3;
bmp1.setPixel32(startx, starty, colour);
a++;
}
}
}
function bitmapLine6(lif, startx, starty, endx, endy, colour, resolution) {
if (bar0Level > levelThresh) {
bmp1.fillRect(new flash.geom.Rectangle(startx, starty, lif, lif), colour);
}
}
function clearLine() {
clearPos = clearPos + clearInc;
if (clearPos > rLimit) {
clearPos = lLimit;
}
wipe._x = clearPos;
wipe._y = 0;
bmp1.fillRect(new flash.geom.Rectangle(clearPos, tLimit, clearInc, bLimit - tLimit), 0);
}
function moveShip() {
if (Key.isDown(37) || (Key.isDown(65))) {
ship.xVel = ship.xVel - thrust;
}
if (Key.isDown(39) || (Key.isDown(68))) {
ship.xVel = ship.xVel + thrust;
}
if (Key.isDown(38) || (Key.isDown(87))) {
ship.yVel = ship.yVel - thrust;
}
if (Key.isDown(40) || (Key.isDown(83))) {
ship.yVel = ship.yVel + thrust;
}
ship._x = ship._x + ship.xVel;
ship._y = ship._y + ship.yVel;
if (ship.xVel > xMax) {
ship.xVel = xMax;
}
if (ship.xVel < (-xMax)) {
ship.xVel = -xMax;
}
if (ship.yVel > yMax) {
ship.yVel = yMax;
}
if (ship.yVel < (-yMax)) {
ship.yVel = -yMax;
}
constrain(ship);
ship.xVel = ship.xVel * friction;
ship.yVel = ship.yVel * friction;
pos._x = ship._x;
pos._y = ship._y;
pos._rotation = ship._rotation;
}
function constrain(mov) {
if (mov._x > rLimit) {
mov._x = rLimit;
mov.xVel = mov.xVel * -1;
}
if (mov._x < lLimit) {
mov._x = lLimit;
mov.xVel = mov.xVel * -1;
}
if (mov._y < tLimit) {
mov._y = tLimit;
mov.yVel = mov.yVel * -1;
}
if (mov._y > bLimit) {
mov._y = bLimit;
mov.yVel = mov.yVel * -1;
}
}
function rotateShip() {
ship._rotation = -90 + rot(ship._x, ship._y, _xmouse, _ymouse);
}
function rot(circx, circy, prevx, prevy) {
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(degrees + 90);
}
if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(90 - degrees);
}
if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
return(-(180 - degrees));
}
if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(-(90 - degrees));
}
}
function easing(pro, mov1, mov2, drift) {
switch (pro) {
case "x" :
mov1._x = mov1._x - (drift * ((mov1._x - mov2) / 2));
break;
case "y" :
mov1._y = mov1._y - (drift * ((mov1._y - mov2) / 2));
break;
case "xscale" :
mov1._xscale = mov1._xscale - (drift * ((mov1._xscale - mov2) / 2));
break;
case "yscale" :
mov1._yscale = mov1._yscale - (drift * ((mov1._yscale - mov2) / 2));
break;
case "width" :
mov1._width = mov1._width - (drift * ((mov1._width - mov2) / 2));
break;
case "height" :
mov1._height = mov1._height - (drift * ((mov1._height - mov2) / 2));
break;
case "alpha" :
mov1._alpha = mov1._alpha - (drift * ((mov1._alpha - mov2) / 2));
break;
case "rotation" :
mov1._rotation = mov1._rotation - (drift * ((mov1._rotation - mov2) / 2));
}
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function elasticRotation(mc, targt, accel, friction) {
if (mc.qrScale == undefined) {
mc.qrScale = 0;
}
mc.qrScale = mc.qrScale + ((targt - mc._rotation) * accel);
mc.qrScale = mc.qrScale * friction;
mc._rotation = mc._rotation + mc.qrScale;
}
function elasticScale(mc, targt, accel, friction) {
if (mc.qxScale == undefined) {
mc.qxScale = 0;
}
mc.qxScale = mc.qxScale + ((targt - mc._xscale) * accel);
mc.qxScale = mc.qxScale * friction;
mc._xscale = (mc._yscale = mc._yscale + mc.qxScale);
}
function elasticX(mc, targt, accel, friction) {
if (mc.qxSpeed == undefined) {
mc.qxSpeed = 0;
}
mc.qxSpeed = mc.qxSpeed + ((targt - mc._x) * accel);
mc.qxSpeed = mc.qxSpeed * friction;
mc._x = mc._x + mc.qxSpeed;
}
function elasticY(mc, targt, accel, friction) {
if (mc.qySpeed == undefined) {
mc.qySpeed = 0;
}
mc.qySpeed = mc.qySpeed + ((targt - mc._y) * accel);
mc.qySpeed = mc.qySpeed * friction;
mc._y = mc._y + mc.qySpeed;
}
function elasticH(mc, targt, accel, friction) {
if (mc.qhSpeed == undefined) {
mc.qhSpeed = 0;
}
mc.qhSpeed = mc.qhSpeed + ((targt - mc._height) * accel);
mc.qhSpeed = mc.qhSpeed * friction;
mc._height = mc._height + mc.qhSpeed;
}
function elasticW(mc, targt, accel, friction) {
if (mc.qwSpeed == undefined) {
mc.qwSpeed = 0;
}
mc.qwSpeed = mc.qwSpeed + ((targt - mc._width) * accel);
mc.qwSpeed = mc.qwSpeed * friction;
mc._width = mc._width + mc.qwSpeed;
}
stop();
var popSound = new Sound(this);
popSound.attachSound("pop2");
onEnterFrame = function () {
if (cStatus == 1) {
moveShip();
rotateShip();
shipLine();
moveBullets();
moveEnemies();
moveParticles();
movePowerUps();
myTimer();
bars();
transitions();
detectHitting();
cameraControl();
moveBar();
depths();
}
if (Key.isDown(82)) {
clearShit();
stopAllSounds();
gotoAndPlay (6);
}
aad++;
};
var frameRate = 30;
var miliSeconds = 0;
var seconds = 60;
secondsDisp = "60";
miliSecondsDisp = "00";
timeDisp = "60:00";
var waitCounter = 0;
_root.createEmptyMovieClip("powerUpArea", k++);
curBmp = bmp1;
lastLevelEase = 0.1;
curLevelEase = 0.1;
pUpSwitchRate = 50;
powerUpFreq = 8;
powerUpFreqCounter = 0;
bar0Goal = 2;
bar1Goal = 2;
bar2Goal = 2;
bar0Current = 0;
bar1Current = 0;
bar2Current = 0;
bar0Disp = 0;
bar1Disp = 0;
bar2Disp = 0;
bar0Level = 1;
bar1Level = 1;
bar2Level = 1;
barWidth = 528;
var yell = new Sound(this);
yell.attachSound("tablakick");
var coin = new Sound(this);
coin.attachSound("coin");
var stageCounter = 0;
var k = 1;
saveX = random(550);
saveY = random(400);
var transitioning = false;
var yMax = 10;
var xMax = 10;
var thrust = 1;
var friction = 0.95;
var lLimit = 0;
var tLimit = 0;
var rLimit = 550;
var bLimit = 400;
var bullets = new Array();
var bulletCounter = 0;
var particles = new Array();
var particleCounter = 0;
var powerUps = new Array();
var powerUpCounter = 0;
var enemyCounter = 0;
var enemies = new Array();
var level = 1;
var bmp1 = (new flash.display.BitmapData(550, 400, true, 0));
var bmp2 = (new flash.display.BitmapData(550, 400, true, 0));
cStatus = 1;
shel = attachMovie("backDrop", "backDrop", k++);
shel._x = 675.5;
shel._y = 478.7;
shel._rotation = 180;
shel._xscale = (shel._yscale = 141.8);
shel._alpha = 10;
attachMovie("bar", "bar", k++);
shel = attachMovie("pos", "ship", k++);
shel._x = 275;
shel._y = 200;
loadLevel();
var particleLoad = 10;
getBackCoord();
ship.oldX2 = 275;
ship.oldY2 = 200;
var kills = 0;
var spreadWidth = 8;
bulletType = "spread";
bulletLevel = 5;
var fireRate = 3;
var bulletSound = new Sound(this);
bulletSound.attachSound("shoot");
onMouseDown = function () {
holdMouse = true;
};
onMouseUp = function () {
holdMouse = false;
bulletSuppress = 0;
};
nmbr = 0;
fps = 0;
aad = 0;
var makiMaki = 0;
var intervalID = setInterval(inc, 1000);
levelThresh = 2;
var clearPos = lLimit;
var clearInc = 5;
onMouseDown = function () {
holdMouse = true;
};
onMouseUp = function () {
holdMouse = false;
bulletSuppress = 0;
};
backDrop.attachBitmap(bmp1, k++);
fadeWhite2.swapDepths(k++);
Frame 9
function forceRank(num) {
switch (num) {
case 0 :
return("Not Scorable");
case 50 :
return("Barely Scorable");
case 100 :
return("Very Pathetic");
case 150 :
return("Amusingly Awful");
case 160 :
return("In Need of Help");
case 170 :
return("Not Very Good");
case 180 :
return("Needs Some Work");
case 190 :
return("Out of Shape");
case 200 :
return("Decently Decent");
case 210 :
return("Passable");
case 220 :
return("Could Be Worse");
case 230 :
return("Getting Better");
case 240 :
return("Fairly Decent");
case 250 :
return("Better Than Peanuts");
case 260 :
return("Mildly Acceptable");
case 270 :
return("Pretty Good");
case 280 :
return("Tasteful");
case 290 :
return("Beautiful Performance");
case 300 :
return("Outstanding Job");
case 310 :
return("Fantastic Progress");
case 320 :
return("Incredibly Good");
case 330 :
return("Stunning Performance");
case 340 :
return("One Less Than Perfect");
case 350 :
return("Exceeds Programmer");
case 360 :
return("Impossibly Awesome");
case 370 :
return("Among the Greater");
case 380 :
return("A Top Player");
case 390 :
return("The Bee's Knees");
case 400 :
return("Epic Level");
case 420 :
return("You Probably Cheated.");
}
return("taffy");
}
stop();
var myRank = "Not Scorable";
var tempRank = "blah";
var meterKills = 0;
onEnterFrame = function () {
if (meterKills < kills) {
meterKills = meterKills + 1;
meter._y = meter._y - 0.6;
tempRank = forceRank(meterKills);
if (tempRank != "taffy") {
myRank = tempRank;
}
}
if (meterKills >= kills) {
trace(meterKills);
onEnterFrame = null;
}
};
Symbol 8 MovieClip [explosion] Frame 1
Symbol 30 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 15
stop();
Symbol 44 MovieClip [addOne] Frame 35
this.removeMovieClip();
Symbol 46 MovieClip [fadeWhite] Frame 150
stop();
Symbol 54 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 63 Button
on (release) {
_root.killAd();
_root.play();
}
Symbol 64 MovieClip Frame 100
stop();
Symbol 89 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 94 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 94 MovieClip Frame 161
_root.nextFrame();
Symbol 101 MovieClip Frame 76
_root.play();
Symbol 117 MovieClip Frame 175
_root.play();
Symbol 120 MovieClip Frame 20
stop();
Symbol 142 Button
on (release) {
gotoAndStop (8);
}
Symbol 147 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/listen/157380", "_blank");
}