Frame 1
stop();
Instance of Symbol 87 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();
} else {
this.gauge._width = (percentDone / 100) * 369;
}
}
Frame 2
stop();
Frame 3
stop();
Frame 4
function initiate_whitestage() {
stageflag = -1;
cur_stage = 0;
white_redUps = 0;
white_blueUps = 0;
white_shootrate = 230;
white_shotstrength = 50;
white_multishot = 1;
white_multiangle = 0;
white_upgrades_red = 0;
white_upgrades_blue = 0;
white_red_amount = 0;
white_green_amount = 0;
white_blue_amount = 0;
white_max_energy = 0;
white_max_lives = 1;
white_lives = 1;
white_reflector = false;
}
function initiate_blackstage() {
stageflag = -1;
cur_stage = 0;
basicdrop_black = 1;
black_ups = 0;
black_shootrate = 550;
black_shotstrength = 30;
black_chainlevel = 0;
black_upgrades = 0;
black_up_amount = 0;
black_max_energy = 0;
black_max_lives = 1;
black_lives = 1;
black_reflector = false;
}
Mouse.show();
menu = new ContextMenu();
menu.hideBuiltInItems();
onBlack = 0;
onWhite = 0;
game = 99;
isMusic = true;
stop();
_root.onEnterFrame = function () {
if (blackMenu.hitTest(_root._xmouse, _root._ymouse, true)) {
if (onBlack == 0) {
onBlack = 1;
blackMenu.gotoAndPlay(2);
}
} else if (onBlack == 1) {
onBlack = 0;
blackMenu.gotoAndPlay(31);
}
if (whiteMenu.hitTest(_root._xmouse, _root._ymouse, true)) {
if (onWhite == 0) {
onWhite = 1;
whiteMenu.gotoAndPlay(2);
}
} else if (onWhite == 1) {
onWhite = 0;
whiteMenu.gotoAndPlay(31);
}
};
Frame 5
stopAllSounds();
switch (game) {
case 0 :
play();
break;
case 1 :
gotoAndPlay (9);
break;
case 2 :
gotoAndPlay (11);
break;
case 3 :
gotoAndPlay (16);
}
Frame 6
function random_color() {
r = random(255);
g = random(255);
b = random(255);
c = ((r << 16) ^ (g << 8)) ^ b;
return(c);
}
function survivaltimer() {
score = score + 20;
}
function getYmove(phi) {
return(Math.cos((Math.PI/180) * phi));
}
function getXmove(phi) {
return(-Math.sin((Math.PI/180) * phi));
}
function spawnChance(min, max) {
if (max < 1000) {
n = max - int(score / 40);
} else {
n = max - int(score / 25);
}
if (n < min) {
return(min);
}
return(n);
}
function swift_trail(enemy) {
if (!isPaused) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
particle_trail.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount].filters = particle_trail.filters;
_root["particle" + pcount]._x = enemy._x;
_root["particle" + pcount]._y = enemy._y;
}
}
function player_newInterval() {
clearInterval(player.shootInterval);
player.shootInterval = setInterval(_root.player_shoot, player.shootrate);
}
function player_upgrade() {
if ((score > 2000) && (player.upgrades == 0)) {
player.upgrades++;
player.shootrate = 180;
player_newInterval();
upgradeShootrate._x = player._x;
upgradeShootrate._y = player._y;
upgradeShootrate.gotoAndPlay(2);
}
if ((score > 6000) && (player.upgrades == 1)) {
player.upgrades++;
player.shotstrength = 75;
upgradePower._x = player._x;
upgradePower._y = player._y;
upgradePower.gotoAndPlay(2);
}
if ((score > 11000) && (player.upgrades == 2)) {
player.upgrades++;
player.multishot = 2;
player.multiangle = 8;
upgradeMulti._x = player._x;
upgradeMulti._y = player._y;
upgradeMulti.gotoAndPlay(2);
}
if ((score > 17000) && (player.upgrades == 3)) {
player.upgrades++;
player.shootrate = 160;
player_newInterval();
upgradeShootrate._x = player._x;
upgradeShootrate._y = player._y;
upgradeShootrate.gotoAndPlay(2);
}
if ((score > 26000) && (player.upgrades == 4)) {
player.upgrades++;
player.multishot = 3;
player.multiangle = 15;
upgradeMulti._x = player._x;
upgradeMulti._y = player._y;
upgradeMulti.gotoAndPlay(2);
}
}
function player_shoot() {
if (shooting && (!isPaused)) {
if (player.multiangle != 0) {
if (player.multiangle != 360) {
section = player.multiangle / (player.multishot - 1);
} else {
section = player.multiangle / player.multishot;
}
startangle = (player._rotation - 180) - (player.multiangle / 2);
i = 0;
while (i < player.multishot) {
scount++;
if (scount > 100) {
scount = 0;
}
playershot.duplicateMovieClip("playershot" + scount, scount);
_root["playershot" + scount]._x = player._x;
_root["playershot" + scount]._y = player._y;
_root["playershot" + scount].reaction = true;
_root["playershot" + scount].xmove = getXmove(startangle + (i * section));
_root["playershot" + scount].ymove = getYmove(startangle + (i * section));
_root["playershot" + scount]._rotation = startangle + (i * section);
i++;
}
} else {
scount++;
if (scount > 100) {
scount = 0;
}
playershot.duplicateMovieClip("playershot" + scount, scount);
_root["playershot" + scount]._x = _root.player._x;
_root["playershot" + scount]._y = _root.player._y;
_root["playershot" + scount].reaction = true;
_root["playershot" + scount].xmove = getXmove(player._rotation - 180);
_root["playershot" + scount].ymove = getYmove(player._rotation - 180);
_root["playershot" + scount]._rotation = player._rotation;
}
}
}
function player_hit() {
for (i in _root) {
if ((_root[i]._name.indexOf("enemy") != -1) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root.player.hitTest(_root[i])) {
_root[i].gotoAndPlay(_root[i].deathFrame);
_root.player.gotoAndPlay(2);
for (j in _root) {
if (_root[j]._name.indexOf("enemy") != -1) {
_root[j].gotoAndPlay(_root[j].unloadFrame);
}
}
num = 15 + random(20);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_white.duplicateMovieClip("particle" + pcount, pcount);
particle_color = new Color(_root["particle" + pcount]);
particle_color.setRGB(random_color());
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_explode.duplicateMovieClip("particle" + pcount, pcount);
particle_color = new Color(_root["particle" + pcount]);
particle_color.setRGB(random_color());
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
gotoAndPlay (7);
}
}
}
}
function enemy_spawn(n) {
_root.spawned = true;
xpos = 0;
ypos = 0;
pos = n % 2132;
if (pos <= 666) {
xpos = pos;
ypos = 0;
} else if ((pos > 666) && (pos < 1066)) {
xpos = 666;
ypos = pos - 666;
} else if ((pos > 1066) && (pos < 1732)) {
xpos = 666 - (pos - 1066);
ypos = 400;
} else if (pos >= 1732) {
xpos = 0;
ypos = 400 - (pos - 1732);
}
if ((n % spawnChance(81, 312)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
floater.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = floater.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(83, 623)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
shooter.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = shooter.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(93, 761)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
persuer.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = persuer.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(107, 1529)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
allocator.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = allocator.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(121, 1513)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
concealer.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = concealer.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(171, 1713)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
swift.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = swift.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(331, 2031)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
crescent.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = crescent.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
}
function enemy_hit(enemy, particleTarget) {
i = 0;
while (i <= 100) {
if (enemy.hitTest(_root["playershot" + i])) {
enemy.health = enemy.health - _root.player.shotstrength;
if (enemy.invincible) {
num = 9 + random(5);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_noEff.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = particleTarget._x - (12 * _root["playershot" + i].xmove);
_root["particle" + pcount]._y = particleTarget._y - (12 * _root["playershot" + i].ymove);
_root["particle" + pcount].reaction = true;
j++;
}
} else if (enemy.health <= 0) {
score = score + enemy.points;
enemy.gotoAndPlay(enemy.deathFrame);
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_explode.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = particleTarget._x;
_root["particle" + pcount]._y = particleTarget._y;
_root["particle" + pcount].reaction = true;
j++;
}
} else {
num = 5 + random(4);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_white.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = particleTarget._x;
_root["particle" + pcount]._y = particleTarget._y;
_root["particle" + pcount].reaction = true;
j++;
}
}
removeMovieClip(_root["playershot" + i]);
}
i++;
}
}
function enemy_shoot(enemy, phi, n) {
if (!isPaused) {
if (phi != 0) {
if (phi != 360) {
section = phi / (n - 1);
} else {
section = phi / n;
}
startangle = (enemy._rotation - 180) - (phi / 2);
i = 0;
while (i < n) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
enemyshot_white.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].reaction = true;
_root["eshot" + ecount].xmove = getXmove(startangle + (i * section));
_root["eshot" + ecount].ymove = getYmove(startangle + (i * section));
i++;
}
} else {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
enemyshot_white.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].reaction = true;
dx = player._x - enemy._x;
dy = player._y - enemy._y;
phi = Math.atan2(dy, dx);
_root["eshot" + ecount].xmove = Math.cos(phi);
_root["eshot" + ecount].ymove = Math.sin(phi);
}
}
}
spawned = false;
shooting = false;
scount = 0;
score = 0;
ecount = 100;
pcount = 1000;
stopAllSounds();
isPaused = false;
bgmusic = new Sound();
bgmusic.attachSound("Music_white");
if (isMusic) {
bgmusic.start(0, 99);
}
stop();
_root.onMouseDown = function () {
shooting = true;
};
_root.onMouseUp = function () {
shooting = false;
};
_root.onEnterFrame = function () {
if (Key.isDown(80) && (!isPaused)) {
isPaused = true;
_root.attachMovie("PauseWhite", "pause", 222222);
_root.pause._x = 333;
_root.pause._y = 200;
for (i in _root) {
if (((_root[i]._name.indexOf("particle") != -1) || (_root[i]._name.indexOf("playershot") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root[i]._name != undefined) {
_root[i].stop();
}
}
}
}
if (!isPaused) {
rand = random(200000);
enemy_spawn(rand);
scoretext = score;
player_upgrade();
}
};
white.duplicateMovieClip("player", 77777);
_root.player._x = 330;
_root.player._y = 178;
_root.player.filters = white.filters;
_root.player.reaction = true;
Instance of Symbol 140 MovieClip "floater" in Frame 6
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2;
health = 75;
points = 120;
deathFrame = 2;
unloadFrame = 3;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 143 MovieClip "shooter" in Frame 6
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 150;
points = 180;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 0, 0);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 146 MovieClip "allocator" in Frame 6
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1.5;
health = 200;
points = 290;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 360, 4);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 149 MovieClip "persuer" in Frame 6
onClipEvent (load) {
speed = 2.5;
health = 100;
points = 160;
deathFrame = 2;
unloadFrame = 3;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 152 MovieClip "concealer" in Frame 6
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2.5;
health = 200;
points = 270;
deathFrame = 81;
unloadFrame = 82;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 154 MovieClip "swift" in Frame 6
onClipEvent (load) {
speed = 4.5;
health = 50;
points = 300;
deathFrame = 2;
unloadFrame = 3;
if (reaction) {
trailInterval = setInterval(_root.swift_trail, 300, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 157 MovieClip "white" in Frame 6
onClipEvent (load) {
speed = 8;
xspeed = 0;
yspeed = 0;
acceleration = 0.05;
shootrate = 200;
shotstrength = 50;
multishot = 1;
multiangle = 0;
upgrades = 0;
if (reaction) {
var shootInterval = setInterval(_root.player_shoot, shootrate);
var scoreInterval = setInterval(_root.survivaltimer, 1000);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
phi = Math.atan2(dy, dx);
_rotation = (((phi * 180) / Math.PI) + 90);
if (Key.isDown(38) || (Key.isDown(87))) {
if (yspeed > -1) {
yspeed = yspeed - acceleration;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (yspeed < 1) {
yspeed = yspeed + acceleration;
}
} else {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
if (Math.abs(yspeed) < 0.05) {
yspeed = 0;
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
if (xspeed > -1) {
xspeed = xspeed - acceleration;
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
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.05) {
xspeed = 0;
}
}
if (_x <= 0) {
_x = 0;
xspeed = Math.abs(xspeed) / 2;
} else if (_x >= 666) {
_x = 666;
xspeed = (-Math.abs(xspeed)) / 2;
} else if (_y <= 0) {
_y = 0;
yspeed = Math.abs(yspeed) / 2;
} else if (_y >= 400) {
_y = 400;
yspeed = (-Math.abs(yspeed)) / 2;
}
_x = (_x + (xspeed * speed));
_y = (_y + (yspeed * speed));
_root.player_hit();
}
}
Instance of Symbol 158 MovieClip "maus" in Frame 6
onClipEvent (load) {
if ((_root.game == 0) || (_root.game == 2)) {
Mouse.hide();
}
}
onClipEvent (enterFrame) {
if ((_root.game == 0) || (_root.game == 2)) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 160 MovieClip "particle_white" in Frame 6
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 161 MovieClip "playershot" in Frame 6
onClipEvent (load) {
speed = 9;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 162 MovieClip "particle_explode" in Frame 6
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 164 MovieClip "enemyshot_white" in Frame 6
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 167 MovieClip "particle_noEff" in Frame 6
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 173 MovieClip "crescent" in Frame 6
onClipEvent (load) {
xTarget = random(666);
yTarget = random(400);
speed = 2;
health = 150;
points = 500;
shootrate = 3000;
deathFrame = 2;
unloadFrame = 3;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 120, 3);
var AIInterval = setInterval(function () {
xTarget = random(666);
yTarget = random(400);
}, 3000, "");
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = xTarget - _x;
dy = yTarget - _y;
phi = Math.atan2(dy, dx);
angle = ((phi * 180) / Math.PI) + 90;
if ((Math.abs(dx) >= 15) || (Math.abs(dy) >= 15)) {
if ((_rotation - angle) > 10) {
_rotation = (_rotation - 10);
} else if ((_rotation - angle) < -15) {
_rotation = (_rotation + 10);
} else {
_rotation = angle;
}
xmove = _root.getXmove(_rotation + 180);
ymove = _root.getYmove(_rotation + 180);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
} else {
xTarget = random(666);
yTarget = random(400);
}
_root.enemy_hit(this, this);
}
}
Frame 7
Mouse.show();
if (game == 0) {
stop();
} else {
play();
}
stopAllSounds();
_root.onEnterFrame = function () {
};
Frame 9
function survivaltimer() {
score = score + 20;
}
function colorswitch(mc) {
do {
mc.r = random(255);
mc.g = random(255);
mc.b = random(255);
} while (((r + g) + b) < 255);
}
function getYmove(phi) {
return(Math.cos((Math.PI/180) * phi));
}
function getXmove(phi) {
return(-Math.sin((Math.PI/180) * phi));
}
function getNextEnemy() {
d = 99999 /* 0x01869F */;
for (i in _root) {
if (_root[i]._name.indexOf("enemy") != -1) {
if (((_root[i]._name != undefined) && (_root[i]._x <= 666)) && (_root[i]._y <= 400)) {
de = enemy_distance(_root[i], player);
if (d > de) {
target = _root[i];
d = de;
}
}
}
}
return(target);
}
function getChaintarget(xk, yk, exception) {
d = 99999 /* 0x01869F */;
for (k in _root) {
if (_root[k]._name.indexOf("enemy") != -1) {
if ((((_root[k]._name != undefined) && (_root[k]._name != exception)) && (_root[k]._x <= 666)) && (_root[k]._y <= 400)) {
de = enemy_distance2(_root[k], xk, yk);
if (d > de) {
chaintarget = _root[k];
d = de;
}
}
}
}
return(chaintarget);
}
function spawnChance(min, max) {
if (max < 1000) {
n = max - int(score / 40);
} else {
n = max - int(score / 25);
}
if (n < min) {
return(min);
}
return(n);
}
function player_newInterval() {
clearInterval(player.shootInterval);
player.shootInterval = setInterval(_root.player_shoot, player.shootrate);
}
function player_upgrade() {
if ((score > 2000) && (player.upgrades == 0)) {
player.upgrades++;
player.shootrate = 480;
player_newInterval();
upgradeShootrateBS._x = player._x;
upgradeShootrateBS._y = player._y;
upgradeShootrateBS.gotoAndPlay(2);
}
if ((score > 6000) && (player.upgrades == 1)) {
player.upgrades++;
player.shotstrength = 40;
upgradePowerBS._x = player._x;
upgradePowerBS._y = player._y;
upgradePowerBS.gotoAndPlay(2);
}
if ((score > 11000) && (player.upgrades == 2)) {
player.upgrades++;
player.shootrate = 420;
player_newInterval();
upgradeShootrateBS._x = player._x;
upgradeShootrateBS._y = player._y;
upgradeShootrateBS.gotoAndPlay(2);
}
if ((score > 17000) && (player.upgrades == 3)) {
player.upgrades++;
player.chainlevel = 1;
upgradeChainBS._x = player._x;
upgradeChainBS._y = player._y;
upgradeChainBS.gotoAndPlay(2);
}
if ((score > 26000) && (player.upgrades == 4)) {
player.upgrades++;
player.shotstrength = 60;
upgradePowerBS._x = player._x;
upgradePowerBS._y = player._y;
upgradePowerBS.gotoAndPlay(2);
}
}
function player_shoot() {
if (!isPaused) {
if (shooting) {
scount++;
if (scount > 100) {
scount = 0;
}
blackshot.duplicateMovieClip("playershot" + scount, scount);
_root["playershot" + scount]._x = _root.player._x;
_root["playershot" + scount]._y = _root.player._y;
_root["playershot" + scount].chain = player.chainlevel;
_root["playershot" + scount].reaction = true;
_root["playershot" + scount]._rotation = player._rotation;
}
}
}
function player_hit() {
for (i in _root) {
if ((_root[i]._name.indexOf("enemy") != -1) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root.player.hitTest(_root[i])) {
_root[i].gotoAndPlay(_root[i].deathFrame);
_root.player.gotoAndPlay(2);
for (j in _root) {
if (_root[j]._name.indexOf("enemy") != -1) {
_root[j].gotoAndPlay(_root[j].unloadFrame);
}
}
num = 15 + random(20);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
particle_black.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
exploder_black.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
gotoAndPlay (10);
}
}
}
}
function enemy_distance(enemy, object) {
dx = enemy._x - object._x;
dy = enemy._y - object._y;
return(Math.sqrt((dx * dx) + (dy * dy)));
}
function enemy_distance2(enemy, xk, yk) {
dx = enemy._x - xk;
dy = enemy._y - yk;
return(Math.sqrt((dx * dx) + (dy * dy)));
}
function enemy_spawn(n) {
spawned = true;
xpos = 0;
ypos = 0;
pos = n % 2132;
if (pos <= 666) {
xpos = pos;
ypos = 0;
} else if ((pos > 666) && (pos < 1066)) {
xpos = 666;
ypos = pos - 666;
} else if ((pos > 1066) && (pos < 1732)) {
xpos = 666 - (pos - 1066);
ypos = 400;
} else if (pos >= 1732) {
xpos = 0;
ypos = 400 - (pos - 1732);
}
if ((n % spawnChance(83, 512)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
whirrer.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = whirrer.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(81, 823)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
targeter.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = targeter.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(91, 861)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
tracker.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = tracker.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(121, 1813)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
detonator.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = detonator.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(196, 1893)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
splitter.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = splitter.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(211, 2323)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
creator.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = creator.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
if ((n % spawnChance(251, 2841)) == 0) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
radiant.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = radiant.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
}
}
function enemy_hit(enemy, particle_source, exploder_source) {
i = 0;
while (i <= 100) {
if (enemy.hitTest(_root["playershot" + i])) {
enemy.health = enemy.health - _root.player.shotstrength;
if (enemy.health <= 0) {
score = score + enemy.points;
enemy.gotoAndPlay(enemy.deathFrame);
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
exploder_source.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = enemy._x;
_root["particle" + pcount]._y = enemy._y;
_root["particle" + pcount].reaction = true;
j++;
}
} else {
num = 5 + random(4);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
particle_source.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = enemy._x;
_root["particle" + pcount]._y = enemy._y;
_root["particle" + pcount].reaction = true;
j++;
}
}
if (_root["playershot" + i].chain > 0) {
chaintarget = getChaintarget(enemy._x, enemy._y, enemy._name);
if (chaintarget._name != undefined) {
scount++;
if (scount > 100) {
scount = 0;
}
blackshot.duplicateMovieClip("playershot" + scount, scount);
dx = chaintarget._x - enemy._x;
dy = chaintarget._y - enemy._y;
angle = Math.atan2(dy, dx);
_root["playershot" + scount]._x = enemy._x + (Math.cos(angle) * 30);
_root["playershot" + scount]._y = enemy._y + (Math.sin(angle) * 30);
_root["playershot" + scount].chain = _root["playershot" + i].chain - 1;
_root["playershot" + scount].reaction = true;
_root["playershot" + scount].target = chaintarget;
_root["playershot" + scount]._rotation = ((angle * 180) / Math.PI) + 90;
}
}
removeMovieClip(_root["playershot" + i]);
}
i++;
}
}
function enemy_shoot(enemy, shot_source, phi, n) {
if (!isPaused) {
if (phi != 0) {
if (phi != 360) {
section = phi / (n - 1);
} else {
section = phi / n;
}
startangle = (enemy._rotation - 180) - (phi / 2);
i = 0;
while (i < n) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
shot_source.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].reaction = true;
_root["eshot" + ecount].filters = shot_source.filters;
_root["eshot" + ecount].xmove = getXmove(startangle + (i * section));
_root["eshot" + ecount].ymove = getYmove(startangle + (i * section));
i++;
}
} else {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
shot_source.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].reaction = true;
_root["eshot" + ecount].filters = shot_source.filters;
dx = player._x - enemy._x;
dy = player._y - enemy._y;
phi = Math.atan2(dy, dx);
_root["eshot" + ecount].xmove = Math.cos(phi);
_root["eshot" + ecount].ymove = Math.sin(phi);
}
}
}
function enemy_create(enemy) {
if (!isPaused) {
type = random(3);
if (type == 0) {
spawnx = random(60);
spawny = random(60);
ecount++;
if (ecount > 1000) {
ecount = 100;
}
whirrer.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = tracker.filters;
_root["enemy" + ecount]._x = enemy._x + (30 - spawnx);
_root["enemy" + ecount]._y = enemy._y + (30 - spawny);
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(21);
} else if (type == 1) {
spawnx = random(60);
spawny = random(60);
ecount++;
if (ecount > 1000) {
ecount = 100;
}
targeter.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = targeter.filters;
_root["enemy" + ecount]._x = enemy._x + (30 - spawnx);
_root["enemy" + ecount]._y = enemy._y + (30 - spawny);
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(21);
} else if (type == 2) {
spawnx = random(60);
spawny = random(60);
ecount++;
if (ecount > 1000) {
ecount = 100;
}
tracker.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = tracker.filters;
_root["enemy" + ecount]._x = enemy._x + (30 - spawnx);
_root["enemy" + ecount]._y = enemy._y + (30 - spawny);
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(21);
}
}
}
shooting = false;
scount = 0;
score = 0;
ecount = 100;
pcount = 1000;
stopAllSounds();
isPaused = false;
bgmusic = new Sound();
bgmusic.attachSound("Music_black");
if (isMusic) {
bgmusic.start(0, 99);
}
stop();
_root.onMouseDown = function () {
shooting = true;
};
_root.onMouseUp = function () {
shooting = false;
};
_root.onEnterFrame = function () {
if (Key.isDown(80) && (!isPaused)) {
isPaused = true;
_root.attachMovie("PauseWhite", "pause", 222222);
_root.pause._x = 333;
_root.pause._y = 200;
pauseColor = new Color(_root.pause);
pauseColor.setRGB(0);
for (i in _root) {
if (((_root[i]._name.indexOf("particle") != -1) || (_root[i]._name.indexOf("playershot") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root[i]._name != undefined) {
_root[i].stop();
}
}
}
}
if (!isPaused) {
rand = random(200000);
enemy_spawn(rand);
scoretext = score;
player_upgrade();
}
};
black.duplicateMovieClip("player", 77777);
_root.player._x = 330;
_root.player._y = 178;
_root.player.filters = black.filters;
_root.player.reaction = true;
Instance of Symbol 188 MovieClip "bg" in Frame 9
onClipEvent (load) {
cr = 255;
cg = 255;
cb = 255;
bgcolor = new Color(this);
bgcolor.setRGB(16777215);
do {
r = random(255);
g = random(255);
b = random(255);
} while (((r + g) + b) < 255);
colorInterval = setInterval(_root.colorswitch, 8000, this);
}
onClipEvent (enterFrame) {
if (r > cr) {
cr = cr + 1;
} else if (r < cr) {
cr = cr - 1;
}
if (g > cg) {
cg = cg + 1;
} else if (g < cg) {
cg = cg - 1;
}
if (b > cb) {
cb = cb + 1;
} else if (b < cb) {
cb = cb - 1;
}
rgb = ((cr << 16) ^ (cg << 8)) ^ cb;
bgcolor.setRGB(rgb);
}
Instance of Symbol 195 MovieClip "black" in Frame 9
onClipEvent (load) {
speed = 7;
xmove = 0;
ymove = 0;
shootrate = 550;
shotstrength = 30;
chainlevel = 0;
upgrades = 0;
if (reaction) {
var shootInterval = setInterval(_root.player_shoot, shootrate);
var scoreInterval = setInterval(_root.survivaltimer, 1000);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
phi = Math.atan2(dy, dx);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
_rotation = (((phi * 180) / Math.PI) + 90);
if (_x <= 0) {
_x = 0;
} else if (_x >= 666) {
_x = 666;
}
if (_y <= 0) {
_y = 0;
} else if (_y >= 400) {
_y = 400;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
_root.player_hit();
}
}
Instance of Symbol 197 MovieClip "creator" in Frame 9
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 150;
points = 400;
shootrate = 3500;
deathFrame = 2;
unloadFrame = 3;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_create, shootrate, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_blue, _root.exploder_blue);
}
}
Instance of Symbol 200 MovieClip "detonator" in Frame 9
onClipEvent (load) {
speed = 5.5;
health = 70;
points = 300;
deathFrame = 21;
unloadFrame = 22;
targetX = random(666);
targetY = random(400);
dx = targetX - _x;
dy = targetY - _y;
phi = Math.atan2(dy, dx);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = targetX - _x;
dy = targetY - _y;
_rotation = (_rotation + 5);
if ((Math.abs(dx) < 10) && (Math.abs(dy) < 10)) {
play();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
_root.enemy_hit(this, _root.particle_red, _root.exploder_red);
}
}
Instance of Symbol 202 MovieClip "radiant" in Frame 9
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 190;
points = 500;
shootrate = 3000;
deathFrame = 2;
unloadFrame = 3;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.enemyshot_red, 360, 8);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 2);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_red, _root.exploder_red);
}
}
Instance of Symbol 204 MovieClip "splitter" in Frame 9
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2;
health = 75;
points = 200;
deathFrame = 2;
unloadFrame = 3;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_yellow, _root.exploder_yellow);
}
}
Instance of Symbol 206 MovieClip "targeter" in Frame 9
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 100;
points = 160;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.enemyshot_violet, 0, 0);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_violet, _root.exploder_violet);
}
}
Instance of Symbol 208 MovieClip "tracker" in Frame 9
onClipEvent (load) {
speed = 2.5;
health = 50;
points = 160;
deathFrame = 2;
unloadFrame = 3;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_yellow, _root.exploder_yellow);
}
}
Instance of Symbol 210 MovieClip "whirrer" in Frame 9
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2;
health = 75;
points = 120;
deathFrame = 2;
unloadFrame = 3;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_green, _root.exploder_green);
}
}
Instance of Symbol 212 MovieClip "maus" in Frame 9
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 161 MovieClip "blackshot" in Frame 9
onClipEvent (load) {
if (target._name == undefined) {
target = _root.getNextEnemy();
}
speed = 8;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
dx = target._x - _x;
dy = target._y - _y;
phi = Math.atan2(dy, dx);
if (((target._name != undefined) && (target._x <= 666)) && (target._y <= 400)) {
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));
}
}
Instance of Symbol 160 MovieClip "particle_green" in Frame 9
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_green" in Frame 9
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_black" in Frame 9
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_black" in Frame 9
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 164 MovieClip "enemyshot_violet" in Frame 9
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 162 MovieClip "exploder_violet" in Frame 9
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_violet" in Frame 9
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_yellow" in Frame 9
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_yellow" in Frame 9
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_red" in Frame 9
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_red" in Frame 9
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_blue" in Frame 9
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_blue" in Frame 9
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 164 MovieClip "enemyshot_red" in Frame 9
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Frame 10
Mouse.show();
if (game == 1) {
stop();
} else {
play();
}
stopAllSounds();
_root.onEnterFrame = function () {
};
Frame 11
stop();
Frame 12
function random_color() {
r = random(255);
g = random(255);
b = random(255);
c = ((r << 16) ^ (g << 8)) ^ b;
return(c);
}
function getYmove(phi) {
return(Math.cos((Math.PI/180) * phi));
}
function getXmove(phi) {
return(-Math.sin((Math.PI/180) * phi));
}
function swift_trail(enemy) {
if (!isPaused) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
particle_trail.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount].filters = particle_trail.filters;
_root["particle" + pcount]._x = enemy._x;
_root["particle" + pcount]._y = enemy._y;
}
}
function isCleared() {
for (i in _root) {
if (_root[i]._name.indexOf("enemy") != -1) {
if (_root[i]._name != undefined) {
return(false);
}
}
}
return(true);
}
function load_stage(n) {
switch (n) {
case 1 :
enemy_spawn(dangerBossNW, 0, 0);
enemy_spawn(floater, 100, 100);
enemy_spawn(floater, 100, 100);
enemy_spawn(floater, 566, 100);
enemy_spawn(floater, 566, 300);
enemy_spawn(floater, 566, 300);
enemy_spawn(floater, 100, 300);
break;
case 2 :
enemy_spawn(floater, 100, 100);
enemy_spawn(shooter, 120, 80);
enemy_spawn(floater, 566, 300);
enemy_spawn(shooter, 586, 280);
enemy_spawn(floater, 100, 300);
enemy_spawn(floater, 566, 100);
break;
case 3 :
enemy_spawn(shooter, 100, 100);
enemy_spawn(shooter, 120, 80);
enemy_spawn(floater, 566, 300);
enemy_spawn(shooter, 586, 280);
enemy_spawn(floater, 100, 300);
enemy_spawn(floater, 60, 200);
enemy_spawn(floater, 600, 200);
enemy_spawn(shooter, 566, 100);
break;
case 4 :
enemy_spawn(persuer, 100, 100);
enemy_spawn(shooter, 120, 80);
enemy_spawn(floater, 566, 300);
enemy_spawn(floater, 586, 280);
enemy_spawn(floater, 100, 300);
enemy_spawn(persuer, 60, 200);
enemy_spawn(floater, 600, 200);
enemy_spawn(shooter, 433, 29);
break;
case 5 :
enemy_spawn(persuer, 366, 30);
enemy_spawn(persuer, 566, 300);
enemy_spawn(floater, 586, 280);
enemy_spawn(floater, 110, 300);
enemy_spawn(persuer, 60, 200);
enemy_spawn(floater, 600, 200);
enemy_spawn(persuer, 233, 29);
break;
case 6 :
enemy_spawn(floater, 366, 30);
enemy_spawn(allocator, 120, 80);
enemy_spawn(shooter, 566, 300);
enemy_spawn(shooter, 586, 280);
enemy_spawn(persuer, 60, 200);
enemy_spawn(allocator, 600, 200);
break;
case 7 :
enemy_spawn(tetraBoss, 333, 30);
enemy_spawn(allocator, 80, 80);
enemy_spawn(floater, 586, 320);
enemy_spawn(shooter, 80, 320);
break;
case 8 :
enemy_spawn(allocator, 333, 30);
enemy_spawn(allocator, 80, 80);
enemy_spawn(floater, 586, 320);
enemy_spawn(allocator, 80, 320);
enemy_spawn(allocator, 586, 80);
break;
case 9 :
enemy_spawn(concealer, 100, 100);
enemy_spawn(concealer, 120, 80);
enemy_spawn(concealer, 566, 300);
enemy_spawn(concealer, 586, 280);
enemy_spawn(concealer, 100, 300);
enemy_spawn(concealer, 566, 100);
break;
case 10 :
enemy_spawn(floater, 40, 40);
enemy_spawn(shooter, 120, 80);
enemy_spawn(persuer, 566, 300);
enemy_spawn(swift, 700, 280);
enemy_spawn(allocator, 490, 320);
enemy_spawn(concealer, 566, 100);
break;
case 11 :
enemy_spawn(swift, -50, -50);
enemy_spawn(shooter, 120, 80);
enemy_spawn(swift, 700, 450);
enemy_spawn(allocator, 586, 280);
enemy_spawn(allocator, 490, 350);
enemy_spawn(concealer, 566, 100);
break;
case 12 :
enemy_spawn(swift, -50, -50);
enemy_spawn(swift, 666, 80);
enemy_spawn(swift, 700, 450);
enemy_spawn(swift, 600, 400);
break;
case 13 :
enemy_spawn(floater, 40, 40);
enemy_spawn(floater, 120, 80);
enemy_spawn(floater, 566, 380);
enemy_spawn(floater, 586, 280);
enemy_spawn(floater, 600, 350);
enemy_spawn(floater, 600, 200);
enemy_spawn(concealer, 120, 400);
enemy_spawn(floater, 40, 40);
enemy_spawn(concealer, 120, 80);
break;
case 14 :
enemy_spawn(pentaBoss, 333, 30);
break;
case 15 :
enemy_spawn(crescent, 333, 30);
enemy_spawn(crescent, 333, 370);
break;
case 16 :
enemy_spawn(allocator, 50, 50);
enemy_spawn(allocator, 600, 360);
enemy_spawn(persuer, 666, 200);
enemy_spawn(concealer, 180, 30);
enemy_spawn(concealer, 333, 390);
enemy_spawn(persuer, 0, 200);
break;
case 17 :
enemy_spawn(swift, -50, -50);
enemy_spawn(floater, 600, 360);
enemy_spawn(concealer, 600, 200);
enemy_spawn(crescent, 180, 30);
enemy_spawn(allocator, 333, 390);
enemy_spawn(shooter, 40, 270);
break;
case 18 :
enemy_spawn(crescent, 50, 50);
enemy_spawn(crescent, 600, 350);
enemy_spawn(crescent, 600, 50);
enemy_spawn(crescent, 50, 350);
break;
case 19 :
enemy_spawn(crescent, 50, 50);
enemy_spawn(crescent, 600, 350);
enemy_spawn(swift, 680, -50);
enemy_spawn(swift, -50, 450);
enemy_spawn(floater, 333, 20);
enemy_spawn(shooter, 640, 270);
enemy_spawn(shooter, 123, 380);
break;
case 20 :
enemy_spawn(allocator, 50, 50);
enemy_spawn(allocator, 600, 350);
enemy_spawn(allocator, 50, 350);
enemy_spawn(allocator, 600, 50);
enemy_spawn(shooter, 333, 20);
enemy_spawn(shooter, 640, 270);
enemy_spawn(shooter, 123, 380);
enemy_spawn(shooter, 333, 380);
enemy_spawn(shooter, 612, 219);
break;
case 21 :
enemy_spawn(moonBoss, 200, 50);
break;
case 22 :
enemy_spawn(crescent, 100, 50);
enemy_spawn(crescent, 566, 350);
enemy_spawn(concealer, 30, 280);
enemy_spawn(shooter, 45, 340);
enemy_spawn(concealer, 500, 200);
enemy_spawn(concealer, 100, 300);
break;
case 23 :
enemy_spawn(swift, -100, -50);
enemy_spawn(swift, 766, 420);
enemy_spawn(crescent, 30, 280);
enemy_spawn(allocator, 45, 340);
enemy_spawn(concealer, 500, 200);
enemy_spawn(concealer, 100, 300);
enemy_spawn(persuer, 50, 50);
enemy_spawn(allocator, 312, 324);
break;
case 24 :
enemy_spawn(swift, 700, -50);
enemy_spawn(swift, -40, 440);
enemy_spawn(crescent, 30, 280);
enemy_spawn(crescent, 45, 340);
enemy_spawn(concealer, 500, 200);
enemy_spawn(concealer, 520, 250);
enemy_spawn(allocator, 600, 200);
enemy_spawn(allocator, 620, 180);
break;
case 25 :
enemy_spawn(blackBoss, 333, 20);
}
}
function announce_stage(n) {
if (isCleared()) {
stageflag = cur_stage;
_root.player.max_lives = _root.player.lives;
white_shootrate = _root.player.shootrate;
white_shotstrength = _root.player.shotstrength;
white_multishot = _root.player.multishot;
white_multiangle = _root.player.multiangle;
white_upgrades_red = _root.player.upgrades_red;
white_upgrades_blue = _root.player.upgrades_blue;
white_red_amount = _root.player.red_amount;
white_green_amount = _root.player.green_amount;
white_blue_amount = _root.player.blue_amount;
white_max_energy = _root.player.max_energy;
white_max_lives = _root.player.max_lives;
white_redUps = redUps;
white_blueUps = blueUps;
white_reflector = _root.player.reflector;
basicdrop_red = droprate_red;
basicdrop_blue = droprate_blue;
_root.attachMovie("StageAnnounce" + (n + 1), "StageAnnounce", 8888);
_root.StageAnnounce._x = 333;
_root.StageAnnounce._y = 200;
initiated = false;
}
}
function up_hit(up) {
if (up.hitTest(player)) {
if (up.type == 0) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
bling_red.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = player._x;
_root["particle" + pcount]._y = player._y;
_root["particle" + pcount].filters = bling_red._x;
player.red_amount = player.red_amount + 1;
} else if (up.type == 1) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
bling_green.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = player._x;
_root["particle" + pcount]._y = player._y;
_root["particle" + pcount].filters = bling_green._x;
player.green_amount = player.green_amount + 1;
} else if (up.type == 2) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
bling_blue.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = player._x;
_root["particle" + pcount]._y = player._y;
_root["particle" + pcount].filters = bling_blue._x;
player.blue_amount = player.blue_amount + 1;
}
up.removeMovieClip();
}
}
function rage_start() {
rage = true;
bgmusic.stop();
bgmusic.attachSound("RageMusic");
if (isMusic) {
bgmusic.start(0, 99);
}
_root.attachMovie("Rage", "rageMode", 99999);
_root.rageMode._x = 333;
_root.rageMode._y = 200;
_root.rageMode.blendMode = "invert";
_root.attachMovie("RageTimer", "rageTimer", 100000);
_root.rageTimer._x = 333;
_root.rageTimer._y = 200;
player.invincible = true;
player.shootrate = player.shootrate - 60;
player_newInterval();
player.multishot = player.multishot + 2;
player.multiangle = player.multiangle + 15;
}
function rage_stop() {
rage = false;
bgmusic.stop();
bgmusic.attachSound("Music_white");
if (isMusic) {
bgmusic.start(0, 99);
}
_root.rageMode.removeMovieClip();
player.invincible = false;
player.shootrate = player.shootrate + 60;
player_newInterval();
player.multishot = player.multishot - 2;
player.multiangle = player.multiangle - 15;
white_shootrate = _root.player.shootrate;
white_multishot = _root.player.multishot;
white_multiangle = _root.player.multiangle;
}
function player_newInterval() {
clearInterval(player.shootInterval);
player.shootInterval = setInterval(_root.player_shoot, player.shootrate);
}
function player_upgrade() {
if ((redUps == 1) && (redUps > player.upgrades_red)) {
player.upgrades_red++;
player.shootrate = 200;
player_newInterval();
upgradeShootrate._x = player._x;
upgradeShootrate._y = player._y;
upgradeShootrate.gotoAndPlay(2);
}
if ((redUps == 2) && (redUps > player.upgrades_red)) {
player.upgrades_red++;
player.shotstrength = 75;
upgradePower._x = player._x;
upgradePower._y = player._y;
upgradePower.gotoAndPlay(2);
}
if ((redUps == 3) && (redUps > player.upgrades_red)) {
player.upgrades_red++;
player.multishot = player.multishot + 1;
player.multiangle = player.multiangle + 8;
upgradeMulti._x = player._x;
upgradeMulti._y = player._y;
upgradeMulti.gotoAndPlay(2);
}
if ((redUps == 4) && (redUps > player.upgrades_red)) {
player.upgrades_red++;
player.shootrate = 170;
player_newInterval();
upgradeShootrate._x = player._x;
upgradeShootrate._y = player._y;
upgradeShootrate.gotoAndPlay(2);
}
if ((redUps == 5) && (redUps > player.upgrades_red)) {
player.upgrades_red++;
player.shotstrength = 100;
upgradePower._x = player._x;
upgradePower._y = player._y;
upgradePower.gotoAndPlay(2);
}
if ((redUps == 6) && (redUps > player.upgrades_red)) {
player.upgrades_red++;
player.multishot = player.multishot + 1;
player.multiangle = player.multiangle + 8;
upgradeMulti._x = player._x;
upgradeMulti._y = player._y;
upgradeMulti.gotoAndPlay(2);
}
if ((blueUps == 1) && (blueUps > player.upgrades_blue)) {
player.upgrades_blue++;
player.max_energy = 200;
upgradeShield._x = player._x;
upgradeShield._y = player._y;
upgradeShield.gotoAndPlay(2);
}
if ((blueUps == 2) && (blueUps > player.upgrades_blue)) {
player.upgrades_blue++;
player.max_energy = 350;
upgradeEnergy._x = player._x;
upgradeEnergy._y = player._y;
upgradeEnergy.gotoAndPlay(2);
}
if ((blueUps == 3) && (blueUps > player.upgrades_blue)) {
player.upgrades_blue++;
player.lives = player.lives + 1;
temp = player.lives;
life_white.duplicateMovieClip("life" + temp, 5000 + temp);
_root["life" + temp]._x = 18 + (temp * 15);
_root["life" + temp]._y = 43;
_root["life" + temp].filters = life_white.filters;
upgradeLives._x = player._x;
upgradeLives._y = player._y;
upgradeLives.gotoAndPlay(2);
}
if ((blueUps == 4) && (blueUps > player.upgrades_blue)) {
player.upgrades_blue++;
player.reflector = true;
upgradeReflector._x = player._x;
upgradeReflector._y = player._y;
upgradeReflector.gotoAndPlay(2);
}
if ((blueUps == 5) && (blueUps > player.upgrades_blue)) {
player.upgrades_blue++;
player.lives = player.lives + 1;
temp = player.lives;
life_white.duplicateMovieClip("life" + temp, 5000 + temp);
_root["life" + temp]._x = 18 + (temp * 15);
_root["life" + temp]._y = 43;
_root["life" + temp].filters = life_white.filters;
upgradeLives._x = player._x;
upgradeLives._y = player._y;
upgradeLives.gotoAndPlay(2);
}
if ((blueUps == 6) && (blueUps > player.upgrades_blue)) {
player.upgrades_blue++;
player.lives = player.lives + 1;
temp = player.lives;
life_white.duplicateMovieClip("life" + temp, 5000 + temp);
_root["life" + temp]._x = 18 + (temp * 15);
_root["life" + temp]._y = 43;
_root["life" + temp].filters = life_white.filters;
upgradeLives._x = player._x;
upgradeLives._y = player._y;
upgradeLives.gotoAndPlay(2);
}
}
function player_shoot() {
if (shooting && (!isPaused)) {
if (player.multiangle != 0) {
if (player.multiangle != 360) {
section = player.multiangle / (player.multishot - 1);
} else {
section = player.multiangle / player.multishot;
}
startangle = (player._rotation - 180) - (player.multiangle / 2);
i = 0;
while (i < player.multishot) {
scount++;
if (scount > 100) {
scount = 0;
}
playershot.duplicateMovieClip("playershot" + scount, scount);
_root["playershot" + scount]._x = player._x;
_root["playershot" + scount]._y = player._y;
_root["playershot" + scount].xmove = getXmove(startangle + (i * section));
_root["playershot" + scount].ymove = getYmove(startangle + (i * section));
_root["playershot" + scount].reaction = true;
_root["playershot" + scount]._rotation = startangle + (i * section);
i++;
}
} else {
scount++;
if (scount > 100) {
scount = 0;
}
playershot.duplicateMovieClip("playershot" + scount, scount);
_root["playershot" + scount]._x = _root.player._x;
_root["playershot" + scount]._y = _root.player._y;
_root["playershot" + scount].xmove = getXmove(player._rotation - 180);
_root["playershot" + scount].ymove = getYmove(player._rotation - 180);
_root["playershot" + scount].reaction = true;
_root["playershot" + scount]._rotation = player._rotation;
}
}
}
function player_hit() {
for (i in _root) {
if ((_root[i]._name.indexOf("enemy") != -1) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root.player.hitTest(_root[i])) {
if (_root[i]._name.indexOf("eshot") != -1) {
_root[i].removeMovieClip();
}
num = 15 + random(20);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_white.duplicateMovieClip("particle" + pcount, pcount);
particle_color = new Color(_root["particle" + pcount]);
particle_color.setRGB(random_color());
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_explode.duplicateMovieClip("particle" + pcount, pcount);
particle_color = new Color(_root["particle" + pcount]);
particle_color.setRGB(random_color());
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
_root["life" + _root.player.lives].removeMovieClip();
_root.player.lives = _root.player.lives - 1;
if (_root.player.lives <= 0) {
stageflag = 99;
for (j in _root) {
if (_root[j]._name.indexOf("enemy") != -1) {
_root[j].gotoAndPlay(_root[j].unloadFrame);
}
if (((_root[j]._name.indexOf("pshield") != -1) || (_root[j]._name.indexOf("up") != -1)) || (_root[j]._name.indexOf("eshot") != -1)) {
_root[j].removeMovieClip();
}
}
_root.player.gotoAndPlay(2);
gotoAndPlay (13);
} else {
_root.player.gotoAndPlay(3);
}
}
}
}
}
function enemy_spawn(type, xpos, ypos) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
type.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = type.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(type.spawnFrame);
}
function enemy_create(type, enemy) {
if (!isPaused) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
type.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = type.filters;
_root["enemy" + ecount]._x = enemy._x;
_root["enemy" + ecount]._y = enemy._y;
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(type.spawnFrame);
}
}
function enemy_drop(xpos, ypos) {
n = random(100);
redrate = droprate_red - 1;
greenrate = redrate + droprate_green;
if (rage) {
greenrate = redrate;
}
bluerate = greenrate + droprate_blue;
rate = (droprate_red + droprate_green) + droprate_blue;
upcount++;
if (upcount > 2200) {
upcount = 2000;
}
if ((n % rate) <= redrate) {
redUp.duplicateMovieClip("up" + upcount, upcount);
_root["up" + upcount]._x = xpos;
_root["up" + upcount]._y = ypos;
_root["up" + upcount].reaction = true;
_root["up" + upcount].filters = redUp.filters;
} else if ((n % rate) <= greenrate) {
greenUp.duplicateMovieClip("up" + upcount, upcount);
_root["up" + upcount]._x = xpos;
_root["up" + upcount]._y = ypos;
_root["up" + upcount].reaction = true;
_root["up" + upcount].filters = greenUp.filters;
} else if ((n % rate) <= bluerate) {
blueUp.duplicateMovieClip("up" + upcount, upcount);
_root["up" + upcount]._x = xpos;
_root["up" + upcount]._y = ypos;
_root["up" + upcount].reaction = true;
_root["up" + upcount].filters = blueUp.filters;
}
}
function enemy_hit(enemy, particleTarget) {
i = 0;
while (i <= 100) {
if (enemy.hitTest(_root["playershot" + i])) {
if (_root.player._name != undefined) {
enemy.health = enemy.health - _root.player.shotstrength;
}
if (enemy.invincible) {
num = 9 + random(5);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_noEff.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = _root["playershot" + i]._x;
_root["particle" + pcount]._y = _root["playershot" + i]._y;
_root["particle" + pcount].reaction = true;
j++;
}
removeMovieClip(_root["playershot" + i]);
} else if (enemy.health <= 0) {
enemy_drop(particleTarget._x, particleTarget._y);
enemy.gotoAndPlay(enemy.deathFrame);
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_explode.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = particleTarget._x;
_root["particle" + pcount]._y = particleTarget._y;
_root["particle" + pcount].reaction = true;
j++;
}
} else {
num = 5 + random(4);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_white.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = particleTarget._x;
_root["particle" + pcount]._y = particleTarget._y;
_root["particle" + pcount].reaction = true;
j++;
}
}
removeMovieClip(_root["playershot" + i]);
}
i++;
}
}
function enemy_shoot(enemy, phi, n) {
if (!isPaused) {
if (phi != 0) {
if (phi != 360) {
section = phi / (n - 1);
} else {
section = phi / n;
}
startangle = (enemy._rotation - 180) - (phi / 2);
i = 0;
while (i < n) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
eshot_white.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].xmove = getXmove(startangle + (i * section));
_root["eshot" + ecount].ymove = getYmove(startangle + (i * section));
_root["eshot" + ecount].reaction = true;
i++;
}
} else {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
eshot_white.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
dx = player._x - enemy._x;
dy = player._y - enemy._y;
phi = Math.atan2(dy, dx);
_root["eshot" + ecount].xmove = Math.cos(phi);
_root["eshot" + ecount].ymove = Math.sin(phi);
_root["eshot" + ecount].reaction = true;
}
}
}
function enemy_starshoot() {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
starshot.duplicateMovieClip("eshot" + ecount, ecount);
xpos = random(666);
ypos = 10;
_root["eshot" + ecount]._x = xpos;
_root["eshot" + ecount]._y = ypos;
_root["eshot" + ecount].filters = starshot.filters;
dx = player._x - xpos;
dy = player._y - ypos;
phi = Math.atan2(dy, dx);
_root["eshot" + ecount].xmove = Math.cos(phi);
_root["eshot" + ecount].ymove = Math.sin(phi);
_root["eshot" + ecount].reaction = true;
}
function blackBoss_shoot(enemy) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
blackshot.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].reaction = true;
}
shooting = false;
scount = 0;
score = 0;
ecount = 100;
pcount = 1000;
upcount = 2000;
redUps = white_redUps;
blueUps = white_blueUps;
droprate_red = basicdrop_red;
droprate_blue = basicdrop_blue;
stopAllSounds();
isPaused = false;
bgmusic = new Sound();
bgmusic.attachSound("Music_white");
if (isMusic) {
bgmusic.start(0, 99);
}
stop();
_root.onMouseDown = function () {
shooting = true;
};
_root.onMouseUp = function () {
shooting = false;
};
_root.onEnterFrame = function () {
if (Key.isDown(80) && (!isPaused)) {
isPaused = true;
_root.attachMovie("PauseWhite", "pause", 99998);
_root.pause._x = 333;
_root.pause._y = 200;
for (i in _root) {
if (((_root[i]._name.indexOf("particle") != -1) || (_root[i]._name.indexOf("playershot") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root[i]._name != undefined) {
_root[i].stop();
}
}
}
_root.rageTimer.stop();
}
if (cur_stage > stageflag) {
announce_stage(cur_stage);
}
player_upgrade();
};
white.duplicateMovieClip("player", 77777);
_root.player._x = 333;
_root.player._y = 178;
_root.player.filters = white.filters;
_root.player.reaction = true;
Instance of Symbol 266 MovieClip "shieldGauge" in Frame 12
onClipEvent (enterFrame) {
if (_root.player.max_energy == 0) {
gauge._x = 0;
}
this.gauge._x = _root.player.shield_energy * (34 / _root.player.max_energy);
}
Instance of Symbol 271 MovieClip in Frame 12
onClipEvent (load) {
maxAmount = 16;
if (_root.redUps == 6) {
_root.redmax = "max";
} else {
_root.redmax = "+";
}
}
onClipEvent (enterFrame) {
if (_root.redUps >= 6) {
_root.player.red_amount = maxAmount;
}
_width = ((_root.player.red_amount / maxAmount) * 100);
if (_root.player.red_amount >= maxAmount) {
_root.redUps++;
if (_root.redUps >= 6) {
_root.player.red_amount = maxAmount;
_root.droprate_red = 0;
_root.redmax = "max";
} else {
_root.player.red_amount = 0;
_root.redmax = "+";
}
}
}
Instance of Symbol 273 MovieClip in Frame 12
onClipEvent (load) {
maxAmount = 16;
}
onClipEvent (enterFrame) {
_width = ((_root.player.green_amount / maxAmount) * 100);
if (_root.player.green_amount == maxAmount) {
_root.rage_start();
_root.player.green_amount = 0;
}
}
Instance of Symbol 275 MovieClip in Frame 12
onClipEvent (load) {
maxAmount = 16;
if (_root.blueUps == 6) {
_root.bluemax = "max";
} else {
_root.bluemax = "+";
}
}
onClipEvent (enterFrame) {
if (_root.blueUps >= 6) {
_root.player.blue_amount = maxAmount;
}
_width = ((_root.player.blue_amount / maxAmount) * 100);
if ((_root.player.blue_amount >= maxAmount) && (_root.blueUps < 6)) {
_root.blueUps++;
if (_root.blueUps >= 6) {
_root.player.blue_amount = maxAmount;
_root.droprate_blue = 0;
_root.bluemax = "max";
} else {
_root.player.blue_amount = 0;
_root.bluemax = "+";
}
}
}
Instance of Symbol 285 MovieClip "pentaBoss" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 1500;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 0, 0);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 287 MovieClip "pentaBoss2" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 1000;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 0, 0);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 289 MovieClip "pentaBoss3" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 750;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 0, 0);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 140 MovieClip "floater" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2;
health = 75;
points = 120;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 143 MovieClip "shooter" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 150;
points = 180;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 0, 0);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 146 MovieClip "allocator" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1.5;
health = 200;
points = 290;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 360, 4);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 149 MovieClip "persuer" in Frame 12
onClipEvent (load) {
speed = 2.5;
health = 100;
points = 160;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 152 MovieClip "concealer" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2.5;
health = 200;
points = 270;
deathFrame = 81;
unloadFrame = 82;
spawnFrame = 101;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 154 MovieClip "swift" in Frame 12
onClipEvent (load) {
speed = 4.5;
health = 50;
points = 300;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
trailInterval = setInterval(_root.swift_trail, 300, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 157 MovieClip "white" in Frame 12
onClipEvent (load) {
invincible = false;
speed = 8;
xspeed = 0;
yspeed = 0;
acceleration = 0.05;
shootrate = _root.white_shootrate;
shotstrength = _root.white_shotstrength;
multishot = _root.white_multishot;
multiangle = _root.white_multiangle;
upgrades_red = _root.white_upgrades_red;
upgrades_blue = _root.white_upgrades_blue;
red_amount = _root.white_red_amount;
green_amount = _root.white_green_amount;
blue_amount = _root.white_blue_amount;
max_energy = _root.white_max_energy;
max_lives = _root.white_max_lives;
reflector = _root.white_reflector;
lives = max_lives;
shield_active = false;
shield_energy = max_energy;
shcount = 2200;
if (reaction) {
var shootInterval = setInterval(_root.player_shoot, shootrate);
i = 1;
while (i <= lives) {
_root.life_white.duplicateMovieClip("life" + i, 5000 + i);
_root["life" + i]._x = 18 + (i * 15);
_root["life" + i]._y = 43;
_root["life" + i].filters = _root.life_white.filters;
i++;
}
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
phi = Math.atan2(dy, dx);
_rotation = (((phi * 180) / Math.PI) + 90);
if (Key.isDown(38) || (Key.isDown(87))) {
if (yspeed > -1) {
yspeed = yspeed - acceleration;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (yspeed < 1) {
yspeed = yspeed + acceleration;
}
} else {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
if (Math.abs(yspeed) < 0.05) {
yspeed = 0;
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
if (xspeed > -1) {
xspeed = xspeed - acceleration;
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
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.05) {
xspeed = 0;
}
}
if (_x <= 0) {
_x = 0;
xspeed = Math.abs(xspeed) / 2;
} else if (_x >= 666) {
_x = 666;
xspeed = (-Math.abs(xspeed)) / 2;
} else if (_y <= 0) {
_y = 0;
yspeed = Math.abs(yspeed) / 2;
} else if (_y >= 400) {
_y = 400;
yspeed = (-Math.abs(yspeed)) / 2;
}
_x = (_x + (xspeed * speed));
_y = (_y + (yspeed * speed));
if (Key.isDown(32) && (shield_energy > 10)) {
if (!shield_active) {
shcount++;
if (shcount > 3000) {
shcount = 2200;
}
_root.shield.duplicateMovieClip("pshield" + shcount, shcount);
_root["pshield" + shcount].reaction = true;
shield_active = true;
}
shield_energy = shield_energy - 3;
if (shield_energy <= 10) {
shield_energy = 0;
}
} else {
for (j in _root) {
if (_root[j]._name.indexOf("pshield") != -1) {
if (!_root[j].isUnloading) {
_root[j].gotoAndPlay(10);
_root[j].isUnloading = true;
}
}
}
shield_active = false;
}
shield_energy = shield_energy + (max_energy / 350);
if (shield_energy > max_energy) {
shield_energy = max_energy;
}
if (!invincible) {
_root.player_hit();
}
}
}
Instance of Symbol 158 MovieClip "maus" in Frame 12
onClipEvent (load) {
if ((_root.game == 0) || (_root.game == 2)) {
Mouse.hide();
}
}
onClipEvent (enterFrame) {
if ((_root.game == 0) || (_root.game == 2)) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 160 MovieClip "particle_white" in Frame 12
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 161 MovieClip "playershot" in Frame 12
onClipEvent (load) {
speed = 9;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 162 MovieClip "particle_explode" in Frame 12
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 164 MovieClip "eshot_white" in Frame 12
onClipEvent (load) {
speed = 5;
unloadFrame = 46;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 167 MovieClip "particle_noEff" in Frame 12
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 173 MovieClip "crescent" in Frame 12
onClipEvent (load) {
xTarget = random(666);
yTarget = random(400);
speed = 2;
health = 200;
points = 500;
shootrate = 3000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, 120, 3);
var AIInterval = setInterval(function () {
xTarget = random(666);
yTarget = random(400);
}, 3000, "");
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = xTarget - _x;
dy = yTarget - _y;
phi = Math.atan2(dy, dx);
angle = ((phi * 180) / Math.PI) + 90;
if ((Math.abs(dx) >= 15) || (Math.abs(dy) >= 15)) {
if ((_rotation - angle) > 10) {
_rotation = (_rotation - 10);
} else if ((_rotation - angle) < -15) {
_rotation = (_rotation + 10);
} else {
_rotation = angle;
}
xmove = _root.getXmove(_rotation + 180);
ymove = _root.getYmove(_rotation + 180);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
} else {
xTarget = random(666);
yTarget = random(400);
}
_root.enemy_hit(this, this);
}
}
Instance of Symbol 291 MovieClip "shield" in Frame 12
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_x = _root.player._x;
_y = _root.player._y;
for (i in _root) {
if (_root[i]._name.indexOf("eshot") != -1) {
if (this.hitTest(_root[i])) {
if (_root.player.reflector) {
phi = Math.atan2(_root[i].ymove, _root[i].xmove);
_root.scount++;
if (_root.scount > 100) {
_root.scount = 0;
}
_root.playershot.duplicateMovieClip("playershot" + _root.scount, _root.scount);
_root["playershot" + _root.scount]._x = _x - (22.5 * _root[i].xmove);
_root["playershot" + _root.scount]._y = _y - (22.5 * _root[i].ymove);
_root["playershot" + _root.scount].xmove = -_root[i].xmove;
_root["playershot" + _root.scount].ymove = -_root[i].ymove;
_root["playershot" + _root.scount].reaction = true;
_root["playershot" + _root.scount]._rotation = ((phi * 180) / Math.PI) + 90;
}
num = 7 + random(7);
j = 0;
while (j < num) {
_root.pcount++;
if (_root.pcount > 1500) {
_root.pcount = 1000;
}
_root.particle_noEff.duplicateMovieClip("particle" + _root.pcount, _root.pcount);
_root["particle" + _root.pcount]._x = _x - (22.5 * _root[i].xmove);
_root["particle" + _root.pcount]._y = _y - (22.5 * _root[i].ymove);
_root["particle" + _root.pcount].reaction = true;
j++;
}
_root[i].removeMovieClip();
}
}
}
}
}
Instance of Symbol 292 MovieClip "redUp" in Frame 12
onClipEvent (load) {
type = 0;
speed = 9;
unloadFrame = 2;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.up_hit(this);
}
}
Instance of Symbol 292 MovieClip "greenUp" in Frame 12
onClipEvent (load) {
type = 1;
speed = 9;
unloadFrame = 2;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.up_hit(this);
}
}
Instance of Symbol 292 MovieClip "blueUp" in Frame 12
onClipEvent (load) {
type = 2;
speed = 9;
unloadFrame = 2;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.up_hit(this);
}
}
Instance of Symbol 303 MovieClip "tetraBoss" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1.5;
health = 2000;
shootrate = 2000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_create, shootrate, _root.persuer, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 301 MovieClip "tetraBoss2" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2.5;
health = 1500;
shootrate = 2000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_create, shootrate, _root.persuer, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 300 MovieClip "tetraBoss3" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 3.5;
health = 1000;
shootrate = 2000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_create, shootrate, _root.persuer, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 305 MovieClip "starshot" in Frame 12
onClipEvent (load) {
speed = 7;
deathFrame = 57;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_rotation = (_rotation + 3);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 310 MovieClip "moonBoss" in Frame 12
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 5000;
shootrate = 1200;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_starshoot, shootrate, "");
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 150) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, this);
}
}
Instance of Symbol 312 MovieClip "blackBoss" in Frame 12
onClipEvent (load) {
xTarget = 133 + random(400);
yTarget = 80 + random(240);
speed = 4;
health = 4000;
shootrate = 1000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.blackBoss_shoot, shootrate, this);
var AIInterval = setInterval(function () {
xTarget = 133 + random(400);
yTarget = 80 + random(240);
}, 2000, "");
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = xTarget - _x;
dy = yTarget - _y;
phi = Math.atan2(dy, dx);
angle = ((phi * 180) / Math.PI) + 90;
if ((Math.abs(dx) >= 15) || (Math.abs(dy) >= 15)) {
if (Math.abs(_rotation - angle) > 6) {
_rotation = (_rotation + 6);
} else {
_rotation = angle;
}
xmove = _root.getXmove(_rotation + 180);
ymove = _root.getYmove(_rotation + 180);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
} else {
xTarget = 133 + random(400);
yTarget = 80 + random(240);
}
_root.enemy_hit(this, this);
}
}
Instance of Symbol 314 MovieClip "blackshot" in Frame 12
onClipEvent (load) {
target = _root.player;
speed = 5;
unloadFrame = 67;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
dx = target._x - _x;
dy = target._y - _y;
phi = Math.atan2(dy, dx);
if (((target._name != undefined) && (target._x <= 666)) && (target._y <= 400)) {
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));
}
}
Frame 13
Mouse.show();
if (game == 2) {
stop();
} else {
play();
}
stopAllSounds();
_root.onEnterFrame = function () {
};
Frame 14
function firework() {
xpos = random(666);
ypos = random(400);
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_explode.duplicateMovieClip("particle" + pcount, pcount);
particle_color = new Color(_root["particle" + pcount]);
particle_color.setRGB(random_color());
_root["particle" + pcount]._x = xpos;
_root["particle" + pcount]._y = ypos;
_root["particle" + pcount].reaction = true;
j++;
}
}
Mouse.show();
if (game == 2) {
stop();
} else {
play();
}
stopAllSounds();
_root.onEnterFrame = function () {
};
Instance of Symbol 162 MovieClip "particle_explode" in Frame 14
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Frame 16
function random_color() {
r = random(255);
g = random(255);
b = random(255);
c = ((r << 16) ^ (g << 8)) ^ b;
return(c);
}
function colorswitch(mc) {
do {
mc.r = random(255);
mc.g = random(255);
mc.b = random(255);
} while (((r + g) + b) < 255);
}
function getYmove(phi) {
return(Math.cos((Math.PI/180) * phi));
}
function getXmove(phi) {
return(-Math.sin((Math.PI/180) * phi));
}
function isCleared() {
for (i in _root) {
if (_root[i]._name.indexOf("enemy") != -1) {
if (_root[i]._name != undefined) {
return(false);
}
}
}
return(true);
}
function load_stage(n) {
switch (n) {
case 1 :
enemy_spawn(whirrer, 50, 50);
enemy_spawn(whirrer, 100, 100);
enemy_spawn(whirrer, 616, 50);
enemy_spawn(whirrer, 50, 350);
enemy_spawn(whirrer, 100, 250);
enemy_spawn(whirrer, 616, 350);
break;
case 2 :
enemy_spawn(whirrer, 50, 50);
enemy_spawn(targeter, 100, 100);
enemy_spawn(whirrer, 616, 50);
enemy_spawn(targeter, 50, 350);
enemy_spawn(whirrer, 616, 350);
break;
case 3 :
enemy_spawn(targeter, 50, 50);
enemy_spawn(whirrer, 100, 100);
enemy_spawn(targeter, 616, 50);
enemy_spawn(targeter, 50, 350);
enemy_spawn(targeter, 616, 350);
enemy_spawn(whirrer, 586, 300);
break;
case 4 :
enemy_spawn(targeter, 50, 50);
enemy_spawn(tracker, 300, 30);
enemy_spawn(tracker, 616, 50);
enemy_spawn(whirrer, 50, 350);
enemy_spawn(targeter, 616, 350);
enemy_spawn(whirrer, 586, 300);
break;
case 5 :
enemy_spawn(tracker, 50, 50);
enemy_spawn(tracker, 333, 30);
enemy_spawn(tracker, 616, 50);
enemy_spawn(whirrer, 50, 350);
enemy_spawn(whirrer, 616, 350);
enemy_spawn(whirrer, 333, 370);
break;
case 6 :
enemy_spawn(targeter, 333, 30);
enemy_spawn(splitter, 616, 50);
enemy_spawn(splitter, 50, 350);
enemy_spawn(targeter, 333, 370);
break;
case 7 :
enemy_spawn(ninjaBoss, 333, 30);
break;
case 8 :
enemy_spawn(targeter, 50, 50);
enemy_spawn(splitter, 333, 30);
enemy_spawn(targeter, 616, 50);
enemy_spawn(whirrer, 50, 350);
enemy_spawn(whirrer, 50, 350);
enemy_spawn(splitter, 616, 350);
enemy_spawn(whirrer, 333, 370);
enemy_spawn(whirrer, 333, 370);
break;
case 9 :
enemy_spawn(detonator, -50, -50);
enemy_spawn(detonator, 716, -50);
enemy_spawn(detonator, -50, 450);
enemy_spawn(detonator, 716, 450);
break;
case 10 :
enemy_spawn(whirrer, 80, 70);
enemy_spawn(targeter, 233, 30);
enemy_spawn(tracker, 606, 50);
enemy_spawn(splitter, 300, 350);
enemy_spawn(detonator, 716, 450);
enemy_spawn(targeter, 333, 370);
break;
case 11 :
enemy_spawn(splitter, 50, 50);
enemy_spawn(tracker, 333, 30);
enemy_spawn(splitter, 616, 50);
enemy_spawn(splitter, 50, 350);
enemy_spawn(splitter, 616, 350);
enemy_spawn(tracker, 333, 370);
break;
case 12 :
enemy_spawn(targeter, 50, 50);
enemy_spawn(targeter, 50, 50);
enemy_spawn(targeter, 333, 30);
enemy_spawn(targeter, 616, 50);
enemy_spawn(targeter, 50, 350);
enemy_spawn(targeter, 616, 350);
enemy_spawn(targeter, 616, 350);
enemy_spawn(targeter, 333, 370);
break;
case 13 :
enemy_spawn(whirrer, 50, 50);
enemy_spawn(whirrer, 616, 50);
enemy_spawn(whirrer, 616, 350);
enemy_spawn(detonator, 333, 370);
enemy_spawn(detonator, 333, 370);
enemy_spawn(detonator, 333, 30);
enemy_spawn(detonator, 333, 30);
break;
case 14 :
enemy_spawn(detoBoss, 333, 30);
break;
case 15 :
enemy_spawn(creator, 50, 50);
enemy_spawn(creator, 616, 350);
enemy_spawn(whirrer, 616, 50);
enemy_spawn(whirrer, 50, 350);
break;
case 16 :
enemy_spawn(splitter, 50, 50);
enemy_spawn(creator, 600, 360);
enemy_spawn(detonator, 666, 200);
enemy_spawn(targeter, 180, 30);
enemy_spawn(targeter, 333, 390);
enemy_spawn(whirrer, 0, 200);
break;
case 17 :
enemy_spawn(detonator, -50, -50);
enemy_spawn(whirrer, 600, 360);
enemy_spawn(splitter, 600, 200);
enemy_spawn(radiant, 180, 30);
enemy_spawn(creator, 333, 390);
enemy_spawn(targeter, 40, 270);
break;
case 18 :
enemy_spawn(targeter, 50, 50);
enemy_spawn(targeter, 616, 50);
enemy_spawn(targeter, 50, 350);
enemy_spawn(targeter, 616, 350);
enemy_spawn(detonator, 333, 10);
enemy_spawn(detonator, -50, 450);
enemy_spawn(detonator, 716, 450);
break;
case 19 :
enemy_spawn(creator, 50, 50);
enemy_spawn(creator, 616, 50);
enemy_spawn(creator, 50, 350);
enemy_spawn(radiant, 616, 350);
break;
case 20 :
enemy_spawn(radiant, 50, 50);
enemy_spawn(radiant, 616, 50);
enemy_spawn(radiant, 50, 350);
enemy_spawn(radiant, 616, 350);
enemy_spawn(targeter, 333, 30);
enemy_spawn(targeter, 333, 370);
break;
case 21 :
enemy_spawn(sunBoss, 50, 50);
break;
case 22 :
enemy_spawn(detonator, -50, -50);
enemy_spawn(detonator, -50, -50);
enemy_spawn(tracker, 333, 30);
enemy_spawn(tracker, 333, 370);
enemy_spawn(detonator, 716, -50);
enemy_spawn(detonator, -50, 450);
enemy_spawn(detonator, 716, 450);
enemy_spawn(detonator, 716, 450);
break;
case 23 :
enemy_spawn(creator, 50, 50);
enemy_spawn(creator, 616, 50);
enemy_spawn(creator, 50, 350);
enemy_spawn(creator, 616, 350);
enemy_spawn(creator, 333, 30);
enemy_spawn(creator, 333, 370);
break;
case 24 :
enemy_spawn(detonator, -50, -50);
enemy_spawn(detonator, -50, -50);
enemy_spawn(radiant, 50, 50);
enemy_spawn(radiant, 616, 50);
enemy_spawn(radiant, 50, 350);
enemy_spawn(radiant, 616, 350);
enemy_spawn(creator, 333, 30);
enemy_spawn(targeter, 333, 370);
enemy_spawn(detonator, 716, 450);
enemy_spawn(detonator, 716, 450);
break;
case 25 :
enemy_spawn(whiteBoss, 333, 20);
}
}
function announce_stage(n) {
if (isCleared()) {
stageflag = cur_stage;
_root.player.max_lives = _root.player.lives;
black_shootrate = _root.player.shootrate;
black_shotstrength = _root.player.shotstrength;
black_chainlevel = _root.player.chainlevel;
black_upgrades = _root.player.upgrades;
black_up_amount = _root.player.up_amount;
black_max_energy = _root.player.max_energy;
black_max_lives = _root.player.max_lives;
black_ups = ups;
basicdrop_black = droprate_black;
_root.attachMovie("StageAnnounce" + (n + 1), "StageAnnounce", 8888);
stageColor = new Color(_root.StageAnnounce);
stageColor.setRGB(0);
_root.StageAnnounce._x = 333;
_root.StageAnnounce._y = 200;
initiated = false;
}
}
function up_hit(up) {
if (up.hitTest(player)) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
bling_black.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = player._x;
_root["particle" + pcount]._y = player._y;
_root["particle" + pcount].filters = bling_black._x;
player.up_amount = player.up_amount + 1;
up.removeMovieClip();
}
}
function getNextEnemy() {
d = 99999 /* 0x01869F */;
for (i in _root) {
if (_root[i]._name.indexOf("enemy") != -1) {
if (((_root[i]._name != undefined) && (_root[i]._x <= 666)) && (_root[i]._y <= 400)) {
de = enemy_distance(_root[i], player);
if (d > de) {
target = _root[i];
d = de;
}
}
}
}
return(target);
}
function getChaintarget(xk, yk, exception) {
d = 99999 /* 0x01869F */;
for (k in _root) {
if (_root[k]._name.indexOf("enemy") != -1) {
if ((((_root[k]._name != undefined) && (_root[k]._name != exception)) && (_root[k]._x <= 666)) && (_root[k]._y <= 400)) {
de = enemy_distance2(_root[k], xk, yk);
if (d > de) {
chaintarget = _root[k];
d = de;
}
}
}
}
return(chaintarget);
}
function player_newInterval() {
clearInterval(player.shootInterval);
player.shootInterval = setInterval(_root.player_shoot, player.shootrate);
}
function player_upgrade() {
if ((ups == 1) && (ups > player.upgrades)) {
player.upgrades++;
player.shootrate = 480;
player_newInterval();
upgradeShootrateBST._x = player._x;
upgradeShootrateBST._y = player._y;
upgradeShootrateBST.gotoAndPlay(2);
}
if ((ups == 2) && (ups > player.upgrades)) {
player.upgrades++;
player.shotstrength = 40;
upgradePowerBST._x = player._x;
upgradePowerBST._y = player._y;
upgradePowerBST.gotoAndPlay(2);
}
if ((ups == 3) && (ups > player.upgrades)) {
player.upgrades++;
player.max_energy = 200;
upgradeShieldBST._x = player._x;
upgradeShieldBST._y = player._y;
upgradeShieldBST.gotoAndPlay(2);
}
if ((ups == 4) && (ups > player.upgrades)) {
player.upgrades++;
player.shootrate = 420;
player_newInterval();
upgradeShootrateBST._x = player._x;
upgradeShootrateBST._y = player._y;
upgradeShootrateBST.gotoAndPlay(2);
}
if ((ups == 5) && (ups > player.upgrades)) {
player.upgrades++;
player.max_energy = 300;
upgradeEnergyBST._x = player._x;
upgradeEnergyBST._y = player._y;
upgradeEnergyBST.gotoAndPlay(2);
}
if ((ups == 6) && (ups > player.upgrades)) {
player.upgrades++;
player.lives = player.lives + 1;
temp = player.lives;
life_black.duplicateMovieClip("life" + temp, 5000 + temp);
_root["life" + temp]._x = 18 + (temp * 15);
_root["life" + temp]._y = 43;
_root["life" + temp].filters = life_black.filters;
upgradeLivesBST._x = player._x;
upgradeLivesBST._y = player._y;
upgradeLivesBST.gotoAndPlay(2);
}
if ((ups == 7) && (ups > player.upgrades)) {
player.upgrades++;
player.chainlevel = 1;
upgradeChainBST._x = player._x;
upgradeChainBST._y = player._y;
upgradeChainBST.gotoAndPlay(2);
}
if ((ups == 8) && (ups > player.upgrades)) {
player.upgrades++;
player.shotstrength = 60;
upgradePowerBST._x = player._x;
upgradePowerBST._y = player._y;
upgradePowerBST.gotoAndPlay(2);
}
if ((ups == 9) && (ups > player.upgrades)) {
player.upgrades++;
player.lives = player.lives + 1;
temp = player.lives;
life_black.duplicateMovieClip("life" + temp, 5000 + temp);
_root["life" + temp]._x = 18 + (temp * 15);
_root["life" + temp]._y = 43;
_root["life" + temp].filters = life_black.filters;
upgradeLivesBST._x = player._x;
upgradeLivesBST._y = player._y;
upgradeLivesBST.gotoAndPlay(2);
}
if ((ups == 10) && (ups > player.upgrades)) {
player.upgrades++;
player.lives = player.lives + 1;
temp = player.lives;
life_black.duplicateMovieClip("life" + temp, 5000 + temp);
_root["life" + temp]._x = 18 + (temp * 15);
_root["life" + temp]._y = 43;
_root["life" + temp].filters = life_black.filters;
upgradeLivesBST._x = player._x;
upgradeLivesBST._y = player._y;
upgradeLivesBST.gotoAndPlay(2);
}
}
function player_shoot() {
if (!isPaused) {
if (shooting) {
scount++;
if (scount > 100) {
scount = 0;
}
blackshot.duplicateMovieClip("playershot" + scount, scount);
_root["playershot" + scount]._x = _root.player._x;
_root["playershot" + scount]._y = _root.player._y;
_root["playershot" + scount].chain = player.chainlevel;
_root["playershot" + scount].reaction = true;
_root["playershot" + scount]._rotation = player._rotation;
}
}
}
function player_hit() {
for (i in _root) {
if ((_root[i]._name.indexOf("enemy") != -1) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root.player.hitTest(_root[i])) {
if (_root[i]._name.indexOf("eshot") != -1) {
_root[i].removeMovieClip();
}
num = 15 + random(20);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_black.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.exploder_black.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = _root.player._x;
_root["particle" + pcount]._y = _root.player._y;
_root["particle" + pcount].reaction = true;
j++;
}
_root["life" + _root.player.lives].removeMovieClip();
_root.player.lives = _root.player.lives - 1;
if (_root.player.lives <= 0) {
stageflag = 99;
for (j in _root) {
if (_root[j]._name.indexOf("enemy") != -1) {
_root[j].gotoAndPlay(_root[j].unloadFrame);
}
if (((_root[j]._name.indexOf("pshield") != -1) || (_root[j]._name.indexOf("up") != -1)) || (_root[j]._name.indexOf("eshot") != -1)) {
_root[j].removeMovieClip();
}
}
_root.player.gotoAndPlay(2);
gotoAndPlay (17);
} else {
_root.player.gotoAndPlay(3);
}
}
}
}
}
function enemy_distance(enemy, object) {
dx = enemy._x - object._x;
dy = enemy._y - object._y;
return(Math.sqrt((dx * dx) + (dy * dy)));
}
function enemy_distance2(enemy, xk, yk) {
dx = enemy._x - xk;
dy = enemy._y - yk;
return(Math.sqrt((dx * dx) + (dy * dy)));
}
function enemy_spawn(type, xpos, ypos) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
type.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = type.filters;
_root["enemy" + ecount]._x = xpos;
_root["enemy" + ecount]._y = ypos;
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(type.spawnFrame);
}
function enemy_creator(enemy) {
if (!isPaused) {
type = random(3);
if (type == 0) {
spawnx = random(60);
spawny = random(60);
ecount++;
if (ecount > 1000) {
ecount = 100;
}
whirrer.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = whirrer.filters;
_root["enemy" + ecount]._x = enemy._x + (30 - spawnx);
_root["enemy" + ecount]._y = enemy._y + (30 - spawny);
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(21);
} else if (type == 1) {
spawnx = random(60);
spawny = random(60);
ecount++;
if (ecount > 1000) {
ecount = 100;
}
targeter.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = targeter.filters;
_root["enemy" + ecount]._x = enemy._x + (30 - spawnx);
_root["enemy" + ecount]._y = enemy._y + (30 - spawny);
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(21);
} else if (type == 2) {
spawnx = random(60);
spawny = random(60);
ecount++;
if (ecount > 1000) {
ecount = 100;
}
tracker.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = tracker.filters;
_root["enemy" + ecount]._x = enemy._x + (30 - spawnx);
_root["enemy" + ecount]._y = enemy._y + (30 - spawny);
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(21);
}
}
}
function enemy_create(type, enemy) {
if (!isPaused) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
type.duplicateMovieClip("enemy" + ecount, ecount);
_root["enemy" + ecount].filters = type.filters;
_root["enemy" + ecount]._x = enemy._x;
_root["enemy" + ecount]._y = enemy._y;
_root["enemy" + ecount].reaction = true;
_root["enemy" + ecount].gotoAndPlay(type.spawnFrame);
}
}
function enemy_drop(xpos, ypos) {
if (droprate_black != 0) {
upcount++;
if (upcount > 2200) {
upcount = 2000;
}
blackUp.duplicateMovieClip("up" + upcount, upcount);
_root["up" + upcount]._x = xpos;
_root["up" + upcount]._y = ypos;
_root["up" + upcount].reaction = true;
_root["up" + upcount].filters = blackUp.filters;
}
}
function enemy_hit(enemy, particle_source, exploder_source) {
i = 0;
while (i <= 100) {
if (enemy.hitTest(_root["playershot" + i])) {
if (_root.player._name != undefined) {
enemy.health = enemy.health - _root.player.shotstrength;
}
if (enemy.health <= 0) {
enemy_drop(enemy._x, enemy._y);
enemy.gotoAndPlay(enemy.deathFrame);
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
exploder_source.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = enemy._x;
_root["particle" + pcount]._y = enemy._y;
_root["particle" + pcount].reaction = true;
j++;
}
} else {
num = 5 + random(4);
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
particle_source.duplicateMovieClip("particle" + pcount, pcount);
_root["particle" + pcount]._x = enemy._x;
_root["particle" + pcount]._y = enemy._y;
_root["particle" + pcount].reaction = true;
j++;
}
}
if (_root["playershot" + i].chain > 0) {
chaintarget = getChaintarget(enemy._x, enemy._y, enemy._name);
if (chaintarget._name != undefined) {
scount++;
if (scount > 100) {
scount = 0;
}
blackshot.duplicateMovieClip("playershot" + scount, scount);
dx = chaintarget._x - enemy._x;
dy = chaintarget._y - enemy._y;
angle = Math.atan2(dy, dx);
_root["playershot" + scount]._x = enemy._x + (Math.cos(angle) * 30);
_root["playershot" + scount]._y = enemy._y + (Math.sin(angle) * 30);
_root["playershot" + scount].chain = _root["playershot" + i].chain - 1;
_root["playershot" + scount].reaction = true;
_root["playershot" + scount].target = chaintarget;
_root["playershot" + scount]._rotation = ((angle * 180) / Math.PI) + 90;
}
}
removeMovieClip(_root["playershot" + i]);
}
i++;
}
}
function enemy_shoot(enemy, shot_source, phi, n) {
if (!isPaused) {
if (phi != 0) {
if (phi != 360) {
section = phi / (n - 1);
} else {
section = phi / n;
}
startangle = (enemy._rotation - 180) - (phi / 2);
i = 0;
while (i < n) {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
shot_source.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].reaction = true;
_root["eshot" + ecount].filters = shot_source.filters;
_root["eshot" + ecount]._rotation = startangle + (i * section);
_root["eshot" + ecount].xmove = getXmove(startangle + (i * section));
_root["eshot" + ecount].ymove = getYmove(startangle + (i * section));
i++;
}
} else {
ecount++;
if (ecount > 1000) {
ecount = 100;
}
shot_source.duplicateMovieClip("eshot" + ecount, ecount);
_root["eshot" + ecount]._x = enemy._x;
_root["eshot" + ecount]._y = enemy._y;
_root["eshot" + ecount].reaction = true;
_root["eshot" + ecount].filters = shot_source.filters;
dx = player._x - enemy._x;
dy = player._y - enemy._y;
phi = Math.atan2(dy, dx);
_root["eshot" + ecount].xmove = Math.cos(phi);
_root["eshot" + ecount].ymove = Math.sin(phi);
}
}
}
shooting = false;
scount = 0;
ecount = 100;
pcount = 1000;
upcount = 2000;
ups = black_ups;
droprate_black = basicdrop_black;
stopAllSounds();
isPaused = false;
bgmusic = new Sound();
bgmusic.attachSound("Music_black");
if (isMusic) {
bgmusic.start(0, 99);
}
stop();
_root.onMouseDown = function () {
shooting = true;
};
_root.onMouseUp = function () {
shooting = false;
};
_root.onEnterFrame = function () {
if (Key.isDown(80) && (!isPaused)) {
isPaused = true;
_root.attachMovie("PauseWhite", "pause", 222222);
_root.pause._x = 333;
_root.pause._y = 200;
pauseColor = new Color(_root.pause);
pauseColor.setRGB(0);
for (i in _root) {
if (((_root[i]._name.indexOf("particle") != -1) || (_root[i]._name.indexOf("playershot") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
if (_root[i]._name != undefined) {
_root[i].stop();
}
}
}
}
if (cur_stage > stageflag) {
announce_stage(cur_stage);
}
player_upgrade();
};
black.duplicateMovieClip("player", 77777);
_root.player._x = 333;
_root.player._y = 178;
_root.player.filters = black.filters;
_root.player.reaction = true;
Instance of Symbol 188 MovieClip "bg" in Frame 16
onClipEvent (load) {
cr = 255;
cg = 255;
cb = 255;
bgcolor = new Color(this);
bgcolor.setRGB(16777215);
do {
r = random(255);
g = random(255);
b = random(255);
} while (((r + g) + b) < 255);
colorInterval = setInterval(_root.colorswitch, 8000, this);
}
onClipEvent (enterFrame) {
if (r > cr) {
cr = cr + 1;
} else if (r < cr) {
cr = cr - 1;
}
if (g > cg) {
cg = cg + 1;
} else if (g < cg) {
cg = cg - 1;
}
if (b > cb) {
cb = cb + 1;
} else if (b < cb) {
cb = cb - 1;
}
rgb = ((cr << 16) ^ (cg << 8)) ^ cb;
bgcolor.setRGB(rgb);
}
Instance of Symbol 275 MovieClip in Frame 16
onClipEvent (load) {
maxAmount = 18;
if (_root.ups >= 10) {
_root.blackmax = "max";
} else {
_root.blackmax = "+";
}
}
onClipEvent (enterFrame) {
if (_root.ups >= 10) {
_root.player.up_amount = maxAmount;
}
_width = ((_root.player.up_amount / maxAmount) * 100);
if ((_root.player.up_amount >= maxAmount) && (_root.ups < 10)) {
_root.ups++;
if (_root.ups >= 10) {
_root.player.up_amount = maxAmount;
_root.droprate_black = 0;
_root.blackmax = "max";
} else {
_root.player.up_amount = 0;
_root.blackmax = "+";
}
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.player.max_energy == 0) {
gauge._x = 0;
}
this.gauge._x = _root.player.shield_energy * (34 / _root.player.max_energy);
}
Instance of Symbol 195 MovieClip "black" in Frame 16
onClipEvent (load) {
invincible = false;
speed = 7;
xmove = 0;
ymove = 0;
shootrate = _root.black_shootrate;
shotstrength = _root.black_shotstrength;
chainlevel = _root.black_chainlevel;
upgrades = _root.black_upgrades;
up_amount = _root.black_up_amount;
max_energy = _root.black_max_energy;
max_lives = _root.black_max_lives;
lives = max_lives;
shield_active = false;
shield_energy = max_energy;
shcount = 2200;
if (reaction) {
var shootInterval = setInterval(_root.player_shoot, shootrate);
i = 1;
while (i <= lives) {
_root.life_black.duplicateMovieClip("life" + i, 5000 + i);
_root["life" + i]._x = 18 + (i * 15);
_root["life" + i]._y = 43;
_root["life" + i].filters = _root.life_black.filters;
i++;
}
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
phi = Math.atan2(dy, dx);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
_rotation = (((phi * 180) / Math.PI) + 90);
if (_x <= 0) {
_x = 0;
} else if (_x >= 666) {
_x = 666;
}
if (_y <= 0) {
_y = 0;
} else if (_y >= 400) {
_y = 400;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
if (Key.isDown(32) && (shield_energy > 10)) {
if (!shield_active) {
shcount++;
if (shcount > 3000) {
shcount = 2200;
}
_root.blackshield.duplicateMovieClip("pshield" + shcount, shcount);
_root["pshield" + shcount].reaction = true;
shield_active = true;
}
shield_energy = shield_energy - 3;
if (shield_energy <= 10) {
shield_energy = 0;
}
} else {
for (j in _root) {
if (_root[j]._name.indexOf("pshield") != -1) {
if (!_root[j].isUnloading) {
_root[j].gotoAndPlay(10);
_root[j].isUnloading = true;
}
}
}
shield_active = false;
}
shield_energy = shield_energy + (max_energy / 350);
if (shield_energy > max_energy) {
shield_energy = max_energy;
}
if (!invincible) {
_root.player_hit();
}
}
}
Instance of Symbol 197 MovieClip "creator" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 190;
shootrate = 3500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_creator, shootrate, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_blue, _root.exploder_blue);
}
}
Instance of Symbol 200 MovieClip "detonator" in Frame 16
onClipEvent (load) {
speed = 5.5;
health = 70;
points = 300;
deathFrame = 21;
unloadFrame = 22;
spawnFrame = 40;
targetX = random(666);
targetY = random(400);
dx = targetX - _x;
dy = targetY - _y;
phi = Math.atan2(dy, dx);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = targetX - _x;
dy = targetY - _y;
_rotation = (_rotation + 5);
if ((Math.abs(dx) < 10) && (Math.abs(dy) < 10)) {
play();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
_root.enemy_hit(this, _root.particle_red, _root.exploder_red);
}
}
Instance of Symbol 202 MovieClip "radiant" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 250;
shootrate = 3000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.eshot_red, 360, 8);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 2);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_red, _root.exploder_red);
}
}
Instance of Symbol 204 MovieClip "splitter" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2;
health = 75;
points = 200;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_yellow, _root.exploder_yellow);
}
}
Instance of Symbol 206 MovieClip "targeter" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 100;
points = 160;
shootrate = 2500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.eshot_violet, 0, 0);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_violet, _root.exploder_violet);
}
}
Instance of Symbol 208 MovieClip "tracker" in Frame 16
onClipEvent (load) {
speed = 2.5;
health = 50;
points = 160;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_yellow, _root.exploder_yellow);
}
}
Instance of Symbol 210 MovieClip "whirrer" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2;
health = 75;
points = 120;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_green, _root.exploder_green);
}
}
Instance of Symbol 212 MovieClip "maus" in Frame 16
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 161 MovieClip "blackshot" in Frame 16
onClipEvent (load) {
if (target._name == undefined) {
target = _root.getNextEnemy();
}
speed = 8;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
dx = target._x - _x;
dy = target._y - _y;
phi = Math.atan2(dy, dx);
if (((target._name != undefined) && (target._x <= 666)) && (target._y <= 400)) {
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));
}
}
Instance of Symbol 160 MovieClip "particle_green" in Frame 16
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_green" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_black" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_black" in Frame 16
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 164 MovieClip "eshot_violet" in Frame 16
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 162 MovieClip "exploder_violet" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_violet" in Frame 16
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_yellow" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_yellow" in Frame 16
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_red" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_red" in Frame 16
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 160 MovieClip "particle_blue" in Frame 16
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_blue" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 164 MovieClip "eshot_red" in Frame 16
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 291 MovieClip "blackshield" in Frame 16
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_x = _root.player._x;
_y = _root.player._y;
for (i in _root) {
if (_root[i]._name.indexOf("eshot") != -1) {
if (this.hitTest(_root[i])) {
num = 7 + random(7);
j = 0;
while (j < num) {
_root.pcount++;
if (_root.pcount > 1500) {
_root.pcount = 1000;
}
_root.noEff_black.duplicateMovieClip("particle" + _root.pcount, _root.pcount);
_root["particle" + _root.pcount]._x = _x - (22.5 * _root[i].xmove);
_root["particle" + _root.pcount]._y = _y - (22.5 * _root[i].ymove);
_root["particle" + _root.pcount].reaction = true;
j++;
}
_root[i].removeMovieClip();
}
}
}
}
}
Instance of Symbol 167 MovieClip "noEff_black" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 292 MovieClip "blackUp" in Frame 16
onClipEvent (load) {
speed = 9;
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
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);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.up_hit(this);
}
}
Instance of Symbol 328 MovieClip "ninjaBoss" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2.5;
health = 1100;
shootrate = 1500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.eshot_violet, 360, 4);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 2);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_violet, _root.exploder_violet);
}
}
Instance of Symbol 333 MovieClip "ninjaBoss2" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2.5;
health = 1100;
shootrate = 1500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.eshot_violet, 360, 3);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 2);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_violet, _root.exploder_violet);
}
}
Instance of Symbol 338 MovieClip "ninjaBoss3" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 2.5;
health = 1100;
shootrate = 1500;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.eshot_violet, 360, 2);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 2);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_violet, _root.exploder_violet);
}
}
Instance of Symbol 342 MovieClip "detoBoss" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 2200;
shootrate = 3000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(function (me) {
_root.enemy_create(_root.detonator, me);
_root.enemy_create(_root.detonator, me);
_root.enemy_create(_root.detonator, me);
}, shootrate, this);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1.5);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_red, _root.exploder_red);
}
}
Instance of Symbol 346 MovieClip "sunBoss" in Frame 16
onClipEvent (load) {
direction = random(360);
xmove = Math.cos(direction);
ymove = Math.sin(direction);
speed = 1;
health = 3500;
shootrate = 4000;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.sunbeam, 360, 8);
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
_rotation = (_rotation + 1.5);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 150) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
_root.enemy_hit(this, _root.particle_red, _root.exploder_red);
}
}
Instance of Symbol 349 MovieClip "sunbeam" in Frame 16
onClipEvent (load) {
speed = 6;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
_rotation = (_rotation + 6);
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 350 MovieClip "whiteBoss" in Frame 16
onClipEvent (load) {
xTarget = 133 + random(400);
yTarget = 80 + random(240);
speed = 4;
health = 4000;
shootrate = 400;
deathFrame = 2;
unloadFrame = 3;
spawnFrame = 21;
if (reaction) {
var eshootInterval = setInterval(_root.enemy_shoot, shootrate, this, _root.whiteshot, 30, 3);
var AIInterval = setInterval(function () {
xTarget = 133 + random(400);
yTarget = 80 + random(240);
}, 2000, "");
}
}
onClipEvent (enterFrame) {
if (reaction && (!_root.isPaused)) {
dx = xTarget - _x;
dy = yTarget - _y;
phi = Math.atan2(dy, dx);
angle = ((phi * 180) / Math.PI) + 90;
if ((Math.abs(dx) >= 15) || (Math.abs(dy) >= 15)) {
if (Math.abs(_rotation - angle) > 6) {
_rotation = (_rotation + 6);
} else {
_rotation = angle;
}
xmove = _root.getXmove(_rotation + 180);
ymove = _root.getYmove(_rotation + 180);
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
} else {
xTarget = 133 + random(400);
yTarget = 80 + random(240);
}
_root.enemy_hit(this, _root.particle_white, _root.exploder_white);
}
}
Instance of Symbol 161 MovieClip "whiteshot" in Frame 16
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if ((((_x > 666) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
} else {
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
}
Instance of Symbol 160 MovieClip "particle_white" in Frame 16
onClipEvent (load) {
phi = random(360);
size = random(200);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 2;
_xscale = (100 + size);
_yscale = (100 + size);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Instance of Symbol 162 MovieClip "exploder_white" in Frame 16
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.acos(xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.asin(ymove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Frame 17
Mouse.show();
if (game == 3) {
stop();
}
stopAllSounds();
_root.onEnterFrame = function () {
};
Frame 18
function firework() {
xpos = random(666);
ypos = random(400);
num = 60;
j = 0;
while (j < num) {
pcount++;
if (pcount > 1500) {
pcount = 1000;
}
_root.particle_explode.duplicateMovieClip("particle" + pcount, pcount);
particle_color = new Color(_root["particle" + pcount]);
particle_color.setRGB(random_color());
_root["particle" + pcount]._x = xpos;
_root["particle" + pcount]._y = ypos;
_root["particle" + pcount].reaction = true;
j++;
}
}
Mouse.show();
if (game == 3) {
stop();
}
stopAllSounds();
_root.onEnterFrame = function () {
};
Instance of Symbol 162 MovieClip "particle_explode" in Frame 18
onClipEvent (load) {
phi = random(360);
xmove = Math.cos(phi);
ymove = Math.sin(phi);
speed = 4;
_rotation = (((phi * 180) / Math.PI) + 90);
}
onClipEvent (enterFrame) {
if ((!_root.isPaused) && (reaction)) {
if (((_x >= 666) && (xmove > 0)) || ((_x <= 0) && (xmove < 0))) {
xmove = -xmove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
} else if (((_y >= 400) && (ymove > 0)) || ((_y <= 0) && (ymove < 0))) {
ymove = -ymove;
phi = Math.atan2(ymove, xmove);
_rotation = (((phi * 180) / Math.PI) + 90);
}
_x = (_x + (speed * xmove));
_y = (_y + (speed * ymove));
}
}
Symbol 3 MovieClip [StageAnnounce1] Frame 57
_root.cur_stage = 1;
_root.load_stage(1);
this.removeMovieClip();
stop();
Symbol 5 MovieClip [StageAnnounce2] Frame 57
_root.cur_stage = 2;
_root.load_stage(2);
this.removeMovieClip();
stop();
Symbol 7 MovieClip [StageAnnounce3] Frame 57
_root.cur_stage = 3;
_root.load_stage(3);
this.removeMovieClip();
stop();
Symbol 20 MovieClip [RageTimer] Frame 480
_root.rage_stop();
this.removeMovieClip();
Symbol 22 MovieClip [StageAnnounce4] Frame 57
_root.cur_stage = 4;
_root.load_stage(4);
this.removeMovieClip();
stop();
Symbol 24 MovieClip [StageAnnounce5] Frame 57
_root.cur_stage = 5;
_root.load_stage(5);
this.removeMovieClip();
stop();
Symbol 26 MovieClip [StageAnnounce6] Frame 57
_root.cur_stage = 6;
_root.load_stage(6);
this.removeMovieClip();
stop();
Symbol 28 MovieClip [StageAnnounce7] Frame 57
_root.cur_stage = 7;
_root.load_stage(7);
this.removeMovieClip();
stop();
Symbol 30 MovieClip [StageAnnounce8] Frame 57
_root.cur_stage = 8;
_root.load_stage(8);
this.removeMovieClip();
stop();
Symbol 32 MovieClip [StageAnnounce9] Frame 57
_root.cur_stage = 9;
_root.load_stage(9);
this.removeMovieClip();
stop();
Symbol 34 MovieClip [StageAnnounce10] Frame 57
_root.cur_stage = 10;
_root.load_stage(10);
this.removeMovieClip();
stop();
Symbol 36 MovieClip [StageAnnounce11] Frame 57
_root.cur_stage = 11;
_root.load_stage(11);
this.removeMovieClip();
stop();
Symbol 38 MovieClip [StageAnnounce12] Frame 57
_root.cur_stage = 12;
_root.load_stage(12);
this.removeMovieClip();
stop();
Symbol 40 MovieClip [StageAnnounce13] Frame 57
_root.cur_stage = 13;
_root.load_stage(13);
this.removeMovieClip();
stop();
Symbol 42 MovieClip [StageAnnounce14] Frame 57
_root.cur_stage = 14;
_root.load_stage(14);
this.removeMovieClip();
stop();
Symbol 44 MovieClip [StageAnnounce15] Frame 57
_root.cur_stage = 15;
_root.load_stage(15);
this.removeMovieClip();
stop();
Symbol 46 MovieClip [StageAnnounce16] Frame 57
_root.cur_stage = 16;
_root.load_stage(16);
this.removeMovieClip();
stop();
Symbol 48 MovieClip [StageAnnounce17] Frame 57
_root.cur_stage = 17;
_root.load_stage(17);
this.removeMovieClip();
stop();
Symbol 50 MovieClip [StageAnnounce18] Frame 57
_root.cur_stage = 18;
_root.load_stage(18);
this.removeMovieClip();
stop();
Symbol 52 MovieClip [StageAnnounce19] Frame 57
_root.cur_stage = 19;
_root.load_stage(19);
this.removeMovieClip();
stop();
Symbol 54 MovieClip [StageAnnounce20] Frame 57
_root.cur_stage = 20;
_root.load_stage(20);
this.removeMovieClip();
stop();
Symbol 59 Button
on (press) {
if (!_root.isMusic) {
_root.bgmusic.start(0, 99);
_root.pause.onColor.setRGB(16777215);
_root.pause.offColor.setRGB(6710886);
_root.isMusic = true;
}
}
Symbol 61 Button
on (press) {
if (_root.isMusic) {
_root.bgmusic.stop();
_root.pause.onColor.setRGB(6710886);
_root.pause.offColor.setRGB(16777215);
_root.isMusic = false;
}
}
Symbol 63 Button
on (press) {
_root._quality = "HIGH";
_root.pause.hColor.setRGB(16777215);
_root.pause.mColor.setRGB(6710886);
_root.pause.lColor.setRGB(6710886);
}
Symbol 65 Button
on (press) {
_root._quality = "MEDIUM";
_root.pause.hColor.setRGB(6710886);
_root.pause.mColor.setRGB(16777215);
_root.pause.lColor.setRGB(6710886);
}
Symbol 67 Button
on (press) {
_root._quality = "LOW";
_root.pause.hColor.setRGB(6710886);
_root.pause.mColor.setRGB(6710886);
_root.pause.lColor.setRGB(16777215);
}
Symbol 69 Button
on (press, keyPress "p") {
play();
}
Symbol 71 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 72 MovieClip [PauseWhite] Frame 17
offColor = new Color(musicOff);
onColor = new Color(musicOn);
hColor = new Color(hq);
mColor = new Color(mq);
lColor = new Color(lq);
if (_root.isMusic) {
onColor.setRGB(16777215);
offColor.setRGB(6710886);
} else {
offColor.setRGB(16777215);
onColor.setRGB(6710886);
}
if (_root._quality == "LOW") {
lColor.setRGB(16777215);
mColor.setRGB(6710886);
hColor.setRGB(6710886);
} else if (_root._quality == "MEDIUM") {
lColor.setRGB(6710886);
mColor.setRGB(16777215);
hColor.setRGB(6710886);
} else {
lColor.setRGB(6710886);
mColor.setRGB(6710886);
hColor.setRGB(16777215);
}
stop();
Symbol 72 MovieClip [PauseWhite] Frame 35
_root.isPaused = false;
for (i in _root) {
if (((_root[i]._name.indexOf("particle") != -1) || (_root[i]._name.indexOf("playershot") != -1)) || (_root[i]._name.indexOf("eshot") != -1)) {
_root[i].play();
}
_root.rageTimer.play();
}
this.removeMovieClip();
Symbol 74 MovieClip [StageAnnounce21] Frame 57
_root.cur_stage = 21;
_root.load_stage(21);
this.removeMovieClip();
stop();
Symbol 76 MovieClip [StageAnnounce22] Frame 57
_root.cur_stage = 22;
_root.load_stage(22);
this.removeMovieClip();
stop();
Symbol 78 MovieClip [StageAnnounce23] Frame 57
_root.cur_stage = 23;
_root.load_stage(23);
this.removeMovieClip();
stop();
Symbol 80 MovieClip [StageAnnounce24] Frame 57
_root.cur_stage = 24;
_root.load_stage(24);
this.removeMovieClip();
stop();
Symbol 82 MovieClip [StageAnnounce25] Frame 57
_root.cur_stage = 25;
_root.load_stage(25);
this.removeMovieClip();
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 19
_root.play();
Symbol 92 MovieClip Frame 215
_root.play();
Symbol 97 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 104 MovieClip Frame 243
_root.play();
_root.play();
Symbol 108 Button
on (rollOver) {
temp = _root.blackMenu.description;
_root.blackMenu.description = "Test your skills in 25 levels!\n Encounter challenging bosses and collect powerful upgrades!";
}
on (rollOut) {
_root.blackMenu.description = temp;
}
on (press) {
_root.game = 3;
_root.initiate_blackstage();
_root.play();
}
Symbol 110 Button
on (rollOver) {
temp = _root.blackMenu.description;
_root.blackMenu.description = "Survive as along as you can!\n Upgrades are gained by raising your score";
}
on (rollOut) {
_root.blackMenu.description = temp;
}
on (press) {
_root.game = 1;
_root.play();
}
Symbol 112 MovieClip Frame 1
description = "all out action-shooter";
stop();
onEnterFrame = function () {
descriptiontext = description;
};
Symbol 112 MovieClip Frame 31
description = "Controls: \n\n Movement: move mouse\n Shoot: left mouse button\n Shield (stage mode): SPACE\nPause menu: P";
stop();
onEnterFrame = function () {
descriptiontext = description;
};
Symbol 112 MovieClip Frame 52
gotoAndPlay (1);
Symbol 116 Button
on (rollOver) {
temp = _root.whiteMenu.description;
_root.whiteMenu.description = "Play your way through 25 different levels with unique boss enemies!\n Includes different upgrade paths!";
}
on (rollOut) {
_root.whiteMenu.description = temp;
}
on (press) {
_root.game = 2;
_root.initiate_whitestage();
_root.play();
}
Symbol 118 Button
on (rollOver) {
temp = _root.whiteMenu.description;
_root.whiteMenu.description = "Survive as along as you can!\n Upgrades are gained by raising your score";
}
on (rollOut) {
_root.whiteMenu.description = temp;
}
on (press) {
_root.game = 0;
_root.play();
}
Symbol 119 MovieClip Frame 1
description = "classical top-down shooter";
stop();
onEnterFrame = function () {
descriptiontext = description;
};
Symbol 119 MovieClip Frame 31
description = "Controls: \n\n Movement: WASD\n Shoot: left mouse button\n Shield (stage mode): SPACE\nPause menu: P";
stop();
onEnterFrame = function () {
descriptiontext = description;
};
Symbol 119 MovieClip Frame 52
gotoAndPlay (1);
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 35
gotoAndStop (1);
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 35
gotoAndStop (1);
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 35
gotoAndStop (1);
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 140 MovieClip Frame 20
this.removeMovieClip();
Symbol 140 MovieClip Frame 21
play();
Symbol 140 MovieClip Frame 35
gotoAndPlay (1);
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 143 MovieClip Frame 20
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 143 MovieClip Frame 21
play();
Symbol 143 MovieClip Frame 35
gotoAndPlay (1);
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 146 MovieClip Frame 20
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 146 MovieClip Frame 21
play();
Symbol 146 MovieClip Frame 35
gotoAndPlay (1);
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 149 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 149 MovieClip Frame 21
play();
Symbol 149 MovieClip Frame 35
gotoAndPlay (1);
Symbol 152 MovieClip Frame 80
gotoAndPlay (1);
Symbol 152 MovieClip Frame 81
this.removeMovieClip();
stop();
Symbol 152 MovieClip Frame 100
this.removeMovieClip();
stop();
Symbol 152 MovieClip Frame 101
play();
Symbol 152 MovieClip Frame 115
gotoAndPlay (1);
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
clearInterval(this.trailInterval);
this.removeMovieClip();
stop();
Symbol 154 MovieClip Frame 20
clearInterval(this.trailInterval);
this.removeMovieClip();
stop();
Symbol 154 MovieClip Frame 21
play();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
clearInterval(this.shootInterval);
clearInterval(this.scoreInterval);
this.removeMovieClip();
stop();
Symbol 157 MovieClip Frame 3
this.invincible = true;
Symbol 157 MovieClip Frame 75
this.invincible = false;
stop();
Symbol 157 MovieClip Frame 94
clearInterval(this.shootInterval);
clearInterval(this.scoreInterval);
this.removeMovieClip();
stop();
Symbol 160 MovieClip Frame 38
this.removeMovieClip();
stop();
Symbol 161 MovieClip Frame 50
this.removeMovieClip();
stop();
Symbol 162 MovieClip Frame 37
this.removeMovieClip();
stop();
Symbol 164 MovieClip Frame 46
this.removeMovieClip();
stop();
Symbol 166 MovieClip Frame 22
this.removeMovieClip();
Symbol 167 MovieClip Frame 22
this.removeMovieClip();
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
_parent.gotoAndPlay(_parent.deathFrame);
this.removeMovieClip();
stop();
Symbol 173 MovieClip Frame 1
stop();
Instance of Symbol 170 MovieClip "heart" in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
points = 500;
health = 200;
deathFrame = 2;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Instance of Symbol 172 MovieClip "shield" in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
health = 0;
invincible = true;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Symbol 173 MovieClip Frame 2
clearInterval(this.AIInterval);
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Instance of Symbol 170 MovieClip "heart" in Symbol 173 MovieClip Frame 2
onClipEvent (load) {
points = 500;
health = 300;
deathFrame = 2;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Instance of Symbol 170 MovieClip "heart" in Symbol 173 MovieClip Frame 3
onClipEvent (load) {
points = 500;
health = 300;
deathFrame = 2;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Instance of Symbol 172 MovieClip "shield" in Symbol 173 MovieClip Frame 3
onClipEvent (load) {
health = 0;
invincible = true;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Symbol 173 MovieClip Frame 20
clearInterval(this.AIInterval);
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 173 MovieClip Frame 21
play();
Symbol 173 MovieClip Frame 35
gotoAndPlay (1);
Symbol 177 MovieClip Frame 33
stop();
Symbol 179 Button
on (press) {
_root.gotoAndPlay(3);
}
Symbol 180 Button
on (press) {
_root.gotoAndPlay(6);
}
Symbol 181 MovieClip Frame 33
stop();
Symbol 184 Button
on (press) {
_root.gotoAndPlay(4);
}
Symbol 185 MovieClip Frame 33
stop();
Symbol 187 MovieClip Frame 33
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
clearInterval(this.shootInterval);
clearInterval(this.scoreInterval);
this.removeMovieClip();
stop();
Symbol 195 MovieClip Frame 3
this.invincible = true;
Symbol 195 MovieClip Frame 75
this.invincible = false;
stop();
Symbol 195 MovieClip Frame 94
clearInterval(this.shootInterval);
clearInterval(this.scoreInterval);
this.removeMovieClip();
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 197 MovieClip Frame 20
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 197 MovieClip Frame 21
play();
Symbol 197 MovieClip Frame 35
gotoAndPlay (1);
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 20
_root.ecount++;
if (_root.ecount > 1000) {
_root.ecount = 100;
}
_root.detonation.duplicateMovieClip("eshot" + _root.ecount, _root.ecount);
_root["eshot" + _root.ecount]._x = _x;
_root["eshot" + _root.ecount]._y = _y;
_root["eshot" + _root.ecount].reaction = true;
_root["eshot" + _root.ecount].filters = _root.detonation.filters;
this.removeMovieClip();
stop();
Symbol 200 MovieClip Frame 21
this.removeMovieClip();
stop();
Symbol 200 MovieClip Frame 39
this.removeMovieClip();
stop();
Symbol 200 MovieClip Frame 40
play();
Symbol 200 MovieClip Frame 56
gotoAndPlay (1);
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 202 MovieClip Frame 20
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 202 MovieClip Frame 21
play();
Symbol 202 MovieClip Frame 35
gotoAndPlay (1);
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 2
spawnx1 = random(60);
spawnx2 = random(60);
spawny1 = random(60);
spawny2 = random(60);
_root.ecount++;
if (_root.ecount > 1000) {
_root.ecount = 100;
}
_root.tracker.duplicateMovieClip("enemy" + _root.ecount, _root.ecount);
_root["enemy" + _root.ecount].filters = _root.tracker.filters;
_root["enemy" + _root.ecount]._x = _x + (30 - spawnx1);
_root["enemy" + _root.ecount]._y = _y + (30 - spawny1);
_root["enemy" + _root.ecount].reaction = true;
_root.ecount++;
if (_root.ecount > 1000) {
_root.ecount = 100;
}
_root.tracker.duplicateMovieClip("enemy" + _root.ecount, _root.ecount);
_root["enemy" + _root.ecount].filters = _root.tracker.filters;
_root["enemy" + _root.ecount]._x = _x + (30 - spawnx2);
_root["enemy" + _root.ecount]._y = _y + (30 - spawny2);
_root["enemy" + _root.ecount].reaction = true;
this.removeMovieClip();
stop();
Symbol 204 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 204 MovieClip Frame 21
play();
Symbol 204 MovieClip Frame 35
gotoAndPlay (1);
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 206 MovieClip Frame 20
clearInterval(eshootInterval);
this.removeMovieClip();
stop();
Symbol 206 MovieClip Frame 21
play();
Symbol 206 MovieClip Frame 35
gotoAndPlay (1);
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 208 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 208 MovieClip Frame 21
play();
Symbol 208 MovieClip Frame 35
gotoAndPlay (1);
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 210 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 210 MovieClip Frame 21
play();
Symbol 210 MovieClip Frame 35
gotoAndPlay (1);
Symbol 214 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 218 Button
on (press) {
_root.gotoAndPlay(9);
}
Symbol 219 MovieClip Frame 33
stop();
Symbol 222 Button
on (press) {
clearInterval(_root.bg.colorInterval);
_root.gotoAndPlay(4);
}
Symbol 223 MovieClip Frame 33
stop();
Symbol 231 Button
on (rollOver) {
colordesc1 = "White provides the absolute balance between offensive, defensive and special upgrades.\nWhile you probably won't complete any of the upgrade paths, this choice will give you a decent allround set-up.";
}
on (rollOut) {
colordesc1 = "";
}
on (press) {
basicdrop_red = 1;
droprate_green = 1;
basicdrop_blue = 1;
play();
}
Symbol 236 Button
on (rollOver) {
colordesc1 = "Red specializes fully on offensive upgrades.\nThis choice gives you the best chances to complete the offensive upgrade path, but you will probably miss some of the other upgrades.";
}
on (rollOut) {
colordesc1 = "";
}
on (press) {
basicdrop_red = 4;
droprate_green = 1;
basicdrop_blue = 1;
play();
}
Symbol 241 Button
on (rollOver) {
colordesc1 = "Green emphasizes on special upgrades.\nWith this choice you will trigger often the Rage Mode, but only get very few permanent upgrades.";
}
on (rollOut) {
colordesc1 = "";
}
on (press) {
basicdrop_red = 1;
droprate_green = 4;
basicdrop_blue = 1;
play();
}
Symbol 246 Button
on (rollOver) {
colordesc1 = "Blue is the color for defensive upgrades.\nWith this choice, you'll get very soon powerful defensive upgrades, such as the shield and extra lives. Other upgrades are getting rare though.";
}
on (rollOut) {
colordesc1 = "";
}
on (press) {
basicdrop_red = 1;
droprate_green = 1;
basicdrop_blue = 4;
play();
}
Symbol 251 Button
on (rollOver) {
colordesc2 = "Orange focuses on offensive and special upgrades.\nAs the mix of Red and Green, this color will give some offensive and special upgrades, but very few defensive ones.";
}
on (rollOut) {
colordesc2 = "";
}
on (press) {
basicdrop_red = 2;
droprate_green = 2;
basicdrop_blue = 1;
play();
}
Symbol 256 Button
on (rollOver) {
colordesc2 = "Cyan focuses on defensive and special upgrades.\nThis choice is the mix between Green and Blue. While not getting many offensive upgrades, you will trigger the Rage Mode quite often AND get some defensive upgrades.";
}
on (rollOut) {
colordesc2 = "";
}
on (press) {
basicdrop_red = 1;
droprate_green = 2;
basicdrop_blue = 2;
play();
}
Symbol 261 Button
on (rollOver) {
colordesc2 = "Purple focuses on offensive as well as defensive upgrades.\nThis choice will get you a balanced collection of offensive and defensive upgrades, but reduces your chances to trigger a Rage Mode.";
}
on (rollOut) {
colordesc2 = "";
}
on (press) {
basicdrop_red = 2;
droprate_green = 1;
basicdrop_blue = 2;
play();
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 35
gotoAndStop (1);
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 35
gotoAndStop (1);
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 35
gotoAndStop (1);
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 35
gotoAndStop (1);
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.pentaBoss2, _x, _y);
_root.enemy_spawn(_root.pentaBoss2, _x, _y);
_root.enemy_shoot(this, 360, 12);
this.removeMovieClip();
stop();
Symbol 285 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 285 MovieClip Frame 21
play();
Symbol 285 MovieClip Frame 49
gotoAndPlay (1);
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.pentaBoss3, _x, _y);
_root.enemy_spawn(_root.pentaBoss3, _x, _y);
_root.enemy_shoot(this, 360, 12);
this.removeMovieClip();
stop();
Symbol 287 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 287 MovieClip Frame 21
play();
Symbol 287 MovieClip Frame 49
gotoAndPlay (1);
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.shooter, _x, _y);
_root.enemy_spawn(_root.shooter, _x, _y);
_root.enemy_shoot(this, 360, 12);
this.removeMovieClip();
stop();
Symbol 289 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 289 MovieClip Frame 21
play();
Symbol 289 MovieClip Frame 49
gotoAndPlay (1);
Symbol 291 MovieClip Frame 9
stop();
Symbol 291 MovieClip Frame 18
this.removeMovieClip();
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 19
this.removeMovieClip();
stop();
Symbol 294 MovieClip Frame 13
this.removeMovieClip();
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_shoot(this, 360, 12);
this.removeMovieClip();
stop();
Symbol 300 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 300 MovieClip Frame 21
gotoAndPlay (1);
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.tetraBoss3, _x, _y);
_root.enemy_shoot(this, 360, 12);
this.removeMovieClip();
stop();
Symbol 301 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 301 MovieClip Frame 21
gotoAndPlay (1);
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.tetraBoss2, _x, _y);
_root.enemy_shoot(this, 360, 12);
this.removeMovieClip();
stop();
Symbol 303 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 303 MovieClip Frame 21
play();
Symbol 303 MovieClip Frame 49
gotoAndPlay (1);
Symbol 305 MovieClip Frame 67
this.removeMovieClip();
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
_parent.gotoAndPlay(_parent.deathFrame);
this.removeMovieClip();
stop();
Symbol 310 MovieClip Frame 1
stop();
Instance of Symbol 307 MovieClip in Symbol 310 MovieClip Frame 1
onClipEvent (load) {
health = 0;
invincible = true;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Instance of Symbol 309 MovieClip in Symbol 310 MovieClip Frame 1
onClipEvent (load) {
points = 500;
health = 5000;
deathFrame = 2;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Symbol 310 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_shoot(this, 360, 12);
this.removeMovieClip();
stop();
Instance of Symbol 307 MovieClip in Symbol 310 MovieClip Frame 3
onClipEvent (load) {
health = 0;
invincible = true;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Instance of Symbol 309 MovieClip in Symbol 310 MovieClip Frame 3
onClipEvent (load) {
points = 500;
health = 5000;
deathFrame = 2;
}
onClipEvent (enterFrame) {
_root.enemy_hit(this, _parent);
}
Symbol 310 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 310 MovieClip Frame 21
play();
Symbol 310 MovieClip Frame 49
gotoAndPlay (1);
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
clearInterval(this.AIInterval);
clearInterval(this.eshootInterval);
_root.player.gotoAndPlay(76);
_root.gotoAndPlay(14);
this.removeMovieClip();
stop();
Symbol 312 MovieClip Frame 20
clearInterval(this.AIInterval);
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 312 MovieClip Frame 21
play();
Symbol 312 MovieClip Frame 49
gotoAndPlay (1);
Symbol 314 MovieClip Frame 67
this.removeMovieClip();
stop();
Symbol 317 Button
on (press) {
_root.stageflag = -1;
_root.cur_stage = _root.cur_stage - 1;
_root.gotoAndPlay(12);
}
Symbol 318 MovieClip Frame 33
stop();
Symbol 321 Button
on (press) {
clearInterval(_root.congrats.fireInterval);
_root.gotoAndPlay(4);
}
Symbol 322 MovieClip Frame 1
for (j in _root) {
if (_root[j]._name.indexOf("enemy") != -1) {
_root[j].gotoAndPlay(_root[j].unloadFrame);
}
if ((((_root[j]._name.indexOf("pshield") != -1) || (_root[j]._name.indexOf("up") != -1)) || (_root[j]._name.indexOf("life") != -1)) || (_root[j]._name.indexOf("eshot") != -1)) {
_root[j].removeMovieClip();
}
}
fireInterval = setInterval(_root.firework, 2000, "");
Symbol 322 MovieClip Frame 55
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.ninjaBoss2, _x, _y);
_root.enemy_spawn(_root.targeter, _x, _y);
_root.enemy_shoot(this, _root.eshot_violet, 360, 8);
this.removeMovieClip();
stop();
Symbol 328 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 328 MovieClip Frame 21
play();
Symbol 328 MovieClip Frame 49
gotoAndPlay (1);
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.ninjaBoss3, _x, _y);
_root.enemy_spawn(_root.targeter, _x, _y);
_root.enemy_shoot(this, _root.eshot_violet, 360, 6);
this.removeMovieClip();
stop();
Symbol 333 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 333 MovieClip Frame 21
gotoAndPlay (1);
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_spawn(_root.targeter, _x, _y);
_root.enemy_spawn(_root.targeter, _x, _y);
_root.enemy_shoot(this, _root.eshot_violet, 360, 4);
this.removeMovieClip();
stop();
Symbol 338 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 338 MovieClip Frame 21
gotoAndPlay (1);
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_shoot(this, _root.eshot_red, 360, 12);
this.removeMovieClip();
stop();
Symbol 342 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 342 MovieClip Frame 21
play();
Symbol 342 MovieClip Frame 49
gotoAndPlay (1);
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
clearInterval(this.eshootInterval);
_root.enemy_shoot(this, _root.eshot_red, 360, 12);
this.removeMovieClip();
stop();
Symbol 346 MovieClip Frame 20
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 346 MovieClip Frame 21
play();
Symbol 346 MovieClip Frame 49
gotoAndPlay (1);
Symbol 349 MovieClip Frame 170
this.removeMovieClip();
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
clearInterval(this.AIInterval);
clearInterval(this.eshootInterval);
_root.player.gotoAndPlay(76);
_root.gotoAndPlay(18);
this.removeMovieClip();
stop();
Symbol 350 MovieClip Frame 20
clearInterval(this.AIInterval);
clearInterval(this.eshootInterval);
this.removeMovieClip();
stop();
Symbol 350 MovieClip Frame 21
play();
Symbol 350 MovieClip Frame 49
gotoAndPlay (1);
Symbol 352 Button
on (press) {
_root.stageflag = -1;
_root.cur_stage = _root.cur_stage - 1;
_root.gotoAndPlay(16);
}
Symbol 353 MovieClip Frame 33
stop();