Frame 1
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stop();
Frame 5
gotoAndStop ("menu");
Frame 6
stop();
ms = new Sound();
ms.attachSound("menusong");
ms.start();
ms.onSoundComplete = function () {
ms.start();
};
Frame 7
function refreshShit() {
camera.hb.bar._xscale = health;
b2._x = mc._x;
b2._y = mc._y - 150;
if (shot == false) {
bullet._x = mc._x;
bullet._y = mc._y - 150;
b2._rotation = bullet._rotation;
bullet._rotation = mc.arm1._rotation;
bullet._xscale = mc._xscale;
b2._xscale = mc._xscale;
if (bullet._xscale < 0) {
bullet._rotation = bullet._rotation * -1;
}
}
if ((score > scoretopass) and (lastframe == false)) {
nextFrame();
scoretopass = scoretopass * 2;
}
if (health <= 0) {
gotoAndStop ("gameover");
}
curser._x = _xmouse;
curser._y = _ymouse;
speed2 = speed;
if (_xmouse > mc._x) {
mc._xscale = 100;
} else if (_xmouse < mc._x) {
mc._xscale = -100;
}
if (Key.isDown(68)) {
moveRight();
} else if (Key.isDown(65)) {
moveLeft();
}
}
function moveRight() {
if (!camstop2.hitTest(mc._x + 40, mc._y, true)) {
mc._x = mc._x + speed;
}
}
function moveLeft() {
if (!camstop.hitTest(mc._x - 40, mc._y, true)) {
mc._x = mc._x - speed;
}
}
function controlCam() {
_root.camera.scale = _root.camera._xscale;
sky._x = camera._x;
distance = Math.abs(_root.mc._x - _root.camera._x);
if (_root.mc._xscale > 0) {
if ((_root.camera._x < (_root.mc._x + 200)) and (!_root.camera.hitTest(_root.camstop2))) {
_root.camera._x = _root.camera._x + sspeed;
} else if ((_root.camera._x > (_root.mc._x + 213)) and (!_root.camera.hitTest(_root.camstop))) {
_root.camera._x = _root.camera._x - (speed + 0.5);
}
} else if (_root.mc._xscale < 0) {
if ((_root.camera._x > (_root.mc._x - 200)) and (!_root.camera.hitTest(camstop))) {
_root.camera._x = _root.camera._x - sspeed;
} else if ((_root.camera._x < (_root.mc._x - 214)) and (!_root.camera.hitTest(camstop2))) {
_root.camera._x = _root.camera._x + (speed + 0.5);
}
}
if (mc._y < camera._y) {
camera._y = camera._y - speed;
} else if (camera._y < (mc._y - camreduction)) {
camera._y = camera._y + speed;
}
if (distance > 150) {
sspeed = _root.speed2;
} else {
sspeed = 14;
}
}
function enemyAI() {
i = 1;
while (i < maxEnemy) {
if ((Math.abs(this["enemy" + i]._x - mc._x) > 160) and (this["enemy" + i].dead == false)) {
if (this["enemy" + i]._x < mc._x) {
this["enemy" + i]._xscale = -this["enemy" + i].scaling;
this["enemy" + i]._x = this["enemy" + i]._x + this["enemy" + i].enemyspeed;
} else {
this["enemy" + i]._xscale = this["enemy" + i].scaling;
this["enemy" + i]._x = this["enemy" + i]._x - this["enemy" + i].enemyspeed;
}
}
if (this["enemy" + i].hitTest(_root.bullet) and (shot == true)) {
bullet.gotoAndStop(1);
this["enemy" + i].gotoAndPlay("die");
}
if (((Math.abs(this["enemy" + i]._x - mc._x) < 160) and (this["enemy" + i].dead == false)) and (this["enemy" + i].hit == false)) {
this["enemy" + i].gotoAndStop(2);
}
i++;
}
}
function reduceHealth() {
if (health > 0) {
gothurt.start();
health = health - 5;
}
}
function addScore(scoretoadd) {
score = score + scoretoadd;
}
function submitScore() {
ab20_09 = new LoadVars();
ab20_09.z = names;
ab20_09.x = ab20.encodeNum(score);
ab20_09.c = 488;
ab20_09.v = "IOKZWT";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://armorbot.com/mytable/?id=488", "_blank");
}
speed = 9;
stop();
sent = false;
maxEnemy = 7;
lastframe = false;
score = 0;
bcount = 1;
maxBullets = 5;
maxPumpkins = 5;
health = 100;
scoretopass = 50;
shot = false;
var originalspeed = 9;
var speeddecrease = 3;
sp = speed - speeddecrease;
camreduction = 160;
Mouse.hide();
smash = new Sound();
smash.attachSound("smash");
shoot = new Sound();
shoot.attachSound("shoot");
gh = new Sound();
gh.attachSound("ghostHurt");
gd = new Sound();
gd.attachSound("chosedie");
bh = new Sound();
bh.attachSound("bathurt");
gm = new Sound();
gm.attachSound("gamemusic");
gm.start();
gothurt = new Sound();
gothurt.attachSound("gothurt");
gm.onSoundComplete = function () {
gm.start();
};
Instance of Symbol 159 MovieClip "hp" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mc)) {
if (_root.health < 100) {
_root.health = _root.health + 20;
}
if (_root.health > 100) {
_root.health = 100;
}
this._y = 800;
}
}
Instance of Symbol 197 MovieClip "mc" in Frame 7
onClipEvent (enterFrame) {
_root.refreshShit();
}
Instance of Symbol 212 MovieClip "camera" in Frame 7
onClipEvent (load) {
_root.camera._y = _root.mc._y - _root.camreduction;
zoomSpeed = 4;
this._xscale = (this._yscale = 90);
}
onClipEvent (enterFrame) {
_root.controlCam();
_root.enemyAI();
}
Frame 12
lastframe = true;
Frame 13
stop();
Mouse.show();
gm.stop();
stopAllSounds();
ms.start();
ms.onSoundComplete = function () {
ms.start();
};
Symbol 70 Button
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "_blank");
}
Symbol 266 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 77 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 84 MovieClip Frame 81
_root.play();
_root.play();
Symbol 96 MovieClip Frame 75
_parent.nextFrame();
Symbol 101 MovieClip Frame 30
_parent.nextFrame();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
_root.nextFrame();
Symbol 105 MovieClip Frame 1
stop();
Symbol 117 Button
on (release) {
stopAllSounds();
gotoAndStop ("game");
}
Symbol 121 Button
on (release) {
getURL ("http://www.backbreakergames.com/", "_blank");
}
Symbol 124 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 126 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 150 MovieClip Frame 8
if (this.hitTest(_root.mc) and (_root.mc._currentframe == 1)) {
_root.mc.play();
}
Symbol 150 MovieClip Frame 25
_parent.gotoAndStop("walk");
Symbol 157 MovieClip Frame 1
stop();
hit = false;
scaling = 100;
enemyspeed = 3 + random(4);
dead = false;
Symbol 157 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 3
dead = true;
_root.smash.start(0.124);
Symbol 157 MovieClip Frame 9
_root.addScore(10);
Symbol 157 MovieClip Frame 30
t = random(3);
cod = random(100);
if (cod < 10) {
_root.hp._x = _x;
_root.hp._y = _y;
}
if (t == 1) {
this._x = _root.camera._x - 500;
} else {
this._x = _root.camera._x + 500;
}
dead = false;
gotoAndStop ("walk");
Symbol 164 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 28
gotoAndPlay (12);
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 4
gotoAndStop (1);
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 7
_root.bullet.play();
_root.shoot.start();
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 169 MovieClip "arm2" in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_parent.arm1._rotation - 5);
}
Instance of Symbol 179 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(65) || (Key.isDown(68))) {
this.gotoAndPlay("walk");
}
}
Instance of Symbol 193 MovieClip "arm1" in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
myRadians = Math.atan2((_root.mc._y - 150) - _root._ymouse, (_root.camera._x - _root.mc._x) - (_root.camera._x - _root._xmouse));
myDegrees = (myRadians * 180) / Math.PI;
if (_root.mc._xscale > 0) {
if ((this._rotation >= -40) and (this._rotation <= 50)) {
_rotation = (myDegrees * -1);
}
if (_rotation <= -40) {
_rotation = -40;
} else if (_rotation >= 50) {
_rotation = 50;
}
} else {
if ((this._rotation <= 50) and (this._rotation >= -40)) {
_rotation = (myDegrees - 180);
}
if (_rotation >= 50) {
_rotation = 50;
} else if (_rotation <= -40) {
_rotation = -40;
}
}
}
onClipEvent (mouseDown) {
this.play();
_parent.arm2.play();
}
Instance of Symbol 195 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_parent.arm1._rotation - 7);
}
Symbol 197 MovieClip Frame 2
_root.reduceHealth();
Symbol 212 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local5 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local5);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local5;
_parent._yscale = 100 * _local4;
_root.camx = _x;
_root.camy = _y;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
stop();
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 216 MovieClip Frame 1
stop();
_root.shot = false;
Symbol 216 MovieClip Frame 2
_root.shot = true;
_root.b2.play();
Symbol 222 MovieClip Frame 8
if (this.hitTest(_root.mc) and (_root.mc._currentframe == 1)) {
_root.mc.play();
}
Symbol 222 MovieClip Frame 40
_parent.gotoAndStop("walk");
Symbol 223 MovieClip Frame 1
stop();
hit = false;
scaling = 60;
enemyspeed = 3 + random(2);
dead = false;
Symbol 223 MovieClip Frame 3
dead = true;
_root.bh.start();
Symbol 223 MovieClip Frame 15
_root.addScore(10);
Symbol 223 MovieClip Frame 35
t = random(3);
cod = random(100);
if (cod < 20) {
_root.hp._x = _x;
_root.hp._y = _root.mc_y;
}
if (t == 1) {
this._x = _root.camera._x - 600;
} else {
this._x = _root.camera._x + 600;
}
dead = false;
gotoAndStop ("walk");
Symbol 227 MovieClip Frame 7
if (this.hitTest(_root.mc) and (_root.mc._currentframe == 1)) {
_root.mc.play();
}
Symbol 227 MovieClip Frame 23
_parent.gotoAndStop("walk");
Symbol 235 MovieClip Frame 1
if (hitCount == undefined) {
hitCount = 0;
}
hit = false;
stop();
scaling = 100;
enemyspeed = 3 + random(2);
dead = false;
Instance of Symbol 227 MovieClip in Symbol 235 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.bullet)) {
_parent.play();
}
}
Symbol 235 MovieClip Frame 3
_root.gh.start();
hit = true;
Symbol 235 MovieClip Frame 7
hitCount++;
if (hitCount < 2) {
gotoAndStop ("walk");
}
Symbol 235 MovieClip Frame 8
dead = true;
_root.gd.start();
Symbol 235 MovieClip Frame 15
_root.addScore(20);
Symbol 235 MovieClip Frame 35
t = random(3);
cod = random(100);
if (cod < 20) {
_root.hp._x = _x;
_root.hp._y = _root.mc._y;
}
if (t == 1) {
this._x = _root.camera._x - 700;
} else {
this._x = _root.camera._x + 700;
}
hitCount = 0;
dead = false;
gotoAndStop ("walk");
Symbol 246 MovieClip Frame 22
gotoAndPlay (1);
Symbol 247 MovieClip Frame 11
if (this.hitTest(_root.mc) and (_root.mc._currentframe == 1)) {
_root.mc.play();
}
Symbol 247 MovieClip Frame 23
_parent.gotoAndStop("walk");
Symbol 251 MovieClip Frame 1
if (hitCount == undefined) {
hitCount = 0;
}
hit = false;
stop();
scaling = 90;
enemyspeed = 3 + random(2);
dead = false;
Symbol 251 MovieClip Frame 3
hit = true;
_root.bh.start();
Symbol 251 MovieClip Frame 7
hitCount++;
if (hitCount < 3) {
gotoAndStop ("walk");
}
Symbol 251 MovieClip Frame 8
dead = true;
Symbol 251 MovieClip Frame 19
_root.addScore(25);
Symbol 251 MovieClip Frame 39
t = random(3);
cod = random(100);
if (cod < 20) {
_root.hp._x = _x;
_root.hp._y = _root.mc._y;
}
if (t == 1) {
this._x = _root.camera._x - 700;
} else {
this._x = _root.camera._x + 700;
}
hitCount = 0;
dead = false;
gotoAndStop ("walk");
Symbol 260 Button
on (release) {
if (sent == false) {
_root.submitScore();
sent = true;
}
}
Symbol 262 Button
on (release) {
stopAllSounds();
gotoAndStop ("game");
}
Symbol 264 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}