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);
Instance of Symbol 115 MovieClip in Frame 1
on (release) {
getURL ("http://www.lostsolution.net", _blank);
}
Instance of Symbol 162 MovieClip in Frame 1
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html", _blank);
}
Instance of Symbol 165 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 115 MovieClip in Frame 138
on (release) {
getURL ("http://www.lostsolution.net", _blank);
}
Frame 277
var nrOfLevels = 0;
var theMode = "none";
var theCheat = "none";
var reedHammerUnlocked = false;
var scoreUnlocked = false;
var allUnlocked = false;
var mainMenu = false;
var theMusic = new Sound();
theMusic.attachSound("mainMusic");
theMusic.start(0, 9999999999);
Frame 278
stop();
_root.mainMenu = true;
onEnterFrame = function () {
if (Key.isDown(67)) {
if (_root.mainMenu == true) {
_root.gotoAndStop("cheatMenu");
}
}
};
Frame 287
_root.mainMenu = false;
Frame 299
stop();
stop();
Frame 323
stop();
Frame 324
stop();
Frame 337
stop();
var scrollLeftKey = 65;
var scrollRightKey = 83;
var dropItemKey = 32;
var menuKey = 77;
var upgradesKey = 85;
var toggleWeapsKey = 32;
var wall1HitSpider = false;
var wall2HitSpider = false;
var cursorType = "meleeCursor";
var hammerGot = true;
var malletGot = false;
var toyHammerGot = false;
var carrotGot = false;
var lollypopGot = false;
var hockeyStickGot = false;
var spoonGot = false;
var maceGot = false;
var boneGot = false;
var staffGot = false;
var fireSpellsGot = false;
var windSpellsGot = false;
var reedHammerGot = false;
var weightGot = false;
var fireSpells = 0;
var windSpells = 0;
var weaponType = "meleeWeapons";
var meleeNr = 0;
var rangedNr = 0;
var meleeWeapons = new Array("hammer", "mallet", "toyHammer", "carrot", "lollypop", "hockeyStick", "spoon", "mace", "bone", "staff", "reedHammer");
var rangedWeapons = new Array("none", "fireSpell", "windSpell", "weight");
var mana = 20;
var maxMana = 20;
var manaUpgrade = 1;
var gamePaused = false;
var menuOpen = false;
var upgradesMenuOpen = false;
var musicVolume = 100;
var effectsVolume = 100;
var showCursor = false;
var menuVar = false;
var menuVar2 = false;
var difficulty = 1;
var spiderNr = 1;
var spawnTime = 4.5;
var baseHealth = 100;
var qualitySetting = "HIGH";
var levelCap = 8;
var spidersKilled = 0;
var totalSpidersKilled = 0;
var score = 0;
var waveBonus = 25;
var scoreMultiplier = 1;
var levelNr = 1;
var nextLevel = true;
var spidersSpawned = 0;
var equippedWeapon = "hammer";
var equippedMeleeWeapon = "hammer";
var equippedRangedWeapon = "none";
_root._quality = "HIGH";
var gameOver = false;
spawn = function () {
_root.pathBase.pathBase2.attachMovie("unit_spider", "spider" + _root.spiderNr, _root.spiderNr);
_root.pathBase.pathBase2["spider" + _root.spiderNr]._x = 0;
_root.pathBase.pathBase2["spider" + _root.spiderNr]._y = 250;
_root.spiderNr++;
};
spawn = function () {
_root.pathBase.pathBase2.attachMovie("unit_spider", "spider" + _root.spiderNr, _root.spiderNr);
_root.pathBase.pathBase2["spider" + _root.spiderNr]._x = 0;
_root.pathBase.pathBase2["spider" + _root.spiderNr]._y = 285;
_root.spiderNr++;
};
var spawnInterval;
spawnInterval = setInterval(spawn, _root.spawnTime * 1000);
spawn2 = function () {
_root.pathBase.pathBase2.attachMovie("unit_spider2", "spider" + _root.spiderNr, _root.spiderNr);
_root.pathBase.pathBase2["spider" + _root.spiderNr]._x = 1325;
_root.pathBase.pathBase2["spider" + _root.spiderNr]._y = 290;
_root.spiderNr++;
};
var spawn2Interval;
spawn2Interval = setInterval(spawn2, _root.spawnTime * 1500);
var mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
if (delta > 0) {
if (_root.weaponType == "meleeWeapons") {
if (_root.meleeNr < 10) {
_root.meleeNr++;
}
if (_root.meleeNr == 1) {
if (_root.malletGot == true) {
_root.equippedWeapon = "mallet";
_root.equippedMeleeWeapon = "mallet";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 2) {
if (_root.toyHammerGot == true) {
_root.equippedWeapon = "toyHammer";
_root.equippedMeleeWeapon = "toyHammer";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 3) {
if (_root.carrotGot == true) {
_root.equippedWeapon = "carrot";
_root.equippedMeleeWeapon = "carrot";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 4) {
if (_root.lollypopGot == true) {
_root.equippedWeapon = "lollypop";
_root.equippedMeleeWeapon = "lollypop";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 5) {
if (_root.hockeyStickGot == true) {
_root.equippedWeapon = "hockeyStick";
_root.equippedMeleeWeapon = "hockeyStick";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 6) {
if (_root.spoonGot == true) {
_root.equippedWeapon = "spoon";
_root.equippedMeleeWeapon = "spoon";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 7) {
if (_root.maceGot == true) {
_root.equippedWeapon = "mace";
_root.equippedMeleeWeapon = "mace";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 8) {
if (_root.boneGot == true) {
_root.equippedWeapon = "bone";
_root.equippedMeleeWeapon = "bone";
} else {
_root.meleeNr++;
}
}
if (_root.meleeNr == 9) {
if (_root.staffGot == true) {
_root.equippedWeapon = "staff";
_root.equippedMeleeWeapon = "staff";
}
}
if (_root.meleeNr == 10) {
if (_root.reedHammerGot == true) {
_root.equippedWeapon = "reedHammer";
_root.equippedMeleeWeapon = "reedHammer";
}
}
} else if (_root.weaponType == "rangedWeapons") {
if (_root.rangedNr < 4) {
_root.rangedNr++;
}
if (_root.rangedNr == 1) {
if (_root.fireSpellsGot == true) {
_root.equippedWeapon = "fireSpell";
_root.equippedRangedWeapon = "fireSpell";
} else {
_root.rangedNr++;
}
}
if (_root.rangedNr == 2) {
if (_root.windSpellsGot == true) {
_root.equippedWeapon = "windSpell";
_root.equippedRangedWeapon = "windSpell";
} else {
_root.rangedNr++;
}
}
if (_root.rangedNr == 3) {
if (_root.weightGot == true) {
_root.equippedWeapon = "weight";
_root.equippedRangedWeapon = "weight";
}
}
}
} else if (_root.weaponType == "meleeWeapons") {
if (_root.meleeNr > 0) {
_root.meleeNr--;
}
if (_root.meleeNr == 10) {
if (_root.reedHammerGot == true) {
_root.equippedWeapon = "reedHammer";
_root.equippedMeleeWeapon = "reedHammer";
}
}
if (_root.meleeNr == 9) {
if (_root.staffGot == true) {
_root.equippedWeapon = "staff";
_root.equippedMeleeWeapon = "staff";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 8) {
if (_root.boneGot == true) {
_root.equippedWeapon = "bone";
_root.equippedMeleeWeapon = "bone";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 7) {
if (_root.maceGot == true) {
_root.equippedWeapon = "mace";
_root.equippedMeleeWeapon = "mace";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 6) {
if (_root.spoonGot == true) {
_root.equippedWeapon = "spoon";
_root.equippedMeleeWeapon = "spoon";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 5) {
if (_root.hockeyStickGot == true) {
_root.equippedWeapon = "hockeyStick";
_root.equippedMeleeWeapon = "hockeyStick";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 4) {
if (_root.lollypopGot == true) {
_root.equippedWeapon = "lollypop";
_root.equippedMeleeWeapon = "lollypop";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 3) {
if (_root.carrotGot == true) {
_root.equippedWeapon = "carrot";
_root.equippedMeleeWeapon = "carrot";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 2) {
if (_root.toyHammerGot == true) {
_root.equippedWeapon = "toyHammer";
_root.equippedMeleeWeapon = "toyHammer";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 1) {
if (_root.malletGot == true) {
_root.equippedWeapon = "mallet";
_root.equippedMeleeWeapon = "mallet";
} else {
_root.meleeNr--;
}
}
if (_root.meleeNr == 0) {
if (_root.hammerGot == true) {
_root.equippedWeapon = "hammer";
_root.equippedMeleeWeapon = "hammer";
}
}
} else if (_root.weaponType == "rangedWeapons") {
if (_root.rangedNr > 1) {
_root.rangedNr--;
}
if (_root.rangedNr == 3) {
if (_root.weightGot == true) {
_root.equippedWeapon = "weight";
_root.equippedRangedWeapon = "weight";
} else {
_root.rangedNr--;
}
}
if (_root.rangedNr == 2) {
if (_root.windSpellsGot == true) {
_root.equippedWeapon = "windSpell";
_root.equippedRangedWeapon = "windSpell";
} else {
_root.rangedNr--;
}
}
if (_root.rangedNr == 1) {
if (_root.fireSpellsGot == true) {
_root.equippedWeapon = "fireSpell";
_root.equippedRangedWeapon = "fireSpell";
} else {
_root.rangedNr--;
}
}
}
};
Mouse.addListener(mouseListener);
if (_root.allUnlocked == true) {
var hammerGot = true;
var malletGot = true;
var toyHammerGot = true;
var carrotGot = true;
var lollypopGot = true;
var hockeyStickGot = true;
var spoonGot = true;
var maceGot = true;
var boneGot = true;
var staffGot = true;
var fireSpellsGot = true;
var windSpellsGot = true;
var weightGot = true;
var fireSpells = 100;
var windSpells = 100;
}
if (_root.reedHammerUnlocked == true) {
_root.reedHammerGot = true;
}
if (_root.scoreUnlocked == true) {
_root.score = 500;
}
Instance of Symbol 284 MovieClip "pathBase" in Frame 337
onClipEvent (load) {
var scrollSpeed = 12;
var keyPressed = false;
}
onClipEvent (enterFrame) {
if (_root.levelNr == (_root.nrOfLevels + 1)) {
_root.gotoAndStop("modeBeat");
}
_root.theMusic.setVolume(_root.musicVolume);
if ((Key.isDown(_root.scrollLeftKey) && (_root.pathBase._x <= -5)) && (_root.gamePaused == false)) {
this._x = this._x + scrollSpeed;
_root.bgElements._x = _root.bgElements._x + (scrollSpeed + 1.5);
_root.grass._x = _root.grass._x + (scrollSpeed - 1.5);
_root.arrowLeft._visible = true;
_root.arrowRight._visible = false;
} else if ((Key.isDown(_root.scrollRightKey) && (_root.pathBase._x >= -646.95)) && (_root.gamePaused == false)) {
this._x = this._x - scrollSpeed;
_root.bgElements._x = _root.bgElements._x - (scrollSpeed + 1.5);
_root.grass._x = _root.grass._x - (scrollSpeed - 1.5);
_root.arrowRight._visible = true;
_root.arrowLeft._visible = false;
} else {
_root.arrowLeft._visible = false;
_root.arrowRight._visible = false;
}
if (Key.isDown(_root.menuKey)) {
if (((_root.menuOpen == false) && (_root.menuVar == false)) && (_root.upgradesMenuOpen == false)) {
_root.menuVar = true;
_root.gameMenu.gotoAndPlay("appear");
_root.gamePaused = true;
} else if (((_root.menuOpen == true) && (_root.menuVar2 == false)) && (_root.upgradesMenuOpen == false)) {
_root.menuVar2 = true;
_root.gameMenu.gotoAndPlay("disappear");
_root.gamePaused = false;
}
}
if (Key.isDown(_root.upgradesKey)) {
if (((_root.menuOpen == false) && (_root.menuVar == false)) && (_root.upgradesMenuOpen == false)) {
_root.menuVar = true;
_root.upgradesMenu.gotoAndPlay("appear");
_root.gamePaused = true;
} else if (((_root.menuOpen == false) && (_root.menuVar2 == false)) && (_root.upgradesMenuOpen == true)) {
_root.menuVar2 = true;
_root.upgradesMenu.gotoAndPlay("disappear");
_root.gamePaused = false;
}
}
if (_root.levelCap == _root.spidersSpawned) {
clearInterval(_root.spawnInterval);
clearInterval(_root.spawn2Interval);
}
if ((_root.spidersKilled >= _root.levelCap) && (_root.nextLevel == true)) {
_root.nextLevel = false;
_root.scoreMultiplier = _root.scoreMultiplier + 0.1;
_root.score = _root.score + _root.waveBonus;
_root.waveBonus = _root.waveBonus + 5;
_root.spidersKilled = 0;
_root.difficulty = _root.difficulty + 0.2;
_root.levelNr++;
_root.levelCap = _root.levelCap + 2;
_root.spawnTime = _root.spawnTime - 0.1;
_root.spidersSpawned = 0;
clearInterval(_root.spawnInterval);
clearInterval(_root.spawn2Interval);
this.blendMode = "subtract";
_root.grass.blendMode = "subtract";
_root.bgElements.blendMode = "subtract";
_root._quality = "LOW";
_root.pathBase.gotoAndStop("rumble");
_root.levelUp.play();
}
if (Key.isDown(_root.toggleWeapsKey) && (keyPressed == false)) {
keyPressed = true;
if (_root.weaponType == "meleeWeapons") {
_root.weaponType = "rangedWeapons";
_root.equippedWeapon = _root.equippedRangedWeapon;
_root.cursorType = "spellCursor";
} else if (_root.weaponType == "rangedWeapons") {
_root.weaponType = "meleeWeapons";
_root.equippedWeapon = _root.equippedMeleeWeapon;
_root.cursorType = "meleeCursor";
}
}
if ((!Key.isDown(_root.toggleWeapsKey)) && (keyPressed == true)) {
keyPressed = false;
}
}
Instance of Symbol 287 MovieClip "arrowLeft" in Frame 337
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 287 MovieClip "arrowRight" in Frame 337
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 289 MovieClip in Frame 337
onClipEvent (enterFrame) {
_root.levelDisplay.text = "Level " + _root.levelNr;
_root.killsDisplay.text = "Kills: " + _root.totalSpidersKilled;
_root.scoreDisplay.text = "Score: " + _root.score;
_root.healthDisplay.text = _root.baseHealth + "%";
}
Instance of Symbol 293 MovieClip "healthBar" in Frame 337
onClipEvent (enterFrame) {
if (_root.baseHealth < 0) {
_root.baseHealth = 0;
_root.pathBase.pathBase2.house.gotoAndStop("destroy");
}
_root.baseHealth_tb.text = _root.baseHealth + "%";
this.gotoAndStop(_root.baseHealth);
}
Instance of Symbol 302 MovieClip in Frame 337
onClipEvent (enterFrame) {
if (_root.mana < 0) {
_root.mana = 0;
}
_root.mana_tb.text = (_root.mana + " / ") + _root.maxMana;
if (_root.mana > 0) {
this.gotoAndStop((_root.mana / _root.maxMana) * 100);
} else if (_root.mana == 0) {
this.gotoAndStop(1);
}
}
Instance of Symbol 476 MovieClip "equippedWeaponDisplay" in Frame 337
onClipEvent (enterFrame) {
if (_root.weaponType == "meleeWeapons") {
_root.equippedWeaponDisplay.gotoAndStop(_root.equippedMeleeWeapon);
}
if (_root.weaponType == "rangedWeapons") {
_root.equippedWeaponDisplay.gotoAndStop(_root.equippedRangedWeapon);
}
}
Instance of Symbol 517 MovieClip "hammer" in Frame 337
onClipEvent (load) {
var lifted = true;
}
onClipEvent (enterFrame) {
if (_root.showCursor == false) {
if (_root.cursorType == "meleeCursor") {
_root.spellCursor._x = 83;
_root.spellCursor._y = -218.4;
_root.cursor._x = -147;
_root.cursor._y = 130.7;
this._y = _root._ymouse;
this._x = _root._xmouse;
Mouse.hide();
}
}
}
onClipEvent (mouseMove) {
if (_root.showCursor == false) {
if (_root.cursorType == "meleeCursor") {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
}
}
onClipEvent (mouseDown) {
if (_root.showCursor == false) {
if (_root.cursorType == "meleeCursor") {
if (lifted == true) {
this.gotoAndStop("smash");
lifted = false;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.equippedWeapon == "hammer") {
this.hammer2.hammer3.gotoAndStop(1);
} else if (_root.equippedWeapon == "lollypop") {
this.hammer2.hammer3.gotoAndStop(2);
} else if (_root.equippedWeapon == "mallet") {
this.hammer2.hammer3.gotoAndStop(3);
} else if (_root.equippedWeapon == "toyHammer") {
this.hammer2.hammer3.gotoAndStop(4);
} else if (_root.equippedWeapon == "carrot") {
this.hammer2.hammer3.gotoAndStop(5);
} else if (_root.equippedWeapon == "hockeyStick") {
this.hammer2.hammer3.gotoAndStop(6);
} else if (_root.equippedWeapon == "spoon") {
this.hammer2.hammer3.gotoAndStop(7);
} else if (_root.equippedWeapon == "staff") {
this.hammer2.hammer3.gotoAndStop(8);
} else if (_root.equippedWeapon == "mace") {
this.hammer2.hammer3.gotoAndStop(9);
} else if (_root.equippedWeapon == "bone") {
this.hammer2.hammer3.gotoAndStop(10);
} else if (_root.equippedWeapon == "reedHammer") {
this.hammer2.hammer3.gotoAndStop(11);
}
}
Instance of Symbol 519 MovieClip "cursor" in Frame 337
onClipEvent (enterFrame) {
if (_root.showCursor == true) {
_root.hammer._x = 83;
_root.hammer._y = -218.4;
_root.spellCursor._x = 83;
_root.spellCursor._y = -218.4;
this._y = _root._ymouse;
this._x = _root._xmouse;
Mouse.hide();
}
}
Instance of Symbol 528 MovieClip "spellCursor" in Frame 337
onClipEvent (enterFrame) {
if (_root.showCursor == false) {
if (_root.cursorType == "spellCursor") {
_root.hammer._x = 83;
_root.hammer._y = -218.4;
_root.cursor._x = -147;
_root.cursor._y = 130.7;
this._y = _root._ymouse;
this._x = _root._xmouse;
Mouse.hide();
}
}
if (_root.equippedWeapon == "none") {
this.gotoAndStop(1);
} else if (_root.equippedWeapon == "fireSpell") {
this.gotoAndStop(2);
} else if (_root.equippedWeapon == "windSpell") {
this.gotoAndStop(3);
} else if (_root.equippedWeapon == "weight") {
this.gotoAndStop(4);
}
}
onClipEvent (mouseMove) {
if (_root.showCursor == false) {
if (_root.cursorType == "spellCursor") {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
}
}
Frame 338
_root.theText.text = ("You beat " + _root.theMode) + " mode!";
_root.scoreText.text = "Score: " + _root.score;
_root.unlockedText.text = "Cheat Unlocked: " + _root.unlocked;
Mouse.show();
Frame 339
stop();
Symbol 16 MovieClip Frame 10
if (_root.gamePaused == false) {
_root.baseHealth = _root.baseHealth - (random(3) + 4);
}
Symbol 20 MovieClip Frame 551
stop();
removeMovieClip(_parent._parent._parent._parent);
Symbol 36 MovieClip Frame 551
stop();
Symbol 40 MovieClip Frame 551
stop();
removeMovieClip(_parent._parent._parent._parent);
Symbol 51 MovieClip Frame 551
stop();
Symbol 54 MovieClip Frame 551
stop();
removeMovieClip(_parent._parent._parent._parent);
Symbol 66 MovieClip Frame 551
stop();
Symbol 69 MovieClip Frame 551
stop();
removeMovieClip(_parent._parent._parent._parent);
Symbol 72 MovieClip Frame 551
stop();
removeMovieClip(_parent._parent._parent._parent);
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 3
stop();
Symbol 73 MovieClip Frame 4
stop();
Symbol 73 MovieClip Frame 5
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
_root.totalSpidersKilled++;
_root.score = _root.score + Math.ceil((random(5) + 2) * _root.scoreMultiplier);
_root.spidersKilled++;
Instance of Symbol 74 MovieClip in Symbol 75 MovieClip [unit_spider] Frame 1
onClipEvent (load) {
var dead = false;
var randomNr = (random(4) + _root.difficulty);
var moveSpeed = randomNr;
var attacking = false;
var theWidth = (random(40) + 23);
var theHeight = (theWidth - 13);
this._width = theWidth;
this._height = theHeight;
if (_root.gamePaused == true) {
removeMovieClip(_parent);
} else {
_root.spidersSpawned++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pathBase.pathBase2.wall1)) {
_root.wall1HitSpider = true;
} else {
_root.wall1HitSpider = false;
}
if (this.hitTest(_root.pathBase.pathBase2.wall1.wall2.wall3)) {
this.gotoAndStop("attack");
attacking = true;
}
if (this.hitTest(_root.spellCursor.fire.fireSpell)) {
dead = true;
this.gotoAndStop("die");
this.spider_death.gotoAndStop(randomNr);
}
if (this.hitTest(_root.spellCursor.wind.windSpell)) {
dead = true;
this.gotoAndStop("die");
this.spider_death.gotoAndStop(randomNr);
}
if (_root.gamePaused == true) {
this.spider3.stop();
this.spider3.legsR.stop();
this.spider3.legsL.stop();
this.spider3.spider4.legsR.stop();
this.spider3.spider4.legsL.stop();
} else {
this.spider3.play();
this.spider3.legsR.play();
this.spider3.legsL.play();
this.spider3.spider4.legsR.play();
this.spider3.spider4.legsL.play();
if (this.hitTest(_root.hammer.hammer2.hammerHit) && (dead == false)) {
dead = true;
this.gotoAndStop("die");
this.spider_death.gotoAndStop(randomNr);
}
if ((dead == false) && (attacking == false)) {
this._x = this._x + moveSpeed;
}
if ((dead == false) && (this.hitTest(_root.pathBase.pathBase2.house))) {
attacking = true;
this.gotoAndStop("attack");
}
}
if (_root.gameOver == true) {
removeMovieClip(_parent);
}
}
Symbol 76 MovieClip [unit_spider2] Frame 1
Instance of Symbol 74 MovieClip in Symbol 76 MovieClip [unit_spider2] Frame 1
onClipEvent (load) {
var dead = false;
var randomNr = (random(4) + _root.difficulty);
var moveSpeed = randomNr;
var attacking = false;
var theWidth = (random(40) + 23);
var theHeight = (theWidth - 13);
this._width = theWidth;
this._height = theHeight;
if (_root.gamePaused == true) {
removeMovieClip(_parent);
} else {
_root.spidersSpawned++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pathBase.pathBase2.wall1)) {
_root.wall1HitSpider = true;
} else {
_root.wall1HitSpider = false;
}
if (this.hitTest(_root.pathBase.pathBase2.wall1.wall2.wall3)) {
this.gotoAndStop("attack");
attacking = true;
}
if (this.hitTest(_root.spellCursor.fire.fireSpell)) {
dead = true;
this.gotoAndStop("die");
this.spider_death.gotoAndStop(randomNr);
}
if (this.hitTest(_root.spellCursor.wind.windSpell)) {
dead = true;
this.gotoAndStop("die");
this.spider_death.gotoAndStop(randomNr);
}
if (_root.gamePaused == true) {
this.spider3.stop();
this.spider3.legsR.stop();
this.spider3.legsL.stop();
this.spider3.spider4.legsR.stop();
this.spider3.spider4.legsL.stop();
} else {
this.spider3.play();
this.spider3.legsR.play();
this.spider3.legsL.play();
this.spider3.spider4.legsR.play();
this.spider3.spider4.legsL.play();
if (this.hitTest(_root.hammer.hammer2.hammerHit) && (dead == false)) {
dead = true;
this.gotoAndStop("die");
this.spider_death.gotoAndStop(randomNr);
}
if ((dead == false) && (attacking == false)) {
this._x = this._x - moveSpeed;
}
if ((dead == false) && (this.hitTest(_root.pathBase.pathBase2.house))) {
attacking = true;
this.gotoAndStop("attack");
}
}
if (_root.gameOver == true) {
removeMovieClip(_parent);
}
}
Instance of Symbol 79 MovieClip in Symbol 80 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 27
removeMovieClip(_parent._parent);
stop();
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip [object_weight] Frame 1
onClipEvent (load) {
var weightDropped = false;
}
onClipEvent (enterFrame) {
if (weightDropped == false) {
this._x = _root._xmouse + 45;
this._y = 0;
} else if (weightDropped == true) {
this.play();
}
}
onClipEvent (mouseDown) {
if (weightDropped == false) {
weightDropped = true;
}
}
Symbol 94 MovieClip Frame 17
stop();
_parent._parent.gotoAndStop(1);
Symbol 96 MovieClip [object_explosion] Frame 1
stop();
Symbol 96 MovieClip [object_explosion] Frame 2
stop();
Symbol 180 MovieClip Frame 22
stop();
Symbol 183 Button
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 188 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 192 Button
on (release) {
_root.play();
}
Symbol 230 Button
on (rollOver) {
_root.desc = "You really think you can take on the toughest of the tough? It's an endless smashfest. Oh, and write your will while you're at it!";
}
on (rollOut) {
_root.desc = "";
}
on (release) {
_root.theMode = "endless";
_root.nrOfLevels = -1;
gotoAndStop ("game");
}
Symbol 231 Button
on (rollOver) {
_root.desc = "You're good at games and think you can take some of the hard spiders. You're out of Wimps-ville!";
}
on (rollOut) {
_root.desc = "";
}
on (release) {
_root.theMode = "hard";
_root.unlocked = "JORTANDSAZAPWNJOO";
_root.nrOfLevels = 30;
gotoAndStop ("game");
}
Symbol 232 Button
on (rollOver) {
_root.desc = "You're OK at games and reckon you can take on a few more spiders. You're still a wimp, though...";
}
on (rollOut) {
_root.desc = "";
}
on (release) {
_root.nrOfLevels = 20;
_root.theMode = "normal";
_root.unlocked = "REEDISASECKSAYMOFO";
gotoAndStop ("game");
}
Symbol 233 Button
on (rollOver) {
_root.desc = "You're a total wimp. You're obviously scared of spiders, and you suck at games...";
}
on (rollOut) {
_root.desc = "";
}
on (release) {
_root.theMode = "easy";
_root.unlocked = "LOSTSOLUTION";
_root.nrOfLevels = 10;
gotoAndStop ("game");
}
Symbol 238 Button
on (release) {
_root.gotoAndPlay("menuStart");
}
Symbol 241 Button
on (release) {
_root.nextFrame();
}
Symbol 244 Button
on (release) {
_root.prevFrame();
}
Instance of Symbol 258 MovieClip "path2" in Symbol 259 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hammer.hammer2.hammerHit)) {
_root.pathBase.gotoAndPlay("shake");
this.spider_death.gotoAndStop(randomNr);
}
}
Symbol 267 MovieClip Frame 60
stop();
_root._quality = _root.qualitySetting;
_root.gameOverScreen.play();
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 2
stop();
_root._quality = "LOW";
clearInterval(_root.spawnInterval);
clearInterval(_root.spawn2Interval);
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 12
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 11
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 11
stop();
Symbol 278 MovieClip Frame 1
stop();
Instance of Symbol 271 MovieClip "wall2" in Symbol 278 MovieClip Frame 1
onClipEvent (load) {
var wallSet = false;
}
onClipEvent (enterFrame) {
if ((_root.wall1HitSpider == false) && (wallSet == false)) {
this._alpha = 100;
}
if ((_root.wall1HitSpider == true) && (wallSet == false)) {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if ((_root.wall1HitSpider == false) && (wallSet == false)) {
this.stopDrag();
this._alpha = 100;
this.gotoAndStop(2);
wallSet = true;
}
}
Symbol 278 MovieClip Frame 2
stop();
Instance of Symbol 274 MovieClip in Symbol 278 MovieClip Frame 2
onClipEvent (load) {
var wallSet = false;
this.startDrag(true);
}
onClipEvent (enterFrame) {
if ((_root.wall1HitSpider == false) && (wallSet == false)) {
this._alpha = 100;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if ((_root.wall1HitSpider == false) && (wallSet == false)) {
this.stopDrag();
this._alpha = 100;
this.gotoAndStop(2);
wallSet = true;
}
}
Symbol 278 MovieClip Frame 3
stop();
Instance of Symbol 277 MovieClip in Symbol 278 MovieClip Frame 3
onClipEvent (load) {
var wallSet = false;
this.startDrag(true);
}
onClipEvent (enterFrame) {
if ((_root.wall1HitSpider == false) && (wallSet == false)) {
this._alpha = 100;
} else {
this._alpha = 30;
}
}
onClipEvent (mouseDown) {
if ((_root.wall1HitSpider == false) && (wallSet == false)) {
this.stopDrag();
this._alpha = 100;
this.gotoAndStop(2);
wallSet = true;
}
}
Symbol 281 MovieClip Frame 22
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 6
gotoAndStop ("static");
stop();
Symbol 284 MovieClip Frame 7
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 319 Button
on (release) {
_root._quality = "BEST";
_root.qualitySetting = "BEST";
}
Symbol 322 Button
on (release) {
_root._quality = "HIGH";
_root.qualitySetting = "HIGH";
}
Symbol 325 Button
on (release) {
_root._quality = "MEDIUM";
_root.qualitySetting = "MEDIUM";
}
Symbol 328 Button
on (release) {
_root._quality = "LOW";
_root.qualitySetting = "LOW";
}
Symbol 329 MovieClip Frame 1
_root.gameMenu.theMenu.menuAppear.musicVol.text = _root.musicVolume;
_root.gameMenu.theMenu.menuAppear.effectsVol.text = _root.effectsVolume;
timer = 0;
onEnterFrame = function () {
timer++;
if (timer > 2) {
if (musicDownPressed) {
if (_root.musicVolume > 0) {
_root.musicVolume = _root.musicVolume - 2;
}
}
if (musicUpPressed) {
if (_root.musicVolume < 100) {
_root.musicVolume = _root.musicVolume + 2;
}
}
timer = 0;
}
musicVol = _root.musicVolume;
};
musicDown.onPress = function () {
musicDownPressed = true;
};
musicDown.onRelease = function () {
musicDownPressed = false;
};
musicDown.onReleaseOutside = function () {
musicDownPressed = false;
};
musicUp.onPress = function () {
musicUpPressed = true;
};
musicUp.onRelease = function () {
musicUpPressed = false;
};
musicUp.onReleaseOutside = function () {
musicUpPressed = false;
};
Symbol 330 MovieClip Frame 12
stop();
_root.menuOpen = true;
Symbol 331 MovieClip Frame 13
stop();
_parent.gotoAndStop("closed");
Symbol 332 MovieClip Frame 1
stop();
_root.menuOpen = false;
_root.showCursor = false;
_root.menuVar = false;
_root.menuVar2 = false;
Symbol 332 MovieClip Frame 2
stop();
_root.showCursor = true;
Symbol 332 MovieClip Frame 3
stop();
Symbol 338 Button
on (release) {
gotoAndPlay (2);
}
Symbol 346 Button
on (release) {
if (_root.score >= (health * 4)) {
_root.score = _root.score - (health * 4);
_root.baseHealth = _root.baseHealth + health;
health = 100 - _root.baseHealth;
}
}
Symbol 349 Button
on (release) {
gotoAndPlay (3);
}
Symbol 368 Button
on (release) {
if (_root.lollypopGot == false) {
if (_root.score >= 275) {
_root.score = _root.score - 275;
_root.lollypopGot = true;
}
}
}
Symbol 375 Button
on (release) {
if (_root.toyHammerGot == false) {
if (_root.score >= 300) {
_root.score = _root.score - 300;
_root.toyHammerGot = true;
}
}
}
Symbol 382 Button
on (release) {
if (_root.carrotGot == false) {
if (_root.score >= 250) {
_root.score = _root.score - 250;
_root.carrotGot = true;
}
}
}
Symbol 384 Button
on (release) {
gotoAndPlay (1);
}
Symbol 391 Button
on (release) {
if (_root.malletGot == false) {
if (_root.score >= 350) {
_root.score = _root.score - 350;
_root.malletGot = true;
}
}
}
Symbol 396 Button
on (release) {
gotoAndStop ("weapons2");
}
Symbol 399 Button
on (release) {
gotoAndPlay (1);
}
Symbol 401 Button
on (release) {
gotoAndPlay (2);
}
Symbol 408 Button
on (release) {
if (_root.score >= (mana * 8)) {
_root.score = _root.score - (mana * 8);
_root.mana = _root.mana + mana;
mana = _root.maxMana - _root.mana;
}
}
Symbol 415 Button
on (release) {
if (_root.score >= 60) {
_root.score = _root.score - 60;
_root.windSpellsGot = true;
_root.windSpells++;
}
}
Symbol 422 Button
on (release) {
if (_root.score >= 30) {
_root.score = _root.score - 30;
_root.fireSpellsGot = true;
_root.fireSpells++;
}
}
Symbol 428 Button
on (release) {
if (_root.score >= (70 + (_root.manaUpgrade * 10))) {
_root.score = _root.score - (70 + (_root.manaUpgrade * 10));
_root.manaUpgrade++;
_root.maxMana = _root.maxMana + 10;
_root.mana = _root.mana + 10;
manaUpgradePrice = 70 + (_root.manaUpgrade * 10);
}
}
Symbol 435 Button
on (release) {
gotoAndStop ("weapons1");
}
Symbol 440 Button
on (release) {
if (_root.boneGot == false) {
if (_root.score >= 400) {
_root.score = _root.score - 400;
_root.boneGot = true;
}
}
}
Symbol 445 Button
on (release) {
if (_root.maceGot == false) {
if (_root.score >= 450) {
_root.score = _root.score - 450;
_root.maceGot = true;
}
}
}
Symbol 450 Button
on (release) {
if (_root.hockeyStickGot == false) {
if (_root.score >= 375) {
_root.score = _root.score - 375;
_root.hockeyStickGot = true;
}
}
}
Symbol 454 Button
on (release) {
if (_root.spoonGot == false) {
if (_root.score >= 375) {
_root.score = _root.score - 375;
_root.spoonGot = true;
}
}
}
Symbol 458 Button
on (release) {
if (_root.staffGot == false) {
if (_root.score >= 350) {
_root.score = _root.score - 350;
_root.staffGot = true;
}
}
}
Symbol 459 MovieClip Frame 1
stop();
timer = 0;
health = 100 - _root.baseHealth;
onEnterFrame = function () {
healthPrice.text = "Price: $" + (health * 4);
if (_root.score < (health * 4)) {
healthButton._alpha = 30;
} else {
healthButton._alpha = 100;
}
if (_root.score < 250) {
wall1Button._alpha = 30;
}
if (_root.score < 300) {
wall2Button._alpha = 30;
}
if (_root.score < 350) {
wall3Button._alpha = 30;
}
timer++;
if (timer > 2) {
if (healthDownPressed) {
if (health > 0) {
health--;
}
}
if (healthUpPressed) {
if (health < (100 - _root.baseHealth)) {
health++;
}
}
timer = 0;
}
healthText = health;
};
healthDown.onPress = function () {
healthDownPressed = true;
};
healthDown.onRelease = function () {
healthDownPressed = false;
};
healthDown.onReleaseOutside = function () {
healthDownPressed = false;
};
healthUp.onPress = function () {
healthUpPressed = true;
};
healthUp.onRelease = function () {
healthUpPressed = false;
};
healthUp.onReleaseOutside = function () {
healthUpPressed = false;
};
Symbol 459 MovieClip Frame 2
stop();
if (_root.score < 35) {
weightButton._alpha = 30;
} else {
weightButton._alpha = 100;
}
if (_root.score < 275) {
lollypopButton._alpha = 30;
} else {
lollypopButton._alpha = 100;
}
if (_root.score < 350) {
malletButton._alpha = 30;
} else {
malletButton._alpha = 100;
}
if (_root.score < 300) {
toyHammerButton._alpha = 30;
} else {
toyHammerButton._alpha = 100;
}
if (_root.score < 250) {
carrotButton._alpha = 30;
} else {
carrotButton._alpha = 100;
}
Symbol 459 MovieClip Frame 3
stop();
stop();
timer = 0;
var mana = (_root.maxMana - _root.mana);
onEnterFrame = function () {
fireSpells.text = "Spells: " + _root.fireSpells;
windSpells.text = "Spells: " + _root.windSpells;
manaPrice.text = "Price: $" + (mana * 8);
manaUpgradePrice = "Price: $" + (70 + (_root.manaUpgrade * 10));
manaUpgradePrice.text = "Price: $" + (70 + (_root.manaUpgrade * 10));
maxMana.text = "Max. Mana: " + _root.maxMana;
if (_root.score < (mana * 8)) {
manaButton._alpha = 30;
} else {
manaButton._alpha = 100;
}
if (_root.score < (70 + (_root.manaUpgrade * 8))) {
manaUpgradeButton._alpha = 30;
} else {
manaUpgradeButton._alpha = 100;
}
if (_root.score < 30) {
fireSpellButton._alpha = 30;
} else {
fireSpellButton._alpha = 100;
}
if (_root.score < 60) {
thunderSpellButton._alpha = 30;
} else {
thunderSpellButton._alpha = 100;
}
timer++;
if (timer > 2) {
if (manaDownPressed) {
if (mana > 0) {
mana--;
}
}
if (manaUpPressed) {
if (mana < (_root.maxMana - _root.mana)) {
mana++;
}
}
timer = 0;
}
manaText = mana;
};
manaDown.onPress = function () {
manaDownPressed = true;
};
manaDown.onRelease = function () {
manaDownPressed = false;
};
manaDown.onReleaseOutside = function () {
manaDownPressed = false;
};
manaUp.onPress = function () {
manaUpPressed = true;
};
manaUp.onRelease = function () {
manaUpPressed = false;
};
manaUp.onReleaseOutside = function () {
manaUpPressed = false;
};
Symbol 459 MovieClip Frame 4
stop();
if (_root.score < 375) {
spoonButton._alpha = 30;
} else {
spoonButton._alpha = 100;
}
if (_root.score < 375) {
hockeyStickButton._alpha = 30;
} else {
hockeyStickButton._alpha = 100;
}
if (_root.score < 400) {
boneButton._alpha = 30;
} else {
boneButton._alpha = 100;
}
if (_root.score < 450) {
maceButton._alpha = 30;
} else {
maceButton._alpha = 100;
}
if (_root.score < 350) {
staffButton._alpha = 30;
} else {
staffButton._alpha = 100;
}
Symbol 460 MovieClip Frame 11
stop();
_root.upgradesMenuOpen = true;
Symbol 461 MovieClip Frame 13
stop();
_parent.gotoAndStop("closed");
Symbol 462 MovieClip Frame 1
stop();
_root.upgradesMenuOpen = false;
_root.showCursor = false;
_root.menuVar = false;
_root.menuVar2 = false;
Symbol 462 MovieClip Frame 2
stop();
_root.showCursor = true;
Symbol 462 MovieClip Frame 3
stop();
Symbol 475 MovieClip Frame 61
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
stop();
Symbol 476 MovieClip Frame 3
stop();
Symbol 476 MovieClip Frame 4
stop();
Symbol 476 MovieClip Frame 5
stop();
Symbol 476 MovieClip Frame 6
stop();
Symbol 476 MovieClip Frame 7
stop();
Symbol 476 MovieClip Frame 8
stop();
Symbol 476 MovieClip Frame 9
stop();
Symbol 476 MovieClip Frame 10
stop();
Symbol 476 MovieClip Frame 11
stop();
Symbol 476 MovieClip Frame 12
stop();
Symbol 476 MovieClip Frame 13
stop();
Symbol 479 MovieClip Frame 1
levelNr_tb.text = "level " + _root.levelNr;
Symbol 480 MovieClip Frame 1
stop();
_root.pathBase.blendMode = "normal";
_root.grass.blendMode = "normal";
_root.bgElements.blendMode = "normal";
_root.pathBase.gotoAndStop("static");
_root._quality = _root.qualitySetting;
Symbol 480 MovieClip Frame 37
stop();
_root.spawnInterval = setInterval(_root.spawn, _root.spawnTime * 1000);
_root.spawn2Interval = setInterval(_root.spawn2, _root.spawnTime * 1500);
_root.nextLevel = true;
gotoAndStop (1);
Symbol 485 MovieClip Frame 1
scoreDisplay.text = "Score: " + _root.score;
Symbol 488 Button
on (release) {
_root.gotoAndPlay("menuStart");
}
Symbol 490 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = nameText.text;
ab20_09.x = _root.score;
ab20_09.c = 493;
ab20_09.v = "OXRYES";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://armorbot.com/mytable/?id=493", _blank);
}
Symbol 492 Button
on (release) {
Mouse.show();
_root.gotoAndPlay("menuStart");
}
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 2
_root.showCursor = true;
_root._quality = _root.qualitySetting;
Symbol 493 MovieClip Frame 32
_root.gameOver = true;
Symbol 493 MovieClip Frame 50
stop();
Instance of Symbol 491 MovieClip in Symbol 493 MovieClip Frame 50
onClipEvent (load) {
if ((((_root.theMode == "endless") && (_root.reedHammerUnlocked == false)) && (_root.allUnlocked == false)) && (_root.scoreUnlocked == false)) {
trace("hmm");
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 2
stop();
Symbol 509 MovieClip Frame 3
stop();
Symbol 509 MovieClip Frame 4
stop();
Symbol 509 MovieClip Frame 5
stop();
Symbol 509 MovieClip Frame 6
stop();
Symbol 509 MovieClip Frame 7
stop();
Symbol 509 MovieClip Frame 8
stop();
Symbol 509 MovieClip Frame 9
stop();
Symbol 509 MovieClip Frame 10
stop();
Symbol 509 MovieClip Frame 11
stop();
Symbol 513 MovieClip Frame 20
stop();
_parent.gotoAndStop("static");
Instance of Symbol 511 MovieClip "reticuleHit" in Symbol 516 MovieClip Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pathBase.pathBase2.path1.path2)) {
trace("whee");
_root.pathBase.gotoAndPlay("shake");
}
}
Instance of Symbol 515 MovieClip "hammerHit" in Symbol 516 MovieClip Frame 20
onClipEvent (load) {
this._visible = false;
}
Symbol 516 MovieClip Frame 21
_parent.gotoAndStop("lift");
Symbol 517 MovieClip Frame 1
stop();
_root.hammer.lifted = true;
Symbol 517 MovieClip Frame 2
stop();
Symbol 517 MovieClip Frame 3
stop();
Symbol 526 MovieClip Frame 101
stop();
_parent.gotoAndStop(1);
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
stop();
onMouseDown = function () {
if (_root.gamePaused == false) {
if (((_root.mana >= 5) && (_root.fireSpells > 0)) && (_root.weaponType == "rangedWeapons")) {
fire.play();
_root.fireSpells--;
_root.mana = _root.mana - 5;
}
}
};
Symbol 528 MovieClip Frame 3
stop();
onMouseDown = function () {
if (((_root.gamePaused == false) && (_root.windSpells > 0)) && (_root.weaponType == "rangedWeapons")) {
if (_root.mana >= 20) {
wind.play();
_root.windSpells--;
_root.mana = _root.mana - 20;
}
}
};
Symbol 528 MovieClip Frame 4
stop();
Symbol 533 Button
on (release) {
_root.gotoAndStop("menuStart");
}
Symbol 536 Button
on (release) {
if (_root.cheatText.text == "REEDISASECKSAYMOFO") {
_root.reedHammerUnlocked = true;
_root.effectText.text = "The reedHammer has been added to your equipped weapons!";
} else if (_root.cheatText.text == "LOSTSOLUTION") {
_root.scoreUnlocked = true;
_root.effectText.text = "You will start the game with $500";
} else if (_root.cheatText.text == "JORTANDSAZAPWNJOO") {
_root.allUnlocked = true;
_root.effectText.text = "All weapons and spells unlocked!";
} else {
_root.effectText.text = "INVALID CHEAT!";
}
}