Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("27639a54", this, 10301, true);
_root.kongregateServices.connect();
stop();
Instance of Symbol 37 MovieClip in Frame 1
onClipEvent (load) {
totalBytes = Math.round(_root.getBytesTotal() / 1024);
}
onClipEvent (enterFrame) {
loadedBytes = Math.round(_root.getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (percentDone >= 100) {
play();
}
this.gauge._y = (-(percentDone / 100)) * 75;
}
Frame 2
stopAllSounds();
stop();
Frame 3
stop();
Frame 5
function play_sound(sObj, track, loop) {
if ((!isMuted) || (loop > 1)) {
sObj.stop();
sObj.attachSound(track);
sObj.start(0, loop);
}
}
stop();
isMuted = false;
Mouse.hide();
menu = new ContextMenu();
menu.hideBuiltInItems();
bgmusic = new Sound(bgMusic);
bgsfx = new Sound(bgSound);
play_sound(bgmusic, "loop_bauen", 20);
playerturret.prototyp = true;
playerturret.duplicateMovieClip("player", 7777);
_root.player._x = 200;
_root.player._y = 430;
Instance of Symbol 102 MovieClip in Frame 5
onClipEvent (load) {
this.swapDepths(999999);
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 122 MovieClip "playerturret" in Frame 5
onClipEvent (load) {
if (!prototyp) {
death = 2;
clipping = true;
speed = 7;
xspeed = 0;
acceleration = 0.4;
shootrate = 250;
_root.shootListener.set_interval(shootrate);
}
}
onClipEvent (enterFrame) {
if (!prototyp) {
dx = _root._xmouse - _x;
if (dx < -5) {
if (xspeed > -1) {
xspeed = xspeed - acceleration;
}
} else if (dx > 5) {
if (xspeed < 1) {
xspeed = xspeed + acceleration;
}
} else {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
if (Math.abs(xspeed) < 0.1) {
xspeed = 0;
}
}
if (_x <= 0) {
_x = 0;
} else if (_x >= 400) {
_x = 400;
}
_x = (_x + (xspeed * speed));
_rotation = (12 * xspeed);
if (clipping) {
_root.player_hit();
}
}
}
Instance of Symbol 105 MovieClip "playershot" in Frame 5
onClipEvent (load) {
speed = 9;
damage = 30 + (_root.upgrade_powlevel * 7);
death = 2;
}
onClipEvent (enterFrame) {
if (!prototyp) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_y <= 0) {
_root.bulletArray.splice(_root.findArrayPos(_root.bulletArray, this), 1);
this.removeMovieClip();
}
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
}
}
Frame 6
function field_hit(subject) {
var _local2 = false;
infield_xmin = int((subject._x - (subject._width / 2)) / 10);
infield_ymin = int(((subject._y - (subject._height / 2)) - field_yoffset) / 10);
infield_xmax = int((subject._x + (subject._width / 2)) / 10);
infield_ymax = int(((subject._y + (subject._height / 2)) - field_yoffset) / 10);
i = infield_ymin;
while (i <= infield_ymax) {
j = infield_xmin;
while (j <= infield_xmax) {
if (fieldArray[i][j]._name != undefined) {
fieldArray[i][j].collisionSubject = subject;
fieldArray[i][j].gotoAndPlay(fieldArray[i][j].hit);
_local2 = true;
}
j++;
}
i++;
}
return(_local2);
}
function player_hit() {
i = 0;
while (i < enemyArray.length) {
if (player.hitTest(enemyArray[i])) {
enemyArray[i].gotoAndPlay(enemyArray[i].death);
player.gotoAndPlay(player.death);
}
i++;
}
i = 0;
while (i < eshotArray.length) {
if (player.hitTest(eshotArray[i])) {
eshotArray[i].gotoAndPlay(eshotArray[i].death);
player.gotoAndPlay(player.death);
}
i++;
}
}
function getYmove(phi) {
return(Math.cos((Math.PI/180) * phi));
}
function getXmove(phi) {
return(-Math.sin((Math.PI/180) * phi));
}
function getCondition(subject) {
b = int((subject.health / subject.maxhealth) * 255);
c = ((b << 16) ^ (b << 8)) ^ b;
subject.condition.setRGB(c);
}
function getNextEnemy() {
do {
n = random(enemyArray.length);
target = enemyArray[n];
} while (target._name == undefined);
return(target);
}
function explode(xpos, ypos) {
num = 3 + random(4);
i = 0;
while (i < num) {
pc++;
if (pc >= 1200) {
pc = 1100;
}
particle.duplicateMovieClip("particle" + pc, pc);
_root["particle" + pc]._x = xpos;
_root["particle" + pc]._y = ypos;
i++;
}
}
function sinus_trail(subject) {
pc++;
if (pc >= 1200) {
pc = 1100;
}
sinustrail.duplicateMovieClip("particle" + pc, pc);
_root["particle" + pc]._rotation = subject._rotation;
_root["particle" + pc]._x = subject._x;
_root["particle" + pc]._y = subject._y;
}
function orb_trail(subject) {
pc++;
if (pc >= 1200) {
pc = 1100;
}
orbtrail.duplicateMovieClip("particle" + pc, pc);
_root["particle" + pc]._x = subject._x;
_root["particle" + pc]._y = subject._y;
}
function load_wave(n) {
wavetimer = 0;
_root.attachMovie("StageAnnounce", "StageAnnounce", 8888);
_root.StageAnnounce._x = 200;
_root.StageAnnounce._y = 200;
if (n >= 1) {
_root.StageAnnounce.stageText = "STAGE " + n;
}
switch (n) {
case 0 :
wave_left = 999;
_root.attachMovie("Tutorial", "tutorial", 99998);
_root.tutorial._x = 200;
_root.tutorial._y = 150;
break;
case 1 :
wave_left = 60;
break;
case 2 :
wave_left = 65;
break;
case 3 :
wave_left = 50;
break;
case 4 :
wave_left = 61;
break;
case 5 :
wave_left = 69;
break;
case 6 :
wave_left = 70;
break;
case 7 :
wave_left = 93;
break;
case 8 :
wave_left = 86;
break;
case 9 :
wave_left = 77;
break;
case 10 :
wave_left = 55;
break;
case 11 :
wave_left = 69;
break;
case 12 :
wave_left = 64;
break;
case 13 :
wave_left = 70;
break;
case 14 :
wave_left = 62;
break;
case 15 :
wave_left = 57;
break;
case 16 :
wave_left = 59;
break;
case 17 :
wave_left = 60;
break;
case 18 :
wave_left = 66;
break;
case 19 :
wave_left = 72;
break;
case 20 :
wave_left = 29;
break;
case 21 :
wave_left = 54;
break;
case 22 :
wave_left = 56;
break;
case 23 :
wave_left = 64;
break;
case 24 :
wave_left = 54;
break;
case 25 :
wave_left = 55;
break;
case 26 :
wave_left = 58;
break;
case 27 :
wave_left = 70;
break;
case 28 :
wave_left = 73;
break;
case 29 :
wave_left = 86;
break;
case 30 :
wave_left = 55;
break;
case 31 :
wave_left = 73;
break;
case 32 :
wave_left = 65;
break;
case 33 :
wave_left = 99;
break;
case 34 :
wave_left = 1;
}
}
function play_wave(n) {
switch (n) {
case 1 :
enemy_sendwave(50, -10, faller, 4, 300, 60);
enemy_sendwave(350, -10, faller, 4, 300, 180);
enemy_sendwave(200, -10, faller, 5, 400, 270);
enemy_sendwave(100, -10, faller, 2, 300, 500);
enemy_sendwave(300, -10, faller, 2, 300, 500);
enemy_sendwave(100 + random(200), -10, faller, 1, 0, 600);
enemy_sendwave(100 + random(200), -10, faller, 1, 0, 600);
enemy_sendwave(100 + random(200), -10, faller, 1, 0, 600);
enemy_sendwave(200, -10, sinus, 6, 350, 690);
enemy_sendwave(30, -10, faller, 3, 300, 750);
enemy_sendwave(370, -10, faller, 3, 300, 820);
enemy_sendwave(100, -10, sinus, 2, 300, 890);
enemy_sendwave(300, -10, sinus, 2, 300, 940);
enemy_sendwave(370, -10, faller, 3, 400, 1000);
enemy_sendwave(30, -10, faller, 3, 400, 1000);
enemy_sendwave(200, -10, faller, 4, 300, 1120);
enemy_sendwave(80, -10, sinus, 3, 300, 1170);
enemy_sendwave(320, -10, sinus, 2, 300, 1300);
enemy_sendwave(200, -10, faller, 3, 300, 1400);
enemy_sendwave(100, -10, faller, 3, 300, 1400);
enemy_sendwave(300, -10, faller, 3, 300, 1400);
break;
case 2 :
enemy_sendwave(100, -10, faller, 9, 300, 60);
enemy_sendwave(300, -10, sinus, 4, 300, 180);
enemy_sendwave(100, -10, sinus, 2, 300, 270);
enemy_sendwave(300, -10, faller, 9, 300, 360);
enemy_sendwave(100, -10, sinus, 4, 300, 460);
enemy_sendwave(300, -10, sinus, 2, 300, 550);
enemy_sendwave(30, -10, faller, 5, 300, 640);
enemy_sendwave(370, -10, faller, 5, 300, 640);
enemy_sendwave(30, -10, faller, 4, 300, 720);
enemy_sendwave(370, -10, faller, 4, 300, 720);
enemy_sendwave(200, -10, sinus, 4, 300, 780);
enemy_sendwave(30, -10, faller, 3, 300, 860);
enemy_sendwave(370, -10, faller, 3, 300, 860);
enemy_sendwave(200, -10, sinus, 3, 300, 930);
enemy_sendwave(30, -10, faller, 2, 300, 980);
enemy_sendwave(370, -10, faller, 2, 300, 980);
break;
case 3 :
enemy_sendwave(200, -10, sinus, 12, 2000, 60);
enemy_sendwave(370, -10, faller, 5, 300, 120);
enemy_sendwave(370, -10, faller, 4, 300, 210);
enemy_sendwave(370, -10, faller, 3, 300, 300);
enemy_sendwave(30, -10, faller, 5, 300, 450);
enemy_sendwave(30, -10, faller, 4, 300, 540);
enemy_sendwave(30, -10, faller, 3, 300, 630);
enemy_sendwave(70, -10, faller, 5, 300, 750);
enemy_sendwave(330, -10, faller, 5, 300, 750);
enemy_sendwave(200, -10, sinus, 4, 300, 850);
break;
case 4 :
enemy_sendwave(200, -10, sinus, 3, 300, 60);
enemy_sendwave(100, -10, sinus, 3, 300, 130);
enemy_sendwave(300, -10, sinus, 3, 300, 200);
enemy_sendwave(50, -10, faller, 5, 400, 240);
enemy_sendwave(350, -10, faller, 5, 400, 240);
enemy_sendwave(70, -10, sinus, 3, 300, 310);
enemy_sendwave(50 + random(300), -10, faller, 4, 300, 350);
enemy_sendwave(330, -10, sinus, 1, 0, 410);
enemy_sendwave(70, -10, sinus, 3, 300, 460);
enemy_sendwave(70, -10, sinus, 2, 200, 510);
enemy_sendwave(50 + random(300), -10, faller, 4, 300, 540);
enemy_sendwave(50 + random(300), -10, faller, 8, 300, 640);
enemy_sendwave(330, -10, sinus, 4, 300, 720);
enemy_sendwave(50 + random(300), -10, faller, 6, 300, 780);
enemy_sendwave(50 + random(300), -10, faller, 3, 300, 780);
enemy_sendwave(70, -10, sinus, 4, 300, 830);
break;
case 5 :
enemy_sendwave(199, -10, faller, 6, 300, 60);
enemy_sendwave(201, -10, faller, 6, 300, 60);
enemy_sendwave(200, -10, follower, 1, 0, 120);
enemy_sendwave(100, -10, sinus, 4, 200, 190);
enemy_sendwave(199, -10, faller, 6, 300, 240);
enemy_sendwave(201, -10, faller, 6, 300, 240);
enemy_sendwave(50, -10, follower, 1, 0, 300);
enemy_sendwave(350, -10, follower, 1, 0, 300);
enemy_sendwave(300, -10, sinus, 4, 200, 360);
enemy_sendwave(199, -10, faller, 6, 300, 420);
enemy_sendwave(201, -10, faller, 6, 300, 420);
enemy_sendwave(50, -10, follower, 3, 400, 520);
enemy_sendwave(100, -10, sinus, 4, 200, 600);
enemy_sendwave(350, -10, follower, 3, 400, 700);
enemy_sendwave(330, -10, sinus, 4, 300, 760);
enemy_sendwave(70, -10, sinus, 4, 300, 760);
enemy_sendwave(200, -10, sinus, 4, 300, 820);
break;
case 6 :
enemy_sendwave(50, -10, follwer, 2, 300, 60);
enemy_sendwave(350, -10, follower, 2, 300, 60);
enemy_sendwave(30, -10, faller, 5, 300, 120);
enemy_sendwave(330, -10, sinus, 4, 300, 120);
enemy_sendwave(370, -10, faller, 5, 300, 210);
enemy_sendwave(70, -10, sinus, 4, 300, 210);
enemy_sendwave(200, -10, follower, 3, 300, 240);
enemy_sendwave(370, -10, faller, 5, 300, 320);
enemy_sendwave(30, -10, faller, 5, 300, 320);
enemy_sendwave(200, -10, sinus, 8, 300, 400);
enemy_sendwave(100, -10, follower, 2, 300, 480);
enemy_sendwave(300, -10, follower, 2, 300, 520);
enemy_sendwave(200, -10, sinus, 5, 300, 580);
enemy_sendwave(50, -10, follower, 1, 0, 680);
enemy_sendwave(100, -10, follower, 1, 0, 660);
enemy_sendwave(200, -10, follower, 1, 0, 640);
enemy_sendwave(300, -10, follower, 1, 0, 660);
enemy_sendwave(350, -10, follower, 1, 0, 680);
enemy_sendwave(30, -10, faller, 5, 300, 740);
enemy_sendwave(370, -10, faller, 5, 300, 740);
enemy_sendwave(100, -10, follower, 1, 0, 840);
enemy_sendwave(200, -10, follower, 1, 0, 820);
enemy_sendwave(300, -10, follower, 1, 0, 840);
break;
case 7 :
enemy_sendwave(50, -10, follower, 1, 0, 100);
enemy_sendwave(100, -10, follower, 1, 0, 80);
enemy_sendwave(200, -10, follower, 1, 0, 60);
enemy_sendwave(300, -10, follower, 1, 0, 80);
enemy_sendwave(350, -10, follower, 1, 0, 100);
enemy_sendwave(30, -10, faller, 5, 300, 120);
enemy_sendwave(370, -10, faller, 5, 300, 120);
enemy_sendwave(199, -10, faller, 5, 300, 240);
enemy_sendwave(201, -10, faller, 5, 300, 240);
enemy_sendwave(70, -10, follower, 3, 400, 270);
enemy_sendwave(200, -10, sinus, 6, 600, 340);
enemy_sendwave(330, -10, follower, 3, 400, 400);
enemy_sendwave(100 + random(200), -10, sinus, 4, 600, 460);
enemy_sendwave(50, -10, faller, 6, 300, 520);
enemy_sendwave(350, -10, faller, 2, 300, 520);
enemy_sendwave(100 + random(200), -10, sinus, 4, 600, 560);
enemy_sendwave(100 + random(200), -10, follower, 3, 300, 620);
enemy_sendwave(50, -10, faller, 2, 300, 680);
enemy_sendwave(350, -10, faller, 6, 300, 680);
enemy_sendwave(200, -10, sinus, 7, 600, 720);
enemy_sendwave(100 + random(200), -10, follower, 3, 300, 780);
enemy_sendwave(350, -10, faller, 8, 500, 840);
enemy_sendwave(100 + random(200), -10, follower, 3, 300, 880);
enemy_sendwave(30, -10, sinus, 4, 300, 930);
enemy_sendwave(70, -10, sinus, 4, 300, 1000);
break;
case 8 :
enemy_sendwave(50, -10, faller, 5, 300, 60);
enemy_sendwave(200, -10, sinus, 6, 400, 90);
enemy_sendwave(350, -10, faller, 5, 300, 120);
enemy_sendwave(random(400), -10, follower, 3, 300, 180);
enemy_sendwave(random(400), -10, follower, 3, 300, 240);
enemy_sendwave(100 + random(200), -10, sinus, 4, 400, 270);
enemy_sendwave(random(400), -10, follower, 3, 300, 320);
enemy_sendwave(random(400), -10, follower, 3, 300, 360);
enemy_sendwave(199, -10, faller, 5, 300, 420);
enemy_sendwave(201, -10, faller, 5, 300, 420);
enemy_sendwave(random(400), -10, follower, 3, 300, 480);
enemy_sendwave(100 + random(200), -10, sinus, 3, 400, 540);
enemy_sendwave(100 + random(200), -10, sinus, 4, 400, 570);
enemy_sendwave(random(400), -10, follower, 3, 300, 620);
enemy_sendwave(30, -10, faller, 10, 800, 620);
enemy_sendwave(370, -10, faller, 10, 800, 620);
enemy_sendwave(100 + random(200), -10, sinus, 4, 400, 690);
enemy_sendwave(100 + random(200), -10, sinus, 4, 400, 730);
enemy_sendwave(100, -10, follower, 1, 0, 800);
enemy_sendwave(300, -10, follower, 1, 0, 800);
enemy_sendwave(200, -10, follower, 1, 0, 820);
break;
case 9 :
enemy_sendwave(-10, -10, follower, 10, 2000, 60);
enemy_sendwave(410, -10, follower, 10, 2000, 60);
enemy_sendwave(100 + random(200), -10, sinus, 5, 400, 90);
enemy_sendwave(50, -10, faller, 6, 500, 150);
enemy_sendwave(350, -10, faller, 6, 500, 150);
enemy_sendwave(100 + random(200), -10, sinus, 5, 300, 240);
enemy_sendwave(199, -10, faller, 6, 500, 390);
enemy_sendwave(201, -10, faller, 6, 500, 390);
enemy_sendwave(100 + random(200), -10, sinus, 5, 300, 450);
enemy_sendwave(100, -10, sinus, 4, 300, 550);
enemy_sendwave(100, -10, sinus, 2, 300, 620);
enemy_sendwave(50, -10, faller, 6, 300, 720);
enemy_sendwave(350, -10, faller, 6, 300, 720);
break;
case 10 :
enemy_sendwave(200, -10, bombBoss, 1, 0, 60);
enemy_sendwave(100, -10, sinus, 5, 400, 150);
enemy_sendwave(300, -10, sinus, 5, 400, 240);
enemy_sendwave(30, -10, faller, 6, 300, 330);
enemy_sendwave(370, -10, faller, 6, 300, 330);
enemy_sendwave(300, -10, sinus, 5, 400, 420);
enemy_sendwave(100, -10, sinus, 5, 400, 510);
enemy_sendwave(100, -10, follower, 1, 0, 560);
enemy_sendwave(300, -10, follower, 1, 0, 560);
enemy_sendwave(200, -10, follower, 1, 0, 580);
enemy_sendwave(30, -10, faller, 6, 300, 640);
enemy_sendwave(370, -10, faller, 6, 300, 640);
enemy_sendwave(200, -10, sinus, 4, 300, 720);
enemy_sendwave(100, -10, follower, 1, 0, 820);
enemy_sendwave(300, -10, follower, 1, 0, 820);
enemy_sendwave(200, -10, follower, 1, 0, 800);
break;
case 11 :
enemy_sendwave(200, -10, shooter, 1, 0, 60);
enemy_sendwave(199, -10, faller, 6, 300, 120);
enemy_sendwave(201, -10, faller, 6, 300, 120);
enemy_sendwave(200, -10, sinus, 3, 300, 180);
enemy_sendwave(50, -10, follower, 2, 400, 240);
enemy_sendwave(350, -10, follower, 2, 400, 240);
enemy_sendwave(200, -10, sinus, 4, 300, 300);
enemy_sendwave(70, -10, shooter, 1, 0, 380);
enemy_sendwave(330, -10, shooter, 1, 0, 380);
enemy_sendwave(200, -10, follower, 2, 400, 420);
enemy_sendwave(30, -10, faller, 6, 300, 500);
enemy_sendwave(370, -10, faller, 6, 300, 500);
enemy_sendwave(250, -10, follower, 1, 0, 560);
enemy_sendwave(150, -10, follower, 1, 0, 560);
enemy_sendwave(200, -10, follower, 1, 0, 580);
enemy_sendwave(100, -10, sinus, 4, 300, 640);
enemy_sendwave(300, -10, sinus, 4, 300, 640);
enemy_sendwave(50, -10, shooter, 1, 0, 700);
enemy_sendwave(350, -10, shooter, 1, 0, 700);
enemy_sendwave(300, -10, follower, 1, 0, 740);
enemy_sendwave(100, -10, follower, 1, 0, 740);
enemy_sendwave(200, -10, shooter, 1, 0, 820);
enemy_sendwave(30, -10, faller, 5, 300, 900);
enemy_sendwave(370, -10, faller, 5, 300, 900);
enemy_sendwave(200, -10, follower, 3, 400, 980);
break;
case 12 :
enemy_sendwave(30, -10, faller, 6, 300, 80);
enemy_sendwave(370, -10, faller, 6, 300, 80);
enemy_sendwave(50, -10, shooter, 1, 0, 150);
enemy_sendwave(350, -10, shooter, 1, 0, 150);
enemy_sendwave(100, -10, follower, 3, 400, 240);
enemy_sendwave(200, -10, sinus, 5, 300, 270);
enemy_sendwave(300, -10, follower, 3, 400, 320);
enemy_sendwave(370, -10, faller, 6, 300, 400);
enemy_sendwave(100, -10, shooter, 1, 0, 400);
enemy_sendwave(30, -10, faller, 6, 300, 540);
enemy_sendwave(300, -10, shooter, 1, 0, 540);
enemy_sendwave(100, -10, sinus, 3, 300, 600);
enemy_sendwave(300, -10, sinus, 3, 300, 600);
enemy_sendwave(300, -10, follower, 1, 0, 660);
enemy_sendwave(100, -10, follower, 1, 0, 660);
enemy_sendwave(200, -10, shooter, 1, 0, 700);
enemy_sendwave(200, -10, follower, 2, 400, 740);
enemy_sendwave(199, -10, faller, 5, 300, 820);
enemy_sendwave(201, -10, faller, 5, 300, 820);
enemy_sendwave(200, -10, shooter, 2, 300, 900);
enemy_sendwave(200, -10, follower, 2, 300, 960);
break;
case 13 :
enemy_sendwave(200, -10, follower, 3, 300, 80);
enemy_sendwave(370, -10, faller, 6, 300, 160);
enemy_sendwave(30, -10, faller, 6, 300, 160);
enemy_sendwave(100, -10, sinus, 4, 300, 240);
enemy_sendwave(300, -10, sinus, 4, 300, 300);
enemy_sendwave(200, -10, shooter, 2, 500, 360);
enemy_sendwave(50, -10, follower, 2, 300, 420);
enemy_sendwave(370, -10, faller, 6, 300, 480);
enemy_sendwave(30, -10, faller, 6, 300, 480);
enemy_sendwave(50, -10, follower, 2, 300, 520);
enemy_sendwave(50, -10, shooter, 2, 1000, 600);
enemy_sendwave(350, -10, shooter, 2, 1000, 600);
enemy_sendwave(200, -10, sinus, 5, 300, 660);
enemy_sendwave(50, -10, follower, 3, 300, 780);
enemy_sendwave(350, -10, follower, 3, 300, 840);
enemy_sendwave(200, -10, shooter, 2, 400, 900);
enemy_sendwave(201, -10, faller, 6, 300, 1000);
enemy_sendwave(199, -10, faller, 6, 300, 1000);
break;
case 14 :
enemy_sendwave(200, -10, shooter, 3, 500, 80);
enemy_sendwave(300, -10, sinus, 4, 300, 160);
enemy_sendwave(100, -10, sinus, 4, 300, 240);
enemy_sendwave(30, -10, faller, 5, 300, 300);
enemy_sendwave(370, -10, follower, 3, 300, 300);
enemy_sendwave(200, -10, shooter, 2, 400, 380);
enemy_sendwave(370, -10, faller, 5, 300, 460);
enemy_sendwave(30, -10, follower, 3, 300, 460);
enemy_sendwave(200, -10, shooter, 2, 400, 520);
enemy_sendwave(100, -10, follower, 1, 0, 600);
enemy_sendwave(100, -10, sinus, 4, 300, 630);
enemy_sendwave(300, -10, follower, 1, 0, 660);
enemy_sendwave(300, -10, sinus, 4, 300, 690);
enemy_sendwave(201, -10, faller, 5, 300, 760);
enemy_sendwave(199, -10, faller, 5, 300, 760);
enemy_sendwave(200, -10, shooter, 3, 300, 820);
enemy_sendwave(30, -10, follower, 2, 300, 900);
enemy_sendwave(370, -10, follower, 2, 300, 900);
enemy_sendwave(200, -10, sinus, 4, 300, 940);
break;
case 15 :
enemy_sendwave(50, -10, beamer, 1, 0, 80);
enemy_sendwave(350, -10, beamer, 1, 0, 80);
enemy_sendwave(50, -10, follower, 1, 0, 300);
enemy_sendwave(350, -10, follower, 1, 0, 300);
enemy_sendwave(200, -10, follower, 3, 300, 340);
enemy_sendwave(199, -10, faller, 5, 300, 400);
enemy_sendwave(201, -10, faller, 5, 300, 400);
enemy_sendwave(200, -10, beamer, 1, 0, 420);
enemy_sendwave(100, -10, shooter, 2, 300, 500);
enemy_sendwave(100, -10, sinus, 5, 300, 560);
enemy_sendwave(300, -10, shooter, 2, 300, 660);
enemy_sendwave(300, -10, sinus, 5, 300, 720);
enemy_sendwave(30, -10, faller, 5, 300, 780);
enemy_sendwave(370, -10, faller, 5, 300, 780);
enemy_sendwave(200, -10, follower, 3, 300, 780);
enemy_sendwave(100, -10, beamer, 1, 0, 900);
enemy_sendwave(300, -10, beamer, 1, 0, 900);
enemy_sendwave(100, -10, shooter, 3, 300, 980);
enemy_sendwave(350, -10, follower, 1, 0, 1060);
enemy_sendwave(50, -10, follower, 1, 0, 1060);
enemy_sendwave(200, -10, sinus, 5, 300, 1120);
break;
case 16 :
enemy_sendwave(30, -10, faller, 5, 300, 80);
enemy_sendwave(370, -10, faller, 5, 300, 80);
enemy_sendwave(200, -10, beamer, 2, 500, 140);
enemy_sendwave(50, -10, follower, 3, 300, 260);
enemy_sendwave(200, -10, shooter, 2, 300, 320);
enemy_sendwave(350, -10, follower, 3, 300, 380);
enemy_sendwave(100, -10, sinus, 5, 300, 420);
enemy_sendwave(300, -10, sinus, 5, 300, 420);
enemy_sendwave(300, -10, shooter, 1, 0, 500);
enemy_sendwave(100, -10, shooter, 1, 0, 500);
enemy_sendwave(300, -10, shooter, 1, 0, 540);
enemy_sendwave(100, -10, shooter, 1, 0, 540);
enemy_sendwave(200, -10, follower, 4, 300, 660);
enemy_sendwave(100, -10, beamer, 1, 0, 740);
enemy_sendwave(300, -10, beamer, 1, 0, 740);
enemy_sendwave(201, -10, faller, 5, 300, 820);
enemy_sendwave(199, -10, faller, 5, 300, 820);
enemy_sendwave(200, -10, sinus, 5, 300, 880);
enemy_sendwave(300, -10, beamer, 1, 0, 1000);
enemy_sendwave(100, -10, beamer, 1, 0, 1000);
enemy_sendwave(200, -10, shooter, 2, 0, 1100);
break;
case 17 :
enemy_sendwave(200, -10, sinus, 5, 300, 80);
enemy_sendwave(50, -10, shooter, 3, 300, 160);
enemy_sendwave(50, -10, faller, 4, 300, 220);
enemy_sendwave(350, -10, faller, 4, 300, 220);
enemy_sendwave(350, -10, shooter, 3, 300, 280);
enemy_sendwave(100, -10, beamer, 1, 0, 360);
enemy_sendwave(300, -10, beamer, 1, 0, 360);
enemy_sendwave(200, -10, beamer, 1, 0, 400);
enemy_sendwave(50, -10, follower, 3, 400, 500);
enemy_sendwave(350, -10, follower, 3, 400, 500);
enemy_sendwave(200, -10, sinus, 5, 300, 580);
enemy_sendwave(200, -10, beamer, 1, 0, 640);
enemy_sendwave(100, -10, shooter, 2, 300, 680);
enemy_sendwave(300, -10, shooter, 2, 300, 680);
enemy_sendwave(50, -10, follower, 2, 300, 760);
enemy_sendwave(350, -10, follower, 2, 300, 760);
enemy_sendwave(201, -10, faller, 5, 300, 840);
enemy_sendwave(199, -10, faller, 5, 300, 840);
enemy_sendwave(200, -10, beamer, 3, 1000, 900);
enemy_sendwave(100, -10, follower, 1, 0, 1000);
enemy_sendwave(300, -10, follower, 1, 0, 1000);
enemy_sendwave(150, -10, follower, 1, 0, 1020);
enemy_sendwave(250, -10, follower, 1, 0, 1020);
enemy_sendwave(200, -10, follower, 1, 0, 1040);
break;
case 18 :
enemy_sendwave(200, -10, shooter, 3, 300, 80);
enemy_sendwave(50, -10, follower, 3, 300, 160);
enemy_sendwave(350, -10, follower, 3, 300, 160);
enemy_sendwave(201, -10, faller, 5, 300, 290);
enemy_sendwave(199, -10, faller, 5, 300, 290);
enemy_sendwave(200, -10, sinus, 4, 400, 340);
enemy_sendwave(200, -10, beamer, 3, 1000, 420);
enemy_sendwave(50, -10, shooter, 2, 300, 540);
enemy_sendwave(350, -10, shooter, 2, 300, 540);
enemy_sendwave(150, -10, follower, 1, 0, 620);
enemy_sendwave(250, -10, follower, 1, 0, 620);
enemy_sendwave(200, -10, follower, 1, 0, 640);
enemy_sendwave(200, -10, beamer, 2, 1000, 720);
enemy_sendwave(100, -10, sinus, 3, 400, 780);
enemy_sendwave(300, -10, sinus, 3, 400, 780);
enemy_sendwave(50, -10, follower, 2, 400, 830);
enemy_sendwave(350, -10, follower, 2, 400, 830);
enemy_sendwave(50, -10, faller, 5, 300, 900);
enemy_sendwave(350, -10, faller, 5, 300, 900);
enemy_sendwave(200, -10, shooter, 3, 300, 960);
enemy_sendwave(50, -10, beamer, 1, 1000, 1020);
enemy_sendwave(350, -10, beamer, 1, 1000, 1020);
enemy_sendwave(60, -10, sinus, 3, 400, 1140);
enemy_sendwave(340, -10, sinus, 3, 400, 1140);
break;
case 19 :
enemy_sendwave(200, -10, beamer, 3, 1000, 80);
enemy_sendwave(30, -10, faller, 5, 300, 160);
enemy_sendwave(370, -10, faller, 5, 300, 160);
enemy_sendwave(300, -10, follower, 1, 0, 240);
enemy_sendwave(100, -10, follower, 1, 0, 240);
enemy_sendwave(250, -10, follower, 1, 0, 260);
enemy_sendwave(150, -10, follower, 1, 0, 260);
enemy_sendwave(200, -10, follower, 1, 0, 280);
enemy_sendwave(100, -10, sinus, 4, 300, 360);
enemy_sendwave(300, -10, sinus, 4, 300, 360);
enemy_sendwave(200, -10, shooter, 2, 500, 460);
enemy_sendwave(50, -10, beamer, 2, 1000, 540);
enemy_sendwave(350, -10, beamer, 2, 1000, 540);
enemy_sendwave(50, -10, follower, 3, 400, 600);
enemy_sendwave(350, -10, follower, 3, 400, 600);
enemy_sendwave(201, -10, faller, 5, 300, 660);
enemy_sendwave(199, -10, faller, 5, 300, 660);
enemy_sendwave(200, -10, shooter, 2, 500, 740);
enemy_sendwave(200, -10, beamer, 3, 1000, 860);
enemy_sendwave(50, -10, follower, 3, 400, 960);
enemy_sendwave(350, -10, follower, 3, 400, 960);
enemy_sendwave(200, -10, shooter, 3, 500, 1060);
enemy_sendwave(201, -10, faller, 5, 300, 1120);
enemy_sendwave(199, -10, faller, 5, 300, 1120);
break;
case 20 :
enemy_sendwave(200, -10, drillBoss, 1, 0, 80);
enemy_sendwave(50, -10, beamer, 2, 1000, 180);
enemy_sendwave(350, -10, shooter, 2, 500, 180);
enemy_sendwave(200, -10, sinus, 5, 300, 260);
enemy_sendwave(30, -10, faller, 5, 300, 360);
enemy_sendwave(370, -10, faller, 5, 300, 360);
enemy_sendwave(200, -10, follower, 3, 400, 440);
enemy_sendwave(50, -10, follower, 1, 0, 460);
enemy_sendwave(350, -10, follower, 1, 0, 460);
enemy_sendwave(50, -10, shooter, 2, 500, 560);
enemy_sendwave(350, -10, beamer, 2, 1000, 560);
break;
case 21 :
enemy_sendwave(100, -10, driller, 1, 0, 80);
enemy_sendwave(200, -10, driller, 1, 0, 80);
enemy_sendwave(300, -10, driller, 1, 0, 80);
enemy_sendwave(30, -10, follower, 3, 400, 160);
enemy_sendwave(370, -10, shooter, 1, 0, 160);
enemy_sendwave(200, -10, beamer, 3, 1000, 260);
enemy_sendwave(370, -10, follower, 3, 400, 360);
enemy_sendwave(30, -10, shooter, 1, 0, 360);
enemy_sendwave(80, -10, sinus, 5, 400, 440);
enemy_sendwave(80, -10, driller, 1, 0, 500);
enemy_sendwave(300, -10, beamer, 3, 1000, 580);
enemy_sendwave(100, -10, shooter, 3, 500, 660);
enemy_sendwave(200, -10, follower, 3, 400, 720);
enemy_sendwave(320, -10, sinus, 5, 400, 800);
enemy_sendwave(320, -10, driller, 1, 0, 860);
enemy_sendwave(30, -10, follower, 3, 400, 940);
enemy_sendwave(370, -10, shooter, 1, 0, 940);
enemy_sendwave(200, -10, shooter, 3, 500, 1020);
enemy_sendwave(200, -10, driller, 3, 400, 1080);
enemy_sendwave(80, -10, sinus, 4, 400, 1180);
enemy_sendwave(320, -10, sinus, 4, 400, 1180);
enemy_sendwave(80, -10, shooter, 2, 500, 1240);
enemy_sendwave(320, -10, shooter, 2, 500, 1240);
break;
case 22 :
enemy_sendwave(30, -10, faller, 5, 300, 80);
enemy_sendwave(370, -10, faller, 5, 300, 80);
enemy_sendwave(100, -10, driller, 3, 400, 160);
enemy_sendwave(300, -10, driller, 3, 400, 160);
enemy_sendwave(200, -10, shooter, 4, 500, 260);
enemy_sendwave(50, -10, follower, 2, 300, 380);
enemy_sendwave(350, -10, follower, 2, 300, 380);
enemy_sendwave(200, -10, follower, 2, 300, 420);
enemy_sendwave(70, -10, sinus, 4, 300, 520);
enemy_sendwave(330, -10, sinus, 4, 300, 520);
enemy_sendwave(100, -10, driller, 1, 0, 600);
enemy_sendwave(200, -10, driller, 1, 0, 600);
enemy_sendwave(300, -10, driller, 1, 0, 600);
enemy_sendwave(100, -10, shooter, 1, 0, 660);
enemy_sendwave(300, -10, shooter, 1, 0, 660);
enemy_sendwave(200, -10, follower, 5, 300, 720);
enemy_sendwave(100, -10, driller, 1, 0, 800);
enemy_sendwave(200, -10, driller, 1, 0, 800);
enemy_sendwave(300, -10, driller, 1, 0, 800);
enemy_sendwave(200, -10, beamer, 2, 1000, 850);
enemy_sendwave(200, -10, follower, 3, 300, 950);
enemy_sendwave(100, -10, driller, 2, 400, 1000);
enemy_sendwave(300, -10, driller, 2, 400, 1000);
break;
case 23 :
enemy_sendwave(30, -10, faller, 8, 300, 80);
enemy_sendwave(370, -10, faller, 8, 300, 80);
enemy_sendwave(100, -10, beamer, 2, 1000, 200);
enemy_sendwave(300, -10, beamer, 2, 1000, 200);
enemy_sendwave(200, -10, follower, 3, 300, 200);
enemy_sendwave(150, -10, sinus, 3, 400, 310);
enemy_sendwave(250, -10, sinus, 2, 400, 350);
enemy_sendwave(100, -10, shooter, 3, 400, 440);
enemy_sendwave(80, -10, driller, 3, 300, 500);
enemy_sendwave(320, -10, driller, 3, 300, 560);
enemy_sendwave(300, -10, shooter, 3, 400, 640);
enemy_sendwave(100, -10, beamer, 2, 1000, 700);
enemy_sendwave(300, -10, beamer, 2, 1000, 700);
enemy_sendwave(190, -10, faller, 8, 300, 800);
enemy_sendwave(210, -10, faller, 8, 300, 800);
enemy_sendwave(200, -10, shooter, 4, 300, 950);
break;
case 24 :
enemy_sendwave(80, -10, driller, 3, 300, 80);
enemy_sendwave(320, -10, driller, 3, 300, 80);
enemy_sendwave(200, -10, follower, 4, 300, 200);
enemy_sendwave(50, -10, shooter, 1, 0, 200);
enemy_sendwave(350, -10, shooter, 1, 0, 200);
enemy_sendwave(100, -10, sinus, 4, 400, 290);
enemy_sendwave(300, -10, sinus, 4, 400, 290);
enemy_sendwave(200, -10, driller, 3, 300, 340);
enemy_sendwave(100, -10, beamer, 2, 1000, 420);
enemy_sendwave(300, -10, beamer, 2, 1000, 420);
enemy_sendwave(200, -10, follower, 1, 0, 520);
enemy_sendwave(150, -10, follower, 1, 0, 540);
enemy_sendwave(350, -10, follower, 1, 0, 540);
enemy_sendwave(100, -10, follower, 1, 0, 560);
enemy_sendwave(300, -10, follower, 1, 0, 560);
enemy_sendwave(50, -10, follower, 1, 0, 580);
enemy_sendwave(350, -10, follower, 1, 0, 580);
enemy_sendwave(100, -10, shooter, 3, 400, 680);
enemy_sendwave(200, -10, driller, 2, 400, 780);
enemy_sendwave(150, -10, driller, 2, 400, 800);
enemy_sendwave(350, -10, driller, 2, 400, 800);
enemy_sendwave(200, -10, beamer, 3, 1000, 880);
enemy_sendwave(100, -10, sinus, 4, 400, 960);
enemy_sendwave(300, -10, sinus, 4, 400, 960);
break;
case 25 :
enemy_sendwave(200, -10, tripler, 2, 400, 80);
enemy_sendwave(100, -10, driller, 3, 400, 160);
enemy_sendwave(300, -10, driller, 3, 400, 160);
enemy_sendwave(200, -10, follower, 3, 300, 240);
enemy_sendwave(30, -10, shooter, 2, 400, 340);
enemy_sendwave(370, -10, shooter, 2, 400, 340);
enemy_sendwave(300, -10, beamer, 2, 1000, 460);
enemy_sendwave(100, -10, beamer, 2, 1000, 460);
enemy_sendwave(150, -10, sinus, 6, 300, 540);
enemy_sendwave(250, -10, sinus, 6, 300, 540);
enemy_sendwave(200, -10, tripler, 2, 400, 600);
enemy_sendwave(200, -10, driller, 1, 0, 700);
enemy_sendwave(150, -10, driller, 1, 0, 730);
enemy_sendwave(250, -10, driller, 1, 0, 730);
enemy_sendwave(100, -10, driller, 1, 0, 760);
enemy_sendwave(300, -10, driller, 1, 0, 760);
enemy_sendwave(50, -10, driller, 1, 0, 790);
enemy_sendwave(350, -10, driller, 1, 0, 790);
enemy_sendwave(200, -10, shooter, 3, 400, 870);
enemy_sendwave(50, -10, follower, 3, 300, 900);
enemy_sendwave(350, -10, follower, 3, 300, 900);
enemy_sendwave(200, -10, sinus, 4, 300, 970);
enemy_sendwave(200, -10, tripler, 2, 400, 1040);
break;
case 26 :
enemy_sendwave(200, -10, tripler, 1, 0, 80);
enemy_sendwave(100, -10, tripler, 1, 0, 100);
enemy_sendwave(300, -10, tripler, 1, 0, 100);
enemy_sendwave(200, -10, beamer, 3, 1000, 180);
enemy_sendwave(50, -10, follower, 2, 400, 220);
enemy_sendwave(350, -10, follower, 3, 400, 220);
enemy_sendwave(100, -10, driller, 3, 400, 280);
enemy_sendwave(300, -10, driller, 3, 400, 280);
enemy_sendwave(200, -10, shooter, 4, 500, 380);
enemy_sendwave(200, -10, tripler, 1, 0, 480);
enemy_sendwave(100, -10, tripler, 1, 0, 500);
enemy_sendwave(300, -10, tripler, 1, 0, 500);
enemy_sendwave(30, -10, faller, 5, 400, 560);
enemy_sendwave(370, -10, faller, 5, 400, 560);
enemy_sendwave(50, -10, follower, 3, 400, 640);
enemy_sendwave(350, -10, follower, 2, 400, 640);
enemy_sendwave(300, -10, driller, 3, 400, 660);
enemy_sendwave(100, -10, beamer, 1, 0, 720);
enemy_sendwave(200, -10, beamer, 1, 0, 720);
enemy_sendwave(300, -10, beamer, 1, 0, 720);
enemy_sendwave(200, -10, tripler, 2, 400, 820);
enemy_sendwave(100, -10, tripler, 1, 0, 850);
enemy_sendwave(300, -10, tripler, 1, 0, 850);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 920);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 980);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 1060);
break;
case 27 :
enemy_sendwave(50, -10, tripler, 2, 400, 80);
enemy_sendwave(350, -10, tripler, 2, 400, 80);
enemy_sendwave(200, -10, shooter, 4, 400, 140);
enemy_sendwave(100, -10, sinus, 4, 400, 220);
enemy_sendwave(200, -10, sinus, 6, 400, 240);
enemy_sendwave(300, -10, sinus, 4, 400, 220);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 300);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 340);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 380);
enemy_sendwave(200, -10, beamer, 3, 1000, 480);
enemy_sendwave(50, -10, follower, 2, 400, 520);
enemy_sendwave(350, -10, follower, 3, 400, 520);
enemy_sendwave(200, -10, tripler, 2, 400, 580);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 660);
enemy_sendwave(50, -10, shooter, 2, 400, 840);
enemy_sendwave(350, -10, shooter, 2, 400, 840);
enemy_sendwave(200, -10, beamer, 3, 1000, 860);
enemy_sendwave(100, -10, sinus, 4, 400, 960);
enemy_sendwave(200, -10, sinus, 6, 400, 980);
enemy_sendwave(300, -10, sinus, 4, 400, 960);
enemy_sendwave(50, -10, tripler, 2, 400, 1080);
enemy_sendwave(350, -10, tripler, 2, 400, 1080);
enemy_sendwave(200, -10, tripler, 2, 400, 1120);
break;
case 28 :
enemy_sendwave(100, -10, shooter, 14, 2000, 80);
enemy_sendwave(300, -10, shooter, 14, 2000, 80);
enemy_sendwave(200, -10, tripler, 3, 400, 140);
enemy_sendwave(50, -10, beamer, 1, 0, 220);
enemy_sendwave(350, -10, beamer, 1, 0, 220);
enemy_sendwave(200, -10, follower, 5, 400, 260);
enemy_sendwave(50, -10, driller, 1, 0, 360);
enemy_sendwave(350, -10, driller, 1, 0, 360);
enemy_sendwave(100, -10, driller, 1, 0, 390);
enemy_sendwave(300, -10, driller, 1, 0, 390);
enemy_sendwave(150, -10, driller, 1, 0, 420);
enemy_sendwave(250, -10, driller, 1, 0, 420);
enemy_sendwave(200, -10, driller, 1, 0, 450);
enemy_sendwave(200, -10, sinus, 7, 400, 550);
enemy_sendwave(50, -10, follower, 3, 400, 620);
enemy_sendwave(350, -10, follower, 3, 400, 700);
enemy_sendwave(200, -10, beamer, 2, 1000, 780);
enemy_sendwave(30, -10, tripler, 1, 0, 840);
enemy_sendwave(370, -10, tripler, 1, 0, 840);
enemy_sendwave(200, -10, sinus, 7, 400, 920);
enemy_sendwave(50, -10, beamer, 2, 1000, 1000);
enemy_sendwave(350, -10, beamer, 2, 1000, 1000);
break;
case 29 :
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 80);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 140);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 200);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 260);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 320);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 380);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 440);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 500);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 560);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 620);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 680);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 740);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 800);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 860);
enemy_sendwave(50 + random(300), -10, driller, 2, 400, 920);
enemy_sendwave(200, -10, beamer, 3, 1000, 160);
enemy_sendwave(100, -10, shooter, 3, 400, 260);
enemy_sendwave(300, -10, follower, 3, 400, 260);
enemy_sendwave(150, -10, sinus, 5, 400, 360);
enemy_sendwave(250, -10, sinus, 5, 400, 360);
enemy_sendwave(30, -10, tripler, 3, 500, 440);
enemy_sendwave(370, -10, tripler, 3, 500, 440);
enemy_sendwave(200, -10, follower, 2, 400, 580);
enemy_sendwave(150, -10, follower, 2, 400, 620);
enemy_sendwave(250, -10, follower, 2, 400, 620);
enemy_sendwave(100, -10, follower, 2, 400, 640);
enemy_sendwave(300, -10, follower, 2, 400, 640);
enemy_sendwave(200, -10, shooter, 4, 400, 740);
enemy_sendwave(200, -10, beamer, 3, 1000, 860);
enemy_sendwave(30, -10, tripler, 2, 500, 960);
enemy_sendwave(370, -10, tripler, 2, 500, 960);
enemy_sendwave(150, -10, sinus, 5, 400, 1040);
enemy_sendwave(250, -10, sinus, 5, 400, 1040);
break;
case 30 :
enemy_sendwave(200, -10, shootBoss, 1, 0, 80);
enemy_sendwave(50, -10, driller, 1, 0, 140);
enemy_sendwave(350, -10, driller, 1, 0, 140);
enemy_sendwave(100, -10, driller, 1, 0, 160);
enemy_sendwave(300, -10, driller, 1, 0, 160);
enemy_sendwave(150, -10, driller, 1, 0, 180);
enemy_sendwave(250, -10, driller, 1, 0, 180);
enemy_sendwave(200, -10, driller, 1, 0, 200);
enemy_sendwave(200, -10, beamer, 3, 1000, 280);
enemy_sendwave(50, -10, driller, 1, 0, 380);
enemy_sendwave(350, -10, driller, 1, 0, 380);
enemy_sendwave(100, -10, driller, 1, 0, 400);
enemy_sendwave(300, -10, driller, 1, 0, 400);
enemy_sendwave(150, -10, driller, 1, 0, 420);
enemy_sendwave(250, -10, driller, 1, 0, 420);
enemy_sendwave(200, -10, driller, 1, 0, 440);
enemy_sendwave(200, -10, beamer, 3, 1000, 540);
enemy_sendwave(30, -10, tripler, 3, 500, 600);
enemy_sendwave(370, -10, tripler, 3, 500, 600);
enemy_sendwave(50, -10, driller, 1, 0, 680);
enemy_sendwave(350, -10, driller, 1, 0, 680);
enemy_sendwave(100, -10, driller, 1, 0, 700);
enemy_sendwave(300, -10, driller, 1, 0, 700);
enemy_sendwave(150, -10, driller, 1, 0, 720);
enemy_sendwave(250, -10, driller, 1, 0, 720);
enemy_sendwave(200, -10, driller, 1, 0, 740);
enemy_sendwave(200, -10, follower, 4, 400, 820);
enemy_sendwave(100, -10, shooter, 2, 400, 840);
enemy_sendwave(300, -10, shooter, 2, 400, 840);
enemy_sendwave(100, -10, sinus, 5, 300, 920);
enemy_sendwave(300, -10, sinus, 5, 300, 920);
enemy_sendwave(200, -10, beamer, 3, 1000, 1000);
break;
case 31 :
enemy_sendwave(200, -10, beamer, 3, 1000, 80);
enemy_sendwave(30, -10, shooter, 3, 400, 280);
enemy_sendwave(370, -10, shooter, 3, 400, 280);
enemy_sendwave(150, -10, driller, 3, 400, 360);
enemy_sendwave(250, -10, driller, 3, 400, 360);
enemy_sendwave(200, -10, follower, 5, 400, 420);
enemy_sendwave(100, -10, sinus, 3, 400, 480);
enemy_sendwave(200, -10, sinus, 5, 400, 500);
enemy_sendwave(300, -10, sinus, 3, 400, 480);
enemy_sendwave(150, -10, driller, 3, 400, 540);
enemy_sendwave(200, -10, driller, 3, 400, 560);
enemy_sendwave(350, -10, driller, 3, 400, 540);
enemy_sendwave(200, -10, beamer, 3, 1000, 640);
enemy_sendwave(199, -10, tripler, 2, 400, 720);
enemy_sendwave(201, -10, tripler, 2, 400, 720);
enemy_sendwave(100, -10, sinus, 3, 400, 800);
enemy_sendwave(200, -10, sinus, 5, 400, 820);
enemy_sendwave(300, -10, sinus, 3, 400, 800);
enemy_sendwave(100, -10, beamer, 2, 1000, 880);
enemy_sendwave(300, -10, beamer, 2, 1000, 880);
enemy_sendwave(200, -10, follower, 5, 400, 940);
enemy_sendwave(30, -10, shooter, 3, 400, 1020);
enemy_sendwave(370, -10, shooter, 3, 400, 1020);
break;
case 32 :
enemy_sendwave(30, -10, tripler, 3, 400, 80);
enemy_sendwave(370, -10, tripler, 3, 400, 80);
enemy_sendwave(200, -10, driller, 3, 400, 160);
enemy_sendwave(50 + random(300), -10, beamer, 2, 1000, 240);
enemy_sendwave(50 + random(300), -10, beamer, 2, 1000, 240);
enemy_sendwave(50, -10, shooter, 3, 400, 320);
enemy_sendwave(350, -10, shooter, 3, 400, 320);
enemy_sendwave(100, -10, follower, 1, 0, 360);
enemy_sendwave(300, -10, follower, 1, 0, 360);
enemy_sendwave(150, -10, follower, 1, 0, 380);
enemy_sendwave(250, -10, follower, 1, 0, 380);
enemy_sendwave(200, -10, follower, 1, 0, 400);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 480);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 520);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 560);
enemy_sendwave(50 + random(300), -10, beamer, 2, 1000, 660);
enemy_sendwave(50 + random(300), -10, beamer, 2, 1000, 660);
enemy_sendwave(100, -10, follower, 1, 0, 760);
enemy_sendwave(300, -10, follower, 1, 0, 760);
enemy_sendwave(150, -10, follower, 1, 0, 780);
enemy_sendwave(250, -10, follower, 1, 0, 780);
enemy_sendwave(200, -10, follower, 1, 0, 800);
enemy_sendwave(30, -10, tripler, 3, 400, 880);
enemy_sendwave(370, -10, tripler, 3, 400, 880);
enemy_sendwave(200, -10, shooter, 4, 400, 940);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 1020);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 1060);
enemy_sendwave(50 + random(300), -10, driller, 3, 400, 1100);
enemy_sendwave(50 + random(300), -10, beamer, 2, 1000, 1100);
enemy_sendwave(50 + random(300), -10, beamer, 2, 1000, 1100);
break;
case 33 :
enemy_sendwave(50, -10, faller, 10, 350, 80);
enemy_sendwave(199, -10, faller, 10, 350, 80);
enemy_sendwave(50, -10, sinus, 5, 400, 280);
enemy_sendwave(200, -10, sinus, 6, 400, 300);
enemy_sendwave(350, -10, sinus, 5, 400, 280);
enemy_sendwave(50, -10, follower, 4, 400, 480);
enemy_sendwave(350, -10, follower, 4, 400, 480);
enemy_sendwave(100, -10, follower, 3, 400, 500);
enemy_sendwave(300, -10, follower, 3, 400, 500);
enemy_sendwave(150, -10, follower, 2, 400, 520);
enemy_sendwave(250, -10, follower, 2, 400, 520);
enemy_sendwave(200, -10, shooter, 12, 300, 640);
enemy_sendwave(150, -10, beamer, 3, 800, 740);
enemy_sendwave(250, -10, beamer, 3, 800, 740);
enemy_sendwave(200, -10, beamer, 3, 800, 760);
enemy_sendwave(50 + random(300), -10, driller, 4, 400, 900);
enemy_sendwave(50 + random(300), -10, driller, 4, 400, 920);
enemy_sendwave(50 + random(300), -10, driller, 4, 400, 940);
enemy_sendwave(50 + random(300), -10, driller, 4, 400, 960);
enemy_sendwave(50, -10, tripler, 4, 400, 1050);
enemy_sendwave(199, -10, tripler, 4, 400, 1050);
break;
case 34 :
enemy_sendwave(200, -10, endBoss, 1, 0, 80);
}
}
function isCleared() {
for (i in _root) {
if ((_root[i]._name.indexOf("enemy") != -1) && (_root[i]._name != undefined)) {
return(false);
}
}
return(true);
}
function enemy_sendwave(xpos, ypos, type, n, delay, time) {
if (wavetimer == time) {
enemy_spawn(xpos, ypos, type, n, delay);
}
}
function enemy_spawn(xpos, ypos, type, n, delay) {
_root["spawnInterval" + intervaltemp] = setInterval(enemy_spawn2, delay, xpos, ypos, type, n, intervaltemp);
_root["spawnCount" + intervaltemp] = 0;
intervaltemp++;
if (intervaltemp >= 50) {
intervaltemp = 0;
}
}
function enemy_spawn2(xpos, ypos, type, n, intNumber) {
if (!gamePaused) {
if (_root["spawnCount" + intNumber] < n) {
ec++;
if (ec >= 1100) {
ec = 1000;
}
type.duplicateMovieClip("enemy" + ec, ec);
_root["enemy" + ec]._x = xpos;
_root["enemy" + ec]._y = ypos;
enemyArray[findEmptyPos(enemyArray)] = _root["enemy" + ec];
_root["spawnCount" + intNumber]++;
if (wave_left > 0) {
wave_left--;
}
} else {
_root["spawnCount" + intNumber] = 0;
clearInterval(_root["spawnInterval" + intNumber]);
}
}
}
function findArrayPos(A, subject) {
i = 0;
while (i < A.length) {
if (A[i] === subject) {
return(i);
}
i++;
}
}
function findEmptyPos(A) {
i = 0;
while (i < A.length) {
if (A[i]._name == undefined) {
return(i);
}
i++;
}
return(A.length);
}
function collisionDetect() {
i = 0;
while (i < enemyArray.length) {
if (enemyArray[i].clipping) {
j = 0;
while (j < bulletArray.length) {
if (enemyArray[i].hitTest(bulletArray[j])) {
enemyArray[i].health = enemyArray[i].health - bulletArray[j].damage;
if (!bulletArray[j].exploding) {
bulletArray[j].gotoAndPlay(bulletArray[j].death);
}
if (enemyArray[i].health <= 0) {
game_killed++;
money = money + enemyArray[i].bounty;
moneyText = money;
enemyArray[i].gotoAndPlay(enemyArray[i].death);
} else {
enemyArray[i].gotoAndPlay(enemyArray[i].hit);
}
break;
}
j++;
}
}
i++;
}
}
function enemy_shoot(subject, phi, n, projectile) {
if ((subject._y < field_yoffset) && (!gamePaused)) {
if (phi != 0) {
if (phi != 360) {
section = phi / (n - 1);
} else {
section = phi / n;
}
startangle = subject._rotation - (phi / 2);
d = 0;
while (d < n) {
c = 2000 + findEmptyPos(eshotArray);
projectile.duplicateMovieClip("eshot" + c, c);
_root["eshot" + c]._x = subject._x;
_root["eshot" + c]._y = subject._y;
_root["eshot" + c]._rotation = startangle + (d * section);
_root["eshot" + c].xmove = getXmove(startangle + (d * section));
_root["eshot" + c].ymove = getYmove(startangle + (d * section));
eshotArray[findEmptyPos(eshotArray)] = _root["eshot" + c];
d++;
}
} else {
c = 2000 + findEmptyPos(eshotArray);
projectile.duplicateMovieClip("eshot" + c, c);
_root["eshot" + c]._x = subject._x;
_root["eshot" + c]._y = subject._y;
eshotArray[findEmptyPos(eshotArray)] = _root["eshot" + c];
}
}
}
function turretA_shoot(subject) {
if (enemy_inTarget(subject._x + 15) && (!gamePaused)) {
shootListener.sc++;
if (shootListener.sc > 600) {
shootListener.sc = 500;
}
_root.turretshot.duplicateMovieClip("bullet" + shootListener.sc, shootListener.sc);
_root["bullet" + shootListener.sc]._x = subject._x + 15;
_root["bullet" + shootListener.sc]._y = subject._y - 5;
_root["bullet" + shootListener.sc].xmove = 0;
_root["bullet" + shootListener.sc].ymove = -1;
_root["bullet" + shootListener.sc].damage = 0;
bulletArray[findEmptyPos(bulletArray)] = _root["bullet" + shootListener.sc];
}
}
function turretB_shoot(subject) {
if ((!isCleared()) && (!gamePaused)) {
target = getNextEnemy();
shootListener.sc++;
if (shootListener.sc > 600) {
shootListener.sc = 500;
}
_root.rocketshot.duplicateMovieClip("bullet" + shootListener.sc, shootListener.sc);
_root["bullet" + shootListener.sc]._x = subject._x + 10;
_root["bullet" + shootListener.sc]._y = subject._y - 5;
_root["bullet" + shootListener.sc].target = target;
_root["bullet" + shootListener.sc].damage = 0;
bulletArray[findEmptyPos(bulletArray)] = _root["bullet" + shootListener.sc];
}
}
function turretC_shoot(subject) {
if ((!isCleared()) && (!gamePaused)) {
target = getNextEnemy();
shootListener.sc++;
if (shootListener.sc > 600) {
shootListener.sc = 500;
}
_root.orbshot.duplicateMovieClip("bullet" + shootListener.sc, shootListener.sc);
_root["bullet" + shootListener.sc]._x = subject._x + 20;
_root["bullet" + shootListener.sc]._y = subject._y - 9;
_root["bullet" + shootListener.sc].target = target;
_root["bullet" + shootListener.sc].damage = 0;
bulletArray[findEmptyPos(bulletArray)] = _root["bullet" + shootListener.sc];
}
}
function turret_newInterval(subject) {
if (!isNaN(subject.turType)) {
clearInterval(subject.shootInterval);
switch (subject.turType) {
case 0 :
subject.shootInterval = setInterval(_root.turretA_shoot, subject.baseshootrate - (30 * upgrade_turratelevel), subject);
break;
case 1 :
subject.shootInterval = setInterval(_root.turretB_shoot, subject.baseshootrate - (70 * upgrade_turratelevel), subject);
break;
case 2 :
subject.shootInterval = setInterval(_root.turretC_shoot, subject.baseshootrate - (70 * upgrade_turratelevel), subject);
}
}
}
function enemy_inTarget(xpos) {
i = 1000;
while (i <= 1100) {
if (_root["enemy" + i]._name != undefined) {
if ((_root["enemy" + i]._x >= (xpos - 50)) && (_root["enemy" + i]._x <= (xpos + 50))) {
return(true);
}
}
i++;
}
return(false);
}
if (wave >= 1) {
gotoAndPlay (8);
} else {
gotoAndPlay (7);
}
Mouse.hide();
counter = 0;
intervaltemp = 0;
wavetimer = 0;
wave_left = 0;
game_killed = 0;
money = 400;
gamePaused = false;
upgrade_ratelevel = 0;
upgrade_powlevel = 0;
upgrade_turratelevel = 0;
upgrade_turpowlevel = 0;
upgrade_durablevel = 0;
livesPurchased = 0;
health = 40;
enemyArray = new Array();
eshotArray = new Array();
bulletArray = new Array();
ec = 1000;
pc = 1100;
bc = 1300;
boom.prototyp = true;
emp.prototyp = true;
faller.prototyp = true;
sinus.prototyp = true;
shooter.prototyp = true;
follower.prototyp = true;
tripler.prototyp = true;
beamer.prototyp = true;
driller.prototyp = true;
bombBoss.prototyp = true;
drillBoss.prototyp = true;
shootBoss.prototyp = true;
endBoss.prototyp = true;
sinusBullet.prototyp = true;
shooterBullet.prototyp = true;
triplerBullet.prototyp = true;
beamerBullet.prototyp = true;
bombBullet.prototyp = true;
lightBullet.prototyp = true;
playershot.prototyp = true;
rocketshot.prototyp = true;
orbshot.prototyp = true;
playerturret.prototyp = true;
turretB.prototyp = true;
turretC.prototyp = true;
amplifier.immobile = true;
for (i in _root) {
if (((((_root[i]._name.indexOf("brick") != -1) || (_root[i]._name.indexOf("semi") != -1)) || (_root[i]._name.indexOf("reflect") != -1)) || (_root[i]._name.indexOf("turret") != -1)) && (_root[i]._name != undefined)) {
_root[i].immobile = true;
}
}
playerturret.duplicateMovieClip("player", 7777);
_root.player._x = 200;
_root.player._y = 430;
player.lives = 3;
player.bombs = 3;
shootListener = new Object();
shootListener.addProperty(isShooting, null, null);
shootListener.addProperty(sc, null, null);
shootListener.sc = 500;
shootListener.player_shoot = function () {
if ((shootListener.isShooting && (!gamePaused)) && (player.shootrateCounter > player.shootrate)) {
shootListener.sc++;
player.shootrateCounter = 0;
if (shootListener.sc > 600) {
shootListener.sc = 500;
}
_root.playershot.duplicateMovieClip("bullet" + shootListener.sc, shootListener.sc);
_root["bullet" + shootListener.sc]._x = _root.player._x;
_root["bullet" + shootListener.sc]._y = _root.player._y;
_root["bullet" + shootListener.sc].xmove = 0;
_root["bullet" + shootListener.sc].ymove = -1;
bulletArray[findEmptyPos(bulletArray)] = _root["bullet" + shootListener.sc];
}
};
shootListener.onMouseDown = function () {
shootListener.isShooting = true;
};
shootListener.onMouseUp = function () {
shootListener.isShooting = false;
};
empListener = new Object();
empListener.onKeyDown = function () {
if (Key.isDown(32) && (!gamePaused)) {
if (player.bombs > 0) {
play_sound(bgsfx, "emp", 1);
_root["bomb" + player.bombs].removeMovieClip();
player.bombs = player.bombs - 1;
shootListener.sc++;
if (shootListener.sc > 600) {
shootListener.sc = 500;
}
emp.duplicateMovieClip("bullet" + shootListener.sc, shootListener.sc);
_root["bullet" + shootListener.sc]._x = player._x;
_root["bullet" + shootListener.sc]._y = player_y;
bulletArray[findEmptyPos(bulletArray)] = _root["bullet" + shootListener.sc];
}
}
};
pauseListener = new Object();
pauseListener.onKeyDown = function () {
if (Key.isDown(80)) {
if (!gamePaused) {
play_sound(bgsfx, "pause_an", 1);
bgmusic.setVolume(0);
gamePaused = true;
pauseClip._visible = true;
} else {
play_sound(bgsfx, "pause_aus", 1);
bgmusic.setVolume(100);
gamePaused = false;
pauseClip._visible = false;
}
}
};
muteListener = new Object();
muteListener.onKeyDown = function () {
if (Key.isDown(77)) {
if (!isMuted) {
bgmusic.setVolume(0);
isMuted = true;
} else {
bgmusic.setVolume(100);
isMuted = false;
}
}
};
field_yoffset = 320;
field_xsize = 40;
field_ysize = 8;
fieldArray = new Array(field_ysize);
i = 0;
while (i < field_ysize) {
fieldArray[i] = new Array(field_xsize);
i++;
}
Instance of Symbol 110 MovieClip "orbit" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
}
Instance of Symbol 128 MovieClip "buildzone" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 102 MovieClip in Frame 6
onClipEvent (load) {
this.swapDepths(999999);
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 122 MovieClip "playerturret" in Frame 6
onClipEvent (load) {
if (!prototyp) {
sfx = new Sound(this);
death = 2;
clipping = true;
speed = 7;
xspeed = 0;
acceleration = 0.4;
shootrate = 9;
shootrateCounter = 0;
}
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_root.shootListener.player_shoot();
shootrateCounter++;
dx = _root._xmouse - _x;
if (dx < -5) {
if (xspeed > -1) {
xspeed = xspeed - acceleration;
}
} else if (dx > 5) {
if (xspeed < 1) {
xspeed = xspeed + acceleration;
}
} else {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
if (Math.abs(xspeed) < 0.1) {
xspeed = 0;
}
}
if (_x <= 0) {
_x = 0;
} else if (_x >= 400) {
_x = 400;
}
_x = (_x + (xspeed * speed));
_rotation = (12 * xspeed);
if (clipping) {
_root.player_hit();
}
}
}
Instance of Symbol 105 MovieClip "playershot" in Frame 6
onClipEvent (load) {
speed = 9;
damage = 30 + (_root.upgrade_powlevel * 8);
death = 2;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_y <= 0) {
_root.bulletArray.splice(_root.findArrayPos(_root.bulletArray, this), 1);
this.removeMovieClip();
}
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
}
}
Instance of Symbol 140 MovieClip "faller" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
speed = 1.5;
ymove = 1;
if (_x <= 200) {
xmove = 2;
} else {
xmove = -2;
}
health = 30;
damage = 18;
bounty = 7;
hit = 2;
death = 18;
clipping = true;
piercing = false;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
if (_x <= 50) {
sfx.setPan(-100);
} else if ((_x > 50) && (_x < 350)) {
sfx.setPan(((_x - 200) * 2) / 3);
} else if (_x >= 350) {
sfx.setPan(100);
}
_rotation = (_rotation + (speed * 2));
_y = (_y + (ymove * speed));
_x = (_x + (xmove * speed));
if (_x <= 0) {
_x = 0;
xmove = -xmove;
}
if (_x >= 400) {
_x = 400;
xmove = -xmove;
}
if (clipping) {
if (_y > 485) {
gotoAndPlay(death);
_root.health = _root.health - 1;
_root.healthText = _root.health;
if (_root.health <= 0) {
_root.gotoAndPlay(9);
}
_root.orbit.gotoAndPlay(2);
}
if (_y >= (_root.field_yoffset - _height)) {
_root.field_hit(this);
}
}
}
}
Instance of Symbol 33 MovieClip "brick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
hit = 2;
death = 3;
upgradeFactor = 50;
maxhealth = 100 + (_root.upgrade_durablevel * upgradeFactor);
health = maxhealth;
condition = new Color(this);
}
Instance of Symbol 141 MovieClip "lbrick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.brick.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 142 MovieClip "rbrick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.brick.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 143 MovieClip "sbrick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.brick.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 144 MovieClip "zbrick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.brick.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 145 MovieClip "obrick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.brick.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 146 MovieClip "tbrick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.brick.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 147 MovieClip "ibrick" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.brick.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 149 MovieClip "sinus" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
xmove = 0;
ymove = 1;
speed = 4;
health = 15;
damage = 21;
bounty = 14;
hit = 2;
death = 18;
clipping = true;
piercing = false;
trailrate = 8;
trailChance = 0;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
if (_x <= 50) {
sfx.setPan(-100);
} else if ((_x > 50) && (_x < 350)) {
sfx.setPan(((_x - 200) * 2) / 3);
} else if (_x >= 350) {
sfx.setPan(100);
}
xmove = Math.sin(_y / 40);
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 270);
if (clipping) {
if (_y > 485) {
this.gotoAndPlay(death);
_root.health = _root.health - 1;
_root.healthText = _root.health;
if (_root.health <= 0) {
_root.gotoAndPlay(9);
}
_root.orbit.gotoAndPlay(2);
}
if (_y >= (_root.field_yoffset - _height)) {
_root.field_hit(this);
}
}
shootChance = random(1000);
if ((shootChance % 358) == 0) {
_root.enemy_shoot(this, 0, 0, _root.sinusBullet);
}
trailChance++;
if ((trailChance % trailrate) == 0) {
_root.sinus_trail(this);
}
}
}
Instance of Symbol 155 MovieClip "shooter" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
xmove = -1 + (random(20) / 10);
ymove = 1;
speed = 2.5;
health = 75;
damage = 31;
bounty = 29;
hit = 2;
death = 18;
clipping = true;
piercing = false;
shootrate = 40 + random(10);
shootChance = 0;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
if (_x <= 50) {
sfx.setPan(-100);
} else if ((_x > 50) && (_x < 350)) {
sfx.setPan(((_x - 200) * 2) / 3);
} else if (_x >= 350) {
sfx.setPan(100);
}
dx = _root.player._x - _x;
dy = _root.player._y - _y;
phi = Math.atan2(dy, dx);
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_x < 0) {
_x = 0;
xmove = -xmove;
}
if (_x > 400) {
_x = 400;
xmove = -xmove;
}
if (clipping) {
if (_y > 485) {
this.gotoAndPlay(death);
_root.health = _root.health - 1;
_root.healthText = _root.health;
if (_root.health <= 0) {
_root.gotoAndPlay(9);
}
_root.orbit.gotoAndPlay(2);
}
if (_y >= (_root.field_yoffset - _height)) {
_root.field_hit(this);
}
}
if (_y < 320) {
_rotation = (((phi * 180) / Math.PI) + 270);
}
shootChance++;
if ((shootChance % shootrate) == 0) {
_root.enemy_shoot(this, 0, 0, _root.shooterBullet);
}
}
}
Instance of Symbol 159 MovieClip "follower" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
speed = 4;
health = 45;
damage = 27;
bounty = 23;
hit = 2;
death = 18;
clipping = true;
piercing = false;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
if (_x <= 50) {
sfx.setPan(-100);
} else if ((_x > 50) && (_x < 350)) {
sfx.setPan(((_x - 200) * 2) / 3);
} else if (_x >= 350) {
sfx.setPan(100);
}
dx = _root.player._x - _x;
dy = _root.player._y - _y;
phi = Math.atan2(dy, dx);
if (_y < 320) {
xmove = Math.cos(phi);
ymove = Math.sin(phi);
_rotation = (((phi * 180) / Math.PI) + 270);
}
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (clipping) {
if (_y > 485) {
this.gotoAndPlay(death);
_root.health = _root.health - 1;
_root.healthText = _root.health;
if (_root.health <= 0) {
_root.gotoAndPlay(9);
}
_root.orbit.gotoAndPlay(2);
}
if (_y >= (_root.field_yoffset - _height)) {
_root.field_hit(this);
}
}
}
}
Instance of Symbol 163 MovieClip "tripler" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
if (_x >= 200) {
xmove = -(1 + (random(10) / 10));
} else {
xmove = 1 + (random(10) / 10);
}
ymove = 1;
speed = 1;
health = 90;
damage = 30;
bounty = 31;
hit = 2;
death = 18;
clipping = true;
piercing = false;
shootrate = 80 + random(20);
shootChance = 0;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
if (_x <= 50) {
sfx.setPan(-100);
} else if ((_x > 50) && (_x < 350)) {
sfx.setPan(((_x - 200) * 2) / 3);
} else if (_x >= 350) {
sfx.setPan(100);
}
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_x < 0) {
_x = 0;
xmove = -xmove;
}
if (_x > 400) {
_x = 400;
xmove = -xmove;
}
if (clipping) {
if (_y > 485) {
this.gotoAndPlay(death);
_root.health = _root.health - 1;
_root.healthText = _root.health;
if (_root.health <= 0) {
_root.gotoAndPlay(9);
}
_root.orbit.gotoAndPlay(2);
}
if (_y >= (_root.field_yoffset - _height)) {
_root.field_hit(this);
}
}
shootChance++;
if ((shootChance % shootrate) == 0) {
_root.enemy_shoot(this, 36, 3, _root.triplerBullet);
}
}
}
Instance of Symbol 168 MovieClip "beamer" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
xmove = 0;
ymove = 1;
speed = 1.2;
health = 120;
damage = 36;
bounty = 35;
hit = 2;
death = 23;
clipping = true;
piercing = false;
shootrate = 110 + random(40);
shootChance = 0;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
if (_x <= 50) {
sfx.setPan(-100);
} else if ((_x > 50) && (_x < 350)) {
sfx.setPan(((_x - 200) * 2) / 3);
} else if (_x >= 350) {
sfx.setPan(100);
}
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (clipping) {
if (_y > 485) {
this.gotoAndPlay(death);
_root.health = _root.health - 1;
_root.healthText = _root.health;
if (_root.health <= 0) {
_root.gotoAndPlay(9);
}
_root.orbit.gotoAndPlay(2);
}
if (_y >= (_root.field_yoffset - _height)) {
_root.field_hit(this);
}
}
shootChance++;
if ((shootChance % shootrate) == 0) {
_root.enemy_shoot(this, 0, 1, _root.beamerBullet);
}
}
}
Instance of Symbol 173 MovieClip "driller" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
basespeed = 2.5;
speed = 2.5;
ymove = 1;
xmove = 0;
health = 90;
damage = 2;
bounty = 34;
hit = 2;
death = 18;
clipping = true;
piercing = true;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
if (_x <= 50) {
sfx.setPan(-100);
} else if ((_x > 50) && (_x < 350)) {
sfx.setPan(((_x - 200) * 2) / 3);
} else if (_x >= 350) {
sfx.setPan(100);
}
_y = (_y + (ymove * speed));
if (clipping) {
if (_y > 485) {
gotoAndPlay(death);
_root.health = _root.health - 1;
_root.healthText = _root.health;
if (_root.health <= 0) {
_root.gotoAndPlay(9);
}
_root.orbit.gotoAndPlay(2);
}
if (_y >= (_root.field_yoffset - _height)) {
if (_root.field_hit(this)) {
speed = 0;
} else {
speed = basespeed;
}
}
}
}
}
Instance of Symbol 175 MovieClip "semi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
hit = 2;
death = 3;
upgradeFactor = 75;
maxhealth = 150 + (_root.upgrade_durablevel * upgradeFactor);
health = maxhealth;
condition = new Color(this);
}
Instance of Symbol 179 MovieClip "reflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
hit = 2;
death = 3;
upgradeFactor = 75;
maxhealth = 150 + (_root.upgrade_durablevel * upgradeFactor);
health = maxhealth;
condition = new Color(this);
}
Instance of Symbol 185 MovieClip "amplifier" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
i = 1;
while (i <= 4) {
this["brick" + i]._visible = false;
i++;
}
if (!immobile) {
color = new Color(this);
}
if (immobile) {
hit = 2;
death = 3;
upgradeFactor = 40;
maxhealth = 70 + (_root.upgrade_durablevel * upgradeFactor);
health = maxhealth;
condition = new Color(this);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.amplifier.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = _x;
_root["brick" + _root.bc]._y = _y;
_root["brick" + _root.bc].immobile = true;
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 187 MovieClip "turretA" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
i = 1;
while (i <= 4) {
this["brick" + i]._visible = false;
i++;
}
if (!immobile) {
color = new Color(this);
}
if (immobile) {
turType = 0;
baseshootrate = 400;
shootInterval = setInterval(_root.turretA_shoot, 400, this);
hit = 2;
death = 3;
upgradeFactor = 50;
maxhealth = 70 + (_root.upgrade_durablevel * upgradeFactor);
health = maxhealth;
condition = new Color(this);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.turretA.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = _x;
_root["brick" + _root.bc]._y = _y;
_root["brick" + _root.bc].immobile = true;
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 189 MovieClip "turretB" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
i = 1;
while (i <= 4) {
this["brick" + i]._visible = false;
i++;
}
if (!immobile) {
color = new Color(this);
}
if (immobile && (!prototyp)) {
turType = 1;
baseshootrate = 1600;
shootInterval = setInterval(_root.turretB_shoot, 1600, this);
hit = 2;
death = 3;
upgradeFactor = 60;
maxhealth = 100 + (_root.upgrade_durablevel * upgradeFactor);
health = maxhealth;
condition = new Color(this);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.turretB.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = _x;
_root["brick" + _root.bc]._y = _y;
_root["brick" + _root.bc].immobile = true;
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 191 MovieClip "turretC" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
i = 1;
while (i <= 4) {
this["brick" + i]._visible = false;
i++;
}
if (!immobile) {
color = new Color(this);
}
if (immobile && (!prototyp)) {
turType = 2;
baseshootrate = 2000;
shootInterval = setInterval(_root.turretC_shoot, 2000, this);
hit = 2;
death = 3;
upgradeFactor = 60;
maxhealth = 100 + (_root.upgrade_durablevel * upgradeFactor);
health = maxhealth;
condition = new Color(this);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.turretC.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = _x;
_root["brick" + _root.bc]._y = _y;
_root["brick" + _root.bc].immobile = true;
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 192 MovieClip "lsemi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.semi.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 193 MovieClip "rsemi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.semi.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 194 MovieClip "ssemi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.semi.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 195 MovieClip "zsemi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.semi.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 196 MovieClip "osemi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.semi.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 197 MovieClip "tsemi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.semi.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 198 MovieClip "isemi" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.semi.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 199 MovieClip "lreflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.reflect.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 200 MovieClip "rreflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.reflect.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 201 MovieClip "zreflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.reflect.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 202 MovieClip "sreflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.reflect.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 203 MovieClip "oreflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.reflect.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 204 MovieClip "treflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.reflect.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 205 MovieClip "ireflect" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
rotationListener = new Object();
rotationListener.onKeyDown = function () {
if (Key.isDown(32)) {
_root.play_sound(sfx, "click_hi", 1);
play();
}
};
if (!immobile) {
color = new Color(this);
Key.addListener(rotationListener);
}
}
onClipEvent (enterFrame) {
if (!this.immobile) {
if (!_root.isAttachable(this)) {
color.setRGB(16711680);
} else {
color.setRGB(16777215);
}
if ((_y >= _root.field_yoffset) && (_y <= 400)) {
_x = (int(_root._xmouse / 10) * 10);
_y = (int(_root._ymouse / 10) * 10);
onMouseDown = function () {
if ((((_y >= _root.field_yoffset) && (_y < 400)) && (!this.immobile)) && (_root.isAttachable(this))) {
_root.play_sound(sfx, "click_lo", 1);
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.bc++;
if (_root.bc > 1700) {
_root.bc = 1300;
}
_root.reflect.duplicateMovieClip("brick" + _root.bc, _root.bc);
_root["brick" + _root.bc]._x = field_x * 10;
_root["brick" + _root.bc]._y = _root.field_yoffset + (field_y * 10);
_root["brick" + _root.bc].immobile = true;
_root.fieldArray[field_y][field_x] = _root["brick" + _root.bc];
i++;
}
Key.removeListener(rotationListener);
this.removeMovieClip();
}
};
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
Instance of Symbol 207 MovieClip "sinusBullet" in Frame 6
onClipEvent (load) {
speed = 5;
xmove = 0;
ymove = 1;
damage = 18;
death = 2;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_rotation = (_rotation + 15);
_y = (_y + (ymove * speed));
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
if (_y >= 500) {
gotoAndPlay(death);
}
}
}
Instance of Symbol 209 MovieClip "particle" in Frame 6
onClipEvent (load) {
speed = 1;
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
}
onClipEvent (enterFrame) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
}
Instance of Symbol 211 MovieClip "rocketshot" in Frame 6
onClipEvent (load) {
speed = 7;
damage = 20 + (_root.upgrade_turpowlevel * 5);
death = 2;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
dx = target._x - _x;
dy = target._y - _y;
if ((((target._name != undefined) && (target._x <= 400)) && (target._y <= 500)) && (dy < 0)) {
phi = Math.atan2(dy, dx);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
_rotation = (((phi * 180) / Math.PI) + 90);
} else {
xmove = _root.getXmove(_rotation - 180);
ymove = _root.getYmove(_rotation - 180);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
if ((_x <= 0) || (_x >= 400)) {
this.removeMovieClip();
}
if ((_y <= 0) || (_y >= 500)) {
this.removeMovieClip();
}
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
}
}
Instance of Symbol 214 MovieClip "orbshot" in Frame 6
onClipEvent (load) {
speed = 6;
damage = 3 + (_root.upgrade_turpowlevel * 1);
death = 2;
exploding = false;
trailrate = 8;
trailChance = 0;
}
onClipEvent (enterFrame) {
if (((!prototyp) && (!exploding)) && (!_root.gamePaused)) {
dx = target._x - _x;
dy = target._y - _y;
if ((((target._name != undefined) && (target._x <= 400)) && (target._y <= 500)) && (dy < 0)) {
phi = Math.atan2(dy, dx);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
_rotation = (((phi * 180) / Math.PI) + 90);
} else {
xmove = _root.getXmove(_rotation - 180);
ymove = _root.getYmove(_rotation - 180);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
if ((_x <= 0) || (_x >= 400)) {
clearInterval(trailInterval);
this.removeMovieClip();
}
if ((_y <= 0) || (_y >= 500)) {
clearInterval(trailInterval);
this.removeMovieClip();
}
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
trailChance++;
if ((trailChance % trailrate) == 0) {
_root.orb_trail(this);
}
}
}
Instance of Symbol 105 MovieClip "turretshot" in Frame 6
onClipEvent (load) {
speed = 9;
damage = 15 + (_root.upgrade_turpowlevel * 5);
death = 2;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_y <= 0) {
_root.bulletArray.splice(_root.findArrayPos(_root.bulletArray, this), 1);
this.removeMovieClip();
}
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
}
}
Instance of Symbol 221 MovieClip "boom" in Frame 6
onClipEvent (load) {
damage = 120;
}
Instance of Symbol 223 MovieClip "emp" in Frame 6
onClipEvent (load) {
damage = 120;
}
Instance of Symbol 225 MovieClip "shooterBullet" in Frame 6
onClipEvent (load) {
speed = 7;
dx = _root.player._x - _x;
dy = _root.player._y - _y;
phi = Math.atan2(dy, dx);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
_rotation = (((phi * 180) / Math.PI) + 90);
damage = 23;
death = 2;
clipping = true;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_y = (_y + (ymove * speed));
_x = (_x + (xmove * speed));
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
if (_y >= 500) {
gotoAndPlay(death);
}
}
}
Instance of Symbol 228 MovieClip "triplerBullet" in Frame 6
onClipEvent (load) {
speed = 5;
damage = 33;
death = 2;
clipping = true;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_y = (_y + (ymove * speed));
_x = (_x + (xmove * speed));
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
if (_y >= 500) {
this.gotoAndPlay(death);
}
}
}
Instance of Symbol 231 MovieClip "beamerBullet" in Frame 6
onClipEvent (load) {
speed = 3;
xmove = 0;
ymove = 1;
damage = 31;
death = 12;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_y = (_y + (ymove * speed));
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
if (_y >= 500) {
gotoAndPlay(death);
}
}
}
Instance of Symbol 236 MovieClip "bombBoss" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
xmove = 1;
ymove = 0.5;
health = 2800;
maxhealth = 2800;
speed = 4;
damage = 50;
bounty = 300;
hit = 2;
death = 18;
unloadFrame = 86;
clipping = true;
piercing = false;
shootrate = 23;
shootChance = 0;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_y >= 75) {
ymove = 0;
} else {
ymove = 0.5;
}
if (_x < 100) {
xmove = -xmove;
}
if (_x > 300) {
xmove = -xmove;
}
if (health > 0) {
shootChance++;
if ((shootChance % shootrate) == 0) {
_root.enemy_shoot(this, 0, 1, _root.bombBullet);
}
}
}
}
Instance of Symbol 238 MovieClip "bombBullet" in Frame 6
onClipEvent (load) {
speed = 6;
xmove = 0;
ymove = 1;
damage = 20;
death = 2;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_rotation = (_rotation + 15);
_y = (_y + (ymove * speed));
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
if (_y >= 500) {
gotoAndPlay(death);
}
}
}
Instance of Symbol 243 MovieClip "drillBoss" in Frame 6
onClipEvent (load) {
function letsDrill() {
time = 0;
ymove = 0.7;
xmove = 0;
hitZone.piercing = true;
timeInterval = setInterval(function () {
time++;
if (time >= 4) {
clearInterval(timeInterval);
ymove = -0.7;
}
}, 1000);
}
sfx = new Sound(this);
xmove = 1;
ymove = 0.5;
health = 4500;
maxhealth = 4500;
basespeed = 4;
speed = 4;
damage = 5;
bounty = 700;
hit = 2;
death = 18;
unloadFrame = 121;
clipping = true;
piercing = false;
if (!prototyp) {
drillInterval = setInterval(letsDrill, 8000);
}
hitZone = new MovieClip();
hitZone._width = 37;
hitZone._height = 64;
hitZone.piercing = false;
hitZone.damage = 3;
hitZone._name = "hitzone";
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
hitZone._x = _x;
hitZone._y = _y + 30;
if (hitZone.piercing) {
if (_y <= 75) {
ymove = 0;
xmove = 1;
hitZone.piercing = false;
}
if (_y >= 340) {
ymove = -0.7;
hitZone.piercing = false;
}
} else {
if ((_y >= 75) && (_y < 100)) {
ymove = 0;
}
if ((_x < 100) && (xmove < 0)) {
xmove = -xmove;
}
if ((_x > 300) && (xmove > 0)) {
xmove = -xmove;
}
}
if (_y >= (_root.field_yoffset - _height)) {
if (_root.field_hit(hitZone)) {
speed = 0;
} else {
speed = basespeed;
}
}
}
}
Instance of Symbol 245 MovieClip "shootBoss" in Frame 6
onClipEvent (load) {
sfx = new Sound(this);
xmove = 1;
ymove = 0.5;
health = 7000;
maxhealth = 7000;
speed = 4;
damage = 50;
bounty = 1000;
hit = 2;
death = 18;
unloadFrame = 86;
clipping = true;
piercing = false;
shootZone = new MovieClip();
shootZone._x = _x;
shootZone._y = _y + 30;
shootZone._rotation = _rotation;
shootrate = 40;
shootChance = 0;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
shootZone._x = _x;
shootZone._y = _y + 30;
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_y >= 75) {
ymove = 0;
} else {
ymove = 0.5;
}
if (_x < 50) {
xmove = -xmove;
}
if (_x > 350) {
xmove = -xmove;
}
if (health > 0) {
shootChance++;
if ((shootChance % shootrate) == 0) {
_root.enemy_shoot(shootZone, 120, 5, _root.lightBullet);
}
}
}
}
Instance of Symbol 247 MovieClip "lightBullet" in Frame 6
onClipEvent (load) {
speed = 6;
damage = 33;
death = 2;
clipping = true;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_y = (_y + (ymove * speed));
_x = (_x + (xmove * speed));
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
if (_y >= 500) {
this.gotoAndPlay(death);
}
}
}
Instance of Symbol 261 MovieClip "endBoss" in Frame 6
onClipEvent (load) {
function letsDrill() {
time = 0;
ymove = 0.7;
xmove = 0;
hitZone1.piercing = true;
hitZone2.piercing = true;
timeInterval = setInterval(function () {
time++;
if (time >= 4) {
returning = true;
clearInterval(timeInterval);
ymove = -0.7;
}
}, 1000);
}
returning = false;
xmove = 1;
ymove = 0.5;
health = 24000;
maxhealth = 24000;
basespeed = 4;
speed = 4;
damage = 0;
bounty = 0;
hit = 2;
death = 18;
unloadFrame = 138;
clipping = true;
piercing = true;
if (!prototyp) {
sfx = new Sound(this);
drillInterval = setInterval(letsDrill, 11000);
}
hitZone1 = new MovieClip();
hitZone1._width = 47.3;
hitZone1._height = 80;
hitZone1.piercing = false;
hitZone1.damage = 7;
hitZone1._name = "hitzone1";
hitZone2 = new MovieClip();
hitZone2._width = 47.3;
hitZone2._height = 80;
hitZone2.piercing = false;
hitZone2.damage = 7;
hitZone2._name = "hitzone2";
shootZone = new MovieClip();
shootZone._x = _x;
shootZone._y = _y + 35;
shootZone._rotation = _rotation;
}
onClipEvent (enterFrame) {
if ((!prototyp) && (!_root.gamePaused)) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
hitZone1._x = _x - 82;
hitZone1._y = _y + 27;
hitZone2._x = _x + 66;
hitZone2._y = _y + 27;
shootZone._x = _x;
shootZone._y = _y + 35;
if ((_y >= 320) && (hitZone1.piercing)) {
returning = true;
clearInterval(timeInterval);
ymove = -0.7;
}
if (returning) {
if ((_y >= 75) && (_y < 100)) {
ymove = 0;
xmove = 1;
hitZone1.piercing = false;
hitZone2.piercing = false;
returning = false;
}
} else {
if (((_y >= 75) && (_y < 100)) && (!hitZone1.piercing)) {
ymove = 0;
}
if ((_x < 50) && (xmove < 0)) {
xmove = -xmove;
}
if ((_x > 350) && (xmove > 0)) {
xmove = -xmove;
}
}
if (_y >= (_root.field_yoffset - _height)) {
if (_root.field_hit(hitZone1)) {
speed = 0;
}
if (_root.field_hit(hitZone2)) {
speed = 0;
} else {
speed = basespeed;
}
}
}
}
Frame 7
stop();
if ((((wave == 10) || (wave == 20)) || (wave == 30)) || (wave == 34)) {
play_sound(bgmusic, "loop_boss", 20);
} else {
play_sound(bgmusic, "loop_main", 20);
}
pauseClip._visible = false;
Mouse.addListener(_root.shootListener);
Key.addListener(_root.empListener);
Key.addListener(_root.pauseListener);
Key.addListener(_root.muteListener);
load_wave(wave);
stageText = "Stage " + wave;
moneyText = money;
healthText = health;
player.shootrate = 9 - (upgrade_ratelevel * 1);
_root.shootListener.set_interval(shootrate);
for (i in _root) {
if ((_root[i]._name.indexOf("brick") != -1) && (_root[i]._name != undefined)) {
_root.turret_newInterval(_root[i]);
}
}
j = 1;
while (j <= player.lives) {
life.duplicateMovieClip("life" + j, 5000 + j);
_root["life" + j]._y = 13;
_root["life" + j]._x = 400 - (j * 20);
j++;
}
k = 1;
while (k <= player.bombs) {
bomb.duplicateMovieClip("bomb" + k, 6000 + k);
_root["bomb" + k]._y = 29;
_root["bomb" + k]._x = 400 - (k * 20);
k++;
}
_root.onEnterFrame = function () {
if ((!gamePaused) && (wave > 0)) {
play_wave(wave);
wavetimer++;
}
killedText = ((game_killed + " (") + wave_left) + ")";
if ((wave_left <= 0) && (wave != 34)) {
if (isCleared()) {
wave_left = 999;
wave++;
gotoAndPlay (8);
}
}
collisionDetect();
if (((counter++) % 30) == 1) {
thisTime = getTimer();
rate = Math.round(10000 / (thisTime - lastTime)) / 10;
fps = rate;
} else if ((counter % 30) == 1) {
lastTime = getTimer();
}
};
Frame 8
function grid_show() {
gc = 0;
i = 0;
while (i < field_ysize) {
j = 0;
while (j < field_xsize) {
gc++;
grid.duplicateMovieClip("grid" + gc, gc);
_root["grid" + gc]._x = 10 * j;
_root["grid" + gc]._y = field_yoffset + (10 * i);
j++;
}
i++;
}
}
function grid_hide() {
gc = 0;
i = 0;
while (i < field_ysize) {
j = 0;
while (j < field_xsize) {
gc++;
_root["grid" + gc].play();
j++;
}
i++;
}
if (_root.piece._name != undefined) {
_root.piece.removeMovieClip();
_root.money = _root.money + _root.tempprice;
}
}
function isAttachable(building) {
if ((building._y >= _root.field_yoffset) && (building._y < 400)) {
i = 1;
while (i <= 4) {
point = [];
point.x = building["brick" + i]._x;
point.y = building["brick" + i]._y;
point.x = point.x + building._x;
point.y = point.y + building._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
if ((((fieldArray[field_y][field_x]._name != undefined) || (point.y < _root.field_yoffset)) || (point.y >= 400)) || (point.x >= 400)) {
return(false);
}
i++;
}
return(true);
}
return(false);
}
function field_upgrade() {
for (i in _root) {
if ((_root[i]._name.indexOf("brick") != -1) && (_root[i]._name != undefined)) {
_root[i].health = _root[i].health + _root[i].upgradeFactor;
_root[i].maxhealth = _root[i].maxhealth + _root[i].upgradeFactor;
if (_root[i].health > _root[i].maxhealth) {
_root[i].health = _root[i].maxhealth;
}
getCondition(_root[i]);
}
}
}
function wave_timer() {
timer--;
timerText = "in " + timer;
}
stop();
gamePaused = false;
play_sound(bgmusic, "loop_bauen", 20);
tempprice = 0;
_root.shootListener.isShooting = false;
Mouse.removeListener(_root.shootListener);
Key.removeListener(_root.empListener);
Key.removeListener(_root.pauseListener);
for (i in _root) {
if (((_root[i]._name.indexOf("life") != -1) || (_root[i]._name.indexOf("bomb") != -1)) && (_root[i]._name != undefined)) {
_root[i].removeMovieClip();
}
}
j = 0;
while (j < eshotArray.length) {
eshotArray[j].gotoAndPlay(eshotArray[j].death);
j++;
}
if (wave != 1) {
timer = 60;
timerInterval = setInterval(wave_timer, 1000);
} else {
timer = 99;
timerText = "ready when you are";
}
grid_show();
_root.onEnterFrame = function () {
moneyText = "$" + money;
if (timer <= 0) {
clearInterval(timerInterval);
grid_hide();
gotoAndPlay (7);
}
};
Instance of Symbol 102 MovieClip in Frame 8
onClipEvent (load) {
this.swapDepths(999999);
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 282 MovieClip "buttonBrick" in Frame 8
onClipEvent (load) {
active = false;
price = 100;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (!isNaN(_root.piece._x))) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 287 MovieClip "buttonSemi" in Frame 8
onClipEvent (load) {
active = false;
price = 300;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (!isNaN(_root.piece._x))) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 292 MovieClip "buttonReflect" in Frame 8
onClipEvent (load) {
active = false;
price = 500;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (!isNaN(_root.piece._x))) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 296 MovieClip "buttonTurretA" in Frame 8
onClipEvent (load) {
active = false;
price = 500;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (!isNaN(_root.piece._x))) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 301 MovieClip "buttonTurretB" in Frame 8
onClipEvent (load) {
active = false;
price = 1200;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (!isNaN(_root.piece._x))) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 306 MovieClip "buttonTurretC" in Frame 8
onClipEvent (load) {
active = false;
price = 1800;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (!isNaN(_root.piece._x))) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 311 MovieClip "buttonAmplifier" in Frame 8
onClipEvent (load) {
active = false;
price = 3500;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (!isNaN(_root.piece._x))) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 316 MovieClip "buttonUpRate" in Frame 8
onClipEvent (load) {
maxlevel = 5;
active = false;
price = 1200;
levelText = (_root.upgrade_ratelevel + "/") + maxlevel;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (_root.upgrade_ratelevel >= maxlevel)) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 321 MovieClip "buttonUpPow" in Frame 8
onClipEvent (load) {
maxlevel = 5;
active = false;
price = 1200;
levelText = (_root.upgrade_powlevel + "/") + maxlevel;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (_root.upgrade_powlevel >= maxlevel)) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 327 MovieClip "buttonTurRate" in Frame 8
onClipEvent (load) {
maxlevel = 3;
active = false;
price = 1700;
levelText = (_root.upgrade_turratelevel + "/") + maxlevel;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (_root.upgrade_turratelevel >= maxlevel)) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 332 MovieClip "buttonTurPow" in Frame 8
onClipEvent (load) {
maxlevel = 3;
active = false;
price = 1700;
levelText = (_root.upgrade_turpowlevel + "/") + maxlevel;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (_root.upgrade_turpowlevel >= maxlevel)) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 339 MovieClip "buttonUpDurab" in Frame 8
onClipEvent (load) {
maxlevel = 3;
active = false;
price = 2700;
levelText = (_root.upgrade_durablevel + "/") + maxlevel;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (_root.upgrade_durablevel >= maxlevel)) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 346 MovieClip "buttonLife" in Frame 8
onClipEvent (load) {
active = false;
price = 1000 + (_root.livesPurchased * 1000);
priceText = price + "$";
levelText = _root.player.lives;
}
onClipEvent (enterFrame) {
if (_root.money < price) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 352 MovieClip "buttonRepair" in Frame 8
onClipEvent (load) {
active = false;
price = (40 - _root.health) * 15;
priceText = price + "$";
levelText = _root.health;
}
onClipEvent (enterFrame) {
if ((_root.money < price) || (_root.health == 40)) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Instance of Symbol 358 MovieClip "buttonBomb" in Frame 8
onClipEvent (load) {
active = false;
price = 1500;
levelText = _root.player.bombs;
}
onClipEvent (enterFrame) {
if (_root.money < price) {
active = false;
this.vorhang._visible = true;
} else {
active = true;
this.vorhang._visible = false;
}
}
Frame 9
stop();
isMuted = false;
bgmusic.setVolume(100);
Key.removeListener(_root.muteListener);
Mouse.show();
play_sound(bgmusic, "gameover", 1);
_root.shootListener.isShooting = false;
Mouse.removeListener(_root.shootListener);
Key.removeListener(_root.empListener);
Key.removeListener(_root.pauseListener);
player.removeMovieClip();
for (i in _root) {
if ((_root[i]._name.indexOf("life") != -1) || (_root[i]._name.indexOf("bomb") != -1)) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if ((((_root[i]._name.indexOf("brick") != -1) || (_root[i]._name.indexOf("enemy") != -1)) || (_root[i]._name.indexOf("bullet") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
if (!isNaN(_root[i].unloadFrame)) {
_root[i].gotoAndPlay(_root[i].unloadFrame);
} else {
_root[i].gotoAndPlay(_root[i].death);
}
}
}
i = 0;
while (i <= 50) {
clearInterval(_root["spawnInterval" + i]);
i++;
}
_root.onEnterFrame = null;
Instance of Symbol 375 MovieClip in Frame 9
onClipEvent (load) {
this.killedText = _root.game_killed;
}
Frame 10
stop();
isMuted = false;
bgmusic.setVolume(100);
Key.removeListener(_root.muteListener);
player.removeMovieClip();
play_sound(bgmusic, "loop_credits", 20);
creditsinus.prototyp = true;
creditfaller.prototyp = true;
creditshooter.prototyp = true;
creditdriller.prototyp = true;
creditbeamer.prototyp = true;
credittripler.prototyp = true;
_root.shootListener.isShooting = false;
Mouse.removeListener(_root.shootListener);
Key.removeListener(_root.empListener);
Key.removeListener(_root.pauseListener);
for (i in _root) {
if ((_root[i]._name.indexOf("life") != -1) || (_root[i]._name.indexOf("bomb") != -1)) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if ((((_root[i]._name.indexOf("brick") != -1) || (_root[i]._name.indexOf("enemy") != -1)) || (_root[i]._name.indexOf("bullet") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
_root[i].gotoAndPlay(_root[i].death);
}
}
i = 0;
while (i <= 50) {
clearInterval(_root["spawnInterval" + i]);
i++;
}
_root.onEnterFrame = null;
Instance of Symbol 388 MovieClip in Frame 10
onClipEvent (load) {
this.killedText = _root.game_killed;
}
Instance of Symbol 102 MovieClip in Frame 10
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 389 MovieClip "creditfaller" in Frame 10
onClipEvent (load) {
speed = 1.5;
ymove = 1;
if (_x <= 200) {
xmove = 2;
} else {
xmove = -2;
}
}
onClipEvent (enterFrame) {
if (!prototyp) {
_rotation = (_rotation + (speed * 2));
_y = (_y + (ymove * speed));
_x = (_x + (xmove * speed));
if (_x <= 0) {
_x = 0;
xmove = -xmove;
}
if (_x >= 400) {
_x = 400;
xmove = -xmove;
}
}
}
Instance of Symbol 390 MovieClip "creditsinus" in Frame 10
onClipEvent (load) {
xmove = 0;
ymove = 1;
speed = 4;
if (!prototyp) {
trailInterval = setInterval(_root.sinus_trail, 200, this);
}
}
onClipEvent (enterFrame) {
if (!prototyp) {
xmove = Math.sin(_y / 40);
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 270);
}
}
Instance of Symbol 391 MovieClip "creditshooter" in Frame 10
onClipEvent (load) {
xmove = -1 + (random(20) / 10);
ymove = 1;
speed = 2.5;
}
onClipEvent (enterFrame) {
if (!prototyp) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_x < 0) {
_x = 0;
xmove = -xmove;
}
if (_x > 400) {
_x = 400;
xmove = -xmove;
}
}
}
Instance of Symbol 392 MovieClip "creditbeamer" in Frame 10
onClipEvent (load) {
xmove = 0;
ymove = 1;
speed = 1.2;
}
onClipEvent (enterFrame) {
if (!prototyp) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
}
}
Instance of Symbol 393 MovieClip "creditdriller" in Frame 10
onClipEvent (load) {
xmove = 0;
ymove = 1;
speed = 2.5;
}
onClipEvent (enterFrame) {
if (!prototyp) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
}
}
Instance of Symbol 394 MovieClip "credittripler" in Frame 10
onClipEvent (load) {
if (_x >= 200) {
xmove = -(1 + (random(10) / 10));
} else {
xmove = 1 + (random(10) / 10);
}
ymove = 1;
speed = 1;
}
onClipEvent (enterFrame) {
if (!prototyp) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_x < 0) {
_x = 0;
xmove = -xmove;
}
if (_x > 400) {
_x = 400;
xmove = -xmove;
}
}
}
Symbol 5 MovieClip [StageAnnounce] Frame 60
this.removeMovieClip();
stop();
Symbol 10 Button
on (press) {
play();
}
Symbol 24 Button
on (press) {
play();
}
Symbol 25 MovieClip [Tutorial] Frame 17
stop();
Symbol 25 MovieClip [Tutorial] Frame 52
stop();
Symbol 25 MovieClip [Tutorial] Frame 87
stop();
Symbol 25 MovieClip [Tutorial] Frame 122
stop();
Symbol 25 MovieClip [Tutorial] Frame 140
stop();
Symbol 25 MovieClip [Tutorial] Frame 158
stop();
Symbol 25 MovieClip [Tutorial] Frame 176
stop();
Symbol 25 MovieClip [Tutorial] Frame 212
stop();
Symbol 25 MovieClip [Tutorial] Frame 230
_root.shootListener.kill_interval();
_root.shootListener.isShooting = false;
Mouse.removeListener(_root.shootListener);
Key.removeListener(_root.empListener);
Key.removeListener(_root.pauseListener);
player.removeMovieClip();
_root.wave = 1;
_root.gotoAndPlay(6);
Symbol 25 MovieClip [Tutorial] Frame 231
stop();
Symbol 25 MovieClip [Tutorial] Frame 267
stop();
Symbol 25 MovieClip [Tutorial] Frame 285
this.removeMovieClip();
Symbol 28 Button
on (press) {
_root.wave = 0;
_root.play();
_root.prompt.removeMovieClip();
}
Symbol 30 Button
on (press) {
_root.wave = 1;
_root.play();
_root.prompt.removeMovieClip();
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
if ((collisionSubject._name.indexOf("bullet") != -1) && (collisionSubject._name != null)) {
this.health = this.health - (collisionSubject.damage / 2);
} else {
this.health = this.health - collisionSubject.damage;
}
if (!collisionSubject.piercing) {
sfx.setVolume(25);
_root.play_sound(sfx, "building_hit", 1);
if (!isNaN(collisionSubject.health)) {
collisionSubject.health = 0;
}
collisionSubject.gotoAndPlay(collisionSubject.death);
}
if (this.health <= 0) {
collisionSubject = undefined;
this.gotoAndPlay(this.death);
} else {
collisionSubject = undefined;
_root.getCondition(this);
this.gotoAndPlay(1);
}
Symbol 33 MovieClip Frame 3
sfx.setVolume(100);
_root.play_sound(sfx, "building_explode", 1);
_root.explode(_x, _y);
infield_x = int(_x / 10);
infield_y = int((_y - _root.field_yoffset) / 10);
_root.fieldArray[infield_y][infield_x] = undefined;
this.removeMovieClip();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 17
_root.play();
Symbol 41 MovieClip Frame 167
_root.play();
Symbol 44 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=orbitron", "_blank");
}
Symbol 71 Button
on (release) {
getURL ("http://kongregate.com/", "_blank");
}
Symbol 72 MovieClip Frame 180
_root.play();
Symbol 100 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
_root.bulletArray.slice(_root.findArrayPos(_root.bulletArray, this), 1);
stop();
this.removeMovieClip();
Symbol 106 MovieClip Frame 1
stop();
Instance of Symbol 105 MovieClip "playershot" in Symbol 106 MovieClip Frame 2
onClipEvent (load) {
speed = 9;
damage = 30 + (_root.upgrade_powlevel * 7);
death = 2;
}
onClipEvent (enterFrame) {
if (!prototyp) {
_x = (_x + (xmove * speed));
_y = (_y + (ymove * speed));
if (_y <= 0) {
_root.bulletArray.splice(_root.findArrayPos(_root.bulletArray, this), 1);
this.removeMovieClip();
}
if (_y >= _root.field_yoffset) {
_root.field_hit(this);
}
}
}
Symbol 106 MovieClip Frame 41
_root.attachMovie("FirstPrompt", "prompt", 999);
_root.prompt._x = 200;
_root.prompt._y = 150;
Symbol 107 Button
on (press) {
_root.wave = 1;
_root.menuplay._visible = false;
_root.playclip.play();
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
_root.play_sound(sfx, "orbit_hit", 1);
Symbol 110 MovieClip Frame 14
gotoAndPlay (1);
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 41
_root.play();
Symbol 114 Button
on (press) {
_root.wave = 0;
_root.menutut._visible = false;
_root.tutclip.play();
}
Symbol 118 Button
on (press) {
_root.linkclip.play();
}
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 41
getURL ("http://www.kongregate.com/?gamereferral=orbitron", "_blank");
Symbol 122 MovieClip Frame 1
clipping = true;
stop();
Symbol 122 MovieClip Frame 2
_root.play_sound(sfx, "ship_hit", 1);
_root["life" + this.lives].removeMovieClip();
this.lives = this.lives - 1;
clipping = false;
_root.shootListener.sc++;
if (_root.shootListener.sc > 600) {
_root.shootListener.sc = 500;
}
_root.boom.duplicateMovieClip("bullet" + _root.shootListener.sc, _root.shootListener.sc);
_root["bullet" + _root.shootListener.sc]._x = _x;
_root["bullet" + _root.shootListener.sc]._y = _y;
_root.bulletArray[_root.findEmptyPos(_root.bulletArray)] = _root["bullet" + _root.shootListener.sc];
if (this.lives < 0) {
_root.gotoAndPlay(9);
}
Symbol 122 MovieClip Frame 35
gotoAndPlay (1);
Symbol 131 MovieClip Frame 18
this.removeMovieClip();
stop();
Symbol 140 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
Symbol 140 MovieClip Frame 17
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
gotoAndPlay (1);
}
Symbol 140 MovieClip Frame 18
_root.play_sound(sfx, "enemy_killed1", 1);
speed = 0;
clipping = false;
play();
Symbol 140 MovieClip Frame 24
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 3
stop();
Symbol 141 MovieClip Frame 4
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 4
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 3
stop();
Symbol 146 MovieClip Frame 4
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
Symbol 149 MovieClip Frame 17
gotoAndPlay (1);
Symbol 149 MovieClip Frame 18
_root.play_sound(sfx, "enemy_killed2", 1);
speed = 0;
clipping = false;
Symbol 149 MovieClip Frame 24
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 151 MovieClip Frame 11
this.removeMovieClip();
stop();
Symbol 155 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
Symbol 155 MovieClip Frame 17
gotoAndPlay (1);
Symbol 155 MovieClip Frame 18
_root.play_sound(sfx, "enemy_killed3", 1);
speed = 0;
clipping = false;
Symbol 155 MovieClip Frame 24
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 159 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
Symbol 159 MovieClip Frame 17
gotoAndPlay (1);
Symbol 159 MovieClip Frame 18
_root.play_sound(sfx, "enemy_killed4", 1);
speed = 0;
clipping = false;
Symbol 159 MovieClip Frame 24
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 163 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
Symbol 163 MovieClip Frame 17
gotoAndPlay (1);
Symbol 163 MovieClip Frame 18
_root.play_sound(sfx, "enemy_killed5", 1);
speed = 0;
clipping = false;
Symbol 163 MovieClip Frame 24
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 168 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
clipping = true;
Symbol 168 MovieClip Frame 2
clipping = false;
Symbol 168 MovieClip Frame 12
this._x = random(400);
Symbol 168 MovieClip Frame 22
gotoAndPlay (1);
Symbol 168 MovieClip Frame 23
_root.play_sound(sfx, "enemy_killed6", 1);
speed = 0;
clipping = false;
Symbol 168 MovieClip Frame 29
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 173 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
Symbol 173 MovieClip Frame 17
gotoAndPlay (1);
Symbol 173 MovieClip Frame 18
_root.play_sound(sfx, "enemy_killed7", 1);
speed = 0;
clipping = false;
Symbol 173 MovieClip Frame 24
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
if (collisionSubject._name.indexOf("bullet") == -1) {
this.health = this.health - collisionSubject.damage;
if (!collisionSubject.piercing) {
sfx.setVolume(25);
_root.play_sound(sfx, "building_hit", 1);
if (!isNaN(collisionSubject.health)) {
collisionSubject.health = 0;
}
collisionSubject.gotoAndPlay(collisionSubject.death);
}
if (this.health <= 0) {
collisionSubject = undefined;
this.gotoAndPlay(this.death);
} else {
collisionSubject = undefined;
_root.getCondition(this);
this.gotoAndPlay(1);
}
} else {
gotoAndPlay (1);
}
Symbol 175 MovieClip Frame 3
_root.explode(_x, _y);
sfx.setVolume(100);
_root.play_sound(sfx, "building_explode", 1);
infield_x = int(_x / 10);
infield_y = int((_y - _root.field_yoffset) / 10);
_root.fieldArray[infield_y][infield_x] = undefined;
this.removeMovieClip();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
if (collisionSubject._name.indexOf("bullet") == -1) {
if (collisionSubject._name.indexOf("eshot") != -1) {
collisionSubject.removeMovieClip();
_root.shootListener.sc++;
if (_root.shootListener.sc > 600) {
_root.shootListener.sc = 500;
}
_root.playershot.duplicateMovieClip("bullet" + _root.shootListener.sc, _root.shootListener.sc);
_root["bullet" + _root.shootListener.sc]._x = _x;
_root["bullet" + _root.shootListener.sc]._y = _y;
_root["bullet" + _root.shootListener.sc].xmove = 0;
_root["bullet" + _root.shootListener.sc].ymove = -1;
_root.bulletArray[_root.findEmptyPos(_root.bulletArray)] = _root["bullet" + _root.shootListener.sc];
gotoAndPlay (1);
} else {
this.health = this.health - collisionSubject.damage;
if (!collisionSubject.piercing) {
sfx.setVolume(25);
_root.play_sound(sfx, "building_hit", 1);
if (!isNaN(collisionSubject.health)) {
collisionSubject.health = 0;
}
collisionSubject.gotoAndPlay(collisionSubject.death);
}
if (this.health <= 0) {
collisionSubject = undefined;
this.gotoAndPlay(this.death);
} else {
collisionSubject = undefined;
_root.getCondition(this);
this.gotoAndPlay(1);
}
}
} else {
gotoAndPlay (1);
}
Symbol 179 MovieClip Frame 3
_root.explode(_x, _y);
sfx.setVolume(100);
_root.play_sound(sfx, "building_explode", 1);
infield_x = int(_x / 10);
infield_y = int((_y - _root.field_yoffset) / 10);
_root.fieldArray[infield_y][infield_x] = undefined;
this.removeMovieClip();
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
if (collisionSubject._name.indexOf("bullet") == -1) {
this.health = this.health - collisionSubject.damage;
if (!collisionSubject.piercing) {
sfx.setVolume(25);
_root.play_sound(sfx, "building_hit", 1);
if (!isNaN(collisionSubject.health)) {
collisionSubject.health = 0;
}
collisionSubject.gotoAndPlay(collisionSubject.death);
}
if (this.health <= 0) {
collisionSubject = undefined;
this.gotoAndPlay(this.death);
} else {
collisionSubject = undefined;
_root.getCondition(this);
this.gotoAndPlay(1);
}
} else {
collisionSubject.gotoAndPlay(collisionSubject.death);
i = 0;
while (i < 3) {
angle = (-10 + (i * 10)) + 180;
_root.shootListener.sc++;
if (_root.shootListener.sc > 600) {
_root.shootListener.sc = 500;
}
_root.playershot.duplicateMovieClip("bullet" + _root.shootListener.sc, _root.shootListener.sc);
_root["bullet" + _root.shootListener.sc]._x = _x + 20;
_root["bullet" + _root.shootListener.sc]._y = _y - 5;
_root["bullet" + _root.shootListener.sc]._rotation = angle;
_root["bullet" + _root.shootListener.sc].xmove = _root.getXmove(angle);
_root["bullet" + _root.shootListener.sc].ymove = _root.getYmove(angle);
_root.bulletArray[_root.findEmptyPos(_root.bulletArray)] = _root["bullet" + _root.shootListener.sc];
i++;
}
gotoAndPlay (1);
}
Symbol 185 MovieClip Frame 3
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = undefined;
_root.explode(point.x, point.y);
i++;
}
sfx.setVolume(100);
_root.play_sound(sfx, "building_explode", 1);
this.removeMovieClip();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
if ((collisionSubject._name.indexOf("bullet") != -1) && (collisionSubject._name != null)) {
this.health = this.health - (collisionSubject.damage / 2);
} else {
this.health = this.health - collisionSubject.damage;
}
if (!collisionSubject.piercing) {
sfx.setVolume(25);
_root.play_sound(sfx, "building_hit", 1);
if (!isNaN(collisionSubject.health)) {
collisionSubject.health = 0;
}
collisionSubject.gotoAndPlay(collisionSubject.death);
}
if (this.health <= 0) {
collisionSubject = undefined;
this.gotoAndPlay(this.death);
} else {
collisionSubject = undefined;
_root.getCondition(this);
this.gotoAndPlay(1);
}
Symbol 187 MovieClip Frame 3
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = undefined;
_root.explode(point.x, point.y);
i++;
}
sfx.setVolume(100);
_root.play_sound(sfx, "building_explode", 1);
clearInterval(this.shootInterval);
this.removeMovieClip();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
if ((collisionSubject._name.indexOf("bullet") != -1) && (collisionSubject._name != null)) {
this.health = this.health - (collisionSubject.damage / 2);
} else {
this.health = this.health - collisionSubject.damage;
}
if (!collisionSubject.piercing) {
sfx.setVolume(25);
_root.play_sound(sfx, "building_hit", 1);
if (!isNaN(collisionSubject.health)) {
collisionSubject.health = 0;
}
collisionSubject.gotoAndPlay(collisionSubject.death);
}
if (this.health <= 0) {
collisionSubject = undefined;
this.gotoAndPlay(this.death);
} else {
collisionSubject = undefined;
_root.getCondition(this);
this.gotoAndPlay(1);
}
Symbol 189 MovieClip Frame 3
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = undefined;
_root.explode(point.x, point.y);
i++;
}
sfx.setVolume(100);
_root.play_sound(sfx, "building_explode", 1);
clearInterval(this.shootInterval);
this.removeMovieClip();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
if ((collisionSubject._name.indexOf("bullet") != -1) && (collisionSubject._name != null)) {
this.health = this.health - (collisionSubject.damage / 2);
} else {
this.health = this.health - collisionSubject.damage;
}
if (!collisionSubject.piercing) {
sfx.setVolume(25);
_root.play_sound(sfx, "building_hit", 1);
if (!isNaN(collisionSubject.health)) {
collisionSubject.health = 0;
}
collisionSubject.gotoAndPlay(collisionSubject.death);
}
if (this.health <= 0) {
collisionSubject = undefined;
this.gotoAndPlay(this.death);
} else {
collisionSubject = undefined;
_root.getCondition(this);
this.gotoAndPlay(1);
}
Symbol 191 MovieClip Frame 3
i = 1;
while (i <= 4) {
point = [];
point.x = this["brick" + i]._x;
point.y = this["brick" + i]._y;
point.x = point.x + this._x;
point.y = point.y + this._y;
field_x = int(point.x / 10);
field_y = int((point.y - _root.field_yoffset) / 10);
_root.fieldArray[field_y][field_x] = undefined;
_root.explode(point.x, point.y);
i++;
}
sfx.setVolume(100);
_root.play_sound(sfx, "building_explode", 1);
clearInterval(this.shootInterval);
this.removeMovieClip();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 3
stop();
Symbol 192 MovieClip Frame 4
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 3
stop();
Symbol 193 MovieClip Frame 4
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 3
stop();
Symbol 197 MovieClip Frame 4
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 3
stop();
Symbol 199 MovieClip Frame 4
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
stop();
Symbol 200 MovieClip Frame 3
stop();
Symbol 200 MovieClip Frame 4
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 3
stop();
Symbol 204 MovieClip Frame 4
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 2
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 2
_root.eshotArray.slice(_root.findArrayPos(_root.eshotArray, this), 1);
this.removeMovieClip();
stop();
Symbol 209 MovieClip Frame 44
this.removeMovieClip();
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
_root.bulletArray.slice(_root.findArrayPos(_root.bulletArray, this), 1);
stop();
this.removeMovieClip();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
this.exploding = true;
Symbol 214 MovieClip Frame 18
_root.bulletArray.slice(_root.findArrayPos(_root.bulletArray, this), 1);
stop();
this.removeMovieClip();
Symbol 215 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 221 MovieClip Frame 1
if (this.prototyp) {
stop();
}
Symbol 221 MovieClip Frame 25
_root.bulletArray.splice(_root.findArrayPos(_root.bulletArray, this), 1);
stop();
this.removeMovieClip();
Symbol 223 MovieClip Frame 1
if (this.prototyp) {
stop();
}
Symbol 223 MovieClip Frame 25
_root.bulletArray.splice(_root.findArrayPos(_root.bulletArray, this), 1);
stop();
this.removeMovieClip();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
_root.eshotArray.slice(_root.findArrayPos(_root.eshotArray, this), 1);
this.removeMovieClip();
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
_root.eshotArray.slice(_root.findArrayPos(_root.eshotArray, this), 1);
this.removeMovieClip();
stop();
Symbol 231 MovieClip Frame 11
gotoAndPlay (1);
Symbol 231 MovieClip Frame 12
_root.eshotArray.slice(_root.findArrayPos(_root.eshotArray, this), 1);
this.removeMovieClip();
stop();
Symbol 236 MovieClip Frame 1
if (this.health <= 0) {
gotoAndPlay(this.death);
} else {
stop();
}
Symbol 236 MovieClip Frame 17
gotoAndPlay (1);
Symbol 236 MovieClip Frame 18
_root.play_sound(sfx, "boss_killed", 1);
clipping = false;
speed = 0;
xmove = 0;
Symbol 236 MovieClip Frame 85
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 236 MovieClip Frame 86
clearInterval(this.shootInterval);
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
_root.eshotArray.slice(_root.findArrayPos(_root.eshotArray, this), 1);
this.removeMovieClip();
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 17
gotoAndPlay (1);
Symbol 243 MovieClip Frame 18
_root.play_sound(sfx, "boss_killed", 1);
clipping = false;
speed = 0;
xmove = 0;
Symbol 243 MovieClip Frame 39
clearInterval(this.drillInterval);
clearInterval(this.timeInterval);
Symbol 243 MovieClip Frame 120
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 243 MovieClip Frame 121
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
clearInterval(this.drillInterval);
clearInterval(this.timeInterval);
stop();
this.removeMovieClip();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 17
gotoAndPlay (1);
Symbol 245 MovieClip Frame 18
_root.play_sound(sfx, "boss_killed", 1);
clipping = false;
speed = 0;
Symbol 245 MovieClip Frame 85
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 245 MovieClip Frame 86
clearInterval(this.shootInterval);
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
stop();
this.removeMovieClip();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
_root.eshotArray.slice(_root.findArrayPos(_root.eshotArray, this), 1);
this.removeMovieClip();
stop();
Symbol 251 MovieClip Frame 105
_root.play_sound(_parent.sfx, "beam", 1);
temp = _parent.xmove;
_parent.xmove = 0;
if ((!_parent.prototyp) && (_parent.health > 0)) {
_root.enemy_shoot(_parent.shootZone, 0, 0, _root.bossBeam);
}
Symbol 251 MovieClip Frame 122
_parent.xmove = temp;
gotoAndPlay (1);
gotoAndPlay (1);
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 17
gotoAndPlay (1);
Symbol 261 MovieClip Frame 18
clipping = false;
speed = 0;
clearInterval(this.drillInterval);
clearInterval(this.timeInterval);
Symbol 261 MovieClip Frame 120
_root.play_sound(sfx, "ship_hit", 1);
_root.shootListener.sc++;
if (_root.shootListener.sc > 600) {
_root.shootListener.sc = 500;
}
_root.boom.duplicateMovieClip("bullet" + _root.shootListener.sc, _root.shootListener.sc);
_root["bullet" + _root.shootListener.sc]._x = _x;
_root["bullet" + _root.shootListener.sc]._y = _y;
_root.bulletArray[_root.findEmptyPos(_root.bulletArray)] = _root["bullet" + _root.shootListener.sc];
for (i in _root) {
if (((_root[i]._name.indexOf("brick") != -1) || (_root[i]._name.indexOf("bullet") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
_root[i].gotoAndPlay(_root[i].death);
}
}
Symbol 261 MovieClip Frame 137
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
_root.gotoAndPlay(10);
this.removeMovieClip();
Symbol 261 MovieClip Frame 138
_root.enemyArray.slice(_root.findArrayPos(_root.enemyArray, this), 1);
clearInterval(this.drillInterval);
clearInterval(this.timeInterval);
this.removeMovieClip();
Symbol 263 MovieClip Frame 17
_root.eshotArray.slice(_root.findArrayPos(_root.eshotArray, this), 1);
this.removeMovieClip();
stop();
Symbol 265 MovieClip Frame 20
stop();
Symbol 265 MovieClip Frame 41
this.removeMovieClip();
stop();
Symbol 268 Button
on (press) {
_root.grid_hide();
clearInterval(_root.timerInterval);
gotoAndPlay (7);
}
Symbol 279 Button
on (rollOver) {
_root.descriptionText = "Simple wall to hold back enemies and projectiles. Cheap and effective, but they are also damaged by your own shots.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonBrick.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonBrick.price;
_root.tempprice = _root.buttonBrick.price;
shape_nr = random(7);
switch (shape_nr) {
case 0 :
_root.lbrick.duplicateMovieClip("piece", 7778);
break;
case 1 :
_root.rbrick.duplicateMovieClip("piece", 7778);
break;
case 2 :
_root.sbrick.duplicateMovieClip("piece", 7778);
break;
case 3 :
_root.zbrick.duplicateMovieClip("piece", 7778);
break;
case 4 :
_root.tbrick.duplicateMovieClip("piece", 7778);
break;
case 5 :
_root.obrick.duplicateMovieClip("piece", 7778);
break;
case 6 :
_root.ibrick.duplicateMovieClip("piece", 7778);
}
_root.piece.immobile = false;
}
}
Symbol 286 Button
on (rollOver) {
_root.descriptionText = "Semi-permeable wall. Permeable for your shots while holding enemies back.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonSemi.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonSemi.price;
_root.tempprice = _root.buttonSemi.price;
shape_nr = random(7);
switch (shape_nr) {
case 0 :
_root.lsemi.duplicateMovieClip("piece", 7778);
break;
case 1 :
_root.rsemi.duplicateMovieClip("piece", 7778);
break;
case 2 :
_root.ssemi.duplicateMovieClip("piece", 7778);
break;
case 3 :
_root.zsemi.duplicateMovieClip("piece", 7778);
break;
case 4 :
_root.tsemi.duplicateMovieClip("piece", 7778);
break;
case 5 :
_root.osemi.duplicateMovieClip("piece", 7778);
break;
case 6 :
_root.isemi.duplicateMovieClip("piece", 7778);
}
_root.piece.immobile = false;
}
}
Symbol 291 Button
on (rollOver) {
_root.descriptionText = "Refelctive wall. Semi-permeable plus they're reflecting enemy projectiles!";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonReflect.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonReflect.price;
_root.tempprice = _root.buttonReflect.price;
shape_nr = random(7);
switch (shape_nr) {
case 0 :
_root.lreflect.duplicateMovieClip("piece", 7778);
break;
case 1 :
_root.rreflect.duplicateMovieClip("piece", 7778);
break;
case 2 :
_root.sreflect.duplicateMovieClip("piece", 7778);
break;
case 3 :
_root.zreflect.duplicateMovieClip("piece", 7778);
break;
case 4 :
_root.treflect.duplicateMovieClip("piece", 7778);
break;
case 5 :
_root.oreflect.duplicateMovieClip("piece", 7778);
break;
case 6 :
_root.ireflect.duplicateMovieClip("piece", 7778);
}
_root.piece.immobile = false;
}
}
Symbol 295 Button
on (rollOver) {
_root.descriptionText = "Simple turret. Automatic fire at decent shootrate and power, but only vertically.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonTurretA.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonTurretA.price;
_root.tempprice = _root.buttonTurretA.price;
_root.turretA.duplicateMovieClip("piece", 7778);
_root.piece.immobile = false;
}
}
Symbol 300 Button
on (rollOver) {
_root.descriptionText = "Rocket turret. Shoots homing projectiles at a nice shootrate.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonTurretB.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonTurretB.price;
_root.tempprice = _root.buttonTurretB.price;
_root.turretB.duplicateMovieClip("piece", 7778);
_root.piece.immobile = false;
}
}
Symbol 305 Button
on (rollOver) {
_root.descriptionText = "Orb turret. Slow shootrate, but shoots a homing orb, which explodes at impact.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonTurretC.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonTurretC.price;
_root.tempprice = _root.buttonTurretC.price;
_root.turretC.duplicateMovieClip("piece", 7778);
_root.piece.immobile = false;
}
}
Symbol 310 Button
on (rollOver) {
_root.descriptionText = "Amplifier. Semi-permeable wall with very weak protection, but amplifies your shots crossing the amplifier.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonAmplifier.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonAmplifier.price;
_root.tempprice = _root.buttonAmplifier.price;
_root.amplifier.duplicateMovieClip("piece", 7778);
_root.piece.immobile = false;
}
}
Symbol 314 Button
on (rollOver) {
_root.descriptionText = "Upgrade your ships shootrate.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonUpRate.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonUpRate.price;
_root.upgrade_ratelevel++;
_root.buttonUpRate.levelText = (_root.upgrade_ratelevel + "/") + _root.buttonUpRate.maxlevel;
}
}
Symbol 319 Button
on (rollOver) {
_root.descriptionText = "Upgrade your ships power.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonUpPow.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonUpPow.price;
_root.upgrade_powlevel++;
_root.buttonUpPow.levelText = (_root.upgrade_powlevel + "/") + _root.buttonUpPow.maxlevel;
}
}
Symbol 325 Button
on (rollOver) {
_root.descriptionText = "Upgrade your turrets' shootrate.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonTurRate.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonTurRate.price;
_root.upgrade_turratelevel++;
_root.buttonTurRate.levelText = (_root.upgrade_turratelevel + "/") + _root.buttonTurRate.maxlevel;
}
}
Symbol 330 Button
on (rollOver) {
_root.descriptionText = "Upgrade your turrets' power.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonTurPow.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonTurPow.price;
_root.upgrade_turpowlevel++;
_root.buttonTurPow.levelText = (_root.upgrade_turpowlevel + "/") + _root.buttonTurPow.maxlevel;
}
}
Symbol 337 Button
on (rollOver) {
_root.descriptionText = "Upgrade the durability of your buildings.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonUpDurab.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonUpDurab.price;
_root.upgrade_durablevel++;
_root.buttonUpDurab.levelText = (_root.upgrade_durablevel + "/") + _root.buttonUpDurab.maxlevel;
_root.field_upgrade();
}
}
Symbol 344 Button
on (rollOver) {
_root.descriptionText = "Buy one extra life. Price increases by every purchase.";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonLife.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonLife.price;
_root.livesPurchased++;
_root.player.lives++;
_root.buttonLife.levelText = _root.player.lives;
_root.buttonLife.price = 1000 + (_root.livesPurchased * 1000);
_root.buttonLife.priceText = price + "$";
}
}
Symbol 349 Button
on (rollOver) {
_root.descriptionText = "Repair Orbit";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonRepair.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonRepair.price;
_root.health = 40;
_root.buttonRepair.levelText = _root.health;
_root.buttonRepair.price = (40 - _root.health) * 15;
_root.buttonRepair.priceText = price + "$";
}
}
Symbol 356 Button
on (rollOver) {
_root.descriptionText = "Buy an EMP-Bomb";
}
on (rollOut) {
_root.descriptionText = "";
}
on (press) {
if (_root.buttonBomb.active) {
_root.play_sound(_root.bgsfx, "purchase", 1);
_root.money = _root.money - _root.buttonBomb.price;
_root.player.bombs++;
_root.buttonBomb.levelText = _root.player.bombs;
}
}
Symbol 359 MovieClip Frame 134
for (i in _root) {
if ((((_root[i]._name.indexOf("brick") != -1) || (_root[i]._name.indexOf("enemy") != -1)) || (_root[i]._name.indexOf("bullet") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
_root[i].gotoAndPlay(_root[i].death);
}
}
stop();
Symbol 363 Button
on (press) {
_root.gotoAndPlay(5);
}
Symbol 367 Button
on (press) {
getURL ("http://www.kongregate.com/?gamereferral=orbitron", "_blank");
}
Symbol 369 Button
on (press) {
_root.wave = 1;
_root.gotoAndPlay(6);
}
Symbol 371 Button
on (press) {
kills = _root.game_killed;
waves = _root.wave - 1;
_root.kongregateStats.submit("Kills", kills);
_root.kongregateStats.submit("Waves", waves);
_root.kongregateScores.submit(kills);
submit._visible = false;
thanks._visible = true;
}
Instance of Symbol 373 MovieClip "thanks" in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 385 Button
on (press) {
getURL ("http://www.kongregate.com/?gamereferral=orbitron", "_blank");
}
Symbol 388 MovieClip Frame 1
function purge() {
for (i in _root) {
if ((_root[i]._name.indexOf("enemy") != -1) && (_root[i]._name != undefined)) {
_root[i].play();
}
}
}
Symbol 388 MovieClip Frame 17
kills = _root.game_killed;
waves = _root.wave - 1;
_root.kongregateStats.submit("Kills", kills);
_root.kongregateStats.submit("Waves", 34);
_root.kongregateScores.submit(kills);
Instance of Symbol 159 MovieClip in Symbol 388 MovieClip Frame 102
onClipEvent (load) {
health = 100;
}
Instance of Symbol 159 MovieClip in Symbol 388 MovieClip Frame 102
onClipEvent (load) {
health = 100;
}
Instance of Symbol 159 MovieClip in Symbol 388 MovieClip Frame 102
onClipEvent (load) {
health = 100;
}
Instance of Symbol 159 MovieClip in Symbol 388 MovieClip Frame 102
onClipEvent (load) {
health = 100;
}
Instance of Symbol 159 MovieClip in Symbol 388 MovieClip Frame 102
onClipEvent (load) {
health = 100;
}
Instance of Symbol 159 MovieClip in Symbol 388 MovieClip Frame 102
onClipEvent (load) {
health = 100;
}
Instance of Symbol 159 MovieClip in Symbol 388 MovieClip Frame 102
onClipEvent (load) {
health = 100;
}
Symbol 388 MovieClip Frame 243
_root.enemy_spawn(199, 120, _root.creditfaller, 5, 400);
_root.enemy_spawn(201, 120, _root.creditfaller, 5, 400);
Symbol 388 MovieClip Frame 362
purge();
Symbol 388 MovieClip Frame 396
_root.enemy_spawn(300, -10, _root.creditsinus, 5, 400);
Symbol 388 MovieClip Frame 417
_root.enemy_spawn(270, -10, _root.creditsinus, 3, 400);
Symbol 388 MovieClip Frame 500
purge();
Symbol 388 MovieClip Frame 534
_root.enemy_spawn(125, 80, _root.creditshooter, 2, 400);
Symbol 388 MovieClip Frame 551
_root.enemy_spawn(100, 70, _root.creditshooter, 2, 400);
_root.enemy_spawn(150, 70, _root.creditshooter, 2, 400);
Symbol 388 MovieClip Frame 630
purge();
Symbol 388 MovieClip Frame 647
_root.enemy_spawn(100, 100, _root.creditbeamer, 4, 800);
_root.enemy_spawn(300, 100, _root.creditbeamer, 4, 800);
Symbol 388 MovieClip Frame 780
purge();
Symbol 388 MovieClip Frame 816
_root.enemy_spawn(250, 100, _root.creditdriller, 1, 0);
Symbol 388 MovieClip Frame 829
_root.enemy_spawn(300, 100, _root.creditdriller, 1, 0);
_root.enemy_spawn(200, 100, _root.creditdriller, 1, 0);
Symbol 388 MovieClip Frame 844
_root.enemy_spawn(350, 100, _root.creditdriller, 1, 0);
_root.enemy_spawn(150, 100, _root.creditdriller, 1, 0);
Symbol 388 MovieClip Frame 915
purge();
Symbol 388 MovieClip Frame 949
_root.enemy_spawn(201, 280, _root.credittripler, 3, 400);
_root.enemy_spawn(199, 280, _root.credittripler, 3, 400);
Symbol 388 MovieClip Frame 1050
purge();
Symbol 388 MovieClip Frame 1202
_root.gotoAndPlay(2);
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 18
this.removeMovieClip();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 18
this.removeMovieClip();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 18
this.removeMovieClip();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 18
this.removeMovieClip();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 18
this.removeMovieClip();
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 18
this.removeMovieClip();