Frame 2
firekey = 88;
shieldkey = 16;
jumpkey = 90;
leftkey = 37;
rightkey = 39;
upkey = 38;
downkey = 40;
stop();
Frame 3
stop();
Frame 18
stop();
Frame 88
stop();
Frame 89
menumusic = new Sound();
menumusic.attachSound("menu music");
menumusic.start(0, 99);
Frame 109
function displaylevel(levelnum) {
if (_root.SO.data["score" + levelnum] == undefined) {
_root.shownscore = "-";
} else {
_root.shownscore = _root.SO.data["score" + levelnum];
}
if (_root.SO.data["time" + levelnum] == undefined) {
_root.showntime = "-";
} else {
_root.showntime = _root.SO.data["time" + levelnum];
}
if (_root.SO.data["medal" + levelnum] == undefined) {
_root.shownmedal = 0;
} else {
_root.shownmedal = _root.SO.data["medal" + levelnum];
}
}
function getdifficultystring(difficulty) {
if (difficulty == 0) {
return("Extremely easy");
}
if (difficulty == 1) {
return("quite easy");
}
if (difficulty == 2) {
return("average");
}
if (difficulty == 3) {
return("medium");
}
if (difficulty == 4) {
return("vaguely hard");
}
difficulty = difficulty - 5;
difficultystring = "";
while (difficulty > 0) {
difficultystring = difficultystring + wordz[difficulty % totalstrings];
difficultystring = difficultystring + " ";
difficulty = Math.floor(difficulty / totalstrings);
}
difficultystring = difficultystring + "hard";
return(difficultystring);
}
stop();
_root.SO = SharedObject.getLocal("asdasdf", "/", false);
if (_root.SO.data.completed == undefined) {
_root.SO.data.completed = 0;
}
_root.shownscore = "-";
_root.showntime = "-";
_root.shownmedal = 0;
totalstrings = 4;
wordz = ["very", "stupidly", "insanely", "extremely"];
y = 0;
levels.createEmptyMovieClip("buttons", levels.getNextHighestDepth());
i = 0;
while (i < (_root.SO.data.completed + 5)) {
tmp = levels.buttons.attachMovie("level button", "lb" + levels.buttons.getNextHighestDepth(), levels.buttons.getNextHighestDepth());
if (i > _root.SO.data.completed) {
tmp.nextFrame();
}
tmp.txt.autoSize = true;
tmp.txt.text = getdifficultystring(i);
tmp.btn._width = tmp.txt._width;
tmp.btn._height = tmp.txt._height - 5;
tmp._width = 200;
tmp._yscale = tmp._xscale;
tmp._y = _root.y;
tmp._x = tmp._x - 100;
if (i == 0) {
}
tmp.i = i + 1;
levels.buttons.setMask(levels.mask);
_root.y = _root.y + tmp._height;
i++;
}
Instance of Symbol 413 MovieClip "config" in Frame 109
onClipEvent (load) {
_visible = false;
}
Frame 110
function startTrack(id) {
if (_root.mute != true) {
_root.music = new Sound(_root);
_root.music.attachSound(((fightingBoss ? "boss" : "music") + id) + " intro");
_root.music.start();
_root.music.id = id;
_root.music.onSoundComplete = function () {
_root.music.attachSound(((fightingBoss ? "boss" : "music") + id) + " loop");
_root.music.start(0, 999);
};
}
}
_root.menumusic.stop();
if (_root.level == undefined) {
_root.level = 37;
}
_root.score = 0;
_root.scoreroller = _root.score;
lives = 5;
Frame 111
stop();
lives = 5;
Frame 112
function addmonster(platformID, monsterName, yOffset, depthToAdd) {
tmp2 = _root.all.all.attachMovie(monsterName, monsterName + (_root.baddyArray.length + 1), depthToAdd);
tmp2._y = platformID._y - yOffset;
tmp2._x = platformID._x + random(platformID._width);
tmp2.plat = platformID;
tmp2.health = 1;
baddyArray.push(tmp2);
return(tmp2);
}
function initlevel(boss1, boss2, noplat, horzfreq, vertfreq, dropplatfreq, centifreq, centilength, chasertot, floatffreq, floatsfreq, floatcfreq, spinnerfreq, dropperfreq, hopperfreq, popperfreq, nooflives) {
_root.bosstype = boss1;
_root.bosstype2 = boss2;
totalPlats = noplat;
hfreq = horzfreq;
vfreq = vertfreq;
dfreq = dropplatfreq;
centipedefreq = centifreq;
centipedelength = centilength;
noofchaser = chasertot;
fffreq = floatffreq;
fsfreq = floatsfreq;
fcfreq = floatcfreq;
spinfreq = spinnerfreq;
dropfreq = dropperfreq;
hopfreq = hopperfreq;
popfreq = popperfreq;
lives = nooflives;
}
function boss() {
if (!_root.fightingBoss) {
_root.fightingBoss = true;
_root.music.stop();
_root.bossmusic = random(3) + 1;
_root.startTrack(_root.bossmusic);
_root.red._visible = true;
for (i in platArray) {
if (i != platArray.length) {
platArray[i - 1].gotoAndPlay("fall");
}
}
for (i in sceneryArray) {
sceneryArray[i].gotoAndPlay("fall");
}
for (i in _root.baddyArray) {
_root.baddyArray[i].removeMovieClip();
}
bossdelay = 60;
}
}
function attachboss() {
if (!bossattached) {
bossattached = true;
if (_root.bosstype == 0) {
tmp = _root.all.all.attachMovie("hopperboss", "hopperboss", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y;
tmp.health = 100;
tmp.hoppermother = bossmum;
_root.baddyArray.push(tmp);
} else if (_root.bosstype == 1) {
tmp = _root.all.all.attachMovie("floaterboss", "floaterboss", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 600;
tmp.health = 100;
tmp.plat = _root.lastPlat;
tmp.floatermother = bossmum;
_root.baddyArray.push(tmp);
} else if (_root.bosstype == 2) {
tmp = _root.all.all.attachMovie("spinnerboss", "spinnerboss", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 500;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
if (_root.bosstype2 == 2) {
tmp._x = tmp._x - 100;
}
} else if (_root.bosstype == 3) {
tmp = _root.all.all.attachMovie("placeholder", "placeholder", _root.all.all.getNextHighestDepth());
tmp.health = 100;
centipedelength = 40;
centipededepth = _root.all.all.getNextHighestDepth() + centipedelength;
prevpede = addmonster(_root.lastPlat, "centipede", 1000, centipededepth);
centipededepth--;
prevpede.boss = true;
prevpede.myBoss = tmp;
iter = 1;
while (iter < centipedelength) {
thispede = addmonster(_root.lastPlat, "centipede", 1000, centipededepth);
thispede.following = prevpede;
thispede._x = prevpede._x + 15;
prevpede = thispede;
prevpede.myBoss = tmp;
centipededepth--;
prevpede.boss = true;
iter++;
}
} else if (_root.bosstype == 4) {
tmp = _root.all.all.attachMovie("popperboss", "popperboss", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 500;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
} else if (_root.bosstype == 5) {
tmp = _root.all.all.attachMovie("dropperboss", "dropperboss", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
} else if (_root.bosstype == 6) {
tmp = _root.all.all.attachMovie("chaserboss", "chaserboss", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 250;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
tmp2 = _root.all.all.attachMovie("chaserbosshit2", "chaserbosshit2", _root.all.all.getNextHighestDepth());
tmp2._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp2._y = _root.lastPlat._y - 250;
tmp2.partof = tmp;
_root.baddyArray.push(tmp2);
}
_root.boss = tmp;
_root.bossbar.play();
if (_root.bosstype2 != null) {
if (_root.bosstype2 == 0) {
tmp = _root.all.all.attachMovie("hopperboss", "hopperboss2", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + random(_root.lastPlat._width);
tmp._y = _root.lastPlat._y;
tmp.health = 100;
tmp.hoppermother = bossmum;
_root.baddyArray.push(tmp);
} else if (_root.bosstype2 == 1) {
tmp = _root.all.all.attachMovie("floaterboss", "floaterboss2", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 600;
tmp.health = 100;
tmp.plat = _root.lastPlat;
tmp.floatermother = bossmum;
_root.baddyArray.push(tmp);
} else if (_root.bosstype2 == 2) {
tmp = _root.all.all.attachMovie("spinnerboss", "spinnerboss2", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 500;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
if (_root.bosstype == 2) {
tmp._x = tmp._x + 100;
}
} else if (_root.bosstype2 == 3) {
tmp = _root.all.all.attachMovie("placeholder", "placeholder2", _root.all.all.getNextHighestDepth());
tmp.health = 100;
centipedelength = 40;
centipededepth = _root.all.all.getNextHighestDepth() + centipedelength;
prevpede = addmonster(_root.lastPlat, "centipede", 1000, centipededepth);
centipededepth--;
prevpede.boss = true;
prevpede.myBoss = tmp;
iter = 1;
while (iter < centipedelength) {
thispede = addmonster(_root.lastPlat, "centipede", 1000, centipededepth);
thispede.following = prevpede;
thispede._x = prevpede._x - 15;
prevpede = thispede;
prevpede.myBoss = tmp;
centipededepth--;
prevpede.boss = true;
iter++;
}
} else if (_root.bosstype2 == 4) {
tmp = _root.all.all.attachMovie("popperboss", "popperboss2", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 500;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
} else if (_root.bosstype2 == 5) {
tmp = _root.all.all.attachMovie("dropperboss", "dropperboss2", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
} else if (_root.bosstype2 == 6) {
tmp = _root.all.all.attachMovie("chaserboss", "chaserboss2", _root.all.all.getNextHighestDepth());
tmp._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp._y = _root.lastPlat._y - 250;
tmp.health = 100;
tmp.plat = _root.lastPlat;
_root.baddyArray.push(tmp);
tmp2 = _root.all.all.attachMovie("chaserbosshit2", "chaserbosshit2", _root.all.all.getNextHighestDepth());
tmp2._x = _root.lastPlat._x + (_root.lastPlat._width / 2);
tmp2._y = _root.lastPlat._y - 250;
tmp2.partof = tmp;
_root.baddyArray.push(tmp2);
}
_root.boss2 = tmp;
_root.bossbar2.play();
}
}
}
function init(t) {
t.xvel = 0;
t.yvel = 0;
t.onFloor = false;
t.shootTimer = 0;
}
function genPhys(t) {
if (!_root.pausegame) {
with (t) {
if (bossdead) {
delayafterboss--;
if (delayafterboss <= 0) {
_root.tryagain = false;
playnextlevel();
bossdead = false;
}
}
if (_root.fightingBoss) {
bossdelay--;
if (bossdelay <= 0) {
attachboss();
}
}
_root.deathsound = false;
if (_root.shieldleft < 0) {
_root.shieldleft = 0;
}
if (_root.shieldleft < _root.maxshield) {
_root.shieldcounter++;
if (_root.shieldcounter >= _root.shieldrefresh) {
_root.shieldcounter = 0;
_root.shieldleft++;
}
} else {
_root.shieldcounter = 0;
}
timer = getTimer() - starttime;
timerinseconds = Math.round(timer / 10) / 100;
if ((timerinseconds % 0.1) == 0) {
timerinseconds = timerinseconds + "0";
}
if ((timerinseconds % 1) == 0) {
timerinseconds = timerinseconds + "0";
}
xvel = xvel * 0.7;
if (!onFloor) {
yvel = yvel + _root.grav;
if ((_y > (_root.lowPlat + 40)) and (!dead)) {
fallen++;
if (fallen == 2) {
s = new Sound(this);
s.attachSound("fall");
s.start();
}
if (fallen > 25) {
t.died();
}
} else {
fallen = 0;
}
}
_y = _y + yvel;
_x = _x + xvel;
if (onFloor and (!lastplattouched.normalplatform)) {
oldx = lastplattouched._x;
oldy = lastplattouched._y;
}
for (i in _root.platArray) {
if (_root.platArray[i].horzplatform) {
_root.platArray[i]._x = _root.platArray[i]._x + (_root.platArray[i].horzdir * _root.platArray[i].horzspeed);
_root.platArray[i].horzcounter++;
if (_root.platArray[i].horzcounter > _root.platArray[i].horztotal) {
_root.platArray[i].horzcounter = 0;
_root.platArray[i].horzdir = _root.platArray[i].horzdir * -1;
}
}
if (_root.platArray[i].vertplatform) {
_root.platArray[i]._y = _root.platArray[i]._y + (_root.platArray[i].vertdir * Math.floor(_root.platArray[i].vertspeed));
_root.platArray[i].vertcounter++;
if (_root.platArray[i].vertcounter > _root.platArray[i].verttotal) {
_root.platArray[i].vertcounter = 0;
_root.platArray[i].vertdir = _root.platArray[i].vertdir * -1;
}
}
if (_root.platArray[i].dropper) {
if ((_root.platArray[i] == lastplattouched) and (!_root.platArray[i].fallen)) {
_root.platArray[i].gotoAndPlay("fall2");
_root.platArray[i].fallen = true;
_root.platArray[i].timetoreset = 0;
}
if (_root.platArray[i].fallen and _root.platArray[i].lol) {
if (!_root.platArray[i].noiseplaying) {
_root.platArray[i].noiseplaying = true;
_root.platArray[i].s = new Sound(_root.platArray[i]);
_root.platArray[i].s.attachSound("plat drop");
_root.platArray[i].s.start();
}
_root.platArray[i]._alpha = _root.platArray[i]._alpha - 5;
_root.platArray[i]._y = _root.platArray[i]._y + _root.platArray[i].fallspeed;
_root.platArray[i].timetoreset++;
if ((_root.platArray[i].timetoreset > _root.platArray[i].timetoresettotal) and (!_root.fightingBoss)) {
_root.platArray[i].noiseplaying = false;
_root.platArray[i].timetoreset = 0;
_root.platArray[i]._alpha = 100;
_root.platArray[i]._y = _root.platArray[i].originaly;
_root.platArray[i].fallen = false;
_root.platArray[i].lol = false;
_root.platArray[i].gotoAndStop(1);
}
}
}
}
if (onFloor and (!lastplattouched.normalplatform)) {
newx = lastplattouched._x;
newy = lastplattouched._y;
t._x = t._x + (newx - oldx);
t._y = t._y + (newy - oldy);
}
thudplay = onFloor;
onFloor = false;
for (i in _root.platArray) {
if (((t.area.hitTest(_root.platArray[i].area) and (_y >= _root.platArray[i]._y)) and (yvel >= 0)) and (_root.platArray[i]._alpha > 30)) {
_y = _root.platArray[i]._y;
yvel = 0;
if (!thudplay) {
dropsnd = new Sound(t);
dropsnd.attachSound("drop");
dropsnd.start();
}
onFloor = true;
lastplattouched = _root.platArray[i];
if (!_root.platArray[i].dropper) {
_root.resetpointx = t._x;
_root.resetpointy = t._y;
_root.resetplat = _root.platArray[i];
}
if (_root.platArray[i] == _root.lastPlat) {
_root.boss();
}
}
}
}
}
}
function sparkle(t) {
tmp = _root.all.all.attachMovie("sparkle", "sparkle" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = (t._x - 10) + random(20);
tmp._y = t._y - random(20);
}
function firesparkle(t) {
tmp = _root.all.all.attachMovie("firesparkle", "firesparkle" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = (t._x - 10) + random(20);
tmp._y = t._y - random(20);
}
function fire(t) {
_root.ammo--;
if (Key.isDown(_root.upkey)) {
shootrotation = 0;
} else if (Key.isDown(_root.downkey)) {
shootrotation = 180;
} else {
if (t._xscale < 0) {
shootrotation = -90;
}
if (t._xscale > 0) {
shootrotation = 90;
}
}
if (_root.weaponType == 4) {
shootcounter++;
if (shootcounter > 3) {
shootcounter = 0;
}
shootrotation = -90 + (shootcounter * 90);
}
if (_root.weaponType != 2) {
if ((_root.weaponType == 0) || (_root.weaponType == 4)) {
tmp = _root.all.all.attachMovie("shoot", "shoot" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
} else if (_root.weaponType == 3) {
tmp = _root.all.all.attachMovie("shootthru", "shootthru" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
}
tmp._x = t._x;
tmp._y = t._y - 20;
tmp._rotation = shootrotation;
} else if (_root.weaponType == 2) {
tmp = _root.all.all.attachMovie("shoot", "shoot" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = t._x;
tmp._y = t._y - 20;
tmp._rotation = shootrotation + 10;
tmp = _root.all.all.attachMovie("shootnosound", "shoot" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = t._x;
tmp._y = t._y - 20;
tmp._rotation = shootrotation - 10;
}
}
function nextLevel() {
if ((!onebossdown) and (_root.bosstype2 != null)) {
onebossdown = true;
} else {
delayafterboss = 60;
bossdead = true;
}
}
function playnextlevel() {
_root.all.all.p1.fireshieldsound.stop();
_root.doors.play();
if (_root.level == (_root.SO.data.completed + 1)) {
_root.SO.data.completed++;
}
if ((_root.SO.data["score" + _root.level] == undefined) || (_root.SO.data["score" + _root.level] <= _root.score)) {
_root.SO.data["score" + _root.level] = _root.score;
}
if ((_root.SO.data["time" + _root.level] == undefined) || (_root.SO.data["time" + _root.level] >= _root.timerinseconds)) {
_root.SO.data["time" + _root.level] = _root.timerinseconds;
}
_root.level++;
}
function baddyDieExplode(t) {
with (t) {
s = new Sound(this);
s.attachSound("explosionsound");
s.start();
i = 0;
while (i <= (20 + random(10))) {
fireno = random(2) + 1;
tmp = _root.all.all.attachMovie("fire" + fireno, "blood" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = _x + random(5);
tmp._y = _y + random(5);
tmp = _root.all.all.attachMovie("shrapnel", "blood" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = _x + random(5);
tmp._y = _y + random(5);
i++;
}
}
}
function bossDying(t) {
if (!_root.endnoise) {
_root.endnoise = true;
t.s = new Sound(t);
t.s.attachSound("boss kill");
t.s.start();
}
bossDieCoin(t);
}
function bossDieCoin(t) {
with (t) {
tmp = _root.all.all.attachMovie("powerup", "powerup" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = _x;
tmp._y = _y - 20;
tmp.xvel = -10 + (Math.random() * 20);
tmp.yvel = -1 - (Math.random() * 20);
tmp.timer = 200;
tmp.thetype = random(4) + 1;
}
}
function baddyDie(t) {
with (t) {
if (!_root.deathsound) {
s = new Sound(this);
s.attachSound("baddydie" + (random(3) + 1));
s.start();
_root.deathsound = true;
}
i = 0;
while (i <= (30 + random(10))) {
if (bloodcount < 100) {
bloodcount++;
tmp = _root.all.all.attachMovie("blood", "blood" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = _x + random(5);
tmp._y = _y + random(5);
}
i++;
}
if (random(2 + bonusdifficulty) == 0) {
tmp = _root.all.all.attachMovie("powerup", "powerup" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = _x;
tmp._y = _y - 20;
tmp.xvel = 5 * ((random(2) * 2) - 1);
tmp.yvel = -1 - random(6);
tmp.timer = 200;
tmp.thetype = random(11) + 1;
}
}
}
function baddyHurt(atx, aty) {
if (!_root.deathsound) {
s = new Sound(this);
s.attachSound("baddydie3");
s.start();
_root.deathsound = true;
}
i = 0;
while (i <= (5 + random(10))) {
if (bloodcount < 100) {
bloodcount++;
tmp = _root.all.all.attachMovie("blood", "blood" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = atx + random(5);
tmp._y = aty + random(5);
}
i++;
}
}
stop();
_root.fightingBoss = false;
endnoise = false;
slowzoom = false;
shootcounter = 0;
_root.score = 0;
weaponType = 0;
_root.fireshieldcounter = 60;
_root.fireshield = true;
_root.wings = false;
_root.wingstimer = 0;
_root.bonusforlives = 200;
bossdelay = 30;
bossattached = false;
bossdead = false;
deathsound = false;
bloodcount = 0;
starttime = getTimer();
fallen = 0;
_root.maxshield = 25;
_root.shieldleft = _root.maxshield;
_root.shieldcounter = 0;
_root.shieldrefresh = 5;
platArray = [all.all.plat1];
sceneryArray = new Array();
_root.lowPlat = all.all.plat1._y;
all.all.plat1.normalplatform = true;
baddyArray = new Array();
bossHealth = 100;
bossHealth2 = 100;
bossmum = true;
onebossdown = false;
if (_root.level == 1) {
_root.attachMovie("instructions", "instructions", _root.getNextHighestDepth());
}
bossplatsizearray = [800, 500, 800, 700, 400, 700, 800];
if (_root.level > 35) {
_root.levelstripped = ((_root.level - 6) % 29) + 6;
bonusdifficulty = Math.floor((_root.level - 6) / 29);
} else {
_root.levelstripped = _root.level;
bonusdifficulty = 0;
}
switch (_root.levelstripped) {
case 1 :
initlevel(0, null, 20, 0, 0.4, 0, 0, 5, 0, 0.1, 0, 0, 0, 0.1, 0.3, 0, 10);
break;
case 2 :
initlevel(3, null, 22, 0.4, 0, 0, 0, 5, 0, 0.2, 0.3, 0, 0, 0, 0.15, 0, 10);
break;
case 3 :
initlevel(4, null, 25, 0.1, 0, 0.3, 0, 5, 1, 0, 0, 0.7, 0, 0.1, 0, 0.4, 10);
break;
case 4 :
initlevel(5, null, 28, 0.3, 0.3, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0.3, 0.5, 10);
break;
case 5 :
initlevel(1, null, 30, 0.1, 0.4, 0.3, 0, 3, 0, 0, 0.5, 0, 0, 0.4, 0.2, 0, 10);
break;
case 6 :
initlevel(6, null, 32, 0.3, 0, 0.2, 0.1, 3, 3, 0.1, 0.1, 0.2, 0, 0, 0, 0, 10);
break;
case 7 :
initlevel(2, null, 34, 0.2, 0.2, 0.2, 0.05, 7, 2, 0, 0, 0, 0.3, 0.1, 0.1, 0.1, 10);
break;
case 8 :
initlevel(0, 3, 35, 0.2, 0.3, 0.1, 0, 5, 0, 0, 0, 0, 0.5, 0.4, 0, 0, 10);
break;
case 9 :
initlevel(4, 1, 36, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0.5, 0.5, 0.5, 0.5, 10);
break;
case 10 :
initlevel(2, 6, 37, 0.2, 0.2, 0.2, 0.1, 6, 0, 0, 0, 0, 0, 0.2, 0, 0, 10);
break;
case 11 :
initlevel(3, 5, 38, 0.1, 0.1, 0.4, 0, 5, 10, 0, 0, 0, 0.1, 0.2, 0.4, 0, 10);
break;
case 12 :
initlevel(0, 6, 39, 0, 0, 0, 0, 5, 5, 0.1, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 10);
break;
case 13 :
initlevel(1, 2, 40, 0.5, 1, 0, 0.15, 10, 0, 0.1, 0.1, 0.1, 0, 1, 0, 0, 10);
break;
case 14 :
initlevel(4, 3, 41, 0, 0, 0.6, 0, 5, 1, 0.3, 0, 0, 0, 0.3, 0, 0, 10);
break;
case 15 :
initlevel(6, 5, 42, 0, 0, 0.2, 0.2, 1, 10, 0, 0, 0, 0.2, 0.3, 0.5, 0.5, 10);
break;
case 16 :
initlevel(0, 0, 43, 0.2, 0.3, 0.1, 0.1, 3, 3, 0, 0.4, 0, 0.4, 0, 0, 0, 10);
break;
case 17 :
initlevel(1, 5, 44, 0, 0, 0.6, 0, 5, 0, 0, 0, 0, 0, 1, 0, 1, 10);
break;
case 18 :
initlevel(3, 3, 45, 0, 0.5, 0.1, 0, 5, 3, 0.3, 0.3, 0.3, 0, 0, 0.2, 0, 10);
break;
case 19 :
initlevel(4, 2, 46, 0, 0, 0.6, 0, 5, 0, 0, 0, 0, 0, 1, 0, 0, 10);
break;
case 20 :
initlevel(1, 6, 47, 0.3, 0.3, 0.6, 0, 5, 20, 0, 0, 0.5, 0, 0.1, 0, 0.3, 10);
break;
case 21 :
initlevel(4, 4, 48, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 1, 1, 1, 10);
break;
case 22 :
initlevel(0, 1, 49, 0.1, 0.1, 0.1, 0.1, 4, 1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 10);
break;
case 23 :
initlevel(2, 3, 50, 0, 0, 0.6, 0.1, 8, 0, 0, 0, 0, 0.1, 0.3, 0.2, 0.1, 10);
break;
case 24 :
initlevel(3, 6, 50, 0, 0, 0.7, 0, 5, 0, 0.2, 0, 0, 0, 0.8, 0, 0, 10);
break;
case 25 :
initlevel(5, 5, 50, 0, 0.3, 0.4, 0, 5, 30, 0, 0, 0, 0, 0, 0, 1, 10);
break;
case 26 :
initlevel(2, 5, 50, 0.1, 0.1, 0, 0, 5, 0, 0.7, 0.7, 0.7, 0, 0, 0, 0, 10);
break;
case 27 :
initlevel(0, 2, 50, 0, 0, 0, 0, 5, 10, 0, 0, 0, 1, 0, 0, 0, 10);
break;
case 28 :
initlevel(1, 1, 50, 0, 0.2, 0.2, 0.6, 2, 0, 0, 0, 0, 0, 0.4, 0.3, 0.2, 10);
break;
case 29 :
initlevel(0, 5, 50, 0, 0.9, 0, 0.1, 4, 1, 0.1, 0, 0, 0.1, 0, 0, 0, 10);
break;
case 30 :
initlevel(4, 5, 50, 0.9, 0, 0, 0, 5, 0, 0, 0.4, 0.4, 0, 0, 0, 0, 10);
break;
case 31 :
initlevel(6, 6, 50, 0, 0, 0.3, 0, 5, 2, 0, 0.3, 0, 0, 1, 0, 0.5, 10);
break;
case 32 :
initlevel(1, 3, 50, 0, 0.1, 0.7, 0, 5, 0, 0, 0, 0, 0, 1, 0, 0, 10);
break;
case 33 :
initlevel(4, 6, 50, 0, 0, 0, 0.1, 2, 5, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 10);
break;
case 34 :
initlevel(4, 0, 50, 0.3, 0.4, 0.5, 0.1, 2, 5, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 10);
break;
case 35 :
initlevel(2, 2, 50, 0.2, 0.3, 0.4, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 10);
}
if (bonusdifficulty > 0) {
lives = lives - (bonusdifficulty * 2);
if (lives < 3) {
lives = 3;
}
_root.fireshieldcounter = 5;
totalPlats = totalPlats + (bonusdifficulty * 20);
noofchaser = noofchaser + (bonusdifficulty * 5);
fsfreq = fsfreq + (0.1 * bonusdifficulty);
fcfreq = fcfreq + (0.1 * bonusdifficulty);
spinfreq = spinfreq + (0.1 * bonusdifficulty);
dropfreq = dropfreq + (0.1 * bonusdifficulty);
}
bossmum = true;
grav = 2;
SwitchdirectionsbufferMax = 5;
Switchdirectionsbuffer = SwitchdirectionsbufferMax;
Platdirection = random(4);
i = 2;
while (i <= totalPlats) {
tmp = _root.all.all.attachMovie("plat", "plat" + (platArray.length + 1), _root.all.all.getNextHighestDepth());
tmp.normalplatform = true;
tmp.horzplatform = false;
tmp.vertplatform = false;
tmp.dropper = false;
if (i != totalPlats) {
if (Math.random() < hfreq) {
tmp.horzplatform = true;
tmp.normalplatform = false;
} else if (Math.random() < vfreq) {
tmp.vertplatform = true;
tmp.normalplatform = false;
} else if (Math.random() < dfreq) {
tmp.dropper = true;
tmp.normalplatform = false;
}
}
if (!tinyplats) {
tmp._width = 100 + random(200);
} else {
tmp._width = 80;
}
prevmidpoint = platArray[platArray.length - 1]._x + (platArray[platArray.length - 1]._width / 2);
halflength = tmp._width / 2;
switch (Platdirection) {
case 0 :
tmp._x = (prevmidpoint + (random(200) * ((random(2) * 2) - 1))) - halflength;
tmp._y = (platArray[platArray.length - 1]._y - 80) - random(50);
break;
case 1 :
tmp._x = prevmidpoint + (random(200) * (tmp.dropper ? 0.5 : 1));
tmp._y = platArray[platArray.length - 1]._y + ((80 + random(50)) * ((random(2) * 2) - 1));
break;
case 2 :
dropdistance = 80 + random(100);
tmp._y = platArray[platArray.length - 1]._y + dropdistance;
tmp._x = (prevmidpoint + (random(dropdistance * 3) * ((random(2) * 2) - 1))) - halflength;
break;
case 3 :
tmp._x = (prevmidpoint - (random(200) * (tmp.dropper ? 0.5 : 1))) - (halflength * 2);
tmp._y = platArray[platArray.length - 1]._y + ((80 + random(50)) * ((random(2) * 2) - 1));
}
if (tmp.normalplatform and (i != totalPlats)) {
rr = random(3);
ii = 1;
while (ii <= rr) {
scenerytmp = _root.all.all.attachMovie("scenery", "scenery" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
scenerytmp._x = (tmp._x + random(tmp._width - 60)) + 30;
scenerytmp._y = tmp._y;
sceneryArray.push(scenerytmp);
ii++;
}
}
if (tmp.horzplatform) {
tmp.horztotal = 100;
tmp.horzspeed = 2 + (Math.random() * 4);
tmp.horzdir = 1;
tmp.horzcounter = random(100);
tmp._x = tmp._x + ((tmp.horzcounter - 50) * tmp.horzspeed);
}
tmp.lowerby = 0;
if (tmp.vertplatform) {
tmp.verttotal = 100;
tmp.vertspeed = 2 + (Math.random() * 3);
tmp.vertdir = 1;
tmp.vertcounter = random(100);
tmp._y = tmp._y + ((tmp.vertcounter - 50) * tmp.vertspeed);
tmp.lowerby = tmp.vertcounter * tmp.vertspeed;
}
if (tmp.dropper) {
tmp.fallen = false;
tmp.fallspeed = 15;
tmp.timetoresettotal = 90;
tmp.timetoreset = 0;
tmp.originaly = tmp._y;
tmp.lowerby = tmp.fallspeed * 14;
}
if (Switchdirectionsbuffer <= 0) {
randomswitch = ((Platdirection == 2) ? 6 : 4);
if (random(randomswitch) == 0) {
Platdirection = Platdirection + (random(3) - 1);
if (Platdirection < 0) {
Platdirection = Platdirection + 4;
}
if (Platdirection > 3) {
Platdirection = Platdirection - 4;
}
Switchdirectionsbuffer = ((Platdirection == 2) ? (SwitchdirectionsbufferMax) : (SwitchdirectionsbufferMax - 2));
}
} else {
Switchdirectionsbuffer--;
}
platArray.push(tmp);
if ((tmp._y + tmp.lowerby) > _root.lowPlat) {
_root.lowPlat = tmp._y + tmp.lowerby;
}
prob = 4;
if ((Math.random() < centipedefreq) and (i != totalPlats)) {
centipedelength = centipedelength;
centipededepth = _root.all.all.getNextHighestDepth() + centipedelength;
prevpede = addmonster(tmp, "centipede", 0, centipededepth);
centipededepth--;
iter = 1;
while (iter < centipedelength) {
thispede = addmonster(tmp, "centipede", 0, centipededepth);
thispede.following = prevpede;
thispede._x = prevpede._x + 15;
prevpede = thispede;
centipededepth--;
iter++;
}
}
if (((Math.random() < hopfreq) and (i != totalPlats)) and tmp.normalplatform) {
addmonster(tmp, "hopper", 0, _root.all.all.getNextHighestDepth());
}
if ((((Math.random() < dropfreq) and (i != totalPlats)) and (Platdirection != 2)) and tmp.normalplatform) {
addmonster(tmp, "dropper", 600, _root.all.all.getNextHighestDepth());
}
if (((Math.random() < popfreq) and (i != totalPlats)) and tmp.normalplatform) {
addmonster(tmp, "popper", 0, _root.all.all.getNextHighestDepth());
}
if ((Math.random() < fffreq) and (i != totalPlats)) {
addmonster(tmp, "floater", 50, _root.all.all.getNextHighestDepth());
}
if ((Math.random() < fcfreq) and (i != totalPlats)) {
addmonster(tmp, "floaterchaser", 50, _root.all.all.getNextHighestDepth());
}
if ((Math.random() < fsfreq) and (i != totalPlats)) {
addmonster(tmp, "shooter floater", 50, _root.all.all.getNextHighestDepth());
}
if ((Math.random() < spinfreq) and (i != totalPlats)) {
addmonster(tmp, "spinner", 50, _root.all.all.getNextHighestDepth());
}
i++;
}
if (_root.level > 0) {
iter = 0;
while (iter < noofchaser) {
chasertmp = addmonster(platArray[0], "chaser", random(300), _root.all.all.getNextHighestDepth());
chasertmp._x = chasertmp._x + (random(200) - 100);
iter++;
}
}
lastPlat = platArray[platArray.length - 1];
if (_root.bosstype2 != null) {
lastPlat._width = Math.max(bossplatsizearray[_root.bosstype], bossplatsizearray[_root.bosstype]) + 100;
} else {
lastPlat._width = bossplatsizearray[_root.bosstype];
}
lastPlat.normalplatform = true;
lastPlat.horzplatform = false;
lastPlat.vertplatform = false;
lastPlat.dropper = false;
_root.dir = function (o1, o2) {
return(Math.atan2(o1._x - o2._x, (o1._y - (o1._height / 2)) - o2._y));
};
_root.dir2 = function (o1, o2) {
return(Math.atan2(o1._x - o2._x, o1._y - o2._y));
};
_root.dist = function (o1, o2) {
return(Math.sqrt(Math.pow(o1._x - o2._x, 2) + Math.pow(o1._y - o2._y, 2)));
};
_root.shoot = function (sx, sy, dir, speed) {
b = _root.all.all.attachMovie("bullet1", "b" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
b._x = sx;
b._y = sy;
b.dir = dir;
b._rotation = (dir / Math.PI) * 180;
b.speed = speed;
b.s = new Sound(b);
};
_root.shoot2 = function (sx, sy, dir, speed) {
b = _root.all.all.attachMovie("bullet1", "b" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
b._xscale = (b._yscale = 300);
b._x = sx;
b._y = sy;
b.dir = dir;
b._rotation = (dir / Math.PI) * 180;
b.speed = speed;
};
Instance of Symbol 427 MovieClip "arggh" in Frame 112
onClipEvent (load) {
theY = _root.bg._y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 431 MovieClip "bghg" in Frame 112
onClipEvent (load) {
theY = _root.bg._y;
}
onClipEvent (enterFrame) {
if (_root.bg._y > theY) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 76 MovieClip [bgs] "bg" in Frame 112
onClipEvent (load) {
function reset() {
_x = resetx;
_y = resety;
}
resetx = _x;
resety = _y;
bga = new Array();
rightedge = 1660;
leftedge = 0;
oldx = _x;
}
onClipEvent (enterFrame) {
if ((_x + rightedge) < Stage.width) {
tmp = attachMovie("bgs", "bgs" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (((rightedge / _width) % 2) == 0) {
tmp._x = rightedge;
} else {
tmp._x = rightedge + _width;
tmp._xscale = -100;
}
tmp.gotoAndStop(_currentframe);
rightedge = rightedge + _width;
bga.push(tmp);
}
if ((_x - leftedge) > 0) {
tmp = attachMovie("bgs", "bgs" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
tmp._x = -leftedge;
if (((leftedge / _width) % 2) == 0) {
tmp._x = -leftedge;
tmp._xscale = -100;
} else {
tmp._x = (-leftedge) - _width;
}
tmp.gotoAndStop(_currentframe);
leftedge = leftedge + _width;
bga.push(tmp);
}
for (i in bga) {
}
oldx = _x;
}
Instance of Symbol 433 MovieClip "red" in Frame 112
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 464 MovieClip "all" in Frame 112
onClipEvent (enterFrame) {
if (!_root.pausegame) {
if (!_root.fightingBoss) {
s = Math.sqrt((all.p1.xvel * all.p1.xvel) + (all.p1.yvel * all.p1.yvel));
if (_root.all.all.p1._y < (_root.lowPlat + 100)) {
if (_root.slowzoom) {
_xscale = (_xscale - ((_xscale - (100 - (s * 2))) / 100));
_yscale = (_yscale - ((_yscale - (100 - (s * 2))) / 100));
} else {
_xscale = (_xscale - ((_xscale - (100 - (s * 2))) / 20));
_yscale = (_yscale - ((_yscale - (100 - (s * 2))) / 20));
}
if (_xscale < 10) {
_xscale = 10;
_yscale = 10;
}
}
} else {
newscale = 45 + ((900 - _root.lastPlat._width) / 25);
_xscale = (_xscale - ((_xscale - newscale) / 20));
_yscale = (_yscale - ((_yscale - newscale) / 20));
}
}
}
Instance of Symbol 474 MovieClip in Frame 112
onClipEvent (load) {
function f() {
if (_root.mute and (!_root.muteall)) {
_root.muteall = true;
no._visible = true;
} else if (_root.mute) {
note._visible = true;
no._visible = false;
_root.mute = false;
_root.muteall = false;
if (_root.fightingBoss) {
_root.startTrack(_root.bossmusic);
} else {
_root.startTrack(_root.levelmusic);
}
} else {
note._visible = false;
_root.music.stop();
_root.mute = true;
}
}
_root.pausegame = false;
if (_root.mute != true) {
_root.mute = false;
}
_root.muteall = false;
no._visible = false;
}
onClipEvent (keyDown) {
if (Key.isDown(77)) {
f();
}
if (Key.isDown(80)) {
_root.pausegame = !_root.pausegame;
}
}
on (press) {
f();
}
onClipEvent (enterFrame) {
if (_root.muteall) {
s = new Sound(_root);
s.setVolume(0);
} else {
s = new Sound(_root);
s.setVolume(100);
}
}
Instance of Symbol 479 MovieClip "weaponbar" in Frame 112
onClipEvent (enterFrame) {
bar.bar._xscale = 100 * (_root.ammo / totalammo);
if (((_root.ammo <= 0) or (_root.weaponType == 0)) and onscreen) {
play();
}
if (((_root.ammo > 0) and (!onscreen)) and (_root.weaponType != 0)) {
play();
}
}
onClipEvent (load) {
n = 1;
}
Instance of Symbol 479 MovieClip "firebar" in Frame 112
onClipEvent (load) {
totalammo = _root.fireshieldcounter;
bar.z.gotoAndStop(10);
}
onClipEvent (enterFrame) {
bar.bar._xscale = 100 * (_root.fireshieldcounter / totalammo);
if ((!_root.fireshield) and onscreen) {
_root.all.all.p1.fireshieldsound.stop();
play();
}
if (_root.fireshield and (!onscreen)) {
play();
}
}
onClipEvent (load) {
n = 2;
}
Instance of Symbol 479 MovieClip "wingbar" in Frame 112
onClipEvent (enterFrame) {
bar.bar._xscale = 100 * (_root.wingcounter / totalammo);
if ((!_root.wings) and onscreen) {
play();
}
if (_root.wings and (!onscreen)) {
play();
}
}
onClipEvent (load) {
n = 3;
}
Instance of Symbol 476 MovieClip in Frame 112
onClipEvent (enterFrame) {
if (_root.all.all.p1.shield) {
barflash._visible = true;
} else {
barflash._visible = false;
}
_xscale = (100 * ((_root.shieldleft + (_root.shieldcounter / _root.shieldrefresh)) / _root.maxshield));
}
Instance of Symbol 513 MovieClip in Frame 112
onClipEvent (enterFrame) {
_visible = _root.pausegame;
}
Instance of Symbol 413 MovieClip "config" in Frame 112
onClipEvent (load) {
_visible = false;
}
Frame 113
_root.music.stop();
stop();
Frame 114
menumusic = new Sound();
menumusic.attachSound("menu music");
menumusic.start(0, 99);
gotoAndPlay ("realmenu");
Symbol 16 Button
on (press) {
if (Key.isDown(16)) {
_root.gotoAndPlay("menuintro");
} else {
_root.play();
}
}
Symbol 17 MovieClip Frame 1
stop();
Instance of Symbol 10 MovieClip in Symbol 17 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((100 * _root.getBytesLoaded()) / _root.getBytesTotal());
if (_xscale == 100) {
_parent.nextFrame();
}
}
Symbol 17 MovieClip Frame 2
stop();
Symbol 25 Button
on (press) {
getURL ("http://www.dissoluteproductions.com/", "_blank");
}
Symbol 30 Button
on (press) {
getURL ("http://www.maxgames.com/", "_blank");
}
Symbol 35 MovieClip Frame 1
a = new Array();
a.push("why bother?");
a.push("keep trying, keep dying.");
a.push("just one more level...");
a.push("what doesn't kill you, just delays the inevitable.");
a.push("trying is the first step towards failure.");
a.push("you didn't fail. you just found more ways to die.");
a.push("try again. fail again. fail better.");
txt.text = a[random(a.length)];
Symbol 76 MovieClip [bgs] Frame 1
gotoAndStop(_root.levelbg);
Symbol 79 MovieClip Frame 1
_visible = false;
Symbol 84 MovieClip [blood] Frame 1
if (random(5) == 1) {
stopper = true;
} else {
stopper = false;
}
hitplatform = false;
xvel = (random(20) * ((random(2) * 2) - 1)) + (_root.all.all.p1.xvel / 2);
yvel = (-(10 + random(20))) + (_root.all.all.p1.yvel / 2);
_yscale = (50 + random(100));
_xscale = (50 + random(100));
_rotation = random(360);
g = 1 + (Math.random() * 2);
onEnterFrame = function () {
if (!_root.pausegame) {
if (!hitplatform) {
yvel = yvel + g;
xvel = xvel * 0.9;
_y = (_y + yvel);
_x = (_x + xvel);
}
if (stopper) {
for (i in _root.platArray) {
if (this.area.hitTest(_root.platArray[i].area)) {
yvel = yvel * -0.7;
}
}
}
}
};
gotoAndPlay(random(5) + 1);
Symbol 84 MovieClip [blood] Frame 25
_root.bloodcount--;
this.removeMovieClip();
Symbol 85 MovieClip [chaserbosshit2] Frame 1
function die() {
partof.die();
}
onEnterFrame = function () {
_x = partof._x;
_y = partof._y;
_rotation = partof._rotation;
if (partof.health <= 0) {
this.removeMovieClip();
}
if (this.area.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
};
Symbol 88 MovieClip [fire1] Frame 1
xvel = random(10) * ((random(2) * 2) - 1);
yvel = -10 + random(20);
_yscale = (50 + random(100));
_xscale = (50 + random(100));
_rotation = random(360);
rotvel = random(50) * ((random(2) * 2) - 1);
onEnterFrame = function () {
xvel = xvel * 0.9;
yvel = yvel * 0.9;
rotvel = rotvel * 0.9;
_y = (_y + yvel);
_x = (_x + xvel);
_rotation = (_rotation + rotvel);
};
gotoAndPlay(random(5) + 1);
Symbol 88 MovieClip [fire1] Frame 25
this.removeMovieClip();
Symbol 91 MovieClip [fire2] Frame 1
xvel = random(10) * ((random(2) * 2) - 1);
yvel = -10 + random(20);
_yscale = (50 + random(100));
_xscale = (50 + random(100));
_rotation = random(360);
rotvel = random(50) * ((random(2) * 2) - 1);
onEnterFrame = function () {
xvel = xvel * 0.9;
yvel = yvel * 0.9;
rotvel = rotvel * 0.9;
_y = (_y + yvel);
_x = (_x + xvel);
_rotation = (_rotation + rotvel);
};
gotoAndPlay(random(5) + 1);
Symbol 91 MovieClip [fire2] Frame 25
this.removeMovieClip();
Symbol 96 Button
on (press) {
_root.tryagain = false;
_root.diff = i;
_root.level = i;
_root.stopAllSounds();
_root.gotoAndPlay("gameinit");
}
on (rollOver) {
_root.displaylevel(i);
}
Symbol 99 MovieClip [level button] Frame 1
stop();
Symbol 100 MovieClip [placeholder] Frame 1
_visible = false;
Symbol 106 MovieClip Frame 1
gotoAndStop(_root.levelbg);
Symbol 108 MovieClip [plat] Frame 1
stop();
Symbol 108 MovieClip [plat] Frame 15
this.removeMovieClip();
this.unloadMovie();
Symbol 108 MovieClip [plat] Frame 21
stop();
lol = true;
Symbol 131 MovieClip Frame 1
this.blendMode = "add";
Symbol 134 MovieClip Frame 1
function f() {
_root.score = _root.score + 50;
}
gotoAndStop(_parent.thetype);
Symbol 134 MovieClip Frame 2
function f() {
_root.score = _root.score + 100;
}
gotoAndStop(_parent.thetype);
Symbol 134 MovieClip Frame 3
function f() {
_root.score = _root.score + 200;
}
gotoAndStop(_parent.thetype);
Symbol 134 MovieClip Frame 4
function f() {
_root.score = _root.score + 400;
}
gotoAndStop(_parent.thetype);
Symbol 134 MovieClip Frame 5
function f() {
_root.lives = _root.lives + 1;
}
Symbol 134 MovieClip Frame 6
function f() {
_root.ammo = 200;
_root.weaponType = 1;
}
Symbol 134 MovieClip Frame 7
function f() {
_root.ammo = 100;
_root.weaponType = 2;
}
Symbol 134 MovieClip Frame 8
function f() {
_root.ammo = 100;
_root.weaponType = 3;
}
Symbol 134 MovieClip Frame 9
function f() {
_root.ammo = 100;
_root.weaponType = 4;
}
Symbol 134 MovieClip Frame 10
function f() {
_root.fireshield = true;
_root.fireshieldcounter = 150;
s = new Sound(this);
s.attachSound("fire shield start");
s.start();
_root.all.all.p1.fireshieldsound = new Sound(_root.all.all.p1);
_root.all.all.p1.fireshieldsound.attachSound("fire shield");
_root.all.all.p1.fireshieldsound.start(0, 3);
}
Symbol 134 MovieClip Frame 11
function f() {
_root.wings = true;
_root.wingcounter = 300;
_root.all.all.p1.wing1._visible = true;
_root.all.all.p1.wing2._visible = true;
}
Symbol 135 MovieClip [powerup] Frame 1
stop();
onEnterFrame = function () {
if (!_root.pausegame) {
timer--;
if (timer < 0) {
_alpha = (_alpha-1);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
yvel = yvel + (_root.grav / 2);
if (this.hitTest(_root.all.all.p1.area) and (!_root.all.all.p1.dead)) {
delete onEnterFrame;
gotoAndPlay ("got");
}
for (i in _root.platArray) {
if (_root.platArray[i].area.hitTest(hitarea)) {
_y = _root.platArray[i]._y;
yvel = -7;
}
}
_y = (_y + yvel);
_x = (_x + xvel);
}
};
Symbol 135 MovieClip [powerup] Frame 2
z.f();
s = new Sound(this);
switch (thetype) {
case 1 :
case 2 :
case 3 :
case 4 :
s.attachSound("coin snd");
break;
case 5 :
s.attachSound("life snd");
break;
case 6 :
case 7 :
case 8 :
case 9 :
_root.weaponbar.totalammo = _root.ammo;
_root.weaponbar.bar.thetype = thetype;
_root.weaponbar.bar.z.gotoAndStop(thetype);
s.attachSound("powerup get");
break;
case 10 :
_root.firebar.totalammo = _root.fireshieldcounter;
_root.firebar.bar.z.gotoAndStop(thetype);
break;
case 11 :
_root.wingbar.totalammo = _root.wingcounter;
_root.wingbar.bar.z.gotoAndStop(thetype);
default :
s.attachSound("powerup get");
}
s.start();
Symbol 135 MovieClip [powerup] Frame 6
this.removeMovieClip();
Symbol 139 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 143 MovieClip Frame 1
scan = 0.01;
Symbol 143 MovieClip Frame 2
if (Math.random() > scan) {
gotoAndPlay(_currentframe - 1);
}
Symbol 143 MovieClip Frame 24
if (Math.random() > scan) {
gotoAndPlay(_currentframe - 1);
}
Symbol 143 MovieClip Frame 45
if (Math.random() > scan) {
gotoAndPlay(_currentframe - 1);
}
Symbol 143 MovieClip Frame 66
if (Math.random() > scan) {
gotoAndPlay(_currentframe - 1);
}
Symbol 143 MovieClip Frame 91
if (Math.random() > scan) {
gotoAndPlay(_currentframe - 1);
}
Symbol 149 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() < 0.1) {
n = this.attachMovie("glitter1", "g" + this.getNextHighestDepth(), this.getNextHighestDepth());
n._xscale = (n._yscale = 30 + (Math.random() * 30));
n._x = random(60) - 30;
}
};
Symbol 150 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 158 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Instance of Symbol 155 MovieClip in Symbol 158 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay(random(80));
}
Symbol 162 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 172 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 173 MovieClip Frame 1
gotoAndStop(_root.levelbg);
Symbol 174 MovieClip [scenery] Frame 1
stop();
Symbol 174 MovieClip [scenery] Frame 15
this.removeMovieClip();
Symbol 176 MovieClip [shoot] Frame 1
speed = 50;
ii = 0;
onEnterFrame = function () {
ii++;
if (ii > 10) {
this.removeMovieClip();
}
_x = (_x + (Math.sin((_rotation / 180) * Math.PI) * speed));
_y = (_y - (Math.cos((_rotation / 180) * Math.PI) * speed));
for (i in _root.baddyArray) {
if (this.hitTest(_root.baddyArray[i].area)) {
_root.baddyArray[i].die(_x, _y);
if (_root.baddyArray[i].pointsforhitting != undefined) {
_root.score = _root.score + ((Number(_root.baddyArray[i].pointsforhitting) != _root.baddyArray[i].pointsforhitting) ? 0 : (_root.baddyArray[i].pointsforhitting));
}
this.removeMovieClip();
}
}
};
Symbol 177 MovieClip [shootnosound] Frame 1
speed = 50;
ii = 0;
onEnterFrame = function () {
ii++;
if (ii > 10) {
this.removeMovieClip();
}
_x = (_x + (Math.sin((_rotation / 180) * Math.PI) * speed));
_y = (_y - (Math.cos((_rotation / 180) * Math.PI) * speed));
for (i in _root.baddyArray) {
if (this.hitTest(_root.baddyArray[i].area)) {
_root.baddyArray[i].die(_x, _y);
if (_root.baddyArray[i].pointsforhitting != undefined) {
_root.score = _root.score + ((Number(_root.baddyArray[i].pointsforhitting) != _root.baddyArray[i].pointsforhitting) ? 0 : (_root.baddyArray[i].pointsforhitting));
}
this.removeMovieClip();
}
}
};
Symbol 184 MovieClip [shootthru] Frame 1
speed = 50;
ii = 0;
helf = 1;
onEnterFrame = function () {
ii++;
if (ii > 10) {
this.removeMovieClip();
}
_x = (_x + (Math.sin((_rotation / 180) * Math.PI) * speed));
_y = (_y - (Math.cos((_rotation / 180) * Math.PI) * speed));
for (i in _root.baddyArray) {
if (this.hitTest(_root.baddyArray[i].area)) {
_root.baddyArray[i].die(_x, _y);
if (_root.baddyArray[i].pointsforhitting != undefined) {
_root.score = _root.score + ((Number(_root.baddyArray[i].pointsforhitting) != _root.baddyArray[i].pointsforhitting) ? 0 : (_root.baddyArray[i].pointsforhitting));
}
if (helf == 0) {
this.removeMovieClip();
}
helf--;
}
}
};
Symbol 187 MovieClip [shrapnel] Frame 1
xvel = random(10) * ((random(2) * 2) - 1);
yvel = -(10 + random(20));
_yscale = (50 + random(100));
_xscale = (50 + random(100));
_rotation = random(360);
rotvel = random(10) * ((random(2) * 2) - 1);
onEnterFrame = function () {
xvel = xvel * 0.9;
yvel = yvel * 0.9;
rotvel = rotvel * 0.9;
_y = (_y + yvel);
_x = (_x + xvel);
_rotation = (_rotation + rotvel);
};
gotoAndPlay(random(5) + 1);
Symbol 187 MovieClip [shrapnel] Frame 25
this.removeMovieClip();
Symbol 190 MovieClip [sparkle] Frame 13
this.removeMovieClip();
Symbol 193 MovieClip Frame 1
Symbol 194 MovieClip [dp letter] Frame 34
stop();
Symbol 197 MovieClip [instructions] Frame 151
Symbol 197 MovieClip [instructions] Frame 213
this.removeMovieClip();
Symbol 201 MovieClip [hopper] Frame 1
function die() {
health--;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
vel = 5;
pointsforhitting = 30;
onEnterFrame = function () {
if (!_root.pausegame) {
_x = (_x + vel);
if (_x > (plat._x + plat._width)) {
_xscale = -100;
vel = -5;
}
if (_x < plat._x) {
_xscale = 100;
vel = 5;
}
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
stop();
Symbol 201 MovieClip [hopper] Frame 2
_root.baddyDie(this);
Symbol 201 MovieClip [hopper] Frame 6
this.removeMovieClip();
Symbol 204 MovieClip [hopperboss] Frame 1
isStopped = false;
onEnterFrame = function () {
if ((isStopped and (!_root.pausegame)) and (_currentframe != 71)) {
play();
isStopped = false;
} else if ((!isStopped) and _root.pausegame) {
stop();
isStopped = true;
}
};
function die(atx, aty) {
atx = _x + ((atx - _x) * 0.8);
aty = _y + ((aty - _y) * 0.8);
_root.baddyHurt(atx, aty);
pointsforhitting = 1;
health = health - 2;
if ((health <= 0) and (!dead)) {
dead = true;
gotoAndPlay ("die");
}
}
pointsforhitting = 1;
xvel = 5;
Instance of Symbol 79 MovieClip "area" in Symbol 204 MovieClip [hopperboss] Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
Instance of Symbol 100 MovieClip [placeholder] in Symbol 204 MovieClip [hopperboss] Frame 26
onClipEvent (enterFrame) {
if (!_root.pausegame) {
_parent._x = _parent._x + _parent.xvel;
}
}
Instance of Symbol 79 MovieClip "area" in Symbol 204 MovieClip [hopperboss] Frame 52
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
Symbol 204 MovieClip [hopperboss] Frame 71
stop();
Instance of Symbol 100 MovieClip [placeholder] in Symbol 204 MovieClip [hopperboss] Frame 71
onClipEvent (load) {
i = 0;
_parent.xvel = 1;
speed = 8;
}
onClipEvent (enterFrame) {
if (!_root.pausegame) {
i++;
if (i > 20) {
i = 0;
_parent.xvel = speed * ((_parent._x > _root.all.all.p1._x) ? -1 : 1);
if (_parent._x < (_root.lastPlat._x + 100)) {
_parent.xvel = speed;
}
if (_parent._x > ((_root.lastPlat._x + _root.lastPlat._width) - 100)) {
_parent.xvel = -speed;
}
_parent._xscale = ((_parent.xvel > 0) ? 100 : -100);
if (_parent.hoppermother) {
tmp2 = _root.all.all.attachMovie("hopper", "hopper" + (_root.baddyArray.length + 1), _root.all.all.getNextHighestDepth());
tmp2._y = _root.lastPlat._y;
tmp2._x = _parent._x;
tmp2.plat = _root.lastPlat;
tmp2.health = 1;
_root.baddyArray.push(tmp2);
}
_parent.gotoAndPlay("jump");
_parent.isStopped = false;
}
}
}
Symbol 204 MovieClip [hopperboss] Frame 72
play();
Instance of Symbol 79 MovieClip in Symbol 204 MovieClip [hopperboss] Frame 72
onClipEvent (enterFrame) {
_root.bossDying(_parent);
}
Symbol 204 MovieClip [hopperboss] Frame 91
delete onEnterFrame;
_root.baddyHurt(_x, _y - 20);
_root.baddyHurt(_x, _y - 20);
Symbol 204 MovieClip [hopperboss] Frame 110
stop();
_root.nextLevel();
Symbol 219 MovieClip Frame 6
if ((_parent.vertmode == 1) and (random(5) > 1)) {
tmp2 = _root.all.all.attachMovie("popper", "popper" + (_root.baddyArray.length + 1), _root.all.all.getNextHighestDepth());
tmp2.plat = _parent.plat;
tmp2.health = 1;
_root.baddyArray.push(tmp2);
tmp2._x = _parent._x;
tmp2._y = _parent._y;
} else if (_parent.vertmode == 1) {
_parent.vertmode = -1;
_parent._yscale = -100;
_parent._y = _parent._y + _parent.plat._height;
} else {
_parent.vertmode = 1;
_parent._yscale = 100;
_parent._y = _parent.floory;
}
Symbol 219 MovieClip Frame 10
gotoAndStop ("normal");
Symbol 219 MovieClip Frame 15
stop();
Symbol 219 MovieClip Frame 20
gotoAndStop ("normal");
Symbol 219 MovieClip Frame 29
gotoAndStop ("normal");
Symbol 220 MovieClip [popperboss] Frame 1
function die(atx, aty) {
atx = _x + ((atx - _x) * 0.8);
aty = _y + ((aty - _y) * 0.8);
_root.baddyHurt(atx, aty);
health--;
_root.bossHealth--;
if (x) {
health = 0;
}
if ((_currentframe == 1) and (health <= 0)) {
gotoAndPlay ("die");
}
}
stop();
vertmode = 1;
ani.gotoAndPlay("fall");
pointsforhitting = 1;
yv = 0;
jumping = true;
floory = plat._y;
leftx = plat._x;
rightx = plat._x + plat._width;
freq = 0.95;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (jumping) {
_y = (_y + yv);
yv = yv + (1 * vertmode);
if (yv == (1 * vertmode)) {
ani.play();
}
_x = (_x + xtoadd);
if (vertmode == 1) {
if (_y > floory) {
ani.gotoAndPlay("land");
jumping = false;
yv = 0;
_y = floory;
}
} else if (_y < (floory + plat._height)) {
ani.gotoAndPlay("land");
jumping = false;
yv = 0;
_y = (floory + plat._height);
}
} else if ((ani._currentframe == 1) and (Math.random() < freq)) {
if (random(((vertmode == 1) ? 2 : 3)) == 1) {
ani.gotoAndPlay("squash");
} else {
ani.gotoAndPlay("jump");
if (vertmode == -1) {
yv = 10;
} else {
yv = -20;
}
aimx = leftx + random(rightx - leftx);
xtoadd = (aimx - _x) / 40;
jumping = true;
}
}
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Instance of Symbol 79 MovieClip in Symbol 220 MovieClip [popperboss] Frame 2
onClipEvent (enterFrame) {
_root.bossDying(_parent);
}
Symbol 220 MovieClip [popperboss] Frame 3
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 4
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 5
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 6
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 7
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 8
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 9
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 10
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 11
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 12
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 13
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 14
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 220 MovieClip [popperboss] Frame 15
_root.baddyDie(this);
Symbol 220 MovieClip [popperboss] Frame 42
_root.nextLevel();
this.removeMovieClip();
Symbol 222 MovieClip [popper] Frame 1
function die(x) {
health--;
if (x) {
health = 0;
}
if ((_currentframe == 1) and (health <= 0)) {
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 50;
yv = 0;
jumping = false;
floory = _y;
freq = 0.05;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (jumping) {
_y = (_y + yv);
yv = yv + 1;
if (_y > floory) {
jumping = false;
yv = 0;
_y = floory;
}
} else if (Math.random() < freq) {
yv = -20;
jumping = true;
}
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 222 MovieClip [popper] Frame 2
_root.baddyDie(this);
Symbol 222 MovieClip [popper] Frame 5
this.removeMovieClip();
Symbol 233 MovieClip Frame 1
stop();
Symbol 234 MovieClip [dropper] Frame 1
function die(x) {
health--;
if (x) {
health = 0;
}
if ((_currentframe == 1) and (health <= 0)) {
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 50;
yv = 0;
jumping = false;
floory = plat._y;
yvel = 0;
nearness = 80;
waiting = true;
freq = 0.05;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (waiting) {
if ((((_root.all.all.p1._y <= floory) and (_root.all.all.p1._y > _y)) and (_x > (_root.all.all.p1._x - nearness))) and (_x < (_root.all.all.p1._x + nearness))) {
waiting = false;
falling = true;
s = new Sound(this);
s.attachSound("Dropnoise");
s.start();
}
} else if (falling) {
yvel = yvel + 1;
_y = (_y + yvel);
if (_y >= floory) {
_y = floory;
s = new Sound(this);
s.attachSound("hitfloor");
s.start();
ani.gotoAndStop("stuck");
falling = false;
}
}
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 234 MovieClip [dropper] Frame 2
_root.baddyDie(this);
Symbol 234 MovieClip [dropper] Frame 5
this.removeMovieClip();
Symbol 235 MovieClip [dropperboss] Frame 1
function die(atx, aty) {
atx = _x + ((atx - _x) * 0.8);
aty = _y + ((aty - _y) * 0.8);
_root.baddyHurt(atx, aty);
health = health - 1.4;
_root.bossHealth = health;
if ((_currentframe == 1) and (health <= 0)) {
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 1;
yv = 0;
floory = _y;
_y = (_y - 1000);
breedline = plat._y - 400;
bredonce = false;
yvel = 0;
speed = 15;
turn = 0.1;
circling = true;
breeding = false;
radius = 400;
radtodegree = 57.2957795130823;
rotpoint = 0;
dir = 0;
doit = false;
freq = 0.05;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
normalizedir = function (val) {
val2 = val;
if (val > Math.PI) {
val2 = val - (Math.PI*2);
} else if (val < -3.14159265358979) {
val2 = val + (Math.PI*2);
}
return(val2);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (circling) {
rotpoint = rotpoint + 0.05;
if (rotpoint > Math.PI) {
rotpoint = rotpoint - (Math.PI*2);
}
actualdir = rotpoint - (Math.PI/2);
actualdir = normalizedir(actualdir);
normaldir = normalizedir(actualdir - dir);
if (Math.abs(normaldir) > turn) {
if (normaldir > 0) {
dir = dir + turn;
} else {
dir = dir - turn;
}
dir = normalizedir(dir);
} else {
dir = dir + normaldir;
}
_rotation = ((-dir) * radtodegree);
xwanted = _root.all.all.p1._x + (radius * Math.cos(rotpoint));
ywanted = _root.all.all.p1._y - (radius * Math.sin(rotpoint));
_x = (_x + ((xwanted - _x) / 3));
_y = (_y + ((ywanted - _y) / 3));
if (random(150) == 1) {
circling = false;
breeding = true;
targetx = plat._x + random(plat._width);
} else if ((random(120) == 1) and (Math.abs(normaldir) < turn)) {
circling = false;
nowdir = Math.atan2(_root.all.all.p1._y - _y, _root.all.all.p1._x - _x);
xattack = Math.cos(nowdir) * speed;
yattack = Math.sin(nowdir) * speed;
}
} else if (breeding) {
rotpoint = (Math.PI/2);
_rotation = (_rotation / 2);
dir = dir / 2;
if ((doit and (_y > (breedline - speed))) and (_y < (breedline + speed))) {
bredonce = true;
tmp2 = _root.all.all.attachMovie("dropper", "dropper" + (_root.baddyArray.length + 1), _root.all.all.getNextHighestDepth());
tmp2.plat = plat;
tmp2.health = 1;
_root.baddyArray.push(tmp2);
tmp2._x = _x;
tmp2._y = _y;
targetx = plat._x + random(plat._width);
doit = false;
}
if (Math.abs(_x - targetx) < speed) {
doit = true;
} else if (targetx > _x) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
if (Math.abs(_y - breedline) < speed) {
_y = breedline;
} else if (breedline > _y) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
if ((random(60) == 1) and bredonce) {
bredonce = false;
circling = true;
breeding = false;
}
} else {
_x = (_x + xattack);
_y = (_y + yattack);
if (_root.dist(_root.all.all.p1, this) > (radius + 20)) {
rotpoint = normalizedir(_root.dir(_root.all.all.p1, this) + (Math.PI/2));
circling = true;
}
}
if (this.area.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 235 MovieClip [dropperboss] Frame 2
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Instance of Symbol 79 MovieClip in Symbol 235 MovieClip [dropperboss] Frame 2
onClipEvent (enterFrame) {
_root.bossDying(_parent);
}
Symbol 235 MovieClip [dropperboss] Frame 3
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 4
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 5
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 6
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 7
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 8
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 9
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 10
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 11
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 12
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 13
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 235 MovieClip [dropperboss] Frame 15
_root.baddyDie(this);
Symbol 235 MovieClip [dropperboss] Frame 58
_root.nextLevel();
this.removeMovieClip();
Symbol 243 MovieClip [floater] Frame 1
function die() {
health--;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 20;
var xv = 0;
var yv = 0;
var dir = 0;
var tc = 0;
speed = 2;
turn = 0.2;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if ((_root.dist(plat, this) < 100) || (baby)) {
tc = (tc * 0.7) + ran(turn);
dir = dir + tc;
} else {
dir = _root.dir(plat, this);
}
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
_xscale = ((Math.sin(dir) > 0) ? 100 : -100);
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 243 MovieClip [floater] Frame 2
_root.baddyDie(this);
Symbol 243 MovieClip [floater] Frame 5
this.removeMovieClip();
Symbol 245 MovieClip [floaterchaser] Frame 1
function die() {
health--;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 30;
var xv = 0;
var yv = 0;
var dir = 0;
var tc = 0;
speed = 2;
startspeed = speed;
turn = 0.2;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (!baby) {
if (((_root.dist(_root.all.all.p1, this) < 200) and (!_root.all.all.p1.dead)) and (_root.all.all.p1.invincitimer <= 0)) {
speed = startspeed + 2;
dir = _root.dir(_root.all.all.p1, this);
} else if (_root.dist(plat, this) < 100) {
tc = (tc * 0.7) + ran(turn);
dir = dir + tc;
} else {
dir = _root.dir(plat, this);
}
} else {
speed = startspeed + 2;
dir = _root.dir(_root.all.all.p1, this);
}
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
_xscale = ((Math.sin(dir) > 0) ? 100 : -100);
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 245 MovieClip [floaterchaser] Frame 2
_root.baddyDie(this);
Symbol 245 MovieClip [floaterchaser] Frame 5
this.removeMovieClip();
Symbol 247 MovieClip [chaser] Frame 1
function die() {
if ((!waiting) || (_root.fightingBoss)) {
health--;
if ((_currentframe < 3) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
}
stop();
_alpha = 0;
waiting = true;
waittime = random(300) + 100;
pointsforhitting = 30;
var xv = 0;
var yv = 0;
dir = 0;
var tc = 0;
radtodegree = 57.2957795130823;
speed = 2;
startspeed = speed;
turn = 0.08;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
normalizedir = function (val) {
val2 = val;
if (val > Math.PI) {
val2 = val - (Math.PI*2);
} else if (val < -3.14159265358979) {
val2 = val + (Math.PI*2);
}
return(val2);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (!waiting) {
if ((_alpha < 100) && (health > 0)) {
_alpha = (_alpha + 8);
}
if ((!_root.all.all.p1.dead) and (_root.all.all.p1.invincitimer <= 0)) {
speed = startspeed + 4;
actualdir = _root.dir(_root.all.all.p1, this);
normaldir = normalizedir(actualdir - dir);
if (Math.abs(normaldir) > turn) {
if (normaldir > 0) {
dir = dir + turn;
} else {
dir = dir - turn;
}
dir = normalizedir(dir);
} else {
dir = dir + normaldir;
}
}
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
dir = dir % Math.PI;
_rotation = ((-dir) * radtodegree);
if (this.hitTest(_root.all.all.p1.area) && (_alpha >= 100)) {
_root.all.all.p1.die();
}
} else {
waittime--;
if (waittime <= 0) {
waiting = false;
gotoAndStop (2);
}
}
}
};
Symbol 247 MovieClip [chaser] Frame 3
_root.baddyDieExplode(this);
Symbol 247 MovieClip [chaser] Frame 6
this.removeMovieClip();
Symbol 248 MovieClip [chaserbaby] Frame 1
function die() {
if ((!waiting) || (_root.fightingBoss)) {
health--;
if ((_currentframe < 3) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
}
stop();
pointsforhitting = 1;
var xv = 0;
var yv = 0;
dir = 0;
var tc = 0;
radtodegree = 57.2957795130823;
speed = 4;
startspeed = speed;
turn = 0.08;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
normalizedir = function (val) {
val2 = val;
if (val > Math.PI) {
val2 = val - (Math.PI*2);
} else if (val < -3.14159265358979) {
val2 = val + (Math.PI*2);
}
return(val2);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if ((!_root.all.all.p1.dead) and (_root.all.all.p1.invincitimer <= 0)) {
speed = startspeed + 4;
actualdir = _root.dir(_root.all.all.p1, this);
normaldir = normalizedir(actualdir - dir);
if (Math.abs(normaldir) > turn) {
if (normaldir > 0) {
dir = dir + turn;
} else {
dir = dir - turn;
}
dir = normalizedir(dir);
} else {
dir = dir + normaldir;
}
}
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
dir = dir % Math.PI;
_rotation = ((-dir) * radtodegree);
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
if (this.area.hitTest(plat)) {
die();
}
}
};
Symbol 248 MovieClip [chaserbaby] Frame 2
_root.baddyDieExplode(this);
Symbol 248 MovieClip [chaserbaby] Frame 5
this.removeMovieClip();
Symbol 252 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (((Math.atan2(_parent._parent._y - _root.all.all.p1._y, _parent._parent._x - _root.all.all.p1._x) / Math.PI) * 180) - _parent._parent._rotation);
};
Symbol 255 MovieClip Frame 1
stop();
Symbol 258 MovieClip [chaserboss] Frame 1
function die() {
if ((!waiting) || (_root.fightingBoss)) {
health = health - 2;
ani.play();
_root.bossHealth = health;
if ((_currentframe < 3) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
}
stop();
_alpha = 0;
smokefreq = 5;
smokecounter = 0;
rising = false;
waiting = false;
pointsforhitting = 1;
var xv = 0;
var yv = 0;
dir = 0;
var tc = 0;
radtodegree = 57.2957795130823;
turning = 0;
chaseturn = 0.2;
speed = 9;
startspeed = speed;
turn = 0.04;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
normalizedir = function (val) {
val2 = val;
if (val > Math.PI) {
val2 = val - (Math.PI*2);
} else if (val < -3.14159265358979) {
val2 = val + (Math.PI*2);
}
return(val2);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if ((_alpha < 100) && (health > 0)) {
_alpha = (_alpha + 8);
}
if (!_root.all.all.p1.dead) {
if (rising) {
actualdir = -3.14159265358979;
normaldir = normalizedir(actualdir - dir);
if (Math.abs(normaldir) > chaseturn) {
if (normaldir > 0) {
dir = dir + chaseturn;
} else {
dir = dir - chaseturn;
}
dir = normalizedir(dir);
} else {
dir = dir + normaldir;
}
turning = 0;
if (_y < (plat._y - 400)) {
rising = false;
}
} else {
if (_y > plat._y) {
rising = true;
}
if (((_y < (plat._y - 500)) or (_x < plat._x)) or (_x > (plat._x + plat._width))) {
actualdir = _root.dir(_root.all.all.p1, this);
normaldir = normalizedir(actualdir - dir);
if (Math.abs(normaldir) > chaseturn) {
if (normaldir > 0) {
dir = dir + chaseturn;
} else {
dir = dir - chaseturn;
}
dir = normalizedir(dir);
} else {
dir = dir + normaldir;
}
turning = 0;
} else {
if ((_y < (plat._y - 80)) and (random(30) == 1)) {
tmp2 = _root.all.all.attachMovie("chaserbaby", "chaserbaby" + (_root.baddyArray.length + 1), _root.all.all.getNextHighestDepth());
tmp2.plat = plat;
tmp2.health = 1;
_root.baddyArray.push(tmp2);
tmp2._x = _x;
tmp2._y = _y;
}
if (turning > turn) {
turning = turn;
}
if (turning < (-turn)) {
turning = -turn;
}
turning = turning + (ran(turn) / 4);
tc = (tc * 0.7) + turning;
dir = dir + tc;
}
}
}
while (smokecounter > smokefreq) {
smokecounter = smokecounter - smokefreq;
tmp = underclip.attachMovie("shrapnel", "blood" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = random(5);
tmp._y = random(5);
}
smokecounter = smokecounter + (100 - health);
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
_rotation = ((-dir) * radtodegree);
if (this.area.hitTest(_root.all.all.p1.area) && (_alpha >= 100)) {
_root.all.all.p1.die();
}
}
};
Symbol 258 MovieClip [chaserboss] Frame 2
Instance of Symbol 79 MovieClip in Symbol 258 MovieClip [chaserboss] Frame 2
onClipEvent (enterFrame) {
_root.bossDying(_parent);
}
Symbol 258 MovieClip [chaserboss] Frame 12
_root.baddyDieExplode(this);
Symbol 258 MovieClip [chaserboss] Frame 13
_root.baddyDieExplode(this);
Symbol 258 MovieClip [chaserboss] Frame 14
_root.baddyDieExplode(this);
Symbol 258 MovieClip [chaserboss] Frame 50
_root.nextLevel();
this.removeMovieClip();
_root.baddyDieExplode(this);
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 2
stop();
Symbol 265 MovieClip [centipede] Frame 1
function die() {
if ((following and (!red)) and boss) {
body.gotoAndStop("red");
red = true;
} else {
health--;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
}
stop();
pointsforhitting = 20;
var xv = 0;
var yv = 0;
var dir = 0;
var tc = 0;
radtodegree = 57.2957795130823;
speed = 2;
startspeed = speed;
turn = 0.1;
red = false;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (following == null) {
if (!boss) {
if (((_root.dist(_root.all.all.p1, this) < 200) and (!_root.all.all.p1.dead)) and (_root.all.all.p1.invincitimer <= 0)) {
speed = startspeed + 2;
dir = _root.dir(_root.all.all.p1, this);
} else if (_root.dist(plat, this) < 100) {
tc = (tc * 0.7) + ran(turn);
dir = dir + tc;
} else {
dir = _root.dir(plat, this);
}
} else if (_root.dist(_root.all.all.p1, this) > 300) {
speed = startspeed + 6;
dir = _root.dir(_root.all.all.p1, this);
} else {
tc = (tc * 0.7) + ran(turn);
dir = dir + tc;
}
} else {
if (_root.dist(following, this) > 15) {
dir = _root.dir2(following, this);
speed = following.speed;
}
if ((following.health <= 0) || (following.health == null)) {
following = null;
}
}
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
dir = dir % Math.PI;
_rotation = ((-dir) * radtodegree);
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Instance of Symbol 261 MovieClip "head" in Symbol 265 MovieClip [centipede] Frame 1
onClipEvent (enterFrame) {
if (_parent.following != null) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 264 MovieClip "body" in Symbol 265 MovieClip [centipede] Frame 1
onClipEvent (enterFrame) {
if (_parent.following == null) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 265 MovieClip [centipede] Frame 2
_root.baddyHurt(_x, _y);
Symbol 265 MovieClip [centipede] Frame 5
if (boss) {
myBoss.health = myBoss.health - 2.5;
if (myBoss.health <= 0) {
_root.nextLevel();
} else {
this.removeMovieClip();
}
} else {
this.removeMovieClip();
}
Instance of Symbol 79 MovieClip in Symbol 265 MovieClip [centipede] Frame 6
onClipEvent (enterFrame) {
_root.bossDying(_parent);
}
Symbol 265 MovieClip [centipede] Frame 18
this.removeMovieClip();
Symbol 267 MovieClip [shooter floater] Frame 1
function die() {
health--;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
stop();
xv = 0;
yv = 0;
dir = 0;
tc = 0;
timer = 50;
pointsforhitting = 40;
speed = 2;
turn = 0.2;
t = timer;
shootspeed = 5;
initx = _x;
inity = _y;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if ((_root.dist(plat, this) < 100) || (baby)) {
tc = (tc * 0.7) + ran(turn);
dir = dir + tc;
} else {
dir = _root.dir(plat, this);
}
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
_xscale = ((Math.sin(dir) > 0) ? 100 : -100);
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
t--;
if (t <= 0) {
if (_root.dist(_root.all.all.p1, this) < 300) {
_root.shoot(_x, _y, _root.dir(_root.all.all.p1, this), shootspeed);
}
t = timer;
}
}
};
Symbol 267 MovieClip [shooter floater] Frame 2
_root.baddyDie(this);
Symbol 267 MovieClip [shooter floater] Frame 5
this.removeMovieClip();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 5
gotoAndStop ("normal");
Symbol 273 MovieClip Frame 9
gotoAndStop ("normal");
Symbol 274 MovieClip Frame 1
lookingright = true;
stop();
Symbol 274 MovieClip Frame 10
lookingright = false;
stop();
Symbol 275 MovieClip [floaterboss] Frame 1
function die(atx, aty) {
atx = _x + ((atx - _x) * 0.8);
aty = _y + ((aty - _y) * 0.8);
_root.baddyHurt(atx, aty);
health = health - 2;
_root.bossHealth = health;
eyes.e1.gotoAndPlay("hit");
eyes.e2.gotoAndPlay("hit");
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
stop();
innerboxhu = 150;
innerboxhd = 190;
innerboxw = -50;
outerboxw = 150;
outerboxhu = 450;
outerboxhd = 300;
p1 = plat._x;
p2 = plat._x + plat._width;
floory = plat._y;
xv = 0;
yv = 0;
dir = 0;
tc = 0;
pointsforhitting = 1;
speed = 11;
turn = 0.2;
t = timer;
shootspeed = 5;
if (_root.bosstype2 != null) {
timer = 20;
} else {
timer = 27;
}
initx = _x;
inity = _y;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
tc = (tc * 0.7) + ran(turn);
dir = dir + tc;
_y = (_y + (Math.cos(dir) * speed));
if (_y < (floory - outerboxhu)) {
_y = (floory - outerboxhu);
}
if (_y > (floory + outerboxhd)) {
_y = (floory + outerboxhd);
}
if ((((_x > (p1 - innerboxw)) and (_x < (p2 + innerboxw))) and (_y > (floory - innerboxhu))) and (_y < (floory + innerboxhd))) {
if ((Math.cos(dir) * speed) > 0) {
_y = (floory - innerboxhu);
} else {
_y = (floory + innerboxhd);
}
}
_x = (_x + (Math.sin(dir) * speed));
if (_x < (p1 - outerboxw)) {
_x = (p1 - outerboxw);
}
if (_x > (p2 + outerboxw)) {
_x = (p2 + outerboxw);
}
if ((((_x > (p1 - innerboxw)) and (_x < (p2 + innerboxw))) and (_y > (floory - innerboxhu))) and (_y < (floory + innerboxhd))) {
if ((Math.sin(dir) * speed) > 0) {
_x = (p1 - innerboxw);
} else {
_x = (p2 + innerboxw);
}
}
if (Math.sin(dir) > 0) {
if (!eyes.lookright) {
eyes.play();
}
} else if (eyes.lookright) {
eyes.play();
}
if (this.area.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
t--;
if (t <= 0) {
_root.shoot((_x + random(20)) - 10, (_y + random(20)) - 10, _root.dir(_root.all.all.p1, this), shootspeed);
t = timer + random(6);
}
if ((random(200) == 1) && (floatermother)) {
tmp = plat;
if ((random(3) == 1) && (_root.level < 5)) {
tmp2 = _root.all.all.attachMovie("floater", "floater" + (_root.baddyArray.length + 1), _root.all.all.getNextHighestDepth());
tmp2.plat = tmp;
tmp2.health = 1;
_root.baddyArray.push(tmp2);
} else if (random(2) == 1) {
tmp2 = _root.all.all.attachMovie("floaterchaser", "floaterchaser" + (_root.baddyArray.length + 1), _root.all.all.getNextHighestDepth());
tmp2.plat = tmp;
tmp2.health = 1;
_root.baddyArray.push(tmp2);
} else {
tmp2 = _root.all.all.attachMovie("shooter floater", "shooter floater" + (_root.baddyArray.length + 1), _root.all.all.getNextHighestDepth());
tmp2.plat = tmp;
tmp2.health = 1;
_root.baddyArray.push(tmp2);
}
tmp2._x = _x;
tmp2._y = _y;
tmp2.baby = true;
eyes.e1.gotoAndPlay("breed");
eyes.e2.gotoAndPlay("breed");
}
}
};
Symbol 275 MovieClip [floaterboss] Frame 2
_root.baddyHurt((_x + random(30)) - 15, (_y - random(40)) + 10);
Instance of Symbol 79 MovieClip in Symbol 275 MovieClip [floaterboss] Frame 2
onClipEvent (enterFrame) {
_root.bossDying(_parent);
}
Symbol 275 MovieClip [floaterboss] Frame 3
_root.baddyHurt((_x + random(30)) - 15, (_y - random(40)) + 10);
Symbol 275 MovieClip [floaterboss] Frame 4
_root.baddyHurt((_x + random(30)) - 15, (_y - random(40)) + 10);
Symbol 275 MovieClip [floaterboss] Frame 5
_root.baddyHurt((_x + random(30)) - 15, (_y - random(40)) + 10);
Symbol 275 MovieClip [floaterboss] Frame 6
_root.baddyHurt((_x + random(30)) - 15, (_y - random(40)) + 10);
Symbol 275 MovieClip [floaterboss] Frame 7
_root.baddyHurt((_x + random(30)) - 15, (_y - random(40)) + 10);
Symbol 275 MovieClip [floaterboss] Frame 8
_root.baddyHurt((_x + random(30)) - 15, (_y - random(40)) + 10);
Symbol 275 MovieClip [floaterboss] Frame 9
_root.baddyDie(this);
Symbol 275 MovieClip [floaterboss] Frame 46
_root.baddyDie(this);
_root.nextLevel();
this.removeMovieClip();
Symbol 282 MovieClip [bullet1] Frame 1
stop();
i = 0;
onEnterFrame = function () {
if (!_root.pausegame) {
i++;
if (i > 100) {
play();
}
_y = (_y + (Math.cos(dir) * speed));
_x = (_x + (Math.sin(dir) * speed));
if (this.hitTest(_root.all.all.p1.area) and (_currentframe == 1)) {
_root.all.all.p1.die();
play();
}
}
};
Symbol 282 MovieClip [bullet1] Frame 2
delete onEnterFrame;
Symbol 282 MovieClip [bullet1] Frame 4
this.removeMovieClip();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 11
stop();
Symbol 287 MovieClip [spinner] Frame 1
function die() {
health--;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 100;
spin = 0.1;
timer = 20;
shootspeed = 10;
var t = timer;
var dir = 0;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
dir = dir + spin;
bg._rotation = (dir / Math.PI) * -180;
t--;
if (t <= 0) {
if (_root.dist(_root.all.all.p1, this) < 300) {
_root.shoot(_x + (Math.sin(dir) * 25), _y + (Math.cos(dir) * 25), dir, shootspeed);
_root.shoot(_x - (Math.sin(dir) * 25), _y - (Math.cos(dir) * 25), dir - Math.PI, shootspeed);
}
t = timer;
}
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 287 MovieClip [spinner] Frame 2
_root.baddyDie(this);
Symbol 287 MovieClip [spinner] Frame 5
this.removeMovieClip();
Symbol 291 MovieClip Frame 1
stop();
Symbol 292 MovieClip [spinnerboss] Frame 1
function die(atx, aty) {
atx = _x + ((atx - _x) * 0.8);
timer = atx;
aty = _y + ((aty - _y) * 0.8);
_root.baddyHurt(atx, aty);
health = health - 0.5;
timer = (health / 10) + 2;
if (xvel > 0) {
xvel = xvel + acc;
} else {
xvel = xvel - acc;
}
_root.bossHealth = health;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 1;
spin = 0.1;
timer = 14;
shootspeed = 10;
xvel = 5;
p1 = plat._x + 80;
p2 = (plat._x + plat._width) - 80;
acc = 0.2;
var t = timer;
var dir = 0;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
_x = (_x + xvel);
if (_x > p2) {
_x = p2;
xvel = -xvel;
}
if (_x < p1) {
_x = p1;
xvel = -xvel;
}
dir = dir + spin;
bg._rotation = (dir / Math.PI) * -180;
t--;
if (t <= 0) {
_root.shoot2(_x + (Math.sin(dir) * 250), _y + (Math.cos(dir) * 250), dir, shootspeed);
_root.shoot2(_x - (Math.sin(dir) * 250), _y - (Math.cos(dir) * 250), dir - Math.PI, shootspeed);
t = timer;
}
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 292 MovieClip [spinnerboss] Frame 2
bg.play();
Instance of Symbol 79 MovieClip in Symbol 292 MovieClip [spinnerboss] Frame 2
onClipEvent (enterFrame) {
_root.bossDying(_parent);
}
Symbol 292 MovieClip [spinnerboss] Frame 5
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 6
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 7
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 8
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 9
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 10
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 11
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 12
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 13
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 14
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 15
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 16
_root.baddyHurt((_x + random(60)) - 30, (_y + random(60)) - 30);
Symbol 292 MovieClip [spinnerboss] Frame 20
_root.baddyDie(this);
Symbol 292 MovieClip [spinnerboss] Frame 41
_root.nextLevel();
this.removeMovieClip();
Symbol 294 MovieClip [spinnerbaby] Frame 1
function die() {
health--;
if ((_currentframe == 1) and (health <= 0)) {
delete onEnterFrame;
gotoAndPlay ("die");
}
}
stop();
pointsforhitting = 5;
spin = 0.1;
timer = 20;
shootspeed = 10;
var t = timer;
var dir = 0;
ran = function (val) {
return(((Math.random() * val) * 2) - val);
};
onEnterFrame = function () {
if (!_root.pausegame) {
if (_y < plat._y) {
_y = (_y+1);
}
dir = dir + spin;
bg._rotation = (dir / Math.PI) * -180;
t--;
if (t <= 0) {
if (_root.dist(_root.all.all.p1, this) < 300) {
_root.shoot(_x + (Math.sin(dir) * 25), _y + (Math.cos(dir) * 25), dir, shootspeed);
_root.shoot(_x - (Math.sin(dir) * 25), _y - (Math.cos(dir) * 25), dir - Math.PI, shootspeed);
}
t = timer;
}
if (this.hitTest(_root.all.all.p1.area)) {
_root.all.all.p1.die();
}
}
};
Symbol 294 MovieClip [spinnerbaby] Frame 2
_root.baddyDie(this);
Symbol 294 MovieClip [spinnerbaby] Frame 5
this.removeMovieClip();
Symbol 295 MovieClip [firesparkle] Frame 7
this.removeMovieClip();
Symbol 298 MovieClip [glitter1] Frame 1
speed = Math.random();
fade = 1 + (Math.random() * 2);
onEnterFrame = function () {
if (_alpha > 0) {
_rotation = (_rotation + (1 + (Math.random() * 5)));
_y = (_y - speed);
_alpha = (_alpha - fade);
} else {
removeMovieClip(this);
}
};
this.gotoAndStop(random(2) + 1);
Symbol 299 MovieClip Frame 1
stop();
Symbol 300 Button
on (press) {
getURL ("http://www.dissoluteproductions.com/", "_blank");
}
Symbol 311 MovieClip Frame 7
t = "dissolute productions";
i = 0;
while (i <= 21) {
z = this.attachMovie("dp letter", "dpl" + i, this.getNextHighestDepth());
z._x = ((i == 0) ? 0 : ((this["dpl" + (i - 1)]._x + this["dpl" + (i - 1)]._width) + 2));
z.gotoAndPlay(random(10) + 1);
z.letter = t.charAt(i);
i++;
}
Symbol 311 MovieClip Frame 72
stop();
_parent.play();
Symbol 320 MovieClip Frame 59
stop();
_parent.play();
Symbol 322 Button
on (press) {
getURL ("http://www.maxgames.com/", "_blank");
}
Symbol 325 Button
on (press) {
_root.gotoAndPlay("menuintro");
}
Symbol 332 MovieClip Frame 1
if (_parent.z) {
stop();
}
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 25
stop();
Symbol 352 MovieClip Frame 94
z = true;
Symbol 352 MovieClip Frame 164
z1.play();
z2.play();
Symbol 352 MovieClip Frame 208
_root.gotoAndPlay("menuintro");
Symbol 358 MovieClip Frame 10
stop();
Instance of Symbol 365 MovieClip "drag" in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
_y = _parent.bar._y;
x = _x;
y = _y;
}
on (press) {
this.startDrag(false, x, y, x, (_parent.bar._y + _parent.bar._height) - 36);
}
on (release, releaseOutside) {
this.stopDrag();
}
onClipEvent (enterFrame) {
pos = (_y - _parent.bar._y) / (_parent.bar._height - 36);
_parent.buttons._y = 10 - ((_parent.buttons._height - _parent.bar._height) * pos);
}
Symbol 377 Button
on (press) {
_root.config._visible = true;
}
Symbol 379 Button
on (press) {
getURL ("http://www.dissoluteproductions.com/", "_blank");
}
Symbol 382 MovieClip Frame 1
onPress = function () {
};
this.useHandCursor = false;
Symbol 385 Button
on (press) {
keytochange = "fire";
enterkey._visible = true;
}
Symbol 389 Button
on (press) {
keytochange = "jump";
enterkey._visible = true;
}
Symbol 390 Button
on (press) {
keytochange = "shield";
enterkey._visible = true;
}
Symbol 402 Button
on (press) {
keytochange = "left";
enterkey._visible = true;
}
Symbol 403 Button
on (press) {
keytochange = "right";
enterkey._visible = true;
}
Symbol 404 Button
on (press) {
keytochange = "up";
enterkey._visible = true;
}
Symbol 405 Button
on (press) {
keytochange = "down";
enterkey._visible = true;
}
Symbol 409 Button
on (press) {
_visible = false;
}
Symbol 413 MovieClip Frame 1
function returnkeyname(id) {
if (id >= 48) {
return(String.fromCharCode(id));
}
switch (id) {
case 32 :
return("space");
case 16 :
return("shift");
case 17 :
return("ctrl");
case 37 :
return("left");
case 38 :
return("up");
case 39 :
return("right");
case 40 :
return("down");
}
return("???");
}
keytochange = "fire";
showfirekey = returnkeyname(_root.firekey);
showshieldkey = returnkeyname(_root.shieldkey);
showjumpkey = returnkeyname(_root.jumpkey);
showleftkey = returnkeyname(_root.leftkey);
showrightkey = returnkeyname(_root.rightkey);
showdownkey = returnkeyname(_root.downkey);
showupkey = returnkeyname(_root.upkey);
Instance of Symbol 412 MovieClip "enterkey" in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
onKeyDown = function () {
if (_visible) {
_root[_parent.keytochange + "key"] = Key.getCode();
_parent[("show" + _parent.keytochange) + "key"] = _parent.returnkeyname(Key.getCode());
_visible = false;
}
};
Key.addListener(this);
}
Symbol 421 MovieClip Frame 6
if (!_root.tryagain) {
_root.levelmusic = random(3) + 1;
_root.bossmusic = random(3) + 1;
_root.levelbg = random(5) + 1;
}
_root.startTrack(_root.levelmusic);
_root.gotoAndStop("next");
levelname.text = _root.getdifficultystring(_root.level - 1);
Symbol 421 MovieClip Frame 33
_root.gotoAndStop("game");
Symbol 421 MovieClip Frame 40
stop();
Symbol 427 MovieClip Frame 1
gotoAndStop(_root.levelbg);
Symbol 431 MovieClip Frame 1
switch (_root.levelbg) {
case 1 :
levelname = "mountain";
break;
case 2 :
levelname = "twilight";
break;
case 3 :
levelname = "sky";
break;
case 4 :
levelname = "city";
break;
case 5 :
levelname = "desert";
}
gotoAndStop(levelname);
Symbol 434 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 1
function f() {
if ((_root.all.all.p1.invincitimer > 0) or _root.fireshield) {
_visible = true;
} else {
_visible = false;
}
}
f();
onEnterFrame = function () {
f();
};
this.blendMode = "add";
Symbol 439 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 446 MovieClip Frame 9
i = 0;
while (i <= (30 + random(10))) {
tmp = _root.all.all.attachMovie("blood", "blood" + _root.all.all.getNextHighestDepth(), _root.all.all.getNextHighestDepth());
tmp._x = _parent._x + random(5);
tmp._y = _parent._y + random(5);
i++;
}
Symbol 446 MovieClip Frame 35
stop();
_parent.died();
Symbol 449 MovieClip Frame 4
stop();
Symbol 452 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 461 MovieClip Frame 1
function Size(t) {
with (t) {
if (_parent._parent._xscale > 0) {
_width = (600 - _parent._parent.p.x) * (100 / _root.all._xscale);
} else {
_width = (_parent._parent.p.x + 50) * (100 / _root.all._xscale);
}
}
}
Symbol 461 MovieClip Frame 5
s = new Sound(this);
s.attachSound("whoop");
s.start(0, 999);
Instance of Symbol 460 MovieClip in Symbol 461 MovieClip Frame 5
onClipEvent (load) {
switchval = 1;
_parent.Size(this);
}
onClipEvent (enterFrame) {
if (switchval == 1) {
for (i in _root.baddyArray) {
if (this.hitTest(_root.baddyArray[i].area)) {
_root.baddyArray[i].die(_x, _y);
if (_root.baddyArray[i].pointsforhitting != undefined) {
_root.score = _root.score + ((Number(_root.baddyArray[i].pointsforhitting) != _root.baddyArray[i].pointsforhitting) ? 0 : (_root.baddyArray[i].pointsforhitting));
}
this.removeMovieClip();
}
}
}
switchval = switchval * -1;
_parent.Size(this);
}
Symbol 461 MovieClip Frame 8
stop();
onEnterFrame = function () {
_root.ammo--;
if (_root.ammo < 0) {
_root.weaponType = 0;
_parent.gotoAndStop(1);
}
};
Instance of Symbol 460 MovieClip in Symbol 461 MovieClip Frame 8
onClipEvent (load) {
switchval = 1;
_parent.Size(this);
}
onClipEvent (enterFrame) {
if (switchval == 1) {
for (i in _root.baddyArray) {
if (this.hitTest(_root.baddyArray[i].area)) {
_root.baddyArray[i].die(_x, _y);
_root.score = _root.score + ((Number(_root.baddyArray[i].pointsforhitting) != _root.baddyArray[i].pointsforhitting) ? 0 : (_root.baddyArray[i].pointsforhitting));
this.removeMovieClip();
}
}
}
switchval = switchval * -1;
_parent.Size(this);
}
Symbol 462 MovieClip Frame 1
stop();
Instance of Symbol 434 MovieClip "wing2" in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 79 MovieClip "area" in Symbol 462 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = (Math.abs(_parent.yvel) + 30);
}
Instance of Symbol 434 MovieClip "wing1" in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 461 MovieClip "body" in Symbol 462 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!Key.isDown(_root.firekey)) {
_parent.gotoAndStop(1);
}
}
onClipEvent (unload) {
s.stop();
}
Instance of Symbol 462 MovieClip "p1" in Symbol 463 MovieClip Frame 1
onClipEvent (load) {
function die() {
if ((invincitimer <= 0) and (!_root.fireshield)) {
dead = true;
gotoAndStop ("death");
_root.wings = false;
_root.wingstimer = 0;
wing1._visible = false;
wing2._visible = false;
}
}
function died() {
_root.lives--;
_root.weaponType = 0;
_root.all.all.p1.fireshieldsound.stop();
_root.fireshieldcounter = 0;
_root.fireshield = false;
_root.wings = false;
_root.wingstimer = 0;
wing1._visible = false;
wing2._visible = false;
if (_root.lives >= 0) {
_root.shieldleft = _root.maxshield;
xvel = 0;
yvel = 0;
invincitimer = 50;
gotoAndStop (1);
dead = false;
_x = (_root.resetplat._x + (_root.resetplat._width / 2));
_y = _root.resetplat._y;
} else {
_root.fightingBoss = false;
_root.gotoAndPlay("gameover");
}
}
shieldok = true;
flipflop = 1;
shield = false;
this.swapDepths(999);
invincitimer = 0;
_root.init(this);
speed = 5;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.pausegame) {
if (_root.ammo <= 0) {
_root.weaponType = 0;
}
if (_root.scoreroller < _root.score) {
_root.scoreroller = _root.scoreroller + Math.ceil((_root.score - _root.scoreroller) / 2);
} else if (_root.scoreroller > _root.score) {
_root.scoreroller = _root.scoreroller + Math.ceil((_root.score - _root.scoreroller) / 2);
}
if ((invincitimer > 0) and (!shield)) {
if (flashon) {
flashon = false;
_alpha = 100;
} else {
flashon = true;
_alpha = 0;
}
invincitimer--;
} else {
_alpha = 100;
}
_root.genPhys(this);
if (_currentframe == 5) {
shooping = true;
if (_xscale < 0) {
xvel = xvel + (speed / 3);
} else {
xvel = xvel - (speed / 3);
}
} else {
shooping = false;
}
if (!dead) {
if (Key.isDown(_root.leftkey)) {
if (!shooping) {
if (onFloor) {
body.play();
}
_xscale = -100;
}
xvel = xvel - speed;
}
if (Key.isDown(_root.rightkey)) {
if (!shooping) {
if (onFloor) {
body.play();
}
_xscale = 100;
}
xvel = xvel + speed;
}
if (_root.wings) {
_root.wingcounter--;
if (_root.wingcounter < 0) {
_root.wings = false;
wing1._visible = false;
wing2._visible = false;
}
}
if (Key.isDown(_root.jumpkey)) {
wing1.play();
wing2.play();
if (onFloor || (_root.wings and (wing1._currentframe == 1))) {
yvel = yvel - 20;
if (yvel < -30) {
yvel = -30;
}
if (!dead) {
gotoAndStop ("jump");
}
}
}
if (((Key.isDown(_root.shieldkey) and (_root.shieldleft > 0)) and (invincitimer < 2)) and shieldok) {
invincitimer = 1;
_root.sparkle(this);
_root.shieldleft--;
if (!shield) {
shieldsnd = new Sound(this);
shieldsnd.attachSound("shield");
shieldsnd.start(0, 999);
}
shield = true;
} else if (shield) {
shieldok = false;
shieldsnd.stop();
shield = false;
} else if (!Key.isDown(_root.shieldkey)) {
shieldok = true;
}
if (_root.fireshield) {
if ((_root.fireshieldcounter > 10) || (flipflop > 0)) {
_root.firesparkle(this);
_alpha = 50;
}
flipflop = flipflop * -1;
if (flipflop > 0) {
for (i in _root.baddyArray) {
if (this.hitTest(_root.baddyArray[i].area)) {
_root.baddyArray[i].die(_x, _y);
_root.score = _root.score + ((Number(_root.baddyArray[i].pointsforhitting) != _root.baddyArray[i].pointsforhitting) ? 0 : (_root.baddyArray[i].pointsforhitting));
}
}
}
_root.fireshieldcounter--;
if (_root.fireshieldcounter <= 0) {
_root.fireshield = false;
_root.all.all.p1.fireshieldsound.stop();
}
}
if (Key.isDown(_root.firekey)) {
if (shootTimer <= 0) {
shootTimer = 4;
if (_root.weaponType != 1) {
_root.fire(this);
gotoAndStop ("fire");
} else if (_root.weaponType == 1) {
gotoAndStop ("shoop");
}
if (_root.weaponType != 4) {
if (Key.isDown(_root.upkey)) {
a._rotation = -45;
} else if (Key.isDown(_root.downkey)) {
a._rotation = 45;
} else {
a._rotation = 0;
}
} else {
a._rotation = -180 + (_root.shootcounter * 90);
}
a.gotoAndPlay(1);
}
}
}
if (shootTimer > 0) {
shootTimer--;
if (_root.weaponType == 4) {
shootTimer--;
}
}
p = {x:_x, y:_y};
_parent.localToGlobal(p);
}
}
Instance of Symbol 463 MovieClip "all" in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.pausegame) {
if (!_root.fightingBoss) {
if (_root.slowzoom) {
_x = (_x - ((_x + p1._x) / 20));
_y = (_y - ((_y + p1._y) / 20));
} else {
_x = (_x - ((_x + p1._x) / 2));
_y = (_y - ((_y + p1._y) / 2));
}
if (_y < (-(_root.lowPlat + 100))) {
_y = (-(_root.lowPlat + 100));
}
} else {
_x = (_x - ((_x + (_root.lastPlat._x + (_root.lastPlat._width / 2))) / 10));
_y = (_y - (((_y + _root.lastPlat._y) - 100) / 10));
}
_root.bg._x = _root.bg._x + ((_x - oldx) / 5);
_root.bg._y = _root.bg._y + ((_y - oldy) / 5);
oldx = _x;
oldy = _y;
}
}
Symbol 478 MovieClip Frame 1
gotoAndStop(_parent.n);
Instance of Symbol 476 MovieClip "bar" in Symbol 478 MovieClip Frame 1
onClipEvent (enterFrame) {
barflash._visible = true;
_xscale = (100 * ((_root.shieldleft + (_root.shieldcounter / _root.shieldrefresh)) / _root.maxshield));
}
Symbol 479 MovieClip Frame 1
onscreen = false;
stop();
Symbol 479 MovieClip Frame 5
onscreen = true;
stop();
Symbol 487 Button
on (press) {
getURL ("http://www.maxgames.com/", "_blank");
}
Instance of Symbol 489 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.boss.health;
if (_root.boss.health <= 0) {
_parent._parent.play();
}
}
Instance of Symbol 496 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.bosstype + 1);
}
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 11
stop();
Symbol 498 MovieClip Frame 12
if (_root.boss2.health <= 0) {
_root.fightingBoss = false;
_root.slowzoom = true;
_root.music.stop();
_root.score = _root.score + (_root.lives * ((Number(_root.bonusforlives) != _root.bonusforlives) ? 1 : (_root.bonusforlives)));
}
Symbol 498 MovieClip Frame 20
Instance of Symbol 489 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.boss2.health;
if (_root.boss2.health <= 0) {
_parent._parent.play();
}
}
Instance of Symbol 496 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.bosstype2 + 1);
}
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 11
stop();
Symbol 501 MovieClip Frame 12
if (_root.boss.health <= 0) {
_root.slowzoom = true;
_root.score = _root.score + (_root.lives * ((Number(_root.bonusforlives) != _root.bonusforlives) ? 1 : (_root.bonusforlives)));
_root.fightingBoss = false;
_root.music.stop();
}
Symbol 501 MovieClip Frame 21
stop();
Symbol 506 Button
on (press) {
_root.pausegame = false;
}
Symbol 507 Button
on (press) {
_root.music.stop();
_root.stopAllSounds();
_root.gotoAndPlay("menu");
}
Symbol 508 Button
on (press) {
_root.config._visible = true;
}
Symbol 522 Button
on (press) {
_root.tryagain = true;
_root.gotoAndPlay("gameinit");
}
Symbol 525 Button
on (press) {
_root.gotoAndPlay("menu");
}
Symbol 527 MovieClip Frame 75
stop();