Frame 1
MochiAd.showPreGameAd({id:"e789d659ea86d64a", res:"700x550"});
Frame 2
function startGame() {
if (Key.isDown(32)) {
selection_snd.start(0, 0);
play();
}
}
var explosion_snd = new Sound();
explosion_snd.attachSound("explodeSFX");
var heroExplosion_snd = new Sound();
heroExplosion_snd.attachSound("heroExplodeSFX");
var heroShot_snd = new Sound();
heroShot_snd.attachSound("heroShotSFX");
var selection_snd = new Sound();
selection_snd.attachSound("selectionSFX");
var heroHit_snd = new Sound();
heroHit_snd.attachSound("heroHitSFX");
var bombDrop_snd = new Sound();
bombDrop_snd.attachSound("bombDropSFX");
var engine_level = 1;
var shield_level = 1;
var machgun_level = 1;
var radar_level = 1;
var bombUpgrade_level = 1;
var special_level = 1;
var laserUpgrade_level = 1;
var missileUpgrade_level = 1;
var heroSpeed = 8;
var cash = 0;
var gunUpgradeA = false;
var gunUpgradeB = false;
var shield_cost = 500;
var radar_cost = 500;
var special_cost = 500;
var missileUpgrade_cost = 500;
var bombUpgrade_cost = 500;
var laserUpgrade_cost = 500;
stop();
var missile_cost = 1000;
var bomb_cost = 1000;
var laser_cost = 100;
var machgunPower = 1;
var machgunSpeed = 40;
var machgunCooldown = 3;
var machgunWidth = 100;
var heroShield = 10;
var radarSpeed = 1;
var heroSpecialCooldown = 10;
var missileAccelerate = 1.5;
var missilePower = 5;
var missileTopspeed = 25;
var bombPower = 4;
var bombGravity = 0;
var bombAccelerate = 1.5;
var laserPower = 0.5;
var laserSpeed = 10;
var laserWidth = 100;
var heroMissileSeeking = false;
var missile_stock = 10;
var bomb_stock = 10;
var laser_stock = 0;
var level_beat_1 = false;
var level_beat_2 = false;
var level_beat_3 = false;
var level_beat_6 = false;
var level_beat_4 = false;
var level_beat_5 = false;
var level_beat_7 = false;
var level_beat_8 = false;
var level_beat_check = 0;
onEnterFrame = function () {
startGame();
};
Frame 3
function movement() {
if (Key.isDown(32) && (level_num > 0)) {
selection_snd.start(0, 0);
if (level_name == "Store") {
remove_levels();
gotoAndStop (5);
} else {
remove_levels();
gotoAndStop (4);
}
}
if (Key.isDown(37)) {
player.player_shell._rotation = player.player_shell._rotation - handling;
}
if (Key.isDown(39)) {
player.player_shell._rotation = player.player_shell._rotation + handling;
}
if (Key.isDown(38)) {
if (player.player_shell.point._y > max_speed) {
jet_intensity = jet_intensity + 20;
player.player_shell.point._y = player.player_shell.point._y - speed;
} else {
player.player_shell.point._y = max_speed;
}
}
if (Key.isDown(40)) {
player.player_shell.point._x = 0;
player.player_shell.point._y = 0;
}
if (!Key.isDown(38)) {
if (player.player_shell.point._y < 0) {
jet_intensity = jet_intensity - 20;
player.player_shell.point._y = player.player_shell.point._y + 0.5;
} else {
jet_intensity = 0;
player.player_shell.point._y = 0;
}
}
}
function baron_randomizer() {
if (baron_thinker == 0) {
baron_direction = random(5);
baron_thinker = 30;
} else {
baron_thinker--;
}
}
function movement_baron() {
if (baron_direction == 0) {
baron.player_shell._rotation = baron.player_shell._rotation - baron_handling;
} else if (baron_direction == 1) {
baron.player_shell._rotation = baron.player_shell._rotation + baron_handling;
} else {
baron.player_shell._rotation = baron.player_shell._rotation + 0;
}
if (baron.player_shell.point._y > baron_max_speed) {
jet_intensity = jet_intensity + 20;
baron.player_shell.point._y = baron.player_shell.point._y - baron_speed;
} else {
baron.player_shell.point._y = baron_max_speed;
}
}
function slope_finder() {
var _local1 = {x:player.player_shell.point._x, y:player.player_shell.point._y};
player.player_shell.point.localToGlobal(_local1);
slopex = player._x - _local1.x;
slopey = player._y - _local1.y;
}
function slope_finder_baron() {
var _local1 = {x:baron.player_shell.point._x, y:baron.player_shell.point._y};
baron.player_shell.point.localToGlobal(_local1);
baron_slopex = baron._x - _local1.x;
baron_slopey = baron._y - _local1.y;
}
function drive() {
player._x = player._x - slopex;
player._y = player._y - slopey;
baron._x = baron._x - baron_slopex;
baron._y = baron._y - baron_slopey;
}
function player_pointer() {
store_x = player._x;
store_y = player._y;
store_rotation = player.player_shell._rotation;
}
function boundaries() {
if (player._x > 700) {
player._x = 10;
}
if (player._x < 0) {
player._x = 690;
}
if (player._y > 550) {
player._y = 50;
}
if (player._y < 40) {
player._y = 540;
}
if (baron._x > 700) {
baron._x = 10;
}
if (baron._x < 0) {
baron._x = 690;
}
if (baron._y > 550) {
baron._y = 50;
}
if (baron._y < 40) {
baron._y = 540;
}
}
function hit_levels() {
if (player.hitTest(level1)) {
level_name = "Training";
level_description.gotoAndStop(2);
level1.gotoAndStop(2);
level_num = 1;
} else if (player.hitTest(level2)) {
level_name = "City Under Siege";
level_description.gotoAndStop(3);
level2.gotoAndStop(2);
level_num = 2;
} else if (player.hitTest(level4)) {
level_name = "Bomber Assault";
level_description.gotoAndStop(5);
level4.gotoAndStop(2);
level_num = 4;
} else if (player.hitTest(level5)) {
level_name = "Mid Atlantic";
level_description.gotoAndStop(6);
level5.gotoAndStop(2);
level_num = 5;
} else if (player.hitTest(level6)) {
level_name = "Base Defense";
level_description.gotoAndStop(7);
level6.gotoAndStop(2);
level_num = 6;
} else if (player.hitTest(level7)) {
level_name = "Obelisk";
level_description.gotoAndStop(8);
level7.gotoAndStop(2);
level_num = 7;
} else if (player.hitTest(level8)) {
level_name = "New Berlin";
level_description.gotoAndStop(9);
level8.gotoAndStop(2);
level_num = 8;
} else if (player.hitTest(Gzeppelin)) {
level_name = "Graf Zeppelin";
level_description.gotoAndStop(10);
level_num = 9;
} else if (player.hitTest(store)) {
level_name = "Store";
level_description.gotoAndStop(12);
store.gotoAndStop(2);
level_num = 1;
} else if (player.hitTest(baron._x, baron._y, true)) {
level_name = "Aryan Baron";
level_num = 3;
} else {
level1.gotoAndStop(1);
level2.gotoAndStop(1);
level4.gotoAndStop(1);
level5.gotoAndStop(1);
level6.gotoAndStop(1);
level7.gotoAndStop(1);
level8.gotoAndStop(1);
level_description.gotoAndStop(1);
store.gotoAndStop(1);
level_name = "";
level_num = 0;
}
}
function remove_levels() {
removeMovieClip(level1);
removeMovieClip(level2);
removeMovieClip(level4);
removeMovieClip(level5);
removeMovieClip(level6);
removeMovieClip(level7);
removeMovieClip(level8);
removeMovieClip(store);
removeMovieClip(player);
removeMovieClip(baron);
removeMovieClip(Gzeppelin);
}
function level_checker() {
if (level_beat_check == 1) {
level_beat_1 = true;
} else if (level_beat_check == 2) {
level_beat_2 = true;
} else if (level_beat_check == 3) {
level_beat_3 = true;
} else if (level_beat_check == 4) {
level_beat_4 = true;
} else if (level_beat_check == 5) {
level_beat_5 = true;
} else if (level_beat_check == 6) {
level_beat_6 = true;
} else if (level_beat_check == 7) {
level_beat_7 = true;
} else if (level_beat_check == 8) {
level_beat_8 = true;
}
if (!level_beat_1) {
attachMovie("level_icon", "level1", 1, {_x:68, _y:183});
}
if (!level_beat_2) {
attachMovie("level_icon", "level2", 2, {_x:160, _y:135});
}
if (!level_beat_4) {
attachMovie("level_icon", "level4", 3, {_x:167, _y:289});
}
if (!level_beat_5) {
attachMovie("level_icon", "level5", 4, {_x:280, _y:380});
}
if (!level_beat_6) {
attachMovie("level_icon", "level6", 5, {_x:355, _y:221});
}
if (!level_beat_7) {
attachMovie("level_icon", "level7", 6, {_x:482, _y:97});
}
if (!level_beat_8) {
attachMovie("level_icon", "level8", 7, {_x:354, _y:124});
}
if (!level_beat_3) {
attachMovie("baron", "baron", 10, {_x:501, _y:282});
}
}
stop();
var level_num = 1;
var level_name = "";
var store_x = 0;
var store_y = 0;
var store_rotation = 0;
var slopex = 0;
var slopey = 0;
var baron_slopex = 0;
var baron_slopey = 0;
var speed = 0.5;
var max_speed = -3;
var handling = 10;
var baron_speed = 0.25;
var baron_max_speed = -1;
var baron_handling = 5;
var counter = 16;
var baron_thinker = 30;
var baron_direction = 0;
onEnterFrame = function () {
hit_levels();
movement();
baron_randomizer();
movement_baron();
drive();
slope_finder();
slope_finder_baron();
player_pointer();
boundaries();
};
attachMovie("level_icon", "store", 8, {_x:597, _y:354});
attachMovie("player", "player", 9, {_x:219, _y:218});
level_checker();
if ((((((level_beat_1 && (level_beat_2)) && (level_beat_4)) && (level_beat_5)) && (level_beat_6)) && (level_beat_7)) && (level_beat_8)) {
attachMovie("last_level", "Gzeppelin", 12, {_x:486, _y:364});
}
Frame 4
function enter_game() {
if (play_count == 0) {
removeMovieClip(fade);
playable_game = true;
} else {
play_count--;
hero._x = hero._x + 5;
}
}
function detectKeys() {
var _local2 = 1;
if (Key.isDown(39)) {
var _local3 = hero._x + hero.speed;
if (_local3 > 680) {
hero._x = 680;
} else {
hero._x = hero._x + hero.speed;
}
}
if (Key.isDown(37)) {
var _local3 = hero._x - (hero.speed + scrollSpeed);
if (_local3 < 20) {
hero._x = 20;
} else {
hero._x = hero._x - (hero.speed + scrollSpeed);
}
}
if (Key.isDown(38)) {
var _local4 = hero._y - hero.speed;
if (_local4 < 10) {
hero._y = 10;
} else {
hero._y = hero._y - hero.speed;
}
_local2 = 3;
}
if (Key.isDown(40)) {
var _local4 = hero._y + hero.speed;
if (_local4 > 400) {
hero._y = 400;
} else {
hero._y = hero._y + hero.speed;
}
_local2 = 2;
}
hero.gotoAndStop(_local2);
if (Key.isDown(32)) {
if (hero.shotCooldown <= 0) {
hero.shotCooldown = hero.maxshotCooldown;
heroShot_snd.start(0, 0);
heroShot_snd.setVolume(50);
var _local1 = attachMovie("machGun_shot", "proj" + proj, proj, {_x:hero._x, _y:hero._y, _yscale:machgunWidth, _xscale:machgunWidth});
_local1.weapon = "friend";
_local1.topspeed = 8;
_local1.accelerate = 0;
_local1.speed = machgunSpeed;
_local1.power = machgunPower;
if (machgunPower == 1) {
_local1.gotoAndStop(1);
} else if (machgunPower == 1.5) {
_local1.gotoAndStop(2);
} else if (machgunPower == 2) {
_local1.gotoAndStop(3);
}
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
projArray.push(_local1);
}
}
if (Key.isDown(88)) {
if (hero.specCooldown <= 0) {
hero.specCooldown = hero.maxspecCooldown;
if (bomb_stock > 0) {
bombDrop_snd.start(0, 0);
bomb_stock--;
var _local1 = attachMovie("bomb", "proj" + proj, proj, {_x:hero._x, _y:hero._y});
_local1.topspeed = 0;
_local1.weapon = "friend";
_local1.power = bombPower;
_local1.accelerate = 0;
_local1.speed = scrollSpeed + -5;
_local1.gravityAccelerate = bombAccelerate;
_local1.gravity = bombGravity;
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
projArray.push(_local1);
}
}
}
if (Key.isDown(90)) {
if (hero.specCooldown <= 0) {
hero.specCooldown = hero.maxspecCooldown;
if (missile_stock > 0) {
bombDrop_snd.start(0, 0);
missile_stock--;
var _local1 = attachMovie("missile", "proj" + proj, proj, {_x:hero._x, _y:hero._y});
_local1.topspeed = missileTopspeed;
_local1.weapon = "friend";
_local1._rotation = 90;
_local1.power = missilePower;
_local1.accelerate = missileAccelerate;
_local1.speed = 0;
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
projArray.push(_local1);
}
}
}
}
function createHero() {
if (heroCount == 0) {
var _local1 = attachMovie("hero", "hero", 501, {_x:-70, _y:250});
_local1.gotoAndStop(1);
_local1.totallife = 10;
_local1.hp = 10;
_local1.totalshield = 10;
_local1.life = 10;
_local1.shield = heroShield;
_local1.speed = heroSpeed;
_local1.shotCooldown = 0;
_local1.maxshotCooldown = machgunCooldown;
_local1.specCooldown = heroSpecialCooldown;
_local1.maxspecCooldown = 10;
_local1.recovery = 10;
_local1.sWeapon = 1;
heroCount = heroCount + 1;
}
}
function laser_trail() {
var _local1 = projArray.length - 1;
while (_local1 >= 0) {
if (projArray[_local1].laser) {
attachMovie("laser_trail", "laser_trail" + laser_proj, laser_proj, {_x:projArray[_local1]._x, _y:projArray[_local1]._y});
if (laser_proj >= 4000) {
laser_proj = 2700;
} else {
laser_proj++;
}
}
_local1--;
}
}
function bar_manager() {
if (hero.life < 0) {
status.lifebar._xscale = 0;
} else {
status.lifebar._xscale = (hero.hp / 10) * 100;
}
if (hero.shield < 0) {
status.shieldbar._xscale = 0;
} else {
status.shieldbar._xscale = (hero.shield / hero.totalshield) * 100;
}
}
function cooldownManager() {
hero.shotCooldown--;
hero.specCooldown--;
if (hero.recovery == 1) {
hero.filters = null;
}
hero.recovery--;
var _local1 = enemyArray.length - 1;
while (_local1 >= 0) {
if (enemyArray[_local1].recover == 4) {
enemyArray[_local1].filters = null;
}
enemyArray[_local1].recover--;
_local1--;
}
}
function create_terrain() {
var _local4 = attachMovie("horizon", "horizon", 1, {_x:0, _y:150});
_local4.gotoAndStop(level_num);
horizonArray.push(_local4);
var _local1 = attachMovie("horizon1", "horizon", 2, {_x:1500, _y:150});
_local1.gotoAndStop(level_num);
horizonArray.push(_local1);
var _local2 = attachMovie("terrain", "land" + land_num, 14, {_x:0, _y:225});
_local2.gotoAndStop(terrain[l]);
landArray.push(_local2);
land_num++;
l++;
var _local3 = attachMovie("terrain", "land" + land_num, 15, {_x:700, _y:225});
_local3.gotoAndStop(terrain[l]);
landArray.push(_local3);
l++;
}
function moveLand() {
var _local1 = horizonArray.length - 1;
while (_local1 >= 0) {
if (horizonArray[_local1]._x <= -1500) {
horizonArray[_local1]._x = 1500;
}
horizonArray[_local1]._x = horizonArray[_local1]._x - 0.2;
_local1--;
}
creation_timer++;
_local1 = landArray.length - 1;
while (_local1 >= 0) {
if (landArray[_local1]._x <= -700) {
if (((l >= end_screen) && (enemyArray.length == 0)) && (explosionArray.length == 0)) {
if (level_num == 9) {
if (finalBoss == 2) {
level_complete = true;
level_beat_check = level_num;
} else {
finalBoss++;
lastBosses();
}
} else {
level_complete = true;
level_beat_check = level_num;
}
} else {
landArray[_local1]._x = 700;
landArray[_local1].gotoAndStop(terrain[l]);
l++;
}
} else {
landArray[_local1]._x = landArray[_local1]._x - scrollSpeed;
}
_local1--;
}
_local1 = explosionArray.length - 1;
while (_local1 >= 0) {
explosionArray[_local1]._x = explosionArray[_local1]._x - 0.5;
if (explosionArray[_local1]._currentframe == explosionArray[_local1]._totalframes) {
removeMovieClip(explosionArray[_local1]);
explosionArray.splice(_local1, 1);
}
_local1--;
}
}
function lastBosses() {
if (finalBoss == 1) {
if (!hitlerPhase2) {
var _local1 = attachMovie("hitlerMissile", "enemy" + enemy_num, enemy_num, {_x:800, _y:-50});
_local1.power = 1;
_local1.hp = 180;
_local1.speed = 0;
_local1.bounty = 2000;
_local1.cooldown = 8;
_local1.prog = 0;
_local1.recover = 0;
_local1.boss = true;
_local1.maxcooldown = 8;
_local1.cannon = false;
_local1.path = 13;
_local1.weaponA = "straightShot";
_local1.explode = "hitlerMissileExplode";
enemyArray.push(_local1);
hitlerPhase2 = true;
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
}
} else if (finalBoss == 2) {
var _local1 = attachMovie("hitlerGhost", "enemy" + enemy_num, enemy_num, {_x:993.7, _y:564});
_local1.power = 1;
_local1.hp = 350;
_local1.speed = 0;
_local1.bounty = 0;
_local1.cooldown = 121;
_local1.prog = 0;
_local1.recover = 0;
_local1.boss = true;
_local1.maxcooldown = 169;
_local1.cannon = false;
_local1.path = 19;
_local1.weaponA = "hitlerMouthLaser";
_local1.explode = "hitlerGhostExplode";
enemyArray.push(_local1);
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
var _local4 = attachMovie("emptyEnemy", "enemy" + enemy_num, enemy_num, {_x:932.5, _y:413.4});
_local4.power = 1;
_local4.hp = null;
_local4.speed = 0;
_local4.bounty = 0;
_local4.cooldown = 25;
_local4.prog = 0;
_local4.recover = 0;
_local4.boss = false;
_local4.maxcooldown = 40;
_local4.cannon = false;
_local4.path = 19;
_local4.weaponA = "hitlerShot";
_local4.explode = dead;
enemyArray.push(_local4);
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
var _local3 = attachMovie("emptyEnemy", "enemy" + enemy_num, enemy_num, {_x:932.5, _y:484.4});
_local3.power = 1;
_local3.hp = null;
_local3.speed = 0;
_local3.bounty = 0;
_local3.cooldown = 0;
_local3.prog = 0;
_local3.recover = 0;
_local3.boss = false;
_local3.maxcooldown = 40;
_local3.cannon = false;
_local3.path = 19;
_local3.weaponA = "hitlerShot";
_local3.explode = dead;
enemyArray.push(_local3);
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
var _local2 = attachMovie("emptyEnemy", "enemy" + enemy_num, enemy_num, {_x:932.5, _y:449.4});
_local2.power = 1;
_local2.hp = null;
_local2.speed = 0;
_local2.bounty = 0;
_local2.cooldown = 0;
_local2.prog = 0;
_local2.recover = 0;
_local2.boss = false;
_local2.maxcooldown = 30;
_local2.cannon = false;
_local2.path = 19;
_local2.weaponA = "hitlerLaser";
_local2.explode = dead;
enemyArray.push(_local2);
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
}
}
function hitGround() {
if (hero.recovery <= 0) {
var _local2 = landArray.length - 1;
while (_local2 >= 0) {
if (landArray[_local2].hitTest(hero._x, hero._y, true)) {
hero.hp = hero.hp - 1;
heroHit_snd.start(0, 0);
if (hero.hp <= 0) {
hero_dead = true;
}
hero.filters = [shipGlow];
setTimeout(this, "fade_glow", 100);
setTimeout(this, "fade_glow", 200);
setTimeout(this, "fade_glow", 300);
hero.recovery = 20;
}
_local2--;
}
}
var _local2 = projArray.length - 1;
while (_local2 >= 0) {
var _local3 = landArray.length - 1;
while (_local3 >= 0) {
if (landArray[_local3].hitTest(projArray[_local2]._x, projArray[_local2]._y, true)) {
var _local5 = projArray[_local2]._x;
var _local4 = projArray[_local2]._y;
var _local6 = projArray[_local2].getDepth();
var _local7 = projArray[_local2]._height;
var _local9 = projArray[_local2]._width;
if (projArray[_local2].nuke) {
removeMovieClip(projArray[_local2]);
projArray.splice(_local2, 1);
var _local8 = attachMovie("explosion_nuke", "exp" + _local2, _local6, {_x:_local5, _y:_local4});
explosionArray.push(_local8);
} else if (projArray[_local2].laser) {
} else {
removeMovieClip(projArray[_local2]);
projArray.splice(_local2, 1);
var _local8 = attachMovie("explosion", "exp" + _local2, _local6, {_x:_local5, _y:_local4, _width:_local7, _height:_local7});
explosionArray.push(_local8);
}
}
_local3--;
}
_local2--;
}
}
function fade_glow() {
var _local3 = hero.filters;
_local3[0].strength--;
hero.filters = _local3;
var _local1 = enemyArray.length - 1;
while (_local1 >= 0) {
var _local2 = enemyArray[_local1].filters;
_local2[0].strength--;
enemyArray[_local1].filters = _local2;
_local1--;
}
}
function create_enemy() {
if (creation_timer >= enemyCreationArray[p]) {
var _local1 = attachMovie(enemyStat[p].variety, "enemy" + enemy_num, enemy_num, {_x:enemy_xposArray[p], _y:enemy_yposArray[p]});
_local1.power = enemyStat[p].power;
_local1.hp = enemyStat[p].hp;
_local1.speed = enemyStat[p].speed;
_local1.bounty = enemyStat[p].bounty;
_local1.cooldown = enemyStat[p].cooldown;
_local1.prog = 0;
_local1.recover = 0;
_local1.boss = enemyStat[p].boss;
_local1.maxcooldown = enemyStat[p].maxcooldown;
_local1.cannon = enemyStat[p].cannon;
_local1.path = enemyPathArray[p];
_local1.weaponA = enemyStat[p].weaponA;
_local1.explode = enemyStat[p].explode;
enemyArray.push(_local1);
p++;
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
}
}
function moveEnemy() {
var _local1 = enemyArray.length - 1;
while (_local1 >= 0) {
if (enemyArray[_local1].path == 1) {
enemyArray[_local1].moveEnemyStraight(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 2) {
enemyArray[_local1].moveEnemyArcUp(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 3) {
enemyArray[_local1].moveEnemyRise(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 4) {
enemyArray[_local1].moveEnemyDrop(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 5) {
enemyArray[_local1].moveEnemyFloat(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 6) {
enemyArray[_local1].moveEnemyArcDown(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 7) {
enemyArray[_local1].moveEnemySlightDown(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 8) {
enemyArray[_local1].moveEnemySlightUp(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 9) {
enemyArray[_local1].moveBoss1(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 10) {
enemyArray[_local1].moveAryan(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 11) {
enemyArray[_local1].moveOmega(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 12) {
enemyArray[_local1].moveSeek(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 13) {
enemyArray[_local1].movePunch(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 14) {
enemyArray[_local1].moveEye(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 15) {
enemyArray[_local1].moveHawk(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 16) {
var _local7 = hero._x - enemyArray[_local1]._x;
var _local6 = hero._y - enemyArray[_local1]._y;
var _local8 = _local7 / _local6;
var _local3 = 0;
var _local2 = Math.atan(_local8);
radian_hold = _local2;
if ((hero._x < enemyArray[_local1]._x) && (hero._y < enemyArray[_local1]._y)) {
_local2 = _local2 * -1;
}
if ((hero._x > enemyArray[_local1]._x) && (hero._y < enemyArray[_local1]._y)) {
_local2 = _local2 * -1;
}
if ((hero._x > enemyArray[_local1]._x) && (hero._y >= enemyArray[_local1]._y)) {
_local3 = 180 - (_local2 * 141.37);
}
if ((hero._x < enemyArray[_local1]._x) && (hero._y >= enemyArray[_local1]._y)) {
_local3 = -180 - (_local2 * 141.37);
}
enemyArray[_local1]._rotation = (_local2 * 57.2957795130823) + _local3;
var _local4 = {x:enemyArray[_local1].shell.point._x, y:enemyArray[_local1].shell.point._y};
enemyArray[_local1].shell.point.localToGlobal(_local4);
var _local5 = enemyArray[_local1]._x - _local4.x;
var _local9 = enemyArray[_local1]._y - _local4.y;
if (enemyArray[_local1].shell.point._y > -2) {
enemyArray[_local1].shell.point._y = enemyArray[_local1].shell.point._y - 0.25;
}
enemyArray[_local1]._x = enemyArray[_local1]._x - _local5;
enemyArray[_local1]._y = enemyArray[_local1]._y - _local9;
} else if (enemyArray[_local1].path == 17) {
enemyArray[_local1].moveTank(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 18) {
enemyArray[_local1].moveTankCannon(enemyArray[_local1]);
} else if (enemyArray[_local1].path == 19) {
enemyArray[_local1].moveHitlerGhost(enemyArray[_local1]);
}
if ((enemyArray[_local1]._x < -300) || (enemyArray[_local1]._x > 1300)) {
removeMovieClip(enemyArray[_local1]);
enemyArray.splice(_local1, 1);
}
_local1--;
}
}
function hitEnemy() {
if (hero.recovery <= 0) {
var _local2 = enemyArray.length - 1;
while (_local2 >= 0) {
if (enemyArray[_local2].hitTest(hero._x, hero._y, true)) {
if (enemyArray[_local2].explosive) {
enemyArray[_local2].hp = 0;
var _local5 = enemyArray[_local2]._x;
var _local3 = enemyArray[_local2]._y;
var _local6 = enemyArray[_local2].getDepth();
var _local7 = enemyArray[_local2]._height;
var _local4 = enemyArray[_local2]._width;
enemyDeath(enemyArray[_local2], _local2, _local5, _local3, _local6, _local7, _local4);
}
hero.hp = hero.hp - 1;
heroHit_snd.start(0, 0);
if (hero.hp <= 0) {
hero_dead = true;
}
hero.filters = [shipGlow];
setTimeout(this, "fade_glow", 100);
setTimeout(this, "fade_glow", 200);
setTimeout(this, "fade_glow", 300);
hero.recovery = 20;
}
_local2--;
}
}
}
function shotEnemy() {
var _local3 = projArray.length - 1;
while (_local3 >= 0) {
var _local2 = enemyArray.length - 1;
while (_local2 >= 0) {
if ((enemyArray[_local2].recover <= 3) && (enemyArray[_local2].hp != null)) {
if (enemyArray[_local2].hitTest(projArray[_local3]) && (projArray[_local3].weapon == "friend")) {
enemyArray[_local2].hp = enemyArray[_local2].hp - projArray[_local3].power;
var _local6 = projArray[_local3]._x;
var _local4 = projArray[_local3]._y;
var _local8 = projArray[_local3].getDepth();
var _local9 = projArray[_local3]._height;
var _local5 = projArray[_local3]._width;
if (projArray[_local3].laser) {
} else {
removeMovieClip(projArray[_local3]);
projArray.splice(_local3, 1);
var _local7 = attachMovie("explosion", "exp" + _local3, _local8, {_x:_local6, _y:_local4, _width:_local9, _height:_local9});
explosionArray.push(_local7);
}
enemyArray[_local2].recover = 5;
enemyArray[_local2].filters = [enemyGlow];
setTimeout(this, "fade_glow", 1);
_local6 = enemyArray[_local2]._x;
_local4 = enemyArray[_local2]._y;
_local8 = enemyArray[_local2].getDepth();
_local9 = enemyArray[_local2]._height;
_local5 = enemyArray[_local2]._width;
enemyDeath(enemyArray[_local2], _local2, _local6, _local4, _local8, _local9, _local5);
}
}
_local2--;
}
_local3--;
}
}
function shotHero() {
var _local2 = projArray.length - 1;
while (_local2 >= 0) {
if (hero.recovery <= 0) {
if (projArray[_local2].hitTest(hero) && (projArray[_local2].weapon == "foe")) {
hero.hp = hero.hp - 1;
heroHit_snd.start(0, 0);
if (hero.hp <= 0) {
hero_dead = true;
}
var _local6 = projArray[_local2]._x;
var _local4 = projArray[_local2]._y;
var _local8 = projArray[_local2].getDepth();
var _local12 = projArray[_local2]._height;
var _local5 = projArray[_local2]._width;
if (projArray[_local2].laser) {
} else {
removeMovieClip(projArray[_local2]);
projArray.splice(_local2, 1);
var _local3 = attachMovie("explosion", "exp" + _local2, _local8, {_x:_local6, _y:_local4, _width:_local12, _height:_local12});
explosionArray.push(_local3);
}
hero.recovery = 20;
hero.life = hero.life - 1;
hero.filters = [shipGlow];
setTimeout(this, "fade_glow", 100);
setTimeout(this, "fade_glow", 200);
setTimeout(this, "fade_glow", 300);
_local6 = hero._x;
_local4 = hero._y;
_local8 = hero.getDepth();
_local12 = hero._height;
_local5 = hero._width;
}
}
_local2--;
}
}
function enemyDeath(enemy, num, hX, hY, hD, hH, hW) {
if (enemy.hp <= 0) {
explosion_snd.start(0, 0);
cash = cash + enemy.bounty;
var _local2 = enemy.explode;
if (enemy.boss) {
var _local1 = enemyArray.length - 1;
while (_local1 >= 0) {
removeMovieClip(enemyArray[_local1]);
enemyArray.splice(_local1, 1);
var _local8 = attachMovie(_local2, "exploded_enemy" + num, hD, {_x:hX, _y:hY});
explosionArray.push(_local8);
_local1--;
}
} else {
removeMovieClip(enemy);
enemyArray.splice(num, 1);
var _local8 = attachMovie(_local2, "exploded_enemy" + num, hD, {_x:hX, _y:hY});
explosionArray.push(_local8);
}
}
}
function moveProjectiles() {
var _local1 = projArray.length - 1;
while (_local1 >= 0) {
if (((projArray[_local1]._x > 720) || (projArray[_local1]._x < -10)) || (projArray[_local1]._y < 0)) {
removeMovieClip(projArray[_local1]);
projArray.splice(_local1, 1);
} else {
projArray[_local1]._x = projArray[_local1]._x + projArray[_local1].speed;
projArray[_local1]._y = projArray[_local1]._y + projArray[_local1].gravity;
projArray[_local1].gravity = projArray[_local1].gravity + projArray[_local1].gravityAccelerate;
projArray[_local1].speed = projArray[_local1].speed + projArray[_local1].accelerate;
}
_local1--;
}
}
function dead_hero() {
if (hero_dead) {
if (end_counter2 == 1) {
heroExplosion_snd.start(0, 0);
attachMovie("fade_out2", "fadeddd", 20000, {_x:0, _y:0});
attachMovie("heroExplode", "heroDead", 502, {_x:hero._x, _y:hero._y});
removeMovieClip(hero);
}
if (end_counter2 == 60) {
gotoAndStop (3);
var _local1 = projArray.length - 1;
while (_local1 >= 0) {
removeMovieClip(projArray[_local1]);
projArray.splice(_local1, 1);
_local1--;
}
_local1 = enemyArray.length - 1;
while (_local1 >= 0) {
removeMovieClip(enemyArray[_local1]);
enemyArray.splice(_local1, 1);
_local1--;
}
_local1 = explosionArray.length - 1;
while (_local1 >= 0) {
removeMovieClip(explosionArray[_local1]);
explosionArray.splice(_local1, 1);
_local1--;
}
removeMovieClip(fadeddd);
removeMovieClip(hero);
removeMovieClip(landArray[1]);
removeMovieClip(landArray[0]);
removeMovieClip(status);
removeMovieClip(horizon);
removeMovieClip(horizon1);
} else {
end_counter2++;
}
}
}
function level_end() {
if (end_counter == 1) {
attachMovie("fade_out", "fade", 20000, {_x:0, _y:0});
}
if (end_counter == 77) {
if (level_num == 9) {
gotoAndPlay (6);
end_counter++;
} else {
gotoAndStop (3);
}
var _local1 = projArray.length - 1;
while (_local1 >= 0) {
removeMovieClip(projArray[_local1]);
projArray.splice(_local1, 1);
_local1--;
}
_local1 = enemyArray.length - 1;
while (_local1 >= 0) {
removeMovieClip(enemyArray[_local1]);
enemyArray.splice(_local1, 1);
_local1--;
}
_local1 = explosionArray.length - 1;
while (_local1 >= 0) {
removeMovieClip(explosionArray[_local1]);
explosionArray.splice(_local1, 1);
_local1--;
}
removeMovieClip(fade);
removeMovieClip(hero);
removeMovieClip(landArray[1]);
removeMovieClip(landArray[0]);
removeMovieClip(status);
removeMovieClip(horizon);
removeMovieClip(horizon1);
} else {
end_counter++;
}
}
function enemyShoots() {
var _local1 = enemyArray.length - 1;
while (_local1 >= 0) {
if (enemyArray[_local1].cooldown == 0) {
if (enemyArray[_local1].weaponA == "shot") {
shootSmart(enemyArray[_local1]._x, enemyArray[_local1]._y);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "bomb") {
dropBomb(enemyArray[_local1]._x, enemyArray[_local1]._y);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "laser") {
shootLaser(enemyArray[_local1]._x, enemyArray[_local1]._y);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "threeShot") {
shootThree(enemyArray[_local1]._x, enemyArray[_local1]._y);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "straightShot") {
shootStraight(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "dropBombLocation") {
dropBombLocation(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "angleMissiles") {
angleMissiles(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "jetLaunch") {
launchJet(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "missileUp") {
missileUp(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "carrierLaser") {
carrierLaser(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "troop") {
dropTroop(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "missileStraight") {
missileStraight(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1].prog);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "eyeLaser") {
eyeLaser(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._rotation);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "dualMissiles") {
dualMissiles(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._rotation);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "ironLaserBlast") {
ironLaserBlast(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._rotation);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "shootSine") {
shootSine(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._rotation);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "angleLasers") {
angleLasers(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._currentframe);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "tankMissile") {
tankMissile(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._currentframe);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "hitlerLaser") {
shootHitlerLaser(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._currentframe);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "hitlerShot") {
shootHitler(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._currentframe);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "hitlerMouthLaser") {
hitlerMouthLaser(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._currentframe);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
} else if (enemyArray[_local1].weaponA == "seekers") {
missileSeek(enemyArray[_local1]._x, enemyArray[_local1]._y, enemyArray[_local1]._rotation);
enemyArray[_local1].cooldown = enemyArray[_local1].maxcooldown;
}
} else {
enemyArray[_local1].cooldown--;
}
_local1--;
}
}
function dropTroop(pos_x, pos_y) {
var _local1 = attachMovie("paratroop", "proj" + enemy_num, enemy_num, {_x:pos_x, _y:pos_y});
_local1.power = 1;
_local1.hp = 2;
_local1.speed = 2;
_local1.bounty = 0;
_local1.cooldown = 30;
_local1.prog = 0;
_local1.recover = 0;
_local1.boss = false;
_local1.gravity = 5;
_local1.maxcooldown = 30;
_local1.cannon = true;
_local1.path = 4;
_local1.weaponA = "shot";
_local1.explode = "jetExplode";
enemyArray.push(_local1);
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
}
function shootSmart(pos_x, pos_y) {
var _local1 = attachMovie("enemyShotA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
var _local3 = pos_x - hero._x;
var _local2 = pos_y - hero._y;
var _local6 = _local2 / _local3;
var _local7 = pos_y - (_local6 * pos_x);
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = _local3 / -10;
if (_local1.speed > 6) {
_local1.speed = 6;
} else if (_local1.speed < -6) {
_local1.speed = -6;
}
if (_local1.speed < 0) {
_local1.speed = _local1.speed - scrollSpeed;
}
_local1.gravity = _local2 / -10;
if (_local1.gravity > 6) {
_local1.gravity = 6;
} else if (_local1.gravity < -6) {
_local1.gravity = -6;
}
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function shootHitler(pos_x, pos_y) {
var _local1 = attachMovie("hitlerShot", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
var _local3 = pos_x - hero._x;
var _local2 = pos_y - hero._y;
var _local6 = _local2 / _local3;
var _local7 = pos_y - (_local6 * pos_x);
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = _local3 / -10;
if (_local1.speed > 6) {
_local1.speed = 6;
} else if (_local1.speed < -6) {
_local1.speed = -6;
}
if (_local1.speed < 0) {
_local1.speed = _local1.speed - scrollSpeed;
}
_local1.gravity = _local2 / -10;
if (_local1.gravity > 6) {
_local1.gravity = 6;
} else if (_local1.gravity < -6) {
_local1.gravity = -6;
}
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function shootThree(pos_x, pos_y) {
var _local3 = attachMovie("enemyShotA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
var _local5 = pos_x - hero._x;
var _local4 = pos_y - hero._y;
var _local8 = _local4 / _local5;
var _local9 = pos_y - (_local8 * pos_x);
_local3.topspeed = 0;
_local3.weapon = "foe";
_local3.power = 1;
_local3.accelerate = 0;
_local3.gravityAccelerate = 0;
_local3.speed = _local5 / -10;
if (_local3.speed > 6) {
_local3.speed = 6;
} else if (_local3.speed < -6) {
_local3.speed = -6;
}
if (_local3.speed < 0) {
_local3.speed = _local3.speed - scrollSpeed;
}
_local3.gravity = _local4 / -10;
if (_local3.gravity > 6) {
_local3.gravity = 6;
} else if (_local3.gravity < -6) {
_local3.gravity = -6;
}
projArray.push(_local3);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
var _local2 = attachMovie("enemyShotA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local2.topspeed = 0;
_local2.weapon = "foe";
_local2.power = 1;
_local2.accelerate = 0;
_local2.gravityAccelerate = 0;
_local2.speed = _local5 / -10;
if (_local2.speed > 6) {
_local2.speed = 6;
} else if (_local2.speed < -6) {
_local2.speed = -6;
}
if (_local2.speed < 0) {
_local2.speed = _local2.speed - scrollSpeed;
}
_local2.speed = _local2.speed + 2;
_local2.gravity = _local4 / -10;
if (_local2.gravity > 6) {
_local2.gravity = 6;
} else if (_local2.gravity < -6) {
_local2.gravity = -6;
}
_local2.gravity = _local2.gravity + 2;
projArray.push(_local2);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
var _local1 = attachMovie("enemyShotA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = _local5 / -10;
if (_local1.speed > 6) {
_local1.speed = 6;
} else if (_local1.speed < -6) {
_local1.speed = -6;
}
if (_local1.speed < 0) {
_local1.speed = _local1.speed - scrollSpeed;
}
_local1.speed = _local1.speed - 2;
_local1.gravity = _local4 / -10;
if (_local1.gravity > 6) {
_local1.gravity = 6;
} else if (_local1.gravity < -6) {
_local1.gravity = -6;
}
_local1.gravity = _local1.gravity - 2;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function launchJet(pos_x, pos_y) {
var _local1 = attachMovie("jetFighterA", "enemy" + enemy_num, enemy_num, {_x:pos_x, _y:pos_y});
_local1.power = 1;
_local1.hp = 2;
_local1.speed = 2;
_local1.bounty = 0;
_local1.cooldown = 30;
_local1.prog = 0;
_local1.recover = 0;
_local1.boss = false;
_local1.maxcooldown = 30;
_local1.cannon = false;
_local1.path = 2;
_local1.weaponA = "shot";
_local1.explode = "jetExplode";
enemyArray.push(_local1);
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
}
function dropBomb(pos_x, pos_y) {
var _local1 = attachMovie("enemyBombA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 1;
_local1.speed = -scrollSpeed;
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function tankMissile(pos_x, pos_y) {
var _local1 = attachMovie("tank_missile", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = -12;
_local1.gravity = (hero._y - pos_y) / 90;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function eyeLaser(pos_x, pos_y, pos_rot) {
var _local1 = attachMovie("eyeLaser", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1._rotation = pos_rot;
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.laser = true;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = 0;
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function ironLaserBlast(pos_x, pos_y, pos_rot) {
var _local1 = attachMovie("ironLaserBlast", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1._rotation = 180;
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.laser = true;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = 0;
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function dropBombLocation(pos_x, pos_y) {
if (hero._y > pos_y) {
var _local1 = attachMovie("enemyBombA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 1;
_local1.speed = -scrollSpeed;
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
}
function shootStraight(pos_x, pos_y, dir) {
var _local1 = attachMovie("enemyShotA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = -20;
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function shootSine(pos_x, pos_y, dir) {
var _local1 = attachMovie("enemySineA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
if (dir > 72) {
_local1.speed = 40;
} else {
_local1.speed = -15;
}
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
var _local2 = attachMovie("enemySineB", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local2.topspeed = 0;
_local2.weapon = "foe";
_local2.power = 1;
_local2.accelerate = 0;
_local2.gravityAccelerate = 0;
if (dir > 72) {
_local1.speed = 40;
} else {
_local2.speed = -15;
}
_local2.gravity = 0;
projArray.push(_local2);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function carrierLaser(pos_x, pos_y, dir) {
var _local1 = attachMovie("carrierLaser", "proj" + proj, proj, {_x:pos_x, _y:pos_y - 35});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.laser = true;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = -20;
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function hitlerMouthLaser(pos_x, pos_y) {
var _local1 = attachMovie("hitlerMouthLaser", "proj" + proj, proj, {_x:572.1, _y:264.6});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.laser = true;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = 0;
_local1.gravity = 0;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function missileUp(pos_x, pos_y) {
var _local1 = attachMovie("missile", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.speed = -scrollSpeed;
_local1.accelerate = 0;
_local1.gravity = 0;
_local1._rotation = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.gravityAccelerate = -1;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function missileStraight(pos_x, pos_y) {
var _local1 = attachMovie("missile", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.speed = -scrollSpeed;
_local1.accelerate = 0;
_local1.gravity = 0;
_local1._rotation = -90;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = -1;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function missileSeek(pos_x, pos_y, rot) {
var _local1 = attachMovie("eyeMissile", "proj" + enemy_num, enemy_num, {_x:pos_x, _y:pos_y});
_local1.speed = -scrollSpeed;
_local1.accelerate = 0;
_local1.gravity = 0;
_local1._rotation = rot;
_local1.weapon = "foe";
_local1.seeking = true;
_local1.power = 1;
_local1.hp = 5;
_local1.bounty = 0;
_local1.prog = 0;
_local1.recover = 0;
_local1.boss = false;
_local1.explosive = true;
_local1.path = 16;
_local1.explode = "jetExplode";
enemyArray.push(_local1);
if (enemy_num > 400) {
enemy_num = 26;
} else {
enemy_num++;
}
}
function dualMissiles(pos_x, pos_y) {
var _local1 = attachMovie("missile", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.speed = -10;
_local1.accelerate = 2;
_local1.gravity = 0;
_local1.gravityAccelerate = 1;
_local1._rotation = -90;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = -1;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
var _local2 = attachMovie("missile", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local2.speed = -10;
_local2.accelerate = -2;
_local2.gravity = 0;
_local2.gravityAccelerate = -1;
_local2._rotation = -90;
_local2.weapon = "foe";
_local1.power = 1;
_local1.accelerate = -1;
projArray.push(_local2);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function angleMissiles(pos_x, pos_y, dir) {
var _local1 = attachMovie("missile", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
if (hero._x < (pos_x - 20)) {
_local1.speed = 0;
_local1.accelerate = -1;
_local1.gravity = 0;
_local1._rotation = 315;
} else if (hero._x > (pos_x + 20)) {
_local1.speed = 0;
_local1.gravity = 0;
_local1.accelerate = 1;
_local1._rotation = 45;
} else {
_local1.speed = -scrollSpeed;
_local1.accelerate = 0;
_local1.gravity = 0;
_local1._rotation = 0;
}
_local1.weapon = "foe";
_local1.power = 1;
_local1.gravityAccelerate = -1;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function angleLasers(pos_x, pos_y, frame) {
var _local1 = attachMovie("enemyLaserA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
if (frame == 1) {
_local1.speed = 0;
_local1.accelerate = -1;
_local1.gravity = 0;
_local1.gravityAccelerate = -1;
_local1._rotation = 45;
} else if (frame == 3) {
_local1.speed = 0;
_local1.gravity = 0;
_local1.gravityAccelerate = -1;
_local1.accelerate = 1;
_local1._rotation = 135;
} else if (frame == 2) {
_local1.speed = -scrollSpeed;
_local1.accelerate = 0;
_local1.gravity = 0;
_local1.gravityAccelerate = -1;
_local1._rotation = 90;
} else if (frame == 4) {
_local1.speed = -scrollSpeed;
_local1.accelerate = 1;
_local1.gravity = 0;
_local1.gravityAccelerate = 1;
_local1._rotation = 225;
} else if (frame == 5) {
_local1.speed = -scrollSpeed;
_local1.accelerate = 0;
_local1.gravity = 0;
_local1.gravityAccelerate = 1;
_local1._rotation = 270;
} else if (frame == 6) {
_local1.speed = -scrollSpeed;
_local1.accelerate = -1;
_local1.gravity = 0;
_local1.gravityAccelerate = 1;
_local1._rotation = 315;
}
_local1.weapon = "foe";
_local1.power = 1;
_local1.laser = true;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function shootLaser(pos_x, pos_y) {
var _local1 = attachMovie("enemyLaserA", "proj" + proj, proj, {_x:pos_x, _y:pos_y});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = -10;
_local1.gravity = 0;
_local1.laser = true;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function shootHitlerLaser() {
var _local1 = attachMovie("hitlerLaser", "proj" + proj, proj, {_x:hero._x, _y:360});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = 0;
_local1.gravity = 0;
_local1.laser = true;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
function positionCannon() {
var _local1 = enemyArray.length - 1;
while (_local1 >= 0) {
if (enemyArray[_local1].cannon) {
if (enemyArray[_local1]._y > hero._y) {
if (hero._x > (enemyArray[_local1]._x + 20)) {
enemyArray[_local1].gotoAndStop("upRight");
} else if (hero._x < (enemyArray[_local1]._x - 20)) {
enemyArray[_local1].gotoAndStop("upLeft");
} else {
enemyArray[_local1].gotoAndStop("up");
}
} else if (hero._x > (enemyArray[_local1]._x + 20)) {
enemyArray[_local1].gotoAndStop("downRight");
} else if (hero._x < (enemyArray[_local1]._x - 20)) {
enemyArray[_local1].gotoAndStop("downLeft");
} else {
enemyArray[_local1].gotoAndStop("down");
}
}
_local1--;
}
}
function missileTrail(pos_x, pos_y, cool) {
if (cool == 5) {
var _local1 = attachMovie("missileTrail", "proj" + proj, proj, {_x:pos_x - 84, _y:pos_y + 16.5});
_local1.topspeed = 0;
_local1.weapon = "foe";
_local1.power = 1;
_local1.accelerate = 0;
_local1.gravityAccelerate = 0;
_local1.speed = -20;
_local1.gravity = 0;
_local1.laser = true;
projArray.push(_local1);
if (proj >= 2200) {
proj = 1301;
} else {
proj++;
}
}
}
var playable_game = false;
var play_count = 20;
var creation_timer = 0;
var currentWeapon = 0;
var d = 801;
var enemyArray = new Array();
var explosionArray = new Array();
var enemySpawnArray = new Array(20);
var heroCount = 0;
var l = 0;
var land_num = 0;
var landArray = new Array();
var level_complete = false;
var lives = 3;
var m = 1;
var proj = 1301;
var laser_proj = 2700;
var projArray = new Array();
var scrollSpeed = 5;
var terra = false;
var p = 0;
var targetA = new Object();
targetA = {hp:1, speed:1, power:0, variety:"targetA", bounty:100, explode:"targetExplode"};
var targetB = function () {
};
targetB = {hp:5, speed:1, power:0, variety:"targetB", bounty:100, explode:"targetExplode"};
var targetC = function () {
};
targetC = {hp:5, speed:1, power:0, variety:"targetC", bounty:100, explode:"targetExplode"};
var targetD = function () {
};
targetD = {hp:1, speed:1, power:0, variety:"targetD", bounty:100, explode:"targetExplode2"};
var targetE = function () {
};
targetE = {hp:5, speed:1, power:0, variety:"targetE", bounty:100, explode:"targetExplode2"};
var targetF = function () {
};
targetF = {hp:5, speed:1, power:0, variety:"targetF", bounty:100, explode:"targetExplode"};
var gyroA = new Object();
gyroA = {hp:1, speed:2, power:1, variety:"gyroA", bounty:100, explode:"gyroExplode"};
var jetFighterA = new Object();
jetFighterA = {hp:2, speed:2, power:1, variety:"jetFighterA", bounty:100, cooldown:40, maxcooldown:40, weaponA:"shot", explode:"jetExplode"};
var harrier = new Object();
harrier = {hp:8, speed:0.5, power:1, variety:"harrier", bounty:100, cooldown:40, maxcooldown:40, weaponA:"shot", explode:"jetExplode"};
var cannonShip = new Object();
cannonShip = {hp:12, speed:0.5, power:1, variety:"cannonShip", bounty:200, cooldown:40, maxcooldown:40, weaponA:"threeShot", cannon:true, explode:"cannonShipExplode"};
var backShip = new Object();
backShip = {hp:8, speed:0.5, power:1, variety:"backShip", bounty:100, cooldown:40, maxcooldown:40, weaponA:"laser", explode:"jetExplode"};
var megaShip = new Object();
megaShip = {hp:20, speed:0.5, power:1, variety:"megaShip", bounty:300, cooldown:15, maxcooldown:15, weaponA:"shot", explode:"jetExplode"};
var groundCannonA = new Object();
groundCannonA = {hp:2, speed:1, power:1, variety:"groundCannonA", bounty:100, cannon:true, cooldown:30, maxcooldown:30, weaponA:"shot", explode:"groundCannonExplode"};
var paratroop = new Object();
paratroop = {hp:null, speed:0, power:1, variety:"paratroop", bounty:0, cannon:true, cooldown:30, maxcooldown:30, weaponA:"shot", explode:"groundCannonExplode"};
var missileCannon = new Object();
missileCannon = {hp:4, speed:1, power:1, variety:"missileCannon", bounty:100, cannon:true, cooldown:30, maxcooldown:30, weaponA:"angleMissiles", explode:"groundCannonExplode"};
var railCannonA = new Object();
railCannonA = {hp:2, speed:1, power:1, variety:"railCannonA", bounty:100, weaponA:"laser", cooldown:60, maxcooldown:60, explode:"jetExplode"};
var zeppelin = new Object();
zeppelin = {hp:10, speed:0.5, power:1, variety:"zeppelin", bounty:200, cooldown:30, maxcooldown:30, weaponA:"bomb", explode:"zeppelinExplode"};
var troopZeppelin = new Object();
troopZeppelin = {hp:10, speed:0.5, power:1, variety:"zeppelin", bounty:200, cooldown:30, maxcooldown:30, weaponA:"troop", explode:"zeppelinExplode"};
var bomber = new Object();
bomber = {hp:7, speed:0.5, power:1, variety:"bomber", bounty:100, cooldown:20, maxcooldown:20, weaponA:"bomb", explode:"jetExplode"};
var sub = new Object();
sub = {hp:5, speed:1, power:1, variety:"sub", bounty:100, cooldown:50, maxcooldown:50, weaponA:"shot", explode:"jetExplode"};
var nukeSub = new Object();
nukeSub = {hp:10, speed:1, power:1, variety:"nukeSub", bounty:100, cooldown:40, maxcooldown:40, weaponA:"missileUp", explode:"jetExplode"};
var missileChopper = new Object();
missileChopper = {hp:10, speed:0.5, power:1, variety:"missileChopper", bounty:200, cooldown:20, maxcooldown:20, weaponA:"missileStraight", explode:"missileChopperExplode"};
var carrierBody = new Object();
carrierBody = {hp:150, speed:0.5, power:1, variety:"carrierBody", bounty:2000, cooldown:20, maxcooldown:20, boss:true, explode:"carrierBodyExplode"};
var carrierTower = new Object();
carrierTower = {hp:100, speed:0.5, power:1, variety:"carrierTower", bounty:500, cooldown:20, maxcooldown:20, explode:"carrierTowerExplode"};
var carrierAAgun = new Object();
carrierAAgun = {hp:60, speed:0.5, power:1, variety:"carrierAAgun", cannon:true, bounty:100, cooldown:20, maxcooldown:20, weaponA:"shot", explode:"jetExplode"};
var carrierHullCannon = new Object();
carrierHullCannon = {hp:null, speed:0.5, power:1, variety:"emptyEnemy", bounty:0, cooldown:45, maxcooldown:45, weaponA:"carrierLaser", explode:"jetExplode"};
var carrierJetLauncher = new Object();
carrierJetLauncher = {hp:null, speed:0.5, power:1, variety:"emptyEnemy", bounty:0, cooldown:0, maxcooldown:119, weaponA:"jetLaunch", explode:"jetExplode"};
var aryanBaron = new Object();
aryanBaron = {hp:200, speed:1, power:1, variety:"aryanBaron", bounty:10000, cooldown:30, maxcooldown:30, weaponA:"threeShot", boss:true, explode:"aryanBaronExplode"};
var omegaBomber = new Object();
omegaBomber = {hp:130, speed:1, power:1, variety:"omegaBomber", bounty:1000, cooldown:20, maxcooldown:30, weaponA:"bomb", boss:true, explode:"omegaBomberExplode"};
var omegaBombDrop = new Object();
omegaBombDrop = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, cooldown:25, maxcooldown:30, weaponA:"bomb", explode:"jetExplode"};
var omegaBombDrop2 = new Object();
omegaBombDrop2 = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, cooldown:30, maxcooldown:30, weaponA:"bomb", explode:"jetExplode"};
var aryanBaronBomb = new Object();
aryanBaronBomb = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, cooldown:25, maxcooldown:25, weaponA:"dropBombLocation", explode:"jetExplode"};
var aryanBaronMissile = new Object();
aryanBaronMissile = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, cooldown:15, maxcooldown:15, weaponA:"missileUp", explode:"jetExplode"};
var wallA = new Object();
wallA = {hp:10, speed:1, power:0, variety:"wallA", bounty:0, explode:"wallAexplode"};
var wallB = new Object();
wallB = {hp:20, speed:1, power:0, variety:"wallB", bounty:0, explode:"wallBexplode"};
var wallC = new Object();
wallC = {hp:20, speed:1, power:0, variety:"wallC", bounty:0, explode:"wallCexplode"};
var level1boss = new Object();
level1boss = {hp:100, speed:1, power:1, variety:"level1boss", bounty:500, boss:true, explode:"level1bossExplode"};
var level1bossCannon = new Object();
level1bossCannon = {hp:null, speed:1, power:1, variety:"level1bossCannon", bounty:100, weaponA:"shot", cooldown:10, maxcooldown:10, cannon:true};
var omegaBomberCannon = new Object();
omegaBomberCannon = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, weaponA:"shot", cooldown:30, maxcooldown:30, cannon:true};
var punchinello = new Object();
punchinello = {hp:200, speed:1, power:1, variety:"punchinello", bounty:3000, boss:true, explode:"punchinelloExplode"};
var punchinelloMachGun = new Object();
punchinelloMachGun = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, explode:"jetExplode", cooldown:30, maxcooldown:30, weaponA:"shot"};
var punchinelloMachGun2 = new Object();
punchinelloMachGun2 = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, explode:"jetExplode", cooldown:25, maxcooldown:30, weaponA:"shot"};
var punchinelloMissile1 = new Object();
punchinelloMissile1 = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, explode:"jetExplode", cooldown:20, maxcooldown:30, weaponA:"missileStraight"};
var punchinelloMissile2 = new Object();
punchinelloMissile2 = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, explode:"jetExplode", cooldown:25, maxcooldown:30, weaponA:"missileStraight"};
var punchinelloMissile3 = new Object();
punchinelloMissile3 = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, explode:"jetExplode", cooldown:30, maxcooldown:30, weaponA:"missileStraight"};
var laserCannon = new Object();
laserCannon = {hp:5, speed:1, power:1, variety:"laserCannon", cannon:true, bounty:100, cooldown:20, maxcooldown:20, weaponA:"angleLasers", explode:"jetExplode"};
var branchA = new Object();
branchA = {hp:10, speed:1, power:1, variety:"branchA", bounty:0, cooldown:20, maxcooldown:20, explode:"branchAExplode"};
var branchB = new Object();
branchB = {hp:15, speed:1, power:1, variety:"branchB", bounty:0, cooldown:20, maxcooldown:20, explode:"branchBExplode"};
var branchC = new Object();
branchC = {hp:20, speed:1, power:1, variety:"branchC", bounty:0, cooldown:20, maxcooldown:20, explode:"branchCExplode"};
var demonJet = new Object();
demonJet = {hp:3, speed:3, power:1, variety:"demonJet", bounty:100, cooldown:20, maxcooldown:20, explode:"jetExplode"};
var eye = new Object();
eye = {hp:200, speed:1, power:1, variety:"eye", bounty:100, cooldown:60, maxcooldown:60, weaponA:"seekers", explode:"eyeExplode", boss:true};
var laserPlatform = new Object();
laserPlatform = {hp:80, speed:1, power:1, variety:"laserPlatform", bounty:100, cooldown:60, maxcooldown:60, weaponA:"shot", cannon:true, explode:"jetExplode"};
var gestapo = new Object();
gestapo = {hp:7, speed:1, power:1, variety:"gestapo", bounty:200, cooldown:20, maxcooldown:20, weaponA:"shootSine", explode:"jetExplode"};
var ironHit = new Object();
ironHit = {hp:200, speed:1, power:1, variety:"ironHit", bounty:4000, cooldown:20, maxcooldown:20, boss:true, explode:"ironBodyExplode"};
var ironBody = new Object();
ironBody = {hp:null, speed:0.5, power:1, variety:"ironBody", bounty:100, cooldown:20, maxcooldown:20, explode:"jetExplode"};
var ironGun = new Object();
ironGun = {hp:null, speed:1, power:1, variety:"ironGun", cannon:true, bounty:100, cooldown:30, maxcooldown:30, weaponA:"shot", explode:"jetExplode"};
var ironLaser = new Object();
ironLaser = {hp:100, speed:1, power:1, variety:"ironLaser", bounty:100, cooldown:100, maxcooldown:100, weaponA:"ironLaserBlast", explode:"jetExplode"};
var ironLaser2 = new Object();
ironLaser2 = {hp:100, speed:1, power:1, variety:"ironLaser2", bounty:100, cooldown:100, maxcooldown:100, weaponA:"ironLaserBlast", explode:"jetExplode"};
var ironMissile = new Object();
ironMissile = {hp:100, speed:1, power:1, variety:"ironMissile", bounty:100, cooldown:40, maxcooldown:40, weaponA:"dualMissiles", explode:"jetExplode"};
var ironBomb = new Object();
ironBomb = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, cooldown:25, maxcooldown:25, weaponA:"bomb", explode:"jetExplode"};
var ironBomb2 = new Object();
ironBomb2 = {hp:null, speed:1, power:1, variety:"emptyEnemy", bounty:100, cooldown:15, maxcooldown:25, weaponA:"bomb", explode:"jetExplode"};
var ironTurret = new Object();
ironTurret = {hp:100, speed:1, power:1, variety:"ironTurret", cannon:true, bounty:100, cooldown:45, maxcooldown:45, weaponA:"threeShot", explode:"jetExplode"};
var flag = new Object();
flag = {hp:10, speed:1, power:1, variety:"flag", bounty:0, cooldown:40, maxcooldown:40, explode:"flagExplode"};
var tankCannon = new Object();
tankCannon = {hp:null, speed:1, power:1, variety:"tankCannon", bounty:100, cooldown:20, maxcooldown:20, weaponA:"tankMissile", explode:"jetExplode"};
var tankBody = new Object();
tankBody = {hp:250, speed:1, power:1, variety:"tankBody", bounty:1000, cooldown:20, maxcooldown:20, boss:true, explode:"tankBodyExplode"};
if (level_num == 1) {
var terrain = Array(1, 2, 2, 1, 3, 1, 2, 4, 2, 1, 2, 1, 1);
var enemyPathArray = new Array(1, 1, 1, 1, 1, 1, 1, 1, 4, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 3, 4, 1, 1, 1, 2, 2, 2, 2, 1, 4, 1, 3, 1, 1, 1, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var enemyCreationArray = new Array(60, 90, 120, 150, 180, 200, 240, 240, 300, 320, 340, 370, 370, 400, 430, 540, 600, 630, 660, 690, 720, 720, 760, 780, 800, 840, 900, 950, 1020, 1040, 1060, 1100, 1150, 1170, 1190, 1210, 1240, 1270, 1300, 1360, 1370, 1380, 1390, 1400, 1410, 1450, 1470, 1490, 1500, 1510, 1520, 1580, 1600, 1630, 1640, 1650, 1660, 10000);
var enemy_xposArray = new Array(720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720);
var enemy_yposArray = new Array(300, 200, 100, 200, 250, 100, 50, 150, -20, 400, -20, 240, 90, 165, 360, 160, 360, 360, 360, 360, 360, 100, -40, 400, -40, 160, 200, 200, 100, 260, 180, 180, 360, -20, 360, 410, 120, 300, 160, -40, -40, -40, -40, -40, -40, 240, 100, 260, 160, 100, 160, 360, 360, 160, 160, 160, 160);
var enemyStat = new Array(targetA, targetA, targetA, targetB, targetA, targetB, targetA, targetB, targetA, targetA, targetA, targetA, targetA, targetA, targetD, targetA, targetD, targetD, targetD, targetD, targetD, targetA, targetB, targetB, targetB, targetC, targetA, targetA, targetA, targetA, targetA, targetB, targetD, targetA, targetD, targetB, targetC, targetC, targetC, targetA, targetA, targetA, targetA, targetA, targetA, targetC, targetC, targetC, targetC, targetC, targetA, targetE, targetE, targetA, targetB, targetC, targetF);
} else if (level_num == 2) {
var terrain = Array(6, 5, 5, 7, 5, 7, 8, 9, 10, 11, 12, 13, 6, 5, 7, 6);
var enemyPathArray = new Array(8, 8, 7, 7, 7, 6, 2, 6, 2, 6, 2, 7, 8, 1, 7, 7, 7, 7, 7, 7, 5, 8, 7, 7, 7, 8, 8, 8, 7, 7, 7, 8, 8, 8, 7, 7, 7, 5, 1, 6, 6, 2, 2, 1, 1, 1, 1, 1, 1, 3, 3, 5, 1, 7, 8, 3, 7, 7, 7, 1, 6, 2, 6, 2, 1, 1, 1, 8, 8, 8, 5, 8, 8, 8, 1, 6, 6, 6, 2, 2, 2, 7, 7, 7, 7, 8, 8, 8, 8, 6, 2, 9, 9);
var enemyCreationArray = new Array(20, 30, 50, 60, 70, 110, 110, 120, 120, 130, 130, 172, 182, 200, 250, 260, 270, 280, 290, 300, 330, 340, 380, 390, 400, 450, 460, 470, 470, 480, 490, 490, 500, 510, 510, 520, 530, 560, 565, 620, 640, 650, 670, 700, 800, 825, 835, 845, 860, 920, 940, 960, 970, 1040, 1040, 1070, 1080, 1090, 1100, 1140, 1240, 1240, 1250, 1250, 1330, 1360, 1370, 1370, 1380, 1390, 1590, 1610, 1620, 1630, 1660, 1730, 1740, 1750, 1805, 1815, 1825, 1855, 1855, 1855, 1855, 1855, 1855, 1855, 1855, 1890, 1890, 2030, 2030, 10000);
var enemy_xposArray = new Array(740, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 750, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 790, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 772.9);
var enemy_yposArray = new Array(290, 290, 180, 180, 180, 80, 190, 80, 190, 80, 190, 80, 190, 320, 80, 80, 80, 80, 80, 80, 100, 180, 80, 80, 80, 90, 90, 90, 120, 120, 120, 150, 150, 150, 120, 120, 120, 80, 390, 80, 80, 200, 200, 390, 390, 370, 370, 370, 250, 450, 450, 100, 390, 80, 150, 450, 80, 80, 80, 390, 120, 300, 120, 300, 140, 140, 80, 360, 360, 360, 110, 200, 200, 200, 390, 60, 100, 140, 250, 250, 250, 45, 90, 135, 180, 225, 270, 315, 360, 100, 200, 150, 128.3);
var enemyStat = new Array(gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, jetFighterA, jetFighterA, groundCannonA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, zeppelin, jetFighterA, jetFighterA, jetFighterA, jetFighterA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, zeppelin, groundCannonA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, groundCannonA, groundCannonA, gyroA, gyroA, gyroA, wallA, railCannonA, railCannonA, zeppelin, groundCannonA, jetFighterA, jetFighterA, railCannonA, gyroA, gyroA, gyroA, groundCannonA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, groundCannonA, groundCannonA, gyroA, jetFighterA, jetFighterA, jetFighterA, zeppelin, gyroA, gyroA, gyroA, groundCannonA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, jetFighterA, jetFighterA, level1boss, level1bossCannon);
} else if (level_num == 3) {
var terrain = Array(45, 45, 45);
var enemyPathArray = new Array(10, 10, 10);
var enemyCreationArray = new Array(10, 10, 10, 10000);
var enemy_xposArray = new Array(744.8, 744.8, 744);
var enemy_yposArray = new Array(208, 208, 208);
var enemyStat = new Array(aryanBaron, aryanBaronBomb, aryanBaronMissile);
} else if (level_num == 4) {
var terrain = Array(14, 15, 15, 16, 17, 42, 42, 18, 19, 20, 19, 21, 22, 23, 19, 14);
var enemyPathArray = new Array(6, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 8, 8, 8, 1, 1, 8, 8, 7, 7, 6, 2, 6, 2, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 6, 2, 6, 2, 1, 7, 1, 7, 1, 1, 1, 1, 1, 1, 2, 1, 1, 8, 7, 1, 1, 8, 1, 7, 1, 1, 1, 1, 8, 1, 7, 7, 7, 7, 11, 11, 11, 11);
var enemyCreationArray = new Array(50, 50, 75, 140, 150, 160, 170, 180, 190, 230, 255, 300, 355, 360, 365, 470, 470, 480, 490, 510, 520, 530, 575, 650, 660, 670, 690, 700, 790, 790, 800, 800, 810, 830, 840, 850, 870, 880, 910, 920, 925, 940, 960, 970, 990, 1040, 1070, 1080, 1090, 1120, 1130, 1140, 1150, 1190, 1210, 1230, 1280, 1310, 1320, 1330, 1340, 1350, 1360, 1360, 1430, 1460, 1520, 1520, 1570, 1610, 1630, 1640, 1660, 1660, 1670, 1670, 1680, 1720, 1760, 1855, 1900, 1920, 1940, 2030, 2030, 2030, 2030, 10000);
var enemy_xposArray = new Array(720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 679, 748, 778);
var enemy_yposArray = new Array(100, 210, 155, 90, 200, 120, 230, 200, 90, 100, 210, 50, 160, 180, 200, 390, 60, 60, 60, 210, 210, 210, 50, 180, 220, 220, 60, 60, 60, 200, 60, 200, 130, 300, 300, 300, 250, 220, 80, 200, 230, 170, 200, 390, 100, 40, 80, 100, 120, 100, 200, 100, 200, 40, 40, 40, 100, 40, 110, 180, 120, 40, 100, 210, 100, 200, 180, 220, 200, 150, 200, 390, 100, 200, 390, 200, 200, 125, 60, 40, 60, 60, 60, 176, 201, 221, 221);
var enemyStat = new Array(gyroA, gyroA, jetFighterA, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, jetFighterA, jetFighterA, bomber, gyroA, gyroA, gyroA, missileCannon, jetFighterA, jetFighterA, jetFighterA, gyroA, gyroA, gyroA, bomber, megaShip, gyroA, gyroA, gyroA, gyroA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, megaShip, gyroA, gyroA, gyroA, gyroA, gyroA, jetFighterA, jetFighterA, gyroA, gyroA, jetFighterA, missileCannon, megaShip, bomber, gyroA, gyroA, gyroA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, bomber, bomber, bomber, megaShip, gyroA, gyroA, gyroA, gyroA, gyroA, gyroA, jetFighterA, gyroA, wall2, jetFighterA, jetFighterA, wall3, gyroA, jetFighterA, missileCannon, jetFighterA, gyroA, missileCannon, gyroA, gyroA, megaShip, bomber, bomber, jetFighterA, jetFighterA, jetFighterA, omegaBomber, omegaBomberCannon, omegaBombDrop, omegaBombDrop2);
} else if (level_num == 5) {
var terrain = Array(24, 24, 24, 25, 26, 27, 24, 28, 24, 24, 24, 24);
var enemyPathArray = new Array(8, 8, 8, 1, 1, 1, 1, 1, 6, 6, 6, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 7, 8, 1, 7, 8, 7, 8, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 5, 1, 7, 8, 1, 1, 6, 2, 2, 6, 1, 1, 5, 5, 5, 1, 9, 9, 9, 9, 9, 9, 9);
var enemyCreationArray = new Array(20, 30, 40, 70, 100, 120, 160, 180, 200, 200, 200, 220, 250, 250, 290, 310, 370, 400, 400, 400, 430, 450, 450, 460, 470, 470, 510, 540, 560, 590, 630, 630, 635, 640, 640, 650, 650, 710, 720, 750, 760, 760, 780, 810, 830, 860, 860, 860, 890, 890, 920, 920, 940, 940, 960, 960, 960, 990, 1000, 1025, 1040, 1050, 1070, 1100, 1100, 1140, 1170, 1170, 1170, 1200, 1200, 1230, 1250, 1270, 1270, 1270, 1330, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 10000);
var enemy_xposArray = new Array(720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 760, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 980, 998, 795, 1189, 856, 1130, 758);
var enemy_yposArray = new Array(80, 100, 120, 370, 370, 120, 370, 370, 80, 100, 120, 370, 90, 110, 100, 300, 240, 70, 90, 250, 240, 250, 100, 100, 100, 250, 240, 100, 250, 240, 150, 200, 270, 150, 200, 150, 200, 200, 370, 100, 160, 370, 370, 370, 100, 60, 150, 240, 105, 195, 150, 260, 105, 195, 60, 150, 240, 370, 370, 100, 370, 200, 370, 80, 240, 370, 370, 80, 230, 180, 210, 370, 370, 70, 140, 210, 370, 392, 268, 291, 291, 316, 316, 376);
var enemyStat = new Array(jetFighterA, jetFighterA, jetFighterA, sub, sub, jetFighterA, sub, sub, jetFighterA, jetFighterA, jetFighterA, nukeSub, jetFighterA, jetFighterA, missileChopper, groundCannonA, missileCannon, jetFighterA, jetFighterA, groundCannonA, missileCannon, groundCannonA, jetFighterA, jetFighterA, jetFighterA, groundCannonA, missileCannon, missileChopper, groundCannonA, missileCannon, jetFighterA, jetFighterA, groundCannonA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, sub, jetFighterA, jetFighterA, nukeSub, sub, sub, missileChopper, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, groundCannonA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, nukeSub, sub, missileChopper, nukeSub, missileChopper, sub, jetFighterA, jetFighterA, sub, sub, jetFighterA, jetFighterA, jetFighterA, jetFighterA, nukeSub, nukeSub, missileChopper, missileChopper, missileChopper, sub, carrierBody, carrierTower, carrierAAgun, carrierAAgun, carrierJetLauncher, carrierJetLauncher, carrierHullCannon);
} else if (level_num == 6) {
var terrain = Array(29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44);
var enemyPathArray = new Array(5, 8, 7, 1, 5, 1, 1, 3, 3, 3, 12, 6, 2, 5, 1, 1, 8, 7, 12, 4, 3, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 2, 2, 2, 5, 2, 2, 5, 2, 1, 1, 1, 12, 7, 1, 8, 5, 1, 1, 1, 1, 2, 6, 5, 2, 1, 6, 2, 2, 2, 4, 3, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 8, 4, 3, 12, 12, 4, 3, 12, 4, 3, 5, 8, 7, 1, 13, 13, 13, 13, 13, 13);
var enemyCreationArray = new Array(20, 70, 70, 80, 150, 170, 190, 190, 210, 230, 270, 280, 280, 310, 340, 340, 360, 360, 380, 400, 410, 440, 460, 480, 480, 510, 520, 520, 530, 550, 590, 590, 610, 620, 640, 680, 690, 700, 700, 730, 740, 740, 750, 810, 810, 890, 990, 1080, 1080, 1100, 1110, 1170, 1170, 1170, 1180, 1180, 1180, 1200, 1200, 1200, 1200, 1200, 1210, 1220, 1320, 1330, 1380, 1430, 1430, 1450, 1470, 1470, 1490, 1510, 1510, 1530, 1540, 1540, 1540, 1660, 1660, 1660, 1690, 1690, 1700, 1700, 1730, 1730, 1750, 1770, 1770, 1850, 1890, 1900, 1910, 2100, 2100, 2100, 2100, 2100, 2100, 10000);
var enemy_xposArray = new Array(720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 758, 660, 680, 741, 764, 786);
var enemy_yposArray = new Array(80, 180, 220, 200, 200, 200, 190, 250, 250, 250, 200, 150, 250, 100, 120, 220, 160, 180, 170, 300, 100, 200, 230, 230, 340, 50, 90, 300, 180, 300, 190, 240, 240, 30, 240, 320, 320, 320, 60, 320, 320, 60, 320, 390, 160, 160, 320, 200, 280, 340, 130, 50, 100, 350, 75, 330, 350, 30, 120, 300, 330, 360, 120, 120, 100, 340, 190, 190, 230, 210, 190, 230, 210, 190, 230, 210, 190, 210, 230, 150, 200, 250, 100, 300, 180, 240, 100, 300, 200, 100, 300, 70, 200, 200, 200, -34, 54, 61, -16, 5, 27);
var enemyStat = new Array(troopZeppelin, jetFighterA, jetFighterA, jetFighterA, bomber, jetFighterA, jetFighterA, railCannon, railCannon, railCannon, harrier, jetFighterA, jetFighterA, troopZeppelin, backShip, backShip, jetFighterA, jetFighterA, harrier, railCannon, railCannon, cannonShip, missileCannon, missileCannon, jetFighterA, jetFighterA, cannonShip, jetFighterA, jetFighterA, railCannon, cannonShip, groundCannonA, missileCannon, backShip, groundCannonA, jetFighterA, jetFighterA, jetFighterA, bomber, jetFighterA, jetFighterA, bomber, jetFighterA, groundCannonA, backShip, backShip, harrier, jetFighterA, jetFighterA, jetFighterA, troopZeppelin, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, bomber, jetFighterA, backShip, jetFighterA, jetFighterA, jetFighterA, jetFighterA, railCannon, railCannon, troopZeppelin, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, cannonShip, jetFighterA, railCannon, railCannon, harrier, harrier, railCannon, railCannon, harrier, railCannon, railCannon, bomber, jetFighterA, jetFighterA, jetFighterA, punchinello, punchinelloMachgun, punchinelloMachGun2, punchinelloMissile1, punchinelloMissile2, punchinelloMissile3);
} else if (level_num == 7) {
var terrain = Array(47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47);
var enemyPathArray = new Array(1, 8, 7, 8, 8, 7, 7, 1, 1, 6, 2, 2, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 8, 1, 1, 1, 1, 2, 1, 6, 7, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 8, 8, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 2, 2, 6, 6, 2, 2, 6, 6, 11, 14, 11);
var enemyCreationArray = new Array(35, 60, 60, 100, 100, 100, 100, 150, 150, 180, 190, 200, 200, 245, 245, 245, 300, 320, 340, 340, 350, 390, 400, 440, 440, 450, 450, 480, 490, 520, 540, 540, 540, 590, 590, 620, 650, 650, 670, 680, 690, 720, 750, 750, 770, 800, 800, 800, 820, 820, 820, 830, 830, 840, 870, 890, 920, 930, 940, 950, 970, 970, 980, 990, 1020, 1060, 1090, 1090, 1100, 1100, 1110, 1110, 1140, 1180, 1200, 1230, 1240, 1270, 1270, 1290, 1300, 1310, 1320, 1330, 1340, 1350, 1360, 1370, 1380, 1470, 1470, 1570, 10000);
var enemy_xposArray = new Array(720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 300, 720);
var enemy_yposArray = new Array(200, 180, 220, 160, 180, 220, 240, 130, 210, 170, 210, 140, 240, 100, 200, 300, 350, 180, 90, 270, 350, 350, 200, 50, 130, 50, 130, 200, 350, 90, 110, 200, 290, 100, 300, 200, 100, 300, 150, 150, 150, 350, 50, 370, 180, 40, 230, 370, 110, 155, 200, 135, 180, 150, 370, 80, 180, 250, 370, 70, 370, 120, 120, 120, 370, 370, 80, 160, 240, 320, 200, 370, 370, 370, 90, 200, 350, 200, 220, 350, 100, 180, 260, 180, 100, 180, 260, 180, 100, 275, -20, 275);
var enemyStat = new Array(jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, missileChopper, missileChopper, demonJet, demonJet, demonJet, demonJet, jetFighterA, jetFighterA, jetFighterA, laserCannon, megaShip, jetFighterA, jetFighterA, laserCannon, laserCannon, missileChopper, jetFighterA, jetFighterA, jetFighterA, jetFighterA, megaShip, laserCannon, megaShip, demonJet, demonJet, demonJet, missileChopper, missileChopper, missileChopper, megaShip, megaShip, jetFighterA, jetFighterA, jetFighterA, laserCannon, demonJet, branchB, demonJet, demonJet, demonJet, branchA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, branchC, missileChopper, missileChopper, missileChopper, branchB, missileChopper, laserCannon, jetFighterA, jetFighterA, jetFighterA, laserCannon, branchC, demonJet, demonJet, demonJet, demonJet, demonJet, branchA, branchC, branchC, missileChopper, megaShip, laserCannon, jetFighterA, jetFighterA, laserCannon, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, laserPlatform, eye, laserPlatform);
} else if (level_num == 8) {
var terrain = Array(48, 49, 50, 51, 52, 53, 54, 55, 52, 53, 56, 57, 58, 59, 60, 61, 62, 42, 42, 42);
var enemyPathArray = new Array(6, 2, 6, 2, 6, 2, 6, 6, 6, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 7, 7, 7, 5, 1, 1, 1, 5, 8, 8, 8, 2, 6, 2, 12, 1, 12, 12, 1, 1, 1, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 7, 8, 1, 5, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 1, 1, 7, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 5, 1, 1, 1, 1, 7, 7, 8, 8, 8, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 12, 5, 1, 1, 1, 12, 1, 1, 1, 12, 1, 1, 12, 1, 1, 12, 12, 1, 1, 1, 12, 1, 1, 12, 12, 7, 8, 1, 1, 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15);
var enemyCreationArray = new Array(20, 20, 20, 20, 30, 30, 30, 40, 40, 40, 40, 100, 120, 130, 150, 150, 150, 170, 190, 190, 220, 230, 230, 240, 260, 290, 300, 310, 330, 350, 360, 360, 360, 360, 410, 410, 410, 440, 450, 480, 560, 580, 580, 580, 580, 600, 610, 620, 640, 640, 670, 680, 690, 690, 740, 850, 850, 850, 850, 860, 860, 860, 860, 870, 870, 870, 870, 880, 880, 880, 880, 890, 890, 890, 890, 890, 970, 970, 970, 1000, 1030, 1030, 1100, 1100, 1100, 1140, 1150, 1160, 1160, 1170, 1170, 1180, 1180, 1190, 1210, 1245, 1290, 1300, 1320, 1330, 1340, 1350, 1360, 1370, 1400, 1430, 1450, 1470, 1470, 1490, 1510, 1510, 1510, 1560, 1560, 1570, 1580, 1590, 1600, 1610, 1620, 1620, 1650, 1670, 1690, 1700, 1720, 1730, 1740, 1750, 1750, 1760, 1780, 1830, 1890, 1890, 1910, 1910, 1920, 1950, 1970, 2000, 2010, 2010, 2040, 2050, 2050, 2050, 2060, 2135, 2285, 2300, 2320, 2340, 2340, 2370, 2370, 2410, 2410, 2430, 2430, 2430, 2550, 2550, 2550, 2550, 2550, 2550, 2550, 2550, 2550, 2550, 10000);
var enemy_xposArray = new Array(720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 740, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 740, 720, 760, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 720, 729, 962.5, 842.7, 1205.7, 1205.7, 732.8, 858.8, 1056.8, 838, 914.5);
var enemy_yposArray = new Array(100, 150, 200, 250, 125, 175, 225, 100, 150, 200, 250, 100, 160, 170, 50, 75, 100, 75, 65, 85, 40, 40, 80, 120, 160, 170, 60, 170, 100, 160, 70, 90, 110, 170, 50, 100, 150, 120, 120, 45, 45, 120, 100, 130, 160, 190, 90, 130, 70, 320, 180, 60, 200, 350, 250, 170, 200, 230, 260, 170, 200, 230, 260, 170, 200, 230, 260, 170, 200, 230, 260, 170, 200, 230, 260, 250, 120, 240, 355, 120, 80, 140, 30, 60, 90, 40, 40, 40, 100, 100, 220, 100, 220, 220, 320, 120, 100, 180, 250, 250, 250, 210, 260, 310, 180, 300, 77, 77, 220, 77, 240, 270, 300, 80, 180, 130, 230, 310, 290, 290, 290, 62, 62, 69, 69, 200, 62, 220, 250, 280, 200, 69, 200, 100, 100, 227, 42, 120, 42, 100, 190, 180, 140, 220, 140, 100, 180, 140, 140, 400, 80, 180, 60, 130, 230, 50, 270, 80, 180, 100, 130, 160, -28.6, -98, -250.3, -174.6, -21.1, -74.6, -121.5, -121.5, 4.3, 4.3);
var enemyStat = new Array(demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, gestapo, missileCannon, groundCannonA, demonJet, demonJet, demonJet, jetFighterA, demonJet, demonJet, jetFighterA, jetFighterA, jetFighterA, jetFighterA, missileCannon, groundCannonA, gestapo, groundCannonA, harrier, missileCannon, jetFighterA, jetFighterA, jetFighterA, groundCannonA, demonJet, demonJet, demonJet, troopZeppelin, gestapo, megaShip, megaShip, troopZeppelin, demonJet, demonJet, demonJet, jetFighterA, jetFighterA, jetFighterA, harrier, groundCannonA, harrier, harrier, gestapo, missileCannon, wallB, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, demonJet, wallC, troopZeppelin, harrier, missileCannon, gestapo, megaShip, megaShip, demonJet, demonJet, demonJet, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, jetFighterA, groundCannonA, gestapo, demonJet, demonJet, demonJet, demonJet, demonJet, jetFighterA, jetFighterA, jetFighterA, gestapo, megaShip, groundCannonA, groundCannonA, troopZeppelin, groundCannonA, jetFighterA, jetFighterA, jetFighterA, demonJet, demonJet, demonJet, demonJet, demonJet, jetFighterA, jetFighterA, jetFighterA, missileCannon, missileCannon, groundCannonA, groundCannonA, gestapo, missileCannon, demonJet, demonJet, demonJet, harrier, groundCannonA, harrier, troopZeppelin, gestapo, missileCannon, groundCannonA, harrier, missileCannon, megaShip, megaShip, harrier, megaShip, gestapo, harrier, jetFighterA, jetFighterA, harrier, harrier, flag, gestapo, gestapo, harrier, gestapo, megaShip, harrier, harrier, demonJet, demonJet, demonJet, demonJet, demonJet, ironHit, ironBody, ironTurret, ironLaser, ironLaser2, ironMissile, ironGun, ironGun, ironBomb, ironBomb2);
} else if ((level_num = 9)) {
var terrain = Array(46, 63, 64, 64);
var enemyPathArray = new Array(18, 17, 17, 17);
var enemyCreationArray = new Array(150, 150, 150, 150, 100000);
var enemy_xposArray = new Array(718, 885, 799, 837);
var enemy_yposArray = new Array(242, 350, 212, 62);
var enemyStat = new Array(tankCannon, tankBody, ironGun, ironGun);
}
var enemy_num = 26;
var end_screen = terrain.length;
onEnterFrame = function () {
if (level_complete) {
level_end();
}
if (!level_complete) {
createHero();
moveLand();
enter_game();
if (playable_game) {
dead_hero();
positionCannon();
moveEnemy();
enemyShoots();
hitEnemy();
shotHero();
shotEnemy();
detectKeys();
bar_manager();
create_enemy();
cooldownManager();
moveProjectiles();
hitGround();
if (finalBoss == 1) {
missileTrail(enemyArray[0]._x, enemyArray[0]._y, enemyArray[0].cooldown);
}
}
}
};
attachMovie("fade_in", "fade", 20000, {_x:0, _y:0});
var shipGlow = (new flash.filters.GlowFilter(16711680, 60, 20, 20, 1.5, 1, true, false));
var shieldGlow = (new flash.filters.GlowFilter(10428376, 60, 20, 20, 2, 1, true, false));
var enemyGlow = (new flash.filters.GlowFilter(15269768, 60, 20, 20, 4, 1, true, false));
attachMovie("status_box", "status", 5100, {_x:-6, _y:412});
var horizonArray = Array();
create_terrain();
var hitlerPhase2 = false;
var finalBoss = 0;
var radian_hold = 0;
var hero_dead = false;
var end_counter2 = 0;
var end_counter = 0;
Frame 5
function enter_store() {
if (store_cooldown > 0) {
store_cooldown--;
}
}
function moveCursor() {
if (store_cooldown == 0) {
if (cursor_moving == 0) {
if (Key.isDown(39) && (cursor_pos < 4)) {
cursor._x = cursor._x + 197.1;
cursor_pos = cursor_pos + 2;
cursor_moving = 5;
cursor_selection = selectionArray[cursor_pos - 1];
}
if (Key.isDown(37) && (cursor_pos > 2)) {
cursor._x = cursor._x - 197.1;
cursor_pos = cursor_pos - 2;
cursor_moving = 5;
cursor_selection = selectionArray[cursor_pos - 1];
}
if ((Key.isDown(40) && (cursor_pos < 5)) && (cursor._y < 200)) {
cursor._y = cursor._y + 206.8;
cursor_pos = cursor_pos + 1;
cursor_moving = 5;
cursor_selection = selectionArray[cursor_pos - 1];
}
if ((Key.isDown(38) && (cursor_pos < 5)) && (cursor._y > 200)) {
cursor._y = cursor._y - 206.8;
cursor_pos = cursor_pos - 1;
cursor_moving = 5;
cursor_selection = selectionArray[cursor_pos - 1];
}
if (Key.isDown(32)) {
store_cooldown = 10;
if ((cursor_pos == 1) && (cash >= 5000)) {
selection_snd.start(0, 0);
cash = cash - 5000;
missile_stock = missile_stock + 5;
} else if ((cursor_pos == 3) && (cash >= bomb_cost)) {
selection_snd.start(0, 0);
cash = cash - bomb_cost;
bomb_stock = bomb_stock + 10;
} else if (((cursor_pos == 2) && (cash >= 25000)) && (!gunUpgradeB)) {
selection_snd.start(0, 0);
cash = cash - 25000;
gunUpgradeB = true;
machgunPower = machgunPower + 0.5;
} else if (((cursor_pos == 4) && (cash >= 25000)) && (!gunUpgradeA)) {
selection_snd.start(0, 0);
cash = cash - 25000;
gunUpgradeA = true;
machgunPower = machgunPower + 0.5;
}
if (cursor_pos == 5) {
selection_snd.start(0, 0);
gotoAndStop (3);
}
}
} else {
cursor_moving--;
}
}
}
function upgradeUpdater() {
if (gunUpgradeA) {
GUA.gotoAndStop(2);
} else {
GUA.gotoAndStop(1);
}
if (gunUpgradeB) {
GUB.gotoAndStop(2);
} else {
GUB.gotoAndStop(1);
}
engineBox.gotoAndStop(engine_level);
machgunBox.gotoAndStop(machgun_level);
shieldBox.gotoAndStop(shield_level);
radarBox.gotoAndStop(radar_level);
missileBox.gotoAndStop(missileUpgrade_level);
bombBox.gotoAndStop(bombUpgrade_level);
laserBox.gotoAndStop(laserUpgrade_level);
specialBox.gotoAndStop(special_level);
}
var cursor_pos = 1;
var cursor_moving = 0;
var store_cooldown = 10;
var selectionArray = Array("Buy Missiles", "Buy Bombs", "Exit");
var cursor_selection = selectionArray[0];
onEnterFrame = function () {
moveCursor();
upgradeUpdater();
enter_store();
};
Frame 6
play();
Frame 98
stop();
Symbol 25 MovieClip [punchinelloExplode] Frame 72
stop();
Symbol 38 MovieClip Frame 1
onEnterFrame = function () {
jet._yscale = _root.jet_intensity + 20;
};
Symbol 44 MovieClip [missileTrail] Frame 15
removeMovieClip(this);
Symbol 47 MovieClip Frame 1
onEnterFrame = function () {
jet._yscale = _root.jet_intensity + 20;
};
Symbol 50 MovieClip Frame 1
onEnterFrame = function () {
jet._yscale = _root.jet_intensity + 20;
};
Symbol 59 MovieClip [training_background] Frame 1
function move_bg() {
if (_root.creation_timer >= 2030) {
return(undefined);
}
this._x = this._x - 1;
}
stop();
this.onEnterFrame = function () {
if (!_root.player_pause) {
move_bg();
}
};
Symbol 124 MovieClip [targetB] Frame 1
#initclip 56
Object.registerClass("targetB", Enemy);
#endinitclip
Symbol 126 MovieClip [targetF] Frame 1
#initclip 3
Object.registerClass("targetF", Enemy);
#endinitclip
Symbol 128 MovieClip [targetC] Frame 1
#initclip 4
Object.registerClass("targetC", Enemy);
#endinitclip
Symbol 130 MovieClip [targetE] Frame 1
#initclip 5
Object.registerClass("targetE", Enemy);
#endinitclip
Symbol 132 MovieClip [targetD] Frame 1
#initclip 6
Object.registerClass("targetD", Enemy);
#endinitclip
Symbol 145 MovieClip [zeppelinExplode] Frame 20
stop();
Symbol 147 MovieClip [troopZeppelin] Frame 1
#initclip 7
Object.registerClass("troopZeppelin", Enemy);
#endinitclip
Symbol 152 MovieClip [groundCannonExplode] Frame 9
stop();
Symbol 159 MovieClip [groundCannonA] Frame 1
#initclip 8
Object.registerClass("groundCannonA", Enemy);
#endinitclip
stop();
Symbol 165 MovieClip [level1bossCannon] Frame 1
#initclip 9
Object.registerClass("level1bossCannon", Enemy);
#endinitclip
Symbol 167 MovieClip [railCannonA] Frame 1
#initclip 10
Object.registerClass("railCannonA", Enemy);
#endinitclip
Symbol 170 MovieClip [omegaBomberExplode] Frame 78
stop();
Symbol 172 MovieClip [omegaBomber] Frame 1
#initclip 11
Object.registerClass("omegaBomber", Enemy);
#endinitclip
stop();
Symbol 177 MovieClip [missileCannon] Frame 1
#initclip 12
Object.registerClass("missileCannon", Enemy);
#endinitclip
stop();
Symbol 202 MovieClip [nukeSub] Frame 1
#initclip 13
Object.registerClass("nukeSub", Enemy);
#endinitclip
Symbol 202 MovieClip [nukeSub] Frame 40
stop();
Symbol 207 MovieClip [missileChopperExplode] Frame 12
stop();
Symbol 209 MovieClip [missileChopper] Frame 1
#initclip 14
Object.registerClass("missileChopper", Enemy);
#endinitclip
stop();
Symbol 214 MovieClip [carrierBodyExplode] Frame 89
stop();
Symbol 227 MovieClip [carrierBody] Frame 1
#initclip 15
Object.registerClass("carrierBody", Enemy);
#endinitclip
Symbol 242 MovieClip [sub] Frame 1
#initclip 16
Object.registerClass("sub", Enemy);
#endinitclip
Symbol 242 MovieClip [sub] Frame 40
stop();
Symbol 244 MovieClip [backShip] Frame 1
#initclip 17
Object.registerClass("backShip", Enemy);
#endinitclip
stop();
Symbol 246 MovieClip [megaShip] Frame 1
#initclip 18
Object.registerClass("megaShip", Enemy);
#endinitclip
stop();
Symbol 248 MovieClip [branchAExplode] Frame 9
stop();
Symbol 250 MovieClip [branchA] Frame 1
#initclip 19
Object.registerClass("branchA", Enemy);
#endinitclip
stop();
Symbol 253 MovieClip [branchBExplode] Frame 12
stop();
Symbol 255 MovieClip [branchB] Frame 1
#initclip 20
Object.registerClass("branchB", Enemy);
#endinitclip
stop();
Symbol 261 MovieClip [branchCExplode] Frame 19
stop();
Symbol 263 MovieClip [branchC] Frame 1
#initclip 21
Object.registerClass("branchC", Enemy);
#endinitclip
stop();
Symbol 266 MovieClip [eyeExplode] Frame 51
stop();
Symbol 268 MovieClip [eye] Frame 1
#initclip 22
Object.registerClass("eye", Enemy);
#endinitclip
Symbol 276 MovieClip [laserPlatform] Frame 1
#initclip 23
Object.registerClass("laserPlatform", Enemy);
#endinitclip
stop();
stop();
Symbol 283 MovieClip [ironBodyExplode] Frame 63
stop();
Symbol 285 MovieClip [ironBody] Frame 1
#initclip 24
Object.registerClass("ironBody", Enemy);
#endinitclip
stop();
Symbol 293 MovieClip [ironTurret] Frame 1
#initclip 25
Object.registerClass("ironTurret", Enemy);
#endinitclip
stop();
Symbol 299 MovieClip [flagExplode] Frame 8
stop();
Symbol 303 MovieClip [cannonShipExplode] Frame 30
stop();
Symbol 317 MovieClip [cannonShip] Frame 1
#initclip 26
Object.registerClass("cannonShip", Enemy);
#endinitclip
stop();
Symbol 319 MovieClip [harrier] Frame 1
#initclip 27
Object.registerClass("harrier", Enemy);
#endinitclip
stop();
Symbol 321 MovieClip [paratroop] Frame 1
#initclip 28
Object.registerClass("paratroop", Enemy);
#endinitclip
stop();
Symbol 326 MovieClip [tankBodyExplode] Frame 58
stop();
Symbol 328 MovieClip [tankBody] Frame 1
#initclip 29
Object.registerClass("tankBody", Enemy);
#endinitclip
stop();
Symbol 330 MovieClip [tankCannon] Frame 1
#initclip 30
Object.registerClass("tankCannon", Enemy);
#endinitclip
stop();
Symbol 334 MovieClip [hitlerMissileExplode] Frame 70
stop();
Symbol 336 MovieClip [hitlerMissile] Frame 1
#initclip 31
Object.registerClass("hitlerMissile", Enemy);
#endinitclip
stop();
Symbol 358 MovieClip [hitlerGhostExplode] Frame 57
stop();
Symbol 374 MovieClip [hitlerGhost] Frame 1
#initclip 32
Object.registerClass("hitlerGhost", Enemy);
#endinitclip
Symbol 376 MovieClip [flagssssss] Frame 1
stop();
Symbol 378 MovieClip [bomber] Frame 1
#initclip 33
Object.registerClass("bomber", Enemy);
#endinitclip
stop();
Symbol 401 MovieClip [demonJet] Frame 1
#initclip 34
Object.registerClass("demonJet", Enemy);
#endinitclip
stop();
Symbol 401 MovieClip [demonJet] Frame 41
stop();
Symbol 401 MovieClip [demonJet] Frame 81
stop();
Symbol 410 MovieClip [jetExplode] Frame 10
stop();
Symbol 418 MovieClip [gyroExplode] Frame 8
stop();
Symbol 440 MovieClip [gyroA] Frame 1
#initclip 35
Object.registerClass("gyroA", Enemy);
#endinitclip
stop();
Symbol 440 MovieClip [gyroA] Frame 43
stop();
Symbol 440 MovieClip [gyroA] Frame 83
stop();
Symbol 442 MovieClip [wallCexplode] Frame 14
stop();
Symbol 443 MovieClip [wallC] Frame 1
#initclip 36
Object.registerClass("wallC", Enemy);
#endinitclip
Symbol 445 MovieClip [wallBexplode] Frame 14
stop();
Symbol 446 MovieClip [wallB] Frame 1
#initclip 37
Object.registerClass("wallB", Enemy);
#endinitclip
Symbol 448 MovieClip [wallAexplode] Frame 14
stop();
Symbol 450 MovieClip [wallA] Frame 1
#initclip 38
Object.registerClass("wallA", Enemy);
#endinitclip
Symbol 464 MovieClip [level1boss] Frame 1
#initclip 39
Object.registerClass("level1boss", Enemy);
#endinitclip
stop();
Symbol 473 MovieClip [targetExplode2] Frame 9
stop();
Symbol 482 MovieClip [targetExplode] Frame 9
stop();
Symbol 483 MovieClip [aryanBaronExplode] Frame 12
stop();
Symbol 488 MovieClip [aryanBaron] Frame 1
#initclip 40
Object.registerClass("aryanBaron", Enemy);
#endinitclip
stop();
Symbol 490 MovieClip [targetA] Frame 1
#initclip 41
Object.registerClass("targetA", Enemy);
#endinitclip
Symbol 493 MovieClip [heroExplode] Frame 28
stop();
Symbol 500 MovieClip [emptyEnemy] Frame 1
#initclip 42
Object.registerClass("emptyEnemy", Enemy);
#endinitclip
Symbol 510 MovieClip [ironLaserBlast] Frame 25
removeMovieClip(this);
Symbol 511 MovieClip [eyeLaser] Frame 27
removeMovieClip(this);
Symbol 517 MovieClip [hitlerLaser] Frame 42
removeMovieClip(this);
Symbol 527 MovieClip [hitlerMouthLaser] Frame 28
removeMovieClip(this);
Symbol 548 MovieClip Frame 1
onEnterFrame = function () {
jet._yscale = _root.jet_intensity + 20;
};
Symbol 581 MovieClip [laser_trail] Frame 12
removeMovieClip(this);
Symbol 583 MovieClip [laser] Frame 1
stop();
Symbol 589 MovieClip [explosion_2] Frame 11
stop();
Symbol 590 MovieClip [explosion] Frame 11
stop();
Symbol 593 MovieClip [last_level] Frame 1
stop();
Symbol 596 MovieClip [level_icon] Frame 1
stop();
Symbol 605 MovieClip [carrierTowerExplode] Frame 12
stop();
Symbol 607 MovieClip [carrierTower] Frame 1
#initclip 43
Object.registerClass("carrierTower", Enemy);
#endinitclip
Symbol 615 MovieClip [carrierAAgun] Frame 1
#initclip 44
Object.registerClass("carrierAAgun", Enemy);
#endinitclip
Symbol 618 MovieClip [punchinello] Frame 1
#initclip 45
Object.registerClass("punchinello", Enemy);
#endinitclip
stop();
Symbol 619 MovieClip [punchinello2] Frame 1
#initclip 46
Object.registerClass("punchinello2", Enemy);
#endinitclip
Symbol 619 MovieClip [punchinello2] Frame 159
gotoAndPlay (41);
Symbol 622 MovieClip [ironLaser2] Frame 1
#initclip 47
Object.registerClass("ironLaser2", Enemy);
#endinitclip
Symbol 624 MovieClip [ironLaser] Frame 1
#initclip 48
Object.registerClass("ironLaser", Enemy);
#endinitclip
Symbol 626 MovieClip [ironMissilesssss] Frame 1
#initclip 49
Object.registerClass("ironMissilesssss", Enemy);
#endinitclip
Symbol 629 MovieClip [ironHit] Frame 1
#initclip 50
Object.registerClass("ironHit", Enemy);
#endinitclip
Symbol 636 MovieClip [ironGun] Frame 1
#initclip 51
Object.registerClass("ironGun", Enemy);
#endinitclip
Symbol 638 MovieClip [gestapo] Frame 1
#initclip 52
Object.registerClass("gestapo", Enemy);
#endinitclip
stop();
Symbol 645 MovieClip [laserCannon] Frame 1
#initclip 53
Object.registerClass("laserCannon", Enemy);
#endinitclip
stop();
Symbol 669 MovieClip [jetFighterA] Frame 1
#initclip 54
Object.registerClass("jetFighterA", Enemy);
#endinitclip
stop();
Symbol 669 MovieClip [jetFighterA] Frame 41
stop();
Symbol 669 MovieClip [jetFighterA] Frame 81
stop();
Symbol 671 MovieClip [zeppelin] Frame 1
#initclip 55
Object.registerClass("zeppelin", Enemy);
#endinitclip
Symbol 738 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 739 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var gotoAndPlay, gotoAndStop, _y, _x, _rotation;
function Enemy () {
super();
}
function moveEnemyArcUp(ENEMY) {
if (prog == 54) {
gotoAndPlay("turn_up");
} else if (prog == 90) {
gotoAndStop("right");
}
_y = _y - arcMoveY[prog];
_x = _x - ((arcMoveX[prog] + scrollSpeed) * ENEMY.speed);
prog = prog + ENEMY.speed;
if (prog >= arcMoveY.length) {
_x = -500;
}
}
function moveEnemyArcDown(ENEMY) {
if (prog == 54) {
gotoAndPlay("turn_down");
} else if (prog == 90) {
gotoAndStop("right");
}
_y = _y + arcMoveY[prog];
_x = _x - ((arcMoveX[prog] + scrollSpeed) * ENEMY.speed);
prog = prog + ENEMY.speed;
if (prog >= arcMoveY.length) {
_x = -500;
}
}
function moveEnemySlightDown(ENEMY) {
ENEMY.gotoAndPlay("down");
ENEMY._y = ENEMY._y + prog;
ENEMY._x = ENEMY._x - (scrollSpeed * ENEMY.speed);
prog = prog + 0.05;
}
function moveEnemySlightUp(ENEMY) {
gotoAndPlay("up");
_y = _y - prog;
_x = _x - (scrollSpeed * ENEMY.speed);
ENEMY.prog = ENEMY.prog + 0.05;
}
function moveEnemyFloat(ENEMY) {
ENEMY._y = ENEMY._y - floatMoveY[prog];
ENEMY._x = ENEMY._x - (ENEMY.speed * scrollSpeed);
ENEMY.prog = ENEMY.prog + ENEMY.speed;
if (ENEMY.prog >= floatMoveY.length) {
ENEMY.prog = 0;
}
}
function moveEnemyStraight(ENEMY) {
ENEMY._x = ENEMY._x - (ENEMY.speed * _root.scrollSpeed);
}
function moveEnemyRise(ENEMY) {
ENEMY._x = ENEMY._x - (ENEMY.speed + _root.scrollSpeed);
ENEMY._y = ENEMY._y - (2 * ENEMY.speed);
}
function moveEnemyDrop(ENEMY) {
ENEMY._x = ENEMY._x - (ENEMY.speed + scrollSpeed);
ENEMY._y = ENEMY._y + (2 * ENEMY.speed);
}
function moveBoss1() {
_x = _x - boss1X[prog];
prog = prog + 1;
if (prog >= boss1X.length) {
prog = 0;
}
if (prog == 118) {
gotoAndPlay("reverse");
} else if (prog == 238) {
gotoAndPlay("forward");
}
}
function moveAryan() {
_x = _x - aryanX[prog];
prog = prog + 1;
if (prog >= aryanX.length) {
prog = 0;
}
if (prog == 66) {
gotoAndStop("turnLeft");
} else if (prog == 77) {
gotoAndStop("turnRight");
} else if (prog == 83) {
gotoAndStop("right");
} else if (prog == 141) {
gotoAndStop("turnRight");
} else if (prog == 0) {
gotoAndStop("turnLeft");
} else if (prog == 7) {
gotoAndStop("left");
}
}
function moveOmega() {
_x = _x + boss2X[prog];
_y = _y + boss2Y[prog];
prog = prog + 1;
if (prog >= boss2X.length) {
prog = 37;
}
}
function moveSeek() {
var _local3 = _y;
var _local4 = _x;
_x = _x - 2;
if (_local3 > _root.hero._y) {
_y = _y - 4;
} else if (_local3 < _root.hero._y) {
_y = _y + 4;
}
}
function movePunch() {
_y = _y - boss6Y[prog];
if (prog <= 40) {
_x = _x - boss6X[prog];
}
prog = prog + 1;
if (prog >= boss6Y.length) {
prog = 70;
}
}
function moveHitlerMissile() {
_y = _y - boss6Y[prog];
if (prog <= 40) {
_x = _x - boss6X[prog];
}
prog = prog + 1;
if (prog >= boss6Y.length) {
prog = 70;
}
}
function moveEye() {
if (prog == 30) {
direct = random(2);
prog = 0;
} else {
prog++;
}
if ((direct = 0)) {
_rotation = _rotation + 2;
} else {
_rotation = _rotation - 2;
}
var _local2 = _y;
if (_local2 < 206) {
_y = _y + 5;
}
}
function moveHawk() {
_x = _x - boss8X[prog2];
_y = _y + boss8Y[prog];
prog++;
prog2++;
if (prog >= boss8Y.length) {
prog = 375;
}
if (prog2 >= boss8X.length) {
prog2 = 283;
}
}
function moveMissileSeek(ENEMY) {
var _local8 = _root.hero._x - ENEMY._x;
var _local7 = _root.hero._y - ENEMY._y;
var _local9 = _local8 / _local7;
var _local5 = 0;
var _local4 = Math.atan(_local9);
radian_hold = _local4;
if ((_root.hero._x < ENEMY._x) && (_root.hero._y < ENEMY._y)) {
_local4 = _local4 * -1;
}
if ((_root.hero._x > ENEMY._x) && (_root.hero._y < ENEMY._y)) {
_local4 = _local4 * -1;
}
if ((_root.hero._x > ENEMY._x) && (_root.hero._y >= ENEMY._y)) {
_local5 = 180 - (_local4 * 141.37);
}
if ((_root.hero._x < ENEMY._x) && (_root.hero._y >= ENEMY._y)) {
_local5 = -180 - (_local4 * 141.37);
}
ENEMY._rotation = (_local4 * 57.2957795130823) + _local5;
var _local6 = {x:ENEMY.shell.point._x, y:ENEMY.shell.point._y};
ENEMY.shell.point.localToGlobal(_local6);
slopex = ENEMY._x - _local6.x;
slopey = ENEMY._y - _local6.y;
if (ENEMY.shell.point._y > -3) {
ENEMY.shell.point._y = ENEMY.shell.point._y - 0.5;
}
ENEMY._x = ENEMY._x - slopex;
_y = _y - 10;
}
function moveTank() {
if (prog < 250) {
_x = _x - 1;
prog++;
}
}
function moveTankCannon() {
var _local3 = _y;
var _local4 = _x;
if ((_local3 > _root.hero._y) && (_local3 > 66)) {
_y = _y - 3;
} else if ((_local3 < _root.hero._y) && (_local3 < 350)) {
_y = _y + 3;
}
if (prog < 250) {
_x = _x - 1;
prog++;
}
}
function moveHitlerGhost() {
_y = _y - hitlerY[prog];
_x = _x - hitlerX[prog];
prog++;
}
var prog = 0;
var prog2 = 0;
var recover = 0;
var hitlerX = Array(0.4, 1.3, 2.3, 3.4, 4.8, 6.4, 8.2, 10.4, 12.9, 15.7, 18.9, 22.2, 25.4, 28.1, 29.4, 29.4, 27.9, 24.8, 20.8, 16.9, 13.1, 10.2, 7.9, 5.9, 4.6, 3.4, 2.6, 1.9, 1.4, 0.8, 0.5, 0.2);
var hitlerY = Array(0, 0.1, 0.1, 0.2, 0.1, 0.4, 0.6, 0.9, 1.3, 2, 3.3, 4.7, 6.9, 9.9, 13.2, 16.9, 20.2, 22.6, 23.2, 22.7, 20.9, 18.1, 16.3, 13.8, 11.5, 9.3, 7.5, 5.6, 4.2, 2.8, 1.6, 0.5);
var boss2Y = Array(0, 0, 0, 0, 0, 0, 0, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -2, -2, -2, -4, -4, -4, -4, -4, -6.3, -6.2, -6.3, -6.1, -6.1, -5.9, -5.7, -5.6, -5.4, -5.2, -5, -4.9, -4.5, -4.5, -4.2, -4, -3.9, -3.7, -3.6, -3.3, -3.3, -2.8, -2.7, -2.7, -2.5, -2.5, -2.3, -2.2, -2.2, -2.1, -1.9, -1.9, -1.7, -1.6, -1.6, -1.5, -1.3, -1.3, -1.2, -1.1, -1.1, -0.9, -0.9, -0.8, -0.7, -0.6, -0.5, -0.5, -0.4, -0.3, -0.3, -0.2, -0.2, 0, 0, 0.2, 0.2, 0.3, 0.3, 0.4, 0.5, 0.5, 0.6, 0.7, 0.8, 0.9, 0.9, 1.1, 1.1, 1.2, 1.3, 1.3, 1.5, 1.6, 1.6, 1.7, 1.9, 1.9, 2.1, 2.2, 2.2, 2.3, 2.5, 2.5, 2.7, 2.7, 2.8, 3.3, 3.3, 3.6, 3.7, 3.9, 4, 4.2, 4.5, 4.5, 4.9, 5, 5.2, 5.4, 5.6, 5.7, 5.9, 6.1, 6.1, 6.3, 6.2, 6.3, 6.3, 6.2, 6.3, 6.1, 6.1, 5.9, 5.7, 5.6, 5.4, 5.2, 5, 4.9, 4.5, 4.5, 4.2, 4, 3.9, 3.7, 3.6, 3.3, 3.3, 2.8, 2.7, 2.7, 2.5, 2.5, 2.3, 2.2, 2.2, 2.1, 1.9, 1.9, 1.7, 1.6, 1.6, 1.5, 1.3, 1.3, 1.2, 1.1, 1.1, 0.9, 0.9, 0.8, 0.7, 0.6, 0.5, 0.5, 0.4, 0.3, 0.3, 0.2, 0.2, 0, 0, -0.2, -0.2, -0.3, -0.3, -0.4, -0.5, -0.5, -0.6, -0.7, -0.8, -0.9, -0.9, -1.1, -1.1, -1.2, -1.3, -1.3, -1.5, -1.6, -1.6, -1.7, -1.9, -1.9, -2.1, -2.2, -2.2, -2.3, -2.5, -2.5, -2.7, -2.7, -2.8, -3.3, -3.3, -3.6, -3.7, -3.9, -4, -4.2, -4.5, -4.5, -4.9, -5, -5.2, -5.4, -5.6, -5.7, -5.9, -6.1, -6.1, -6.3, -6.2, -6.3);
var boss2X = Array(-9, -9, -9, -9, -9, -9, -9, -9, -9, -7, -7, -7, -7, -7, -7, -7, -7, -5, -5, -5, -5, -5, -5, -2.5, -2.5, -2.5, -2.5, -1.5, -1.5, -1.5, -1, -1, -1, -0.5, -0.5, -0.2, -0.2, -0.1, -0.7, -1, -1.3, -1.9, -2.3, -2.6, -3, -3.3, -3.7, -3.9, -4.1, -4.4, -4.5, -4.7, -4.9, -5, -5, -5.2, -5.3, -5.4, -4.8, -4.9, -5, -5, -5.1, -5.1, -5.2, -5.2, -5.2, -5.3, -5.4, -5.3, -5.4, -5.4, -5.4, -5.5, -5.5, -5.5, -5.5, -5.5, -5.6, -5.5, -5.6, -5.6, -5.5, -5.7, -5.5, -5.6, -5.6, -5.6, -5.6, -5.6, -5.6, -5.6, -5.6, -5.6, -5.6, -5.6, -5.6, -5.5, -5.7, -5.5, -5.6, -5.6, -5.5, -5.6, -5.5, -5.5, -5.5, -5.5, -5.5, -5.4, -5.4, -5.4, -5.3, -5.4, -5.3, -5.2, -5.2, -5.2, -5.1, -5.1, -5, -5, -4.9, -4.8, -5.4, -5.3, -5.2, -5, -5, -4.9, -4.7, -4.5, -4.4, -4.1, -3.9, -3.7, -3.3, -3, -2.6, -2.3, -1.9, -1.3, -1, -0.7, -0.1, 0.1, 0.7, 1, 1.3, 1.9, 2.3, 2.6, 3, 3.3, 3.7, 3.9, 4.1, 4.4, 4.5, 4.7, 4.9, 5, 5, 5.2, 5.3, 5.4, 4.8, 4.9, 5, 5, 5.1, 5.1, 5.2, 5.2, 5.2, 5.3, 5.4, 5.3, 5.4, 5.4, 5.4, 5.5, 5.5, 5.5, 5.5, 5.5, 5.6, 5.5, 5.6, 5.6, 5.5, 5.7, 5.5, 5.6, 5.6, 5.6, 5.6, 5.6, 5.6, 5.6, 5.6, 5.6, 5.6, 5.6, 5.6, 5.5, 5.7, 5.5, 5.6, 5.6, 5.5, 5.6, 5.5, 5.5, 5.5, 5.5, 5.5, 5.4, 5.4, 5.4, 5.3, 5.4, 5.3, 5.2, 5.2, 5.2, 5.1, 5.1, 5, 5, 4.9, 4.8, 5.4, 5.3, 5.2, 5, 5, 4.9, 4.7, 4.5, 4.4, 4.1, 3.9, 3.7, 3.3, 3, 2.6, 2.3, 1.9, 1.3, 1, 0.7, 0.1);
var aryanX = Array(4.1, 4.2, 4.5, 4.5, 4.7, 5, 5.1, 5.3, 5.6, 5.8, 6.2, 6.4, 6.8, 7.1, 7.5, 7.9, 8.5, 9, 9.6, 10.2, 11, 12, 12.8, 14, 15.1, 16.5, 17.8, 19.2, 20.5, 21.7, 21.9, 22.4, 22.6, 22.8, 22.9, 22.9, 22.8, 22.6, 22.4, 21.9, 21.7, 20.5, 19.2, 17.8, 16.5, 15.1, 14, 12.8, 12, 11, 10.2, 9.6, 9, 8.5, 7.9, 7.5, 7.1, 6.8, 6.4, 6.2, 5.8, 5.6, 5.3, 5.1, 5, 4.7, 4.5, 4.5, 4.2, 4.1, 0, 0, 0, 0, 0, -4.1, -4.2, -4.5, -4.5, -4.7, -5, -5.1, -5.3, -5.6, -5.8, -6.2, -6.4, -6.8, -7.1, -7.5, -7.9, -8.5, -9, -9.6, -10.2, -11, -12, -12.8, -14, -15.1, -16.5, -17.8, -19.2, -20.5, -21.7, -21.9, -22.4, -22.6, -22.8, -22.9, -22.9, -22.8, -22.6, -22.4, -21.9, -21.7, -20.5, -19.2, -17.8, -16.5, -15.1, -14, -12.8, -12, -11, -10.2, -9.6, -9, -8.5, -7.9, -7.5, -7.1, -6.8, -6.4, -6.2, -5.8, -5.6, -5.3, -5.1, -5, -4.7, -4.5, -4.5, -4.2, -4.1, 0, 0, 0, 0, 0);
var boss1X = Array(0, 0, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 20, 20, 20, 20, 20, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 0, 0, 0, 0, 0, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -10, -10, -10, -10, -10, -10, -10, -10, -10, -10, -20, -20, -20, -20, -20, -10, -10, -10, -10, -10, -10, -10, -10, -10, -10, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -2.5, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, -1.25, 0, 0, 0);
var floatMoveY = Array(0, 0.25, 0.25, 0.25, 0.5, 0.5, 0.5, 0.5, 0.5, 0.75, 0.75, 0.75, 0.75, 1, 1, 1, 1, 1, 1.25, 1.25, 1.25, 1.25, 1.5, 1.5, 1.5, 1.5, 1.5, 2, 2, 2, 1.5, 1.5, 1.5, 1.5, 1.5, 1.25, 1.25, 1.25, 1.25, 1, 1, 1, 1, 1, 0.75, 0.75, 0.75, 0.75, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0, 0, 0, -0.25, -0.25, -0.25, -0.5, -0.5, -0.5, -0.5, -0.5, -0.75, -0.75, -0.75, -0.75, -1, -1, -1, -1, -1, -1.25, -1.25, -1.25, -1.25, -1.5, -1.5, -1.5, -1.5, -1.5, -2, -2, -2, -1.5, -1.5, -1.5, -1.5, -1.5, -1.25, -1.25, -1.25, -1.25, -1, -1, -1, -1, -1, -0.75, -0.75, -0.75, -0.75, -0.5, -0.5, -0.5, -0.5, -0.5, -0.25, -0.25, -0.25, -0.25, 0, 0);
var arcMoveY = Array(0, 0, 0, 0, 0, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.75, 1.75, 1.75, 1.75, 1.75, 1.75, 1.75, 1.75, 1.75, 2, 2, 2, 2, 2, 2, 2.25, 2.25, 2.25, 2.25, 2.25, 2.5, 2.5, 2.5, 2.5, 2.5, 2.75, 2.75, 2.75, 2.75, 2.75, 3, 3, 3, 3, 3, 3, 2.75, 2.75, 2.75, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2, 2, 2, 2, 2, 1.75, 1.75, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1, 1, 1, 1, 1, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var arcMoveX = Array(7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -5, -5, -5, -5, -5, -5, -7, -7, -7, -7, -7, -7, -7, -7, -7, -7, -10, -10, -10, -10, -10, -10, -10, -10, -10, -10, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, -15.5, -15.5, -15.5, -15.5, -15.5, -15.5, -15.5, -15.5, -15.5, -15.5, -15.5, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19, -19);
var boss6X = Array(0, 0.1, 0.3, 0.2, 0.3, 0.5, 0.5, 0.7, 0.8, 0.9, 1, 1.2, 1.4, 1.5, 1.7, 2, 2.3, 2.4, 2.8, 3.2, 3.6, 4, 4.6, 5.4, 6, 7.1, 8.3, 9.7, 11.5, 13.8, 16.1, 18.4, 19.6, 19.7, 18.9, 19.2, 22.6, 22.3, 16.7, 2.5, 0);
var boss6Y = Array(0, -0.1, -0.2, -0.3, -0.4, -0.5, -0.6, -0.8, -0.8, -1, -1.2, -1.2, -1.5, -1.8, -1.9, -2.1, -2.5, -2.7, -3.2, -3.5, -4, -4.5, -5.1, -5.9, -6.7, -7.8, -9.1, -10.9, -12.7, -15.2, -17.8, -20.4, -21.8, -21.8, -20.9, -18.6, -10.5, 4.1, 11.6, 16.5, 15.5, 13.6, 12, 10.7, 9.4, 8.5, 7.5, 6.9, 6, 5.5, 4.9, 4.3, 3.9, 3.6, 3.1, 2.8, 2.4, 2.2, 1.9, 1.6, 1.4, 1.2, 0.9, 0.8, 0.6, 0.4, 0.2, 0.1, 0, 0, -0.1, -0.2, -0.4, -0.6, -0.8, -0.9, -1.2, -1.4, -1.6, -1.9, -2.2, -2.4, -2.8, -3.1, -3.6, -3.9, -4.3, -4.9, -5.5, -6, -6.9, -7.5, -8.5, -9.4, -10.7, -12, -13.6, -15.5, -16.5, -16.5, -15.5, -13.6, -12, -10.7, -9.4, -8.5, -7.5, -6.9, -6, -5.5, -4.9, -4.3, -3.9, -3.6, -3.1, -2.8, -2.4, -2.2, -1.9, -1.6, -1.4, -1.2, -0.9, -0.8, -0.6, -0.4, -0.2, -0.1, 0, 0, 0.1, 0.2, 0.4, 0.6, 0.8, 0.9, 1.2, 1.4, 1.6, 1.9, 2.2, 2.4, 2.8, 3.1, 3.6, 3.9, 4.3, 4.9, 5.5, 6, 6.9, 7.5, 8.5, 9.4, 10.7, 12, 13.6, 15.5, 16.5, 16.5, 15.5, 13.6, 12, 10.7, 9.4, 8.5, 7.5, 6.9, 6, 5.5, 4.9, 4.3, 3.9, 3.6, 3.1, 2.8, 2.4, 2.2, 1.9, 1.6, 1.4, 1.2, 0.9, 0.8, 0.6, 0.4, 0.2, 0.1, 0);
var boss8X = Array(0, 0, 0, 0.2, 0.1, 0.2, 0.1, 0.3, 0.2, 0.3, 0.3, 0.4, 0.4, 0.4, 0.5, 0.4, 0.6, 0.5, 0.6, 0.5, 0.7, 0.7, 0.7, 0.8, 0.8, 0.8, 0.9, 0.9, 0.9, 1, 1, 1.1, 1.1, 1.1, 1.2, 1.3, 1.2, 1.3, 1.4, 1.3, 1.5, 1.4, 1.6, 1.5, 1.7, 1.6, 1.7, 1.8, 1.8, 1.8, 1.9, 2, 2, 2, 2.1, 2.1, 2.3, 2.2, 2.3, 2.4, 2.3, 2.5, 2.5, 2.6, 2.7, 2.6, 2.8, 2.7, 2.9, 3, 2.9, 3.1, 3, 3.2, 3.3, 3.2, 3.3, 3.5, 3.5, 3.5, 3.6, 3.6, 3.8, 3.8, 3.8, 4, 4, 4.1, 4.2, 4.1, 4.3, 4.4, 4.4, 4.5, 4.6, 4.7, 4.6, 4.8, 4.9, 4.9, 5, 5.1, 5.2, 5.1, 5.4, 5.3, 5.5, 5.5, 5.6, 5.7, 5.7, 5.8, 5.9, 5.9, 6, 6.1, 6.1, 6.2, 6.3, 6.4, 6.4, 6.5, 6.6, 6.6, 6.6, 6.7, 6.7, 6.9, 6.8, 7, 6.9, 7, 7.1, 7.1, 7.2, 7.1, 7.2, 7.2, 7.3, 7.3, 7.3, 7.3, 7.4, 7.3, 7.4, 7.3, 7.5, 7.3, 7.4, 7.3, 7.5, 7.3, 7.3, 7.3, 7.3, 7.3, 7.2, 7.2, 7.1, 7.2, 7.1, 7, 7, 7, 7, 6.8, 6.8, 6.7, 6.8, 6.6, 6.6, 6.5, 6.4, 6.5, 6.3, 6.3, 6.1, 6.1, 6.1, 5.9, 5.9, 5.9, 5.7, 5.7, 5.6, 5.5, 5.5, 5.3, 5.2, 5.2, 5.2, 5.1, 4.9, 4.8, 4.8, 4.8, 4.7, 4.5, 4.5, 4.4, 4.3, 4.3, 4.1, 4.1, 4, 4, 3.9, 3.7, 3.8, 3.7, 3.5, 3.5, 3.5, 3.3, 3.3, 3.2, 3.2, 3, 3, 3, 2.9, 2.8, 2.8, 2.6, 2.7, 2.6, 2.5, 2.4, 2.3, 2.4, 2.2, 2.2, 2.2, 2.1, 2, 2, 1.9, 1.9, 1.8, 1.7, 1.8, 1.7, 1.5, 1.6, 1.5, 1.5, 1.4, 1.3, 1.4, 1.2, 1.3, 1.2, 1.2, 1, 1.1, 1, 0.9, 1, 0.9, 0.9, 0.7, 0.8, 0.7, 0.7, 0.6, 0.7, 0.5, 0.6, 0.5, 0.4, 0.5, 0.4, 0.4, 0.3, 0.3, 0.3, 0.2, 0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0, -0.1, -0.1, -0.1, -0.2, -0.3, -0.3, -0.4, -0.4, -0.6, -0.5, -0.7, -0.5, -0.8, -0.8, -1, -1, -1, -1.2, -1.2, -1.3, -1.3, -1.4, -1.6, -1.5, -1.7, -1.8, -1.8, -1.9, -2, -2.1, -2.1, -2.3, -2.3, -2.3, -2.6, -2.6, -2.7, -2.7, -2.8, -3, -3, -3.2, -3.3, -3.2, -3.5, -3.5, -3.7, -3.7, -3.8, -3.9, -4.1, -4.1, -4.2, -4.4, -4.4, -4.6, -4.6, -4.7, -5, -4.9, -5.1, -5.2, -5.3, -5.4, -5.5, -5.6, -5.8, -5.8, -5.9, -6, -6.2, -6.3, -6.4, -6.4, -6.6, -6.6, -6.8, -6.8, -6.9, -7, -7.2, -7.2, -7.3, -7.3, -7.5, -7.6, -7.5, -7.7, -7.8, -7.7, -7.8, -8, -7.9, -8.1, -8, -8, -8.2, -8.1, -8.2, -8.1, -8.2, -8.2, -8.2, -8.2, -8.1, -8.2, -8.2, -8.1, -8.2, -8, -8.1, -8, -7.9, -8, -7.8, -7.9, -7.7, -7.7, -7.6, -7.6, -7.4, -7.4, -7.3, -7.3, -7.2, -7, -7, -6.9, -6.7, -6.8, -6.6, -6.5, -6.1, -6.2, -6.3, -6.1, -6, -5.9, -5.7, -5.8, -5.5, -5.5, -5.4, -5.2, -5.2, -5.1, -4.9, -4.8, -4.8, -4.7, -4.5, -4.5, -4.3, -4.2, -4.1, -4, -4, -3.8, -3.7, -3.7, -3.6, -3.4, -3.3, -3.3, -3.1, -3.1, -3, -2.9, -2.8, -2.7, -2.6, -2.6, -2.4, -2.4, -2.3, -2.2, -2.1, -2.1, -1.9, -1.9, -1.9, -1.6, -1.8, -1.5, -1.5, -1.5, -1.3, -1.3, -1.2, -1.2, -1.1, -1, -0.9, -0.9, -0.8, -0.8, -0.7, -0.5, -0.6, -0.5, -0.4, -0.4, -0.4, -0.2, -0.2, -0.2, -0.1, 0, 0, 0.1, 0.1, 0.1, 0.2, 0.3, 0.3, 0.4, 0.4, 0.6, 0.5, 0.7, 0.5, 0.8, 0.8, 1, 1, 1, 1.2, 1.2, 1.3, 1.3, 1.4, 1.6, 1.5, 1.7, 1.8, 1.8, 1.9, 2, 2.1, 2.1, 2.3, 2.3, 2.3, 2.6, 2.6, 2.7, 2.7, 2.8, 3, 3, 3.2, 3.3, 3.2, 3.5, 3.5, 3.7, 3.7, 3.8, 3.9, 4.1, 4.1, 4.2, 4.4, 4.4, 4.6, 4.6, 4.7, 5, 4.9, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.8, 5.8, 5.9, 6, 6.2, 6.3, 6.4, 6.4, 6.6, 6.6, 6.8, 6.8, 6.9, 7, 7.2, 7.2, 7.3, 7.3, 7.5, 7.6, 7.5, 7.7, 7.8, 7.7, 7.8, 8, 7.9, 8.1, 8, 8, 8.2, 8.1, 8.2, 8.1, 8.2, 8.2, 8.2, 8.2, 8.1, 8.2, 8.2, 8.1, 8.2, 8, 8.1, 8, 7.9, 8, 7.8, 7.9, 7.7, 7.7, 7.6, 7.6, 7.4, 7.4, 7.3, 7.3, 7.2, 7, 7, 6.9, 6.7, 6.8, 6.6, 6.5, 6.4, 6.2, 6.3, 6.1, 6, 5.9, 5.7, 5.8, 5.5, 5.5, 5.4, 5.2, 5.2, 5.1, 4.9, 4.8, 4.8, 4.7, 4.5, 4.5, 4.3, 4.2, 4.1, 4, 4, 3.8, 3.7, 3.7, 3.6, 3.4, 3.3, 3.3, 3.1, 3.1, 3, 2.9, 2.8, 2.7, 2.6, 2.6, 2.4, 2.4, 2.3, 2.2, 2.1, 2.1, 1.9, 1.9, 1.9, 1.6, 1.8, 1.5, 1.5, 1.5, 1.3, 1.3, 1.2, 1.2, 1.1, 1, 0.9, 0.9, 0.8, 0.8, 0.7, 0.5, 0.6, 0.5, 0.4, 0.4, 0.4, 0.2, 0.2, 0.2, 0.1, 0);
var boss8Y = Array(0, 0, 0, 0, 0.1, 0.1, 0, 0.1, 0.1, 0.2, 0.1, 0.1, 0.1, 0.2, 0.2, 0.1, 0.2, 0.2, 0.2, 0.3, 0.2, 0.3, 0.2, 0.3, 0.3, 0.2, 0.3, 0.4, 0.3, 0.3, 0.5, 0.3, 0.4, 0.4, 0.4, 0.5, 0.5, 0.4, 0.5, 0.5, 0.5, 0.6, 0.5, 0.5, 0.7, 0.5, 0.6, 0.7, 0.6, 0.6, 0.8, 0.7, 0.6, 0.8, 0.7, 0.8, 0.8, 0.8, 0.8, 0.9, 0.8, 1, 0.8, 1, 0.9, 0.9, 1, 1, 1, 1.2, 1, 1.1, 1.1, 1.1, 1.2, 1.1, 1.3, 1.2, 1.3, 1.2, 1.3, 1.3, 1.3, 1.4, 1.4, 1.4, 1.4, 1.5, 1.5, 1.5, 1.5, 1.6, 1.6, 1.6, 1.7, 1.6, 1.7, 1.7, 1.8, 1.7, 1.8, 1.8, 1.9, 1.9, 1.9, 1.9, 1.9, 2, 2, 2.1, 2.1, 2, 2.1, 2.2, 2.1, 2.2, 2.2, 2.2, 2.3, 2.3, 2.3, 2.3, 2.3, 2.4, 2.4, 2.4, 2.4, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.6, 2.5, 2.7, 2.6, 2.6, 2.5, 2.7, 2.6, 2.7, 2.6, 2.7, 2.6, 2.6, 2.7, 2.6, 2.7, 2.6, 2.7, 2.6, 2.6, 2.6, 2.7, 2.5, 2.6, 2.6, 2.6, 2.5, 2.5, 2.6, 2.5, 2.4, 2.5, 2.4, 2.4, 2.4, 2.5, 2.3, 2.3, 2.4, 2.3, 2.2, 2.3, 2.2, 2.1, 2.3, 2.1, 2.1, 2.1, 2.1, 2, 2, 2, 1.9, 1.9, 1.9, 1.9, 1.9, 1.7, 1.9, 1.7, 1.7, 1.7, 1.6, 1.7, 1.6, 1.6, 1.5, 1.5, 1.5, 1.5, 1.5, 1.4, 1.4, 1.3, 1.4, 1.3, 1.3, 1.3, 1.1, 1.3, 1.2, 1.1, 1.2, 1.1, 1, 1.1, 1, 1, 1, 1, 0.9, 1, 0.9, 0.8, 0.9, 0.8, 0.8, 0.8, 0.7, 0.8, 0.7, 0.8, 0.6, 0.7, 0.7, 0.6, 0.6, 0.6, 0.6, 0.6, 0.5, 0.5, 0.6, 0.4, 0.5, 0.5, 0.4, 0.4, 0.4, 0.4, 0.4, 0.4, 0.3, 0.4, 0.3, 0.2, 0.4, 0.2, 0.3, 0.2, 0.3, 0.2, 0.2, 0.2, 0.2, 0.1, 0.2, 0.1, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0, 0, 0.1, 0.1, 0, 0, 0, -0.1, 0, -0.1, 0, -0.1, -0.1, -0.1, -0.2, -0.2, -0.1, -0.2, -0.3, -0.4, -0.3, -0.3, -0.5, -0.5, -0.5, -0.6, -0.8, -0.8, -1, -1.1, -1.3, -1.5, -1.8, -2, -2.1, -2.2, -2.1, -1.9, -1.8, -1.6, -1.6, -1.8, -2.1, -1.9, -1.9, -1.8, -1.6, -1.5, -1.2, -1.1, -0.8, -0.8, -0.6, -0.5, -0.4, -0.5, -0.2, -0.3, -0.2, -0.3, -0.1, -0.1, -0.2, 0, -0.1, 0, 0, 0, 0, 0, 0, 0, 0, 0.1, 0.1, 0.1, 0.1, 0, 0.1, 0.1, 0, 0.2, 0.1, 0.1, 0.1, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.3, 0.2, 0.2, 0.3, 0.2, 0.3, 0.3, 0.2, 0.3, 0.3, 0.4, 0.3, 0.3, 0.4, 0.5, 0.4, 0.4, 0.4, 0.4, 0.5, 0.5, 0.5, 0.6, 0.5, 0.6, 0.6, 0.5, 0.7, 0.7, 0.6, 0.8, 0.7, 0.8, 0.8, 0.9, 0.8, 0.9, 0.9, 1, 1, 1, 1.2, 1.1, 1.1, 1.3, 1.2, 1.3, 1.3, 1.4, 1.5, 1.5, 1.6, 1.6, 1.7, 1.7, 1.9, 1.8, 2, 2, 2.1, 2.2, 2.2, 2.2, 2.3, 2.5, 2.4, 2.4, 2.6, 2.6, 2.5, 2.6, 2.6, 2.6, 2.5, 2.5, 2.5, 2.5, 2.4, 2.3, 2.3, 2.3, 2.2, 2, 2, 2, 1.9, 1.8, 1.8, 1.6, 1.6, 1.6, 1.5, 1.4, 1.4, 1.3, 1.3, 1.2, 1.2, 1.1, 1.1, 1.1, 1, 0.9, 0.9, 0.9, 0.9, 0.7, 0.8, 0.8, 0.7, 0.7, 0.7, 0.6, 0.7, 0.5, 0.6, 0.5, 0.6, 0.5, 0.4, 0.4, 0.5, 0.4, 0.4, 0.4, 0.3, 0.4, 0.3, 0.3, 0.3, 0.3, 0.2, 0.3, 0.2, 0.2, 0.3, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0, 0, 0.1, 0, 0.1, 0, 0, 0, 0, 0, 0, 0, 0, -0.1, -0.1, -0.1, -0.1, 0, -0.1, -0.1, 0, -0.2, -0.1, -0.1, -0.1, -0.2, -0.2, -0.1, -0.2, -0.2, -0.1, -0.3, -0.2, -0.2, -0.3, -0.2, -0.3, -0.3, -0.2, -0.3, -0.3, -0.4, -0.3, -0.3, -0.4, -0.5, -0.4, -0.4, -0.4, -0.4, -0.5, -0.5, -0.5, -0.6, -0.5, -0.6, -0.6, -0.5, -0.7, -0.7, -0.6, -0.8, -0.7, -0.8, -0.8, -0.9, -0.8, -0.9, -0.9, -1, -1, -1, -1.2, -1.1, -1.1, -1.3, -1.2, -1.3, -1.3, -1.4, -1.5, -1.5, -1.6, -1.6, -1.7, -1.7, -1.9, -1.8, -2, -2, -2.1, -2.2, -2.2, -2.2, -2.3, -2.5, -2.4, -2.4, -2.6, -2.6, -2.5, -2.6, -2.6, -2.6, -2.5, -2.5, -2.5, -2.5, -2.4, -2.3, -2.3, -2.3, -2.2, -2, -2, -2, -1.9, -1.8, -1.8, -1.6, -1.6, -1.6, -1.5, -1.4, -1.4, -1.3, -0.1, -1.2, -1.2, -1.1, -1.1, -1.1, -1, -0.9, -0.9, -0.9, -0.9, -0.7, -0.8, -0.8, -0.7, -0.7, -0.7, -0.6, -0.7, -0.5, -0.6, -0.5, -0.6, -0.5, -0.4, -0.4, -0.5, -0.4, -0.4, -0.4, -0.3, -0.4, -0.3, -0.3, -0.3, -0.3, -0.2, -0.3, -0.2, -0.2, -0.3, -0.2, -0.2, -0.1, -0.2, -0.2, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1, 0, 0, -0.1, 0, -0.1, 0, 0);
}