Frame 1
function launchURL() {
getURL ("http://www.girlshavecooties.com", "_blank");
}
function launchURL2() {
getURL ("http://www.armorgames.com", "_blank");
}
function quit() {
_global.quitGame();
}
function restartLevel() {
}
_quality = "LOW";
soundMusic = new Sound(mcAll);
_global.quitGame = function () {
soundMusic.stop();
Mouse.show();
_root.mcAll.removeMovieClip();
_root.gotoAndPlay("menu");
_root.msg.removeMovieClip();
stopDrag();
_root.cursor_mc.removeMovieClip();
};
newMenu = new ContextMenu();
newMenu.builtInItems.rewind = false;
newMenu.builtInItems.forward_back = false;
newMenu.builtInItems.zoom = false;
newMenu.builtInItems.play = false;
newMenu.builtInItems.loop = false;
newMenu.builtInItems.quality = false;
itemQuit = new ContextMenuItem("Quit to Main Menu", quit);
itemURL = new ContextMenuItem("http://www.girlshavecooties.com", launchURL);
itemURL2 = new ContextMenuItem("Play More Games", launchURL2);
newMenu.customItems.push(itemQuit);
newMenu.customItems.push(itemURL);
newMenu.customItems.push(itemURL2);
itemRestart.enabled = false;
itemQuit.enabled = false;
_root.menu = newMenu;
Instance of Symbol 70 MovieClip in Frame 1
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "_blank");
}
Instance of Symbol 70 MovieClip in Frame 5
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "_blank");
}
Instance of Symbol 70 MovieClip in Frame 12
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "_blank");
}
Frame 17
stop();
Frame 42
function disableMenu() {
butt1.enabled = false;
butt2.enabled = false;
butt3.enabled = false;
butt4.enabled = false;
butt5.enabled = false;
butt6.enabled = false;
butt7.enabled = false;
butt8.enabled = false;
butt9.enabled = false;
butt10.enabled = false;
}
function enableMenu() {
butt1.enabled = true;
butt2.enabled = true;
butt3.enabled = true;
butt4.enabled = true;
butt5.enabled = true;
butt6.enabled = true;
butt7.enabled = true;
butt8.enabled = true;
butt9.enabled = true;
butt10.enabled = true;
}
itemQuit.enabled = false;
soundMusic.attachSound("music_menu");
soundMusic.setVolume(100);
soundMusic.start(0, 5000);
Instance of Symbol 694 MovieClip "mcAch" in Frame 43
onClipEvent (load) {
this._visible = false;
}
Frame 48
stop();
Frame 50
function frameLimiter() {
newT = getTimer();
while (Math.abs(newT - oldT) < maxF) {
newT = getTimer();
}
currFPS = Math.round(1000 / (newT - oldT));
pastFPS.shift();
pastFPS.push(currFPS);
_root.textFPS.text = currFPS + " fps";
var _local3 = 0;
var _local2 = 0;
while (_local2 < 10) {
_local3 = _local3 + pastFPS[_local2];
_local2++;
}
_local3 = Math.round(_local3 / 10);
if ((counter % 10) == 0) {
_root.textFPSavg.text = _local3 + " fps";
}
oldT = getTimer();
}
stop();
oldT = getTimer();
newT = getTimer();
maxF = 25;
var pastFPS = new Array(45, 45, 45, 45, 45, 45, 45, 45, 45, 45);
Frame 53
function enemySpawn() {
if (enemies < enemyCap) {
enemies++;
enemyCount++;
if (enemyCount > 64) {
enemyCount = 1;
}
temp = "e" + (random(enemyTypes) + 1);
mcAll.attachMovie(temp, "enemy_" + enemyCount, enemyDepth + enemyCount);
}
}
function spawnBulletE(xBase, yBase) {
bulletECount++;
if (bulletECount > bulletEMax) {
bulletECount = 1;
}
mcAll.attachMovie("bulletE", "bulletE1_" + bulletECount, _root.bulletEDepth + bulletECount, {_x:xBase, _y:yBase});
}
function shootE_1(enemyObj) {
var _local2 = enemyObj._x;
var _local1 = enemyObj._y;
if (enemyObj.dir == "up") {
_local2 = _local2 + 0;
_local1 = _local1 + -46;
} else if (enemyObj.dir == "left") {
_local2 = _local2 + -14;
_local1 = _local1 + -9;
} else if (enemyObj.dir == "right") {
_local2 = _local2 + 14;
_local1 = _local1 + -9;
} else {
_local2 = _local2 + 0;
_local1 = _local1 + 0;
}
spawnBulletE(_local2, _local1);
}
function spawnPickup(obj) {
pickupNum++;
if (pickupNum > pickupMax) {
pickupNum = 1;
}
if (obj._x < 86) {
obj._x = 86;
} else if (obj._x > 714) {
obj._x = 714;
}
if (obj._y < 86) {
obj._y = 86;
} else if (obj._y > 554) {
obj._y = 554;
}
var _local2 = random(2) + 1;
if ((mcAll.p1.gunLevelUpTime < gunLevelUpTimeWait) || (mcAll.p1.gunLevel >= mcAll.p1.gunMax)) {
if (random(3) < 1) {
_local2 = 1;
mcAll.attachMovie("pickup" + _local2, "pickup_" + pickupNum, pickupDepth + pickupNum, {_x:obj._x, _y:obj._y});
}
} else {
mcAll.attachMovie("pickup" + _local2, "pickup_" + pickupNum, pickupDepth + pickupNum, {_x:obj._x, _y:obj._y});
}
}
function spawnComboPopup(obj) {
comboCount++;
popups++;
if (popups > popupMax) {
popups = 1;
}
mcAll.attachMovie("popup_combo", "popup_combo_" + popups, popupDepth2 + popups, {_x:obj._x, _y:obj._y - 48});
mcAll["popup_combo_" + popups].mcText.textCombo.text = "x " + comboCount;
comboBonus = comboBonus + (enemyScore * comboMult);
}
function gameover() {
bGameover = true;
_global.paused = true;
this.attachMovie("msg_gameover", "msg", msgDepth, {_x:Stage.width / 2, _y:Stage.height / 2});
mcHP._xscale = 0;
mcMusicMute.enabled = false;
mcSfxMute.enabled = false;
mcEggMute.enabled = false;
stopDrag();
_root.cursor_mc.removeMovieClip();
Mouse.show();
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_gameover");
_root.soundSFX.setVolume(90);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
}
stop();
counter = 0;
_global.paused = false;
temp = null;
keyPause = 13;
keyPause2 = 80;
pausePressed = false;
bGameover = false;
enemies = 0;
enemyCount = 0;
enemyTypes = 5;
bulletECount = 0;
bulletEFreq = 128;
pickupNum = 0;
pickupMax = 4;
startTime = getTimer();
timer = 0;
pauseTime = 0;
pauseStart = 0;
popups = 0;
popupMax = 20;
shootWait = 40;
_global.score = 0;
enemyScore = 10;
comboGap = 5;
lastKill = comboGap;
comboCount = 0;
comboMult = 1;
comboBonus = 0;
comboCountTemp = 0;
comboBonusTemp = 0;
sfxON = true;
musicON = true;
eggON = true;
soundSFX = new Sound(mcEggs);
soundSFX.setVolume(80);
lastShotSound = 4;
lastZombieSound = 15;
lastHitESound = 0;
mcMusicMute.enabled = true;
mcSfxMute.enabled = true;
mcEggMute.enabled = true;
savefile = SharedObject.getLocal("saveData");
if (diff == 1) {
_global.hiscore = savefile.data.hiscore_1;
} else if (diff == 2) {
_global.hiscore = savefile.data.hiscore_2;
} else if (diff == 3) {
_global.hiscore = savefile.data.hiscore_3;
}
if ((_global.hiscore == null) || (_global.hiscore == undefined)) {
_global.hiscore = 0;
}
maxCombo = savefile.data.maxcombo;
if ((maxCombo == null) || (maxCombo == undefined)) {
maxCombo = 1;
}
if ((diff == undefined) || (diff == 2)) {
diff = 2;
levelDur = 390;
gunLevel = 1;
pickupChance = 20;
enemyMax = 22;
enemyCap = 6;
gunLevelUpTimeWait = 300;
bulletEMax = 8;
skullQuota = 30;
} else if (diff == 1) {
levelDur = 600;
gunLevel = 2;
pickupChance = 30;
enemyMax = 18;
enemyCap = 4;
gunLevelUpTimeWait = 200;
bulletEMax = 6;
skullQuota = 20;
} else if (diff == 3) {
levelDur = 270;
gunLevel = 1;
pickupChance = 15;
enemyMax = 26;
enemyCap = 6;
gunLevelUpTimeWait = 400;
bulletEMax = 10;
skullQuota = 40;
}
nextLevel = levelDur;
itemQuit.enabled = true;
p1Depth = 12345;
bulletDepth = 1234;
bulletEDepth = 1334;
borderDepth = 123456 /* 0x01E240 */;
enemyDepth = 13000;
pickupDepth = 13100;
bombDepth = 13200;
skullDepth = 15000;
msgDepth = 12300;
popupDepth = 22345;
popupDepth2 = 22400;
cursorDepth = 12400;
Mouse.hide();
_root.attachMovie("cursor", "cursor_mc", cursorDepth);
startDrag (cursor_mc, true);
eUpPressed = false;
eDownPressed = false;
soundMusic.stop();
soundMusic.attachSound("music1");
soundMusic.setVolume(80);
soundMusic.start(0, 5000);
var grid = new Array(new Array(8), new Array(8), new Array(8), new Array(8), new Array(8), new Array(8), new Array(8), new Array(8));
var i = 0;
while (i < 8) {
var k = 0;
while (k < 8) {
grid[i][k] = new Array();
k++;
}
i++;
}
this.onEnterFrame = function () {
if (Key.isDown(keyPause) || (Key.isDown(keyPause2))) {
if (!bGameover) {
if (!pausePressed) {
pausePressed = true;
_global.paused = !_global.paused;
if (_global.paused) {
this.attachMovie("msg_paused", "msg", msgDepth, {_x:Stage.width / 2, _y:Stage.height / 2});
pauseStart = getTimer();
} else {
pauseTime = pauseTime + (getTimer() - pauseStart);
msg.removeMovieClip();
}
}
}
} else if ((!Key.isDown(keyPause)) && (!Key.isDown(keyPause2))) {
pausePressed = false;
}
lastShotSound++;
lastZombieSound++;
lastHitESound++;
if (!_global.paused) {
counter++;
nextLevel--;
lastKill++;
if (lastKill > comboGap) {
if (comboCount > 12) {
comboCountTemp = comboCount;
comboBonusTemp = comboBonus;
mcAll.attachMovie("popup_bonus2", "popup_bonus", popupDepth2 + 100, {_x:400, _y:320});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_combo_bonus2");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
} else if (comboCount > 5) {
comboCountTemp = comboCount;
comboBonusTemp = comboBonus;
mcAll.attachMovie("popup_bonus", "popup_bonus", popupDepth2 + 100, {_x:400, _y:320});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_combo_bonus");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
} else {
_global.score = _global.score + comboBonus;
}
if (comboCount > maxCombo) {
maxCombo = comboCount;
}
comboCount = 0;
comboBonus = 0;
comboMult = 1;
} else {
comboMult = comboCount * 2;
}
if (nextLevel < 0) {
nextLevel = levelDur;
if (enemyCap < enemyMax) {
enemyCap++;
}
}
if ((counter % 4) == 2) {
enemySpawn();
}
bulletEFreq = bulletEFreq * 0.99993;
if (bulletEFreq < 70) {
bulletEFreq = 70;
}
if (_global.score > _global.hiscore) {
_global.hiscore = _global.score;
savefile = SharedObject.getLocal("saveData");
if (diff == 1) {
savefile.data.hiscore_1 = _global.hiscore;
} else if (diff == 2) {
savefile.data.hiscore_2 = _global.hiscore;
} else if (diff == 3) {
savefile.data.hiscore_3 = _global.hiscore;
}
if ((counter % 300) == 0) {
savefile.flush();
}
}
if (mcAll.p1.hp >= 0) {
mcHP._xscale = mcAll.p1.hp;
} else {
mcHP._xscale = 0;
}
if (mcAll.p1.hp <= 15) {
mcHP.gotoAndStop("low");
} else {
mcHP.gotoAndStop("ok");
}
mcBombs.gotoAndStop(mcAll.p1.bombs + 1);
mcEggs.gotoAndStop(mcAll.p1.gunLevel);
mcShootMode.gotoAndStop(mcAll.p1.shootMode);
if (mcAll.p1.skullQuota >= skullQuota) {
mcSkull.gotoAndStop("on");
if (!mcAll.p1.bSkull) {
mcAll.p1.bSkull = true;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_skull_available");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
}
} else {
mcAll.p1.bSkull = false;
mcSkull.gotoAndStop("off");
mcSkull.mc.textQuota.text = skullQuota - mcAll.p1.skullQuota;
}
timer = Math.floor(((getTimer() - pauseTime) - startTime) / 1000);
textTimer.text = timer;
textScore.text = _global.score;
textHiScore.text = _global.hiscore;
if (musicON) {
mcMusicMute.gotoAndStop(1);
} else {
mcMusicMute.gotoAndStop(2);
}
if (sfxON) {
mcSfxMute.gotoAndStop(1);
} else {
mcSfxMute.gotoAndStop(2);
}
if (Key.isDown(17) && (Key.isDown(50))) {
if (!eUpPressed) {
eUpPressed = true;
enemyCap++;
if (enemyCap > enemyMax) {
enemyCap = enemyMax;
}
}
} else {
eUpPressed = false;
}
if (Key.isDown(17) && (Key.isDown(49))) {
if (!eDownPressed) {
eDownPressed = true;
enemyCap--;
if (enemyCap < 4) {
enemyCap = 4;
}
}
} else {
eDownPressed = false;
}
}
frameLimiter();
textDebug2.text = _root.mcAll.bloodBitmap.getPixel(_root._xmouse - 80, _root._ymouse - 80).toString(16);
textDebug3.text = "\u00A92006 Andr\u00E9 Nguyen";
};
Instance of Symbol 853 MovieClip "mcMusicMute" in Frame 53
on (release) {
_root.musicON = !_root.musicON;
if (_root.musicON) {
this.gotoAndStop(1);
_root.soundMusic.start(0, 5000);
} else {
this.gotoAndStop(2);
_root.soundMusic.stop();
}
}
Instance of Symbol 857 MovieClip "mcSfxMute" in Frame 53
on (release) {
_root.sfxON = !_root.sfxON;
if (_root.sfxON) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 859 MovieClip "mcEggMute" in Frame 53
on (release) {
_root.eggON = !_root.eggON;
if (_root.eggON) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 22 Button
on (release) {
_root.play();
}
Symbol 23 MovieClip Frame 1
percent = 0;
_root.mcBar._xscale = 0;
_root.stop();
Symbol 23 MovieClip Frame 3
percent = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
mcBar._xscale = percent;
textPercent.text = percent;
if (percent >= 100) {
gotoAndStop ("done");
} else {
gotoAndPlay (2);
}
Symbol 884 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 83 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 90 MovieClip Frame 251
stop();
_root.play();
Symbol 122 MovieClip [bullet] Frame 1
xVel = 0;
yVel = 0;
speed = 16;
phase = "normal";
dir = _parent.p1.bulletDir;
switch (dir) {
case "up" :
xVel = 0;
yVel = -speed;
this.mcHit._rotation = 90;
break;
case "left" :
xVel = -speed;
yVel = 0;
this._xscale = -this._xscale;
break;
case "right" :
xVel = speed;
yVel = 0;
break;
case "down" :
xVel = 0;
yVel = speed;
this.mcHit._rotation = -90;
break;
case "ul" :
xVel = (-speed) * 0.7;
yVel = (-speed) * 0.7;
this.mcHit._rotation = 135;
break;
case "ur" :
xVel = speed * 0.7;
yVel = (-speed) * 0.7;
this.mcHit._rotation = 45;
break;
case "dl" :
xVel = (-speed) * 0.7;
yVel = speed * 0.7;
this.mcHit._rotation = -135;
break;
case "dr" :
xVel = speed * 0.7;
yVel = speed * 0.7;
this.mcHit._rotation = -45;
break;
case "ul2" :
xVel = (-speed) * 0.3;
yVel = (-speed) * 0.9;
this.mcHit._rotation = 110;
break;
case "ur2" :
xVel = speed * 0.3;
yVel = (-speed) * 0.9;
this.mcHit._rotation = 70;
break;
case "dl2" :
xVel = (-speed) * 0.3;
yVel = speed * 0.9;
this.mcHit._rotation = -120;
break;
case "dr2" :
xVel = speed * 0.3;
yVel = speed * 0.9;
this.mcHit._rotation = -70;
break;
case "ul2b" :
xVel = (-speed) * 0.9;
yVel = (-speed) * 0.3;
this.mcHit._rotation = 110;
break;
case "ur2b" :
xVel = speed * 0.9;
yVel = (-speed) * 0.3;
this.mcHit._rotation = 70;
break;
case "dl2b" :
xVel = (-speed) * 0.9;
yVel = speed * 0.3;
this.mcHit._rotation = -120;
break;
case "dr2b" :
xVel = speed * 0.9;
yVel = speed * 0.3;
this.mcHit._rotation = -70;
}
currGridX = -5;
currGridY = -5;
oldGridX = -5;
oldGridY = -5;
this.onEnterFrame = function () {
if (!_global.paused) {
switch (phase) {
case "normal" :
this._x = this._x + xVel;
this._y = this._y + yVel;
oldGridX = currGridX;
oldGridY = currGridY;
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 88) / 62);
if ((currGridX != oldGridX) || (currGridY != oldGridY)) {
temp = _root.grid[oldGridX][oldGridY];
var _local4 = 0;
while (_local4 < temp.length) {
if (temp[_local4] == this._name) {
temp.splice(_local4, 1);
}
_local4++;
}
temp = _root.grid[currGridX][currGridY];
temp.push(this._name);
}
if ((((currGridX < 0) || (currGridX > 7)) || (currGridY < 0)) || (currGridY > 7)) {
temp = _root.grid[oldGridX][oldGridY];
var _local4 = 0;
while (_local4 < temp.length) {
if (temp[_local4] == this._name) {
temp.splice(_local4, 1);
}
_local4++;
}
this.removeMovieClip();
}
break;
case "dead" :
temp = _root.grid[oldGridX][oldGridY];
var _local4 = 0;
while (_local4 < temp.length) {
if (temp[_local4] == this._name) {
temp.splice(_local4, 1);
}
_local4++;
}
this.removeMovieClip();
}
}
};
Symbol 140 MovieClip Frame 5
stop();
Symbol 148 MovieClip Frame 5
stop();
Symbol 157 MovieClip Frame 6
stop();
Symbol 169 MovieClip Frame 21
stop();
Symbol 181 MovieClip Frame 21
stop();
Symbol 193 MovieClip Frame 21
stop();
Symbol 205 MovieClip Frame 21
stop();
Symbol 217 MovieClip Frame 21
stop();
Symbol 229 MovieClip Frame 21
stop();
Symbol 241 MovieClip Frame 21
stop();
Symbol 253 MovieClip Frame 21
stop();
Symbol 265 MovieClip Frame 21
stop();
Symbol 266 MovieClip [e1] Frame 1
function enemyMove() {
if (_parent.skull_mc == undefined) {
destX = (_parent.p1._x - 35) + random(70);
destY = (_parent.p1._y - 40) + random(80);
} else {
destX = (_parent.skull_mc._x - 35) + random(70);
destY = (_parent.skull_mc._y - 40) + random(80);
}
}
function enemyWalk() {
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
this.gotoAndStop("up");
xVel = 0;
yVel = -speed;
} else {
dir = "down";
this.gotoAndStop("down");
xVel = 0;
yVel = speed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
this.gotoAndStop("walk");
this._xscale = -Math.abs(this._xscale);
xVel = -speed;
yVel = 0;
} else {
dir = "right";
this.gotoAndStop("walk");
this._xscale = Math.abs(this._xscale);
xVel = speed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
}
function dieSuper(x1, y1) {
this.phase = "die_super";
this.phaseCount = 22;
this._xscale = 100;
this._x = (this._x - 50) + random(100);
this._y = (this._y - 50) + random(100);
tempX = this._x - x1;
tempY = this._y - y1;
if (Math.abs(tempY) > (tempX * 2)) {
if (tempY > 0) {
this.gotoAndStop("dieSuper5");
} else {
this.gotoAndStop("dieSuper1");
}
} else if (tempX > 0) {
if (tempX > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper3");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper4");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper2");
}
} else if (Math.abs(tempX) > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper7");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper6");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper8");
}
}
function dieSuperEnd() {
if (phaseCount <= 0) {
_global.drawSprite(this, this._x, this._y, this._xscale);
_root.enemies--;
this.removeMovieClip();
}
}
function die() {
if (dir == "up") {
this.gotoAndStop("dieU");
} else if (dir == "left") {
this.gotoAndStop("dieL");
this._xscale = Math.abs(this._xscale);
} else if (dir == "right") {
this.gotoAndStop("dieR");
} else {
this.gotoAndStop("dieD");
}
this.phase = "dead";
phaseCount = 6;
_global.score = _global.score + _root.enemyScore;
if (_root.sfxON && (_root.lastHitESound > 1)) {
_root.lastHitESound = 0;
_root.soundSFX.attachSound("sfx_hitE");
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
if (_root.lastKill <= _root.comboGap) {
_root.spawnComboPopup(this);
}
_root.lastKill = 0;
_parent.p1.skullQuota++;
}
temp = random(4);
if (temp == 0) {
this._x = 0;
this._y = random(640);
} else if (temp == 1) {
this._x = 800;
this._y = random(640);
} else if (temp == 2) {
this._x = random(800);
this._y = 0;
} else {
this._x = random(800);
this._y = 640;
}
destX = this._x;
destY = this._y;
lag = 10;
phaseCount = 9;
shootDir = "down";
phase = "normal";
speed = 3;
phaseDur = 30;
dir = "down";
currGridX = 1;
currGridY = 1;
lifeCount = 0;
this.onEnterFrame = function () {
if (!_global.paused) {
this.mc.play();
phaseCount--;
lifeCount++;
switch (phase) {
case "normal" :
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
enemyWalk();
this._x = this._x + xVel;
this._y = this._y + yVel;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
break;
}
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 104) / 62);
if (this._name == "mcE1") {
this._alpha = 40;
}
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
die();
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
}
if ((lifeCount % Math.ceil(_root.bulletEFreq)) == 0) {
_root.shootE_1(this);
}
break;
case "dead" :
if (phaseCount <= 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_global.groupedBlood("bullet", this._x, this._y);
_global.drawSprite(this, this._x, this._y, this._xscale);
_global.groupedBlood("single", this._x, this._y);
_root.enemies--;
this.removeMovieClip();
}
break;
case "die_super" :
dieSuperEnd();
}
} else {
this.mc.stop();
}
};
Symbol 266 MovieClip [e1] Frame 2
stop();
Symbol 281 MovieClip Frame 20
_parent.gotoAndStop("bomb");
Symbol 302 MovieClip [e2] Frame 1
function enemyMove() {
if (_parent.skull_mc == undefined) {
destX = (_parent.p1._x - 35) + random(70);
destY = (_parent.p1._y - 40) + random(80);
} else {
destX = (_parent.skull_mc._x - 35) + random(70);
destY = (_parent.skull_mc._y - 40) + random(80);
}
}
function enemyWalk() {
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
this.gotoAndStop("up");
xVel = 0;
yVel = -speed;
} else {
dir = "down";
this.gotoAndStop("down");
xVel = 0;
yVel = speed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
this.gotoAndStop("walk");
this._xscale = -Math.abs(this._xscale);
xVel = -speed;
yVel = 0;
} else {
dir = "right";
this.gotoAndStop("walk");
this._xscale = Math.abs(this._xscale);
xVel = speed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
}
function dieSuper(x1, y1) {
this.phase = "die_super";
this.phaseCount = 22;
this._xscale = 100;
this._x = (this._x - 50) + random(100);
this._y = (this._y - 50) + random(100);
tempX = this._x - x1;
tempY = this._y - y1;
if (Math.abs(tempY) > (tempX * 2)) {
if (tempY > 0) {
this.gotoAndStop("dieSuper5");
} else {
this.gotoAndStop("dieSuper1");
}
} else if (tempX > 0) {
if (tempX > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper3");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper4");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper2");
}
} else if (Math.abs(tempX) > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper7");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper6");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper8");
}
}
function dieSuperEnd() {
if (phaseCount <= 0) {
_global.drawSprite(this, this._x, this._y, this._xscale);
_root.enemies--;
this.removeMovieClip();
}
}
function die() {
this.phase = "bomb";
this.gotoAndStop("bomb0");
phaseCount = 48;
_global.score = _global.score + _root.enemyScore;
if (_root.sfxON && (_root.lastHitESound > 1)) {
_root.lastHitESound = 0;
_root.soundSFX.attachSound("sfx_hitE");
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
if (_root.lastKill <= _root.comboGap) {
_root.spawnComboPopup(this);
}
_root.lastKill = 0;
_parent.p1.skullQuota++;
}
temp = random(4);
if (temp == 0) {
this._x = 0;
this._y = random(640);
} else if (temp == 1) {
this._x = 800;
this._y = random(640);
} else if (temp == 2) {
this._x = random(800);
this._y = 0;
} else {
this._x = random(800);
this._y = 640;
}
destX = this._x;
destY = this._y;
lag = 10;
phaseCount = 9;
shootDir = "down";
phase = "normal";
speed = 4;
phaseDur = 30;
dir = "down";
currGridX = 1;
currGridY = 1;
this.onEnterFrame = function () {
if (!_global.paused) {
this.mc.play();
phaseCount--;
switch (phase) {
case "normal" :
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
enemyWalk();
this._x = this._x + xVel;
this._y = this._y + yVel;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
break;
}
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if (this.mcHit.hitTest(_parent.p1.mcHit)) {
if (_parent.p1.hitTime <= 0) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
this.phase = "bomb";
this.gotoAndStop("bomb0");
phaseCount = 48;
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 104) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
die();
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
}
break;
case "bomb" :
if (phaseCount == 0) {
this.gotoAndStop("explode");
this.phase = "explode";
phaseCount = 41;
}
if (phaseCount == 10) {
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_pumpkin");
_root.soundSFX.setVolume(70);
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
}
break;
case "explode" :
if ((phaseCount > 10) && (phaseCount < 12)) {
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
this.phase = "dead";
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + ((-_parent.p1.eBP) * 2);
}
} else if (phaseCount == 1) {
this.phase = "dead";
}
break;
case "dead" :
if (phaseCount == 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_global.drawSprite(this, this._x, this._y, this._xscale);
_root.enemies--;
this.removeMovieClip();
}
break;
case "die_super" :
dieSuperEnd();
}
} else {
this.mc.stop();
}
};
Symbol 302 MovieClip [e2] Frame 2
stop();
Symbol 312 MovieClip [e3] Frame 1
function enemyMove() {
if (_parent.skull_mc == undefined) {
destX = (_parent.p1._x - 35) + random(70);
destY = (_parent.p1._y - 40) + random(80);
} else {
destX = (_parent.skull_mc._x - 35) + random(70);
destY = (_parent.skull_mc._y - 40) + random(80);
}
}
function enemyWalk() {
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
this.gotoAndStop("up");
xVel = 0;
yVel = -speed;
} else {
dir = "down";
this.gotoAndStop("down");
xVel = 0;
yVel = speed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
this.gotoAndStop("walk");
this._xscale = -Math.abs(this._xscale);
xVel = -speed;
yVel = 0;
} else {
dir = "right";
this.gotoAndStop("walk");
this._xscale = Math.abs(this._xscale);
xVel = speed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
}
function dieSuper(x1, y1) {
this.phase = "die_super";
this.phaseCount = 22;
this._xscale = 100;
this._x = (this._x - 50) + random(100);
this._y = (this._y - 50) + random(100);
tempX = this._x - x1;
tempY = this._y - y1;
if (Math.abs(tempY) > (tempX * 2)) {
if (tempY > 0) {
this.gotoAndStop("dieSuper5");
} else {
this.gotoAndStop("dieSuper1");
}
} else if (tempX > 0) {
if (tempX > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper3");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper4");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper2");
}
} else if (Math.abs(tempX) > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper7");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper6");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper8");
}
}
function dieSuperEnd() {
if (phaseCount <= 0) {
_global.drawSprite(this, this._x, this._y, this._xscale);
_root.enemies--;
this.removeMovieClip();
}
}
function die() {
this.phase = "dead";
phaseCount = 35;
_global.score = _global.score + _root.enemyScore;
if (_root.sfxON && (_root.lastHitESound > 1)) {
_root.lastHitESound = 0;
_root.soundSFX.attachSound("sfx_hitE");
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
if (_root.lastKill <= _root.comboGap) {
_root.spawnComboPopup(this);
}
_root.lastKill = 0;
_parent.p1.skullQuota++;
}
temp = random(4);
if (temp == 0) {
this._x = 0;
this._y = random(640);
} else if (temp == 1) {
this._x = 800;
this._y = random(640);
} else if (temp == 2) {
this._x = random(800);
this._y = 0;
} else {
this._x = random(800);
this._y = 640;
}
destX = this._x;
destY = this._y;
lag = 10;
phaseCount = 9;
shootDir = "down";
phase = "normal";
speed = 2;
phaseDur = 30;
dir = "down";
currGridX = 1;
currGridY = 1;
ghostTime = 0;
ghostFade = 80;
ghostFull = 35;
ghostAlpha = 25;
this.onEnterFrame = function () {
if (!_global.paused) {
this.mc.play();
phaseCount--;
switch (phase) {
case "normal" :
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
enemyWalk();
this._x = this._x + xVel;
this._y = this._y + yVel;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
break;
}
if (this._alpha >= 100) {
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 104) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
die();
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
}
}
ghostTime--;
if (ghostTime <= 0) {
ghostTime = ghostFull + ghostFade;
} else if (ghostTime <= ghostFull) {
if (this._alpha < 100) {
this._alpha = this._alpha + 9;
if (this._alpha > 100) {
this._alpha = 100;
}
}
} else if (ghostTime > ghostFull) {
if (this._alpha > ghostAlpha) {
this._alpha = this._alpha + -9;
if (this._alpha < ghostAlpha) {
this._alpha = ghostAlpha;
}
}
}
break;
case "dead" :
this._alpha = this._alpha * 0.75;
if (phaseCount == 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_root.enemies--;
this.removeMovieClip();
}
break;
case "die_super" :
dieSuperEnd();
}
} else {
this.mc.stop();
}
};
Symbol 312 MovieClip [e3] Frame 2
stop();
Symbol 328 MovieClip Frame 6
stop();
Symbol 337 MovieClip Frame 6
stop();
Symbol 344 MovieClip Frame 6
stop();
Symbol 359 MovieClip [e4] Frame 1
function enemyMove() {
if (_parent.skull_mc == undefined) {
destX = (_parent.p1._x - 35) + random(70);
destY = (_parent.p1._y - 40) + random(80);
} else {
destX = (_parent.skull_mc._x - 35) + random(70);
destY = (_parent.skull_mc._y - 40) + random(80);
}
}
function enemyWalk() {
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
this.gotoAndStop("up");
xVel = 0;
yVel = -speed;
} else {
dir = "down";
this.gotoAndStop("down");
xVel = 0;
yVel = speed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
this.gotoAndStop("walk");
this._xscale = -Math.abs(this._xscale);
xVel = -speed;
yVel = 0;
} else {
dir = "right";
this.gotoAndStop("walk");
this._xscale = Math.abs(this._xscale);
xVel = speed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
}
function dieSuper(x1, y1) {
this.phase = "die_super";
this.phaseCount = 22;
this._xscale = 100;
this._x = (this._x - 50) + random(100);
this._y = (this._y - 50) + random(100);
tempX = this._x - x1;
tempY = this._y - y1;
if (Math.abs(tempY) > (tempX * 2)) {
if (tempY > 0) {
this.gotoAndStop("dieSuper5");
} else {
this.gotoAndStop("dieSuper1");
}
} else if (tempX > 0) {
if (tempX > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper3");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper4");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper2");
}
} else if (Math.abs(tempX) > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper7");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper6");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper8");
}
}
function dieSuperEnd() {
if (phaseCount <= 0) {
_global.drawSprite(this, this._x, this._y, this._xscale);
_root.enemies--;
this.removeMovieClip();
}
}
function die() {
hp--;
if (hp == 0) {
if (dir == "up") {
this.gotoAndStop("dieU");
} else if (dir == "left") {
this.gotoAndStop("dieL");
this._xscale = Math.abs(this._xscale);
} else if (dir == "right") {
this.gotoAndStop("dieR");
} else {
this.gotoAndStop("dieD");
}
this.phase = "dead";
phaseCount = 6;
_global.score = _global.score + _root.enemyScore;
if (_root.lastKill <= _root.comboGap) {
_root.spawnComboPopup(this);
}
_root.lastKill = 0;
} else {
hitTime = hitLength;
}
if (_root.sfxON && (_root.lastHitESound > 1)) {
_root.lastHitESound = 0;
_root.soundSFX.attachSound("sfx_hitE");
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
_parent.p1.skullQuota++;
}
this._x = random(700) + 130;
this._y = random(560) + 130;
destX = this._x;
destY = this._y;
lag = 10;
phaseCount = 64;
shootDir = "down";
phase = "spawn";
speed = 2;
phaseDur = 30;
dir = "down";
this.gotoAndStop("spawn");
currGridX = 1;
currGridY = 1;
hp = 2;
hitTime = 0;
hitLength = 30;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_z_spawn");
_root.soundSFX.setVolume(90);
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
this.onEnterFrame = function () {
if (!_global.paused) {
this.mc.play();
phaseCount--;
switch (phase) {
case "spawn" :
if (phaseCount <= 0) {
this.phase = "normal";
if (_root.sfxON && (_root.lastZombieSound > 15)) {
_root.lastZombieSound = 0;
if (random(100) < 92) {
temp = random(4) + 1;
_root.soundSFX.attachSound("sfx_z_" + temp);
_root.soundSFX.setVolume(90);
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
} else {
_root.soundSFX.attachSound("sfx_z_brains");
_root.soundSFX.setVolume(90);
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
}
}
break;
case "normal" :
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
enemyWalk();
this._x = this._x + xVel;
this._y = this._y + yVel;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
break;
}
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 104) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
die();
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
if (hitTime > 0) {
hitTime--;
if ((hitTime % 6) > 2) {
colorT.redOffset = 70;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
trans.colorTransform = colorT;
}
}
}
break;
case "dead" :
if (phaseCount <= 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_global.groupedBlood("bullet", this._x, this._y);
_global.drawSprite(this, this._x, this._y, this._xscale);
_global.groupedBlood("single", this._x, this._y);
_root.enemies--;
this.removeMovieClip();
}
break;
case "die_super" :
dieSuperEnd();
}
} else {
this.mc.stop();
}
};
Symbol 359 MovieClip [e4] Frame 2
stop();
Symbol 385 MovieClip Frame 7
stop();
Symbol 386 MovieClip [e5] Frame 1
function enemyMove() {
if (_parent.skull_mc == undefined) {
destX = (_parent.p1._x - 35) + random(70);
destY = (_parent.p1._y - 40) + random(80);
} else {
destX = (_parent.skull_mc._x - 35) + random(70);
destY = (_parent.skull_mc._y - 40) + random(80);
}
}
function enemyWalk() {
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
this.gotoAndStop("up");
xVel = 0;
yVel = -speed;
} else {
dir = "down";
this.gotoAndStop("down");
xVel = 0;
yVel = speed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
this.gotoAndStop("walk");
this._xscale = -Math.abs(this._xscale);
xVel = -speed;
yVel = 0;
} else {
dir = "right";
this.gotoAndStop("walk");
this._xscale = Math.abs(this._xscale);
xVel = speed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
}
function dieSuper(x1, y1) {
this.phase = "die_super";
this.phaseCount = 22;
this._xscale = 100;
this._x = (this._x - 50) + random(100);
this._y = (this._y - 50) + random(100);
tempX = this._x - x1;
tempY = this._y - y1;
if (Math.abs(tempY) > (tempX * 2)) {
if (tempY > 0) {
this.gotoAndStop("dieSuper5");
} else {
this.gotoAndStop("dieSuper1");
}
} else if (tempX > 0) {
if (tempX > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper3");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper4");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper2");
}
} else if (Math.abs(tempX) > (Math.abs(tempY) * 2)) {
this.gotoAndStop("dieSuper7");
} else if (tempY > 0) {
this.gotoAndStop("dieSuper6");
} else if (tempY < 0) {
this.gotoAndStop("dieSuper8");
}
}
function dieSuperEnd() {
if (phaseCount <= 0) {
_global.drawSprite(this, this._x, this._y, this._xscale);
_root.enemies--;
this.removeMovieClip();
}
}
function flashRed() {
hitTime--;
if ((hitTime % 6) > 2) {
colorT.redOffset = 100;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
trans.colorTransform = colorT;
}
}
function die() {
this.gotoAndStop("die");
this.phase = "dead";
phaseCount = 8;
_global.score = _global.score + _root.enemyScore;
if (_root.sfxON && (_root.lastHitESound > 1)) {
_root.lastHitESound = 0;
_root.soundSFX.attachSound("sfx_hitE");
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
if (_root.lastKill <= _root.comboGap) {
_root.spawnComboPopup(this);
}
_root.lastKill = 0;
_parent.p1.skullQuota++;
}
temp = random(4);
if (temp == 0) {
this._x = 0;
this._y = random(640);
} else if (temp == 1) {
this._x = 800;
this._y = random(640);
} else if (temp == 2) {
this._x = random(800);
this._y = 0;
} else {
this._x = random(800);
this._y = 640;
}
destX = this._x;
destY = this._y;
lag = 10;
phaseCount = 9;
shootDir = "down";
phase = "bat";
this.gotoAndStop("bat");
speed = 2;
batspeed = 4;
phaseDur = 30;
dir = "down";
currGridX = 1;
currGridY = 1;
batDur = 100;
batTime = batDur;
this.onEnterFrame = function () {
if (!_global.paused) {
this.mc.play();
phaseCount--;
switch (phase) {
case "normal" :
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
enemyWalk();
this._x = this._x + xVel;
this._y = this._y + yVel;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
break;
}
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 104) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
this.phase = "toBat";
this.gotoAndStop("toBat");
phaseCount = 29;
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
}
break;
case "fromBat" :
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
} else {
if (phaseCount <= 0) {
this.gotoAndStop("down");
this.phaseCount = 1;
this.phase = "normal";
}
break;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
} else {
if (phaseCount <= 0) {
this.gotoAndStop("bat");
this.phaseCount = 1;
this.phase = "bat";
this._y = this._y + -22;
batTime = batDur;
}
break;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
} else {
batTime--;
if (batTime == 0) {
this.phase = "fromBat";
this.gotoAndStop("fromBat");
phaseCount = 14;
this._y = this._y + 22;
} else {
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
xVel = 0;
yVel = -batspeed;
} else {
dir = "down";
xVel = 0;
yVel = batspeed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
xVel = -batspeed;
yVel = 0;
} else {
dir = "right";
xVel = batspeed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
this._x = this._x + xVel;
this._y = this._y + yVel;
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 88) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
die();
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
}
break;
if (phaseCount <= 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_root.enemies--;
this.removeMovieClip();
}
break;
dieSuperEnd();
}
}
}
}
case "toBat" :
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
} else {
if (phaseCount <= 0) {
this.gotoAndStop("bat");
this.phaseCount = 1;
this.phase = "bat";
this._y = this._y + -22;
batTime = batDur;
}
break;
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
} else {
batTime--;
if (batTime == 0) {
this.phase = "fromBat";
this.gotoAndStop("fromBat");
phaseCount = 14;
this._y = this._y + 22;
} else {
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
xVel = 0;
yVel = -batspeed;
} else {
dir = "down";
xVel = 0;
yVel = batspeed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
xVel = -batspeed;
yVel = 0;
} else {
dir = "right";
xVel = batspeed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
this._x = this._x + xVel;
this._y = this._y + yVel;
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 88) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
die();
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
}
break;
if (phaseCount <= 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_root.enemies--;
this.removeMovieClip();
}
break;
dieSuperEnd();
}
}
}
case "bat" :
if (_parent.skull_mc.phase == "explode") {
dieSuper(_parent.skull_mc._x, _parent.skull_mc._y);
} else {
batTime--;
if (batTime == 0) {
this.phase = "fromBat";
this.gotoAndStop("fromBat");
phaseCount = 14;
this._y = this._y + 22;
} else {
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
die();
}
}
if (phaseCount <= 0) {
phaseCount = phaseDur;
enemyMove();
}
if (phaseCount > (phaseDur / 2)) {
if (destY < this._y) {
dir = "up";
xVel = 0;
yVel = -batspeed;
} else {
dir = "down";
xVel = 0;
yVel = batspeed;
}
if (Math.abs(destY - this._y) < 8) {
phaseCount = phaseDur / 2;
}
} else {
if (destX < this._x) {
dir = "left";
xVel = -batspeed;
yVel = 0;
} else {
dir = "right";
xVel = batspeed;
yVel = 0;
}
if (Math.abs(destX - this._x) < 8) {
phaseCount = 0;
}
}
this._x = this._x + xVel;
this._y = this._y + yVel;
if ((_parent.p1.hitTime <= 0) && (this.mcHit.hitTest(_parent.p1.mcHit))) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
}
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 88) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length > 10) {
trace("error: " + temp.length);
} else {
var _local6 = null;
var _local5 = 0;
while (_local5 < temp.length) {
_local6 = _parent[temp[_local5]];
if (this.mcHit.hitTest(_local6.mcHit)) {
die();
_local6.phase = "dead";
break;
}
_local5++;
}
}
}
}
break;
if (phaseCount <= 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_root.enemies--;
this.removeMovieClip();
}
break;
dieSuperEnd();
}
}
case "dead" :
if (phaseCount <= 0) {
if (random(100) < _root.pickupChance) {
_root.spawnPickup(this);
}
_root.enemies--;
this.removeMovieClip();
}
break;
case "die_super" :
dieSuperEnd();
}
} else {
this.mc.stop();
}
};
Symbol 386 MovieClip [e5] Frame 2
stop();
Symbol 390 MovieClip [bulletE] Frame 1
speedMin = 4;
speedMax = 7;
destX = _parent.p1._x;
destY = _parent.p1._y;
xVel = (destX - this._x) / 32;
yVel = (destY - this._y) / 32;
var i = 1;
while (i < 8) {
if ((Math.abs(xVel) < speedMin) && (Math.abs(yVel) < speedMin)) {
xVel = xVel * 2;
yVel = yVel * 2;
} else {
break;
}
i++;
}
var i = 1;
while (i < 8) {
if ((Math.abs(xVel) > speedMax) || (Math.abs(yVel) > speedMax)) {
xVel = xVel / 2;
yVel = yVel / 2;
} else {
break;
}
i++;
}
phase = "normal";
currGridX = -5;
currGridY = -5;
oldGridX = -5;
oldGridY = -5;
this.onEnterFrame = function () {
if (!_global.paused) {
if (!(phase === "normal")) {
} else {
this._x = this._x + xVel;
this._y = this._y + yVel;
oldGridX = currGridX;
oldGridY = currGridY;
currGridX = Math.floor((this._x - 78) / 162);
currGridY = Math.floor((this._y - 88) / 122);
if ((((currGridX < 0) || (currGridX > 3)) || (currGridY < 0)) || (currGridY > 3)) {
this.removeMovieClip();
}
if (this.mcHit.hitTest(_parent.p1.mcHit)) {
_parent.p1.hitTime = _parent.p1.hitLength;
_parent.p1.hp = _parent.p1.hp + (-_parent.p1.eBP);
this.removeMovieClip();
}
}
}
};
Symbol 390 MovieClip [bulletE] Frame 12
gotoAndPlay (2);
Symbol 397 MovieClip [pickup1] Frame 1
this.onEnterFrame = function () {
if ((Math.abs(this._x - _parent.p1._x) < 32) && (Math.abs((this._y - _parent.p1._y) + 10) < 32)) {
if (_parent.p1.bombs < _parent.p1.bombMax) {
_parent.p1.bombs++;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_pickup1");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
this.removeMovieClip();
}
}
};
Symbol 397 MovieClip [pickup1] Frame 26
gotoAndPlay (2);
Symbol 400 MovieClip [pickup2] Frame 1
this.onEnterFrame = function () {
if ((Math.abs(this._x - _parent.p1._x) < 48) && (Math.abs((this._y - _parent.p1._y) + 10) < 32)) {
_parent.p1.gunLevelUp();
this.removeMovieClip();
}
};
Symbol 400 MovieClip [pickup2] Frame 28
gotoAndPlay (2);
Symbol 441 MovieClip Frame 61
_parent.gotoAndStop("idle");
Symbol 458 MovieClip Frame 74
stop();
Symbol 477 MovieClip Frame 15
stop();
Symbol 478 MovieClip [skull] Frame 1
function flashRed() {
hitTime--;
if ((hitTime % 6) > 2) {
colorT.redOffset = 180;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
trans.colorTransform = colorT;
}
}
function bulletCheck() {
currGridX = Math.floor((this._x - 78) / 82);
currGridY = Math.floor((this._y - 174) / 62);
temp = _root.grid[currGridX][currGridY];
if ((((currGridX >= 0) && (currGridX < 8)) && (currGridY >= 0)) && (currGridY < 8)) {
if (temp.length > 0) {
if (temp.length < 14) {
var _local5 = null;
var _local4 = 0;
while (_local4 < temp.length) {
_local5 = _parent[temp[_local4]];
if (this.mcHit.hitTest(_local5.mcHit)) {
hp = hp + -2;
if (hp <= 0) {
phase = "explode2";
this.gotoAndStop("explode2");
phaseCount = 16;
colorT.redOffset = 0;
trans.colorTransform = colorT;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_skull_explode");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
}
hitTime = hitLength;
_local5.phase = "dead";
break;
}
_local4++;
}
}
}
}
}
this.gotoAndStop("spawn");
phase = "normal";
phaseCount = 480;
hitTime = 0;
hitLength = 30;
hp = 20;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_skullspawn");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
this.onEnterFrame = function () {
if (!_global.paused) {
this.mc.play();
phaseCount--;
switch (phase) {
case "normal" :
if (phaseCount <= 0) {
phase = "warning";
this.gotoAndStop("warning");
phaseCount = 75;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_skull_warning");
_root.soundSFX.setVolume(90);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
} else {
if (_parent.mcBomb != undefined) {
if (this.mcHit.hitTest(_parent.mcBomb.mcHit)) {
hp--;
if (hp <= 0) {
phase = "explode2";
this.gotoAndStop("explode2");
phaseCount = 16;
colorT.redOffset = 0;
trans.colorTransform = colorT;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_skull_explode");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
}
}
}
bulletCheck();
if (hitTime > 0) {
flashRed();
}
}
break;
case "warning" :
if (phaseCount <= 0) {
phase = "explode";
this.gotoAndStop("explode");
phaseCount = 16;
colorT.redOffset = 0;
trans.colorTransform = colorT;
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_skull_explode");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
} else {
bulletCheck();
if (hitTime > 0) {
flashRed();
}
}
break;
case "explode" :
if (phaseCount <= 0) {
_parent.p1.skullQuota = 0;
this.removeMovieClip();
}
break;
case "explode2" :
if (phaseCount > 0) {
break;
}
_parent.p1.skullQuota = 0;
this.removeMovieClip();
}
} else {
this.mc.stop();
}
};
Symbol 478 MovieClip [skull] Frame 2
stop();
Symbol 505 MovieClip [bomb1] Frame 48
this.removeMovieClip();
Symbol 525 MovieClip [bomb2] Frame 52
this.removeMovieClip();
Symbol 539 Button
on (release) {
getURL ("http://armorbot.com/mytable/?id=487", "_blank");
}
Symbol 541 Button
on (release) {
_global.quitGame();
}
Symbol 576 Button
on (release) {
if (_root.diff == 3) {
nameText = textNameInput.text + " (hard)";
} else if (_root.diff == 2) {
nameText = textNameInput.text + " (medium)";
} else {
nameText = textNameInput.text + " (easy)";
}
ab20_09 = new LoadVars();
ab20_09.z = nameText;
ab20_09.x = ab20.encodeNum(_global.score);
ab20_09.c = 487;
ab20_09.v = "KDUFMM";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_parent.buttDone.enabled = true;
_parent.buttHiscores.enabled = true;
this._visible = false;
}
Symbol 577 MovieClip Frame 1
textTotal2.text = _global.score;
Selection.setFocus(textNameInput);
enterPressed = false;
this.onEnterFrame = function () {
if (Key.isDown(13)) {
if (!enterPressed) {
enterPressed = true;
if (_root.diff == 3) {
nameText = textNameInput.text + " (hard)";
} else if (_root.diff == 2) {
nameText = textNameInput.text + " (medium)";
} else {
nameText = textNameInput.text + " (easy)";
}
ab20_09 = new LoadVars();
ab20_09.z = nameText;
ab20_09.x = ab20.encodeNum(_global.score);
ab20_09.c = 487;
ab20_09.v = "KDUFMM";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_parent.buttDone.enabled = true;
_parent.buttHiscores.enabled = true;
this._visible = false;
}
}
};
Symbol 579 MovieClip [msg_gameover] Frame 15
var percent = 0;
var i = 1;
while (i < 640) {
var k = 1;
while (k < 480) {
if (_root.mcAll.bloodBitmap.getPixel(i + 80, k + 80) != 0) {
percent = percent + 0.00520833333333333;
}
k = k + 3;
k++;
}
i = i + 3;
i++;
}
if (percent > 30) {
percent = Math.round(percent * 1.05);
}
if (percent > 100) {
percent = 100;
} else if (percent < 1) {
percent = 1;
}
percent = Math.ceil(percent * 100) / 100;
Symbol 579 MovieClip [msg_gameover] Frame 16
buttDone.enabled = false;
buttHiscores.enabled = false;
Symbol 579 MovieClip [msg_gameover] Frame 17
var mult = (_root.timer / 200);
if (mult < 1) {
mult = 1;
}
mult = Math.ceil(((percent / 10) + mult) * 100) / 100;
if (mult < 1) {
mult = 1;
}
textScore.text = _global.score;
_global.score = Math.ceil(_global.score * mult);
textPercent.text = percent + "%";
textTime.text = _root.timer + " seconds";
textMult.text = "X " + mult;
textTotal.text = _global.score;
if (_global.score > _global.hiscore) {
_global.hiscore = _global.score;
}
savefile = SharedObject.getLocal("saveData");
if (_root.diff == 1) {
savefile.data.hiscore_1 = _global.hiscore;
} else if (_root.diff == 2) {
savefile.data.hiscore_2 = _global.hiscore;
} else if (_root.diff == 3) {
savefile.data.hiscore_3 = _global.hiscore;
}
if ((_root.diff == 1) && (_global.score >= 75000)) {
savefile.data.ach_1hi = 1;
}
if ((_root.diff == 2) && (_global.score >= 100000)) {
savefile.data.ach_2hi = 1;
}
if ((_root.diff == 3) && (_global.score >= 200000)) {
savefile.data.ach_3hi = 1;
}
if (((_root.diff == 2) || (_root.diff == 3)) && (_global.score >= 1000000)) {
savefile.data.ach_1mil = 1;
}
if (_root.timer >= 900) {
savefile.data.ach_15min = 1;
}
if (percent > 95) {
savefile.data.ach_screen95 = 1;
}
if (percent > 60) {
savefile.data.ach_screen60 = 1;
}
if (percent > 25) {
savefile.data.ach_screen25 = 1;
}
savefile.data.maxcombo = _root.maxCombo;
savefile.flush();
var fake1 = 1234;
var fake2 = 10;
var fake3 = 123;
var fake4 = 1.8;
var fake5 = 1234;
this.onEnterFrame = function () {
fake1 = 123456 + random(800000);
fake2 = 10 + random(90);
fake3 = 123 + random(500);
fake4 = Math.ceil((fake2 / 10) + ((fake3 / 300) * 100)) / 100;
fake5 = fake1 * fake4;
textScoreFake.text = fake1;
textPercentFake.text = fake2 + "%";
textTimeFake.text = fake3 + " seconds";
textMultFake.text = "X " + fake4;
textTotalFake.text = fake5;
};
Symbol 579 MovieClip [msg_gameover] Frame 376
stop();
Symbol 590 MovieClip [popup_levelup] Frame 42
stop();
this.removeMovieClip();
Symbol 593 MovieClip [popup_combo] Frame 38
stop();
this.removeMovieClip();
Symbol 625 MovieClip [popup_bonus] Frame 8
mcExtra.textExtra.text = _root.comboCountTemp + "X\nCOMBO!";
Symbol 625 MovieClip [popup_bonus] Frame 10
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 11
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 12
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 13
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 14
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 15
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 16
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 17
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 18
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 19
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 20
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 21
textBonusScore.text = 123456 + random(800000);
Symbol 625 MovieClip [popup_bonus] Frame 22
textBonusScore.text = _root.comboBonusTemp;
if (_root.comboCountTemp > 18) {
_root.comboBonusTemp * 50;
} else if (_root.comboCountTemp > 14) {
_root.comboBonusTemp * 25;
} else if (_root.comboCountTemp > 9) {
_root.comboBonusTemp * 8;
} else if (_root.comboCountTemp > 5) {
_root.comboBonusTemp * 2;
}
_global.score = _global.score + _root.comboBonusTemp;
Symbol 625 MovieClip [popup_bonus] Frame 66
stop();
this.removeMovieClip();
Symbol 639 MovieClip [popup_bonus2] Frame 8
mcExtra.textExtra.text = _root.comboCountTemp + "X\nCOMBO!";
Symbol 639 MovieClip [popup_bonus2] Frame 10
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 11
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 12
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 13
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 14
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 15
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 16
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 17
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 18
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 19
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 20
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 21
textBonusScore.text = 123456 + random(800000);
Symbol 639 MovieClip [popup_bonus2] Frame 22
textBonusScore.text = _root.comboBonusTemp;
if (_root.comboCountTemp > 18) {
_root.comboBonusTemp * 60;
mcComment.textComment.text = "ULTIMATE COMBO!!!";
}
if (_root.comboCountTemp == 18) {
_root.comboBonusTemp * 50;
mcComment.textComment.text = "EXTRAORDINARY!!";
} else if (_root.comboCountTemp == 17) {
_root.comboBonusTemp * 35;
mcComment.textComment.text = "UNBELIEVABLE!";
} else if (_root.comboCountTemp == 16) {
_root.comboBonusTemp * 35;
mcComment.textComment.text = "OUTSTANDING!";
} else if (_root.comboCountTemp == 15) {
_root.comboBonusTemp * 25;
mcComment.textComment.text = "CRAZY!";
} else if (_root.comboCountTemp == 14) {
_root.comboBonusTemp * 25;
mcComment.textComment.text = "INCREDIBLE!";
} else if (_root.comboCountTemp == 13) {
_root.comboBonusTemp * 15;
mcComment.textComment.text = "AMAZING!";
} else if (_root.comboCountTemp == 12) {
_root.comboBonusTemp * 15;
mcComment.textComment.text = "IMPRESSIVE!";
} else if (_root.comboCountTemp > 9) {
_root.comboBonusTemp * 8;
} else if (_root.comboCountTemp > 5) {
_root.comboBonusTemp * 2;
}
_global.score = _global.score + _root.comboBonusTemp;
_global.paused = true;
Symbol 639 MovieClip [popup_bonus2] Frame 30
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_combo_comment");
_root.soundSFX.setVolume(90);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
Symbol 639 MovieClip [popup_bonus2] Frame 74
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_combo_shatter");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
Symbol 639 MovieClip [popup_bonus2] Frame 87
_global.paused = false;
Symbol 639 MovieClip [popup_bonus2] Frame 96
stop();
this.removeMovieClip();
Symbol 640 MovieClip Frame 1
stop();
Symbol 646 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 654 Button
on (release) {
_root.play();
_root.diff = 3;
}
Symbol 656 Button
on (release) {
_root.play();
_root.diff = 2;
}
Symbol 658 Button
on (release) {
_root.play();
_root.diff = 1;
}
Symbol 668 Button
on (release) {
mcAch._visible = true;
disableMenu();
}
Symbol 671 Button
on (release) {
getURL ("http://www.girlshavecooties.com", "_blank");
}
Symbol 672 Button
on (release) {
getURL ("http://www.dustfilms.com", "_blank");
}
Symbol 673 Button
on (release) {
getURL ("http://www.monkeyinthepants.com", "_blank");
}
Symbol 674 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 685 Button
on (release) {
this._visible = false;
_root.enableMenu();
}
Symbol 694 MovieClip Frame 1
savefile = SharedObject.getLocal("saveData");
save1 = savefile.data.ach_1hi;
if ((save1 != null) && (save1 != undefined)) {
mcGray1._visible = false;
}
save1 = savefile.data.ach_2hi;
if ((save1 != null) && (save1 != undefined)) {
mcGray2._visible = false;
}
save1 = savefile.data.ach_3hi;
if ((save1 != null) && (save1 != undefined)) {
mcGray3._visible = false;
}
save1 = savefile.data.maxcombo;
if (((save1 != null) && (save1 != undefined)) && (save1 >= 20)) {
mcGray4._visible = false;
}
save1 = savefile.data.ach_screen25;
if ((save1 != null) && (save1 != undefined)) {
mcGray5._visible = false;
}
save1 = savefile.data.ach_screen60;
if ((save1 != null) && (save1 != undefined)) {
mcGray6._visible = false;
}
save1 = savefile.data.ach_screen95;
if ((save1 != null) && (save1 != undefined)) {
mcGray7._visible = false;
}
save1 = savefile.data.ach_1mil;
if ((save1 != null) && (save1 != undefined)) {
mcGray8._visible = false;
}
Symbol 703 MovieClip Frame 1
stop();
Symbol 715 Button
on (release) {
gotoAndPlay ("end");
}
Symbol 720 Button
on (release) {
currPage++;
gotoAndPlay("page" + currPage);
}
Symbol 729 Button
on (release) {
currPage--;
gotoAndPlay("page" + currPage);
}
Symbol 780 MovieClip Frame 1
currPage = 1;
Symbol 780 MovieClip Frame 9
stop();
Symbol 780 MovieClip Frame 17
stop();
Symbol 780 MovieClip Frame 26
stop();
Symbol 780 MovieClip Frame 37
stop();
Symbol 780 MovieClip Frame 48
stop();
Symbol 780 MovieClip Frame 58
stop();
Symbol 780 MovieClip Frame 68
stop();
Symbol 780 MovieClip Frame 78
stop();
Symbol 780 MovieClip Frame 88
stop();
Symbol 780 MovieClip Frame 98
stop();
Symbol 780 MovieClip Frame 108
stop();
Symbol 780 MovieClip Frame 117
stop();
Symbol 780 MovieClip Frame 127
stop();
Symbol 780 MovieClip Frame 226
stop();
_root.play();
Symbol 787 MovieClip Frame 21
stop();
Symbol 788 MovieClip Frame 1
function spawnBullet(xBase, yBase) {
bulletCount++;
if (bulletCount > bulletMax) {
bulletCount = 1;
}
_parent.attachMovie("bullet", "bullet1_" + bulletCount, _root.bulletDepth + bulletCount, {_x:xBase, _y:yBase});
if ((_root.sfxON && (_root.eggON)) && (_root.lastShotSound > 4)) {
_root.lastShotSound = 0;
_root.soundSFX.attachSound("sfx_shoot");
_root.soundSFX.start();
}
}
function shoot1_1() {
if ((counter % 16) == 0) {
shootAngle1();
}
}
function shoot1_2() {
if ((counter % 24) == 0) {
shootAngle1a();
} else if ((counter % 24) == 12) {
shootAngle1b();
}
}
function shoot1_3() {
if ((counter % 20) == 0) {
shootAngle1a();
} else if ((counter % 20) == 10) {
shootAngle1b();
}
}
function shoot1_4() {
if ((counter % 13) == 0) {
shootAngle1a();
shootAngle1b();
}
}
function shoot1_5() {
if ((counter % 12) == 0) {
shootAngle1();
} else if ((counter % 24) == 6) {
shootAngle7();
} else if ((counter % 24) == 18) {
shootAngle8();
}
}
function shoot1_6() {
if ((counter % 20) == 0) {
shootAngle1a();
} else if ((counter % 20) == 10) {
shootAngle1b();
} else if ((counter % 20) == 5) {
shootAngle7();
} else if ((counter % 20) == 15) {
shootAngle8();
}
}
function shoot1_7() {
if ((counter % 18) == 0) {
shootAngle1a();
shootAngle1b();
} else if ((counter % 18) == 6) {
shootAngle7();
} else if ((counter % 18) == 12) {
shootAngle8();
}
}
function shoot1_8() {
if ((counter % 16) == 0) {
shootAngle1a();
shootAngle1b();
} else if ((counter % 16) == 4) {
shootAngle7();
} else if ((counter % 16) == 12) {
shootAngle8();
}
}
function shoot1_9() {
if ((counter % 16) == 0) {
shootAngle1a();
shootAngle1b();
} else if ((counter % 16) == 8) {
shootAngle1();
} else if ((counter % 16) == 4) {
shootAngle7();
} else if ((counter % 16) == 12) {
shootAngle8();
}
}
function shoot1_10() {
if ((counter % 16) == 0) {
shootAngle1a();
shootAngle1b();
} else if ((counter % 16) == 8) {
shootAngle1();
} else if ((counter % 16) == 4) {
shootAngle7();
} else if ((counter % 16) == 12) {
shootAngle8();
}
if ((counter % 32) == 1) {
shootAngle2();
} else if ((counter % 32) == 17) {
shootAngle3();
}
}
function shoot1_11() {
if ((counter % 16) == 0) {
shootAngle1a();
shootAngle1b();
} else if ((counter % 16) == 8) {
shootAngle1c();
shootAngle1d();
} else if ((counter % 16) == 4) {
shootAngle7();
} else if ((counter % 16) == 12) {
shootAngle8();
}
if ((counter % 32) == 1) {
shootAngle2();
} else if ((counter % 32) == 17) {
shootAngle3();
}
}
function shoot1_12() {
if ((counter % 16) == 0) {
shootAngle1a();
shootAngle1b();
} else if ((counter % 16) == 8) {
shootAngle1c();
shootAngle1d();
} else if ((counter % 8) == 4) {
shootAngle7();
} else if ((counter % 8) == 5) {
shootAngle8();
}
if ((counter % 8) == 3) {
shootAngle1();
}
if ((counter % 32) == 1) {
shootAngle2();
} else if ((counter % 32) == 17) {
shootAngle3();
}
}
function shoot2_1() {
if ((counter % 32) == 0) {
shootAngle1();
} else if ((counter % 32) == 16) {
shootAngle4();
}
}
function shoot2_2() {
if ((counter % 32) == 0) {
shootAngle1();
} else if ((counter % 32) == 16) {
shootAngle4();
}
if ((counter % 64) == 8) {
shootAngle2();
} else if ((counter % 64) == 40) {
shootAngle3();
}
}
function shoot2_3() {
if ((counter % 16) == 4) {
shootAngle1();
}
if ((counter % 32) == 0) {
shootAngle2();
} else if ((counter % 32) == 16) {
shootAngle3();
} else if ((counter % 32) == 8) {
shootAngle5();
} else if ((counter % 32) == 24) {
shootAngle6();
}
}
function shoot2_4() {
if ((counter % 16) == 4) {
shootAngle1();
}
if ((counter % 24) == 1) {
shootAngle2();
} else if ((counter % 24) == 13) {
shootAngle3();
}
if ((counter % 32) == 8) {
shootAngle5();
} else if ((counter % 32) == 24) {
shootAngle6();
}
}
function shoot2_5() {
if ((counter % 16) == 4) {
shootAngle1();
}
if ((counter % 24) == 1) {
shootAngle2();
} else if ((counter % 24) == 13) {
shootAngle3();
}
if ((counter % 24) == 6) {
shootAngle5();
} else if ((counter % 24) == 18) {
shootAngle6();
}
}
function shoot2_6() {
if ((counter % 16) == 4) {
shootAngle1();
}
if ((counter % 32) == 16) {
shootAngle4();
}
if ((counter % 24) == 1) {
shootAngle2();
} else if ((counter % 24) == 13) {
shootAngle3();
}
if ((counter % 24) == 6) {
shootAngle5();
} else if ((counter % 24) == 18) {
shootAngle6();
}
}
function shoot2_7() {
if ((counter % 16) == 4) {
shootAngle1();
} else if ((counter % 16) == 12) {
shootAngle4();
}
if ((counter % 24) == 1) {
shootAngle2();
} else if ((counter % 24) == 13) {
shootAngle3();
}
if ((counter % 24) == 6) {
shootAngle5();
} else if ((counter % 24) == 18) {
shootAngle6();
}
}
function shoot2_8() {
if ((counter % 16) == 4) {
shootAngle1();
} else if ((counter % 16) == 12) {
shootAngle4();
}
if ((counter % 16) == 0) {
shootAngle2();
} else if ((counter % 16) == 8) {
shootAngle3();
}
if ((counter % 16) == 5) {
shootAngle5();
} else if ((counter % 16) == 13) {
shootAngle6();
}
}
function shoot2_9() {
if ((counter % 16) == 3) {
shootAngle1();
} else if ((counter % 16) == 4) {
shootAngle4();
}
if ((counter % 32) == 15) {
shootAngle11();
} else if ((counter % 32) == 17) {
shootAngle12();
}
if ((counter % 16) == 0) {
shootAngle2();
} else if ((counter % 16) == 8) {
shootAngle3();
}
if ((counter % 16) == 5) {
shootAngle5();
} else if ((counter % 16) == 13) {
shootAngle6();
}
}
function shoot2_10() {
if ((counter % 16) == 3) {
shootAngle1();
} else if ((counter % 16) == 4) {
shootAngle4();
}
if ((counter % 16) == 11) {
shootAngle11();
} else if ((counter % 16) == 12) {
shootAngle12();
}
if ((counter % 16) == 0) {
shootAngle2();
} else if ((counter % 16) == 8) {
shootAngle3();
}
if ((counter % 16) == 5) {
shootAngle5();
} else if ((counter % 16) == 13) {
shootAngle6();
}
}
function shoot2_11() {
if ((counter % 16) == 3) {
shootAngle1();
} else if ((counter % 16) == 4) {
shootAngle4();
}
if ((counter % 16) == 11) {
shootAngle11();
} else if ((counter % 16) == 12) {
shootAngle12();
}
if ((counter % 16) == 0) {
shootAngle2();
} else if ((counter % 16) == 8) {
shootAngle3();
}
if ((counter % 16) == 5) {
shootAngle5();
} else if ((counter % 16) == 13) {
shootAngle6();
}
if ((counter % 32) == 10) {
shootAngle7();
} else if ((counter % 32) == 15) {
shootAngle8();
}
}
function shoot2_12() {
if ((counter % 16) == 3) {
shootAngle1();
} else if ((counter % 16) == 4) {
shootAngle4();
}
if ((counter % 16) == 11) {
shootAngle11();
} else if ((counter % 16) == 12) {
shootAngle12();
}
if ((counter % 16) == 0) {
shootAngle2();
} else if ((counter % 16) == 8) {
shootAngle3();
}
if ((counter % 16) == 5) {
shootAngle5();
} else if ((counter % 16) == 13) {
shootAngle6();
}
if ((counter % 32) == 10) {
shootAngle7();
} else if ((counter % 32) == 15) {
shootAngle8();
}
if ((counter % 32) == 14) {
shootAngle9();
} else if ((counter % 32) == 17) {
shootAngle10();
}
}
function shootAngle1() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 0;
yBase = yBase + -46;
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -9;
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -9;
} else {
xBase = xBase + 0;
yBase = yBase + 0;
}
this.bulletDir = this.shootDir;
spawnBullet(xBase, yBase);
}
function shootAngle2() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -4;
yBase = yBase + -46;
this.bulletDir = "ul";
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -5;
this.bulletDir = "dl";
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -13;
this.bulletDir = "ur";
} else {
xBase = xBase + 4;
yBase = yBase + 0;
this.bulletDir = "dr";
}
spawnBullet(xBase, yBase);
}
function shootAngle3() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 4;
yBase = yBase + -46;
this.bulletDir = "ur";
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -13;
this.bulletDir = "ul";
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -5;
this.bulletDir = "dr";
} else {
xBase = xBase + -4;
yBase = yBase + 0;
this.bulletDir = "dl";
}
spawnBullet(xBase, yBase);
}
function shootAngle4() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 0;
yBase = yBase + -46;
this.bulletDir = "down";
} else if (this.shootDir == "left") {
xBase = xBase + 14;
yBase = yBase + -9;
this.bulletDir = "right";
} else if (this.shootDir == "right") {
xBase = xBase + -14;
yBase = yBase + -9;
this.bulletDir = "left";
} else {
xBase = xBase + 0;
yBase = yBase + 0;
this.bulletDir = "up";
}
spawnBullet(xBase, yBase);
}
function shootAngle5() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 4;
yBase = yBase + 0;
this.bulletDir = "dr";
} else if (this.shootDir == "left") {
xBase = xBase + 14;
yBase = yBase + -13;
this.bulletDir = "ur";
} else if (this.shootDir == "right") {
xBase = xBase + -14;
yBase = yBase + -5;
this.bulletDir = "dl";
} else {
xBase = xBase + -4;
yBase = yBase + -46;
this.bulletDir = "ul";
}
spawnBullet(xBase, yBase);
}
function shootAngle6() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -4;
yBase = yBase + 0;
this.bulletDir = "dl";
} else if (this.shootDir == "left") {
xBase = xBase + 14;
yBase = yBase + -5;
this.bulletDir = "dr";
} else if (this.shootDir == "right") {
xBase = xBase + -14;
yBase = yBase + -13;
this.bulletDir = "ul";
} else {
xBase = xBase + 4;
yBase = yBase + -46;
this.bulletDir = "ur";
}
spawnBullet(xBase, yBase);
}
function shootAngle7() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -2;
yBase = yBase + -46;
this.bulletDir = "ul2";
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -7;
this.bulletDir = "dl2b";
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -11;
this.bulletDir = "ur2b";
} else {
xBase = xBase + 2;
yBase = yBase + 0;
this.bulletDir = "dr2";
}
spawnBullet(xBase, yBase);
}
function shootAngle8() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 2;
yBase = yBase + -46;
this.bulletDir = "ur2";
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -11;
this.bulletDir = "ul2b";
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -7;
this.bulletDir = "dr2b";
} else {
xBase = xBase + -2;
yBase = yBase + 0;
this.bulletDir = "dl2";
}
spawnBullet(xBase, yBase);
}
function shootAngle9() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 2;
yBase = yBase + 0;
this.bulletDir = "dr2";
} else if (this.shootDir == "left") {
xBase = xBase + 14;
yBase = yBase + -11;
this.bulletDir = "ur2b";
} else if (this.shootDir == "right") {
xBase = xBase + -14;
yBase = yBase + -7;
this.bulletDir = "dl2b";
} else {
xBase = xBase + -2;
yBase = yBase + -46;
this.bulletDir = "ul2";
}
spawnBullet(xBase, yBase);
}
function shootAngle10() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -2;
yBase = yBase + 0;
this.bulletDir = "dl2";
} else if (this.shootDir == "left") {
xBase = xBase + 14;
yBase = yBase + -7;
this.bulletDir = "dr2b";
} else if (this.shootDir == "right") {
xBase = xBase + -14;
yBase = yBase + -11;
this.bulletDir = "ul2b";
} else {
xBase = xBase + 2;
yBase = yBase + -46;
this.bulletDir = "ur2";
}
spawnBullet(xBase, yBase);
}
function shootAngle11() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -14;
yBase = yBase + -9;
this.bulletDir = "left";
} else if (this.shootDir == "left") {
xBase = xBase + 0;
yBase = yBase + 0;
this.bulletDir = "down";
} else if (this.shootDir == "right") {
xBase = xBase + 0;
yBase = yBase + -46;
this.bulletDir = "up";
} else {
xBase = xBase + 14;
yBase = yBase + -9;
this.bulletDir = "right";
}
spawnBullet(xBase, yBase);
}
function shootAngle12() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 14;
yBase = yBase + -9;
this.bulletDir = "right";
} else if (this.shootDir == "left") {
xBase = xBase + 0;
yBase = yBase + -46;
this.bulletDir = "up";
} else if (this.shootDir == "right") {
xBase = xBase + 0;
yBase = yBase + 0;
this.bulletDir = "down";
} else {
xBase = xBase + -14;
yBase = yBase + -9;
this.bulletDir = "left";
}
spawnBullet(xBase, yBase);
}
function shootAngle1a() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -4;
yBase = yBase + -46;
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -5;
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -13;
} else {
xBase = xBase + 4;
yBase = yBase + 0;
}
this.bulletDir = this.shootDir;
spawnBullet(xBase, yBase);
}
function shootAngle1b() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 4;
yBase = yBase + -46;
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -13;
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -5;
} else {
xBase = xBase + -4;
yBase = yBase + 0;
}
this.bulletDir = this.shootDir;
spawnBullet(xBase, yBase);
}
function shootAngle1c() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -8;
yBase = yBase + -46;
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -1;
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -17;
} else {
xBase = xBase + 8;
yBase = yBase + 0;
}
this.bulletDir = this.shootDir;
spawnBullet(xBase, yBase);
}
function shootAngle1d() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 8;
yBase = yBase + -46;
} else if (this.shootDir == "left") {
xBase = xBase + -14;
yBase = yBase + -17;
} else if (this.shootDir == "right") {
xBase = xBase + 14;
yBase = yBase + -1;
} else {
xBase = xBase + -8;
yBase = yBase + 0;
}
this.bulletDir = this.shootDir;
spawnBullet(xBase, yBase);
}
function shootAngle4a() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + 4;
yBase = yBase + -46;
this.bulletDir = "down";
} else if (this.shootDir == "left") {
xBase = xBase + 14;
yBase = yBase + -13;
this.bulletDir = "right";
} else if (this.shootDir == "right") {
xBase = xBase + -14;
yBase = yBase + -5;
this.bulletDir = "left";
} else {
xBase = xBase + -4;
yBase = yBase + 0;
this.bulletDir = "up";
}
spawnBullet(xBase, yBase);
}
function shootAngle4b() {
xBase = this._x;
yBase = this._y;
if (this.shootDir == "up") {
xBase = xBase + -4;
yBase = yBase + -46;
this.bulletDir = "down";
} else if (this.shootDir == "left") {
xBase = xBase + 14;
yBase = yBase + -5;
this.bulletDir = "right";
} else if (this.shootDir == "right") {
xBase = xBase + -14;
yBase = yBase + -13;
this.bulletDir = "left";
} else {
xBase = xBase + 4;
yBase = yBase + 0;
this.bulletDir = "up";
}
spawnBullet(xBase, yBase);
}
function gunLevelUp() {
gunLevel++;
if (gunLevel > gunMax) {
gunLevel = gunMax;
}
gunLevelUpTime = 0;
_parent.attachMovie("popup_levelup", "popup_levelup1", _root.popupDepth, {_x:this._x, _y:this._y - 48});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_pickup2");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan((this._x - 400) / 5);
_root.soundSFX.start();
}
}
function setBomb() {
if (shootMode == 1) {
phase = "blast";
phaseCount = 21;
if (shootDir == "up") {
_parent.attachMovie("bomb2", "mcBomb", _root.bombDepth, {_x:this._x, _y:this._y - 40, _rotation:-90});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_blast");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
} else if (shootDir == "left") {
_parent.attachMovie("bomb2", "mcBomb", _root.bombDepth, {_x:this._x - 14, _y:this._y - 9, _xscale:-100});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_blastRtoL");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
} else if (shootDir == "right") {
_parent.attachMovie("bomb2", "mcBomb", _root.bombDepth, {_x:this._x + 14, _y:this._y - 9});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_blastLtoR");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
} else {
_parent.attachMovie("bomb2", "mcBomb", _root.bombDepth, {_x:this._x, _y:this._y - 6, _rotation:90});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_blast");
_root.soundSFX.setVolume(100);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
}
} else {
_parent.attachMovie("bomb1", "mcBomb", _root.bombDepth, {_x:this._x, _y:this._y - 20});
if (_root.sfxON) {
_root.soundSFX.attachSound("sfx_pulse");
_root.soundSFX.setVolume(80);
_root.soundSFX.setPan(0);
_root.soundSFX.start();
}
}
}
function playerMove() {
destX = _root._xmouse;
if (destX < _parent.boundX1) {
destX = _parent.boundX1;
} else if (destX > _parent.boundX2) {
destX = _parent.boundX2;
}
destY = _root._ymouse;
if (destY < _parent.boundY1) {
destY = _parent.boundY1;
} else if (destY > _parent.boundY2) {
destY = _parent.boundY2;
}
gapX = destX - this._x;
gapY = destY - this._y;
this._x = this._x + (gapX / lag);
this._y = this._y + (gapY / lag);
}
function checkDead() {
if (hp <= 0) {
phase = "dead";
this.gotoAndStop("die");
_root.gameover();
}
}
function flashRed() {
hitTime--;
if ((hitTime % 6) > 2) {
colorT.redOffset = 100;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
trans.colorTransform = colorT;
}
}
destX = this._x;
destY = this._y;
lag = 6;
counter = 0;
phase = "normal";
phaseCount = 1;
shootDir = "down";
gunLevel = _root.gunLevel;
gunMax = 12;
shootMode = 1;
shootModes = 2;
bulletCount = 0;
bulletMax = 32;
bulletDir = "down";
hitTime = 0;
hitLength = 30;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
hp = 100;
eBP = 5;
bombs = 0;
bombMax = 24;
gunLevelUpTime = 0;
bSkull = false;
skullQuota = 0;
keyUp1 = 87;
keyDown1 = 83;
keyLeft = 65;
keyRight = 68;
keyBomb = 32;
keySkull = 16;
bombPressed = false;
skullPressed = false;
lvlUpPressed = false;
lvlDownPressed = false;
this.swapDepths(_root.p1Depth);
this.onMouseDown = function () {
if (!_global.paused) {
if (!(((_root._xmouse < 280) && (_root._xmouse > 70)) && (_root._ymouse > 580))) {
shootMode++;
if (shootMode > shootModes) {
shootMode = 1;
}
}
}
};
this.onEnterFrame = function () {
if (!_global.paused) {
phaseCount--;
switch (phase) {
case "normal" :
counter++;
gunLevelUpTime++;
playerMove();
if (Key.isDown(keyUp1)) {
shootDir = "up";
this.gotoAndStop("up");
} else if (Key.isDown(keyDown1)) {
shootDir = "down";
this.gotoAndStop("down");
} else if (Key.isDown(keyLeft)) {
shootDir = "left";
this.gotoAndStop("walk");
this._xscale = -Math.abs(this._xscale);
} else if (Key.isDown(keyRight)) {
shootDir = "right";
this.gotoAndStop("walk");
this._xscale = Math.abs(this._xscale);
}
this[(("shoot" + shootMode) + "_") + gunLevel]();
if ((hitTime <= 0) && (_parent.skull_mc.phase == "explode")) {
hitTime = hitLength;
hp = hp + ((-eBP) * 2);
}
if (hitTime > 0) {
flashRed();
}
if (this.hp < 0) {
this.hp = 0;
}
if (Key.isDown(keyBomb)) {
if (!bombPressed) {
bombPressed = true;
if ((bombs > 0) && (_parent.mcBomb == undefined)) {
bombs--;
setBomb();
}
}
} else {
bombPressed = false;
}
if (Key.isDown(keySkull)) {
if (!skullPressed) {
skullPressed = true;
if ((this.skullQuota >= _root.skullQuota) && (_parent.skull_mc == undefined)) {
_parent.attachMovie("skull", "skull_mc", _root.skullDepth, {_x:this._x, _y:this._y});
}
}
} else {
skullPressed = false;
}
if (Key.isDown(17) && (Key.isDown(48))) {
if (!lvlUpPressed) {
lvlUpPressed = true;
gunLevelUp();
}
} else {
lvlUpPressed = false;
}
if (Key.isDown(17) && (Key.isDown(57))) {
if (!lvlDownPressed) {
lvlDownPressed = true;
gunLevel--;
if (gunLevel < 1) {
gunLevel = 1;
}
}
} else {
lvlDownPressed = false;
}
checkDead();
break;
case "blast" :
if (phaseCount <= 0) {
phase = "normal";
lag = 6;
} else {
lag = 12;
playerMove();
if (shootDir == "up") {
_parent.mcBomb._x = this._x;
_parent.mcBomb._y = this._y - 32;
} else if (shootDir == "left") {
_parent.mcBomb._x = this._x - 14;
_parent.mcBomb._y = this._y - 9;
} else if (shootDir == "right") {
_parent.mcBomb._x = this._x + 14;
_parent.mcBomb._y = this._y - 9;
} else {
_parent.mcBomb._x = this._x;
_parent.mcBomb._y = this._y;
}
if (hitTime > 0) {
flashRed();
}
checkDead();
}
}
}
if (phase == "dead") {
colorT.redOffset = 0;
trans.colorTransform = colorT;
}
};
Symbol 788 MovieClip Frame 2
stop();
Symbol 816 MovieClip Frame 1
function drawBlood(sprite, x1, y1) {
var _local1 = new flash.geom.Matrix();
var _local2 = new flash.geom.Matrix();
_local2.translate(x1 - 78, y1 - 78);
_local1.concat(_local2);
bloodBitmap.draw(sprite, _local1, null, blendMode, null, smooth);
}
function drawBullet(sprite, x1, y1) {
var _local1 = new flash.geom.Matrix();
var _local2 = new flash.geom.Matrix();
_local2.translate(x1 + 10, y1 + 6);
_local1.concat(_local2);
bloodBitmap.draw(sprite, _local1, null, blendMode, null, smooth);
}
function drawBlast(spriteNum, x1, y1) {
var _local1 = new flash.geom.Matrix();
var _local2 = new flash.geom.Matrix();
_local2.translate(x1 + 10, y1 + 6);
_local1.concat(_local2);
bloodBitmap.draw("mcBlast" + spriteNum, _local1, null, blendMode, null, smooth);
}
function dryBlood(rate) {
var _local1 = new Array();
_local1 = _local1.concat([rate, 0, 0, 0, 0]);
_local1 = _local1.concat([0, rate, 0, 0, 0]);
_local1 = _local1.concat([0, 0, rate, 0, 0]);
_local1 = _local1.concat([0.005, 0.005, 0, 1, 0]);
var _local3 = new flash.filters.ColorMatrixFilter(_local1);
bloodBitmap.applyFilter(bloodBitmap, bloodBitmap.rectangle, new flash.geom.Point(0, 0), _local3);
}
stop();
clicked = false;
counter = 0;
_global.bloodCount = 0;
bloodMax = 10;
bloodSprites = 8;
bloodNameCount = 0;
splatGap = 10;
lastSplat = splatGap;
lastSplatSprite = 0;
grenadeNum = 0;
grenadeMax = 6;
boundX1 = 96;
boundX2 = 704;
boundY1 = 120;
boundY2 = 560;
bloodDepth = 1000;
grenadeDepth = 123456 /* 0x01E240 */;
mcBloodAll.useHandCursor = false;
blastPressed = false;
mcBorder.swapDepths(_root.borderDepth);
var bloodBitmap = (new flash.display.BitmapData(644, 484, true, 0));
mcBloodAll.attachBitmap(bloodBitmap, this.getNextHighestDepth());
var blendMode = "normal";
var smooth = true;
_global.groupedBlood = function (type, x1, y1) {
switch (type) {
case "bullet" :
var _local1 = mcBlood1._currentframe;
drawBlood(mcBlood1, (x1 - 40) + random(80), (y1 - 40) + random(80));
_local1 = random(mcBlood1._totalframes) + 1;
mcBlood1.gotoAndPlay(_local1);
drawBlood(mcBlood1, (x1 - 40) + random(80), (y1 - 40) + random(80));
break;
case "single" :
mcBlood1.gotoAndPlay(_local1);
drawBlood(mcBlood1, (x1 - 20) + random(40), (y1 - 30) + random(40));
}
};
_global.drawSprite = function (sprite, x1, y1, dir) {
var _local1 = new flash.geom.Matrix();
var _local2 = new flash.geom.Matrix();
_local2.translate(x1 - 78, y1 - 78);
_local1.concat(_local2);
bloodBitmap.draw(sprite, _local1, null, blendMode, null, smooth);
};
mcBloodAll.onRelease = function () {
clicked = false;
};
this.onEnterFrame = function () {
if (!_global.paused) {
counter++;
lastSplat++;
if (Key.isDown(79)) {
dryBlood(0.975);
}
if ((counter % 50) == 0) {
dryBlood(0.92);
}
if (bloodNameCount > 1000) {
bloodNameCount = 1;
}
}
debugText1.text = "\u00A92006 Andr\u00E9 Nguyen SPACE = autofire A = dry blood faster";
};
Symbol 840 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 55
stop();
Symbol 883 MovieClip Frame 1
stop();