Frame 1
stop();
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 198 MovieClip in Frame 3
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html");
}
Frame 4
stop();
Frame 5
attachMovie("Eye1", "eye", 13000);
attachMovie("Menu", "menu", 20000);
attachMovie("score", "score", 24000);
attachMovie("bar1", "bar", 30000);
attachMovie("Health1", "healthbar", 22000);
attachMovie("TestHealth", "health", 21000);
attachMovie("Slice", "Slice", 17000);
attachMovie("Dropscore", "Dropscore", 23000);
attachMovie("shield", "shield", 13500);
attachMovie("speedup", "speedup", 14000);
attachMovie("mini", "mini", 15000);
attachMovie("background", "background", 1);
eyeSpeed = 0.8;
friction = 0.9;
if (normal) {
dropspeed = 4.4;
badguyspeed = 0.8;
Bonuschance = 700;
}
if (difficult) {
dropspeed = 4.4;
badguyspeed = 2;
Bonuschance = 800;
}
if (dontblink) {
dropspeed = 4.4;
badguyspeed = 3.5;
bonuschance = 600;
}
function stopintromusic() {
intromusic.stop(["intromusic"]);
}
function unloadgame() {
unloadMovie ("eye");
unloadMovie ("menu");
unloadMovie ("score");
unloadMovie ("bar");
unloadMovie ("healthbar");
unloadMovie ("health");
unloadMovie ("Stab");
unloadMovie ("Slice");
unloadMovie ("Dropscore");
unloadMovie ("shield");
unloadMovie ("speedup");
unloadMovie ("mini");
unloadMovie ("cup");
unloadMovie ("dna");
unloadMovie ("contact");
unloadMovie ("background");
bgmusic.stop(["bgmusic"]);
var _local1 = 0;
while (_local1 < Maxneedle) {
unloadMovie ("needle" + _local1);
_local1++;
}
_local1 = 0;
while (_local1 < Maxglass) {
unloadMovie ("glass" + _local1);
_local1++;
}
_local1 = 0;
while (_local1 < Maxdrops) {
unloadMovie ("drop" + _local1);
_local1++;
}
}
function scoreTally() {
if (normal) {
moddedScore = (totalScore * 1) * 100;
}
if (difficult) {
moddedScore = (totalScore * 1.5) * 100;
}
if (dontblink) {
moddedScore = (totalScore * 2) * 100;
}
}
function enterdrops() {
var _local2 = 0;
while (_local2 < Maxdrops) {
attachMovie("drop1", "drop" + _local2, 1200 + _local2);
var _local3 = _root["drop" + _local2];
_local3._x = Math.round((Math.random() * 520) + 15);
_local3._y = -20;
_local3._visible = true;
_local3.alive = false;
bgmusic.start(0, 9999);
_local2++;
}
}
function enterglass() {
var _local3 = 0;
while (_local3 < Maxglass) {
attachMovie("glass1", "glass" + _local3, 1210 + _local3);
var _local2 = _root["glass" + _local3];
_local2._x = Math.round((Math.random() * 520) + 15);
_local2._y = -20;
_local2._visible = false;
_local2.alive = false;
_local2.gotoAndPlay(Math.floor(Math.random() * 4));
_local3++;
}
}
function enterneedle() {
var _local3 = 0;
while (_local3 < Maxneedle) {
attachMovie("needle1", "needle" + _local3, 1220 + _local3);
var _local2 = _root["needle" + _local3];
var _local4 = Math.floor(1 + (Math.random() * 2));
if (_local4 == 1) {
_local2._x = 185;
} else {
_local2._x = 365;
}
_local2._y = -200;
_local2._visible = true;
_local2.alive = false;
_local3++;
}
}
function entercontact() {
attachMovie("contact", "contact", 1302);
contact._x = (Math.random() * 450) + 60;
contact._y = -10;
contact._visible = true;
contact.active = false;
contact.alive = false;
}
function enterdna() {
attachMovie("dna", "dna", 1299);
dna._x = 590;
dna._y = (Math.random() * 300) + 100;
dna._visible = true;
dna.active = false;
dna.alive = false;
}
function entercup() {
attachMovie("cup", "cup", 1307);
cup._x = -20;
cup._y = (Math.random() * 300) + 100;
cup._visible = true;
cup.active = false;
cup.alive = false;
}
function dropsappear() {
var _local2 = 0;
while (_local2 < Maxdrops) {
var _local3 = _root["drop" + _local2];
if (Math.round(Math.random() * 100) == 3) {
_local3.alive = true;
_local3._visible = true;
}
_local2++;
}
}
function dropsmove() {
var _local3 = 0;
while (_local3 < Maxdrops) {
var _local2 = _root["drop" + _local3];
if (_local2.alive) {
_local2._y = _local2._y + dropspeed;
}
if (_local2._y > 650) {
_local2.alive = false;
_local2._visible = false;
_local2._x = Math.round((Math.random() * 520) + 15);
_local2._y = -20;
}
if (_local2.hitTest(eye)) {
totalScore++;
_local2.alive = false;
_local2._visible = false;
_local2._x = Math.round((Math.random() * 520) + 15);
_local2._y = -20;
_root.score._xscale = _root.score._xscale + 1;
badguyspeed = badguyspeed + 0.03;
Maxglass = Maxglass + 0.15;
Maxneedle = Maxneedle + 0.03;
Dropscore.display = true;
Dropscore._visible = true;
Dropscore._x = eye._x - 10;
Dropscore._y = eye._y + 20;
Dropscore._visible = true;
Dropscore.gotoAndPlay(2);
dropSound.start(0, 1);
if (score._xscale >= 100) {
unloadgame();
gotoAndStop (6);
}
}
_local3++;
}
}
function glassappear() {
var _local2 = 0;
while (_local2 < Maxglass) {
var _local3 = _root["glass" + _local2];
if (Math.round(Math.random() * 200) == 3) {
_local3.alive = true;
_local3._visible = true;
}
_local2++;
}
}
function glassmove() {
var _local3 = 0;
while (_local3 < Maxglass) {
var _local2 = _root["glass" + _local3];
if (_local2.alive) {
_local2._y = _local2._y + (badguyspeed + 3.5);
}
if (_local2._y > 620) {
_local2.alive = false;
_local2._visible = false;
_local2._x = Math.round((Math.random() * 520) + 15);
_local2._y = -20;
}
if (eye.hitTest(_local2._x, _local2._y, true)) {
_root.health._xscale = _root.health._xscale + -10;
_local2.alive = false;
_local2._visible = false;
_local2._x = Math.round((Math.random() * 520) + 15);
_local2._y = -20;
Slice.display = true;
Slice._x = eye._x - 10;
Slice._y = eye._y - 10;
Slice._visible = true;
Slice.gotoAndPlay(2);
scythe.start(0, 1);
cuphit();
dnahit();
contacthitglass();
if (health._xscale <= 0) {
unloadgame();
gotoAndStop (7);
}
}
_local3++;
}
}
function needleappear() {
var _local3 = 0;
while (_local3 < Maxneedle) {
var _local2 = _root["needle" + _local3];
if (Math.round(Math.random() * 200) == 3) {
_local2.alive = true;
_local2._visible = true;
_local2.active = true;
}
_local3++;
}
}
function needlemove() {
var _local3 = 0;
while (_local3 < Maxneedle) {
var _local2 = _root["needle" + _local3];
if (_local2.alive) {
_local2._y = _local2._y + (badguyspeed + 9);
}
if (_local2._y > 740) {
_local2.alive = false;
_local2._visible = false;
_local2.active = false;
var _local4 = Math.floor(1 + (Math.random() * 2));
if (_local4 == 1) {
_local2._x = 185;
} else {
_local2._x = 365;
}
_local2._y = -200;
}
if (_local2.hitTest(eye) && (_local2.active)) {
_local2.active = false;
_local2.alive = true;
_local2._visible = true;
if (!contact.active) {
eye.gotoAndPlay(30);
}
_root.health._xscale = _root.health._xscale + -30;
splat.start(0, 1);
cuphit();
dnahit();
contacthitneedle();
if (health._xscale <= 0) {
unloadgame();
gotoAndStop (7);
}
}
_local3++;
}
}
function contacthitglass() {
if (contact.active) {
health._xscale = health._xscale + 10;
attachMovie("contact", "contact", 1302);
contact._x = Math.round((Math.random() * 450) + 60);
contact._y = -10;
contact._visible = true;
contact.active = false;
contact.alive = false;
shield._visible = false;
shield.display = false;
}
}
function contacthitneedle() {
if (contact.active) {
health._xscale = health._xscale + 30;
attachMovie("contact", "contact", 1302);
contact.x = Math.round((Math.random() * 450) + 60);
contact.y = -10;
contact._visible = true;
contact.active = false;
contact.alive = false;
shield._visible = false;
shield.display = false;
}
}
function dnahit() {
if (dna.active) {
eye._xscale = 100;
eye._yscale = 100;
attachMovie("dna", "dna", 1299);
dna._x = 570;
dna._y = (Math.random() * 300) + 100;
dna._visible = true;
dna.active = false;
dna.alive = false;
}
}
function cuphit() {
if (cup.active && (!contact.active)) {
eyeSpeed = 0.8;
attachMovie("cup", "cup", 1298);
cup._x = -20;
cup._y = (Math.random() * 300) + 100;
cup._visible = true;
cup.active = false;
cup.alive = false;
}
}
function cupspawn() {
if (Math.round(Math.random() * Bonuschance) == 1) {
cup.alive = true;
}
if (cup.alive) {
cup._x = cup._x + 3;
if (cup._x > 550) {
if (!cup.active) {
cup.alive = false;
cup._x = -20;
cup._y = (Math.random() * 350) + 100;
cupspawn();
}
}
if (cup.hitTest(eye)) {
cup.alive = true;
cup._visible = false;
cup.active = true;
eyeSpeed = 1.1;
speedup.display = true;
speedup._x = eye._x;
speedup._y = eye._y;
speedup._visible = true;
speedup.gotoAndPlay(1);
space.start(0, 1);
}
}
}
function dnaspawn() {
if (Math.round(Math.random() * Bonuschance) == 1) {
dna.alive = true;
}
if (dna.alive) {
dna._x = dna._x - 3;
if (!dna.active) {
if (dna._x < 0) {
dna.alive = false;
dna._x = 570;
dna._y = (Math.random() * 300) + 100;
dnaspawn();
}
}
if (dna.hitTest(eye)) {
dna.alive = true;
dna._visible = false;
dna.active = true;
eye._xscale = 75;
eye._yscale = 75;
mini.display = true;
mini._x = eye._x;
mini._y = eye._y;
mini._visible = true;
mini.gotoAndPlay(1);
space.start(0, 1);
}
}
}
function contactspawn() {
if (Math.round(Math.random() * Bonuschance) == 1) {
contact.alive = true;
}
if (contact.alive) {
contact._y = contact._y + 3;
if (!contact.active) {
if (contact._y > 650) {
contact.alive = false;
contact._x = (Math.random() * 450) + 60;
contact._y = -30;
contactspawn();
}
}
}
if (contact.hitTest(eye)) {
contact.alive = true;
contact._visible = false;
contact.active = true;
shield._visible = true;
shield.display = true;
shield.gotoAndPlay(2);
space.start(0, 1);
}
}
function eyemove() {
eye._rotation = 0;
dx = dx * friction;
dy = dy * friction;
eye._x = eye._x + dx;
eye._y = eye._y + dy;
if (eye._x < 34) {
eye._x = 34;
}
if (eye._x > (567 - eye._width)) {
eye._x = 567 - eye._width;
}
if (eye._y < 105) {
eye._y = 105;
}
if (eye._y > (660 - eye._height)) {
eye._y = 660 - eye._height;
}
if (Key.isDown(38)) {
dy = dy - eyeSpeed;
} else if (Key.isDown(40)) {
dy = dy + eyeSpeed;
}
if (Key.isDown(37)) {
dx = dx - eyeSpeed;
eye._rotation = -30;
} else if (Key.isDown(39)) {
dx = dx + eyeSpeed;
eye._rotation = 30;
}
}
function everyframe() {
shield._x = eye._x + 1;
shield._y = eye._y - 50;
sheild._xscale = eye._xscale;
sheild._yscale = eye._yscale;
if (!contact.alive) {
if (!contact.active) {
contactspawn();
}
}
if (!cup.alive) {
if (!cup.active) {
cupspawn();
}
}
if (!dna.alive) {
if (!dna.active) {
dnaspawn();
}
}
}
totalScore = 0;
moddedScore = 0;
menu._x = 0;
menu._y = 0;
splat = new Sound();
splat.attachSound("splat");
dropSound = new Sound();
dropSound.attachSound("dropsound");
scythe = new Sound();
scythe.attachSound("scythe");
space = new Sound();
space.attachSound("space");
bgmusic = new Sound();
bgmusic.attachSound("bgmusic");
dx = 0;
dy = 0;
eye._x = 275;
eye._y = 600;
eye._xscale = 100;
eye._yscale = 100;
healthbar._x = 120;
healthbar._y = 40;
health._x = 120;
health._y = 40;
health._xscale = 100;
bar._x = 100;
bar._y = 620;
score._xscale = 0;
score._x = 100;
score._y = 620;
shield.x = eye._x + 1;
shield.y = eye._y - 100;
shield._visible = false;
shield.display = false;
stab.x = eye._x + 10;
stab.y = eye._y - 100;
stab.display = false;
stab._visible = false;
Slice.x = eye._x + 10;
Slice.y = eye._y - 100;
Slice.display = false;
Slice._visible = false;
speedup.x = eye._x;
speedup.y = eye._y;
speedup.display = false;
speedup._visible = false;
mini.x = eye._x;
mini.y = eye._y;
mini.display = false;
mini._visible = false;
Dropscore.x = eye._x + 10;
Dropscore.y = eye._y - 100;
Dropscore.display = false;
Dropscore._visible = false;
Maxdrops = 5;
Maxglass = 13;
Maxneedle = 1;
Maxcup = 1;
Instance of Symbol 85 MovieClip [main] in Frame 5
onClipEvent (load) {
_root.enterdrops();
_root.enterglass();
_root.enterneedle();
_root.entercontact();
_root.enterdna();
_root.entercup();
}
onClipEvent (enterFrame) {
_root.dropsappear();
_root.dropsmove();
_root.glassappear();
_root.glassmove();
_root.eyemove();
_root.everyframe();
_root.needleappear();
_root.needlemove();
_root.cupspawn();
_root.dnaspawn();
_root.contactspawn();
_root.scoreTally();
shield._x = eye._x + 1;
shield._y = eye._y - 50;
sheild._xscale = eye._xscale;
sheild._yscale = eye._yscale;
if (!contact.alive) {
contactspawn();
}
if (!cup.alive) {
cupspawn();
}
if (!dna.alive) {
dnaspawn();
}
}
Frame 6
intromusic.start(0, 9999);
Frame 7
intromusic.start(0, 9999);
Symbol 32 MovieClip [Stab] Frame 1
stop();
Symbol 34 MovieClip [Slice] Frame 1
stop();
Symbol 34 MovieClip [Slice] Frame 14
gotoAndPlay (1);
Symbol 37 MovieClip [Dropscore] Frame 1
stop();
Symbol 37 MovieClip [Dropscore] Frame 24
gotoAndStop (1);
Symbol 39 MovieClip [shield] Frame 1
stop();
Symbol 39 MovieClip [shield] Frame 30
gotoAndPlay (2);
Symbol 41 MovieClip [speedup] Frame 26
stop();
Symbol 43 MovieClip [mini] Frame 26
stop();
Symbol 49 MovieClip [background] Frame 1
this.cacheAsBitmap();
Symbol 78 MovieClip [Eye1] Frame 21
gotoAndPlay (1);
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 100
stop();
Symbol 111 Button
on (release) {
_root.play();
}
Symbol 112 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
logoSpin.gotoAndPlay(PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 112 MovieClip Frame 2
gotoAndPlay (1);
Symbol 117 Button
on (release) {
getURL ("http://www.heartlessgeeks.com");
}
Symbol 120 Button
on (release) {
getURL ("http://www.armorgames.com");
}
Symbol 124 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 131 MovieClip Frame 81
_root.play();
_root.play();
Symbol 135 Button
on (release) {
normal = true;
difficult = false;
dontblink = false;
gotoAndStop ("game");
}
Symbol 136 Button
on (release) {
difficult = true;
normal = false;
dontblink = false;
gotoAndStop ("game");
}
Symbol 137 Button
on (release) {
dontblink = true;
normal = false;
difficult = false;
gotoAndStop ("game");
}
Symbol 140 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 147 Button
on (release) {
getURL ("http://www.armorgames.com");
}
Symbol 200 Button
on (release) {
gotoAndStop ("splash");
}
Symbol 211 Button
on (release) {
gotoAndStop ("splash");
}
Symbol 219 Button
on (release) {
if (_root.playerName == "") {
_root.playerName = "No name entered";
}
ab20_09 = new LoadVars();
ab20_09.z = playerName;
ab20_09.x = _root.moddedScore;
ab20_09.c = 467;
ab20_09.v = "SELLXL";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.playerName = "";
_root.moddedScore = 0;
var i = 0;
while (i < 50) {
i++;
}
if (i >= 50) {
getURL ("http://armorbot.com/mytable/?id=467");
}
}
Symbol 227 Button
on (release) {
gotoAndStop ("splash");
}