Frame 1
Stage.showMenu = false;
_root.audioenabled = true;
_root.autohi = false;
if (_global.System) {
System.security.allowDomain("mochibot.com");
System.security.allowInsecureDomain("mochibot.com");
}
_level0.__com_mochibot__swfid = "0703890d";
loadMovieNum ("http://mochibot.com/my/core.swf", 10301);
Frame 2
stop();
Instance of Symbol 70 MovieClip in Frame 2
onClipEvent (load) {
percentloaded = 0;
pload = 0;
}
onClipEvent (enterFrame) {
percentloaded = Math.round(100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
pload = pload + (((pload + 2) <= percentloaded) ? 2.5 : 0);
_root.perloadtxt.text = new String(((Math.round(pload) + "% of ") + Math.round(_root.getBytesTotal() / 1024)) + "kb loaded").toUpperCase();
_root.loadingtxt.text = new String("loading").toUpperCase();
var j = 0;
while (j < pload) {
_root.loadingtxt.text = _root.loadingtxt.text + ".";
j = j + 33.4;
}
_root.tweenmask._x = -526 + (4.75 * pload);
if ((pload >= 95) && (percentloaded == 100)) {
_root.createEmptyMovieClip("snd0", 4992);
_root.bgmusic = new Sound(_root.snd0);
_root.bgmusic.attachSound("bgmusic");
_root.bgmusic.start(0, 10000000000);
_root.bgmusic.setVolume(75);
_root.gotoAndStop("mainmenu");
}
}
Frame 3
stop();
_root._quality = (_root.autohi ? "autohigh" : "HIGH");
_root.denowns.inglor.inglorhead.useHandCursor = false;
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
function goGameOver() {
gameover = true;
_root.onMouseDown = null;
_root.onMouseUp = null;
_root.onEnterFrame = null;
for (i in _root) {
if (_root[i]._name != "snd0") {
_root[i].swapDepths(999);
_root[i].removeMovieClip();
}
}
_root.gotoAndStop("gameover");
}
function findIntercept(from, to, ypos) {
var _local2 = (((to[0] - from[0]) != 0) ? ((to[1] - from[1]) / (to[0] - from[0])) : 9999999999);
var _local3 = from[1] - (_local2 * from[0]);
var _local4 = (ypos - _local3) / _local2;
return(new Array(_local4, ypos));
}
function passBar(where) {
return(((((where < (_root.barA._x - (_root.barA._width / 2))) || ((where > (_root.barA._x + (_root.barA._width / 2))) && (where < (_root.barB._x - (_root.barB._width / 2))))) || ((where > (_root.barB._x + (_root.barB._width / 2))) && (where < (_root.barC._x - (_root.barC._width / 2))))) || ((where > (_root.barC._x + (_root.barC._width / 2))) && (where < (_root.barD._x - (_root.barD._width / 2))))) || (where > (_root.barD._x + (_root.barD._width / 2))));
}
function dem(who) {
who.health = who.health - 0.333333333333333;
who.gotoAndStop(Math.ceil((19 - who.health) / 3));
if (who.health <= 0) {
who.swapDepths(999);
who.removeMovieClip();
}
}
function barheal() {
_root.barA.health = 18;
_root.barA.gotoAndStop(1);
_root.barB.health = 18;
_root.barB.gotoAndStop(1);
_root.barC.health = 18;
_root.barC.gotoAndStop(1);
_root.barD.health = 18;
_root.barD.gotoAndStop(1);
}
function hitThis(what, act) {
for (iThing in _root) {
if ((((_root[iThing]._name.indexOf("bs") != -1) || (_root[iThing]._name.indexOf("ef") != -1)) || (_root[iThing]._name.indexOf("eb") != -1)) || (_root[iThing]._name.indexOf("fr") != -1)) {
if (what.hitTest(_root[iThing]._x, _root[iThing]._y, true)) {
_root[iThing].removeMovieClip();
act(what);
}
}
}
}
function howToMove() {
function left() {
var _local2 = 1000;
for (i in _root["enemy" + wave]) {
if (_root["enemy" + wave][i]._x < _local2) {
_local2 = _root["enemy" + wave][i]._x;
}
}
return(_local2);
}
if (_root["enemy" + wave].bednship != undefined) {
i = 1;
while (i <= 4) {
_root["enemy" + wave].bednship["gun" + i]._rotation = (57.2957795130823 * Math.atan2(((_root["enemy" + wave]._y + _root["enemy" + wave].bednship._y) + _root["enemy" + wave].bednship["gun" + i]._y) - _root.denvish._y, ((_root["enemy" + wave]._x + _root["enemy" + wave].bednship._x) + _root["enemy" + wave].bednship["gun" + i]._x) - _root.denvish._x)) + 90;
i++;
}
}
var _local3 = left();
if ((((_root["enemy" + wave]._x + (_root["enemy" + wave]._width + _local3)) - 10) > 580) && (eMoveDir)) {
_root["enemy" + wave]._x = 590 - (_root["enemy" + wave]._width + _local3);
eMoveDir = eMoveDir * -1;
_root["enemy" + wave]._y = _root["enemy" + wave]._y + ((_root["enemy" + wave]._y <= (320 - _root["enemy" + wave]._height)) ? 5 : 0);
eMoveSpd = eMoveSpd + ((eMoveSpd <= 10) ? 0.333333333333333 : 0);
} else if ((((_root["enemy" + wave]._x + _local3) - 10) < 20) && (-1 * eMoveDir)) {
_root["enemy" + wave]._x = 30 - _local3;
eMoveDir = eMoveDir * -1;
_root["enemy" + wave]._y = _root["enemy" + wave]._y + ((_root["enemy" + wave]._y <= (320 - _root["enemy" + wave]._height)) ? 5 : 0);
eMoveSpd = eMoveSpd + ((eMoveSpd <= 10) ? 0.5 : 0);
}
for (i in _root["enemy" + wave]) {
if (((Math.floor(Math.random() * (400 - _root["enemy" + wave]._y)) == 25) && (_root["enemy" + wave][i]._name != undefined)) && ((_root["enemy" + wave][i]._y + _root["enemy" + wave]._y) > 25)) {
if (_root["enemy" + wave][i]._name.indexOf("spmr") != -1) {
ebNum++;
_root.enemybullet.duplicateMovieClip("eb" + ebNum, ebNum);
_root["eb" + ebNum]._x = _root["enemy" + wave][i]._x + _root["enemy" + wave]._x;
_root["eb" + ebNum]._y = (_root["enemy" + wave][i]._y + _root["enemy" + wave]._y) + (_root.enemybullet._height / 2);
} else if ((_root["enemy" + wave][i]._name.indexOf("flam") != -1) && (Math.ceil(Math.random() * 4) >= 2)) {
ebNum++;
_root.enemyflame.duplicateMovieClip("fr" + ebNum, ebNum);
_root["fr" + ebNum]._x = ((_root["enemy" + wave][i]._x + _root["enemy" + wave]._x) + (_root["enemy" + wave][i]._width / 2)) - (_root.enemyflame._width / 2);
_root["fr" + ebNum]._y = ((_root["enemy" + wave][i]._y + _root["enemy" + wave]._y) + (_root["enemy" + wave][i]._height / 2)) - (_root.enemyflame._height / 2);
}
ebNum = ((ebNum > 7100) ? 7000 : (ebNum));
}
if ((_root["enemy" + wave].bednship != undefined) && (Math.ceil(Math.random() * 1800) == 2)) {
j = 1;
while (j <= 4) {
ebNum++;
_root.enemybullet.duplicateMovieClip("ef" + ebNum, ebNum);
_root["ef" + ebNum]._rotation = _root["enemy" + wave].bednship["gun" + j]._rotation;
_root["ef" + ebNum]._x = ((_root["enemy" + wave]._x + _root["enemy" + wave].bednship._x) + _root["enemy" + wave].bednship["gun" + j]._x) + Math.cos((_root["ef" + ebNum]._rotation - 90) * (Math.PI/180));
_root["ef" + ebNum]._y = ((_root["enemy" + wave]._y + _root["enemy" + wave].bednship._y) + _root["enemy" + wave].bednship["gun" + j]._y) + Math.sin((_root["ef" + ebNum]._rotation - 90) * (Math.PI/180));
ebNum = ((ebNum > 7100) ? 7000 : (ebNum));
j++;
}
}
}
_root["enemy" + wave]._x = _root["enemy" + wave]._x + (eMoveSpd * eMoveDir);
if (_root["enemy" + wave]._width == 0) {
if ((((wave % 5) == 0) && (Math.round(Math.random()))) && (silence)) {
_root.sound5.start(0, 0);
_root.silence = false;
} else if ((((wave % 5) != 0) && (Math.ceil(Math.random() * 3) == 1)) && (silence)) {
_root["sound" + (Math.round(Math.random()) + 1)].start(0, 0);
_root.silence = false;
}
_root.currentscore = _root.currentscore + (((wave % 5) == 0) ? 250 : 100);
waveD++;
_root["enemy" + wave].swapDepths(999);
_root["enemy" + wave].removeMovieClip();
}
}
gameover = false;
currentscore = 0;
bsNum = 9000;
ebNum = 7000;
fadeNum = 8000;
mbNum = 5000;
sDown = false;
sTime = 0;
eType = 0;
eMoveDir = 1;
eMoveSpd = 1;
wave = 0;
waveD = 0;
bans = 0;
denHP = 100;
inglorState = 0;
redShift = 0;
neg1State = 0;
silence = _root.audioenabled;
i = 1;
while (i <= 7) {
_root.createEmptyMovieClip("snd" + i, 4992 + i);
_root["sound" + i] = new Sound(_root["snd" + i]);
_root["sound" + i].attachSound("Denvish" + i);
_root["sound" + i].onSoundComplete = function () {
_root.silence = _root.audioenabled;
};
_root["sound" + i].setVolume(60);
i++;
}
_root.onMouseDown = function () {
sDown = true;
};
_root.onMouseUp = function () {
sDown = false;
};
_root.onEnterFrame = function () {
if (Key.isDown(75)) {
denHP = 0;
}
if (denHP <= 0) {
goGameOver();
}
_root.bgmusic.setVolume(((25 * _root.silence) + 50) * _root.audioenabled);
if (_root["enemy" + wave].bednship != undefined) {
redShift = ((redShift >= 25) ? 25 : (redShift + 1));
} else {
redShift = ((redShift <= 0) ? 0 : (redShift - 1));
}
_root.bgscreenW._alpha = 50 - redShift;
_root.bgscreenR._alpha = redShift;
if (((inglorState == 0) && (_root["enemy" + wave]._y >= 110)) && (Math.ceil(Math.random() * 350) == 1)) {
inglorState = 1;
}
_root.denhealth.gotoAndStop(101 - denHP);
_root.hptxt.text = denHP + "% EFFICIENCY";
_root.wavenum.text = waveD;
_root.bansnum.text = bans;
if (sTime > 0) {
sTime--;
}
if (sDown && (sTime <= 0)) {
bsNum++;
_root.banstick.duplicateMovieClip("bs" + bsNum, bsNum);
bsNum = ((bsNum > 9100) ? 9000 : (bsNum));
sTime = 7;
}
if (((_root["enemy" + wave] == undefined) && (inglorState == 0)) && (!gameover)) {
wave++;
eMoveDir = 1;
eMoveSpd = 1;
if ((wave % 5) == 0) {
bType = Math.ceil(Math.random() * 3);
_root.attachMovie("bedn" + bType, "enemy" + wave, 6000 + (wave % 900));
} else {
eType = Math.ceil(Math.random() * 7);
_root.attachMovie("enemies" + eType, "enemy" + wave, 6000 + (wave % 900));
}
_root["enemy" + wave]._x = 20 + Math.ceil(Math.random() * (560 - _root["enemy" + wave]._width));
_root["enemy" + wave]._y = 60;
var _local3 = 0;
for (sp in _root["enemy" + wave]) {
if (_root["enemy" + wave][sp]._name.indexOf("bedn") == -1) {
_local3++;
var _local2 = Math.ceil(Math.random() * 4);
_root["enemy" + wave][sp].gotoAndStop(_local2);
_root["enemy" + wave][sp]._name = ((_local2 == 4) ? ("flam" + _local3) : ("spmr" + _local3));
}
}
_root["enemy" + wave].onEnterFrame = howToMove;
}
};
_root.inglor.onEnterFrame = function () {
if (inglorState == 0) {
_root.inglor.gotoAndStop(1);
_root.inglor._x = -53.1;
_root.cane._x = 610;
} else if (inglorState == 1) {
_root.inglor._x = _root.inglor._x + 3;
_root.cane._x = 610;
inglorState = ((_root.inglor._x > (610 + _root.inglor._width)) ? 0 : (inglorState));
} else if (inglorState == 2) {
_root.inglor.gotoAndStop(2);
_root.cane._x = 610;
} else if (inglorState == 3) {
_root.cane._x = _root.cane._x - 5;
inglorState = ((_root.cane._x < (_root.inglor._x - 10)) ? 4 : (inglorState));
} else if (inglorState == 4) {
_root.cane._x = _root.cane._x + 5;
_root.inglor._x = _root.cane._x + 10;
inglorState = ((_root.inglor._x > (610 + _root.inglor._width)) ? 0 : (inglorState));
}
};
afroGO = false;
_root.afro._x = Math.ceil(Math.random() * 276) + 23;
_root.afro._y = Math.ceil(Math.random() * 47) + 431;
_root.afro.onEnterFrame = function () {
function newPlace(curX, curY, newX, newY) {
if (Math.sqrt(Math.pow(newY - curY, 2) + Math.pow(newX - curX, 2)) < 100) {
newPlace(curX, curY);
}
afroGO = true;
_root.afro.gotoX = newX;
_root.afro.gotoY = newY;
}
if ((!afroGO) && (Math.ceil(Math.random() * 40) == 40)) {
newPlace(_root.afro._x, _root.afro._y, Math.ceil(Math.random() * 276) + 23, Math.ceil(Math.random() * 47) + 431);
}
_root.afro._x = _root.afro._x + ((Math.round(_root.afro._x) < _root.afro.gotoX) - (Math.round(_root.afro._x) > _root.afro.gotoX));
_root.afro._y = _root.afro._y + ((Math.round(_root.afro._y) < _root.afro.gotoY) - (Math.round(_root.afro._y) > _root.afro.gotoY));
if ((Math.round(_root.afro._y) == _root.afro.gotoY) && (Math.round(_root.afro._x) == _root.afro.gotoX)) {
afroGO = false;
}
afroTARGETx = _root["enemy" + wave]._x + Math.ceil(Math.random() * _root["enemy" + wave]._width);
afroTARGETy = _root["enemy" + wave]._y + Math.ceil(Math.random() * _root["enemy" + wave]._height);
_root.afro.rotat = Math.atan2(afroTARGETy - _root.afro._y, afroTARGETx - _root.afro._x);
if ((_root.passBar(_root.findIntercept([_root.afro._x, _root.afro._y], [afroTARGETx, afroTARGETy], 382)[0]) && (Math.ceil(Math.random() * 20) == 10)) && (afroGO)) {
mbNum++;
_root.modbullet.duplicateMovieClip("mb" + mbNum, mbNum);
_root["mb" + mbNum]._x = _root.afro._x + (Math.cos(_root.afro.rotat) * 40);
_root["mb" + mbNum]._y = _root.afro._y + (Math.sin(_root.afro.rotat) * 40);
_root["mb" + mbNum]._rotation = 90 + (_root.afro.rotat * 57.2957795130823);
mbNum = ((mbNum > 5100) ? 5000 : (mbNum));
}
};
neg1GO = false;
_root.neg1._x = Math.ceil(Math.random() * 276) + 299;
_root.neg1._y = Math.ceil(Math.random() * 47) + 431;
_root.neg1.onEnterFrame = function () {
function newPlace(curX, curY, newX, newY) {
if (Math.sqrt(Math.pow(newY - curY, 2) + Math.pow(newX - curX, 2)) < 100) {
newPlace(curX, curY);
}
neg1GO = true;
_root.neg1.gotoX = newX;
_root.neg1.gotoY = newY;
}
if (neg1State == 0) {
neg1TARGETx = ((inglorstate != 1) ? (_root["enemy" + wave]._x + Math.ceil(Math.random() * _root["enemy" + wave]._width)) : (_root.inglor._x + Math.ceil(Math.random() * _root.inglor._width)));
neg1TARGETy = ((inglorstate != 1) ? (_root["enemy" + wave]._y + Math.ceil(Math.random() * _root["enemy" + wave]._height)) : (_root.inglor._y + Math.ceil(Math.random() * _root.inglor._height)));
_root.neg1.rotat = Math.atan2(neg1TARGETy - _root.neg1._y, neg1TARGETx - _root.neg1._x);
if ((_root.passBar(_root.findIntercept([_root.neg1._x, _root.neg1._y], [neg1TARGETx, neg1TARGETy], 382)[0]) && (Math.ceil(Math.random() * 25) == 10)) && (neg1GO)) {
mbNum++;
_root.modbullet.duplicateMovieClip("mb" + mbNum, mbNum);
_root["mb" + mbNum]._x = _root.neg1._x + (Math.cos(_root.neg1.rotat) * 40);
_root["mb" + mbNum]._y = _root.neg1._y + (Math.sin(_root.neg1.rotat) * 40);
_root["mb" + mbNum]._rotation = 90 + (_root.neg1.rotat * 57.2957795130823);
mbNum = ((mbNum > 5100) ? 5000 : (mbNum));
}
if (Math.ceil(Math.random() * 1500) == 250) {
neg1State = 1;
newPlace(_root.neg1._x, _root.neg1._y, Math.ceil(Math.random() * 276) + 299, Math.ceil(Math.random() * 47) + 431);
}
if ((Math.round(_root.neg1._y) == _root.neg1.gotoY) && (Math.round(_root.neg1._x) == _root.neg1.gotoX)) {
neg1GO = false;
}
} else if ((Math.round(_root.neg1._y) == _root.neg1.gotoY) && (Math.round(_root.neg1._x) == _root.neg1.gotoX)) {
_root.neg1.rotat = Math.atan2(_root.denvish._y - _root.neg1._y, _root.denvish._x - _root.neg1._x);
mbNum++;
_root.modbullet.duplicateMovieClip("md" + mbNum, mbNum + 100);
_root["md" + mbNum]._x = _root.neg1._x + (Math.cos(_root.neg1.rotat) * 40);
_root["md" + mbNum]._y = _root.neg1._y + (Math.sin(_root.neg1.rotat) * 40);
_root["md" + mbNum]._rotation = 90 + (_root.neg1.rotat * 57.2957795130823);
mbNum = ((mbNum > 5100) ? 5000 : (mbNum));
neg1State = 0;
}
if ((!neg1GO) && (Math.ceil(Math.random() * 40) == 40)) {
newPlace(_root.neg1._x, _root.neg1._y, Math.ceil(Math.random() * 276) + 299, Math.ceil(Math.random() * 47) + 431);
}
_root.neg1._x = _root.neg1._x + ((Math.round(_root.neg1._x) < _root.neg1.gotoX) - (Math.round(_root.neg1._x) > _root.neg1.gotoX));
_root.neg1._y = _root.neg1._y + ((Math.round(_root.neg1._y) < _root.neg1.gotoY) - (Math.round(_root.neg1._y) > _root.neg1.gotoY));
};
Instance of Symbol 231 MovieClip "denvish" in Frame 8
onClipEvent (load) {
runSpeed = 4;
}
onClipEvent (enterFrame) {
function xLimit(who, hiLim, loLim) {
who._x = ((who._x > hiLim) ? (hiLim) : (who._x));
who._x = ((who._x < loLim) ? (loLim) : (who._x));
}
function yLimit(who, hiLim, loLim) {
who._y = ((who._y > hiLim) ? (hiLim) : (who._y));
who._y = ((who._y < loLim) ? (loLim) : (who._y));
}
xMove = runSpeed * (Key.isDown(39) - Key.isDown(37));
yMove = runSpeed * (Key.isDown(40) - Key.isDown(38));
if ((xMove == 0) && (yMove == 0)) {
_root.denvish.gotoAndStop(1);
} else {
_root.denvish.gotoAndStop(2);
}
_x = (_x + xMove);
_y = (_y + yMove);
xLimit(_root.denvish, 578, 23);
yLimit(_root.denvish, 478, 431);
radAngle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = Math.round(((180 * radAngle) / Math.PI) + 90);
}
Instance of Symbol 148 MovieClip "barA" in Frame 8
onClipEvent (load) {
health = 18;
}
onClipEvent (enterFrame) {
if (health < 0) {
health = 0;
}
_root.hitThis(_root.barA, _root.dem);
}
Instance of Symbol 148 MovieClip "barB" in Frame 8
onClipEvent (load) {
health = 18;
}
onClipEvent (enterFrame) {
if (health < 0) {
health = 0;
}
_root.hitThis(_root.barB, _root.dem);
}
Instance of Symbol 148 MovieClip "barC" in Frame 8
onClipEvent (load) {
health = 18;
}
onClipEvent (enterFrame) {
if (health < 0) {
health = 0;
}
_root.hitThis(_root.barC, _root.dem);
}
Instance of Symbol 148 MovieClip "barD" in Frame 8
onClipEvent (load) {
health = 18;
}
onClipEvent (enterFrame) {
if (health < 0) {
health = 0;
}
_root.hitThis(_root.barD, _root.dem);
}
Instance of Symbol 232 MovieClip "banstick" in Frame 8
onClipEvent (load) {
if (_name.indexOf("bs") != -1) {
throwSpd = 12;
spinSpd = Math.floor(Math.random() * 61) - 30;
dirRotat = (_root.denvish._rotation - 90) * (Math.PI/180);
_x = (_root.denvish._x + (Math.cos(dirRotat) * 30));
_y = (_root.denvish._y + (Math.sin(dirRotat) * 30));
}
}
onClipEvent (enterFrame) {
if (_name.indexOf("bs") != -1) {
_rotation = (_rotation + spinSpd);
_x = (_x + (throwSpd * Math.cos(dirRotat)));
_y = (_y + (throwSpd * Math.sin(dirRotat)));
_root.fadeNum++;
duplicateMovieClip (this, "fade" + _root.fadeNum, _root.fadeNum);
_root.fadeNum = ((_root.fadeNum >= 9000) ? 8000 : (_root.fadeNum));
if ((((_x > 600) || (_x < 0)) || (_y > 500)) || (_y < 0)) {
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + _root.wave])) {
for (en in _root["enemy" + _root.wave]) {
if (this.hitTest(_root["enemy" + _root.wave][en])) {
_root["enemy" + _root.wave][en]._alpha = _root["enemy" + _root.wave][en]._alpha - ((_root["enemy" + _root.wave][en]._name.indexOf("bednship") != -1) ? 4 : 25);
_root.currentscore++;
if (_root["enemy" + _root.wave][en]._alpha < 10) {
if (_root["enemy" + _root.wave][en]._name.indexOf("bednship") != -1) {
_root.barheal();
_root.currentscore = _root.currentscore + 500;
} else {
_root.bans++;
_root.currentscore = _root.currentscore + (Math.ceil(Math.random() * 15) + 10);
}
_root["enemy" + _root.wave][en].swapDepths(999);
_root["enemy" + _root.wave][en].removeMovieClip();
}
this.removeMovieClip();
}
}
}
if (_root.inglorState == 1) {
if (this.hitTest(_root.inglor)) {
_root.currentscore = _root.currentscore + 250;
_root.inglorState = 2;
if ((Math.ceil(Math.random() * 3) == 1) && (_root.silence)) {
_root["sound" + (Math.round(Math.random()) + 6)].start(0, 0);
_root.silence = false;
}
}
}
} else if (_name.indexOf("fade") != -1) {
_alpha = (_alpha - 33.3333333333333);
if (_alpha <= 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 35 MovieClip "enemybullet" in Frame 8
onClipEvent (load) {
shootSpd = 8;
if (_name.indexOf("fade") != -1) {
_alpha = (_alpha - 60);
}
}
onClipEvent (enterFrame) {
if (_name.indexOf("eb") != -1) {
_y = (_y + shootSpd);
_root.fadeNum++;
duplicateMovieClip (this, "fade" + _root.fadeNum, _root.fadeNum);
_root.fadeNum = ((_root.fadeNum >= 9000) ? 8000 : (_root.fadeNum));
if ((((_x > 600) || (_x < 0)) || (_y > 500)) || (_y < 0)) {
this.removeMovieClip();
}
if (hitTest(_root.denvish)) {
_root.denHP = _root.denHP - (Math.ceil(Math.random() * 10) + 10);
this.removeMovieClip();
}
} else if (_name.indexOf("ef") != -1) {
_y = (_y - (shootSpd * Math.sin((_rotation - 90) * (Math.PI/180))));
_x = (_x - (shootSpd * Math.cos((_rotation - 90) * (Math.PI/180))));
if ((((_x > 600) || (_x < 0)) || (_y > 500)) || (_y < 0)) {
this.removeMovieClip();
}
if (hitTest(_root.denvish)) {
_root.denHP = _root.denHP - (Math.ceil(Math.random() * 10) + 10);
this.removeMovieClip();
}
} else if (_name.indexOf("fade") != -1) {
_alpha = (_alpha - 20);
if (_alpha <= 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 237 MovieClip "enemyflame" in Frame 8
onClipEvent (load) {
if (_name.indexOf("fr") != -1) {
shootSpd = 7 + Math.ceil(Math.random() * 5);
rotat = Math.atan2(_root.denvish._y - _y, _root.denvish._x - _x);
_rotation = ((57.2957795130823 * rotat) + 90);
}
}
onClipEvent (enterFrame) {
if (_name.indexOf("fr") != -1) {
_y = (_y + (shootSpd * Math.sin(rotat)));
_x = (_x + (shootSpd * Math.cos(rotat)));
_root.fadeNum++;
duplicateMovieClip (this, "fade" + _root.fadeNum, _root.fadeNum);
_root.fadeNum = ((_root.fadeNum >= 9000) ? 8000 : (_root.fadeNum));
if ((((_x > 600) || (_x < 0)) || (_y > 500)) || (_y < 0)) {
this.removeMovieClip();
}
if (hitTest(_root.denvish)) {
if ((Math.ceil(Math.random() * 5) == 5) && (_root.silence)) {
_root.sound4.start(0, 0);
_root.silence = false;
}
_root.denHP = _root.denHP - (Math.ceil(Math.random() * 10) + 10);
this.removeMovieClip();
}
} else if (_name.indexOf("fade") != -1) {
_alpha = (_alpha - 75);
if (_alpha <= 1) {
this.removeMovieClip();
}
}
}
Instance of Symbol 271 MovieClip "modbullet" in Frame 8
onClipEvent (load) {
shootSpd = 11;
}
onClipEvent (enterFrame) {
if (_name.indexOf("mb") != -1) {
_y = (_y + (shootSpd * Math.sin((_rotation - 90) * (Math.PI/180))));
_x = (_x + (shootSpd * Math.cos((_rotation - 90) * (Math.PI/180))));
if ((((_x > 600) || (_x < 0)) || (_y > 500)) || (_y < 0)) {
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + _root.wave])) {
for (en in _root["enemy" + _root.wave]) {
if (this.hitTest(_root["enemy" + _root.wave][en])) {
_root["enemy" + _root.wave][en]._alpha = _root["enemy" + _root.wave][en]._alpha - ((_root["enemy" + _root.wave][en]._name.indexOf("bednship") != -1) ? 4 : 25);
if (_root["enemy" + _root.wave][en]._alpha < 10) {
if (_root["enemy" + _root.wave][en]._name.indexOf("bednship") != -1) {
_root.barheal();
} else {
_root.bans++;
}
_root["enemy" + _root.wave][en].swapDepths(999);
_root["enemy" + _root.wave][en].removeMovieClip();
}
this.removeMovieClip();
}
}
}
if (_root.inglorState == 1) {
if (this.hitTest(_root.inglor)) {
_root.inglorState = 2;
}
}
} else if (_name.indexOf("md") != -1) {
_y = (_y + (shootSpd * Math.sin((_rotation - 90) * (Math.PI/180))));
_x = (_x + (shootSpd * Math.cos((_rotation - 90) * (Math.PI/180))));
if ((((_x > 600) || (_x < 0)) || (_y > 500)) || (_y < 0)) {
this.removeMovieClip();
}
if (this.hitTest(_root.denvish)) {
if ((Math.ceil(Math.random() * 3) == 3) && (_root.silence)) {
_root.sound3.start(0, 0);
_root.silence = false;
}
_root.denHP = _root.denHP - Math.ceil(Math.random() * 3);
this.removeMovieClip();
}
}
}
Frame 9
_root.prevQual = _root._quality;
_root._quality = "HIGH";
_root.bgmusic.setVolume(25);
_root.hstable._visible = 0;
stop();
Instance of Symbol 300 MovieClip in Frame 9
onClipEvent (load) {
_root.disp1.text = (scorebefore = _root.currentscore);
_root.disp1pt5.text = (_root.currentscore = _root.currentscore * 10);
_root.disp2.text = (wavebonus = 50 * (Math.pow(2, _root.waveD) - 1));
_root.disp3.text = (bansbonus = Math.round(Math.pow(1.01, _root.bans) * 50));
_root.disp4.text = (overkill = _root.denHP * 10);
_root.currentscore = _root.currentscore + ((wavebonus + bansbonus) + overkill);
_root.disp5.text = ((_root.currentscore >= 0) ? (_root.currentscore) : 0);
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 2
stop();
Symbol 17 MovieClip Frame 3
stop();
Symbol 17 MovieClip Frame 4
stop();
Symbol 18 MovieClip [enemies7] Frame 1
stop();
Symbol 19 MovieClip [enemies5] Frame 1
stop();
Symbol 20 MovieClip [enemies2] Frame 1
stop();
Symbol 21 MovieClip [enemies3] Frame 1
stop();
Symbol 22 MovieClip [enemies4] Frame 1
stop();
Symbol 23 MovieClip [enemies6] Frame 1
stop();
Symbol 40 MovieClip [bedn1] Frame 1
stop();
Symbol 41 MovieClip [bedn3] Frame 1
stop();
Symbol 42 MovieClip [bedn2] Frame 1
stop();
Symbol 43 MovieClip [enemies1] Frame 1
stop();
Instance of Symbol 87 MovieClip "inglor" in Symbol 90 MovieClip Frame 1
onClipEvent (load) {
this.inglorhead.useHandCursor = false;
}
Symbol 95 Button
on (release) {
_root.gotoAndStop((((_root._quality == "HIGH") && (!_root.autohi)) ? "disclaimer" : "playgame"));
}
Symbol 100 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 105 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 110 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 153 Button
on (release) {
this.gotoAndStop("inspage2");
}
Symbol 158 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 166 Button
on (release) {
this.gotoAndStop("inspage1");
}
Symbol 167 MovieClip Frame 64
stop();
Symbol 167 MovieClip Frame 65
stop();
Symbol 178 Button
on (release) {
_root._quality = "LOW";
_root.autohi = false;
}
Symbol 184 Button
on (release) {
_root._quality = "MEDIUM";
_root.autohi = false;
}
Symbol 189 Button
on (release) {
_root._quality = "HIGH";
_root.autohi = false;
}
Symbol 199 Button
on (release) {
_root._quality = "autohigh";
_root.autohi = true;
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 64
stop();
Instance of Symbol 202 MovieClip in Symbol 204 MovieClip Frame 64
on (release) {
_root.audioenabled = !_root.audioenabled;
_root.bgmusic.setVolume(75 * _root.audioenabled);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.audioenabled + 1);
_parent.audioentxt.text = new String(("Click to " + (_root.audioenabled ? "dis" : "en")) + "able audio:").toUpperCase();
}
onClipEvent (load) {
gotoAndStop(_root.audioenabled + 1);
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 64
stop();
var count = 0;
var today = new Date();
var txtArr = new Array("lollerskates!!1!", "lolwut!? Denvish day? ORLY!?", "ZOMG! Denvish day?", "In ad 2101, programming was beginning.\rSomebody set up us the flash.\r\rAll your SWF are belong to me.\rFor great justice, move every movieclip.", "keep the tradition alive\rdenvish day: dec 4, 2005\r\rroffles @ denvish day 2005", ((((((((((((new Array("jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sept", "oct", "nov", "dec")[today.getMonth()] + " ") + today.getDate()) + ", ") + today.getFullYear()) + "? Denvish day is ") + (((today.getMonth() == 11) && (today.getDate() == 4)) ? "today!" : "dec 4")) + newline) + "denvish day ") + (((today.getMonth() == 11) && (today.getDate() == 4)) ? "=" : "!")) + "= ") + new Array("jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sept", "oct", "nov", "dec")[today.getMonth()]) + " ") + today.getDate(), (((("the current time is:\r" + ((today.getHours() < 10) ? "0" : "")) + today.getHours()) + ":") + ((today.getMinutes() < 10) ? "0" : "")) + today.getMinutes(), "(\\_/)\r(O.o)\r(> <)\r\rORLY!?", "Pues... qu\u00E9 se puede hacer. A veces pierdes, aunque la mayoria de las veces gan\u00E1s.", "a moderator is you!", "chill out negativeone\r\rthis ban has been brought to you by the\rletters F and U, as well as the number -1.", "denvish (noun)\r\rA fictional character, invented in a Welsh college. Known to sport an absolutely MASSIVE moustache. undisputed Ruler of The World.", ("wassail children! it" + (((today.getMonth() == 11) && (today.getDate() == 4)) ? "s" : "ll soon be")) + " denvish day!");
var whichtxt = (txtArr.length - 1);
var lasttxt = whichtxt;
theChatter = setInterval(function () {
count++;
var _local2 = length(txtArr[whichtxt]);
var _local1 = Math.round(_local2 * 0.08) + 2;
if ((count - 1) < _local1) {
chatterbox.gotoAndStop(2);
chatterbox.chat.text = txtArr[whichtxt].toUpperCase();
} else if ((count - 1) == _local1) {
chatterbox.gotoAndStop(1);
} else {
count = 0;
while (whichtxt == lasttxt) {
whichtxt = Math.floor(Math.random() * txtArr.length);
}
lasttxt = whichtxt;
}
updateAfterEvent();
}, 800);
Instance of Symbol 16 MovieClip in Symbol 216 MovieClip Frame 64
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
_parent.biotxt = "Programming by: Authorblues\remail = authorblues@gmail.com\rage: 17\rlocation: USA";
_parent.bio.text = new String(_parent.biotxt).toUpperCase();
}
on (rollOut) {
_parent.bio.text = new String();
}
on (release) {
getURL ("mailto:authorblues@gmail.com", "_blank");
}
Instance of Symbol 12 MovieClip in Symbol 216 MovieClip Frame 64
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
_parent.biotxt = "artwork and background music by: darkfire_blaze\remail = dfblaze@gmail.com\rage: 14\rlocation: Guatemala";
_parent.bio.text = new String(_parent.biotxt).toUpperCase();
}
on (rollOut) {
_parent.bio.text = new String();
}
on (release) {
getURL ("mailto:dfblaze@gmail.com", "_blank");
}
Instance of Symbol 10 MovieClip in Symbol 216 MovieClip Frame 64
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
_parent.biotxt = "Voice acting by: -dathug-\remail = da1lilthug@hotmail.com\rage: 17\rlocation: Canada";
_parent.bio.text = new String(_parent.biotxt).toUpperCase();
}
on (rollOut) {
_parent.bio.text = new String();
}
on (release) {
getURL ("mailto:da1lilthug@hotmail.com", "_blank");
}
Instance of Symbol 14 MovieClip in Symbol 216 MovieClip Frame 64
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOver) {
_parent.biotxt = ((("BBS Moderation by: denvish\remail = denvish@newgrounds.com\rage: " + (30 + Math.floor(Math.random() * 6))) + " ??") + newline) + "location: t3h BBS";
_parent.bio.text = new String(_parent.biotxt).toUpperCase();
bioDenv = setInterval(function () {
_parent.biotxt = ((("BBS Moderation by: denvish\remail = denvish@newgrounds.com\rage: " + (30 + Math.floor(Math.random() * 6))) + " ??") + newline) + "location: t3h BBS";
_parent.bio.text = new String(_parent.biotxt).toUpperCase();
}, 200);
}
on (rollOut) {
clearInterval(bioDenv);
_parent.bio.text = new String();
}
on (release) {
getURL ("mailto:denvish@newgrounds.com", "_blank");
}
Symbol 220 Button
on (release) {
_root.gotoAndStop("playgame");
}
Symbol 221 Button
on (release) {
_root._quality = "LOW";
}
Symbol 222 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 223 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 224 MovieClip Frame 40
stop();
Instance of Symbol 59 MovieClip in Symbol 224 MovieClip Frame 40
onClipEvent (load) {
_parent.systemtxt = (((((((("__________ Your system __________\r\r" + System.capabilities.manufacturer) + " (Flash ") + System.capabilities.version.split(",").join(".").split(" ")[1]) + ")") + newline) + System.capabilities.os) + " ") + System.capabilities.playerType) + " Flash Player";
_parent.yoursystem.text = _parent.systemtxt.toUpperCase();
}
Symbol 231 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 21
_root.inglorState = 3;
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 306 Button
on (release) {
if (!_root.hstable._visible) {
_root._quality = _root.prevQual;
_root.gotoAndStop("mainmenu");
}
}
Symbol 307 MovieClip Frame 7
stop();