Frame 1
fscommand ("fullscreen", false);
fscommand ("allowscale", false);
fscommand ("showmenu", false);
fscommand ("trapallkeys", false);
stopAllSounds();
menuPlay = false;
tutorialStatus = false;
IntervalsAreSet = false;
suara = true;
Frame 2
_root.gotoAndPlay(1);
Frame 3
safeTick = 0;
safeLow = 0;
safeHigh = 4000;
safeCounting = 0;
safeDone = 0;
currUrl = _url.toLowerCase();
if (currUrl.indexOf("game.arcadebomb.com") > 0) {
btnPlayMore._visible = false;
}
if (currUrl.indexOf("ungrounded.net") > 0) {
btnPlayMore._visible = false;
}
stop();
viniCheat = false;
_quality = "HIGH";
sndWeapon1 = new Sound();
sndWeapon1.attachSound("Weapon1.mp3");
sndWalk = new Sound();
sndWalk.attachSound("Walk.wav");
sndWeapon2 = new Sound();
sndWeapon2.attachSound("Weapon2.mp3");
sndButton = new Sound();
sndButton.attachSound("Button.mp3");
sndExplode1 = new Sound();
sndExplode1.attachSound("Explode1.mp3");
sndExplode2 = new Sound();
sndExplode2.attachSound("Explode2.mp3");
sndWater = new Sound();
sndWater.attachSound("Water.mp3");
sndLose = new Sound();
sndLose.attachSound("Lose.mp3");
sndWin = new Sound();
sndWin.attachSound("Win.mp3");
sndMusic1 = new Sound(music_track);
sndMusic1.attachSound("Music1.mp3");
sndMusic2 = new Sound(music_track);
sndMusic2.attachSound("Music2.mp3");
sndWrong = new Sound();
sndWrong.attachSound("wrong.wav");
if (!menuPlay) {
stopAllSounds();
menuPlay = true;
sndMusic1.start(0, 50000);
sndMusic1.setVolume(100);
}
var gameLevel = 3;
var money = 0;
var enemySpawn = 1;
var playerLife = 5;
var playerBomb = 3;
if (viniCheat == false) {
player.ammoType = "cannon";
player.ammoType = "smart";
player.ammoType = "fire";
player.ammoType = "bacil";
player.ammoType = "fire";
player.fireLevel = 1;
player.fireRot = 1;
player.bacilLevel = 0;
player.cannonLevel = 0;
player.cannonPos = 1;
player.cannonRot = 0;
player.smartLevel = 0;
player.smartRot = 1;
player.bombType = "wave";
player.bombWaveLevel = 1;
player.bombLightLevel = 0;
} else {
player.ammoType = "bacil";
player.ammoType = "cannon";
player.ammoType = "smart";
player.ammoType = "bacil";
player.ammoType = "fire";
player.bacilLevel = 4;
player.fireLevel = 4;
player.fireRot = 1;
player.cannonLevel = 4;
player.cannonPos = 1;
player.cannonRot = 0;
player.smartLevel = 3;
player.smartRot = 1;
player.bombType = "wave";
player.bombWaveLevel = 3;
player.bombLightLevel = 3;
}
btnStart.onPress = function () {
sndButton.start(0, 1);
gameLevel = 1;
enemySpawn = 1;
tutorialWill = "level1";
_root.gotoAndStop("TUTORIAL");
};
btnPlayMore.onPress = function () {
getURL ("http://www.arcadebomb.com/play/avo-de.html", "_blank");
};
btnUnlimited.onPress = function () {
sharedobj = SharedObject.getLocal("avodegame");
if (sharedobj.data.tpass != undefined) {
sndButton.start(0, 1);
gameLevel = 100;
tutorialWill = "unlimited";
_root.gotoAndStop("TUTORIAL");
} else {
sndWrong.start();
_root.gotoAndStop("CREDIT");
}
};
btnTutorial.onPress = function () {
sndButton.start(0, 1);
gameLevel = 1;
tutorialWill = "menu";
_root.gotoAndStop("TUTORIAL");
};
btnCredit.onPress = function () {
sndButton.start(0, 1);
_root.gotoAndStop("CREDIT");
};
Frame 4
stop();
Frame 5
stop();
btnBack.onPress = function () {
sndButton.start(0, 1);
_root.gotoAndStop("MENU");
};
Frame 7
stop();
stop();
stop();
gameStat = "pause";
menuPlay = false;
player.stat = "spawn";
player.gotoAndStop("spawn");
if (gameLevel == 1) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(1);
design.gotoAndStop(1);
commet.gotoAndStop(3);
} else if (gameLevel == 2) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(2);
design.gotoAndStop(2);
commet.gotoAndStop(7);
} else if (gameLevel == 3) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(3);
design.gotoAndStop(3);
commet.gotoAndStop(6);
} else if (gameLevel == 4) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(4);
design.gotoAndStop(4);
commet.gotoAndStop(5);
} else if (gameLevel == 5) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(5);
design.gotoAndStop(5);
commet.gotoAndStop(4);
} else if (gameLevel == 6) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(6);
design.gotoAndStop(6);
commet.gotoAndStop(8);
} else if (gameLevel == 7) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(7);
design.gotoAndStop(7);
commet.gotoAndStop(6);
} else if (gameLevel == 8) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(8);
design.gotoAndStop(8);
commet.gotoAndStop(1);
} else if (gameLevel == 9) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(9);
design.gotoAndStop(9);
commet.gotoAndStop(3);
} else if (gameLevel == 10) {
guiInfo.gotoAndStop(1);
land.gotoAndStop(10);
design.gotoAndStop(10);
commet.gotoAndStop(4);
} else if (gameLevel == 100) {
guiInfo.gotoAndStop(2);
land.gotoAndStop(11);
design.gotoAndStop(11);
commet.gotoAndStop(4);
}
player._x = 200;
player._y = 200;
guiWeapon.gotoAndStop("START");
moneyUpdate();
if (playerBomb < 3) {
playerBomb++;
playerBombCheck();
}
distX = 0;
distY = 0;
radians = 0;
player.speedX = 0;
player.speedY = 0;
player.wallLeft = false;
player.wallRight = false;
player.wallUp = false;
player.wallDown = false;
ammoCount = 1;
particleCount = 1;
particleColor = 1;
targetCount = 0;
function onEnterFrame() {
if (gameStat == "play") {
playerLifeCycle();
enemyLifeCycle();
ammoLifeCycle();
particleLifeCycle();
fix();
newDesign();
levelBuilder();
}
if (gameStat == "pause") {
}
}
function newDesign() {
maxlam = 5;
if (gameLevel == 10) {
maxlam = 9;
}
lam = 1;
while (lam < maxlam) {
pos = new Object();
pos.x = _root.design["lam" + lam]._x;
pos.y = _root.design["lam" + lam]._y;
design.localToGlobal(pos);
distX = player._x - pos.x;
distY = player._y - pos.y;
radians = Math.atan2(distY, distX);
if (gameLevel != 7) {
_root.design["lam" + lam]._rotation = (radians * 180) / Math.PI;
}
if (gameLevel == 4) {
distdelta = Math.abs(distX) + Math.abs(distY);
if ((distdelta < 20) || (distdelta > 200)) {
if (_root.design["lam" + lam]._currentframe != 2) {
_root.design["lam" + lam].gotoAndStop(2);
}
} else {
_root.design["lam" + lam].gotoAndStop(1);
}
}
if (gameLevel == 7) {
if ((Math.abs(distX) > 80) || (Math.abs(distY) > 80)) {
if (_root.design["lam" + lam]._currentframe != 2) {
_root.design["lam" + lam].gotoAndStop(2);
}
} else if (_root.design["lam" + lam]._currentframe != 3) {
_root.design["lam" + lam].gotoAndStop(3);
}
}
if (gameLevel == 9) {
if (_root.design["lam" + lam]._currentframe == 2) {
_root.design["lam" + lam].gotoAndPlay(3);
}
}
if (gameLevel == 10) {
distdelta = Math.abs(distX) + Math.abs(distY);
if ((distdelta < 20) || (distdelta > 200)) {
if (_root.design["lam" + lam]._currentframe != 2) {
_root.design["lam" + lam].gotoAndStop(2);
}
} else {
if (((lam == 1) || (lam == 2)) && (distY > 0)) {
_root.design["lam" + lam].gotoAndStop(1);
}
if (((lam == 3) || (lam == 4)) && (distY < 0)) {
_root.design["lam" + lam].gotoAndStop(1);
}
if (lam > 4) {
_root.design["lam" + lam].gotoAndStop(1);
}
}
}
lam++;
}
}
function fix() {
design._x = land._x;
design._y = land._y;
rot._rotation = player._rotation;
}
function rapidFire() {
if (gunRapidFire == true) {
if (gunRapidFireCount < 1) {
if ((gameStat == "play") && (player.Stat != "hide")) {
sndWeapon2.start(0, 1);
playerShoot(player.ammoType, player);
}
gunRapidFireCount = 1;
} else {
gunRapidFireCount--;
}
}
}
function onMouseUp() {
gunRapidFire = false;
}
function onMouseDown() {
if (doubleFire == true) {
gunRapidFire = true;
gunRapidFireCount = 1;
}
}
function moneyUpdate() {
enoughmoney = false;
if ((_root.player.fireLevel == 1) && (money >= 80)) {
enoughmoney = true;
}
if ((_root.player.fireLevel == 2) && (money >= 250)) {
enoughmoney = true;
}
if ((_root.player.fireLevel == 3) && (money >= 840)) {
enoughmoney = true;
}
if ((_root.player.bacilLevel == 0) && (money >= 140)) {
enoughmoney = true;
}
if ((_root.player.bacilLevel == 1) && (money >= 200)) {
enoughmoney = true;
}
if ((_root.player.bacilLevel == 2) && (money >= 420)) {
enoughmoney = true;
}
if ((_root.player.bacilLevel == 3) && (money >= 950)) {
enoughmoney = true;
}
if ((_root.player.cannonLevel == 0) && (money >= 500)) {
enoughmoney = true;
}
if ((_root.player.cannonLevel == 1) && (money >= 500)) {
enoughmoney = true;
}
if ((_root.player.cannonLevel == 2) && (money >= 500)) {
enoughmoney = true;
}
if ((_root.player.cannonLevel == 3) && (money >= 500)) {
enoughmoney = true;
}
if ((_root.player.smartLevel == 0) && (money >= 750)) {
enoughmoney = true;
}
if ((_root.player.smartLevel == 1) && (money >= 500)) {
enoughmoney = true;
}
if ((_root.player.smartLevel == 2) && (money >= 500)) {
enoughmoney = true;
}
if (enoughmoney) {
if (hMoney._currentframe == 1) {
commet.gotoAndStop(9);
guiInfo.buyShop.play();
hMoney.gotoAndStop(2);
}
} else if (hMoney._currentframe == 2) {
hMoney.gotoAndStop(1);
}
if (money < 10) {
hMoney.txtMoney.text = "000" + money;
} else if (money < 100) {
hMoney.txtMoney.text = "00" + money;
} else if (money < 1000) {
hMoney.txtMoney.text = "0" + money;
} else {
hMoney.txtMoney.text = money;
}
}
function hilang() {
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 4)) == "ammo")) {
mcAmmo = _root[h];
mcAmmo._visible = false;
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 6)) == "target")) {
target = _root[h];
target._visible = false;
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 8)) == "particle")) {
mcParticle = _root[h];
mcParticle._visible = false;
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 5)) == "enemy")) {
mcEnemy = _root[h];
mcEnemy._visible = false;
}
}
}
function showObject() {
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 6)) == "target")) {
target = _root[h];
target._visible = true;
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 4)) == "ammo")) {
mcAmmo = _root[h];
mcAmmo._visible = true;
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 8)) == "particle")) {
mcParticle = _root[h];
mcParticle._visible = true;
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 5)) == "enemy")) {
mcEnemy = _root[h];
mcEnemy._visible = true;
}
}
}
function removeObject() {
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 6)) == "target")) {
target = _root[h];
target.removeMovieClip();
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 4)) == "ammo")) {
mcAmmo = _root[h];
mcAmmo.removeMovieClip();
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 8)) == "particle")) {
mcParticle = _root[h];
mcParticle.removeMovieClip();
}
}
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 5)) == "enemy")) {
mcEnemy = _root[h];
mcEnemy.removeMovieClip();
}
}
}
function callTime1() {
if (callOrder == 1) {
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 4);
} else if (callOrder == 2) {
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 4);
} else if (callOrder == 3) {
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 4);
} else if (callOrder == 4) {
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 4);
} else if (callOrder == 5) {
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 4);
} else if (callOrder == 6) {
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 4);
timeDelay = 3;
}
callOrder++;
}
function callTime2() {
if (callOrder == 1) {
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 4);
} else if (callOrder == 2) {
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 4);
} else if (callOrder == 3) {
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 4);
} else if (callOrder == 4) {
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 4);
} else if (callOrder == 5) {
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 4);
} else if (callOrder == 6) {
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 4);
} else if (callOrder == 7) {
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 4);
} else if (callOrder == 8) {
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 4);
} else if (callOrder == 9) {
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 4);
} else if (callOrder == 10) {
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 4);
} else if (callOrder == 11) {
createEnemy3(design.posUp11, design.posDown11, 0, 5, 90, 4);
} else if (callOrder == 12) {
createEnemy3(design.posUp12, design.posDown12, 0, 5, 90, 4);
timeDelay = 3;
}
callOrder++;
}
function callTime3() {
if (callOrder == 1) {
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 4);
} else if (callOrder == 2) {
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 4);
} else if (callOrder == 3) {
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 4);
} else if (callOrder == 4) {
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 4);
} else if (callOrder == 5) {
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 4);
} else if (callOrder == 6) {
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 4);
timeDelay = 3;
}
callOrder++;
}
function callTime4() {
if (callOrder == 1) {
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 4);
} else if (callOrder == 2) {
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 4);
} else if (callOrder == 3) {
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 4);
} else if (callOrder == 4) {
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 4);
} else if (callOrder == 5) {
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 4);
} else if (callOrder == 6) {
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 4);
} else if (callOrder == 7) {
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 4);
} else if (callOrder == 8) {
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 4);
} else if (callOrder == 9) {
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 4);
} else if (callOrder == 10) {
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 4);
} else if (callOrder == 11) {
createEnemy3(design.posDown11, design.posUp11, 0, -5, -90, 4);
} else if (callOrder == 12) {
createEnemy3(design.posDown12, design.posUp12, 0, -5, -90, 4);
timeDelay = 3;
}
callOrder++;
}
function levelBuilder(typ, from) {
safeTick++;
if (safeTick > 400) {
safeCounting = 0;
safeTick = 0;
ss = 0;
while (ss <= 3200) {
if (_root["enemy" + ss]) {
safeCounting++;
}
ss++;
}
if ((safeCounting == 0) && (_root.enemyScreen > 0)) {
safeDone++;
_root.commet.gotoAndStop(14);
_root.enemyScreen = 0;
}
}
if (gameLevel == 1) {
level1();
} else if (gameLevel == 2) {
level2();
} else if (gameLevel == 3) {
level3();
} else if (gameLevel == 4) {
level4();
} else if (gameLevel == 5) {
level5();
} else if (gameLevel == 6) {
level6();
} else if (gameLevel == 7) {
level7();
} else if (gameLevel == 8) {
level8();
} else if (gameLevel == 9) {
level9();
} else if (gameLevel == 10) {
level10();
} else if (gameLevel == 100) {
player.bacilLevel = 4;
player.fireLevel = 4;
player.cannonLevel = 4;
player.smartLevel = 3;
player.bombWaveLevel = 3;
player.bombLightLevel = 3;
levelUnlimited();
}
}
function debug() {
for (z in this) {
if ((typeof(eval (z)) == "movieclip") && ((substring(z, 1, 4)) == "ammo")) {
mcAmmo = _root[z];
}
}
for (z in this) {
if ((typeof(eval (z)) == "movieclip") && ((substring(z, 1, 5)) == "enemy")) {
mcEnemy = _root[z];
}
}
gameStat = "pause";
}
function time1() {
if (gameStat == "play") {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "enemy")) {
mcEnemy = _root[i];
if (player.stat != "hide") {
if (mcEnemy.typ == "twister") {
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
} else if (mcEnemy.typ == "dia") {
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation + 180, 8);
}
}
}
}
}
}
function time2() {
if (gameStat == "play") {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "enemy")) {
mcEnemy = _root[i];
if (player.stat != "hide") {
if (mcEnemy.typ == "snakeHead") {
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation, 8);
}
}
}
}
}
}
function time3() {
if (gameStat == "play") {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "enemy")) {
mcEnemy = _root[i];
if (player.stat != "hide") {
if (mcEnemy.typ == "attack1") {
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
} else if (mcEnemy.typ == "attack2") {
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation, 8);
}
}
}
}
}
}
function time4() {
if (gameStat == "play") {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "ammo")) {
mcAmmo = _root[i];
if (mcAmmo.typ == "smart") {
if ((mcAmmo.aim != undefined) && (mcAmmo.will != false)) {
createParticleB(mcAmmo._x, mcAmmo._y, mcAmmo._rotation);
}
}
if (mcAmmo.typ == "cannon") {
createParticle1(mcAmmo._x, mcAmmo._y, mcAmmo._rotation);
}
}
}
}
}
function time5() {
if (gameStat == "play") {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "ammo")) {
mcAmmo = _root[i];
if (mcAmmo.typ == "fire") {
createParticleX(mcAmmo._x, mcAmmo._y, mcAmmo._rotation);
}
}
}
}
}
player.robo.foot.walk.stop();
soundWalk.gotoAndStop(1);
warnWeapon.gotoAndStop("HIDE");
warnPause.gotoAndStop("HIDE");
var lam = 1;
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
if ((gameStat == "play") && (player.Stat != "hide")) {
sndWeapon2.start(0, 1);
playerShoot(player.ammoType, player);
}
doubleFire = false;
};
mouseListener.onMouseUp = function () {
doubleFire = true;
};
Mouse.addListener(mouseListener);
if (!IntervalsAreSet) {
intervalRapid = setInterval(this, "rapidFire", 50);
}
var gameKey = new Object();
gameKey.onKeyDown = function () {
if ((Key.getCode() == 66) | (Key.getCode() == 98)) {
if (gameLevel != 100) {
hilang();
gameStat = "pause";
hilang();
guiWeapon.gotoAndStop("VISIBLE");
hilang();
}
}
if ((gameStat == "play") && (player.stat != "hide")) {
if (playerBomb > 0) {
if (Key.getCode() == 32) {
playerBomb = playerBomb - 1;
playerBombCheck();
if (bombWave.stat == "none") {
if (player.bombType == "wave") {
if (player.bombWaveLevel == 1) {
bombWave.gotoAndStop(2);
} else if (player.bombWaveLevel == 2) {
bombWave.gotoAndStop(3);
} else if (player.bombWaveLevel == 3) {
bombWave.gotoAndStop(4);
}
}
}
if (player.bombType == "light") {
if (player.bombWaveLevel == 1) {
bombLightExplode(5);
} else if (player.bombWaveLevel == 2) {
bombLightExplode(8);
} else if (player.bombWaveLevel == 3) {
bombLightExplode(11);
}
}
}
}
if (Key.getCode() == 49) {
player.ammoType = "fire";
}
if (Key.getCode() == 50) {
if (player.bacilLevel > 0) {
player.ammoType = "bacil";
} else {
gameStat = "pause";
hideObject();
warnWeapon.gotoAndStop("VISIBLE");
}
}
if (Key.getCode() == 51) {
if (player.cannonLevel > 0) {
player.ammoType = "cannon";
} else {
gameStat = "pause";
hideObject();
warnWeapon.gotoAndStop("VISIBLE");
}
}
if (Key.getCode() == 52) {
if (player.smartLevel > 0) {
player.ammoType = "smart";
} else {
gameStat = "pause";
hideObject();
warnWeapon.gotoAndStop("VISIBLE");
}
}
if (Key.getCode() == 53) {
player.bombType = "wave";
}
if ((Key.getCode() == 80) || (Key.getCode() == 112)) {
gameStat = "pause";
hideObject();
warnPause.gotoAndStop("VISIBLE");
}
if (Key.getCode() == 54) {
if (player.bombLightLevel > 0) {
player.bombType = "light";
} else {
gameStat = "pause";
hideObject();
warnWeapon.gotoAndStop("VISIBLE");
}
}
if (Key.getCode() == 81) {
if (_quality == "HIGH") {
_quality = "LOW";
qind.gotoAndPlay("low");
} else if (_quality == "LOW") {
_quality = "MEDIUM";
qind.gotoAndPlay("me");
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
qind.gotoAndPlay("high");
}
}
}
};
Key.addListener(gameKey);
moneyUpdate();
enemyScreen = 0;
enemyCount = 0;
destroyAll = true;
btnDebug.onPress = function () {
debug();
};
interval1 = setInterval(this, "time1", 500);
interval2 = setInterval(this, "time2", 800);
interval3 = setInterval(this, "time3", 1000);
interval4 = setInterval(this, "time4", 40);
interval5 = setInterval(this, "time5", 0.01);
IntervalsAreSet = true;
function playerLifeCheck() {
if (playerLife == 5) {
guiLife.gotoAndStop(1);
} else if (playerLife == 4) {
guiLife.gotoAndStop(2);
} else if (playerLife == 3) {
guiLife.gotoAndStop(3);
} else if (playerLife == 2) {
guiLife.gotoAndStop(4);
} else if (playerLife == 1) {
guiLife.gotoAndStop(5);
} else if (playerLife == 0) {
guiLife.gotoAndStop(6);
}
}
function playerBombCheck() {
if (playerBomb == 3) {
guiBomb.gotoAndStop(1);
} else if (playerBomb == 2) {
guiBomb.gotoAndStop(2);
} else if (playerBomb == 1) {
guiBomb.gotoAndStop(3);
} else if (playerBomb == 0) {
guiBomb.gotoAndStop(4);
}
}
function playerExplode() {
create360Explode(player._x, player._y);
playerLife = playerLife - 1;
playerLifeCheck();
if (playerLife > 0) {
player.gotoAndStop("HIDE");
delayExplode.gotoAndPlay(2);
} else {
player.gotoAndStop("HIDE");
delayLose.gotoAndPlay(2);
}
}
function playerLifeCycle() {
distX = _xmouse - player._x;
distY = _ymouse - player._Y;
radians = Math.atan2(distY, distX);
player._rotation = (radians * 180) / Math.PI;
if (land.hitTest((player._x - (player._width / 2)) - 1, player._y, true)) {
player.speedX = 0;
player.wallLeft = true;
player.speedX = player.speedX * -1;
} else {
player.wallLeft = false;
}
if (land.hitTest((player._x + (player._width / 2)) + 1, player._y, true)) {
player.speedX = 0;
player.wallRight = true;
player.speedX = player.speedX * -1;
} else {
player.wallRight = false;
}
if (land.hitTest(player._x, player._y - (player._height / 2), true)) {
player.speedY = 0;
player.wallUp = true;
player.speedY = player.speedY * -1;
} else {
player.wallUp = false;
}
if (land.hitTest(player._x, (player._y + (player._height / 2)) + 2, true)) {
player.speedY = 0;
player.wallDown = true;
player.speedY = player.speedY * -1;
} else {
player.wallDown = false;
}
if (player.stat != "hide") {
if ((Key.isDown(65) || (Key.isDown(97))) || (Key.isDown(37))) {
if ((player._rotation > -135) && (player._rotation < -45)) {
player.robo.foot.gotoAndStop(2);
} else if ((player._rotation > 45) && (player._rotation < 135)) {
player.robo.foot.gotoAndStop(2);
} else if ((player._rotation > -45) && (player._rotation < 45)) {
player.robo.foot.gotoAndStop(1);
} else if ((player._rotation > 135) && (player._rotation < -135)) {
player.robo.foot.gotoAndStop(1);
}
player.speedX = player.speedX - 0.6;
player.wallRight = false;
}
if ((Key.isDown(68) || (Key.isDown(100))) || (Key.isDown(39))) {
if ((player._rotation > -135) && (player._rotation < -45)) {
player.robo.foot.gotoAndStop(2);
} else if ((player._rotation > 45) && (player._rotation < 135)) {
player.robo.foot.gotoAndStop(2);
} else if ((player._rotation > -45) && (player._rotation < 45)) {
player.robo.foot.gotoAndStop(1);
} else if ((player._rotation > 135) && (player._rotation < -135)) {
player.robo.foot.gotoAndStop(1);
}
player.speedX = player.speedX + 0.6;
player.wallLeft = false;
}
if ((Key.isDown(87) || (Key.isDown(119))) || (Key.isDown(38))) {
if ((player._rotation > -135) && (player._rotation < -45)) {
player.robo.foot.gotoAndStop(1);
} else if ((player._rotation > 45) && (player._rotation < 135)) {
player.robo.foot.gotoAndStop(1);
} else if ((player._rotation > -45) && (player._rotation < 45)) {
player.robo.foot.gotoAndStop(2);
} else if ((player._rotation > 135) && (player._rotation < -135)) {
player.robo.foot.gotoAndStop(2);
}
player.speedY = player.speedY - 0.6;
player.wallDown = false;
}
if ((Key.isDown(83) || (Key.isDown(115))) || (Key.isDown(40))) {
if ((player._rotation > -135) && (player._rotation < -45)) {
player.robo.foot.gotoAndStop(1);
} else if ((player._rotation > 45) && (player._rotation < 135)) {
player.robo.foot.gotoAndStop(1);
} else if ((player._rotation > -45) && (player._rotation < 45)) {
player.robo.foot.gotoAndStop(2);
} else if ((player._rotation > 135) && (player._rotation < -135)) {
player.robo.foot.gotoAndStop(2);
}
player.speedY = player.speedY + 0.6;
player.wallUp = false;
}
if (((((((Key.isDown(65) || (Key.isDown(97))) || (Key.isDown(68))) || (Key.isDown(100))) || (Key.isDown(87))) || (Key.isDown(119))) || (Key.isDown(83))) || (Key.isDown(115))) {
player.robo.foot.walk.play();
if (soundWalk._currentframe == 1) {
soundWalk.gotoAndPlay(2);
}
} else {
player.robo.foot.walk.stop();
}
}
player.speedX = player.speedX * 0.91;
player.speedY = player.speedY * 0.91;
if ((player.wallLeft == false) && (player.wallRight == false)) {
land._x = land._x - player.speedX;
}
if ((player.wallUp == false) && (player.wallDown == false)) {
land._y = land._y - player.speedY;
}
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 6)) == "target")) {
mcTarget = _root[i];
if ((player.wallLeft == false) && (player.wallRight == false)) {
mcTarget._x = mcTarget._x - player.speedX;
}
if ((player.wallUp == false) && (player.wallDown == false)) {
mcTarget._y = mcTarget._y - player.speedY;
}
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "ammo")) {
mcAmmo = _root[i];
if ((player.wallLeft == false) && (player.wallRight == false)) {
mcAmmo._x = mcAmmo._x - player.speedX;
}
if ((player.wallUp == false) && (player.wallDown == false)) {
mcAmmo._y = mcAmmo._y - player.speedY;
}
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 8)) == "particle")) {
mcParticle = _root[i];
if ((player.wallLeft == false) && (player.wallRight == false)) {
mcParticle._x = mcParticle._x - player.speedX;
}
if ((player.wallUp == false) && (player.wallDown == false)) {
mcParticle._y = mcParticle._y - player.speedY;
}
}
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "enemy")) {
mcEnemy = _root[i];
if ((player.wallLeft == false) && (player.wallRight == false)) {
mcEnemy._x = mcEnemy._x - player.speedX;
}
if ((player.wallUp == false) && (player.wallDown == false)) {
mcEnemy._y = mcEnemy._y - player.speedY;
}
}
}
if (player._y < 200) {
land._y = land._y + (200 - player._y);
player._y = 200;
}
if (player._y > 200) {
land._y = land._y + (200 - player._y);
player._y = 200;
}
if (player._x < 200) {
land._x = land._x + (200 - player._x);
player._x = 200;
}
if (player._x > 200) {
land._x = land._x + (200 - player._x);
player._x = 200;
}
if ((player.speedX > 0) && (player.speedX < 0.1)) {
player.speedX = 0;
}
if ((player.speedX > -0.1) && (player.speedX < 0)) {
player.speedX = 0;
}
player._x = 200;
if ((player.speedY > 0) && (player.speedY < 0.1)) {
player.speedY = 0;
}
if ((player.speedY > -0.1) && (player.speedY < 0)) {
player.speedY = 0;
}
player._y = 200;
}
playerLifeCheck();
playerBombCheck();
function playerShoot(typ, from) {
if (typ == "bacil") {
if (from == player) {
if (player.bacilLevel == 1) {
createBacil("posFront", player);
} else if (player.bacilLevel == 2) {
createBacil("posFrontLeft", player);
createBacil("posFrontRight", player);
} else if (player.bacilLevel == 3) {
createBacil("posFront", player);
createBacil("posFrontLeftFront", player);
createBacil("posFrontRightFront", player);
} else if (player.bacilLevel == 4) {
createBacil("posFrontLeft", player);
createBacil("posFrontRight", player);
createBacil("posFrontLeftFront", player);
createBacil("posFrontRightFront", player);
}
}
} else if (typ == "fire") {
if (from == player) {
if (player.fireLevel == 1) {
createFire("posFront", player);
} else if (player.fireLevel == 2) {
createFire("posFrontLeft", player);
createFire("posFrontRight", player);
} else if (player.fireLevel == 3) {
createFire("posFront", player);
createFire("posFrontLeftFront", player);
createFire("posFrontRightFront", player);
} else if (player.fireLevel == 4) {
createFire("posFrontLeft", player);
createFire("posFrontRight", player);
createFire("posFrontLeftFront", player);
createFire("posFrontRightFront", player);
}
if (player.fireRot >= 8) {
player.fireRot = 1;
} else {
player.fireRot++;
}
}
} else if (typ == "cannon") {
if (from == player) {
if (player.cannonLevel == 1) {
if (player.cannonPos == 1) {
createCannon("posFront", player);
player.cannonPos++;
player.cannonRot = 0;
} else if (player.cannonPos == 2) {
createCannon("posFront", player);
player.cannonPos++;
player.cannonRot = 1;
} else if (player.cannonPos == 3) {
createCannon("posFront", player);
player.cannonPos++;
player.cannonRot = 0;
} else if (player.cannonPos == 4) {
createCannon("posFront", player);
player.cannonPos = 1;
player.cannonRot = -1;
}
} else if (player.cannonLevel == 2) {
if (player.cannonPos == 1) {
player.cannonRot = 1;
createCannon("posFrontLeft", player);
player.cannonRot = -1;
createCannon("posFrontRight", player);
player.cannonPos++;
} else if (player.cannonPos == 2) {
player.cannonRot = 0;
createCannon("posFrontLeft", player);
player.cannonRot = 0;
createCannon("posFrontRight", player);
player.cannonPos++;
} else if (player.cannonPos == 3) {
player.cannonRot = -1;
createCannon("posFrontLeft", player);
player.cannonRot = 1;
createCannon("posFrontRight", player);
player.cannonPos = 1;
}
} else if (player.cannonLevel == 3) {
if (player.cannonPos == 1) {
player.cannonRot = 0;
createCannon("posFront", player);
player.cannonPos++;
} else if (player.cannonPos >= 2) {
player.cannonRot = 1;
createCannon("posFrontLeft", player);
player.cannonRot = -1;
createCannon("posFrontRight", player);
player.cannonPos = 1;
}
} else if (player.cannonLevel == 4) {
if (player.cannonPos == 1) {
player.cannonRot = 0;
createCannon("posFrontLeft", player);
createCannon("posFrontRight", player);
player.cannonPos++;
} else if (player.cannonPos >= 2) {
player.cannonRot = 1;
createCannon("posFrontLeftFront", player);
player.cannonRot = -1;
createCannon("posFrontRightFront", player);
player.cannonPos = 1;
}
}
}
} else if (typ == "smart") {
if (from == player) {
if (player.smartLevel == 1) {
createSmart("posFront", player);
} else if (player.smartLevel == 2) {
createSmart("posFrontLeft", player);
createSmart("posFrontRight", player);
} else if (player.smartLevel == 3) {
createSmart("posFront", player);
createSmart("posFrontLeft", player);
createSmart("posFrontRight", player);
}
}
}
}
function createBacil(local, from2) {
convertPosition(local);
ammoCount++;
duplicateMovieClip ("refAmmoBacil", "ammo" + ammoCount, this.getNextHighestDepth());
mcAmmo = _root["ammo" + ammoCount];
mcAmmo.typ = "bacil";
mcAmmo.from = "player";
mcAmmo.power = 2;
mcAmmo.thrust = 12;
mcAmmo._x = pos.x;
mcAmmo._y = pos.y;
mcAmmo.fixX = pos.x;
mcAmmo.fixY = pos.y;
mcAmmo._rotation = pos.rot;
mcAmmo.from = "player";
}
function createFire(local, from2) {
convertPosition(local);
ammoCount++;
duplicateMovieClip ("refAmmoFire", "ammo" + ammoCount, this.getNextHighestDepth());
mcAmmo = _root["ammo" + ammoCount];
mcAmmo.typ = "fire";
mcAmmo.from = "player";
mcAmmo.power = 1;
mcAmmo.thrust = 12;
mcAmmo._x = pos.x;
mcAmmo._y = pos.y;
mcAmmo.fixX = pos.x;
mcAmmo.fixY = pos.y;
if (player.fireRot == 1) {
mcAmmo._rotation = pos.rot;
} else if (player.fireRot == 2) {
mcAmmo._rotation = pos.rot + 5;
} else if (player.fireRot == 3) {
mcAmmo._rotation = pos.rot + 10;
} else if (player.fireRot == 4) {
mcAmmo._rotation = pos.rot + 5;
} else if (player.fireRot == 5) {
mcAmmo._rotation = pos.rot;
} else if (player.fireRot == 6) {
mcAmmo._rotation = pos.rot - 5;
} else if (player.fireRot == 7) {
mcAmmo._rotation = pos.rot - 10;
} else if (player.fireRot == 8) {
mcAmmo._rotation = pos.rot - 5;
}
mcAmmo.from = "player";
}
function createCannon(local, from2) {
convertPosition(local);
ammoCount++;
duplicateMovieClip ("refAmmoCannon", "ammo" + ammoCount, this.getNextHighestDepth());
mcAmmo = _root["ammo" + ammoCount];
mcAmmo.typ = "cannon";
mcAmmo.from = "player";
mcAmmo.power = 3;
mcAmmo.thrust = 15;
mcAmmo._x = pos.x;
mcAmmo._y = pos.y;
mcAmmo.fixX = pos.x;
mcAmmo.fixY = pos.y;
if (player.cannonRot == 1) {
mcAmmo._rotation = pos.rot - 10;
} else if (player.cannonRot == -1) {
mcAmmo._rotation = pos.rot + 10;
} else if (player.cannonRot == 0) {
mcAmmo._rotation = pos.rot;
}
mcAmmo.from = "player";
}
function createSmart(local, from2) {
convertPosition(local);
ammoCount++;
duplicateMovieClip ("refAmmoSmart", "ammo" + ammoCount, this.getNextHighestDepth());
mcAmmo = _root["ammo" + ammoCount];
mcAmmo.typ = "smart";
mcAmmo.from = "player";
mcAmmo.will = false;
mcAmmo.power = 3;
mcAmmo.thrust = 15;
mcAmmo.aim = undefined;
mcAmmo._x = pos.x;
mcAmmo._y = pos.y;
mcAmmo._rotation = player._rotation;
mcAmmo.from = "player";
targetCount++;
duplicateMovieClip ("refTarget", "target" + targetCount, this.getNextHighestDepth());
mcTarget = _root["target" + targetCount];
posRot = new Object();
posRot.x = rot.dir._x;
posRot.y = rot.dir._y;
player.localToGlobal(posRot);
mcTarget._x = posRot.x;
mcTarget._y = posRot.y;
mcAmmo.guide = mcTarget;
}
function ammoLifeCycle(typ, from) {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 4)) == "ammo")) {
mcAmmo = _root[i];
if (mcAmmo.from == "enemy") {
radians = (mcAmmo._rotation * Math.PI) / 180;
bulletDistX = Math.cos(radians) * mcAmmo.speed;
bulletDistY = Math.sin(radians) * mcAmmo.speed;
mcAmmo._x = mcAmmo._x + bulletDistX;
mcAmmo._y = mcAmmo._y + bulletDistY;
if ((player.stat == "life") && (mcAmmo.sta == "none")) {
if (player.hit.hitTest(mcAmmo._x, mcAmmo._y, true)) {
if (viniCheat == false) {
mcAmmo.sta = "die";
playerExplode();
}
}
}
for (v in this) {
if ((typeof(eval (v)) == "movieclip") && ((substring(v, 1, 4)) == "ammo")) {
mcAmmo7 = _root[v];
if (mcAmmo7.from == "player") {
if (mcAmmo7.hitTest(mcAmmo)) {
mcAmmo.sta = "die";
mcAmmo7.sta = "die";
}
}
}
}
}
if (mcAmmo.from == "player") {
for (j in this) {
if ((typeof(eval (j)) == "movieclip") && ((substring(j, 1, 5)) == "enemy")) {
mcEnemy = _root[j];
if (mcEnemy.hitTest(mcAmmo)) {
mcEnemy.life = mcEnemy.life - mcAmmo.power;
mcAmmo.sta = "die";
if (mcEnemy.life <= 0) {
mcEnemy.sta = "die";
} else if (mcEnemy > 0) {
if (mcAmmo.typ == "smart") {
mcEnemy.aimed = false;
}
}
}
}
}
}
if (((mcAmmo.typ == "bacil") || (mcAmmo.typ == "fire")) || (mcAmmo.typ == "cannon")) {
radians = (mcAmmo._rotation * Math.PI) / 180;
distX = Math.cos(radians) * mcAmmo.thrust;
distY = Math.sin(radians) * mcAmmo.thrust;
mcAmmo._x = mcAmmo._x + distX;
mcAmmo._y = mcAmmo._y + distY;
}
if (mcAmmo.typ == "smart") {
if (mcAmmo.aim._x) {
}
radians = (mcAmmo._rotation * Math.PI) / 180;
distX = Math.cos(radians) * 10;
distY = Math.sin(radians) * 10;
mcAmmo._x = mcAmmo._x + distX;
mcAmmo._y = mcAmmo._y + distY;
if (mcAmmo.aim == undefined) {
} else {
distX = mcAmmo.aim._x - mcAmmo.guide._x;
distY = mcAmmo.aim._y - mcAmmo.guide._y;
if (mcAmmo.hitTest(mcAmmo.guide)) {
mcAmmo.guide._x = mcAmmo.guide._x + (distX * 10);
mcAmmo.guide._y = mcAmmo.guide._y + (distY * 10);
} else {
mcAmmo.guide._x = mcAmmo.guide._x + (distX * 0.4);
mcAmmo.guide._y = mcAmmo.guide._y + (distY * 0.4);
}
}
distX = mcAmmo.guide._x - mcAmmo._x;
distY = mcAmmo.guide._y - mcAmmo._y;
radians = Math.atan2(distY, distX);
mcAmmo._rotation = (radians * 180) / Math.PI;
if (mcAmmo.will == false) {
for (j in this) {
if ((typeof(eval (j)) == "movieclip") && ((substring(j, 1, 5)) == "enemy")) {
mcEnemy = _root[j];
if ((mcEnemy.aimed == false) && (mcEnemy.typ != "bullet1")) {
distX = mcAmmo._x - mcEnemy._x;
distY = mcAmmo._y - mcEnemy._y;
dist = Math.sqrt((distX * distX) + (distY * distY));
if (distLow == NaN) {
distLow = dist;
mcAim = mcEnemy;
}
if (dist < distLow) {
distLow = dist;
mcAim = mcEnemy;
}
}
}
}
mcAmmo.aim = mcAim;
mcAmmo.aim.aimed = true;
mcAmmo.will = true;
distLow = NaN;
}
if (mcAmmo.typ == "smart") {
if (enemyScreen == 0) {
mcAmmo.sta = "die";
}
if (mcAmmo.aim._x == NaN) {
mcAmmo.sta = "die";
}
if (mcAmmo.aim == undefined) {
mcAmmo.sta = "die";
}
}
}
if (land.hitTest(mcAmmo._x, mcAmmo._y, true)) {
mcAmmo.sta = "die";
}
if (mcAmmo.sta == "die") {
if (mcAmmo.typ == "smart") {
mcAmmo.aim.aimed = false;
mcAmmo.guide.removeMovieClip();
}
if (mcAmmo.from == "enemy") {
countAmmo--;
}
mcAmmo.removeMovieClip();
}
if (mcAmmo.from == "player") {
distX = player._x - mcAmmo._x;
distY = player._y - mcAmmo._y;
dist = Math.sqrt((distX * distX) + (distY * distY));
if (dist > 250) {
mcAmmo.sta = "die";
}
}
}
}
}
function createParticle1(posX, posY, rot) {
particleCount++;
duplicateMovieClip ("refParticle1", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "trail";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle._rotation = rot;
}
function createParticleX(posX, posY, rot) {
particleCount++;
duplicateMovieClip ("refParticleX", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "trail";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle._rotation = rot;
}
function createParticleB(posX, posY, rot) {
particleCount++;
duplicateMovieClip ("refParticleB", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "trail";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle._rotation = rot;
}
function createParticle2(posX, posY) {
if (random(20) == 2) {
commet.gotoAndStop(10 + random(4));
}
sndExplode2.start(0, 1);
if (particleColor < 5) {
particleColor++;
} else {
particleColor = 1;
}
z = 1;
while (z < 10) {
particleCount++;
duplicateMovieClip ("refParticle2", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "explode";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle.gotoAndStop(particleColor);
mcParticle.speed = (Math.random() * 5) + 8;
mcParticle._rotation = Math.floor(Math.random() * 361) + 0;
z++;
}
}
function createParticle3(posX, posY) {
if (random(20) == 2) {
commet.gotoAndStop(10 + random(4));
}
sndExplode2.start(0, 1);
if (particleColor < 5) {
particleColor++;
} else {
particleColor = 1;
}
z = 1;
while (z < 10) {
particleCount++;
duplicateMovieClip ("refParticle2", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "explode";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle.gotoAndStop(particleColor);
mcParticle.speed = (Math.random() * 5) + 8;
mcParticle._rotation = Math.floor(Math.random() * 361) + 0;
z++;
}
}
function createParticle5(posX, posY) {
if (particleColor < 5) {
particleColor++;
} else {
particleColor = 1;
}
z = 1;
while (z < 4) {
particleCount++;
duplicateMovieClip ("refParticle2", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "explode";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle.gotoAndStop(particleColor);
mcParticle.speed = (Math.random() * 5) + 8;
mcParticle._rotation = Math.floor(Math.random() * 361) + 0;
z++;
}
}
function particleLifeCycle(typ, from) {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 8)) == "particle")) {
mcParticle = _root[i];
if (mcParticle.typ == "explode") {
radians = (mcParticle._rotation * Math.PI) / 180;
distX = Math.cos(radians) * mcParticle.speed;
distY = Math.sin(radians) * mcParticle.speed;
mcParticle._x = mcParticle._x + distX;
mcParticle._y = mcParticle._y + distY;
}
if ((mcParticle.typ != "attach") && (mcParticle.typ != "laser")) {
if (land.hitTest(mcParticle._x, mcParticle._y, true)) {
mcParticle.sta = "die";
}
}
if (mcParticle.typ != "laser") {
distX = player._x - mcParticle._x;
distY = player._y - mcParticle._y;
dist = Math.sqrt((distX * distX) + (distY * distY));
if (dist > 250) {
mcParticle.sta = "die";
}
}
if (mcParticle.sta == "die") {
mcParticle.removeMovieClip();
}
if (mcParticle.typ == "laser") {
if (mcParticle._alpha <= 100) {
mcParticle._alpha = mcParticle._alpha + 5;
}
if ((player.stat == "life") && (mcParticle._alpha >= 100)) {
if (mcParticle.hitTest(player._x, player._y, true)) {
if (viniCheat == false) {
playerExplode();
}
}
}
}
}
}
}
function convertPosition(loc) {
if (loc == "posFront") {
pos = new Object();
pos.x = player.posFront._x;
pos.y = player.posFront._y;
player.localToGlobal(pos);
pos.rot = player._rotation;
} else if (loc == "posFrontLeft") {
pos = new Object();
pos.x = player.posFrontLeft._x;
pos.y = player.posFrontLeft._y;
player.localToGlobal(pos);
pos.rot = player._rotation;
} else if (loc == "posFrontRight") {
pos = new Object();
pos.x = player.posFrontRight._x;
pos.y = player.posFrontRight._y;
player.localToGlobal(pos);
pos.rot = player._rotation;
} else if (loc == "posFrontLeftFront") {
pos = new Object();
pos.x = player.posFrontLeftFront._x;
pos.y = player.posFrontLeftFront._y;
player.localToGlobal(pos);
pos.rot = (player._rotation = player._rotation - 15);
} else if (loc == "posFrontRightFront") {
pos = new Object();
pos.x = player.posFrontRightFront._x;
pos.y = player.posFrontRightFront._y;
player.localToGlobal(pos);
pos.rot = (player._rotation = player._rotation + 30);
}
}
function bombWaveExplode(d) {
sndWeapon1.start(0, 1);
for (j in this) {
if ((typeof(eval (j)) == "movieclip") && ((substring(j, 1, 5)) == "enemy")) {
mcEnemy = _root[j];
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
dist = Math.sqrt((distX * distX) + (distY * distY));
if (dist < d) {
mcEnemy.sta = "die";
}
}
if ((typeof(eval (j)) == "movieclip") && ((substring(j, 1, 4)) == "ammo")) {
mcAmmo = _root[j];
if (mcAmmo.from == "enemy") {
distX = player._x - mcAmmo._x;
distY = player._y - mcAmmo._y;
dist = Math.sqrt((distX * distX) + (distY * distY));
if (dist < d) {
mcAmmo.sta = "die";
}
}
}
}
}
function bombLightExplode(d) {
sndWeapon1.start(0, 1);
for (j in this) {
if ((typeof(eval (j)) == "movieclip") && ((substring(j, 1, 5)) == "enemy")) {
if (d > 0) {
d--;
mcEnemy = _root[j];
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
dist = Math.sqrt((distX * distX) + (distY * distY));
if ((dist < 150) && (mcEnemy.lig != true)) {
particleCount++;
duplicateMovieClip ("refBombLight", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "trail";
mcParticle._x = player._x;
mcParticle._y = player._y;
distX = mcEnemy._x - mcParticle._x;
distY = mcEnemy._y - mcParticle._y;
radians = Math.atan2(distY, distX);
mcParticle._rotation = (radians * 180) / Math.PI;
mcParticle._width = dist;
mcEnemy.lig = true;
mcEnemy.sta = "die";
}
}
}
}
}
function create360Explode(posX, posY) {
sndExplode1.start(0, 1);
mul = 0;
z = 1;
while (z < 36) {
particleCount++;
duplicateMovieClip ("refParticle360", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "explode";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle.speed = 10;
mcParticle._rotation = mul;
mul = mul + 10;
z++;
}
mul = 0;
z = 1;
while (z < 36) {
particleCount++;
duplicateMovieClip ("refParticle360", "particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "explode";
mcParticle._x = posX;
mcParticle._y = posY;
mcParticle.speed = 4;
mcParticle._rotation = mul;
mul = mul + 10;
z++;
}
}
function enemyLifeCycle(typ, from) {
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "enemy")) {
mcEnemy = _root[i];
if ((player.stat == "life") && (mcEnemy.sta == "none")) {
if (player.hit.hitTest(mcEnemy._x, mcEnemy._y, true)) {
if (viniCheat == false) {
playerExplode();
}
}
}
if (mcEnemy.sta == "none") {
if ((mcEnemy.typ == "1") || (mcEnemy.typ == "2")) {
if (player.stat != "hide") {
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
mcEnemy._x = mcEnemy._x + (distX * mcEnemy.speed);
mcEnemy._y = mcEnemy._y + (distY * mcEnemy.speed);
}
} else if (mcEnemy.typ == "3") {
mcEnemy._x = mcEnemy._x + mcEnemy.speedX;
mcEnemy._y = mcEnemy._y + mcEnemy.speedY;
if (mcEnemy.col1B == false) {
if (mcEnemy.hitTest(mcEnemy.col1)) {
mcEnemy.speedX = mcEnemy.speedX * -1;
mcEnemy.speedY = mcEnemy.speedY * -1;
mcEnemy.col = true;
if (mcEnemy.speedX != 0) {
mcEnemy._xscale = mcEnemy._xscale * -1;
}
if (mcEnemy.speedY != 0) {
mcEnemy._xscale = mcEnemy._xscale * -1;
}
mcEnemy.col1B = true;
mcEnemy.col2B = false;
}
}
if (mcEnemy.col2B == false) {
if (mcEnemy.hitTest(mcEnemy.col2)) {
mcEnemy.speedX = mcEnemy.speedX * -1;
mcEnemy.speedY = mcEnemy.speedY * -1;
if (mcEnemy.speedX != 0) {
mcEnemy._xscale = mcEnemy._xscale * -1;
}
if (mcEnemy.speedY != 0) {
mcEnemy._xscale = mcEnemy._xscale * -1;
}
mcEnemy.col1B = false;
mcEnemy.col2B = true;
}
}
} else if ((mcEnemy.typ == "6target") || (mcEnemy.typ == "6guide")) {
mcEnemy._x = mcEnemy._x + mcEnemy.speedX;
mcEnemy._y = mcEnemy._y + mcEnemy.speedY;
if (mcEnemy.typ == "6guide") {
if (mcEnemy.friend != undefined) {
mcEnemy.particle._x = mcEnemy._x;
mcEnemy.particle._y = mcEnemy._y;
mcEnemy.particle.clear();
mcEnemy.particle.beginFill(65535, 30);
mcEnemy.particle.lineStyle(3, 65535, 100);
mcEnemy.particle.moveTo(0, 0);
mcEnemy.particle.lineTo(mcEnemy.friend._x - mcEnemy._x, mcEnemy.friend._y - mcEnemy._y);
} else {
mcEnemy.particle.removeMovieClip();
}
}
} else if (mcEnemy.typ == "7head") {
if (player.stat != "hide") {
radians = (mcEnemy._rotation * Math.PI) / 180;
distX = Math.cos(radians) * 4;
distY = Math.sin(radians) * 4;
mcEnemy._x = mcEnemy._x + distX;
mcEnemy._y = mcEnemy._y + distY;
}
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
radians = Math.atan2(distY, distX);
mcEnemy._rotation = (radians * 180) / Math.PI;
} else if (mcEnemy.typ == "tail") {
distX = mcEnemy.facing._x - mcEnemy._x;
distY = mcEnemy.facing._y - mcEnemy._y;
angle = Math.atan2(distY, distX);
mcEnemy._rotation = (angle * 180) / Math.PI;
mcEnemy._x = mcEnemy.facing._x - (Math.cos(angle) * 20);
mcEnemy._y = mcEnemy.facing._y - (Math.sin(angle) * 20);
} else if (mcEnemy.typ == "tailnohead") {
if (player.stat != "hide") {
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
angle = Math.atan2(distY, distX);
mcEnemy._rotation = (angle * 180) / Math.PI;
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
mcEnemy._x = mcEnemy._x + (distX * mcEnemy.speed);
mcEnemy._y = mcEnemy._y + (distY * mcEnemy.speed);
}
} else if (mcEnemy.typ == "fan") {
mcEnemy._rotation = mcEnemy._rotation + mcEnemy.speedRotMin;
mcEnemy._x = mcEnemy._x + mcEnemy.speedXMin;
mcEnemy._y = mcEnemy._y + mcEnemy.speedYMin;
} else if (mcEnemy.typ == "fan2") {
if (mcEnemy.hyperCount >= 5) {
if (mcEnemy.hyper == true) {
mcEnemy.hyper = false;
} else {
mcEnemy.hyper = true;
}
mcEnemy.hyperCount = -4;
}
if (mcEnemy.hyper == false) {
mcEnemy._rotation = mcEnemy._rotation + mcEnemy.speedRotMin;
mcEnemy._x = mcEnemy._x + mcEnemy.speedXMin;
mcEnemy._y = mcEnemy._y + mcEnemy.speedYMin;
} else {
mcEnemy._rotation = mcEnemy._rotation + mcEnemy.speedRotMax;
mcEnemy._x = mcEnemy._x + mcEnemy.speedXMax;
mcEnemy._y = mcEnemy._y + mcEnemy.speedYMax;
}
} else if (((mcEnemy.typ == "ast1") || (mcEnemy.typ == "ast2")) || (mcEnemy.typ == "ast3")) {
mcEnemy._rotation = mcEnemy._rotation + mcEnemy.rot;
mcEnemy._x = mcEnemy._x + mcEnemy.speedX;
mcEnemy._y = mcEnemy._y + mcEnemy.speedY;
} else if (mcEnemy.typ == "twister") {
mcEnemy._rotation = mcEnemy._rotation + mcEnemy.rot;
} else if (mcEnemy.typ == "dia") {
mcEnemy._rotation = mcEnemy._rotation + mcEnemy.rot;
} else if (((mcEnemy.typ == "limas0") || (mcEnemy.typ == "limas1")) || (mcEnemy.typ == "limas2")) {
mcEnemy._rotation = mcEnemy._rotation + mcEnemy.rot;
if (player.stat != "hide") {
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
mcEnemy._x = mcEnemy._x + (distX * mcEnemy.speed);
mcEnemy._y = mcEnemy._y + (distY * mcEnemy.speed);
}
} else if (mcEnemy.typ == "attack1") {
if (player.stat != "hide") {
radians = (mcEnemy._rotation * Math.PI) / 180;
distX = Math.cos(radians) * 4;
distY = Math.sin(radians) * 4;
mcEnemy._x = mcEnemy._x + distX;
mcEnemy._y = mcEnemy._y + distY;
}
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
radians = Math.atan2(distY, distX);
mcEnemy._rotation = (radians * 180) / Math.PI;
} else if (mcEnemy.typ == "attack2") {
if (player.stat != "hide") {
radians = (mcEnemy._rotation * Math.PI) / 180;
distX = Math.cos(radians) * 4;
distY = Math.sin(radians) * 4;
mcEnemy._x = mcEnemy._x + distX;
mcEnemy._y = mcEnemy._y + distY;
}
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
radians = Math.atan2(distY, distX);
mcEnemy._rotation = (radians * 180) / Math.PI;
} else if (mcEnemy.typ == "snakeHead") {
if (player.stat != "hide") {
radians = (mcEnemy._rotation * Math.PI) / 180;
distX = Math.cos(radians) * 4;
distY = Math.sin(radians) * 4;
mcEnemy._x = mcEnemy._x + distX;
mcEnemy._y = mcEnemy._y + distY;
}
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
radians = Math.atan2(distY, distX);
mcEnemy._rotation = (radians * 180) / Math.PI;
} else if (mcEnemy.typ == "snakeTail") {
distX = mcEnemy.facing._x - mcEnemy._x;
distY = mcEnemy.facing._y - mcEnemy._y;
angle = Math.atan2(distY, distX);
mcEnemy._rotation = (angle * 180) / Math.PI;
mcEnemy._x = mcEnemy.facing._x - (Math.cos(angle) * 20);
mcEnemy._y = mcEnemy.facing._y - (Math.sin(angle) * 20);
} else if (mcEnemy.typ == "snakeTailNoHead") {
if (player.stat != "hide") {
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
angle = Math.atan2(distY, distX);
mcEnemy._rotation = (angle * 180) / Math.PI;
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
mcEnemy._x = mcEnemy._x + (distX * mcEnemy.speed);
mcEnemy._y = mcEnemy._y + (distY * mcEnemy.speed);
}
} else if (mcEnemy.typ == "bullet1") {
radians = (mcEnemy._rotation * Math.PI) / 180;
bulletDistX = Math.cos(radians) * mcEnemy.speed;
bulletDistY = Math.sin(radians) * mcEnemy.speed;
mcEnemy._x = mcEnemy._x + bulletDistX;
mcEnemy._y = mcEnemy._y + bulletDistY;
if (land.hitTest(mcEnemy._x, mcEnemy._y, true)) {
mcEnemy.sta = "die";
}
}
}
if (mcEnemy.typ != "bullet1") {
if (land.hitTest((mcEnemy._x - (mcEnemy._width / 2)) - 1, mcEnemy._y, true)) {
while (land.hitTest(mcEnemy._x - (mcEnemy._width / 2), mcEnemy._y, true)) {
mcEnemy._x = mcEnemy._x + 0.1;
}
if ((mcEnemy.typ == "6target") || (mcEnemy.typ == "6guide")) {
mcEnemy.speedX = mcEnemy.speedX * -1;
}
if (mcEnemy.typ == "fan2") {
mcEnemy.speedXMin = mcEnemy.speedXMin * -1;
mcEnemy.speedXMax = mcEnemy.speedXMax * -1;
mcEnemy.hyperCount++;
}
if (((mcEnemy.typ == "ast1") || (mcEnemy.typ == "ast2")) || (mcEnemy.typ == "ast3")) {
mcEnemy.speedX = mcEnemy.speedX * -1;
}
}
if (land.hitTest((mcEnemy._x + (mcEnemy._width / 2)) + 1, mcEnemy._y, true)) {
while (land.hitTest(mcEnemy._x + (mcEnemy._width / 2), mcEnemy._y, true)) {
mcEnemy._x = mcEnemy._x - 0.1;
}
if ((mcEnemy.typ == "6target") || (mcEnemy.typ == "6guide")) {
mcEnemy.speedX = mcEnemy.speedX * -1;
}
if (mcEnemy.typ == "fan2") {
mcEnemy.speedXMin = mcEnemy.speedXMin * -1;
mcEnemy.speedXMax = mcEnemy.speedXMax * -1;
mcEnemy.hyperCount++;
}
if (((mcEnemy.typ == "ast1") || (mcEnemy.typ == "ast2")) || (mcEnemy.typ == "ast3")) {
mcEnemy.speedX = mcEnemy.speedX * -1;
}
}
if (land.hitTest(mcEnemy._x, mcEnemy._y - (mcEnemy._height / 2), true)) {
while (land.hitTest(mcEnemy._x, mcEnemy._y - (mcEnemy._height / 2), true)) {
mcEnemy._y = mcEnemy._y + 0.1;
}
if ((mcEnemy.typ == "6target") || (mcEnemy.typ == "6guide")) {
mcEnemy.speedY = mcEnemy.speedY * -1;
}
if (mcEnemy.typ == "fan2") {
mcEnemy.speedYMin = mcEnemy.speedYMin * -1;
mcEnemy.speedYMax = mcEnemy.speedYMax * -1;
mcEnemy.hyperCount++;
}
if (((mcEnemy.typ == "ast1") || (mcEnemy.typ == "ast2")) || (mcEnemy.typ == "ast3")) {
mcEnemy.speedY = mcEnemy.speedY * -1;
}
}
if (land.hitTest(mcEnemy._x, (mcEnemy._y + (mcEnemy._height / 2)) + 2, true)) {
while (land.hitTest(mcEnemy._x, mcEnemy._y + (mcEnemy._height / 2), true)) {
mcEnemy._y = mcEnemy._y - 0.1;
}
if ((mcEnemy.typ == "6target") || (mcEnemy.typ == "6guide")) {
mcEnemy.speedY = mcEnemy.speedY * -1;
}
if (mcEnemy.typ == "fan2") {
mcEnemy.speedYMin = mcEnemy.speedYMin * -1;
mcEnemy.speedYMax = mcEnemy.speedYMax * -1;
mcEnemy.hyperCount++;
}
if (((mcEnemy.typ == "ast1") || (mcEnemy.typ == "ast2")) || (mcEnemy.typ == "ast3")) {
mcEnemy.speedY = mcEnemy.speedY * -1;
}
}
}
if (mcEnemy.sta == "die") {
if ((mcEnemy.typ == "1") || (mcEnemy.typ == "2")) {
money = money + 1;
} else if ((mcEnemy.typ == "3") || (mcEnemy.typ == "4")) {
money = money + 3;
} else if ((mcEnemy.typ == "6target") || (mcEnemy.typ == "6guide")) {
money = money + 2;
mcEnemy.particle.removeMovieClip();
} else if (mcEnemy.typ == "attack1") {
money = money + 4;
} else if (mcEnemy.typ == "attack2") {
money = money + 4;
} else if (mcEnemy.typ == "fan2") {
money = money + 3;
} else if (mcEnemy.typ == "tail") {
money = money + 1;
} else if (mcEnemy.typ == "tailnohead") {
money = money + 1;
} else if (mcEnemy.typ == "7head") {
money = money + 4;
t = 1;
while (t < 12) {
_root.mcEnemy["tail" + t].typ = "tailnohead";
t++;
}
money = money + 4;
} else if (mcEnemy.typ == "snakeHead") {
money = money + 4;
t = 1;
while (t < 12) {
_root.mcEnemy["tail" + t].typ = "snakeTailNoHead";
t++;
}
money = money + 4;
} else if (mcEnemy.typ == "ast1") {
createEnemyAst2(mcEnemy, mcEnemy.spawn1, mcEnemy.spawn2, 8, mcEnemy.speedX, mcEnemy.speedY);
createEnemyAst2(mcEnemy, mcEnemy.spawn2, mcEnemy.spawn2, 8, -mcEnemy.speedX, -mcEnemy.speedY);
money = money + 4;
} else if (mcEnemy.typ == "ast2") {
createEnemyAst3(mcEnemy, mcEnemy.spawn1, 4, mcEnemy.speedX, mcEnemy.speedY);
createEnemyAst3(mcEnemy, mcEnemy.spawn2, 4, -mcEnemy.speedX, -mcEnemy.speedY);
money = money + 3;
} else if (mcEnemy.typ == "ast3") {
money = money + 2;
} else if (mcEnemy.typ == "twister") {
money = money + 4;
} else if (mcEnemy.typ == "snakeTailNoHead") {
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation + 120, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn3, 4, mcEnemy._rotation + 240, 8);
money = money + 3;
} else if (mcEnemy.typ == "snakeTail") {
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation + 120, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn3, 4, mcEnemy._rotation + 240, 8);
money = money + 3;
} else if (mcEnemy.typ == "dia") {
money = money + 4;
} else if (mcEnemy.typ == "limas0") {
money = money + 3;
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation + 120, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn3, 4, mcEnemy._rotation + 240, 8);
} else if (mcEnemy.typ == "limas1") {
money = money + 4;
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation + 90, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn3, 4, mcEnemy._rotation + 180, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn4, 4, mcEnemy._rotation + 270, 8);
} else if (mcEnemy.typ == "limas2") {
money = money + 5;
createEnemyBullet1(mcEnemy, mcEnemy.spawn1, 4, mcEnemy._rotation, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn2, 4, mcEnemy._rotation + 45, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn3, 4, mcEnemy._rotation + 135, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn4, 4, mcEnemy._rotation + 180, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn5, 4, mcEnemy._rotation + 225, 8);
createEnemyBullet1(mcEnemy, mcEnemy.spawn6, 4, mcEnemy._rotation + 315, 8);
}
moneyUpdate();
for (v in this) {
if ((typeof(eval (v)) == "movieclip") && ((substring(v, 1, 4)) == "ammo")) {
mcAmmo = _root[v];
if (mcAmmo.typ == "smart") {
if (mcAmmo.aim == mcEnemy) {
mcAmmo.will = false;
}
}
}
}
if (land.fix.hitTest(mcEnemy._x, mcEnemy._y, true)) {
mcEnemy.sta = "die";
}
distX = player._x - mcEnemy._x;
distY = player._y - mcEnemy._y;
dist = Math.sqrt((distX * distX) + (distY * distY));
if (dist > 1000) {
mcEnemy.sta = "die";
}
if (mcEnemy.typ == "bullet1") {
} else if ((((mcEnemy.typ == "snakeTail") || (mcEnemy.typ == "snakeTailNoHead")) || (mcEnemy.typ == "tail")) || (mcEnemy.typ == "tailnohead")) {
createParticle5(mcEnemy._x, mcEnemy._y);
mcEnemy.removeMovieClip();
enemyScreen--;
} else {
createParticle2(mcEnemy._x, mcEnemy._y);
mcEnemy.removeMovieClip();
enemyScreen--;
}
}
}
}
}
function createEnemy1(mov, life, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy1", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "1";
mcEnemy.life = life;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemy2(mov, life, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy2", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "1";
mcEnemy.life = life;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemy3(mov, col, speX, speY, rot, life) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy3", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "3";
mcEnemy.life = life;
mcEnemy.speedX = speX;
mcEnemy.speedY = speY;
mcEnemy._rotation = rot;
mcEnemy.col1B = false;
mcEnemy.col2B = true;
mcEnemy.col1 = col;
mcEnemy.col2 = mov;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemy4(mov, life, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy4", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "1";
mcEnemy.life = life;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemy6(mov1, mov2, life, spdXA, spdYA, spdXB, spdYB) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy6", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "6target";
mcEnemy.life = life;
mcEnemy.speedX = spdXA;
mcEnemy.speedY = spdYA;
pos = new Object();
pos.x = mov1._x;
pos.y = mov1._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy6", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy2 = _root["enemy" + enemyCount];
mcEnemy2.aimed = false;
mcEnemy2.typ = "6guide";
mcEnemy2.life = life;
mcEnemy2.speedX = spdXB;
mcEnemy2.speedY = spdYB;
pos = new Object();
pos.x = mov2._x;
pos.y = mov2._y;
design.localToGlobal(pos);
mcEnemy2._x = pos.x;
mcEnemy2._y = pos.y;
mcEnemy2.friend = mcEnemy;
particleCount++;
this.createEmptyMovieClip("particle" + particleCount, this.getNextHighestDepth());
mcParticle = _root["particle" + particleCount];
mcParticle.typ = "laser";
mcParticle._x = mcEnemy2._x;
mcParticle._y = mcEnemy2._y;
mcParticle.beginFill(65535, 30);
mcParticle.lineStyle(3, 65535, 100);
mcParticle.moveTo(0, 0);
mcParticle.lineTo(mcEnemy2.friend._x - mcEnemy2._x, mcEnemy2.friend._y - mcEnemy2._y);
mcParticle.endFill();
mcParticle._alpha = 0;
mcEnemy2.particle = mcParticle;
}
function createEnemy7(mov, tail, life, spdH, spdL, tailMax, tailMin) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy7", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "7head";
mcEnemy.life = life;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
t = 1;
while (t < tail) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemy7tail", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy2 = _root["enemy" + enemyCount];
mcEnemy2.aimed = false;
mcEnemy2.typ = "tail";
mcEnemy2.life = life;
mcEnemy2.speed = (Math.random() * ((tailMax - tailMin) + 0)) + tailMin;
mcEnemy2.head = mcEnemy;
if (t == 1) {
mcEnemy2.facing = mcEnemy;
} else {
mcEnemy2.facing = _root["enemy" + (enemyCount - 1)];
}
mcEnemy2._x = mcEnemy._x;
mcEnemy2._y = mcEnemy._y;
_root.mcEnemy["tail" + t] = mcEnemy2;
t++;
}
}
function createEnemy8(mov, live, maxSpd, minSpd) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyFan", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "fan";
mcEnemy.life = life;
mcEnemy.hyper = false;
mcEnemy.hyperCount = 1;
mcEnemy.speedRotMax = 15;
mcEnemy.speedRotMin = 5;
mcEnemy.speedXMax = maxSpd;
mcEnemy.speedYMax = maxSpd;
mcEnemy.speedXMin = minSpd;
mcEnemy.speedYMin = minSpd;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemy9(mov, life, maxSpdX, maxSpdY, minSpdX, minSpdY) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyFan", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "fan2";
mcEnemy.life = life;
mcEnemy.hyper = false;
mcEnemy.hyperCount = 1;
mcEnemy.speedRotMax = 15;
mcEnemy.speedRotMin = 5;
mcEnemy.speedXMax = maxSpdX;
mcEnemy.speedYMax = maxSpdY;
mcEnemy.speedXMin = minSpdX;
mcEnemy.speedYMin = minSpdY;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyAst1(mov, life, maxSpdX, maxSpdY) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyAst1", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "ast1";
mcEnemy.life = life;
mcEnemy.hyper = false;
mcEnemy.hyperCount = 1;
mcEnemy.rot = 5;
mcEnemy.speedX = maxSpdX;
mcEnemy.speedY = maxSpdY;
mcEnemy.spawn = false;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyAst2(par, mov, mov2, life, maxSpdX, maxSpdY) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyAst2", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy2 = _root["enemy" + enemyCount];
mcEnemy2.aimed = false;
mcEnemy2.typ = "ast2";
mcEnemy2.life = life;
mcEnemy2.hyper = false;
mcEnemy2.hyperCount = 1;
mcEnemy2.rot = 5;
mcEnemy2.speedX = maxSpdX;
mcEnemy2.speedY = maxSpdY;
mcEnemy2.spawn = false;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
par.localToGlobal(pos);
mcEnemy2._x = pos.x;
mcEnemy2._y = pos.y;
}
function createEnemyAst3(par, mov, life, maxSpdX, maxSpdY) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyAst3", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy3 = _root["enemy" + enemyCount];
mcEnemy3.aimed = false;
mcEnemy3.typ = "ast3";
mcEnemy3.life = life;
mcEnemy3.hyper = false;
mcEnemy3.hyperCount = 1;
mcEnemy3.rot = 5;
mcEnemy3.speedX = maxSpdX;
mcEnemy3.speedY = maxSpdY;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
mov.localToGlobal(pos);
mcEnemy3._x = pos.x;
mcEnemy3._y = pos.y;
}
function createEnemyTwister(mov, life, rot, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyTwister", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "twister";
mcEnemy.life = life;
mcEnemy.rot = rot;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyDia(mov, life, rot, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyDia", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "dia";
mcEnemy.life = life;
mcEnemy.rot = rot;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyLimas0(mov, life, rot, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyLimas0", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "limas0";
mcEnemy.life = life;
mcEnemy._rotation = Math.floor((Math.random() * 360) + 1);
mcEnemy.rot = rot;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyLimas1(mov, life, rot, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyLimas1", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "limas1";
mcEnemy.life = life;
mcEnemy._rotation = Math.floor((Math.random() * 360) + 1);
mcEnemy.rot = rot;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyLimas2(mov, life, rot, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyLimas2", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "limas2";
mcEnemy.life = life;
mcEnemy._rotation = Math.floor((Math.random() * 360) + 1);
mcEnemy.rot = rot;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyAttack1(mov, life, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyAttack1", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "attack1";
mcEnemy.life = life;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemyAttack2(mov, life, spdH, spdL) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemyAttack2", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "attack2";
mcEnemy.life = life;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
}
function createEnemySnake(mov, tail, life, spdH, spdL, tailMax, tailMin) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemySnakeHead", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy = _root["enemy" + enemyCount];
mcEnemy.aimed = false;
mcEnemy.typ = "snakeHead";
mcEnemy.life = life;
mcEnemy.speed = (Math.random() * ((spdH - spdL) + 0)) + spdL;
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
design.localToGlobal(pos);
mcEnemy._x = pos.x;
mcEnemy._y = pos.y;
t = 1;
while (t < tail) {
enemyCount++;
enemyScreen++;
duplicateMovieClip ("refEnemySnakeTail", "enemy" + enemyCount, this.getNextHighestDepth());
mcEnemy2 = _root["enemy" + enemyCount];
mcEnemy2.aimed = false;
mcEnemy2.typ = "snakeTail";
mcEnemy2.life = 6;
mcEnemy2.speed = (Math.random() * ((tailMax - tailMin) + 0)) + tailMin;
mcEnemy2.head = mcEnemy;
if (t == 1) {
mcEnemy2.facing = mcEnemy;
} else {
mcEnemy2.facing = _root["enemy" + (enemyCount - 1)];
}
mcEnemy2._x = mcEnemy._x;
mcEnemy2._y = mcEnemy._y;
_root.mcEnemy["tail" + t] = mcEnemy2;
t++;
}
}
function createEnemyBullet1(par, mov, life, rot, spd) {
if (countAmmo < limitAmmo) {
ammoCount++;
duplicateMovieClip ("refEnemyBullet1", "ammo" + ammoCount, this.getNextHighestDepth());
mcAmmoE = _root["ammo" + ammoCount];
mcAmmoE.typ = "ammoEnemy";
mcAmmoE.life = 1;
mcAmmoE._rotation = rot;
mcAmmoE.speed = spd;
mcAmmoE.sta = "none";
pos = new Object();
pos.x = mov._x;
pos.y = mov._y;
par.localToGlobal(pos);
mcAmmoE._x = pos.x;
mcAmmoE._y = pos.y;
mcAmmoE.from = "enemy";
countAmmo++;
}
}
lineCount = 1;
limitAmmo = 20;
countAmmo = 0;
function levelUnlimited() {
if (enemyScreen == 0) {
safeLow = enemyCount;
if (enemySpawn == 1) {
createEnemy1(design.posLeft3, 6 + unlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft4, 6 + unlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft5, 6 + unlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft6, 6 + unlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft7, 6 + unlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft8, 6 + unlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight3, 6 + unlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight4, 6 + unlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight5, 6 + unlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight6, 6 + unlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight7, 6 + unlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight8, 6 + unlimitedLife, 0.03, 0.02);
enemySpawn = 2;
// unexpected jump
}
if (enemySpawn == 2) {
createEnemy1(design.posUp3, 6 + unlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp4, 6 + unlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 3;
// unexpected jump
}
if (enemySpawn == 3) {
createEnemy1(design.posDown3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 4;
// unexpected jump
}
if (enemySpawn == 4) {
createEnemy1(design.posRight3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 5;
// unexpected jump
}
if (enemySpawn == 5) {
createEnemy1(design.posLeft2, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft3, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy4(design.posLeft4, 4, 0.03, 0.02);
createEnemy4(design.posLeft5, 4, 0.03, 0.02);
createEnemy4(design.posLeft6, 4, 0.03, 0.02);
createEnemy4(design.posLeft7, 4, 0.03, 0.02);
createEnemy1(design.posLeft8, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft9, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight2, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight3, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy4(design.posRight4, 4, 0.03, 0.02);
createEnemy4(design.posRight5, 4, 0.03, 0.02);
createEnemy4(design.posRight6, 4, 0.03, 0.02);
createEnemy4(design.posRight7, 4, 0.03, 0.02);
createEnemy2(design.posRight8, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight9, 4 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 6;
// unexpected jump
}
if (enemySpawn == 6) {
createEnemy1(design.posLeft2, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft3, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy4(design.posLeft4, 4, 0.03, 0.02);
createEnemy4(design.posLeft5, 4, 0.03, 0.02);
createEnemy4(design.posLeft6, 4, 0.03, 0.02);
createEnemy4(design.posLeft7, 4, 0.03, 0.02);
createEnemy1(design.posLeft8, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft9, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight2, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight3, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy4(design.posLeft4, 4, 0.03, 0.02);
createEnemy4(design.posLeft5, 4, 0.03, 0.02);
createEnemy4(design.posLeft6, 4, 0.03, 0.02);
createEnemy4(design.posLeft7, 4, 0.03, 0.02);
createEnemy2(design.posRight8, 4 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight9, 4 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 7;
// unexpected jump
}
if (enemySpawn == 7) {
createEnemy1(design.posRight2, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy4(design.posRight4, 8, 0.03, 0.02);
createEnemy4(design.posRight5, 8, 0.03, 0.02);
createEnemy4(design.posRight6, 8, 0.03, 0.02);
createEnemy4(design.posRight7, 8, 0.03, 0.02);
createEnemy1(design.posRight8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight9, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft2, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy4(design.posLeft4, 8, 0.03, 0.02);
createEnemy4(design.posLeft5, 8, 0.03, 0.02);
createEnemy4(design.posLeft6, 8, 0.03, 0.02);
createEnemy4(design.posLeft7, 8, 0.03, 0.02);
createEnemy2(design.posLeft8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft9, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 8;
// unexpected jump
}
if (enemySpawn == 8) {
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 10);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 10);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 10);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 10);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 10);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 10);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 10);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 10);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 10);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 10);
enemySpawn = 9;
// unexpected jump
}
if (enemySpawn == 9) {
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 10);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 10);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 10);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 10);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 10);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 10);
createEnemy3(design.posRight7, design.posLeft7, -5, 0, 180, 10);
createEnemy3(design.posRight8, design.posLeft8, -5, 0, 180, 10);
createEnemy3(design.posRight9, design.posLeft9, -5, 0, 180, 10);
createEnemy3(design.posRight10, design.posLeft10, -5, 0, 180, 10);
enemySpawn = 10;
// unexpected jump
}
if (enemySpawn == 10) {
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 10);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 10);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 10);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 10);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 10);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 10);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 10);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 10);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 10);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 10);
enemySpawn = 11;
// unexpected jump
}
if (enemySpawn == 11) {
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 10);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 10);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 10);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 10);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 10);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 10);
createEnemy3(design.posLeft7, design.posRight7, 5, 0, 0, 10);
createEnemy3(design.posLeft8, design.posRight8, 5, 0, 0, 10);
createEnemy3(design.posLeft9, design.posRight9, 5, 0, 0, 10);
createEnemy3(design.posLeft10, design.posRight10, 5, 0, 0, 10);
enemySpawn = 12;
// unexpected jump
}
if (enemySpawn == 12) {
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 10);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 10);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 10);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 10);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 10);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 10);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 10);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 10);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 10);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 10);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 13;
// unexpected jump
}
if (enemySpawn == 13) {
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 10);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 10);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 10);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 10);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 10);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 10);
createEnemy3(design.posRight7, design.posLeft7, -5, 0, 180, 10);
createEnemy3(design.posRight8, design.posLeft8, -5, 0, 180, 10);
createEnemy3(design.posRight9, design.posLeft9, -5, 0, 180, 10);
createEnemy3(design.posRight10, design.posLeft10, -5, 0, 180, 10);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 14;
// unexpected jump
}
if (enemySpawn == 14) {
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 10);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 10);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 10);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 10);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 10);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 10);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 10);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 10);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 10);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 10);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 15;
// unexpected jump
}
if (enemySpawn == 15) {
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 10);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 10);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 10);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 10);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 10);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 10);
createEnemy3(design.posLeft7, design.posRight7, 5, 0, 0, 10);
createEnemy3(design.posLeft8, design.posRight8, 5, 0, 0, 10);
createEnemy3(design.posLeft9, design.posRight9, 5, 0, 0, 10);
createEnemy3(design.posLeft10, design.posRight10, 5, 0, 0, 10);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 16;
// unexpected jump
}
if (enemySpawn == 16) {
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 10);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 10);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 10);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 10);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 10);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 10);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 10);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 10);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 10);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 10);
createEnemy1(design.posLeft4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft7, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight7, 8 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 17;
// unexpected jump
}
if (enemySpawn == 17) {
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 10);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 10);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 10);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 10);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 10);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 10);
createEnemy3(design.posRight7, design.posLeft7, -5, 0, 180, 10);
createEnemy3(design.posRight8, design.posLeft8, -5, 0, 180, 10);
createEnemy3(design.posRight9, design.posLeft9, -5, 0, 180, 10);
createEnemy3(design.posRight10, design.posLeft10, -5, 0, 180, 10);
createEnemy1(design.posUp4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp7, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown7, 8 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 18;
// unexpected jump
}
if (enemySpawn == 18) {
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 10);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 10);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 10);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 10);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 10);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 10);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 10);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 10);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 10);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 10);
createEnemy1(design.posLeft4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft7, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight7, 8 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 19;
// unexpected jump
}
if (enemySpawn == 19) {
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 10);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 10);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 10);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 10);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 10);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 10);
createEnemy3(design.posLeft7, design.posRight7, 5, 0, 0, 10);
createEnemy3(design.posLeft8, design.posRight8, 5, 0, 0, 10);
createEnemy3(design.posLeft9, design.posRight9, 5, 0, 0, 10);
createEnemy3(design.posLeft10, design.posRight10, 5, 0, 0, 10);
createEnemy1(design.posUp4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp7, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown4, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown5, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown6, 8 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown7, 8 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 20;
// unexpected jump
}
if (enemySpawn == 20) {
createEnemy6(design.posUp3, design.posLeft3, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 6, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 6, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 21;
// unexpected jump
}
if (enemySpawn == 21) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy1(design.posLeft3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 22;
// unexpected jump
}
if (enemySpawn == 22) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy1(design.posUp3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 23;
// unexpected jump
}
if (enemySpawn == 23) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy1(design.posUp3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 24;
// unexpected jump
}
if (enemySpawn == 24) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy1(design.posRight3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 25;
// unexpected jump
}
if (enemySpawn == 25) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 26;
// unexpected jump
}
if (enemySpawn == 26) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 27;
// unexpected jump
}
if (enemySpawn == 27) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 28;
// unexpected jump
}
if (enemySpawn == 28) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 29;
// unexpected jump
}
if (enemySpawn == 29) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 10);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 10);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 10);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 10);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 10);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 10);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 10);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 10);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 10);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 10);
enemySpawn = 30;
// unexpected jump
}
if (enemySpawn == 30) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 10);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 10);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 10);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 10);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 10);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 10);
createEnemy3(design.posRight7, design.posLeft7, -5, 0, 180, 10);
createEnemy3(design.posRight8, design.posLeft8, -5, 0, 180, 10);
createEnemy3(design.posRight9, design.posLeft9, -5, 0, 180, 10);
createEnemy3(design.posRight10, design.posLeft10, -5, 0, 180, 10);
enemySpawn = 31;
// unexpected jump
}
if (enemySpawn == 31) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 10);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 10);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 10);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 10);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 10);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 10);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 10);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 10);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 10);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 10);
enemySpawn = 32;
} else if (enemySpawn == 32) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 10);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 10);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 10);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 10);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 10);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 10);
createEnemy3(design.posLeft7, design.posRight7, 5, 0, 0, 10);
createEnemy3(design.posLeft8, design.posRight8, 5, 0, 0, 10);
createEnemy3(design.posLeft9, design.posRight9, 5, 0, 0, 10);
createEnemy3(design.posLeft10, design.posRight10, 5, 0, 0, 10);
enemySpawn = 33;
} else if (enemySpawn == 33) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 10);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 10);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 10);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 10);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 10);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 10);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 10);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 10);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 10);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 10);
enemySpawn = 34;
} else if (enemySpawn == 34) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 10);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 10);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 10);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 10);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 10);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 10);
createEnemy3(design.posRight7, design.posLeft7, -5, 0, 180, 10);
createEnemy3(design.posRight8, design.posLeft8, -5, 0, 180, 10);
createEnemy3(design.posRight9, design.posLeft9, -5, 0, 180, 10);
createEnemy3(design.posRight10, design.posLeft10, -5, 0, 180, 10);
enemySpawn = 35;
} else if (enemySpawn == 35) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 10);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 10);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 10);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 10);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 10);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 10);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 10);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 10);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 10);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 10);
enemySpawn = 36;
} else if (enemySpawn == 36) {
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 10);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 10);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 10);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 10);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 10);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 10);
createEnemy3(design.posLeft7, design.posRight7, 5, 0, 0, 10);
createEnemy3(design.posLeft8, design.posRight8, 5, 0, 0, 10);
createEnemy3(design.posLeft9, design.posRight9, 5, 0, 0, 10);
createEnemy3(design.posLeft10, design.posRight10, 5, 0, 0, 10);
enemySpawn = 37;
} else if (enemySpawn == 37) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
enemySpawn = 38;
} else if (enemySpawn == 38) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
enemySpawn = 39;
} else if (enemySpawn == 39) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 40;
} else if (enemySpawn == 40) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 41;
} else if (enemySpawn == 41) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 42;
} else if (enemySpawn == 42) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 43;
} else if (enemySpawn == 43) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 44;
} else if (enemySpawn == 44) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy1(design.posLeft4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight7, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 45;
} else if (enemySpawn == 45) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy1(design.posUp4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 46;
} else if (enemySpawn == 46) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy1(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 47;
} else if (enemySpawn == 47) {
createEnemy7(design.posLeft10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posUp1, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posDown10, 5, 12, 0.025, 0.03, 0.02, 0.015);
createEnemy1(design.posRight4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft7, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 48;
} else if (enemySpawn == 48) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
enemySpawn = 49;
} else if (enemySpawn == 49) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
enemySpawn = 50;
} else if (enemySpawn == 50) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
enemySpawn = 51;
} else if (enemySpawn == 51) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
enemySpawn = 52;
} else if (enemySpawn == 52) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 10);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 10);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 10);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 10);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 10);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 10);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 10);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 10);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 10);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 10);
enemySpawn = 53;
} else if (enemySpawn == 53) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 10);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 10);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 10);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 10);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 10);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 10);
createEnemy3(design.posRight7, design.posLeft7, -5, 0, 180, 10);
createEnemy3(design.posRight8, design.posLeft8, -5, 0, 180, 10);
createEnemy3(design.posRight9, design.posLeft9, -5, 0, 180, 10);
createEnemy3(design.posRight10, design.posLeft10, -5, 0, 180, 10);
enemySpawn = 54;
} else if (enemySpawn == 54) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 10);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 10);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 10);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 10);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 10);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 10);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 10);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 10);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 10);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 10);
enemySpawn = 55;
} else if (enemySpawn == 55) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 10);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 10);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 10);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 10);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 10);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 10);
createEnemy3(design.posLeft7, design.posRight7, 5, 0, 0, 10);
createEnemy3(design.posLeft8, design.posRight8, 5, 0, 0, 10);
createEnemy3(design.posLeft9, design.posRight9, 5, 0, 0, 10);
createEnemy3(design.posLeft10, design.posRight10, 5, 0, 0, 10);
enemySpawn = 56;
} else if (enemySpawn == 56) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 57;
} else if (enemySpawn == 57) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
createEnemy6(design.posUp3, design.posLeft3, 12, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight3, 12, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight8, design.posDown8, 12, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft8, design.posDown3, 12, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 58;
} else if (enemySpawn == 58) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 59;
} else if (enemySpawn == 59) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
createEnemy9(design.posLeft1, 8, -3, -3, -2, -2);
createEnemy9(design.posLeft10, 8, -3, 3, -2, 2);
createEnemy9(design.posUp1, 8, 3, 3, 2, 2);
createEnemy9(design.posUp10, 8, -3, 3, 2, -2);
createEnemy9(design.posRight1, 8, -3, -3, -2, -4);
createEnemy9(design.posRight10, 8, -3, 3, 2, -2);
createEnemy9(design.posDown1, 8, 3, 3, 2, 2);
createEnemy9(design.posDown10, 8, -3, 3, 2, -2);
enemySpawn = 60;
} else if (enemySpawn == 60) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
createEnemy1(design.posLeft3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posLeft8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posRight8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 61;
} else if (enemySpawn == 61) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
createEnemy1(design.posUp3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posUp8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posDown8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 62;
} else if (enemySpawn == 62) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
createEnemy1(design.posDown3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posDown8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posUp8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 63;
} else if (enemySpawn == 63) {
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter4, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
createEnemy1(design.posRight3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy1(design.posRight8, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft3, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft4, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft5, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft6, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft7, 6 + UnlimitedLife, 0.03, 0.02);
createEnemy2(design.posLeft8, 6 + UnlimitedLife, 0.03, 0.02);
enemySpawn = 64;
} else if (enemySpawn == 64) {
createEnemyTwister(design.posCenter1, 14, 5, 4);
createEnemyTwister(design.posCenter3, 14, 5, 4);
createEnemyTwister(design.posCenter6, 14, 5, 4);
createEnemyTwister(design.posCenter8, 14, 5, 4);
enemySpawn = 65;
} else if (enemySpawn == 65) {
createEnemyTwister(design.posCenter2, 14, 5, 4);
createEnemyTwister(design.posCenter4, 14, 5, 4);
createEnemyTwister(design.posCenter5, 14, 5, 4);
createEnemyTwister(design.posCenter7, 14, 5, 4);
enemySpawn = 66;
} else if (enemySpawn == 66) {
createEnemyTwister(design.posCenter1, 14, 5, 4);
createEnemyTwister(design.posCenter3, 14, 5, 4);
createEnemyTwister(design.posCenter6, 14, 5, 4);
createEnemyTwister(design.posCenter8, 14, 5, 4);
createEnemyDia(design.posCenter2, 14, 5, 4);
createEnemyDia(design.posCenter4, 14, 5, 4);
createEnemyDia(design.posCenter5, 14, 5, 4);
createEnemyDia(design.posCenter7, 14, 5, 4);
enemySpawn = 67;
} else if (enemySpawn == 67) {
createEnemyTwister(design.posCenter2, 14, 5, 4);
createEnemyTwister(design.posCenter4, 14, 5, 4);
createEnemyTwister(design.posCenter5, 14, 5, 4);
createEnemyTwister(design.posCenter7, 14, 5, 4);
createEnemyDia(design.posCenter1, 14, 5, 4);
createEnemyDia(design.posCenter3, 14, 5, 4);
createEnemyDia(design.posCenter6, 14, 5, 4);
createEnemyDia(design.posCenter8, 14, 5, 4);
enemySpawn = 68;
} else if (enemySpawn == 68) {
createEnemyTwister(design.posCenter1, 14, 5, 4);
createEnemyTwister(design.posCenter3, 14, 5, 4);
createEnemyTwister(design.posCenter6, 14, 5, 4);
createEnemyTwister(design.posCenter8, 14, 5, 4);
createEnemyDia(design.posCenter2, 14, 5, 4);
createEnemyDia(design.posCenter4, 14, 5, 4);
createEnemyDia(design.posCenter5, 14, 5, 4);
createEnemyDia(design.posCenter7, 14, 5, 4);
enemySpawn = 69;
} else if (enemySpawn == 69) {
createEnemyTwister(design.posCenter2, 14, 5, 4);
createEnemyTwister(design.posCenter4, 14, 5, 4);
createEnemyTwister(design.posCenter5, 14, 5, 4);
createEnemyTwister(design.posCenter7, 14, 5, 4);
createEnemyDia(design.posCenter1, 14, 5, 4);
createEnemyDia(design.posCenter3, 14, 5, 4);
createEnemyDia(design.posCenter6, 14, 5, 4);
createEnemyDia(design.posCenter8, 14, 5, 4);
enemySpawn = 70;
} else if (enemySpawn == 70) {
createEnemyDia(design.posCenter1, 14, 5, 4);
createEnemyDia(design.posCenter3, 14, 5, 4);
createEnemyDia(design.posCenter6, 14, 5, 4);
createEnemyDia(design.posCenter8, 14, 5, 4);
createEnemyLimas0(design.posLeft3, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posLeft4, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posLeft5, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posLeft6, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posLeft7, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posLeft8, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posRight3, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posRight4, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posRight5, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posRight6, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posRight7, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posRight8, 12, 5, 0.04, 0.03);
enemySpawn = 71;
} else if (enemySpawn == 71) {
createEnemyDia(design.posCenter2, 14, 5, 4);
createEnemyDia(design.posCenter4, 14, 5, 4);
createEnemyDia(design.posCenter5, 14, 5, 4);
createEnemyDia(design.posCenter7, 14, 5, 4);
createEnemyLimas0(design.posUp3, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posUp4, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posUp5, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posUp6, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posUp7, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posUp8, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posDown3, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posDown4, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posDown5, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posDown6, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posDown7, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posDown8, 12, 5, 0.04, 0.03);
enemySpawn = 72;
} else if (enemySpawn == 72) {
createEnemyDia(design.posCenter1, 14, 5, 4);
createEnemyDia(design.posCenter3, 14, 5, 4);
createEnemyDia(design.posCenter6, 14, 5, 4);
createEnemyDia(design.posCenter8, 14, 5, 4);
createEnemyLimas0(design.posRight3, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posRight4, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posRight5, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posRight6, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posRight7, 12, 5, 0.04, 0.03);
createEnemyLimas0(design.posRight8, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posLeft3, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posLeft4, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posLeft5, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posLeft6, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posLeft7, 12, 5, 0.04, 0.03);
createEnemyLimas1(design.posLeft8, 12, 5, 0.04, 0.03);
enemySpawn = 73;
} else if (enemySpawn == 73) {
createEnemyDia(design.posCenter2, 14, 5, 4);
createEnemyDia(design.posCenter4, 14, 5, 4);
createEnemyDia(design.posCenter5, 14, 5, 4);
createEnemyDia(design.posCenter7, 14, 5, 4);
createEnemyLimas0(design.posDown3, 12, 5, 0.03, 0.02);
createEnemyLimas0(design.posDown4, 12, 5, 0.03, 0.02);
createEnemyLimas0(design.posDown5, 12, 5, 0.03, 0.02);
createEnemyLimas0(design.posDown6, 12, 5, 0.03, 0.02);
createEnemyLimas0(design.posDown7, 12, 5, 0.03, 0.02);
createEnemyLimas0(design.posDown8, 12, 5, 0.03, 0.02);
createEnemyLimas1(design.posUp3, 12, 5, 0.03, 0.02);
createEnemyLimas1(design.posUp4, 12, 5, 0.03, 0.02);
createEnemyLimas1(design.posUp5, 12, 5, 0.03, 0.02);
createEnemyLimas1(design.posUp6, 12, 5, 0.03, 0.02);
createEnemyLimas1(design.posUp7, 12, 5, 0.03, 0.02);
createEnemyLimas1(design.posUp8, 12, 5, 0.03, 0.02);
enemySpawn = 74;
} else if (enemySpawn == 74) {
createEnemyAttack1(design.posLeft2, 12, 0.03, 0.02);
createEnemyAttack1(design.posLeft3, 12, 0.03, 0.02);
createEnemyAttack1(design.posLeft4, 12, 0.03, 0.02);
createEnemyAttack1(design.posLeft5, 12, 0.03, 0.02);
createEnemyAttack1(design.posLeft6, 12, 0.03, 0.02);
createEnemyAttack1(design.posLeft7, 12, 0.03, 0.02);
createEnemyAttack1(design.posLeft8, 12, 0.03, 0.02);
createEnemyAttack2(design.posRight2, 12, 0.03, 0.02);
createEnemyAttack2(design.posRight3, 12, 0.03, 0.02);
createEnemyAttack2(design.posRight4, 12, 0.03, 0.02);
createEnemyAttack2(design.posRight5, 12, 0.03, 0.02);
createEnemyAttack2(design.posRight6, 12, 0.03, 0.02);
createEnemyAttack2(design.posRight7, 12, 0.03, 0.02);
createEnemyAttack2(design.posRight8, 12, 0.03, 0.02);
enemySpawn = 75;
} else if (enemySpawn == 75) {
createEnemyAttack1(design.posUp2, 12, 0.03, 0.02);
createEnemyAttack1(design.posUp3, 12, 0.03, 0.02);
createEnemyAttack1(design.posUp4, 12, 0.03, 0.02);
createEnemyAttack1(design.posUp5, 12, 0.03, 0.02);
createEnemyAttack1(design.posUp6, 12, 0.03, 0.02);
createEnemyAttack1(design.posUp7, 12, 0.03, 0.02);
createEnemyAttack1(design.posUp8, 12, 0.03, 0.02);
createEnemyAttack2(design.posDown2, 12, 0.03, 0.02);
createEnemyAttack2(design.posDown3, 12, 0.03, 0.02);
createEnemyAttack2(design.posDown4, 12, 0.03, 0.02);
createEnemyAttack2(design.posDown5, 12, 0.03, 0.02);
createEnemyAttack2(design.posDown6, 12, 0.03, 0.02);
createEnemyAttack2(design.posDown7, 12, 0.03, 0.02);
createEnemyAttack2(design.posDown8, 12, 0.03, 0.02);
enemySpawn = 76;
} else if (enemySpawn == 76) {
createEnemyAttack1(design.posRight2, 12, 0.03, 0.02);
createEnemyAttack1(design.posRight3, 12, 0.03, 0.02);
createEnemyAttack1(design.posRight4, 12, 0.03, 0.02);
createEnemyAttack1(design.posRight5, 12, 0.03, 0.02);
createEnemyAttack1(design.posRight6, 12, 0.03, 0.02);
createEnemyAttack1(design.posRight7, 12, 0.03, 0.02);
createEnemyAttack1(design.posRight8, 12, 0.03, 0.02);
createEnemyAttack2(design.posLeft2, 12, 0.03, 0.02);
createEnemyAttack2(design.posLeft3, 12, 0.03, 0.02);
createEnemyAttack2(design.posLeft4, 12, 0.03, 0.02);
createEnemyAttack2(design.posLeft5, 12, 0.03, 0.02);
createEnemyAttack2(design.posLeft6, 12, 0.03, 0.02);
createEnemyAttack2(design.posLeft7, 12, 0.03, 0.02);
createEnemyAttack2(design.posLeft8, 12, 0.03, 0.02);
enemySpawn = 77;
} else if (enemySpawn == 77) {
createEnemyAttack1(design.posDown2, 12, 0.03, 0.02);
createEnemyAttack1(design.posDown3, 12, 0.03, 0.02);
createEnemyAttack1(design.posDown4, 12, 0.03, 0.02);
createEnemyAttack1(design.posDown5, 12, 0.03, 0.02);
createEnemyAttack1(design.posDown6, 12, 0.03, 0.02);
createEnemyAttack1(design.posDown7, 12, 0.03, 0.02);
createEnemyAttack1(design.posDown8, 12, 0.03, 0.02);
createEnemyAttack2(design.posUp2, 12, 0.03, 0.02);
createEnemyAttack2(design.posUp3, 12, 0.03, 0.02);
createEnemyAttack2(design.posUp4, 12, 0.03, 0.02);
createEnemyAttack2(design.posUp5, 12, 0.03, 0.02);
createEnemyAttack2(design.posUp6, 12, 0.03, 0.02);
createEnemyAttack2(design.posUp7, 12, 0.03, 0.02);
createEnemyAttack2(design.posUp8, 12, 0.03, 0.02);
enemySpawn = 78;
} else if (enemySpawn == 78) {
createEnemySnake(design.posCenter1, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter3, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter8, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 79;
} else if (enemySpawn == 79) {
createEnemySnake(design.posCenter2, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter4, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter5, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 80;
} else if (enemySpawn == 80) {
createEnemySnake(design.posCenter1, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter3, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter8, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 81;
} else if (enemySpawn == 81) {
createEnemySnake(design.posCenter2, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter4, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter5, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 82;
} else if (enemySpawn == 82) {
createEnemySnake(design.posCenter1, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter3, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter8, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 83;
} else if (enemySpawn == 83) {
createEnemySnake(design.posCenter2, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter4, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter5, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 84;
} else if (enemySpawn == 84) {
createEnemySnake(design.posCenter1, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter3, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter8, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 85;
} else if (enemySpawn == 85) {
createEnemySnake(design.posCenter2, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter4, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter5, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 86;
} else if (enemySpawn == 86) {
createEnemySnake(design.posCenter1, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter3, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter8, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 87;
} else if (enemySpawn == 87) {
createEnemySnake(design.posCenter2, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter4, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter5, 6, 30, 0.025, 0.03, 0.03, 0.025);
createEnemySnake(design.posCenter6, 6, 30, 0.025, 0.03, 0.03, 0.025);
enemySpawn = 88;
} else if (enemySpawn == 88) {
enemySpawn = 1;
}
safeHigh = enemyCount;
}
}
unlimitedLife = 2;
unlimitedSpeedFix = 2;
unlimitedSpeedComa = 2;
function level10() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
design.fans1.airco = design.fans1.airco - 0.25;
design.fans2.airco = design.fans2.airco - 0.25;
if (design.fan1.airco < 0) {
design.fans1.airco = 0;
design.fans2.airco = 0;
}
if (enemySpawn == 1) {
createEnemySnake(design.posUp2, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posUp9, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyAst1(design.posCenter4, 12, 3, 3);
createEnemyAst1(design.posCenter2, 12, -3, 3);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemySnake(design.posDown2, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posDown9, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyAst1(design.posCenter2, 12, 3, 3);
createEnemyAst1(design.posCenter7, 12, -3, 3);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemySnake(design.posLeft6, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight6, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter6, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, 3);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemySnake(design.posLeft1, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight1, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemy9(design.posLeft5, 5, -6, -6, -4, -4);
createEnemy9(design.posLeft8, 5, 6, 6, 4, 4);
createEnemy9(design.posLeft7, 5, -6, 6, -4, 4);
createEnemy9(design.posRight5, 5, 6, 6, 4, 4);
createEnemy9(design.posRight6, 5, 6, 6, 4, 4);
createEnemy9(design.posRight7, 5, -6, 6, -4, 4);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemySnake(design.posLeft11, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight11, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyLimas0(design.posLeft1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight9, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight10, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight11, 6, 5, 0.025, 0.02);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemySnake(design.posLeft3, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight3, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyLimas1(design.posLeft9, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft10, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft11, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight3, 6, 5, 0.025, 0.02);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemySnake(design.posLeft9, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight9, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemyTwister(design.posCenter5, 12, 5, 4);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemySnake(design.posLeft4, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight4, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter7, 12, 5, 4);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemySnake(design.posLeft8, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight8, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter6, 12, 5, 4);
createEnemyTwister(design.posCenter8, 12, 5, 4);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemySnake(design.posLeft5, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight5, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyAttack1(design.posLeft1, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft2, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft3, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight11, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight10, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight9, 10, 0.03, 0.25);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemySnake(design.posLeft7, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight7, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyAttack1(design.posLeft5, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft6, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft7, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight5, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight6, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight7, 10, 0.03, 0.25);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemySnake(design.posUp2, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posUp9, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyAttack1(design.posLeft1, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft2, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft3, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight11, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight10, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight9, 10, 0.03, 0.25);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemySnake(design.posUp1, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posDown9, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posLeft8, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posDown6, design.posRight8, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemySnake(design.posUp2, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posDown8, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posLeft8, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posDown6, design.posRight8, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemySnake(design.posUp3, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posDown7, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posLeft8, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posDown6, design.posRight8, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 16;
} else if (enemySpawn == 16) {
createEnemySnake(design.posUp4, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posDown6, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posLeft8, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posDown6, design.posRight8, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 17;
} else if (enemySpawn == 17) {
createEnemySnake(design.posUp5, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posDown5, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemyAttack2(design.posLeft5, 10, 0.03, 0.25);
createEnemyAttack2(design.posLeft6, 10, 0.03, 0.25);
createEnemyAttack2(design.posLeft7, 10, 0.03, 0.25);
createEnemyAttack2(design.posRight5, 10, 0.03, 0.25);
createEnemyAttack2(design.posRight6, 10, 0.03, 0.25);
createEnemyAttack2(design.posRight7, 10, 0.03, 0.25);
enemySpawn = 18;
} else if (enemySpawn == 18) {
createEnemyAttack2(design.posUp1, 10, 0.03, 0.25);
createEnemyAttack2(design.posUp2, 10, 0.03, 0.25);
createEnemyAttack2(design.posUp3, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp7, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp8, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp9, 10, 0.03, 0.25);
createEnemyAttack1(design.posDown1, 10, 0.03, 0.25);
createEnemyAttack1(design.posDown2, 10, 0.03, 0.25);
createEnemyAttack1(design.posDown3, 10, 0.03, 0.25);
createEnemyAttack2(design.posDown7, 10, 0.03, 0.25);
createEnemyAttack2(design.posDown8, 10, 0.03, 0.25);
createEnemyAttack2(design.posDown9, 10, 0.03, 0.25);
enemySpawn = 19;
} else if (enemySpawn == 19) {
createEnemyAttack2(design.posLeft1, 10, 0.03, 0.25);
createEnemyAttack2(design.posLeft2, 10, 0.03, 0.25);
createEnemyAttack2(design.posLeft3, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft9, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft10, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft11, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight1, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight2, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight3, 10, 0.03, 0.25);
createEnemyAttack2(design.posRight9, 10, 0.03, 0.25);
createEnemyAttack2(design.posRight10, 10, 0.03, 0.25);
createEnemyAttack2(design.posRight11, 10, 0.03, 0.25);
enemySpawn = 20;
} else if (enemySpawn == 20) {
createEnemyDia(design.posCenter2, 12, 5, 4);
createEnemyDia(design.posCenter4, 12, 5, 4);
createEnemyDia(design.posCenter5, 12, 5, 4);
createEnemyDia(design.posCenter7, 12, 5, 4);
enemySpawn = 21;
} else if (enemySpawn == 21) {
createEnemyDia(design.posCenter1, 12, 5, 4);
createEnemyDia(design.posCenter3, 12, 5, 4);
createEnemyDia(design.posCenter6, 12, 5, 4);
createEnemyDia(design.posCenter8, 12, 5, 4);
enemySpawn = 22;
} else if (enemySpawn == 22) {
createEnemySnake(design.posLeft4, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posLeft8, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight4, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight8, 8, 30, 0.025, 0.03, 0.02, 0.015);
enemySpawn = 23;
} else if (enemySpawn == 23) {
createEnemySnake(design.posLeft2, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posLeft10, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight2, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posRight10, 8, 30, 0.025, 0.03, 0.02, 0.015);
enemySpawn = 24;
} else if (enemySpawn == 24) {
createEnemySnake(design.posDown3, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posDown7, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posUp3, 8, 30, 0.025, 0.03, 0.02, 0.015);
createEnemySnake(design.posUp7, 8, 30, 0.025, 0.03, 0.02, 0.015);
enemySpawn = 25;
} else if (enemySpawn == 25) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level9() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
design.lam1.gotoAndStop(2);
design.lam2.gotoAndStop(2);
design.lam3.gotoAndStop(2);
design.lam4.gotoAndStop(2);
if (enemySpawn == 1) {
createEnemyAst1(design.posCenter4, 12, 3, 3);
createEnemyAst1(design.posCenter2, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, -3, -3);
createEnemyAst1(design.posCenter7, 12, 3, -3);
createEnemy9(design.posLeft3, 5, -6, -6, -4, -4);
createEnemy9(design.posUp3, 5, 6, 6, 4, 4);
createEnemy9(design.posUp7, 5, -6, 6, -4, 4);
createEnemy9(design.posRight3, 5, 6, 6, 4, 4);
createEnemy9(design.posLeft7, 5, 6, 6, 4, 4);
createEnemy9(design.posDown3, 5, -6, 6, -4, 4);
createEnemy9(design.posDown7, 5, -6, 6, 4, -4);
createEnemy9(design.posRight7, 5, -6, -6, -4, -4);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter4, 12, -3, -3);
createEnemyAst1(design.posCenter5, 12, 3, -3);
createEnemy9(design.posLeft3, 5, -6, -6, -4, -4);
createEnemy9(design.posUp3, 5, 6, 6, 4, 4);
createEnemy9(design.posUp7, 5, -6, 6, -4, 4);
createEnemy9(design.posRight3, 5, 6, 6, 4, 4);
createEnemy9(design.posLeft7, 5, 6, 6, 4, 4);
createEnemy9(design.posDown3, 5, -6, 6, -4, 4);
createEnemy9(design.posDown7, 5, -6, 6, 4, -4);
createEnemy9(design.posRight7, 5, -6, -6, -4, -4);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemyTwister(design.posCenter5, 12, 5, 4);
createEnemyTwister(design.posCenter7, 12, 5, 4);
createEnemyLimas2(design.posLeft7, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posLeft8, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posLeft9, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown1, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown2, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight1, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight2, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight3, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posUp8, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posUp9, 8, 5, 0.025, 0.02);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter6, 12, 5, 4);
createEnemyTwister(design.posCenter8, 12, 5, 4);
createEnemyLimas2(design.posLeft1, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posLeft2, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posLeft3, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posUp1, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight7, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight8, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight9, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown8, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown9, 8, 5, 0.025, 0.02);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemyLimas0(design.posLeft1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft8, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft9, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight8, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight9, 6, 5, 0.025, 0.02);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown6, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemyLimas1(design.posUp1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown7, 6, 5, 0.025, 0.02);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemy6(design.posLeft6, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemyLimas1(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft8, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight8, 6, 5, 0.025, 0.02);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown6, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft6, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemyDia(design.posCenter2, 12, 5, 4);
createEnemyDia(design.posCenter4, 12, 5, 4);
createEnemyDia(design.posCenter5, 12, 5, 4);
createEnemyDia(design.posCenter7, 12, 5, 4);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown6, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft6, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemyAttack1(design.posUp1, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft1, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft2, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft3, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp9, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight1, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight2, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight3, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft7, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft8, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft9, 10, 0.03, 0.25);
createEnemyAttack1(design.posDown1, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight7, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight8, 10, 0.03, 0.25);
createEnemyAttack1(design.posRight9, 10, 0.03, 0.25);
createEnemyAttack1(design.posDown9, 10, 0.03, 0.25);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown6, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft6, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemyDia(design.posCenter2, 12, 5, 4);
createEnemyDia(design.posCenter4, 12, 5, 4);
createEnemyDia(design.posCenter5, 12, 5, 4);
createEnemyDia(design.posCenter7, 12, 5, 4);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemy7(design.posUp5, 10, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posLeft5, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posRight5, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown5, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemy7(design.posCenter1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posCenter3, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posCenter6, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posCenter8, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemy7(design.posLeft1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posLeft9, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posRight1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posRight9, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemyLimas0(design.posLeft1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft8, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft9, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight8, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight9, 6, 5, 0.025, 0.02);
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown6, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemyLimas1(design.posUp1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown7, 6, 5, 0.025, 0.02);
enemySpawn = 16;
} else if (enemySpawn == 16) {
createEnemy6(design.posLeft4, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown6, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft6, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posUp6, design.posRight4, 8, -2.2, 2.2, -2.2, 2.2);
createEnemyDia(design.posCenter2, 12, 5, 4);
createEnemyDia(design.posCenter4, 12, 5, 4);
createEnemyDia(design.posCenter5, 12, 5, 4);
createEnemyDia(design.posCenter7, 12, 5, 4);
enemySpawn = 17;
} else if (enemySpawn == 17) {
createEnemy3(design.posUp2, design.posDown2, 0, 7, 90, 8);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 8);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 8);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 8);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 8);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 8);
createEnemy3(design.posUp8, design.posDown8, 0, 7, 90, 8);
enemySpawn = 18;
} else if (enemySpawn == 18) {
createEnemy3(design.posRight1, design.posLeft1, -7, 0, 180, 8);
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 8);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 8);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 8);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 8);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 8);
createEnemy3(design.posRight7, design.posLeft7, -7, 0, 180, 8);
createEnemy3(design.posRight8, design.posLeft8, -7, 0, 180, 8);
createEnemy3(design.posRight9, design.posLeft9, -7, 0, 180, 8);
enemySpawn = 19;
} else if (enemySpawn == 19) {
createEnemy3(design.posDown2, design.posUp2, 0, -7, -90, 8);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 8);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 8);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 8);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 8);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 8);
createEnemy3(design.posDown8, design.posUp8, 0, -7, -90, 8);
enemySpawn = 20;
} else if (enemySpawn == 20) {
createEnemy3(design.posLeft1, design.posRight1, 7, 0, 0, 8);
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 8);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 8);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 8);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 8);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 8);
createEnemy3(design.posLeft7, design.posRight7, 7, 0, 0, 8);
createEnemy3(design.posLeft8, design.posRight8, 7, 0, 0, 8);
createEnemy3(design.posLeft9, design.posRight9, 7, 0, 0, 8);
enemySpawn = 21;
} else if (enemySpawn == 21) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level8() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
if (enemySpawn == 1) {
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight6, 6, 5, 0.025, 0.02);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemy6(design.posUp4, design.posLeft3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posRight5, design.posDown6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemyLimas1(design.posUp4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp8, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown8, 6, 5, 0.025, 0.02);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemy6(design.posUp6, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posLeft5, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight6, 6, 5, 0.025, 0.02);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter5, 12, -3, 3);
createEnemyAst1(design.posCenter2, 12, -3, -3);
createEnemyAst1(design.posCenter6, 12, 3, -3);
createEnemyAst1(design.posCenter3, 12, -3, -3);
createEnemyAst1(design.posCenter7, 12, 3, -3);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemy7(design.posLeft1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posUp6, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posRight1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posLeft8, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown6, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posRight8, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemyDia(design.posUp2, 12, 5, 4);
createEnemyDia(design.posUp10, 12, 5, 4);
createEnemyDia(design.posDown2, 12, 5, 4);
createEnemyDia(design.posDown10, 12, 5, 4);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemy6(design.posLeft3, design.posUp3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp9, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posDown9, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posDown3, design.posLeft6, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemyLimas0(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight7, 6, 5, 0.025, 0.02);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemyLimas0(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight7, 6, 5, 0.025, 0.02);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemyLimas1(design.posUp3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp8, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp9, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown8, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown9, 6, 5, 0.025, 0.02);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemyDia(design.posUp6, 12, 5, 4);
createEnemyDia(design.posDown6, 12, 5, 4);
createEnemyAttack1(design.posLeft2, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft3, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft4, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft5, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft6, 10, 0.03, 0.25);
createEnemyAttack1(design.posLeft7, 10, 0.03, 0.25);
createEnemyLimas2(design.posRight2, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight3, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight4, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight5, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight6, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posRight7, 8, 5, 0.025, 0.02);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemyDia(design.posCenter2, 12, 5, 4);
createEnemyDia(design.posCenter6, 12, 5, 4);
createEnemyAttack1(design.posUp3, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp4, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp5, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp6, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp7, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp8, 10, 0.03, 0.25);
createEnemyAttack1(design.posUp9, 10, 0.03, 0.25);
createEnemyLimas2(design.posDown3, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown4, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown5, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown6, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown7, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown8, 8, 5, 0.025, 0.02);
createEnemyLimas2(design.posDown9, 8, 5, 0.025, 0.02);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemy3(design.posUp1, design.posDown1, 0, 7, 90, 8);
createEnemy3(design.posUp2, design.posDown2, 0, 7, 90, 8);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 8);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 8);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 8);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 8);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 8);
createEnemy3(design.posUp8, design.posDown8, 0, 7, 90, 8);
createEnemy3(design.posUp9, design.posDown9, 0, 7, 90, 8);
createEnemy3(design.posUp10, design.posDown10, 0, 7, 90, 8);
createEnemy3(design.posUp11, design.posDown11, 0, 7, 90, 8);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 8);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 8);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 8);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 8);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 8);
createEnemy3(design.posRight7, design.posLeft7, -7, 0, 180, 8);
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemy3(design.posDown1, design.posUp1, 0, -7, -90, 8);
createEnemy3(design.posDown2, design.posUp2, 0, -7, -90, 8);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 8);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 8);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 8);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 8);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 8);
createEnemy3(design.posDown8, design.posUp8, 0, -7, -90, 8);
createEnemy3(design.posDown9, design.posUp9, 0, -7, -90, 8);
createEnemy3(design.posDown10, design.posUp10, 0, -7, -90, 8);
createEnemy3(design.posDown11, design.posUp11, 0, -7, -90, 8);
enemySpawn = 16;
} else if (enemySpawn == 16) {
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 8);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 8);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 8);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 8);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 8);
createEnemy3(design.posLeft7, design.posRight7, 7, 0, 0, 8);
enemySpawn = 17;
} else if (enemySpawn == 17) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level7() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
if (enemySpawn == 1) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter6, 12, -3, -3);
createEnemyLimas0(design.posLeft8, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft9, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight2, 6, 5, 0.025, 0.02);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemyAst1(design.posCenter2, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, -3);
createEnemyLimas1(design.posLeft1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight8, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight9, 6, 5, 0.025, 0.02);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter4, 12, -3, -3);
createEnemyLimas1(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight7, 6, 5, 0.025, 0.02);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter6, 12, -3, -3);
createEnemyLimas1(design.posLeft8, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posLeft9, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown1, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posUp6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posUp7, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posRight2, 6, 5, 0.025, 0.02);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemyAst1(design.posCenter2, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, 3, -3);
createEnemyLimas0(design.posLeft1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft2, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posUp1, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posUp2, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posDown7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight8, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight9, 6, 5, 0.025, 0.02);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemyAst1(design.posCenter3, 12, -3, 3);
createEnemyAst1(design.posCenter4, 12, -3, -3);
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft6, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft7, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight6, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight7, 6, 5, 0.025, 0.02);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter6, 12, 5, 4);
createEnemy6(design.posLeft3, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown4, design.posRight7, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter5, 12, 5, 4);
createEnemy6(design.posUp4, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posDown4, design.posLeft7, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemy6(design.posLeft3, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp4, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posDown4, design.posRight7, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posDown4, design.posLeft7, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemyDia(design.posCenter1, 12, 5, 4);
createEnemyDia(design.posCenter6, 12, 5, 4);
createEnemy6(design.posLeft3, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown4, design.posRight7, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemyDia(design.posCenter2, 12, 5, 4);
createEnemyDia(design.posCenter5, 12, 5, 4);
createEnemy6(design.posUp4, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posDown4, design.posLeft7, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemyDia(design.posCenter3, 12, 5, 4);
createEnemyDia(design.posCenter4, 12, 5, 4);
createEnemy6(design.posLeft3, design.posUp4, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp4, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posDown4, design.posRight7, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posDown4, design.posLeft7, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemy7(design.posLeft5, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posRight5, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy9(design.posCenter1, 5, -6, -6, -4, -4);
createEnemy9(design.posCenter2, 5, -6, 6, -4, 4);
createEnemy9(design.posCenter5, 5, 6, 6, 4, 4);
createEnemy9(design.posCenter6, 5, 6, 6, 4, 4);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemy7(design.posUp1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown7, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy9(design.posCenter1, 5, -6, -6, -4, -4);
createEnemy9(design.posCenter2, 5, -6, 6, -4, 4);
createEnemy9(design.posCenter5, 5, 6, 6, 4, 4);
createEnemy9(design.posCenter6, 5, 6, 6, 4, 4);
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemy7(design.posUp7, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy9(design.posCenter1, 5, -6, -6, -4, -4);
createEnemy9(design.posCenter2, 5, -6, 6, -4, 4);
createEnemy9(design.posCenter5, 5, 6, 6, 4, 4);
createEnemy9(design.posCenter6, 5, 6, 6, 4, 4);
enemySpawn = 16;
} else if (enemySpawn == 16) {
createEnemy2(design.posDown7, 6, 0.012, 0.01);
createEnemy2(design.posDown6, 6, 0.012, 0.01);
createEnemy2(design.posDown5, 6, 0.012, 0.01);
createEnemy2(design.posDown4, 6, 0.012, 0.01);
createEnemy2(design.posDown3, 6, 0.012, 0.01);
createEnemy1(design.posUp1, 6, 0.012, 0.01);
createEnemy1(design.posUp2, 6, 0.012, 0.01);
createEnemy1(design.posUp3, 6, 0.012, 0.01);
createEnemy1(design.posUp4, 6, 0.012, 0.01);
createEnemy1(design.posUp5, 6, 0.012, 0.01);
createEnemy4(design.posLeft4, 6, 0.012, 0.01);
createEnemy4(design.posLeft5, 6, 0.012, 0.01);
createEnemy4(design.posLeft6, 6, 0.012, 0.01);
createEnemy4(design.posRight4, 6, 0.012, 0.01);
createEnemy4(design.posRight5, 6, 0.012, 0.01);
createEnemy4(design.posRight6, 6, 0.012, 0.01);
enemySpawn = 17;
} else if (enemySpawn == 17) {
createEnemy2(design.posDown2, 6, 0.012, 0.01);
createEnemy2(design.posDown3, 6, 0.012, 0.01);
createEnemy2(design.posDown4, 6, 0.012, 0.01);
createEnemy2(design.posDown5, 6, 0.012, 0.01);
createEnemy2(design.posDown6, 6, 0.012, 0.01);
createEnemy1(design.posUp2, 6, 0.012, 0.01);
createEnemy1(design.posUp3, 6, 0.012, 0.01);
createEnemy1(design.posUp4, 6, 0.012, 0.01);
createEnemy1(design.posUp5, 6, 0.012, 0.01);
createEnemy1(design.posUp6, 6, 0.012, 0.01);
createEnemy4(design.posLeft4, 6, 0.012, 0.01);
createEnemy4(design.posLeft5, 6, 0.012, 0.01);
createEnemy4(design.posLeft6, 6, 0.012, 0.01);
createEnemy4(design.posRight4, 6, 0.012, 0.01);
createEnemy4(design.posRight5, 6, 0.012, 0.01);
createEnemy4(design.posRight6, 6, 0.012, 0.01);
enemySpawn = 18;
} else if (enemySpawn == 18) {
createEnemy2(design.posDown1, 6, 0.012, 0.01);
createEnemy2(design.posDown2, 6, 0.012, 0.01);
createEnemy2(design.posDown3, 6, 0.012, 0.01);
createEnemy2(design.posDown4, 6, 0.012, 0.01);
createEnemy2(design.posDown5, 6, 0.012, 0.01);
createEnemy1(design.posUp7, 6, 0.012, 0.01);
createEnemy1(design.posUp6, 6, 0.012, 0.01);
createEnemy1(design.posUp5, 6, 0.012, 0.01);
createEnemy1(design.posUp4, 6, 0.012, 0.01);
createEnemy1(design.posUp3, 6, 0.012, 0.01);
createEnemy4(design.posLeft4, 6, 0.012, 0.01);
createEnemy4(design.posLeft5, 6, 0.012, 0.01);
createEnemy4(design.posLeft6, 6, 0.012, 0.01);
createEnemy4(design.posRight4, 6, 0.012, 0.01);
createEnemy4(design.posRight5, 6, 0.012, 0.01);
createEnemy4(design.posRight6, 6, 0.012, 0.01);
enemySpawn = 19;
} else if (enemySpawn == 19) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level6() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
design.airco.airco++;
if (enemySpawn == 1) {
createEnemyLimas0(design.posLeft3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posLeft5, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posRight5, 6, 5, 0.025, 0.02);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemyLimas1(design.posUp3, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp4, 6, 5, 0.025, 0.02);
createEnemyLimas1(design.posUp5, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown3, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown4, 6, 5, 0.025, 0.02);
createEnemyLimas0(design.posDown5, 6, 5, 0.025, 0.02);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemy9(design.posCenter1, 5, -6, -6, -4, -4);
createEnemy9(design.posCenter2, 5, -6, 6, -4, 4);
createEnemy9(design.posCenter3, 5, 6, 6, 4, 4);
createEnemy9(design.posCenter4, 5, 6, 6, 4, 4);
createEnemy9(design.posCenter5, 5, -6, 6, -4, 4);
createEnemy9(design.posCenter6, 5, 6, 6, 4, 4);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter2, 12, -3, 3);
createEnemyAst1(design.posCenter5, 12, -3, -3);
createEnemyAst1(design.posCenter6, 12, 3, -3);
enemySpawn = 5;
} else if (enemySpawn == 5) {
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemyDia(design.posCenter3, 12, 5, 4);
createEnemyDia(design.posCenter4, 12, 5, 4);
createEnemy7(design.posUp2, 6, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posUp6, 6, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown2, 6, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown6, 6, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemyDia(design.posCenter1, 12, 5, 4);
createEnemyDia(design.posCenter2, 12, 5, 4);
createEnemyDia(design.posCenter5, 12, 5, 4);
createEnemyDia(design.posCenter6, 12, 5, 4);
createEnemy7(design.posLeft4, 6, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posRight4, 6, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemy3(design.posUp1, design.posDown1, 0, 7, 90, 8);
createEnemy3(design.posUp2, design.posDown2, 0, 7, 90, 8);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 8);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 8);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 8);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 8);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 8);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemy3(design.posRight1, design.posLeft1, -7, 0, 180, 8);
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 8);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 8);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 8);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 8);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 8);
createEnemy3(design.posRight7, design.posLeft7, -7, 0, 180, 8);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemy3(design.posDown1, design.posUp1, 0, -7, -90, 8);
createEnemy3(design.posDown2, design.posUp2, 0, -7, -90, 8);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 8);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 8);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 8);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 8);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 8);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemy3(design.posLeft1, design.posRight1, 7, 0, 0, 8);
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 8);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 8);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 8);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 8);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 8);
createEnemy3(design.posLeft7, design.posRight7, 7, 0, 0, 8);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemy3(design.posUp1, design.posDown1, 0, 7, 90, 8);
createEnemy3(design.posUp2, design.posDown2, 0, 7, 90, 8);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 8);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 8);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 8);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 8);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 8);
createEnemy1(design.posLeft1, 5, 0.03, 0.02);
createEnemy1(design.posUp1, 5, 0.03, 0.02);
createEnemy1(design.posUp2, 5, 0.03, 0.02);
createEnemy2(design.posDown6, 5, 0.03, 0.02);
createEnemy2(design.posDown7, 5, 0.03, 0.02);
createEnemy2(design.posRight7, 5, 0.03, 0.02);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemy3(design.posRight1, design.posLeft1, -7, 0, 180, 8);
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 8);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 8);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 8);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 8);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 8);
createEnemy3(design.posRight7, design.posLeft7, -7, 0, 180, 8);
createEnemy2(design.posLeft7, 5, 0.03, 0.02);
createEnemy2(design.posDown1, 5, 0.03, 0.02);
createEnemy2(design.posDown2, 5, 0.03, 0.02);
createEnemy1(design.posUp6, 5, 0.03, 0.02);
createEnemy1(design.posUp7, 5, 0.03, 0.02);
createEnemy1(design.posRight1, 5, 0.03, 0.02);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemy3(design.posDown1, design.posUp1, 0, -7, -90, 8);
createEnemy3(design.posDown2, design.posUp2, 0, -7, -90, 8);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 8);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 8);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 8);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 8);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 8);
createEnemy2(design.posLeft1, 5, 0.03, 0.02);
createEnemy2(design.posUp1, 5, 0.03, 0.02);
createEnemy2(design.posUp2, 5, 0.03, 0.02);
createEnemy1(design.posDown6, 5, 0.03, 0.02);
createEnemy1(design.posDown7, 5, 0.03, 0.02);
createEnemy1(design.posRight7, 5, 0.03, 0.02);
enemySpawn = 13;
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemy3(design.posLeft1, design.posRight1, 7, 0, 0, 8);
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 8);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 8);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 8);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 8);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 8);
createEnemy3(design.posLeft7, design.posRight7, 7, 0, 0, 8);
createEnemy1(design.posLeft7, 5, 0.03, 0.02);
createEnemy1(design.posDown1, 5, 0.03, 0.02);
createEnemy1(design.posDown2, 5, 0.03, 0.02);
createEnemy2(design.posUp6, 5, 0.03, 0.02);
createEnemy2(design.posUp7, 5, 0.03, 0.02);
createEnemy2(design.posRight1, 5, 0.03, 0.02);
enemySpawn = 16;
} else if (enemySpawn == 16) {
createEnemy3(design.posUp1, design.posDown1, 0, 7, 90, 8);
createEnemy3(design.posUp2, design.posDown2, 0, 7, 90, 8);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 8);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 8);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 8);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 8);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 8);
createEnemy6(design.posLeft2, design.posUp3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown5, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 17;
} else if (enemySpawn == 17) {
createEnemy3(design.posRight1, design.posLeft1, -7, 0, 180, 8);
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 8);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 8);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 8);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 8);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 8);
createEnemy3(design.posRight7, design.posLeft7, -7, 0, 180, 8);
createEnemy6(design.posUp5, design.posRight2, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posDown3, design.posLeft6, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 18;
} else if (enemySpawn == 18) {
createEnemy3(design.posDown1, design.posUp1, 0, -7, -90, 8);
createEnemy3(design.posDown2, design.posUp2, 0, -7, -90, 8);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 8);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 8);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 8);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 8);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 8);
createEnemy6(design.posLeft2, design.posUp3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posDown5, design.posRight6, 8, -2.2, -2.2, -2.2, -2.2);
enemySpawn = 19;
} else if (enemySpawn == 19) {
createEnemy3(design.posLeft1, design.posRight1, 7, 0, 0, 8);
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 8);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 8);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 8);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 8);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 8);
createEnemy3(design.posLeft7, design.posRight7, 7, 0, 0, 8);
createEnemy6(design.posUp5, design.posRight2, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posDown3, design.posLeft6, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 20;
} else if (enemySpawn == 20) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level5() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
design.blink1.gotoAndPlay("blink");
design.blink2.gotoAndPlay("blink");
design.blink3.gotoAndPlay("blink");
design.blink4.gotoAndPlay("blink");
if (enemySpawn == 1) {
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter2, 12, -3, 3);
createEnemyAst1(design.posCenter3, 12, -3, -3);
createEnemyAst1(design.posCenter4, 12, 3, -3);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemyTwister(design.posCenter7, 12, 5, 4);
createEnemyTwister(design.posCenter8, 12, 5, 4);
createEnemy1(design.posLeft1, 5, 0.03, 0.02);
createEnemy1(design.posLeft2, 5, 0.03, 0.02);
createEnemy1(design.posUp1, 5, 0.03, 0.02);
createEnemy1(design.posUp2, 5, 0.03, 0.02);
createEnemy2(design.posLeft6, 5, 0.03, 0.02);
createEnemy2(design.posLeft7, 5, 0.03, 0.02);
createEnemy2(design.posDown1, 5, 0.03, 0.02);
createEnemy2(design.posDown2, 5, 0.03, 0.02);
createEnemy1(design.posUp8, 5, 0.03, 0.02);
createEnemy1(design.posUp9, 5, 0.03, 0.02);
createEnemy1(design.posRight1, 5, 0.03, 0.02);
createEnemy1(design.posRight2, 5, 0.03, 0.02);
createEnemy2(design.posRight6, 5, 0.03, 0.02);
createEnemy2(design.posRight7, 5, 0.03, 0.02);
createEnemy2(design.posDown8, 5, 0.03, 0.02);
createEnemy2(design.posDown9, 5, 0.03, 0.02);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemyTwister(design.posCenter5, 12, 5, 4);
createEnemyTwister(design.posCenter6, 12, 5, 4);
createEnemy7(design.posUp1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posUp9, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown9, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemyTwister(design.posCenter7, 12, 5, 4);
createEnemyTwister(design.posCenter8, 12, 5, 4);
createEnemy6(design.posUp4, design.posLeft3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight5, design.posDown6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft5, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemyTwister(design.posCenter5, 12, 5, 4);
createEnemyTwister(design.posCenter6, 12, 5, 4);
createEnemy6(design.posUp4, design.posLeft3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight5, design.posDown6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft5, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemyTwister(design.posCenter7, 12, 5, 4);
createEnemyTwister(design.posCenter8, 12, 5, 4);
createEnemy6(design.posUp4, design.posLeft3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight5, design.posDown6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft5, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemyTwister(design.posCenter5, 12, 5, 4);
createEnemyTwister(design.posCenter6, 12, 5, 4);
createEnemy6(design.posUp2, design.posLeft1, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp7, design.posRight1, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight7, design.posDown7, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft7, design.posDown3, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemy6(design.posUp4, design.posLeft3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight5, design.posDown6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft5, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy6(design.posUp2, design.posLeft1, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp7, design.posRight1, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight7, design.posDown7, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft7, design.posDown3, 8, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemyAst1(design.posCenter1, 12, 3, 3);
createEnemyAst1(design.posCenter2, 12, -3, 3);
createEnemyAst1(design.posCenter3, 12, -3, -3);
createEnemyAst1(design.posCenter4, 12, 3, -3);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemyAst1(design.posCenter7, 12, 3, 3);
createEnemyAst1(design.posCenter8, 12, -3, -3);
createEnemy7(design.posUp1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posUp9, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown9, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemyTwister(design.posCenter5, 12, 5, 4);
createEnemyTwister(design.posCenter6, 12, 5, 4);
createEnemy7(design.posUp1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posUp9, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown9, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemy6(design.posUp4, design.posLeft3, 8, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp6, design.posRight3, 8, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight5, design.posDown6, 8, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft5, design.posDown4, 8, 2.2, -2.2, 2.2, -2.2);
createEnemy7(design.posUp1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posUp9, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown1, 8, 2, 0.025, 0.03, 0.025, 0.02);
createEnemy7(design.posDown9, 8, 2, 0.025, 0.03, 0.025, 0.02);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 8);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 8);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 8);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 8);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 8);
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 8);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 8);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 8);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 8);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 8);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 8);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 8);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 8);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 8);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 8);
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 8);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 8);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 8);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 8);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 8);
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 8);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 8);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 8);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 8);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 8);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 8);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 8);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 8);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 8);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 8);
enemySpawn = 16;
} else if (enemySpawn == 16) {
createEnemyTwister(design.posCenter1, 12, 5, 4);
createEnemyTwister(design.posCenter2, 12, 5, 4);
createEnemyTwister(design.posCenter3, 12, 5, 4);
createEnemyTwister(design.posCenter4, 12, 5, 4);
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 8);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 8);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 8);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 8);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 8);
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 8);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 8);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 8);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 8);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 8);
enemySpawn = 17;
} else if (enemySpawn == 17) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level4() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
if (enemySpawn == 1) {
createEnemy7(design.posUp5, 6, 2, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posDown5, 6, 2, 0.03, 0.05, 0.03, 0.025);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemy7(design.posLeft1, 6, 2, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posLeft7, 6, 2, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 6, 2, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight7, 6, 2, 0.025, 0.03, 0.02, 0.015);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemy7(design.posUp2, 6, 2, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posUp8, 6, 2, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posDown2, 6, 2, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posDown8, 6, 2, 0.03, 0.05, 0.03, 0.025);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemy9(design.posLeft1, 5, -6, -6, -4, -4);
createEnemy9(design.posLeft7, 5, 6, 6, 4, 4);
createEnemy9(design.posUp2, 5, -6, 6, -4, 4);
createEnemy9(design.posDown2, 5, 6, 6, 4, 4);
createEnemy9(design.posUp8, 5, 6, 6, 4, 4);
createEnemy9(design.posDown8, 5, -6, 6, -4, 4);
createEnemy9(design.posRight1, 5, -6, 6, 4, -4);
createEnemy9(design.posRight7, 5, -6, -6, -4, -4);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemy6(design.posLeft2, design.posLeft5, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posRight2, design.posRight5, 6, -2.2, 2.2, -2.2, 2.2);
createEnemy1(design.posLeft1, 3, 0.03, 0.02);
createEnemy1(design.posLeft2, 3, 0.03, 0.02);
createEnemy1(design.posLeft6, 3, 0.03, 0.02);
createEnemy1(design.posLeft7, 3, 0.03, 0.02);
createEnemy2(design.posRight1, 3, 0.03, 0.02);
createEnemy2(design.posRight2, 3, 0.03, 0.02);
createEnemy2(design.posRight6, 3, 0.03, 0.02);
createEnemy2(design.posRight7, 3, 0.03, 0.02);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemy3(design.posUp1, design.posDown1, 0, 7, 90, 6);
createEnemy3(design.posUp2, design.posDown2, 0, 7, 90, 6);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 6);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 6);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 6);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 6);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 6);
createEnemy3(design.posUp8, design.posDown8, 0, 7, 90, 6);
createEnemy3(design.posUp9, design.posDown9, 0, 7, 90, 6);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemy3(design.posDown1, design.posUp1, 0, -7, -90, 6);
createEnemy3(design.posDown2, design.posUp2, 0, -7, -90, 6);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 6);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 6);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 6);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 6);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 6);
createEnemy3(design.posDown8, design.posUp8, 0, -7, -90, 6);
createEnemy3(design.posDown9, design.posUp9, 0, -7, -90, 6);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 6);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 6);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 6);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 6);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 6);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 6);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 6);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 6);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 6);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 6);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemy7(design.posLeft1, 5, 2, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posLeft7, 5, 2, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight1, 5, 2, 0.025, 0.03, 0.02, 0.015);
createEnemy7(design.posRight7, 5, 2, 0.025, 0.03, 0.02, 0.015);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemy7(design.posLeft1, 6, 3, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posLeft7, 6, 3, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posRight1, 6, 3, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posRight7, 6, 3, 0.03, 0.05, 0.03, 0.025);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemy7(design.posLeft5, 6, 6, 0.05, 0.06, 0.03, 0.025);
createEnemy7(design.posRight5, 6, 6, 0.05, 0.06, 0.03, 0.025);
createEnemy7(design.posDown2, 6, 6, 0.05, 0.06, 0.03, 0.025);
createEnemy7(design.posDown8, 6, 6, 0.05, 0.06, 0.03, 0.025);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemy7(design.posLeft1, 6, 10, 0.06, 0.07, 0.03, 0.025);
createEnemy7(design.posLeft7, 6, 10, 0.06, 0.07, 0.03, 0.025);
createEnemy7(design.posRight1, 6, 10, 0.06, 0.07, 0.03, 0.025);
createEnemy7(design.posRight7, 6, 10, 0.06, 0.07, 0.03, 0.025);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 6);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 6);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 6);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 6);
createEnemy3(design.posLeft6, design.posRight6, 7, 0, 0, 6);
createEnemy7(design.posRight2, 6, 6, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posRight6, 6, 6, 0.03, 0.05, 0.03, 0.025);
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 6);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 6);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 6);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 6);
createEnemy3(design.posRight6, design.posLeft6, -7, 0, 180, 6);
createEnemy7(design.posLeft2, 6, 6, 0.03, 0.05, 0.03, 0.025);
createEnemy7(design.posLeft6, 6, 6, 0.03, 0.05, 0.03, 0.025);
enemySpawn = 16;
} else if (enemySpawn == 16) {
enemySpawn = 17;
} else if (enemySpawn == 17) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level3() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
if (enemySpawn == 1) {
createEnemy6(design.posUp2, design.posLeft2, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight2, 6, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight4, design.posDown8, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft4, design.posDown2, 6, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemy1(design.posUp2, 3, 0.014, 0.012);
createEnemy1(design.posUp5, 3, 0.014, 0.012);
createEnemy1(design.posUp8, 3, 0.014, 0.012);
createEnemy2(design.posDown2, 3, 0.014, 0.012);
createEnemy2(design.posDown5, 3, 0.014, 0.012);
createEnemy2(design.posDown8, 3, 0.014, 0.012);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemy9(design.posLeft1, 5, -6, -6, -4, -4);
createEnemy9(design.posLeft3, 5, -6, 6, -4, 4);
createEnemy9(design.posLeft5, 5, 6, 6, 4, 4);
createEnemy9(design.posRight1, 5, 6, 6, 4, 4);
createEnemy9(design.posRight3, 5, -6, 6, 4, -4);
createEnemy9(design.posRight5, 5, -6, -6, -4, -4);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemy6(design.posLeft2, design.posLeft4, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posRight2, design.posRight4, 6, 2.2, 2.2, -2.2, -2.2);
createEnemy1(design.posUp1, 3, 0.014, 0.012);
createEnemy1(design.posUp2, 3, 0.014, 0.012);
createEnemy1(design.posLeft1, 3, 0.014, 0.012);
createEnemy1(design.posLeft2, 3, 0.014, 0.012);
createEnemy2(design.posRight4, 3, 0.014, 0.012);
design.posRight5;
design.posDown8;
design.posDown9;
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemy6(design.posLeft2, design.posLeft4, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posRight2, design.posRight4, 6, -2.2, -2.2, 2.2, 2.2);
createEnemy1(design.posUp8, 3, 0.014, 0.012);
createEnemy1(design.posUp9, 3, 0.014, 0.012);
createEnemy1(design.posRight1, 3, 0.014, 0.012);
createEnemy1(design.posRight2, 3, 0.014, 0.012);
createEnemy2(design.posDown1, 3, 0.014, 0.012);
createEnemy2(design.posDown2, 3, 0.014, 0.012);
createEnemy2(design.posLeft4, 3, 0.014, 0.012);
createEnemy2(design.posLeft5, 3, 0.014, 0.012);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemy6(design.posUp2, design.posLeft2, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight2, 6, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight4, design.posDown8, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft4, design.posDown2, 6, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemy9(design.posUp2, 5, -6, -6, -4, -4);
createEnemy9(design.posUp5, 5, -6, 6, -4, 4);
createEnemy9(design.posUp8, 5, 6, 6, 4, 4);
createEnemy9(design.posDown2, 5, 6, 6, 4, 4);
createEnemy9(design.posDown5, 5, -6, 6, 4, -4);
createEnemy9(design.posDown8, 5, -6, -6, -4, -4);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemy6(design.posUp2, design.posLeft2, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight2, 6, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight4, design.posDown8, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft4, design.posDown2, 6, 2.2, -2.2, 2.2, -2.2);
createEnemy1(design.posUp1, 3, 0.014, 0.012);
createEnemy1(design.posUp2, 3, 0.014, 0.012);
createEnemy1(design.posLeft1, 3, 0.014, 0.012);
createEnemy1(design.posLeft2, 3, 0.014, 0.012);
createEnemy2(design.posRight4, 3, 0.014, 0.012);
createEnemy2(design.posRight5, 3, 0.014, 0.012);
createEnemy2(design.posDown8, 3, 0.014, 0.012);
createEnemy2(design.posDown9, 3, 0.014, 0.012);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemy4(design.posRight1, 4, 0.012, 0.01);
createEnemy4(design.posRight3, 4, 0.012, 0.01);
createEnemy4(design.posRight5, 4, 0.012, 0.01);
createEnemy4(design.posLeft1, 4, 0.012, 0.01);
createEnemy4(design.posLeft3, 4, 0.012, 0.01);
createEnemy4(design.posLeft5, 4, 0.012, 0.01);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemy6(design.posUp2, design.posLeft2, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight2, 6, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight4, design.posDown8, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft4, design.posDown2, 6, 2.2, -2.2, 2.2, -2.2);
createEnemy1(design.posUp8, 3, 0.014, 0.012);
createEnemy1(design.posUp9, 3, 0.014, 0.012);
createEnemy1(design.posRight1, 3, 0.014, 0.012);
createEnemy1(design.posRight2, 3, 0.014, 0.012);
createEnemy2(design.posDown1, 3, 0.014, 0.012);
createEnemy2(design.posDown2, 3, 0.014, 0.012);
createEnemy2(design.posLeft4, 3, 0.014, 0.012);
createEnemy2(design.posLeft5, 3, 0.014, 0.012);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemy6(design.posLeft2, design.posLeft4, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posRight2, design.posRight4, 6, -2.2, -2.2, 2.2, 2.2);
createEnemy9(design.posUp2, 5, -6, -6, -4, -4);
createEnemy9(design.posUp5, 5, -6, 6, -4, 4);
createEnemy9(design.posUp8, 5, 6, 6, 4, 4);
createEnemy9(design.posDown2, 5, 6, 6, 4, 4);
createEnemy9(design.posDown5, 5, -6, 6, 4, -4);
createEnemy9(design.posDown8, 5, -6, -6, -4, -4);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemy9(design.posUp2, 5, -6, -6, -4, -4);
createEnemy9(design.posUp5, 5, -6, 6, -4, 4);
createEnemy9(design.posUp8, 5, 6, 6, 4, 4);
createEnemy9(design.posDown2, 5, 6, 6, 4, 4);
createEnemy9(design.posDown5, 5, -6, 6, 4, -4);
createEnemy9(design.posDown8, 5, -6, -6, -4, -4);
createEnemy6(design.posUp2, design.posLeft2, 6, 2.2, 2.2, 2.2, 2.2);
createEnemy6(design.posUp8, design.posRight2, 6, -2.2, 2.2, -2.2, 2.2);
createEnemy6(design.posRight4, design.posDown8, 6, -2.2, -2.2, -2.2, -2.2);
createEnemy6(design.posLeft4, design.posDown2, 6, 2.2, -2.2, 2.2, -2.2);
enemySpawn = 13;
} else if (enemySpawn == 13) {
createEnemy3(design.posUp1, design.posDown1, 0, 7, 90, 6);
createEnemy3(design.posUp2, design.posDown2, 0, 7, 90, 6);
createEnemy3(design.posUp3, design.posDown3, 0, 7, 90, 6);
createEnemy3(design.posUp4, design.posDown4, 0, 7, 90, 6);
createEnemy3(design.posUp5, design.posDown5, 0, 7, 90, 6);
createEnemy3(design.posUp6, design.posDown6, 0, 7, 90, 6);
createEnemy3(design.posUp7, design.posDown7, 0, 7, 90, 6);
createEnemy3(design.posUp8, design.posDown8, 0, 7, 90, 6);
createEnemy3(design.posUp9, design.posDown9, 0, 7, 90, 6);
enemySpawn = 14;
} else if (enemySpawn == 14) {
createEnemy3(design.posLeft1, design.posRight1, 7, 0, 0, 6);
createEnemy3(design.posLeft2, design.posRight2, 7, 0, 0, 6);
createEnemy3(design.posLeft3, design.posRight3, 7, 0, 0, 6);
createEnemy3(design.posLeft4, design.posRight4, 7, 0, 0, 6);
createEnemy3(design.posLeft5, design.posRight5, 7, 0, 0, 6);
enemySpawn = 15;
} else if (enemySpawn == 15) {
createEnemy3(design.posRight1, design.posLeft1, -7, 0, 180, 6);
createEnemy3(design.posRight2, design.posLeft2, -7, 0, 180, 6);
createEnemy3(design.posRight3, design.posLeft3, -7, 0, 180, 6);
createEnemy3(design.posRight4, design.posLeft4, -7, 0, 180, 6);
createEnemy3(design.posRight5, design.posLeft5, -7, 0, 180, 6);
enemySpawn = 16;
} else if (enemySpawn == 16) {
createEnemy3(design.posDown1, design.posUp1, 0, -7, -90, 4);
createEnemy3(design.posDown2, design.posUp2, 0, -7, -90, 4);
createEnemy3(design.posDown3, design.posUp3, 0, -7, -90, 4);
createEnemy3(design.posDown4, design.posUp4, 0, -7, -90, 4);
createEnemy3(design.posDown5, design.posUp5, 0, -7, -90, 4);
createEnemy3(design.posDown6, design.posUp6, 0, -7, -90, 6);
createEnemy3(design.posDown7, design.posUp7, 0, -7, -90, 6);
createEnemy3(design.posDown8, design.posUp8, 0, -7, -90, 6);
createEnemy3(design.posDown9, design.posUp9, 0, -7, -90, 6);
enemySpawn = 17;
} else if (enemySpawn == 17) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
function level1() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
if (enemySpawn == 1) {
createEnemy1(design.posUp3, 2, 0.012, 0.01);
createEnemy1(design.posRight3, 2, 0.012, 0.01);
createEnemy1(design.posDown3, 2, 0.012, 0.01);
createEnemy1(design.posLeft3, 2, 0.012, 0.01);
enemySpawn = 2;
} else if (enemySpawn == 2) {
_root.commet.gotoAndStop(15);
createEnemy2(design.posUp1, 2, 0.012, 0.01);
createEnemy2(design.posUp5, 2, 0.012, 0.01);
createEnemy2(design.posRight1, 2, 0.012, 0.01);
createEnemy2(design.posRight5, 2, 0.012, 0.01);
createEnemy2(design.posDown1, 2, 0.012, 0.01);
createEnemy2(design.posDown5, 2, 0.012, 0.01);
createEnemy2(design.posLeft1, 2, 0.012, 0.01);
createEnemy2(design.posLeft5, 2, 0.012, 0.01);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemy4(design.posRight1, 3, 0.012, 0.01);
createEnemy4(design.posRight3, 3, 0.012, 0.01);
createEnemy4(design.posRight5, 3, 0.012, 0.01);
createEnemy4(design.posLeft1, 3, 0.012, 0.01);
createEnemy4(design.posLeft3, 3, 0.012, 0.01);
createEnemy4(design.posLeft5, 3, 0.012, 0.01);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemy1(design.posUp3, 2, 0.012, 0.01);
createEnemy1(design.posRight3, 2, 0.012, 0.01);
createEnemy1(design.posDown3, 2, 0.012, 0.01);
createEnemy1(design.posLeft3, 2, 0.012, 0.01);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemy2(design.posUp1, 2, 0.012, 0.01);
createEnemy2(design.posUp5, 2, 0.012, 0.01);
createEnemy2(design.posRight1, 2, 0.012, 0.01);
createEnemy2(design.posRight5, 2, 0.012, 0.01);
createEnemy2(design.posDown1, 2, 0.012, 0.01);
createEnemy2(design.posDown5, 2, 0.012, 0.01);
createEnemy2(design.posLeft1, 2, 0.012, 0.01);
createEnemy2(design.posLeft5, 2, 0.012, 0.01);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemy4(design.posUp1, 3, 0.012, 0.01);
createEnemy4(design.posUp3, 3, 0.012, 0.01);
createEnemy4(design.posUp5, 3, 0.012, 0.01);
createEnemy4(design.posDown1, 3, 0.012, 0.01);
createEnemy4(design.posDown3, 3, 0.012, 0.01);
createEnemy4(design.posDown5, 3, 0.012, 0.01);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemy1(design.posLeft1, 2, 0.012, 0.01);
createEnemy1(design.posLeft2, 2, 0.012, 0.01);
createEnemy1(design.posLeft3, 2, 0.012, 0.01);
createEnemy1(design.posLeft4, 2, 0.012, 0.01);
createEnemy1(design.posLeft5, 2, 0.012, 0.01);
createEnemy1(design.posLeft6, 2, 0.012, 0.01);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemy2(design.posRight1, 2, 0.012, 0.01);
createEnemy2(design.posRight2, 2, 0.012, 0.01);
createEnemy2(design.posRight3, 2, 0.012, 0.01);
createEnemy2(design.posRight4, 2, 0.012, 0.01);
createEnemy2(design.posRight5, 2, 0.012, 0.01);
createEnemy2(design.posRight6, 2, 0.012, 0.01);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemy1(design.posUp1, 2, 0.012, 0.01);
createEnemy1(design.posUp2, 2, 0.012, 0.01);
createEnemy1(design.posUp3, 2, 0.012, 0.01);
createEnemy1(design.posUp4, 2, 0.012, 0.01);
createEnemy1(design.posUp5, 2, 0.012, 0.01);
createEnemy1(design.posUp6, 2, 0.012, 0.01);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemy2(design.posDown1, 2, 0.012, 0.01);
createEnemy2(design.posDown2, 2, 0.012, 0.01);
createEnemy2(design.posDown3, 2, 0.012, 0.01);
createEnemy2(design.posDown4, 2, 0.012, 0.01);
createEnemy2(design.posDown5, 2, 0.012, 0.01);
createEnemy2(design.posDown6, 2, 0.012, 0.01);
enemySpawn = 11;
} else if (enemySpawn == 11) {
_root.commet.gotoAndStop(15);
createEnemy4(design.posUp1, 3, 0.012, 0.01);
createEnemy4(design.posUp3, 3, 0.012, 0.01);
createEnemy4(design.posUp5, 3, 0.012, 0.01);
createEnemy4(design.posDown1, 3, 0.012, 0.01);
createEnemy4(design.posDown3, 3, 0.012, 0.01);
createEnemy4(design.posDown5, 3, 0.012, 0.01);
createEnemy4(design.posLeft1, 3, 0.012, 0.01);
createEnemy4(design.posLeft3, 3, 0.012, 0.01);
createEnemy4(design.posLeft5, 3, 0.012, 0.01);
createEnemy4(design.posRight1, 3, 0.012, 0.01);
createEnemy4(design.posRight3, 3, 0.012, 0.01);
createEnemy4(design.posRight5, 3, 0.012, 0.01);
enemySpawn = 12;
} else if (enemySpawn == 12) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
if (gameWave <= 0) {
countDown.gotoAndPlay(2);
}
}
}
function level2() {
if (enemyScreen == 0) {
safeLow = enemyCount;
countDown.gotoAndPlay(2);
if (enemySpawn == 1) {
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 4);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 4);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 4);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 4);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 4);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 4);
enemySpawn = 2;
} else if (enemySpawn == 2) {
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 4);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 4);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 4);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 4);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 4);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 4);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 4);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 4);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 4);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 4);
createEnemy3(design.posUp11, design.posDown11, 0, 5, 90, 4);
createEnemy3(design.posUp12, design.posDown12, 0, 5, 90, 4);
enemySpawn = 3;
} else if (enemySpawn == 3) {
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 4);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 4);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 4);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 4);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 4);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 4);
enemySpawn = 4;
} else if (enemySpawn == 4) {
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 4);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 4);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 4);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 4);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 4);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 4);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 4);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 4);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 4);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 4);
createEnemy3(design.posDown11, design.posUp11, 0, -5, -90, 4);
createEnemy3(design.posDown12, design.posUp12, 0, -5, -90, 4);
enemySpawn = 5;
} else if (enemySpawn == 5) {
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 4);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 4);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 4);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 4);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 4);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 4);
enemySpawn = 6;
} else if (enemySpawn == 6) {
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 4);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 4);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 4);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 4);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 4);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 4);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 4);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 4);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 4);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 4);
createEnemy3(design.posUp11, design.posDown11, 0, 5, 90, 4);
createEnemy3(design.posUp12, design.posDown12, 0, 5, 90, 4);
enemySpawn = 7;
} else if (enemySpawn == 7) {
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 4);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 4);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 4);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 4);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 4);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 4);
enemySpawn = 8;
} else if (enemySpawn == 8) {
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 4);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 4);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 4);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 4);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 4);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 4);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 4);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 4);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 4);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 4);
createEnemy3(design.posDown11, design.posUp11, 0, -5, -90, 4);
createEnemy3(design.posDown12, design.posUp12, 0, -5, -90, 4);
enemySpawn = 9;
} else if (enemySpawn == 9) {
createEnemy3(design.posLeft1, design.posRight1, 5, 0, 0, 4);
createEnemy3(design.posLeft2, design.posRight2, 5, 0, 0, 4);
createEnemy3(design.posLeft3, design.posRight3, 5, 0, 0, 4);
createEnemy3(design.posLeft4, design.posRight4, 5, 0, 0, 4);
createEnemy3(design.posLeft5, design.posRight5, 5, 0, 0, 4);
createEnemy3(design.posLeft6, design.posRight6, 5, 0, 0, 4);
createEnemy9(design.posUp1, 3, -3, -3, -2, -2);
createEnemy9(design.posUp3, 3, -3, 3, -2, 2);
createEnemy9(design.posUp10, 3, 3, 3, 2, 2);
createEnemy9(design.posDown1, 3, -3, 3, 2, -2);
createEnemy9(design.posDown3, 3, -3, -3, -2, -2);
createEnemy9(design.posDown10, 3, -3, 3, 2, -2);
enemySpawn = 10;
} else if (enemySpawn == 10) {
createEnemy3(design.posUp1, design.posDown1, 0, 5, 90, 4);
createEnemy3(design.posUp2, design.posDown2, 0, 5, 90, 4);
createEnemy3(design.posUp3, design.posDown3, 0, 5, 90, 4);
createEnemy3(design.posUp4, design.posDown4, 0, 5, 90, 4);
createEnemy3(design.posUp5, design.posDown5, 0, 5, 90, 4);
createEnemy3(design.posUp6, design.posDown6, 0, 5, 90, 4);
createEnemy3(design.posUp7, design.posDown7, 0, 5, 90, 4);
createEnemy3(design.posUp8, design.posDown8, 0, 5, 90, 4);
createEnemy3(design.posUp9, design.posDown9, 0, 5, 90, 4);
createEnemy3(design.posUp10, design.posDown10, 0, 5, 90, 4);
createEnemy3(design.posUp11, design.posDown11, 0, 5, 90, 4);
createEnemy3(design.posUp12, design.posDown12, 0, 5, 90, 4);
createEnemy9(design.posLeft1, 3, -3, -3, -2, -2);
createEnemy9(design.posLeft3, 3, -3, 3, -2, 2);
createEnemy9(design.posLeft6, 3, 3, 3, 2, 2);
createEnemy9(design.posRight1, 3, -3, 3, 2, -2);
createEnemy9(design.posRight3, 3, -3, -3, -2, -2);
createEnemy9(design.posRight6, 3, -3, 3, 2, -2);
enemySpawn = 11;
} else if (enemySpawn == 11) {
createEnemy3(design.posRight1, design.posLeft1, -5, 0, 180, 4);
createEnemy3(design.posRight2, design.posLeft2, -5, 0, 180, 4);
createEnemy3(design.posRight3, design.posLeft3, -5, 0, 180, 4);
createEnemy3(design.posRight4, design.posLeft4, -5, 0, 180, 4);
createEnemy3(design.posRight5, design.posLeft5, -5, 0, 180, 4);
createEnemy3(design.posRight6, design.posLeft6, -5, 0, 180, 4);
createEnemy9(design.posUp1, 3, -3, -3, -2, -2);
createEnemy9(design.posUp3, 3, -3, 3, -2, 2);
createEnemy9(design.posUp10, 3, 3, 3, 2, 2);
createEnemy9(design.posDown1, 3, -3, 3, 2, -2);
createEnemy9(design.posDown3, 3, -3, -3, -2, -2);
createEnemy9(design.posDown10, 3, -3, 3, 2, -2);
enemySpawn = 12;
} else if (enemySpawn == 12) {
createEnemy3(design.posDown1, design.posUp1, 0, -5, -90, 4);
createEnemy3(design.posDown2, design.posUp2, 0, -5, -90, 4);
createEnemy3(design.posDown3, design.posUp3, 0, -5, -90, 4);
createEnemy3(design.posDown4, design.posUp4, 0, -5, -90, 4);
createEnemy3(design.posDown5, design.posUp5, 0, -5, -90, 4);
createEnemy3(design.posDown6, design.posUp6, 0, -5, -90, 4);
createEnemy3(design.posDown7, design.posUp7, 0, -5, -90, 4);
createEnemy3(design.posDown8, design.posUp8, 0, -5, -90, 4);
createEnemy3(design.posDown9, design.posUp9, 0, -5, -90, 4);
createEnemy3(design.posDown10, design.posUp10, 0, -5, -90, 4);
createEnemy3(design.posDown11, design.posUp11, 0, -5, -90, 4);
createEnemy3(design.posDown12, design.posUp12, 0, -5, -90, 4);
createEnemy9(design.posLeft1, 3, -3, -3, -2, -2);
createEnemy9(design.posLeft3, 3, -3, 3, -2, 2);
createEnemy9(design.posLeft6, 3, 3, 3, 2, 2);
createEnemy9(design.posRight1, 3, -3, 3, 2, -2);
createEnemy9(design.posRight3, 3, -3, -3, -2, -4);
createEnemy9(design.posRight6, 3, -3, 3, 2, -2);
enemySpawn = 13;
} else if (enemySpawn == 13) {
delayWin.gotoAndPlay(2);
enemySpawn = 10000;
}
gameWave--;
safeHigh = enemyCount;
}
}
if (gameLevel == 1) {
gameWave = 12;
} else if (gameLevel == 2) {
gameWave = 13;
} else if (gameLevel == 3) {
gameWave = 17;
} else if (gameLevel == 4) {
gameWave = 16;
} else if (gameLevel == 5) {
gameWave = 17;
} else if (gameLevel == 6) {
gameWave = 20;
} else if (gameLevel == 7) {
gameWave = 19;
} else if (gameLevel == 8) {
gameWave = 17;
} else if (gameLevel == 9) {
gameWave = 21;
} else if (gameLevel == 10) {
gameWave = 25;
} else if (gameLevel == 100) {
}
timeDelay = 1;
Frame 8
stop();
Key.removeListener(gameKey);
Mouse.removeListener(mouseListener);
clearInterval(interval1);
clearInterval(interval2);
clearInterval(interval3);
clearInterval(interval4);
clearInterval(interval5);
var enemySpawn = 1;
for (h in this) {
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 6)) == "target")) {
target = _root[h];
target.removeMovieClip();
}
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 4)) == "ammo")) {
mcAmmo = _root[h];
mcAmmo.removeMovieClip();
}
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 8)) == "particle")) {
mcParticle = _root[h];
mcParticle.removeMovieClip();
}
if ((typeof(eval (h)) == "movieclip") && ((substring(h, 1, 5)) == "enemy")) {
mcEnemy = _root[h];
mcEnemy.removeMovieClip();
}
}
if (cond == "win") {
_root.gotoAndStop("LEVEL");
if (gameLevel == 11) {
_root.gotoAndStop("CON");
}
}
if (cond == "lose") {
if (gameLevel != 100) {
player.ammoType = "cannon";
player.ammoType = "smart";
player.ammoType = "fire";
player.ammoType = "bacil";
player.ammoType = "fire";
player.fireLevel = 1;
player.fireRot = 1;
player.bacilLevel = 0;
player.cannonLevel = 0;
player.cannonPos = 1;
player.cannonRot = 0;
player.smartLevel = 0;
player.smartRot = 1;
player.bombType = "wave";
player.bombWaveLevel = 1;
player.bombLightLevel = 0;
var playerLife = 5;
var playerBomb = 3;
var gameLevel = 1;
_root.gotoAndStop("LEVEL");
} else {
var playerLife = 5;
var playerBomb = 3;
var gameLevel = 100;
_root.gotoAndStop("LEVEL");
}
}
Frame 9
stop();
btnBack.onPress = function () {
sndButton.start(0, 1);
_root.gotoAndStop("MENU");
};
Symbol 3 MovieClip [gparticle] Frame 1
temp = random(4) + 1;
if (temp == 1) {
gotoAndPlay ("1");
} else if (temp == 2) {
gotoAndPlay ("2");
} else if (temp == 3) {
gotoAndPlay ("3");
} else if (temp == 4) {
gotoAndPlay ("4");
}
Symbol 3 MovieClip [gparticle] Frame 36
gotoAndStop (112);
Symbol 3 MovieClip [gparticle] Frame 56
gotoAndStop (112);
Symbol 3 MovieClip [gparticle] Frame 76
gotoAndStop (112);
Symbol 3 MovieClip [gparticle] Frame 111
gotoAndStop (112);
Symbol 5 MovieClip [gexplode] Frame 2
i = 0;
h = 0;
while (h < 200) {
attachMovie("gparticle", "gparticle" + i, i, {_x:0, _y:0, _rotation:random(360)});
i++;
h++;
}
Symbol 5 MovieClip [gexplode] Frame 27
this.removeMovieClip();
stop();
Symbol 7 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 15 MovieClip Frame 5
explodeFinished();
Symbol 34 MovieClip Frame 31
stop();
Symbol 45 MovieClip Frame 71
stop();
Symbol 46 MovieClip Frame 1
_root.stop();
Symbol 46 MovieClip Frame 3
if ((_root.getBytesLoaded() / _root.getBytesTotal()) < 1) {
loaderbar.gotoAndStop(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
gotoAndPlay (2);
}
Symbol 46 MovieClip Frame 199
currUrl = _url.toLowerCase();
if (currUrl.indexOf("ungrounded.net") <= 0) {
_root.gotoAndPlay("menu");
stop();
}
Symbol 46 MovieClip Frame 270
_root.gotoAndPlay("menu");
stop();
Symbol 57 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 75 MovieClip Frame 9
stop();
Instance of Symbol 79 MovieClip in Symbol 82 MovieClip Frame 1
onClipEvent (load) {
temp = 0;
}
onClipEvent (enterFrame) {
temp++;
_rotation = (_rotation + 24);
}
Instance of Symbol 81 MovieClip in Symbol 82 MovieClip Frame 1
onClipEvent (load) {
temp = 0;
_visible = false;
}
onClipEvent (enterFrame) {
temp++;
if (temp == 10) {
_visible = true;
}
_rotation = (_rotation - 18);
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 61
_parent.gotoAndStop(1);
Symbol 98 MovieClip Frame 1
stop();
_root.player.stat = "life";
Symbol 98 MovieClip Frame 7
stop();
_root.player.stat = "spawn";
Symbol 98 MovieClip Frame 8
stop();
_root.player.stat = "hide";
Symbol 109 MovieClip Frame 5
sta = "die";
Symbol 115 MovieClip Frame 1
sta = "fade";
Symbol 115 MovieClip Frame 30
sta = "none";
stop();
Symbol 119 MovieClip Frame 1
sta = "fade";
Symbol 119 MovieClip Frame 30
sta = "none";
stop();
Symbol 126 MovieClip Frame 1
sta = "fade";
Symbol 126 MovieClip Frame 30
sta = "none";
stop();
Symbol 130 MovieClip Frame 1
sta = "fade";
Symbol 130 MovieClip Frame 30
sta = "none";
Symbol 130 MovieClip Frame 70
gotoAndPlay (26);
Symbol 139 MovieClip Frame 10
sta = "die";
Symbol 143 MovieClip Frame 1
sta = "fade";
Symbol 143 MovieClip Frame 30
sta = "none";
stop();
Symbol 149 MovieClip Frame 1
sta = "fade";
Symbol 149 MovieClip Frame 30
sta = "none";
stop();
Symbol 153 MovieClip Frame 1
sta = "fade";
Symbol 153 MovieClip Frame 30
sta = "none";
stop();
Symbol 157 MovieClip Frame 1
sta = "fade";
Symbol 157 MovieClip Frame 30
sta = "none";
stop();
Symbol 162 MovieClip Frame 1
if (_root.gameLevel != 10) {
stop();
}
Symbol 162 MovieClip Frame 49
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
Symbol 165 MovieClip Frame 36
_root.sndMusic2.setVolume(50);
Symbol 165 MovieClip Frame 60
_root.gameStat = "win";
_root.removeObject();
_root.cond = "win";
_root.gameLevel = _root.gameLevel + 1;
_root.des = _root.gameLevel;
_root.gotoAndStop("RESTART");
gotoAndStop (1);
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
Symbol 166 MovieClip Frame 60
_root.gameStat = "play";
_root.player.gotoAndStop("SPAWN");
_root.playerBomb = 3;
_root.playerBombCheck();
gotoAndStop (1);
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 60
_root.gameStat = "pause";
_root.guiWeapon.gotoAndStop("LOSE");
_root.removeObject();
gotoAndStop (1);
Symbol 171 MovieClip Frame 1
sta = "fade";
Symbol 171 MovieClip Frame 30
sta = "none";
stop();
Symbol 175 MovieClip Frame 1
sta = "none";
Symbol 175 MovieClip Frame 30
sta = "none";
stop();
Symbol 179 MovieClip Frame 1
sta = "none";
Symbol 179 MovieClip Frame 30
sta = "none";
stop();
Symbol 183 MovieClip Frame 1
sta = "fade";
Symbol 183 MovieClip Frame 30
sta = "none";
stop();
Symbol 184 MovieClip Frame 1
Symbol 188 MovieClip Frame 1
sta = "fade";
Symbol 188 MovieClip Frame 30
sta = "none";
stop();
Symbol 192 MovieClip Frame 1
sta = "fade";
Symbol 192 MovieClip Frame 30
sta = "none";
stop();
Symbol 196 MovieClip Frame 1
sta = "fade";
Symbol 196 MovieClip Frame 30
sta = "none";
stop();
Symbol 200 MovieClip Frame 1
sta = "fade";
Symbol 200 MovieClip Frame 30
sta = "none";
stop();
Symbol 204 MovieClip Frame 1
sta = "fade";
Symbol 204 MovieClip Frame 30
sta = "none";
stop();
Symbol 208 MovieClip Frame 1
sta = "fade";
Symbol 208 MovieClip Frame 30
sta = "none";
stop();
Symbol 209 MovieClip Frame 1
sta = "fade";
Symbol 209 MovieClip Frame 30
sta = "none";
stop();
Symbol 213 MovieClip Frame 1
sta = "fade";
Symbol 213 MovieClip Frame 30
sta = "none";
stop();
Symbol 216 MovieClip Frame 40
sta = "die";
Symbol 217 MovieClip Frame 20
stop();
_parent.sta = "die";
Symbol 218 MovieClip Frame 1
stop();
sta = "";
Symbol 218 MovieClip Frame 2
stop();
sta = "";
Symbol 218 MovieClip Frame 3
stop();
sta = "";
Symbol 218 MovieClip Frame 4
stop();
sta = "";
Symbol 218 MovieClip Frame 5
stop();
sta = "";
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
_root.sndWalk.start(0, 1);
Symbol 221 MovieClip Frame 15
Symbol 223 MovieClip Frame 3
sta = "die";
Instance of Symbol 228 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + _parent.airco);
}
Symbol 240 MovieClip Frame 5
if (random(10) != 0) {
gotoAndPlay (1);
}
Symbol 248 MovieClip Frame 1
Instance of Symbol 248 MovieClip "lam1" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 248 MovieClip "lam3" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 45;
}
Instance of Symbol 248 MovieClip "lam2" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 225;
}
Instance of Symbol 248 MovieClip "lam4" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 135;
}
Instance of Symbol 248 MovieClip "lam5" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 248 MovieClip "lam6" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 248 MovieClip "lam8" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 248 MovieClip "lam7" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_rotation = 315;
}
Symbol 261 MovieClip Frame 2
if (random(2) == 0) {
gotoAndPlay (5);
} else {
gotoAndPlay (6);
}
Symbol 261 MovieClip Frame 5
stop();
Symbol 261 MovieClip Frame 6
stop();
Symbol 262 MovieClip Frame 41
Symbol 270 Button
on (release) {
_root.getURL("http://thecomet.newgrounds.com/", "_blank");
}
Symbol 273 Button
on (release) {
getURL ("http://www.arcadebomb.com/free_website_games.html", "_blank");
}
Instance of Symbol 269 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 287 MovieClip Frame 157
stop();
Symbol 297 MovieClip Frame 30
stop();
Symbol 309 MovieClip Frame 30
stop();
Symbol 357 MovieClip Frame 1
stop();
btnNext.onPress = function () {
_root.sndButton.start(0, 1);
gotoAndStop (2);
};
Symbol 357 MovieClip Frame 2
stop();
btnNext.onPress = function () {
_root.sndButton.start(0, 1);
if (_root.tutorialWill == "menu") {
_root.gotoAndStop("MENU");
} else if ((_root.tutorialWill == "level1") || (_root.tutorialWill == "unlimited")) {
_root.gotoAndStop("LEVEL");
}
};
Symbol 364 MovieClip Frame 1
stop();
btnNext.onPress = function () {
_root.sndButton.start(0, 1);
_root.gotoAndStop("MENU");
};
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
stop();
Symbol 378 MovieClip Frame 3
stop();
Symbol 378 MovieClip Frame 4
stop();
Symbol 378 MovieClip Frame 5
stop();
Symbol 378 MovieClip Frame 6
stop();
Symbol 378 MovieClip Frame 7
stop();
Symbol 378 MovieClip Frame 8
stop();
Symbol 378 MovieClip Frame 9
stop();
Symbol 378 MovieClip Frame 10
stop();
Symbol 378 MovieClip Frame 11
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
Symbol 421 MovieClip Frame 1
Symbol 436 MovieClip Frame 1
Symbol 440 MovieClip Frame 29
if (random(10) != 0) {
gotoAndPlay (1);
}
Symbol 449 MovieClip Frame 19
if (random(10) != 0) {
gotoAndPlay (1);
}
Symbol 452 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 1
airco = 0;
Instance of Symbol 228 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + _parent.airco);
}
Symbol 483 MovieClip Frame 22
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 1
Symbol 493 MovieClip Frame 1
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
stop();
Symbol 495 MovieClip Frame 20
l1.gotoAndStop("enabled");
Symbol 495 MovieClip Frame 45
l1.gotoAndStop("disabled");
Symbol 495 MovieClip Frame 120
l2.gotoAndStop("enabled");
Symbol 495 MovieClip Frame 145
l2.gotoAndStop("disabled");
Symbol 495 MovieClip Frame 220
l3.gotoAndStop("enabled");
Symbol 495 MovieClip Frame 245
l3.gotoAndStop("disabled");
Symbol 495 MovieClip Frame 320
l4.gotoAndStop("enabled");
Symbol 495 MovieClip Frame 345
l4.gotoAndStop("disabled");
Symbol 511 MovieClip Frame 34
if (random(12) != 0) {
gotoAndPlay (1);
}
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 1
airco = 3;
Instance of Symbol 228 MovieClip "fan" in Symbol 524 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + _parent.airco);
}
Symbol 528 MovieClip Frame 1
Symbol 546 MovieClip Frame 1
Symbol 549 MovieClip Frame 1
stop();
Instance of Symbol 394 MovieClip "lam2" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
_rotation = 180;
}
Symbol 549 MovieClip Frame 2
stop();
Symbol 549 MovieClip Frame 3
stop();
Symbol 549 MovieClip Frame 4
stop();
Instance of Symbol 436 MovieClip "lam1" in Symbol 549 MovieClip Frame 4
onClipEvent (load) {
_rotation = 135;
}
Instance of Symbol 436 MovieClip "lam2" in Symbol 549 MovieClip Frame 4
onClipEvent (load) {
_rotation = 45;
}
Instance of Symbol 436 MovieClip "lam4" in Symbol 549 MovieClip Frame 4
onClipEvent (load) {
_rotation = 225;
}
Instance of Symbol 436 MovieClip "lam3" in Symbol 549 MovieClip Frame 4
onClipEvent (load) {
_rotation = 315;
}
Symbol 549 MovieClip Frame 5
stop();
Symbol 549 MovieClip Frame 6
stop();
Symbol 549 MovieClip Frame 7
stop();
Symbol 549 MovieClip Frame 8
stop();
Instance of Symbol 394 MovieClip "lam1" in Symbol 549 MovieClip Frame 8
onClipEvent (load) {
_rotation = 35;
}
Instance of Symbol 394 MovieClip "lam2" in Symbol 549 MovieClip Frame 8
onClipEvent (load) {
_rotation = 285;
}
Instance of Symbol 394 MovieClip "lam3" in Symbol 549 MovieClip Frame 8
onClipEvent (load) {
_rotation = 145;
}
Instance of Symbol 394 MovieClip "lam4" in Symbol 549 MovieClip Frame 8
onClipEvent (load) {
_rotation = 235;
}
Instance of Symbol 251 MovieClip "posRight7" in Symbol 549 MovieClip Frame 8
onClipEvent (load) {
_rotation = 305;
}
Symbol 549 MovieClip Frame 9
stop();
Instance of Symbol 521 MovieClip "lam1" in Symbol 549 MovieClip Frame 9
onClipEvent (load) {
_rotation = 45;
}
Instance of Symbol 521 MovieClip "lam2" in Symbol 549 MovieClip Frame 9
onClipEvent (load) {
_rotation = 225;
}
Instance of Symbol 521 MovieClip "lam4" in Symbol 549 MovieClip Frame 9
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 521 MovieClip "lam3" in Symbol 549 MovieClip Frame 9
onClipEvent (load) {
_rotation = 225;
}
Symbol 549 MovieClip Frame 10
stop();
Instance of Symbol 528 MovieClip "lam1" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 528 MovieClip "lam3" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 45;
}
Instance of Symbol 528 MovieClip "lam2" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 225;
}
Instance of Symbol 528 MovieClip "lam4" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 135;
}
Instance of Symbol 528 MovieClip "lam5" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 528 MovieClip "lam6" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 528 MovieClip "lam8" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 315;
}
Instance of Symbol 528 MovieClip "lam7" in Symbol 549 MovieClip Frame 10
onClipEvent (load) {
_rotation = 315;
}
Symbol 549 MovieClip Frame 11
stop();
Symbol 556 MovieClip Frame 5
_root.bombWaveExplode(38);
Symbol 556 MovieClip Frame 9
_root.bombWaveExplode(56);
Symbol 556 MovieClip Frame 13
_root.bombWaveExplode(68);
Symbol 556 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 561 MovieClip Frame 5
_root.bombWaveExplode(38);
Symbol 561 MovieClip Frame 9
_root.bombWaveExplode(56);
Symbol 561 MovieClip Frame 13
_root.bombWaveExplode(68);
Symbol 561 MovieClip Frame 17
_root.bombWaveExplode(82);
Symbol 561 MovieClip Frame 21
_root.bombWaveExplode(126);
Symbol 561 MovieClip Frame 31
_parent.gotoAndStop(1);
Symbol 566 MovieClip Frame 5
_root.bombWaveExplode(38);
Symbol 566 MovieClip Frame 9
_root.bombWaveExplode(54);
Symbol 566 MovieClip Frame 13
_root.bombWaveExplode(67);
Symbol 566 MovieClip Frame 17
_root.bombWaveExplode(82);
Symbol 566 MovieClip Frame 21
_root.bombWaveExplode(98);
Symbol 566 MovieClip Frame 25
_root.bombWaveExplode(110);
Symbol 566 MovieClip Frame 29
_root.bombWaveExplode(125);
Symbol 566 MovieClip Frame 39
_parent.gotoAndStop(1);
Symbol 567 MovieClip Frame 1
stop();
stat = "none";
Symbol 567 MovieClip Frame 2
stop();
stat = "explode";
Symbol 567 MovieClip Frame 3
stop();
stat = "explode";
Symbol 567 MovieClip Frame 4
stop();
stat = "explode";
Symbol 577 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 2
stop();
Symbol 577 MovieClip Frame 3
stop();
Symbol 577 MovieClip Frame 4
stop();
Symbol 577 MovieClip Frame 5
stop();
Symbol 577 MovieClip Frame 6
stop();
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
stop();
Symbol 581 MovieClip Frame 3
stop();
Symbol 581 MovieClip Frame 4
stop();
Symbol 594 MovieClip Frame 1
stop();
btnClose.onPress = function () {
_root.sndButton.start(0, 1);
_root.showObject();
_root.gameStat = "play";
gotoAndStop ("HIDE");
};
Symbol 594 MovieClip Frame 2
stop();
Symbol 596 MovieClip Frame 1
stop();
btnClose.onPress = function () {
_root.sndButton.start(0, 1);
_root.showObject();
_root.gameStat = "play";
gotoAndStop ("HIDE");
};
Symbol 596 MovieClip Frame 2
stop();
Symbol 599 Button
on (release) {
_root.hilang();
_root.gameStat = "pause";
_root.hilang();
_root.guiWeapon.gotoAndStop("VISIBLE");
_root.hilang();
}
Symbol 600 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 20
gotoAndStop (1);
Symbol 611 MovieClip Frame 45
gotoAndStop (1);
Symbol 611 MovieClip Frame 75
gotoAndStop (1);
Instance of Symbol 269 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 613 MovieClip Frame 293
_parent.gotoAndStop(1);
Instance of Symbol 269 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 615 MovieClip Frame 290
_parent.gotoAndStop(1);
Instance of Symbol 269 MovieClip in Symbol 617 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 617 MovieClip Frame 293
_parent.gotoAndStop(1);
Instance of Symbol 269 MovieClip in Symbol 619 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 619 MovieClip Frame 293
_parent.gotoAndStop(1);
Instance of Symbol 269 MovieClip in Symbol 621 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 621 MovieClip Frame 293
_parent.gotoAndStop(1);
Instance of Symbol 269 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 623 MovieClip Frame 293
_parent.gotoAndStop(1);
Instance of Symbol 269 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 18);
}
Symbol 625 MovieClip Frame 293
_parent.gotoAndStop(1);
Symbol 628 MovieClip Frame 100
_parent.gotoAndStop(1);
Symbol 631 MovieClip Frame 70
_parent.gotoAndStop(1);
Symbol 633 MovieClip Frame 65
_parent.gotoAndStop(1);
Symbol 635 MovieClip Frame 82
_parent.gotoAndStop(1);
Symbol 637 MovieClip Frame 72
_parent.gotoAndStop(1);
Symbol 639 MovieClip Frame 72
_parent.gotoAndStop(1);
Symbol 640 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 2
stop();
Symbol 640 MovieClip Frame 3
stop();
Symbol 640 MovieClip Frame 4
stop();
Symbol 640 MovieClip Frame 5
stop();
Symbol 640 MovieClip Frame 6
stop();
Symbol 640 MovieClip Frame 7
stop();
Symbol 640 MovieClip Frame 8
stop();
Symbol 640 MovieClip Frame 9
stop();
Symbol 640 MovieClip Frame 10
stop();
Symbol 640 MovieClip Frame 11
stop();
Symbol 640 MovieClip Frame 12
stop();
Symbol 640 MovieClip Frame 13
stop();
Symbol 640 MovieClip Frame 14
stop();
Symbol 640 MovieClip Frame 15
stop();
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
stop();
Symbol 697 MovieClip Frame 1
if (_root.gameWave == 0) {
gotoAndStop (52);
} else {
gotoAndStop(_root.gameWave + 1);
}
Symbol 697 MovieClip Frame 52
Symbol 700 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 2
if (_root.gameLevel == 1) {
_root.design.lam1.play();
_root.design.lam2.play();
}
Symbol 700 MovieClip Frame 23
gotoAndStop (1);
Symbol 707 MovieClip Frame 1
stop();
_root.player.robo.foot.stop();
Symbol 707 MovieClip Frame 2
_root.player.robo.foot.stop();
_root.player.stat = "spawn";
_root.player.gotoAndStop("spawn");
Symbol 707 MovieClip Frame 3
_root.player.spawnring.gotoAndPlay(2);
Symbol 707 MovieClip Frame 4
if (_root.gameLevel == 100) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music4.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 1) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music2.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 2) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music6.wav");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 3) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music5.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 4) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music3.wav");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 5) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music4.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 6) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music7.wav");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 7) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music5.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 8) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music1.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 9) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music2.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
if (_root.gameLevel == 10) {
_root.sndMusic2.stop();
_root.sndMusic2.attachSound("Music4.mp3");
_root.sndMusic2.setVolume(0);
_root.sndMusic2.start(0, 50000);
}
Symbol 707 MovieClip Frame 5
_root.sndMusic2.setVolume(10);
Symbol 707 MovieClip Frame 7
_root.sndMusic2.setVolume(20);
Symbol 707 MovieClip Frame 20
_root.sndMusic2.setVolume(30);
Symbol 707 MovieClip Frame 25
_root.sndMusic2.setVolume(40);
Symbol 707 MovieClip Frame 36
_root.sndMusic2.setVolume(50);
_root.player.robo.foot.stop();
_root.player.stat = "spawn";
_root.player.gotoAndStop("spawn");
Symbol 707 MovieClip Frame 40
_root.sndMusic2.setVolume(55);
Symbol 707 MovieClip Frame 45
_root.sndMusic2.setVolume(60);
Symbol 707 MovieClip Frame 50
_root.sndMusic2.setVolume(65);
Symbol 707 MovieClip Frame 55
_root.sndMusic2.setVolume(70);
Symbol 707 MovieClip Frame 60
_root.sndMusic2.setVolume(75);
Symbol 707 MovieClip Frame 65
_root.sndMusic2.setVolume(80);
Symbol 707 MovieClip Frame 70
_root.sndMusic2.setVolume(85);
Symbol 707 MovieClip Frame 75
_root.sndMusic2.setVolume(90);
Symbol 707 MovieClip Frame 80
_root.sndMusic2.setVolume(100);
Symbol 707 MovieClip Frame 85
_root.gameStat = "play";
_root.player.stat = "spawn";
_root.player.gotoAndStop("spawn");
Symbol 707 MovieClip Frame 86
stop();
Symbol 708 MovieClip Frame 5
_root.sndMusic2.setVolume(40);
_root.sndMusic1.setVolume(40);
Symbol 708 MovieClip Frame 11
_root.sndMusic2.setVolume(45);
_root.sndMusic1.setVolume(45);
Symbol 708 MovieClip Frame 17
_root.sndMusic2.setVolume(30);
_root.sndMusic1.setVolume(30);
Symbol 708 MovieClip Frame 23
_root.sndMusic2.setVolume(35);
_root.sndMusic1.setVolume(35);
Symbol 708 MovieClip Frame 31
_root.sndMusic2.setVolume(20);
_root.sndMusic1.setVolume(20);
Symbol 708 MovieClip Frame 37
_root.sndMusic2.setVolume(25);
_root.sndMusic1.setVolume(25);
Symbol 708 MovieClip Frame 44
_root.sndMusic2.setVolume(10);
_root.sndMusic1.setVolume(10);
Symbol 708 MovieClip Frame 56
_root.sndMusic2.stop();
Symbol 708 MovieClip Frame 57
_root.sndMusic1.stop();
Symbol 708 MovieClip Frame 60
if (_root.gameLevel == 5) {
sharedobj = SharedObject.getLocal("avodegame");
sharedobj.data.tpass = "PASS";
}
if (_root.gameLevel == 7) {
currUrl = _url.toLowerCase();
if ((currUrl.indexOf("game.arcadebomb.com") <= 0) && (currUrl.indexOf("ungrounded.net") <= 0)) {
_parent.levelHeader.gotoAndStop("LEVELDEMO");
stop();
}
}
Symbol 708 MovieClip Frame 100
_root.getgo.gotoAndPlay(2);
_parent.gotoAndStop("HIDE");
Symbol 756 MovieClip Frame 521
_root.gotoAndStop("MENU");
stop();
Symbol 763 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 2
stop();
Symbol 763 MovieClip Frame 3
stop();
Symbol 763 MovieClip Frame 4
stop();
Symbol 763 MovieClip Frame 5
stop();
Symbol 763 MovieClip Frame 6
stop();
Symbol 763 MovieClip Frame 7
stop();
Symbol 763 MovieClip Frame 8
stop();
Symbol 763 MovieClip Frame 9
stop();
Symbol 763 MovieClip Frame 10
stop();
Symbol 763 MovieClip Frame 11
stop();
Symbol 763 MovieClip Frame 12
stop();
Symbol 773 MovieClip Frame 51
stop();
Symbol 773 MovieClip Frame 80
stop();
_root.cond = "lose";
if (_root.gameLevel != 100) {
_root.gameLevel = 1;
}
_root.gotoAndStop("RESTART");
Symbol 786 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 2
stop();
Symbol 790 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 2
stop();
Symbol 794 MovieClip Frame 1
stop();
Symbol 794 MovieClip Frame 2
stop();
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 2
stop();
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 2
stop();
Symbol 806 MovieClip Frame 1
stop();
Symbol 806 MovieClip Frame 2
stop();
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 2
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 2
stop();
Symbol 818 MovieClip Frame 1
stop();
Symbol 818 MovieClip Frame 2
stop();
Symbol 821 MovieClip Frame 1
stop();
Symbol 821 MovieClip Frame 2
stop();
Symbol 824 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 2
stop();
Symbol 827 MovieClip Frame 1
stop();
Symbol 827 MovieClip Frame 2
stop();
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 2
stop();
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 2
stop();
Symbol 839 MovieClip Frame 1
stop();
Symbol 839 MovieClip Frame 2
stop();
Symbol 843 MovieClip Frame 1
stop();
Symbol 843 MovieClip Frame 2
stop();
Symbol 847 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 2
stop();
Symbol 851 MovieClip Frame 1
stop();
Symbol 851 MovieClip Frame 2
stop();
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 2
stop();
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 2
stop();
Symbol 861 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 2
stop();
Symbol 870 MovieClip Frame 1
stop();
btnClose.onPress = function () {
_root.sndButton.start(0, 1);
gotoAndStop ("HIDE");
};
Symbol 870 MovieClip Frame 2
stop();
Symbol 872 MovieClip Frame 1
stop();
btnClose.onPress = function () {
_root.sndButton.start(0, 1);
gotoAndStop ("HIDE");
};
Symbol 872 MovieClip Frame 2
stop();
Symbol 874 MovieClip Frame 31
stop();
Symbol 874 MovieClip Frame 61
stop();
_root.showObject();
_root.gameStat = "play";
_parent.gotoAndStop("HIDE");
Symbol 875 MovieClip Frame 31
stop();
Symbol 876 MovieClip Frame 1
stop();
levelHeader.gotoAndStop("LEVEL" + _root.gameLevel);
if (_root.gameLevel == 100) {
levelHeader.gotoAndStop("LEVELUNLIMITED");
}
btnStart.onPress = function () {
_root.sndButton.start(0, 1);
_root.getgo.gotoAndPlay(2);
gotoAndStop ("HIDE");
};
Symbol 876 MovieClip Frame 2
stop();
_root.sndWin.start(0, 1);
btnNext.onPress = function () {
_root.sndButton.start(0, 1);
_root.cond = "win";
_root.gameLevel = _root.gameLevel + 1;
_root.des = _root.gameLevel;
_root.gotoAndStop("RESTART");
};
Symbol 876 MovieClip Frame 3
stop();
_root.sndLose.start(0, 1);
btnRestart.onPress = function () {
_root.sndButton.start(0, 1);
fade.play();
};
Symbol 876 MovieClip Frame 4
function moneyUpdate() {
if (_root.money < 10) {
txtMoney.text = "000" + _root.money;
} else if (_root.money < 100) {
txtMoney.text = "00" + _root.money;
} else if (_root.money < 1000) {
txtMoney.text = "0" + _root.money;
} else {
txtMoney.text = _root.money;
}
}
function reset() {
if (_root.player.fireLevel >= 2) {
mcA2.gotoAndStop(1);
} else {
mcA2.gotoAndStop(2);
}
if (_root.player.fireLevel >= 3) {
mcA3.gotoAndStop(1);
} else {
mcA3.gotoAndStop(2);
}
if (_root.player.fireLevel >= 4) {
mcA4.gotoAndStop(1);
} else {
mcA4.gotoAndStop(2);
}
if (_root.player.bacilLevel >= 1) {
mcB1.gotoAndStop(1);
} else {
mcB1.gotoAndStop(2);
}
if (_root.player.bacilLevel >= 2) {
mcB2.gotoAndStop(1);
} else {
mcB2.gotoAndStop(2);
}
if (_root.player.bacilLevel >= 3) {
mcB3.gotoAndStop(1);
} else {
mcB3.gotoAndStop(2);
}
if (_root.player.bacilLevel >= 4) {
mcB4.gotoAndStop(1);
} else {
mcB4.gotoAndStop(2);
}
if (_root.player.cannonLevel >= 1) {
mcC1.gotoAndStop(1);
} else {
mcC1.gotoAndStop(2);
}
if (_root.player.cannonLevel >= 2) {
mcC2.gotoAndStop(1);
} else {
mcC2.gotoAndStop(2);
}
if (_root.player.cannonLevel >= 3) {
mcC3.gotoAndStop(1);
} else {
mcC3.gotoAndStop(2);
}
if (_root.player.cannonLevel >= 4) {
mcC4.gotoAndStop(1);
} else {
mcC4.gotoAndStop(2);
}
if (_root.player.smartLevel >= 1) {
mcD1.gotoAndStop(1);
} else {
mcD1.gotoAndStop(2);
}
if (_root.player.smartLevel >= 2) {
mcD2.gotoAndStop(1);
} else {
mcD2.gotoAndStop(2);
}
if (_root.player.smartLevel >= 3) {
mcD3.gotoAndStop(1);
} else {
mcD3.gotoAndStop(2);
}
if (_root.player.bombWaveLevel >= 1) {
mcE1.gotoAndStop(1);
} else {
mcE1.gotoAndStop(2);
}
if (_root.player.bombWaveLevel >= 2) {
mcE2.gotoAndStop(1);
} else {
mcE2.gotoAndStop(2);
}
if (_root.player.bombWaveLevel >= 3) {
mcE3.gotoAndStop(1);
} else {
mcE3.gotoAndStop(2);
}
if (_root.player.bombLightLevel >= 1) {
mcF1.gotoAndStop(1);
} else {
mcF1.gotoAndStop(2);
}
if (_root.player.bombLightLevel >= 2) {
mcF2.gotoAndStop(1);
} else {
mcF2.gotoAndStop(2);
}
if (_root.player.bombLightLevel >= 3) {
mcF3.gotoAndStop(1);
} else {
mcF3.gotoAndStop(2);
}
moneyUpdate();
}
stop();
reset();
warnMoney.gotoAndStop("HIDE");
warnTech.gotoAndStop("HIDE");
moneyUpdate();
btnClose.onPress = function () {
_root.sndButton.start(0, 1);
fadeBuy.play();
};
mcA2.onPress = function () {
if ((_root.money >= 80) && (_root.player.fireLevel == 1)) {
_root.player.fireLevel = 2;
_root.money = _root.money - 80;
_root.moneyUpdate();
reset();
} else if (_root.money <= 80) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.fireLevel < 1) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcA3.onPress = function () {
if ((_root.money >= 250) && (_root.player.fireLevel == 2)) {
_root.player.fireLevel = 3;
_root.money = _root.money - 250;
_root.moneyUpdate();
reset();
} else if (_root.money <= 250) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.fireLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcA4.onPress = function () {
if ((_root.money >= 840) && (_root.player.fireLevel == 3)) {
_root.player.fireLevel = 4;
_root.money = _root.money - 840;
_root.moneyUpdate();
reset();
} else if (_root.money <= 840) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.fireLevel < 3) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcB1.onPress = function () {
if ((_root.money >= 140) && (_root.player.fireLevel >= 2)) {
_root.player.bacilLevel = 1;
_root.money = _root.money - 140;
_root.moneyUpdate();
reset();
} else if (_root.money <= 140) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.fireLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcB2.onPress = function () {
if ((_root.money >= 200) && (_root.player.bacilLevel == 1)) {
_root.player.bacilLevel = 2;
_root.money = _root.money - 200;
_root.moneyUpdate();
reset();
} else if (_root.money <= 200) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bacilLevel < 1) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcB3.onPress = function () {
if ((_root.money >= 420) && (_root.player.bacilLevel == 2)) {
_root.player.bacilLevel = 3;
_root.money = _root.money - 420;
_root.moneyUpdate();
reset();
} else if (_root.money <= 420) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bacilLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcB4.onPress = function () {
if ((_root.money >= 950) && (_root.player.bacilLevel == 3)) {
_root.player.bacilLevel = 4;
_root.money = _root.money - 950;
_root.moneyUpdate();
reset();
} else if (_root.money <= 950) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bacilLevel < 3) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcC1.onPress = function () {
if ((_root.money >= 500) && (_root.player.bacilLevel >= 3)) {
_root.player.cannonLevel = 1;
_root.money = _root.money - 500;
_root.moneyUpdate();
reset();
} else if (_root.money <= 500) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bacilLevel < 3) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcC2.onPress = function () {
if ((_root.money >= 500) && (_root.player.cannonLevel == 1)) {
_root.player.cannonLevel = 2;
_root.money = _root.money - 500;
_root.moneyUpdate();
reset();
} else if (_root.money <= 500) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.cannonLevel < 1) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcC3.onPress = function () {
if ((_root.money >= 500) && (_root.player.cannonLevel == 2)) {
_root.player.cannonLevel = 3;
_root.money = _root.money - 500;
_root.moneyUpdate();
reset();
} else if (_root.money <= 500) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.cannonLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcC4.onPress = function () {
if ((_root.money >= 500) && (_root.player.cannonLevel == 3)) {
_root.player.cannonLevel = 4;
_root.money = _root.money - 500;
_root.moneyUpdate();
reset();
} else if (_root.money <= 500) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.cannonLevel < 3) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcD1.onPress = function () {
if ((_root.money >= 750) && (_root.player.cannonLevel >= 4)) {
_root.player.smartLevel = 1;
_root.money = _root.money - 750;
_root.moneyUpdate();
reset();
} else if (_root.money <= 750) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.cannonLevel < 4) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcD2.onPress = function () {
if ((_root.money >= 1000) && (_root.player.smartLevel >= 1)) {
_root.player.smartLevel = 2;
_root.money = _root.money - 1000;
_root.moneyUpdate();
reset();
} else if (_root.money <= 1000) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.smartLevel < 1) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcD3.onPress = function () {
if ((_root.money >= 2000) && (_root.player.smartLevel >= 2)) {
_root.player.smartLevel = 3;
_root.money = _root.money - 2000;
_root.moneyUpdate();
reset();
} else if (_root.money <= 2000) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.smartLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcE2.onPress = function () {
if ((_root.money >= 150) && (_root.player.bombWaveLevel >= 1)) {
_root.player.bombWaveLevel = 2;
_root.money = _root.money - 150;
_root.moneyUpdate();
reset();
} else if (_root.money <= 150) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bombWaveLevel < 1) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcE3.onPress = function () {
if ((_root.money >= 600) && (_root.player.bombWaveLevel >= 2)) {
_root.player.bombWaveLevel = 3;
_root.money = _root.money - 600;
_root.moneyUpdate();
reset();
} else if (_root.money <= 600) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bombWaveLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcF1.onPress = function () {
if ((_root.money >= 200) && (_root.player.bombWaveLevel >= 2)) {
_root.player.bombLightLevel = 1;
_root.money = _root.money - 200;
_root.moneyUpdate();
reset();
} else if (_root.money <= 200) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bombWaveLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcF2.onPress = function () {
if ((_root.money >= 500) && (_root.player.bombLightLevel >= 1)) {
_root.player.bombLightLevel = 2;
_root.money = _root.money - 500;
_root.moneyUpdate();
reset();
} else if (_root.money <= 500) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bombLightLevel < 1) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
mcF3.onPress = function () {
if ((_root.money >= 900) && (_root.player.bombLightLevel >= 2)) {
_root.player.bombLightLevel = 3;
_root.money = _root.money - 900;
_root.moneyUpdate();
reset();
} else if (_root.money <= 900) {
warnMoney.gotoAndStop("VISIBLE");
} else if (_root.player.bombLightLevel < 2) {
warnTech.gotoAndStop("VISIBLE");
}
moneyUpdate();
};
Symbol 876 MovieClip Frame 5
stop();
Symbol 876 MovieClip Frame 6
stop();