Frame 1
function toggleSound(vvvv) {
buttonSound.setVolume(vvvv);
}
function saveGame() {
myLSO = SharedObject.getLocal("Bullets");
if (myLSO.data.myObj == undefined) {
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = optionsQuality;
myObj.objArray[1] = optionsBG;
myObj.objArray[2] = optionsSound;
myObj.objArray[3] = playerName;
myObj.objArray[4] = optionsBrightness;
myObj.objArray[5] = optionsAccel;
myObj.objArray[6] = optionsTurningAccel;
myLSO.data.myObj = myObj;
myLSO.data.flush();
}
function loadGame() {
myLSO = SharedObject.getLocal("Bullets");
if (myLSO.data.myObj == undefined) {
return(false);
}
optionsQuality = myLSO.data.myObj.objArray[0];
optionsBG = myLSO.data.myObj.objArray[1];
optionsSound = myLSO.data.myObj.objArray[2];
if (myLSO.data.myObj.objArray[3] != undefined) {
playerName = myLSO.data.myObj.objArray[3];
}
if (myLSO.data.myObj.objArray[4] != undefined) {
optionsBrightness = myLSO.data.myObj.objArray[4];
}
if (myLSO.data.myObj.objArray[5] != undefined) {
optionsAccel = myLSO.data.myObj.objArray[5];
}
if (myLSO.data.myObj.objArray[6] != undefined) {
optionsTurningAccel = myLSO.data.myObj.objArray[6];
}
return(true);
}
optionsQuality = 1;
optionsBG = 2;
optionsSound = 1;
playerName = "Your name here";
optionsBrightness = 2;
optionsAccel = 0.01;
optionsTurningAccel = 0.5;
buttonSound = new Sound();
buttonSound.attachSound("buttonBlip");
gameMusic = new Sound();
gameMusic.attachSound("gameLoop");
grenadeSound = new Sound();
grenadeSound.attachSound("pistolShot");
grenadeExplosionSound = new Sound();
grenadeExplosionSound.attachSound("grenadeExplosion");
menuMusic = new Sound();
menuMusic.attachSound("menuLoop");
testCompleteSound = new Sound();
testCompleteSound.attachSound("timeExpired");
gameOverMusic = new Sound();
gameOverMusic.attachSound("gameOverSound");
shotgunSound = new Sound();
shotgunSound.attachSound("shotgunShot");
missileSound = new Sound();
missileSound.attachSound("missileShot");
magnumSound = new Sound();
magnumSound.attachSound("magnumShot");
pistolSound = new Sound();
pistolSound.attachSound("pistolShot");
rifleSound = new Sound();
rifleSound.attachSound("rifleShot");
bbSound = new Sound();
bbSound.attachSound("bbShot");
loadGame();
if (optionsQuality == 1) {
_quality = "BEST";
} else if (optionsQuality == 2) {
_quality = "MEDIUM";
} else if (optionsQuality == 3) {
_quality = "LOW";
}
if (optionsBG == 1) {
_root.bg.gotoAndStop(_root.bg._totalframes);
} else if (optionsBG == 2) {
_root.bg.gotoAndPlay(1);
}
if (optionsSound == 1) {
toggleSound(100);
} else if (optionsSound == 2) {
toggleSound(0);
}
_root.bg.brighty._alpha = optionsBrightness * 10;
function playButtonReleased() {
var _local1 = _root;
clearInterval(_local1.mainMenuStep);
_local1.testCompleteSound.start();
removeMovieClip(adBox);
_local1.preloadTran.play();
}
function menuMain() {
while ((previousTime + int(1000 / fps)) > getTimer()) {
}
previousTime = getTimer();
}
Stage.showMenu = false;
stop();
fps = 30;
previousTime = getTimer();
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 12;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
mainMenuStep = setInterval(menuMain, 10);
Instance of Symbol 30 MovieClip "bg" in Frame 1
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(this._totalframes);
}
}
Frame 2
stop();
Instance of Symbol 53 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 3
function hidePopUp(popUpName) {
enableButtons();
_root[popUpName].gotoAndStop(1);
}
function showPopUp(popUpName) {
disableButtons();
_root[popUpName].gotoAndStop(2);
}
function disableButtons() {
var _local1 = _root;
i = 0;
while (i < 5) {
_local1["b" + i].enabled = false;
i++;
}
}
function enableButtons() {
var _local1 = _root;
i = 0;
while (i < 5) {
_local1["b" + i].enabled = true;
i++;
}
}
stop();
_root.menuMusic.start(0, 1000);
Frame 4
function hidePopUp(popUpName) {
enableButtons();
_root[popUpName].gotoAndStop(1);
}
function showPopUp(popUpName) {
disableButtons();
_root[popUpName].gotoAndStop(2);
}
function disableButtons() {
var _local1 = _root;
i = 1;
while (i < 3) {
_local1.pausePopUp.ppu["ppub" + i].enabled = false;
i++;
}
}
function enableButtons() {
var _local1 = _root;
i = 1;
while (i < 3) {
_local1.pausePopUp.ppu["ppub" + i].enabled = true;
i++;
}
}
function updateLevelText(pp) {
var _local1 = _root;
pps = String(pp);
_local1.levelText.gotoAndStop(pps.length);
i = 1;
while (i <= pps.length) {
_local1.levelText["n" + i].gotoAndStop(int(pps.charAt(i - 1)) + 1);
i++;
}
}
function updateGoal1(vv) {
var _local1 = _root;
vvs = String(vv);
_local1.bgText.goal1.gotoAndStop(1);
if (vv > 1) {
_local1.bgText.goal1.gotoAndStop(2);
}
_local1.bgText.goal1.val.gotoAndStop(vvs.length);
i = 0;
while (i < vvs.length) {
_local1.bgText.goal1.val["n" + (i + 1)].gotoAndStop(int(vvs.charAt(i)) + 1);
i++;
}
}
function updateGoal2(vv) {
var _local1 = _root;
vvs = String(vv);
_local1.bgText.goal2.gotoAndStop(1);
if (vv > 1) {
_local1.bgText.goal2.gotoAndStop(2);
}
_local1.bgText.goal2.val.gotoAndStop(vvs.length);
i = 0;
while (i < vvs.length) {
_local1.bgText.goal2.val["n" + (i + 1)].gotoAndStop(int(vvs.charAt(i)) + 1);
i++;
}
}
function updateWeapon(lev) {
var _local1 = _root;
var _local2 = lev;
_local1.bgText.weapon.mode.gotoAndStop(_local2[1] + 1);
_local1.bgText.weapon.upgrade.gotoAndStop(_local2[4] + 1);
ml = _local2[0];
if (ml == 4) {
ml = ml + _local2[3];
} else if (ml == 5) {
ml = ml + (2 + _local2[3]);
} else if (ml == 6) {
ml = ml + 6;
}
if (_local2[4] == 3) {
i = 0;
while (i < 8) {
_local1.bgText.weapon.upgrade["g" + (i + 1)].gotoAndStop(ml + 1);
i++;
}
} else {
i = 0;
while (i < (1 + (_local2[4] * 2))) {
_local1.bgText.weapon.upgrade["g" + (i + 1)].gotoAndStop(ml + 1);
i++;
}
}
}
function shipDeath() {
if (lives >= 1) {
_root.deathTrans.gotoAndPlay(2);
}
}
function updateLivesText(pp) {
var _local1 = pp;
var _local2 = _root;
if (_local1 <= 3) {
_local2.livesText.gotoAndStop(_local1 + 1);
} else if (_local1 < 10) {
_local2.livesText.gotoAndStop(5);
_local2.livesText.n1.gotoAndStop(_local1 + 1);
} else if (_local1 < 100) {
_local2.livesText.gotoAndStop(6);
_local2.livesText.n1.gotoAndStop(int(String(_local1).charAt(0)) + 1);
_local2.livesText.n2.gotoAndStop(int(String(_local1).charAt(1)) + 1);
}
}
function resetScoreText() {
var _local1 = _root;
i = 1;
while (i <= 10) {
_local1.scoreText["s" + i].gotoAndStop(1);
i++;
}
}
function updateScoreText(pp) {
var _local1 = _root;
pps = String(pp);
i = 1;
while (i <= pps.length) {
_local1.scoreText["s" + i].gotoAndStop(int(pps.charAt(pps.length - i)) + 1);
i++;
}
}
function editorText() {
var _local1 = _root;
if (_local1.editorPopUp._currentframe == 2) {
_local1.editorPopUp.gotoAndStop(1);
} else {
_local1.editorPopUp.gotoAndStop(2);
updateEditorText();
gamePaused = true;
}
}
function editorButtonTest() {
var _local1 = _root;
levels[currentLevel][0] = int(_local1.editorPopUp.value1.text);
levels[currentLevel][1] = int(_local1.editorPopUp.value2.text);
levels[currentLevel][2] = int(_local1.editorPopUp.value3.text);
levels[currentLevel][3] = int(_local1.editorPopUp.value4.text);
levels[currentLevel][4] = int(_local1.editorPopUp.value5.text);
levels[currentLevel][5] = int(_local1.editorPopUp.value6.text);
levels[currentLevel][6] = int(_local1.editorPopUp.value7.text);
reset();
updateEditorText();
_local1.editorPopUp.gotoAndStop(1);
gamePaused = false;
}
function editorButtonNext() {
changeToNextLevel();
updateEditorText();
}
function editorButtonReset() {
reset();
updateEditorText();
}
function editorButtonPrev() {
changeToPrevLevel();
updateEditorText();
}
function updateEditorText() {
var _local1 = _root;
_local1.editorPopUp.value1.text = levels[currentLevel][0];
_local1.editorPopUp.value2.text = levels[currentLevel][1];
_local1.editorPopUp.value3.text = levels[currentLevel][2];
_local1.editorPopUp.value4.text = levels[currentLevel][3];
_local1.editorPopUp.value5.text = levels[currentLevel][4];
_local1.editorPopUp.value6.text = levels[currentLevel][5];
_local1.editorPopUp.value7.text = levels[currentLevel][6];
str = "levels = [";
i = 0;
while (i < levels.length) {
str = str + (((((((((((((("[" + levels[i][0]) + ",") + levels[i][1]) + ",") + levels[i][2]) + ",") + levels[i][3]) + ",") + levels[i][4]) + ",") + levels[i][5]) + ",") + levels[i][6]) + "]");
if ((i + 1) < levels.length) {
str = str + ",";
}
i++;
}
str = str + "];";
_local1.editorPopUp.levelsCodeTxt.text = str;
_local1.editorPopUp.levelTxt.text = ((currentLevel + 1) + "/") + levels.length;
}
function gotoMenu() {
_root.gotoAndStop(2);
}
function gotoRetry() {
_root.gameOverText.gotoAndStop(1);
}
function continueButtonReleased() {
_root.gameOverText.gotoAndPlay(26);
lives = 5;
points = points - 1000;
if (points < 0) {
points = 0;
}
extraLivesCount = Math.floor(points / 1000) + 1;
_root.saveGame();
reset();
}
function gameOverButtonReleased() {
currentLevel = 0;
lives = 5;
points = 0;
_root.saveGame();
clearInterval(gameStep);
_root.gameOverText.play();
}
function winGameOverButtonReleased() {
currentLevel = 0;
lives = 5;
points = 0;
_root.saveGame();
clearInterval(gameStep);
_root.winText.play();
}
function __rankz_send__(par1, par2, par3, par4, par4n) {
var _local1 = _root;
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.c2NvcmUy = par4n;
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
var _local1 = _root;
if (success) {
_local1.gameOverText.statusTxt.text = par228.msg;
_local1.winText.statusTxt.text = par228.msg;
} else {
trace(par228.loaded);
_local1.gameOverText.statusTxt.text = "Error, please try again";
_local1.winText.statusTxt.text = "Error, please try again";
canSubmitScore = true;
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
function submitScore(namename) {
var _local1 = _root;
if (canSubmitScore) {
if ((currentLevel > 0) && (points > 0)) {
canSubmitScore = false;
_local1.gameOverText.statusTxt.text = "Sending your score, please wait...";
_local1.winText.statusTxt.text = "Sending your score, please wait...";
_local1.playerName = namename;
bXlnYW1lX25hbWVfdmFyaWFibGU = _local1.playerName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = points;
bXlnYW1lX3Njb3JlX3ZhcmlhYmx2 = currentLevel + 1;
__rankz_send__("MjUxOWolZSVhJW4lcw==", "bGV1ZWVyb3Q=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2);
} else if (points <= 0) {
_local1.gameOverText.statusTxt.text = "You can't submit a score of 0";
_local1.winText.statusTxt.text = "You can't submit a score of 0";
} else {
_local1.gameOverText.statusTxt.text = "You must pass the first level before you can submit a score";
_local1.winText.statusTxt.text = "You must pass the first level before you can submit a score";
}
} else {
_local1.gameOverText.statusTxt.text = "You can't submit more than one score at a time";
_local1.winText.statusTxt.text = "You can't submit more than one score at a time";
}
}
function bb() {
var _local1 = _root;
if (shotIndex < bullets.length) {
numShotsMade++;
pAng = (player._rotation * Math.PI) / 180;
if (((upgrade == Upgrade_One) || (upgrade == Upgrade_FourWay)) || (upgrade == Upgrade_EightWay)) {
numThrough = 1;
incr = 1;
if (upgrade != Upgrade_One) {
numThrough = 8;
incr = 4 - upgrade;
}
i = 0;
while (i < numThrough) {
bullets[shotIndex].speed = 3;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = ((pAng + ((Math.PI/4) * i)) * 180) / Math.PI;
bullets[shotIndex].v[0] = (Math.cos(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "BB";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.bbSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
i = i + incr;
}
if (upgrade == Upgrade_One) {
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
} else if (upgrade == Upgrade_Dual) {
bullets[shotIndex].speed = 3;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "BB";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.bbSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
bullets[shotIndex].speed = 3;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "BB";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
levelPoints++;
shotIndex++;
_local1.bbSound.start();
}
if (lastAngleShot == 900) {
lastAngleShot = player._rotation;
} else if (lastAngleShot != player._rotation) {
lastAngleShot = player._rotation;
levelPoints = levelPoints + bonus_LASTANGLESHOT;
}
if (Key_Down) {
levelPoints = levelPoints + bonus_SHOTINREVERSE;
}
}
}
function pistol() {
var _local1 = _root;
if (shotIndex < bullets.length) {
numShotsMade++;
pAng = (player._rotation * Math.PI) / 180;
if (((upgrade == Upgrade_One) || (upgrade == Upgrade_FourWay)) || (upgrade == Upgrade_EightWay)) {
numThrough = 1;
incr = 1;
if (upgrade != Upgrade_One) {
numThrough = 8;
incr = 4 - upgrade;
}
i = 0;
while (i < numThrough) {
bullets[shotIndex].speed = 4;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = ((pAng + ((Math.PI/4) * i)) * 180) / Math.PI;
bullets[shotIndex].v[0] = (Math.cos(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "PISTOL";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.pistolSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
i = i + incr;
}
if (upgrade == Upgrade_One) {
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
} else if (upgrade == Upgrade_Dual) {
bullets[shotIndex].speed = 4;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "PISTOL";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.pistolSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
bullets[shotIndex].speed = 4;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "PISTOL";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
levelPoints++;
shotIndex++;
_local1.pistolSound.start();
}
if (lastAngleShot == 900) {
lastAngleShot = player._rotation;
} else if (lastAngleShot != player._rotation) {
lastAngleShot = player._rotation;
levelPoints = levelPoints + bonus_LASTANGLESHOT;
}
if (Key_Down) {
levelPoints = levelPoints + bonus_SHOTINREVERSE;
}
}
}
function magnum() {
var _local1 = _root;
if (shotIndex < bullets.length) {
numShotsMade++;
pAng = (player._rotation * Math.PI) / 180;
if (((upgrade == Upgrade_One) || (upgrade == Upgrade_FourWay)) || (upgrade == Upgrade_EightWay)) {
numThrough = 1;
incr = 1;
if (upgrade != Upgrade_One) {
numThrough = 8;
incr = 4 - upgrade;
}
pAng = (player._rotation * Math.PI) / 180;
i = 0;
while (i < numThrough) {
bullets[shotIndex].speed = 7;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = ((pAng + ((Math.PI/4) * i)) * 180) / Math.PI;
bullets[shotIndex].v[0] = (Math.cos(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "MAGNUM";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.magnumSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
i = i + incr;
}
if (upgrade == Upgrade_One) {
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
} else if (upgrade == Upgrade_Dual) {
bullets[shotIndex].speed = 7;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "MAGNUM";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.magnumSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
bullets[shotIndex].speed = 7;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "MAGNUM";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
levelPoints++;
shotIndex++;
_local1.magnumSound.start();
}
if (lastAngleShot == 900) {
lastAngleShot = player._rotation;
} else if (lastAngleShot != player._rotation) {
lastAngleShot = player._rotation;
levelPoints = levelPoints + bonus_LASTANGLESHOT;
}
if (Key_Down) {
levelPoints = levelPoints + bonus_SHOTINREVERSE;
}
}
}
function rifle() {
var _local1 = _root;
if (shotIndex < bullets.length) {
numShotsMade++;
pAng = (player._rotation * Math.PI) / 180;
if (((upgrade == Upgrade_One) || (upgrade == Upgrade_FourWay)) || (upgrade == Upgrade_EightWay)) {
numThrough = 1;
incr = 1;
if (upgrade != Upgrade_One) {
numThrough = 8;
incr = 4 - upgrade;
}
i = 0;
while (i < numThrough) {
bullets[shotIndex].speed = 10;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = ((pAng + ((Math.PI/4) * i)) * 180) / Math.PI;
bullets[shotIndex].v[0] = (Math.cos(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "RIFLE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.rifleSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
i = i + incr;
}
if (upgrade == Upgrade_One) {
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
} else if (upgrade == Upgrade_Dual) {
bullets[shotIndex].speed = 10;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "RIFLE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.rifleSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
bullets[shotIndex].speed = 10;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "RIFLE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
levelPoints++;
shotIndex++;
_local1.rifleSound.start();
}
if (lastAngleShot == 900) {
lastAngleShot = player._rotation;
} else if (lastAngleShot != player._rotation) {
lastAngleShot = player._rotation;
levelPoints = levelPoints + bonus_LASTANGLESHOT;
}
if (Key_Down) {
levelPoints = levelPoints + bonus_SHOTINREVERSE;
}
}
}
function shotGun() {
var _local1 = _root;
if ((shotIndex + ((shotIndex - (numDets * (5 + (2 * rounds)))) * 5)) < bullets.length) {
numShotsMade++;
pAng = (player._rotation * Math.PI) / 180;
if (((upgrade == Upgrade_One) || (upgrade == Upgrade_FourWay)) || (upgrade == Upgrade_EightWay)) {
numThrough = 1;
incr = 1;
if (upgrade != Upgrade_One) {
numThrough = 8;
incr = 4 - upgrade;
}
i = 0;
while (i < numThrough) {
temp = shotIndex;
deg = (((pAng + ((Math.PI/4) * i)) * 180) / Math.PI) - 30;
e = shotIndex;
while ((e < ((temp + 3) + rounds)) && (e < bullets.length)) {
bullets[shotIndex].speed = 4;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = deg;
bullets[shotIndex].v[0] = (Math.cos((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "SHOT";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
deg = deg + (60 / ((3 + rounds) - 1));
levelPoints++;
shotIndex++;
e++;
}
temp = shotIndex;
deg = (((pAng + ((Math.PI/4) * i)) * 180) / Math.PI) - 15;
e = shotIndex;
while ((e < ((temp + 2) + rounds)) && (e < bullets.length)) {
bullets[shotIndex].speed = 2;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = deg;
bullets[shotIndex].v[0] = (Math.cos((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "SHOT";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
deg = deg + (30 / ((2 + rounds) - 1));
levelPoints++;
shotIndex++;
e++;
}
_local1.shotgunSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
i = i + incr;
}
if (upgrade == Upgrade_One) {
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
} else if (upgrade == Upgrade_Dual) {
temp = shotIndex;
deg = player._rotation - 30;
i = shotIndex;
while ((i < ((temp + 3) + rounds)) && (i < bullets.length)) {
bullets[shotIndex].speed = 4;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "SHOT";
bullets[shotIndex]._rotation = deg;
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
deg = deg + (60 / ((3 + rounds) - 1));
levelPoints++;
shotIndex++;
i++;
}
temp = shotIndex;
deg = player._rotation - 15;
i = shotIndex;
while ((i < ((temp + 2) + rounds)) && (i < bullets.length)) {
bullets[shotIndex].speed = 2;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "SHOT";
bullets[shotIndex]._rotation = deg;
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
deg = deg + (30 / ((2 + rounds) - 1));
levelPoints++;
shotIndex++;
i++;
}
_local1.shotgunSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
temp = shotIndex;
deg = player._rotation - 30;
i = shotIndex;
while ((i < ((temp + 3) + rounds)) && (i < bullets.length)) {
bullets[shotIndex].speed = 4;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "SHOT";
bullets[shotIndex]._rotation = deg;
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
deg = deg + (60 / ((3 + rounds) - 1));
levelPoints++;
shotIndex++;
i++;
}
temp = shotIndex;
deg = player._rotation - 15;
i = shotIndex;
while ((i < ((temp + 2) + rounds)) && (i < bullets.length)) {
bullets[shotIndex].speed = 2;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin((deg * Math.PI) / 180) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "SHOT";
bullets[shotIndex]._rotation = deg;
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
deg = deg + (30 / ((2 + rounds) - 1));
levelPoints++;
shotIndex++;
i++;
}
_local1.shotgunSound.start();
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
if (lastAngleShot == 900) {
lastAngleShot = player._rotation;
} else if (lastAngleShot != player._rotation) {
lastAngleShot = player._rotation;
levelPoints = levelPoints + bonus_LASTANGLESHOT;
}
if (Key_Down) {
levelPoints = levelPoints + bonus_SHOTINREVERSE;
}
}
}
function grenade() {
var _local1 = _root;
if ((shotIndex + ((shotIndex - (numDets * (8 + (2 * rounds)))) * 8)) < bullets.length) {
numShotsMade++;
pAng = (player._rotation * Math.PI) / 180;
if (((upgrade == Upgrade_One) || (upgrade == Upgrade_FourWay)) || (upgrade == Upgrade_EightWay)) {
numThrough = 1;
incr = 1;
if (upgrade != Upgrade_One) {
numThrough = 8;
incr = 4 - upgrade;
}
i = 0;
while (i < numThrough) {
bullets[shotIndex].speed = 1;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = ((pAng + ((Math.PI/4) * i)) * 180) / Math.PI;
bullets[shotIndex].v[0] = (Math.cos(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "GRENADE";
bullets[shotIndex].ticker = 0;
bullets[shotIndex].tickerLength = 100;
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.grenadeSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
i = i + incr;
}
if (upgrade == Upgrade_One) {
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
} else if (upgrade == Upgrade_Dual) {
bullets[shotIndex].speed = 1;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].ticker = 0;
bullets[shotIndex].tickerLength = 100;
bullets[shotIndex].shotType = "GRENADE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.grenadeSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
bullets[shotIndex].speed = 1;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].ticker = 0;
bullets[shotIndex].tickerLength = 100;
bullets[shotIndex].shotType = "GRENADE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
levelPoints++;
shotIndex++;
_local1.grenadeSound.start();
}
if (lastAngleShot == 900) {
lastAngleShot = player._rotation;
} else if (lastAngleShot != player._rotation) {
lastAngleShot = player._rotation;
levelPoints = levelPoints + bonus_LASTANGLESHOT;
}
if (Key_Down) {
levelPoints = levelPoints + bonus_SHOTINREVERSE;
}
}
}
function grenadeSplit(nade) {
var _local1 = nade;
_local1.speed = 3;
_local1._x = _local1._x + Math.cos((_local1._rotation * Math.PI) / 180);
_local1._y = _local1._y + Math.sin((_local1._rotation * Math.PI) / 180);
_local1.v[0] = Math.cos((_local1._rotation * Math.PI) / 180) * _local1.speed;
_local1.v[1] = Math.sin((_local1._rotation * Math.PI) / 180) * _local1.speed;
_local1.shotType = "SHARD";
_local1.gotoAndStop(_local1.shotType);
temp = shotIndex;
num = 8 + (2 * rounds);
deg = _local1._rotation + (360 / num);
mAng = (deg * Math.PI) / 180;
i = shotIndex;
while ((i < ((temp + num) - 1)) && (i < bullets.length)) {
bullets[shotIndex].speed = 3;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
bullets[shotIndex]._x = _local1._x + Math.cos(mAng);
bullets[shotIndex]._y = _local1._y + Math.sin(mAng);
bullets[shotIndex].v[0] = Math.cos(mAng) * bullets[shotIndex].speed;
bullets[shotIndex].v[1] = Math.sin(mAng) * bullets[shotIndex].speed;
bullets[shotIndex].shotType = "SHARD";
bullets[shotIndex]._rotation = deg;
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
deg = deg + (360 / num);
mAng = (deg * Math.PI) / 180;
levelPoints++;
shotIndex++;
i++;
}
_root.grenadeExplosionSound.start();
}
function missile() {
var _local1 = _root;
if (shotIndex < bullets.length) {
numShotsMade++;
pAng = (player._rotation * Math.PI) / 180;
if (((upgrade == Upgrade_One) || (upgrade == Upgrade_FourWay)) || (upgrade == Upgrade_EightWay)) {
numThrough = 1;
incr = 1;
if (upgrade != Upgrade_One) {
numThrough = 8;
incr = 4 - upgrade;
}
i = 0;
while (i < numThrough) {
bullets[shotIndex].speed = 8;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.guns[i]._x * player.guns[i]._x) + (player.guns[i]._y * player.guns[i]._y));
angle = Math.atan2(player.guns[i]._y, player.guns[i]._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex]._rotation = ((pAng + ((Math.PI/4) * i)) * 180) / Math.PI;
bullets[shotIndex].v[0] = (Math.cos(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng + ((Math.PI/4) * i)) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex].shotType = "MISSILE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.missileSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
i = i + incr;
}
if (upgrade == Upgrade_One) {
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex - 1].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
}
} else if (upgrade == Upgrade_Dual) {
bullets[shotIndex].speed = 8;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun8._x * player.Gun8._x) + (player.Gun8._y * player.Gun8._y));
angle = Math.atan2(player.Gun8._y, player.Gun8._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "MISSILE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
levelPoints++;
shotIndex++;
_local1.missileSound.start();
if (shotIndex <= shotsToMake) {
hasNotMovedSinceLastShot = true;
}
bullets[shotIndex].speed = 8;
bullets[shotIndex]._xscale = bullets[shotIndex]._xscale * (1 + (0.5 * caliber));
bullets[shotIndex]._yscale = bullets[shotIndex]._yscale * (1 + (0.5 * caliber));
disydance = Math.sqrt((player.Gun2._x * player.Gun2._x) + (player.Gun2._y * player.Gun2._y));
angle = Math.atan2(player.Gun2._y, player.Gun2._x);
bullets[shotIndex]._x = player._x + (Math.cos(pAng + angle) * disydance);
bullets[shotIndex]._y = player._y + (Math.sin(pAng + angle) * disydance);
bullets[shotIndex].v[0] = (Math.cos(pAng) * bullets[shotIndex].speed) + player.xMomentum;
bullets[shotIndex].v[1] = (Math.sin(pAng) * bullets[shotIndex].speed) + player.yMomentum;
bullets[shotIndex]._rotation = player._rotation;
bullets[shotIndex].shotType = "MISSILE";
bullets[shotIndex].gotoAndStop(bullets[shotIndex].shotType);
player.xForce = (Math.cos(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.yForce = (Math.sin(pAng - Math.PI) * bullets[shotIndex].speed) * 0.2;
player.xMomentum = player.xMomentum + player.xForce;
player.yMomentum = player.yMomentum + player.yForce;
levelPoints++;
shotIndex++;
_local1.missileSound.start();
}
if (lastAngleShot == 900) {
lastAngleShot = player._rotation;
} else if (lastAngleShot != player._rotation) {
lastAngleShot = player._rotation;
levelPoints = levelPoints + bonus_LASTANGLESHOT;
}
if (Key_Down) {
levelPoints = levelPoints + bonus_SHOTINREVERSE;
}
}
}
function setUpPlayer(obj) {
var _local1 = obj;
player = _local1;
player._x = stageWidth / 2;
player._y = stageHeight / 2;
player.speed = 0;
player.maxSpeed = 0.5;
player.acceleration = _root.optionsAccel;
player.turningSpeed = 0;
player.turningAcceleration = _root.optionsTurningAccel;
player.MaxTurningSpeed = 10;
player.xForce = 0;
player.yForce = 0;
player.xMomentum = 0;
player.yMomentum = 0;
player.maxMomentum = 30;
player._rotation = -90;
player.leftJetOn = false;
player.rightJetOn = false;
player.turningJetOn = false;
player.guns = [_local1.Gun1, _local1.Gun2, _local1.Gun3, _local1.Gun4, _local1.Gun5, _local1.Gun6, _local1.Gun7, _local1.Gun8];
}
function setUpBullet(obj) {
bullets[bulletsIndex] = obj;
bullets[bulletsIndex].speed = 5;
bullets[bulletsIndex].v = [0, 0];
bullets[bulletsIndex]._x = -100;
bullets[bulletsIndex]._y = -100;
bullets[bulletsIndex].shotType = "";
bullets[bulletsIndex].active = false;
bullets[bulletsIndex].dinked = false;
bulletsIndex++;
}
function checkKeys() {
key_Up = Key.isDown(38);
key_Down = Key.isDown(40);
key_Left = Key.isDown(37);
key_Right = Key.isDown(39);
key_Space = Key.isDown(32);
key_Quality = Key.isDown(81);
key_Pause = Key.isDown(80);
if (key_Left) {
oldKeyPressed = 0;
} else if (key_Right) {
oldKeyPressed = 1;
} else if (key_Up) {
oldKeyPressed = 2;
} else if (key_Down) {
oldKeyPressed = 3;
} else if (key_Space) {
oldKeyPressed = 4;
} else if (key_Quality) {
oldKeyPressed = 6;
} else if (key_Pause) {
oldKeyPressed = 7;
} else {
oldKeyPressed = -1;
keyTime = 0;
}
if (!Key_Space) {
key_SpaceReleased = true;
}
}
function changeQuality() {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "BEST";
} else {
_quality = "LOW";
}
}
function movePlayer() {
if (Key_Left && (Key_Right)) {
player.leftJet._rotation = 0;
player.rightJet._rotation = 0;
if (!player.leftJetOn) {
player.leftJet.gotoAndPlay("smallBooster");
player.leftJetOn = true;
}
if (!player.rightJetOn) {
player.rightJet.gotoAndPlay("smallBooster");
player.rightJetOn = true;
}
if ((player.speed + player.acceleration) < player.maxSpeed) {
player.speed = player.speed + player.acceleration;
} else {
player.speed = player.maxSpeed;
}
player.xForce = Math.cos((player._rotation * Math.PI) / 180) * player.speed;
player.yForce = Math.sin((player._rotation * Math.PI) / 180) * player.speed;
if (player.xMomentum > 0) {
if ((player.xMomentum + player.xForce) < player.maxMomentum) {
player.xMomentum = player.xMomentum + player.xForce;
} else {
player.xMomentum = player.maxMomentum;
}
} else if ((player.xMomentum + player.xForce) > (-player.maxMomentum)) {
player.xMomentum = player.xMomentum + player.xForce;
} else {
player.xMomentum = -player.maxMomentum;
}
if (player.yMomentum > 0) {
if ((player.yMomentum + player.yForce) < player.maxMomentum) {
player.yMomentum = player.yMomentum + player.yForce;
} else {
player.yMomentum = player.maxMomentum;
}
} else if ((player.yMomentum + player.yForce) > (-player.maxMomentum)) {
player.yMomentum = player.yMomentum + player.yForce;
} else {
player.yMomentum = -player.maxMomentum;
}
player.turningSpeed = 0;
hasNotMovedSinceLastShot = false;
} else {
if (Key_Left) {
if (player.rightJet._rotation == 0) {
if (!player.rightJetOn) {
player.rightJet.gotoAndPlay("smallBooster");
player.rightJetOn = true;
player.turningJetOn = true;
}
if ((!Key_Up) && (!Key_Down)) {
player.leftJet.gotoAndStop(1);
player.leftJetOn = false;
}
} else {
if (!player.leftJetOn) {
player.leftJet.gotoAndPlay("smallBooster");
player.leftJetOn = true;
player.turningJetOn = true;
}
if ((!Key_Up) && (!Key_Down)) {
player.rightJet.gotoAndStop(1);
player.rightJetOn = false;
}
}
if ((player.turningSpeed - player.turningAcceleration) > (-player.MaxTurningSpeed)) {
player.turningSpeed = player.turningSpeed - player.turningAcceleration;
} else {
player.turningSpeed = -player.MaxTurningSpeed;
}
player._rotation = player._rotation + player.turningSpeed;
if (numShotsMade >= shotsToMake) {
if (howMuchRotated <= 0) {
howMuchRotated = howMuchRotated + player.turningSpeed;
if (howMuchRotated <= -360) {
levelPoints = levelPoints + bonus_ROTATING;
howMuchRotated = howMuchRotated + 360;
}
} else {
howMuchRotated = 0 + player.turningSpeed;
}
}
hasNotMovedSinceLastShot = false;
} else if (Key_Right) {
if (player.leftJet._rotation == 0) {
if (!player.leftJetOn) {
player.leftJet.gotoAndPlay("smallBooster");
player.leftJetOn = true;
player.turningJetOn = true;
}
if ((!Key_Up) && (!Key_Down)) {
player.rightJet.gotoAndStop(1);
player.rightJetOn = false;
}
} else {
if (!player.rightJetOn) {
player.rightJet.gotoAndPlay("smallBooster");
player.rightJetOn = true;
player.turningJetOn = true;
}
if ((!Key_Up) && (!Key_Down)) {
player.leftJet.gotoAndStop(1);
player.leftJetOn = false;
}
}
if ((player.turningSpeed + player.turningAcceleration) < player.MaxTurningSpeed) {
player.turningSpeed = player.turningSpeed + player.turningAcceleration;
} else {
player.turningSpeed = player.MaxTurningSpeed;
}
player._rotation = player._rotation + player.turningSpeed;
if (numShotsMade >= shotsToMake) {
if (howMuchRotated >= 0) {
howMuchRotated = howMuchRotated + player.turningSpeed;
if (howMuchRotated >= 360) {
levelPoints = levelPoints + bonus_ROTATING;
howMuchRotated = howMuchRotated - 360;
}
} else {
howMuchRotated = 0 + player.turningSpeed;
}
}
hasNotMovedSinceLastShot = false;
} else {
player.turningSpeed = 0;
}
if (Key_Up) {
player.leftJet._rotation = 0;
player.rightJet._rotation = 0;
if (!player.leftJetOn) {
player.leftJet.gotoAndPlay("smallBooster");
player.leftJetOn = true;
}
if (!player.rightJetOn) {
player.rightJet.gotoAndPlay("smallBooster");
player.rightJetOn = true;
}
if ((player.speed + player.acceleration) < player.maxSpeed) {
player.speed = player.speed + player.acceleration;
} else {
player.speed = player.maxSpeed;
}
player.xForce = Math.cos((player._rotation * Math.PI) / 180) * player.speed;
player.yForce = Math.sin((player._rotation * Math.PI) / 180) * player.speed;
if (player.xMomentum > 0) {
if ((player.xMomentum + player.xForce) < player.maxMomentum) {
player.xMomentum = player.xMomentum + player.xForce;
} else {
player.xMomentum = player.maxMomentum;
}
} else if ((player.xMomentum + player.xForce) > (-player.maxMomentum)) {
player.xMomentum = player.xMomentum + player.xForce;
} else {
player.xMomentum = -player.maxMomentum;
}
if (player.yMomentum > 0) {
if ((player.yMomentum + player.yForce) < player.maxMomentum) {
player.yMomentum = player.yMomentum + player.yForce;
} else {
player.yMomentum = player.maxMomentum;
}
} else if ((player.yMomentum + player.yForce) > (-player.maxMomentum)) {
player.yMomentum = player.yMomentum + player.yForce;
} else {
player.yMomentum = -player.maxMomentum;
}
hasNotMovedSinceLastShot = false;
} else if (Key_Down) {
player.leftJet._rotation = 180;
player.rightJet._rotation = 180;
if (!player.leftJetOn) {
player.leftJet.gotoAndPlay("smallBooster");
player.leftJetOn = true;
}
if (!player.rightJetOn) {
player.rightJet.gotoAndPlay("smallBooster");
player.rightJetOn = true;
}
if ((player.speed + player.acceleration) < player.maxSpeed) {
player.speed = player.speed + player.acceleration;
} else {
player.speed = player.maxSpeed;
}
player.xForce = Math.cos(((player._rotation + 180) * Math.PI) / 180) * player.speed;
player.yForce = Math.sin(((player._rotation + 180) * Math.PI) / 180) * player.speed;
if (player.xMomentum > 0) {
if ((player.xMomentum + player.xForce) < player.maxMomentum) {
player.xMomentum = player.xMomentum + player.xForce;
} else {
player.xMomentum = player.maxMomentum;
}
} else if ((player.xMomentum + player.xForce) > (-player.maxMomentum)) {
player.xMomentum = player.xMomentum + player.xForce;
} else {
player.xMomentum = -player.maxMomentum;
}
if (player.yMomentum > 0) {
if ((player.yMomentum + player.yForce) < player.maxMomentum) {
player.yMomentum = player.yMomentum + player.yForce;
} else {
player.yMomentum = player.maxMomentum;
}
} else if ((player.yMomentum + player.yForce) > (-player.maxMomentum)) {
player.yMomentum = player.yMomentum + player.yForce;
} else {
player.yMomentum = -player.maxMomentum;
}
hasNotMovedSinceLastShot = false;
} else {
player.xForce = 0;
player.yForce = 0;
player.speed = 0;
}
}
}
function moveBullets() {
var _local1 = _root;
i = 0;
while (i < shotIndex) {
if (bullets[i]._x < stageBorder) {
bullets[i]._x = bullets[i]._x + (stageWidth - (stageBorder * 2));
} else if (bullets[i]._x > (stageWidth - stageBorder)) {
bullets[i]._x = bullets[i]._x - (stageWidth - (stageBorder * 2));
} else {
bullets[i]._x = bullets[i]._x + bullets[i].v[0];
}
if (bullets[i]._y < stageBorder) {
bullets[i]._y = bullets[i]._y + (stageHeight - (stageBorder * 2));
} else if (bullets[i]._y > (stageHeight - stageBorder)) {
bullets[i]._y = bullets[i]._y - (stageHeight - (stageBorder * 2));
} else {
bullets[i]._y = bullets[i]._y + bullets[i].v[1];
}
if (bullets[i].shotType == "GRENADE") {
if (bullets[i].ticker > bullets[i].tickerLength) {
grenadeSplit(bullets[i]);
} else {
bullets[i].ticker++;
}
} else if (bullets[i].shotType == "MISSILE") {
pXDes = player._x;
if (Math.abs((bullets[i]._x - (stageBorder * 2)) - ((pXDes + stageWidth) - (stageBorder * 2))) < Math.abs((bullets[i]._x - (stageBorder * 2)) - (pXDes - (stageBorder * 2)))) {
pXDes = pXDes + stageWidth;
}
pYDes = player._y;
if (Math.abs((bullets[i]._y - (stageBorder * 2)) - ((pYDes + stageHeight) - (stageBorder * 2))) < Math.abs((bullets[i]._y - (stageBorder * 2)) - (pYDes - (stageBorder * 2)))) {
pYDes = pYDes + stageHeight;
}
angleToPlayer = (Math.atan2(pYDes - bullets[i]._y, pXDes - bullets[i]._x) * 180) / Math.PI;
angleOfBullet = bullets[i]._rotation;
if ((angleToPlayer - angleOfBullet) < 0) {
angleOfBullet = angleOfBullet + ((angleToPlayer - angleOfBullet) / 10);
} else if ((angleToPlayer - angleOfBullet) > 0) {
angleOfBullet = angleOfBullet - ((angleToPlayer - angleOfBullet) / 10);
}
bullets[i].v[0] = Math.cos((angleOfBullet * Math.PI) / 180) * bullets[i].speed;
bullets[i].v[1] = Math.sin((angleOfBullet * Math.PI) / 180) * bullets[i].speed;
bullets[i]._rotation = angleOfBullet;
}
if (bullets[i].dinked) {
bullets[i]._rotation = bullets[i]._rotation + bullets[i].speed;
}
if (!playerPaused) {
if (player.mainBox.hitTest(bullets[i]._x, bullets[i]._y, true)) {
if (player.hitBox.hitTest(bullets[i]._x, bullets[i]._y, true)) {
if (bullets[i].active) {
if (bullets[i].shotType == "GRENADE") {
grenadeSplit(bullets[i]);
}
playerPaused = true;
player.gotoAndPlay(2);
lives--;
updateLivesText(lives);
if (lives < 1) {
_local1.gamePaused = true;
resetScoreText();
updateScoreText(points);
_local1.gameOverText.gotoAndPlay(2);
}
}
} else if (!bullets[i].active) {
bullets[i].active = true;
} else if (!bullets[i].dinked) {
if (player.leftJetOn && (player.leftJet.jetBox.hitTest(bullets[i]._x, bullets[i]._y, true))) {
bullets[i].dinked = true;
if (Key_Up) {
levelPoints = levelPoints + bonus_TOUCHEDBULLET;
} else if (Key_Down) {
levelPoints = levelPoints + bonus_TOUCHEDBULLETINREVERSE;
}
} else if (player.rightJetOn && (player.rightJet.jetBox.hitTest(bullets[i]._x, bullets[i]._y, true))) {
bullets[i].dinked = true;
if (Key_Up) {
levelPoints = levelPoints + bonus_TOUCHEDBULLET;
} else if (Key_Down) {
levelPoints = levelPoints + bonus_TOUCHEDBULLETINREVERSE;
}
}
}
}
}
i++;
}
}
function reset() {
var _local1 = _root;
canSubmitScore = true;
numShotAtTime = 0;
player.speed = 0;
player._x = stageWidth / 2;
player._y = stageHeight / 2;
player.maxSpeed = 0.5;
player.acceleration = _local1.optionsAccel;
player.turningSpeed = 0;
player.turningAcceleration = _local1.optionsTurningAccel;
player.MaxTurningSpeed = 10;
player.xForce = 0;
player.yForce = 0;
player.xMomentum = 0;
player.yMomentum = 0;
player.maxMomentum = 30;
player._rotation = -90;
player.leftJetOn = false;
player.rightJetOn = false;
player.turningJetOn = false;
player.gotoAndStop(1);
i = 0;
while (i < bullets.length) {
bullets[i].speed = 5;
bullets[i].v = [0, 0];
bullets[i]._x = -100;
bullets[i]._y = -100;
bullets[i]._xscale = 100;
bullets[i]._yscale = 100;
bullets[i].ticker = 0;
bullets[i].tickerLength = 100;
bullets[i].shotType = "BB";
bullets[i].gotoAndStop(bullets[i].shotType);
bullets[i].active = false;
bullets[i].dinked = false;
i++;
}
shotIndex = 0;
numShotsMade = 0;
playerPaused = false;
gamePaused = false;
setUpTheLevel(levels[currentLevel]);
levelPoints = 0;
startTime = 0;
timeLeft = timeLengthOfLevel;
updateLevelText(currentLevel + 1);
resetScoreText();
updateScoreText(points);
updateLivesText(lives);
updateGoal1(shotsToMake);
updateGoal2(timeLeft);
updateWeapon(levels[currentLevel]);
_local1.bgText.gotoAndStop(1);
key_SpaceReleased = false;
hasNotMovedSinceLastShot = false;
}
function setUpTheLevel(tl) {
var _local1 = tl;
if (_local1[0] == BulletType_BB) {
shoot = bb;
} else if (_local1[0] == BulletType_Pistol) {
shoot = pistol;
} else if (_local1[0] == BulletType_Magnum) {
shoot = magnum;
} else if (_local1[0] == BulletType_Rifle) {
shoot = rifle;
} else if (_local1[0] == BulletType_Shot) {
shoot = shotGun;
} else if (_local1[0] == BulletType_Grenade) {
shoot = grenade;
} else if (_local1[0] == BulletType_Missile) {
shoot = missile;
}
mode = _local1[1];
caliber = _local1[2];
rounds = _local1[3];
upgrade = _local1[4];
shotsToMake = _local1[5];
timeLengthOfLevel = _local1[6];
}
function changeToNextLevel() {
currentLevel++;
addPointsEarned();
while (points >= (extraLivesCount * 1000)) {
extraLivesCount++;
if ((lives + 1) < 100) {
lives++;
}
}
reset();
_root.saveGame();
}
function addPointsEarned() {
if (hasNotMovedSinceLastShot) {
levelPoints = levelPoints * 2;
}
points = points + levelPoints;
if (currentLevel == (levels.length + 1)) {
while (points >= (extraLivesCount * 1000)) {
extraLivesCount++;
if ((lives + 1) < 100) {
lives++;
}
}
points = points + (lives * 100);
}
}
function changeToPrevLevel() {
currentLevel--;
points = points + levelPoints;
if (hasNotMovedSinceLastShot) {
points = points + (50 * shotIndex);
}
reset();
_root.saveGame();
_root.popUpText.gotoAndStop(1);
}
function main() {
var _local1 = _root;
while ((previousTime + int(1000 / fps)) > getTimer()) {
}
previousTime = getTimer();
checkKeys();
if (key_Quality) {
if ((oldKeyPressed != keyPressed) && ((getTimer() - keyTime) > keyDelay)) {
changeQuality();
keyTime = getTimer();
}
} else if (key_Pause) {
if ((oldKeyPressed != keyPressed) && ((getTimer() - keyTime) > keyDelay)) {
if ((_local1.gameOverText._currentframe == 1) && (_local1.optionsText._currentframe == 1)) {
if (_local1.pausePopUp._currentframe == 1) {
gamePaused = true;
_local1.pausePopUp.gotoAndPlay(2);
} else if (_local1.pausePopUp._currentframe == 24) {
gamePaused = true;
_local1.pausePopUp.gotoAndPlay(25);
}
}
keyTime = getTimer();
}
} else if ((oldKeyPressed != keyPressed) && ((getTimer() - keyTime) > keyDelay)) {
if ((!gamePaused) && (!playerPaused)) {
movePlayer();
}
keyTime = getTimer();
} else {
player.leftJet.gotoAndStop(1);
player.leftJetOn = false;
player.rightJet.gotoAndStop(1);
player.rightJetOn = false;
player.speed = 0;
player.turningSpeed = 0;
}
oldKeyPressed = keyPressed;
if (!gamePaused) {
if (!playerPaused) {
player._x = player._x + player.xMomentum;
player._y = player._y + player.yMomentum;
if (player._x < stageBorder) {
player._x = player._x + (stageWidth - (stageBorder * 2));
} else if (player._x > (stageWidth - stageBorder)) {
player._x = player._x - (stageWidth - (stageBorder * 2));
}
if (player._y < stageBorder) {
player._y = player._y + (stageHeight - (stageBorder * 2));
} else if (player._y > (stageHeight - stageBorder)) {
player._y = player._y - (stageHeight - (stageBorder * 2));
}
if (Key_Space) {
if (key_SpaceReleased) {
shoot();
numShotAtTime++;
if (mode == Mode_Single) {
key_SpaceReleased = false;
} else if ((mode == Mode_Semi3) || (mode == Mode_Semi5)) {
if (numShotAtTime >= (1 + (2 * mode))) {
key_SpaceReleased = false;
}
}
}
} else {
numShotAtTime = 0;
}
}
moveBullets();
if (numShotsMade >= shotsToMake) {
if ((_local1.bgText._currentframe == 29) || (_local1.bgText._currentframe == 1)) {
_local1.bgText.play();
}
if (startTime == 0) {
startTime = 111;
timeNumber = 111;
}
if (!playerPaused) {
tempTime = timeLeft;
timeNumber++;
timeLeft = timeLengthOfLevel - Math.ceil((timeNumber - startTime) / fps);
if (tempTime != timeLeft) {
levelPoints = levelPoints + shotIndex;
}
}
} else {
timeLeft = timeLengthOfLevel;
}
if ((shotsToMake - numShotsMade) >= 0) {
updateGoal1(shotsToMake - numShotsMade);
}
updateGoal2(timeLeft);
if (!gamePaused) {
updateScoreText(points + levelPoints);
}
if (timeLeft <= 0) {
gamePaused = true;
if (_local1.bgText._currentframe == 76) {
_local1.bgText.play();
}
if ((currentLevel + 1) < levels.length) {
_local1.popUpText.gotoAndStop(2);
} else {
currentLevel = levels.length + 1;
addPointsEarned();
updateScoreText(points);
_local1.winText.gotoAndPlay(2);
}
_local1.testCompleteSound.start();
}
}
}
stop();
fps = 30;
previousTime = getTimer();
stageWidth = (stageHeight = 550);
stageBorder = 25;
currentLevel = 0;
levels = [[1, 0, 0, 0, 0, 1, 5], [0, 0, 0, 0, 0, 2, 5], [1, 1, 0, 0, 0, 3, 5], [0, 0, 0, 0, 1, 2, 5], [4, 0, 0, 0, 0, 1, 8], [1, 1, 0, 0, 0, 6, 8], [1, 0, 0, 0, 0, 7, 8], [5, 0, 0, 0, 0, 1, 8], [0, 3, 0, 0, 0, 9, 8], [2, 0, 0, 0, 0, 3, 8], [0, 1, 0, 0, 1, 5, 8], [4, 0, 0, 1, 0, 1, 10], [5, 0, 0, 1, 0, 1, 10], [1, 3, 0, 0, 0, 10, 10], [0, 0, 0, 0, 3, 1, 10], [2, 0, 0, 0, 2, 1, 10], [2, 0, 0, 0, 0, 5, 10], [0, 1, 0, 0, 0, 11, 10], [2, 0, 0, 0, 1, 3, 10], [3, 0, 0, 0, 0, 2, 10], [0, 0, 0, 0, 2, 3, 8], [1, 0, 0, 0, 1, 6, 10], [4, 0, 0, 0, 0, 2, 10], [5, 0, 0, 2, 0, 1, 10], [1, 0, 0, 0, 3, 1, 10], [2, 0, 0, 0, 0, 7, 10], [2, 3, 0, 0, 0, 8, 10], [1, 0, 0, 0, 0, 13, 10], [0, 0, 0, 0, 1, 7, 10], [4, 0, 0, 1, 0, 2, 15], [2, 1, 0, 0, 2, 3, 8], [0, 1, 0, 0, 0, 15, 8], [3, 1, 0, 0, 0, 3, 10], [4, 0, 0, 2, 0, 1, 15], [4, 0, 0, 0, 1, 1, 15], [5, 0, 0, 0, 0, 2, 15], [4, 1, 0, 0, 0, 3, 15], [1, 0, 0, 0, 2, 4, 8], [1, 3, 0, 0, 1, 8, 8], [0, 3, 0, 0, 0, 17, 8], [3, 0, 0, 0, 2, 1, 8], [2, 1, 0, 0, 1, 6, 10], [0, 3, 0, 0, 2, 4, 8], [1, 0, 0, 0, 1, 9, 8], [2, 0, 0, 0, 0, 18, 10], [3, 3, 0, 0, 0, 5, 10], [0, 1, 0, 0, 0, 19, 10], [1, 3, 0, 0, 1, 10, 10], [6, 0, 0, 0, 0, 1, 20], [4, 0, 0, 2, 0, 2, 20], [5, 0, 0, 1, 0, 2, 20], [0, 1, 0, 0, 3, 2, 10], [1, 0, 0, 0, 2, 5, 8], [4, 0, 0, 0, 0, 4, 20], [4, 0, 0, 1, 0, 3, 25], [0, 3, 0, 0, 0, 21, 15], [1, 3, 0, 0, 1, 11, 15], [2, 0, 0, 0, 1, 11, 10], [1, 0, 0, 0, 0, 23, 10], [0, 0, 0, 0, 2, 6, 8], [1, 0, 0, 0, 3, 3, 10], [5, 0, 0, 0, 0, 3, 25], [4, 0, 0, 0, 0, 5, 25], [3, 0, 0, 0, 1, 5, 10], [2, 0, 0, 0, 2, 5, 10], [1, 3, 0, 0, 1, 13, 15], [0, 0, 0, 0, 0, 27, 10], [4, 0, 0, 1, 0, 4, 20], [4, 0, 0, 1, 1, 2, 25], [4, 3, 0, 2, 0, 3, 15], [1, 1, 0, 0, 0, 29, 15], [6, 0, 0, 0, 0, 2, 25], [5, 0, 0, 1, 0, 3, 25], [4, 0, 0, 0, 0, 6, 20], [6, 0, 0, 0, 1, 1, 25], [0, 0, 0, 0, 3, 4, 10], [2, 0, 0, 0, 1, 16, 15], [4, 0, 0, 2, 1, 1, 25], [5, 0, 0, 0, 2, 1, 25], [3, 0, 0, 0, 3, 1, 15], [6, 0, 0, 0, 0, 3, 25], [3, 0, 0, 0, 2, 2, 10], [0, 0, 0, 0, 2, 9, 10], [4, 0, 0, 0, 0, 8, 20], [6, 0, 0, 0, 1, 2, 25], [4, 0, 0, 0, 2, 1, 20], [5, 0, 0, 0, 1, 1, 25], [2, 0, 0, 0, 3, 2, 15], [4, 0, 0, 1, 0, 6, 20], [0, 3, 0, 0, 0, 45, 25], [3, 0, 0, 0, 1, 10, 25], [4, 0, 0, 1, 2, 1, 15], [4, 0, 0, 0, 3, 1, 10], [1, 1, 0, 0, 0, 45, 25], [2, 0, 0, 0, 0, 36, 20], [3, 0, 0, 0, 0, 25, 15], [4, 3, 0, 2, 0, 5, 15], [6, 0, 0, 0, 0, 5, 15], [1, 0, 0, 0, 0, 50, 25], [5, 0, 0, 0, 3, 1, 7]];
canSubmitScore = true;
bullets = new Array();
bulletsIndex = 0;
shotIndex = 0;
numShotsMade = 0;
player = null;
numShotAtTime = 0;
key_Up = false;
key_Down = false;
key_Left = false;
key_Right = false;
key_Space = false;
key_Pause = false;
key_Quality = false;
key_SpaceReleased = false;
keyPressed = -1;
oldKeyPressed = -1;
keyDelay = 0;
keyTime = getTimer();
playerPaused = false;
gamePaused = false;
howMuchRotated = 0;
lastAngleShot = 900;
bonus_ROTATING = 10;
bonus_LASTANGLESHOT = 10;
bonus_SHOTINREVERSE = 50;
bonus_TOUCHEDBULLET = 100;
bonus_TOUCHEDBULLETINREVERSE = 300;
hasNotMovedSinceLastShot = false;
lives = 5;
points = 0;
levelPoints = 0;
extraLivesCount = 1;
BulletType_BB = 0;
BulletType_Pistol = 1;
BulletType_Magnum = 2;
BulletType_Rifle = 3;
BulletType_Shot = 4;
BulletType_Grenade = 5;
BulletType_Missile = 6;
Mode_Single = 0;
Mode_Semi3 = 1;
Mode_Semi5 = 2;
Mode_Full = 3;
Rounds_plus0 = 0;
Rounds_plus2 = 0;
Rounds_plus4 = 0;
Caliber_x1 = 0;
Caliber_x2 = 1;
Caliber_x4 = 2;
Upgrade_One = 0;
Upgrade_Dual = 1;
Upgrade_FourWay = 2;
Upgrade_EightWay = 3;
shoot = pistol;
mode = 0;
caliber = 0;
rounds = 0;
upgrade = 0;
shotsToMake = 10;
timeLengthOfLevel = 30;
setUpTheLevel(levels[currentLevel]);
startTime = 0;
timeNumber = 0;
timeLeft = timeLengthOfLevel;
updateLevelText(currentLevel + 1);
updateScoreText(points);
updateLivesText(lives);
updateGoal1(shotsToMake);
updateGoal2(timeLeft);
updateWeapon(levels[currentLevel]);
_root.gameOverText.gotoAndStop(1);
_root.popUpText.gotoAndPlay(32);
_root.bgText.gotoAndStop(1);
_root.gameMusic.start(0, 1000);
gameStep = setInterval(main, 10);
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 224 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpBullet(this);
}
Instance of Symbol 231 MovieClip in Frame 4
onClipEvent (load) {
_root.setUpPlayer(this);
}
Symbol 30 MovieClip Frame 1
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 101
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 201
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 301
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 401
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 501
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 601
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 701
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 801
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 901
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 1001
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 1101
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 1201
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 1301
brighty._alpha = _root.optionsBrightness * 10;
play();
Symbol 30 MovieClip Frame 1401
brighty._alpha = _root.optionsBrightness * 10;
gotoAndPlay (1);
Symbol 30 MovieClip Frame 1402
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
_root.gamePaused = true;
play();
Instance of Symbol 30 MovieClip in Symbol 32 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 32 MovieClip Frame 32
_root.reset();
_root.gamePaused = true;
play();
Symbol 32 MovieClip Frame 82
_root.gamePaused = false;
gotoAndStop (1);
Symbol 41 Button
on (release) {
_root.playButtonReleased();
}
Symbol 43 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("Loaded");
}
Symbol 43 MovieClip Frame 2
gotoAndPlay (1);
Symbol 43 MovieClip Frame 3
stop();
Symbol 44 MovieClip Frame 1
play();
Instance of Symbol 30 MovieClip "thisBG" in Symbol 44 MovieClip Frame 1
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 44 MovieClip Frame 29
if (_root.optionsBG == 2) {
thisBG.gotoAndPlay(_root.bg._currentframe);
} else {
thisBG.gotoAndStop(_root.bg._currentframe);
}
stop();
Symbol 44 MovieClip Frame 30
if (_root.optionsBG == 2) {
thisBG.gotoAndPlay(_root.bg._currentframe);
} else {
thisBG.gotoAndStop(_root.bg._currentframe);
}
play();
Symbol 44 MovieClip Frame 101
if (_root.optionsBG == 2) {
thisBG.gotoAndPlay(_root.bg._currentframe);
} else {
thisBG.gotoAndStop(_root.bg._currentframe);
}
stop();
_root.menuMusic.stop();
_root.play();
Symbol 53 MovieClip Frame 304
_root.nextFrame();
Symbol 55 Button
on (release) {
_root.singleTran.play();
_root.testCompleteSound.start();
}
Symbol 56 Button
on (release) {
_root.showPopUp("howToText");
_root.buttonSound.start();
}
Symbol 57 Button
on (release) {
_root.showPopUp("highScoresText");
_root.buttonSound.start();
}
Symbol 58 Button
on (release) {
_root.showPopUp("optionsText");
_root.buttonSound.start();
}
Symbol 59 Button
on (release) {
_root.buttonSound.start();
getURL ("http://armorgames.com", "_blank");
}
Symbol 60 Button
on (release) {
_root.buttonSound.start();
getURL ("http://armorblog.com", "_blank");
}
Symbol 62 Button
on (release) {
getURL ("http://armorbot.com/", "_blank");
}
Symbol 63 Button
on (release) {
_root.buttonSound.start();
play();
}
Symbol 67 Button
on (release) {
_root.buttonSound.start();
gotoAndStop((!(_currentframe - 1)) + 1);
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
play();
Symbol 73 MovieClip Frame 5
gotoAndPlay ("smallBooster");
Symbol 73 MovieClip Frame 6
play();
Symbol 73 MovieClip Frame 9
gotoAndPlay ("largeBooster");
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
play();
Symbol 81 MovieClip Frame 35
stop();
_parent.shipDeath();
Symbol 96 MovieClip Frame 1
play();
Symbol 96 MovieClip Frame 1401
gotoAndPlay (1);
Symbol 96 MovieClip Frame 1402
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
_parent.gamePaused = true;
play();
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 97 MovieClip Frame 32
_parent.reset();
_parent.gamePaused = true;
play();
Symbol 97 MovieClip Frame 82
_parent.gamePaused = false;
gotoAndStop (1);
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
play();
Instance of Symbol 30 MovieClip in Symbol 99 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 99 MovieClip Frame 11
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjUxOWolZSVhJW4lcw";
rankz_t10_send.flashkey = "bGV1ZWVyb3Q";
rankz_t10_receive.onLoad = function (success) {
if (success) {
highScoresPlaceTxt.text = "";
highScoresNameTxt.text = "";
highScoresScoreTxt.text = "";
highScoresLevelTxt.text = "";
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
highScoresPlaceTxt.text = highScoresPlaceTxt.text + ((i + 1) + newline);
highScoresNameTxt.text = highScoresNameTxt.text + (tempv[0] + newline);
highScoresScoreTxt.text = highScoresScoreTxt.text + (tempv[1] + newline);
highScoresLevelTxt.text = highScoresLevelTxt.text + (tempv[3] + newline);
i++;
}
} else {
trace("ERROR");
highScoresNameTxt.text = "Scores could not be loaded";
}
};
highScoresPlaceTxt.text = "";
highScoresNameTxt.text = "Loading High Scores...";
highScoresScoreTxt.text = "";
highScoresLevelTxt.text = "";
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Instance of Symbol 30 MovieClip in Symbol 99 MovieClip Frame 11
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 99 MovieClip Frame 20
stop();
Symbol 99 MovieClip Frame 30
_root.hidePopUp("howToText");
Symbol 102 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 104 Button
on (release) {
_root.buttonSound.start();
getURL ("http://rankz.armorbot.com/bullets/", "_blank");
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
play();
Instance of Symbol 30 MovieClip in Symbol 146 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 146 MovieClip Frame 11
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjUxOWolZSVhJW4lcw";
rankz_t10_send.flashkey = "bGV1ZWVyb3Q";
rankz_t10_receive.onLoad = function (success) {
var _local1 = _root;
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_local1.highScoresText[("highScoresPlace" + (i + 1)) + "Txt"].text = i + 1;
_local1.highScoresText[("highScoresName" + (i + 1)) + "Txt"].text = tempv[0];
_local1.highScoresText[("highScoresScore" + (i + 1)) + "Txt"].text = tempv[1];
_local1.highScoresText[("highScoresLevel" + (i + 1)) + "Txt"].text = tempv[3];
i++;
}
} else {
trace("ERROR");
highScoresName1Txt.text = "Scores could not be loaded";
}
};
highScoresName1Txt.text = "Loading High Scores...";
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Instance of Symbol 30 MovieClip in Symbol 146 MovieClip Frame 11
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 146 MovieClip Frame 20
stop();
Symbol 146 MovieClip Frame 30
_root.hidePopUp("highScoresText");
Symbol 147 Button
on (release) {
_root.buttonSound.start();
gotoAndPlay (21);
}
Symbol 149 Button
on (press) {
gotoAndStop (2);
_quality = "MEDIUM";
_root.optionsQuality = 2;
_root.saveGame();
_root.buttonSound.start();
}
Symbol 150 Button
on (press) {
gotoAndStop (3);
_quality = "LOW";
_root.optionsQuality = 3;
_root.saveGame();
_root.buttonSound.start();
}
Symbol 151 Button
on (press) {
gotoAndStop (1);
_quality = "BEST";
_root.optionsQuality = 1;
_root.saveGame();
_root.buttonSound.start();
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 156 Button
on (press) {
gotoAndStop (2);
_root.optionsSound = 2;
_root.toggleSound(0);
_root.saveGame();
_root.buttonSound.start();
}
Symbol 157 Button
on (press) {
gotoAndStop (1);
_root.optionsSound = 1;
_root.toggleSound(100);
_root.saveGame();
_root.buttonSound.start();
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 161 Button
on (press) {
gotoAndStop (1);
_root.bg.gotoAndStop(_root.bg._totalframes);
_parent.ourBG1.gotoAndStop(_root.bg._currentframe);
_parent.ourBG.gotoAndStop(_root.bg._currentframe);
if (_root._currentframe == _root._totalframes) {
_root.livesText.ltbg.gotoAndStop(_root.bg._currentframe);
_root.scoreText.sbg.gotoAndStop(_root.bg._currentframe);
_root.levelText.lbg.gotoAndStop(_root.bg._currentframe);
_root.pausePopUp.ourBG.gotoAndStop(_root.bg._currentframe);
_root.pausePopUp.ppu.ppuobg.gotoAndStop(_root.bg._currentframe);
}
_root.optionsBG = 1;
_root.saveGame();
_root.buttonSound.start();
}
Symbol 162 Button
on (press) {
gotoAndStop (2);
_root.bg.play();
_parent.ourBG1.gotoAndPlay(_root.bg._currentframe);
_parent.ourBG.gotoAndPlay(_root.bg._currentframe);
if (_root._currentframe == _root._totalframes) {
_root.livesText.ltbg.gotoAndPlay(_root.bg._currentframe);
_root.scoreText.sbg.gotoAndPlay(_root.bg._currentframe);
_root.levelText.lbg.gotoAndPlay(_root.bg._currentframe);
_root.pausePopUp.ourBG.gotoAndPlay(_root.bg._currentframe);
_root.pausePopUp.ppu.ppuobg.gotoAndPlay(_root.bg._currentframe);
}
_parent.ourBG.gotoAndPlay(_root.bg._currentframe);
_root.optionsBG = 2;
_root.saveGame();
_root.buttonSound.start();
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 170 Button
on (press) {
_parent.onEnterFrame = function () {
var _local1 = _parent;
if (_local1._xmouse > _local1.lineToFollow._width) {
_local1.draggy._x = _local1.lineToFollow._width;
} else if (_local1._xmouse < 0) {
_local1.draggy._x = 0;
} else {
_local1.draggy._x = _local1._xmouse;
}
};
}
on (release) {
_parent._parent.handler(_parent._name, _parent.draggy._x, _parent.lineToFollow._width);
_parent.onEnterFrame = null;
}
on (releaseOutside) {
_parent._parent.handler(_parent._name, _parent.draggy._x, _parent.lineToFollow._width);
_parent.onEnterFrame = null;
}
Symbol 173 MovieClip Frame 1
function handler(namename, pospos, widwid) {
var _local1 = _root;
var _local2 = _parent;
_local1.optionsBrightness = Math.round((pospos / widwid) * 9);
_local1.bg.brighty._alpha = _local1.optionsBrightness * 10;
_local2.ourBG1.brighty._alpha = _local1.bg.brighty._alpha;
_local2.ourBG.brighty._alpha = _local1.bg.brighty._alpha;
if (_local1._currentframe == _local1._totalframes) {
_local1.livesText.ltbg.brighty._alpha = _local1.bg.brighty._alpha;
_local1.scoreText.sbg.brighty._alpha = _local1.bg.brighty._alpha;
_local1.levelText.lbg.brighty._alpha = _local1.bg.brighty._alpha;
_local1.pausePopUp.ourBG.brighty._alpha = _local1.bg.brighty._alpha;
_local1.pausePopUp.ppu.ppuobg.brighty._alpha = _local1.bg.brighty._alpha;
}
_local2.ourBG.brighty._alpha = _local1.bg.brighty._alpha;
_local1.saveGame();
}
brightTog.draggy._x = (_root.optionsBrightness / 9) * 135;
stop();
Symbol 175 MovieClip Frame 1
function handler(namename, pospos, widwid) {
var _local1 = _root;
if (namename == "turnAccelTog") {
_local1.optionsTurningAccel = Math.abs((pospos / widwid) - 0.01);
} else if (namename == "accelTog") {
_local1.optionsAccel = Math.abs((pospos / widwid) - 0.01);
}
_local1.player.acceleration = _local1.optionsAccel;
_local1.player.turningAcceleration = _local1.optionsTurningAccel;
_local1.saveGame();
}
accelTog.draggy._x = _root.optionsAccel * 135;
turnAccelTog.draggy._x = _root.optionsTurningAccel * 135;
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 2
play();
Instance of Symbol 30 MovieClip "ourBG" in Symbol 178 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 178 MovieClip Frame 11
o1.gotoAndStop(_root.optionsQuality);
o2.gotoAndStop(_root.optionsBG);
o3.gotoAndStop(_root.optionsSound);
play();
Instance of Symbol 30 MovieClip "ourBG1" in Symbol 178 MovieClip Frame 11
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 178 MovieClip Frame 20
stop();
Symbol 178 MovieClip Frame 30
_root.hidePopUp("optionsText");
Symbol 191 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
vlev = _root.levels[_root.currentLevel];
weaponChip.mode.gotoAndStop(vlev[1] + 1);
weaponChip.upgrade.gotoAndStop(vlev[4] + 1);
vll = vlev[0];
if (vll == 4) {
vll = vll + vlev[3];
} else if (vll == 5) {
vll = vll + (2 + vlev[3]);
} else if (vll == 6) {
vll = vll + 6;
}
iii = 0;
while (iii < (1 + (vlev[4] * 2))) {
weapon.upgrade["g" + (iii + 1)].gotoAndStop(vll + 1);
iii++;
}
stop();
Symbol 217 MovieClip Frame 2
vlev = _root.levels[_root.currentLevel];
weaponChip.mode.gotoAndStop(vlev[1] + 1);
weaponChip.upgrade.gotoAndStop(vlev[4] + 1);
vll = vlev[0];
if (vll == 4) {
vll = vll + vlev[3];
} else if (vll == 5) {
vll = vll + (2 + vlev[3]);
} else if (vll == 6) {
vll = vll + 6;
}
iii = 0;
while (iii < (1 + (vlev[4] * 2))) {
weapon.upgrade["g" + (iii + 1)].gotoAndStop(vll + 1);
iii++;
}
play();
Symbol 217 MovieClip Frame 29
vlev = _root.levels[_root.currentLevel];
weaponChip.mode.gotoAndStop(vlev[1] + 1);
weaponChip.upgrade.gotoAndStop(vlev[4] + 1);
vll = vlev[0];
if (vll == 4) {
vll = vll + vlev[3];
} else if (vll == 5) {
vll = vll + (2 + vlev[3]);
} else if (vll == 6) {
vll = vll + 6;
}
iii = 0;
while (iii < (1 + (vlev[4] * 2))) {
weapon.upgrade["g" + (iii + 1)].gotoAndStop(vll + 1);
iii++;
}
if (_root.numShotsMade >= _root.shotsToMake) {
play();
} else {
stop();
}
Symbol 217 MovieClip Frame 30
vlev = _root.levels[_root.currentLevel];
weaponChip.mode.gotoAndStop(vlev[1] + 1);
weaponChip.upgrade.gotoAndStop(vlev[4] + 1);
vll = vlev[0];
if (vll == 4) {
vll = vll + vlev[3];
} else if (vll == 5) {
vll = vll + (2 + vlev[3]);
} else if (vll == 6) {
vll = vll + 6;
}
iii = 0;
while (iii < (1 + (vlev[4] * 2))) {
weapon.upgrade["g" + (iii + 1)].gotoAndStop(vll + 1);
iii++;
}
play();
Symbol 217 MovieClip Frame 76
vlev = _root.levels[_root.currentLevel];
weaponChip.mode.gotoAndStop(vlev[1] + 1);
weaponChip.upgrade.gotoAndStop(vlev[4] + 1);
vll = vlev[0];
if (vll == 4) {
vll = vll + vlev[3];
} else if (vll == 5) {
vll = vll + (2 + vlev[3]);
} else if (vll == 6) {
vll = vll + 6;
}
iii = 0;
while (iii < (1 + (vlev[4] * 2))) {
weapon.upgrade["g" + (iii + 1)].gotoAndStop(vll + 1);
iii++;
}
if (_root.timeLeft <= 0) {
play();
} else {
stop();
}
Symbol 217 MovieClip Frame 77
vlev = _root.levels[_root.currentLevel];
weaponChip.mode.gotoAndStop(vlev[1] + 1);
weaponChip.upgrade.gotoAndStop(vlev[4] + 1);
vll = vlev[0];
if (vll == 4) {
vll = vll + vlev[3];
} else if (vll == 5) {
vll = vll + (2 + vlev[3]);
} else if (vll == 6) {
vll = vll + 6;
}
iii = 0;
while (iii < (1 + (vlev[4] * 2))) {
weapon.upgrade["g" + (iii + 1)].gotoAndStop(vll + 1);
iii++;
}
play();
Symbol 217 MovieClip Frame 94
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
play();
Symbol 228 MovieClip Frame 5
gotoAndPlay ("smallBooster");
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
play();
Symbol 231 MovieClip Frame 57
stop();
_root.shipDeath();
Symbol 236 Button
on (release) {
_root.buttonSound.start();
if (_currentframe < 125) {
gotoAndPlay (125);
} else if (_currentframe < 208) {
gotoAndPlay (208);
} else if (_currentframe < 290) {
gotoAndPlay (290);
}
}
on (keyPress "<Space>") {
_root.buttonSound.start();
if (_currentframe < 125) {
gotoAndPlay (125);
} else if (_currentframe < 208) {
gotoAndPlay (208);
} else if (_currentframe < 290) {
gotoAndPlay (290);
}
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
_root.gamePaused = true;
play();
Instance of Symbol 30 MovieClip in Symbol 238 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 238 MovieClip Frame 31
_root.changeToNextLevel();
play();
Symbol 238 MovieClip Frame 32
levelTxt.text = "Test " + (_root.currentLevel + 1);
_root.gamePaused = true;
ns = "";
if (_root.upgrade == 1) {
ns = ns + "Dual ";
} else if (_root.upgrade == 2) {
ns = ns + "Four-Way ";
} else if (_root.upgrade == 3) {
ns = ns + "Eight-Way ";
}
if (_root.mode == 1) {
ns = ns + "Semi-Auto ";
} else if (_root.mode == 3) {
ns = ns + "Automatic ";
}
if (_root.rounds > 1) {
if (_root.rounds == 2) {
ns = ns + "Extra-";
}
ns = ns + "Extra-";
if (_root.shoot == _root.shotgun) {
ns = ns + "Shot ";
} else if (_root.shoot == _root.grenade) {
ns = ns + "Shrap ";
}
}
if (_root.shoot == _root.bb) {
ns = ns + "BB ";
} else if (_root.shoot == _root.pistol) {
ns = ns + "Pistol ";
} else if (_root.shoot == _root.magnum) {
ns = ns + "Magnum ";
} else if (_root.shoot == _root.rifle) {
ns = ns + "Rifle ";
} else if (_root.shoot == _root.shotgun) {
ns = ns + "Shotgun ";
} else if (_root.shoot == _root.grenade) {
ns = ns + "Grenade ";
} else if (_root.shoot == _root.missile) {
ns = ns + "Missile ";
}
ns = ns + "shot";
if (_root.shotsToMake > 1) {
ns = ns + "s";
}
goalTxt.text = ns;
mlev = _root.levels[_root.currentLevel];
weaponChip.mode.gotoAndStop(mlev[1] + 1);
weaponChip.upgrade.gotoAndStop(mlev[4] + 1);
mll = mlev[0];
if (mll == 4) {
mll = mll + mlev[3];
} else if (mll == 5) {
mll = mll + (2 + mlev[3]);
} else if (mll == 6) {
mll = mll + 6;
}
if (mlev[4] == 3) {
ii = 0;
while (ii < 8) {
weaponChip.upgrade["g" + (ii + 1)].gotoAndStop(mll + 1);
ii++;
}
} else {
ii = 0;
while (ii < (1 + (mlev[4] * 2))) {
weaponChip.upgrade["g" + (ii + 1)].gotoAndStop(mll + 1);
ii++;
}
}
play();
Instance of Symbol 30 MovieClip in Symbol 238 MovieClip Frame 32
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 238 MovieClip Frame 125
va = _root.shotsToMake;
vas = String(va);
goal1Chip.gotoAndStop(1);
if (va > 1) {
goal1Chip.gotoAndStop(2);
}
goal1Chip.val.gotoAndStop(vas.length);
i = 0;
while (i < vas.length) {
goal1Chip.val["n" + (i + 1)].gotoAndStop(int(vas.charAt(i)) + 1);
i++;
}
goalTxt.text = ("Shoot " + va) + " Time";
if (va > 1) {
goalTxt.text = goalTxt.text + "s";
}
play();
Symbol 238 MovieClip Frame 208
va = _root.timeLeft;
vas = String(va);
goal2Chip.gotoAndStop(1);
if (va > 1) {
goal2Chip.gotoAndStop(2);
}
goal2Chip.val.gotoAndStop(vas.length);
i = 0;
while (i < vas.length) {
goal2Chip.val["n" + (i + 1)].gotoAndStop(int(vas.charAt(i)) + 1);
i++;
}
goalTxt.text = ("Avoid your " + _root.shotsToMake) + " shot";
if (_root.shotsToMake > 1) {
goalTxt.text = goalTxt.text + "s";
}
goalTxt.text = goalTxt.text + ((" for " + va) + " second");
if (va > 1) {
goalTxt.text = goalTxt.text + "s";
}
play();
Symbol 238 MovieClip Frame 330
_root.gamePaused = false;
if (_root.currentLevel < 3) {
_root.showMesText.play();
}
_root.bgText.play();
gotoAndStop (1);
Symbol 239 Button
on (release) {
_root.buttonSound.start();
_root.gameOverText.gotoAndPlay(2);
_parent.gotoAndStop(1);
}
Symbol 240 Button
on (release) {
_root.buttonSound.start();
_root.showPopUp("optionsText");
}
Symbol 241 Button
on (release) {
_root.buttonSound.start();
_parent.play();
}
Instance of Symbol 30 MovieClip "ppuobg" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(_root.bg._currentframe);
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
_root.gamePaused = true;
_root.gameMusic.stop();
play();
Instance of Symbol 30 MovieClip "ourBG" in Symbol 244 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 244 MovieClip Frame 24
stop();
Symbol 244 MovieClip Frame 25
play();
Symbol 244 MovieClip Frame 47
_root.gamePaused = false;
_root.gameMusic.start(0, 1000);
gotoAndStop (1);
Symbol 245 Button
on (release) {
_root.buttonSound.start();
_root.gameOverButtonReleased();
}
Symbol 246 Button
on (release) {
_root.submitScore(userNameTxt.text);
_root.playerName = userNameTxt.text;
_root.saveGame();
_root.buttonSound.start();
}
Symbol 247 Button
on (release) {
_root.buttonSound.start();
_root.continueButtonReleased();
}
on (rollOver) {
mesText.gotoAndStop(2);
}
on (rollOut) {
mesText.gotoAndStop(1);
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
play();
Instance of Symbol 30 MovieClip in Symbol 294 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 294 MovieClip Frame 11
_root.gameMusic.stop();
_root.gameOverMusic.start();
userNameTxt.text = _root.playerName;
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjUxOWolZSVhJW4lcw";
rankz_t10_send.flashkey = "bGV1ZWVyb3Q";
rankz_t10_receive.onLoad = function (success) {
var _local1 = _root;
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_local1.gameOverText[("highScoresPlace" + (i + 1)) + "Txt"].text = i + 1;
_local1.gameOverText[("highScoresName" + (i + 1)) + "Txt"].text = tempv[0];
_local1.gameOverText[("highScoresScore" + (i + 1)) + "Txt"].text = tempv[1];
_local1.gameOverText[("highScoresLevel" + (i + 1)) + "Txt"].text = tempv[3];
i++;
}
} else {
trace("ERROR");
highScoresName1Txt.text = "Scores could not be loaded";
}
};
highScoresName1Txt.text = "Loading High Scores...";
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Instance of Symbol 30 MovieClip in Symbol 294 MovieClip Frame 11
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 294 MovieClip Frame 20
stop();
Symbol 294 MovieClip Frame 25
_root.gameOverMusic.stop();
_root.gotoMenu();
Symbol 294 MovieClip Frame 26
play();
Symbol 294 MovieClip Frame 36
_root.gameOverMusic.stop();
_root.gameMusic.start(0, 1000);
_root.gotoRetry();
Symbol 296 Button
on (release) {
_root.buttonSound.start();
_root.winGameOverButtonReleased();
}
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
play();
Instance of Symbol 30 MovieClip in Symbol 340 MovieClip Frame 2
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 340 MovieClip Frame 11
_root.gameMusic.stop();
userNameTxt.text = _root.playerName;
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjUxOWolZSVhJW4lcw";
rankz_t10_send.flashkey = "bGV1ZWVyb3Q";
rankz_t10_receive.onLoad = function (success) {
var _local1 = _root;
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_local1.winText[("highScoresPlace" + (i + 1)) + "Txt"].text = i + 1;
_local1.winText[("highScoresName" + (i + 1)) + "Txt"].text = tempv[0];
_local1.winText[("highScoresScore" + (i + 1)) + "Txt"].text = tempv[1];
_local1.winText[("highScoresLevel" + (i + 1)) + "Txt"].text = tempv[3];
i++;
}
} else {
trace("ERROR");
highScoresName1Txt.text = "Scores could not be loaded";
}
};
highScoresName1Txt.text = "Loading High Scores...";
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Instance of Symbol 30 MovieClip in Symbol 340 MovieClip Frame 11
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 340 MovieClip Frame 20
stop();
Symbol 340 MovieClip Frame 25
_root.gameOverMusic.stop();
_root.gotoMenu();
Symbol 340 MovieClip Frame 26
play();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
play();
Symbol 342 MovieClip Frame 90
gotoAndStop (1);
Symbol 354 MovieClip Frame 1
stop();
Instance of Symbol 30 MovieClip "sbg" in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 362 MovieClip Frame 1
stop();
Instance of Symbol 30 MovieClip "ltbg" in Symbol 362 MovieClip Frame 1
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}
Symbol 364 MovieClip Frame 1
stop();
Instance of Symbol 30 MovieClip "lbg" in Symbol 364 MovieClip Frame 1
onClipEvent (load) {
if (_root.optionsBG == 2) {
this.gotoAndPlay(_root.bg._currentframe);
} else {
this.gotoAndStop(_root.bg._currentframe);
}
}