Frame 1
loaded = getBytesLoaded();
total = getBytesTotal();
percent = loaded / total;
_root.loadBox = Math.floor(percent * 100);
if (loaded == total) {
gotoAndPlay (31);
}
Frame 2
gotoAndPlay (1);
Frame 32
soundFX = 50;
music = 100;
sLoop = new Sound(_root.musicHolder);
difficulty = 1;
Frame 33
Mouse.show();
this._quality = "AUTOHIGH";
stop();
sLoop.stop();
Frame 37
stop();
Frame 49
function flameLevel() {
if (fireCounter > 870) {
fireCounter = 800;
}
return(fireCounter++);
}
function baddieShots() {
if (baddieShotLevel > 550) {
baddieShotLevel = 500;
}
return(baddieShotLevel++);
}
function baddieLevel() {
if (baddieDepth > 461) {
baddieDepth = 400;
}
return(baddieDepth++);
}
function checkMouse() {
var _local1 = _root;
if (_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) {
_local1.cursor.gotoAndStop("offStage");
} else if (_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true)) {
_local1.cursor.gotoAndStop("click");
} else {
_local1.cursor.gotoAndStop("attack");
}
clearInterval(mouseChecker);
onMouseMove = function () {
mouseChecker = setInterval(checkMouse, 100);
delete onMouseMove;
};
}
function botLife(lifeChange) {
botHealth = botHealth + (lifeChange / 2);
if (botHealth <= 0) {
_root.gotoAndPlay("dead");
}
if (botHealth > 100) {
botHealth = 100;
}
_root.lifeBar.gotoAndStop(Math.ceil(botHealth) + 1);
}
mission = 0;
weapon = 1;
basherCount = 0;
orcCount = 0;
mineCount = 0;
teleporterCount = 0;
if (_root.difficulty == 1) {
teleporterShootDist = 300;
teleporterLife = 30;
teleporterRange = 300;
teleporterWarpRate = 100;
maxTeleporterCount = 2;
guardBotFireRate = 50;
guardBotMoveSpeed = 2;
guardBotFollowDist = 50;
guardBotLife = 100;
_root.orcCallRate = 150;
_root.mineCallRate = 150;
_root.basherCallRate = 300;
_root.maxBasherCount = 2;
_root.maxOrcCount = 2;
_root.maxMineCount = 2;
_root.basherCount = 0;
_root.orcCount = 0;
_root.mineCount = 0;
_root.mineMoveSpeed = 200;
_root.mineLife = 10;
_root.basherSpeed = 2;
_root.basherLife = 5;
_root.basherMaxSpeed = 10;
_root.basherEdge = 50;
_root.orcWalkSpeed = 5;
_root.orcRotateSpeed = 20;
_root.orcFireDist = 75;
_root.orcLife = 10;
}
if (_root.difficulty == 2) {
teleporterShootDist = 400;
teleporterLife = 20;
teleporterRange = 400;
teleporterWarpRate = 75;
maxTeleporterCount = 3;
guardBotFireRate = 40;
guardBotMoveSpeed = 2;
guardBotFollowDist = 50;
guardBotLife = 200;
_root.orcCallRate = 150;
_root.mineCallRate = 150;
_root.basherCallRate = 300;
_root.maxBasherCount = 3;
_root.maxOrcCount = 3;
_root.maxMineCount = 3;
_root.basherCount = 0;
_root.orcCount = 0;
_root.mineCount = 0;
_root.mineMoveSpeed = 100;
_root.mineLife = 20;
_root.basherSpeed = 3;
_root.basherLife = 10;
_root.basherMaxSpeed = 15;
_root.basherEdge = 75;
_root.orcWalkSpeed = 5;
_root.orcRotateSpeed = 20;
_root.orcFireDist = 125;
_root.orcLife = 20;
}
if (_root.difficulty == 3) {
teleporterShootDist = 300;
teleporterLife = 25;
teleporterRange = 500;
teleporterWarpRate = 50;
maxTeleporterCount = 3;
guardBotFireRate = 30;
guardBotMoveSpeed = 2;
guardBotFollowDist = 50;
guardBotLife = 300;
_root.orcCallRate = 125;
_root.mineCallRate = 125;
_root.basherCallRate = 250;
_root.maxBasherCount = 3;
_root.maxOrcCount = 3;
_root.maxMineCount = 3;
_root.basherCount = 0;
_root.orcCount = 0;
_root.mineCount = 0;
_root.mineMoveSpeed = 20;
_root.mineLife = 35;
_root.basherSpeed = 4;
_root.basherLife = 15;
_root.basherMaxSpeed = 20;
_root.basherEdge = 100;
_root.orcWalkSpeed = 5;
_root.orcRotateSpeed = 20;
_root.orcFireDist = 200;
_root.orcLife = 25;
}
orcWeaponAccel = 2;
sLoop.stop();
sLoop.attachSound("gameMusic");
sLoop.start(0, 9999);
sLoop.setVolume(_root.music);
missionInfo = "Find Bot001 and retrieve the ring!";
_root.hitMenu._visible = false;
_root.lifeBar.stop();
var seekPathX = new Array();
var seekPathY = new Array();
botMoveSpeed = 8;
botHealth = 100;
_root.lifeBar.gotoAndStop(101);
stuffLevel = 10000;
fireCounter = 800;
baddieShotLevel = 500;
baddieDepth = 400;
shieldShotLevel = 950;
shieldLevel = 951;
Mouse.hide();
reach = 100;
checkMouse();
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 10 * Math.cos(rad);
yDist = 10 * Math.sin(rad);
p = _local1.cam.explosions.attachMovie("tankShell", "tankShell" + _local1.flameLevel(), _local1.flameLevel());
p._x = _local1.cam.bot._x + xDist;
p._y = _local1.cam.bot._y + yDist;
p._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
}
};
Instance of Symbol 360 MovieClip "cursor" in Frame 49
onClipEvent (mouseMove) {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
Instance of Symbol 362 MovieClip in Frame 49
onClipEvent (keyDown) {
if (Key.isDown(49)) {
_root.weapon = 1;
_root.buttons.highlight._y = -138.3;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 10 * Math.cos(rad);
yDist = 10 * Math.sin(rad);
p = _local1.cam.explosions.attachMovie("tankShell", "tankShell" + _local1.flameLevel(), _local1.flameLevel());
p._x = _local1.cam.bot._x + xDist;
p._y = _local1.cam.bot._y + yDist;
p._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
}
};
}
if (Key.isDown(50)) {
_root.weapon = 2;
_root.buttons.highlight._y = -70;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 15 * Math.cos(rad);
yDist = 15 * Math.sin(rad);
m = _local1.cam.bullets.attachMovie("shieldShot", "shield" + _local1.shieldShotLevel, shieldShotLevel);
m._x = _local1.cam.bot._x + xDist;
m._y = _local1.cam.bot._y + yDist;
m._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
}
};
}
if (Key.isDown(51)) {
_root.weapon = 3;
_root.buttons.highlight._y = -2;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
sLoop.start(0, 99999);
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
_local1.onEnterFrame = function () {
var _local1 = _root;
m = _local1.cam.explosions.attachMovie("fireBall", "fireBall" + _local1.flameLevel(), _local1.flameLevel());
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 15 * Math.cos(rad);
yDist = 15 * Math.sin(rad);
m._x = _local1.cam.bot._x + xDist;
m._y = _local1.cam.bot._y + yDist;
m._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
};
}
onMouseUp = function () {
sLoop.stop();
delete _root.onEnterFrame;
};
};
}
if (Key.isDown(52)) {
_root.weapon = 4;
_root.buttons.highlight._y = 66.7;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
w.unloadMovie();
u = _local1.seekPathX.length;
while (u >= 0) {
_local1.seekPathX[u] = undefined;
_local1.seekPathY[u] = undefined;
u--;
}
pathNum = 0;
k = _local1.cam.seekLine.createEmptyMovieClip("holder", _local1.shieldShotLevel);
_local1.cam.seekLine.holder.lineStyle(1, 16777215, 100);
_local1.cam.seekLine.holder.moveTo(_local1._xmouse - _local1.cam._x, _local1._ymouse - _local1.cam._y);
_local1.onEnterFrame = function () {
var _local1 = _root;
xPos = _local1._xmouse - _local1.cam._x;
yPos = _local1._ymouse - _local1.cam._y;
_local1.cam.seekLine.holder.lineTo(xPos, yPos);
_local1.seekPathX[pathNum] = xPos;
_local1.seekPathY[pathNum] = yPos;
pathNum++;
};
}
};
_root.onMouseUp = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 15 * Math.cos(rad);
yDist = 15 * Math.sin(rad);
w = _local1.cam.explosions.attachMovie("heatSeek", "heatSeek" + _local1.shieldLevel, _local1.shieldLevel);
w._x = _local1.cam.bot._x + xDist;
w._y = _local1.cam.bot._y + yDist;
w._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
}
k.unloadMovie();
delete _local1.onEnterFrame;
};
}
}
Frame 50
stop();
Frame 58
stop();
Frame 65
gotoAndPlay ("inGame");
Frame 79
delete _root.onEnterFrame;
Mouse.show();
stop();
Frame 90
delete _root.onEnterFrame;
this._quality = "high";
Mouse.show();
stop();
Symbol 6 MovieClip [hugeBoom5] Frame 1
sLoop = new Sound(this);
sLoop.attachSound("hugeBoom");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX);
Symbol 6 MovieClip [hugeBoom5] Frame 9
this.unloadMovie();
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip [orcBlast] Frame 1
onClipEvent (load) {
acc = _root.orcWeaponAccel;
xVel = (Math.random() * 20) - 10;
yVel = (Math.random() * 20) - 10;
}
onClipEvent (enterFrame) {
xDist = this._parent._x - _root.cam.bot._x;
yDist = this._parent._y - _root.cam.bot._y;
if (xDist > 0) {
xVel = xVel + acc;
} else {
xVel = xVel - acc;
}
if (yDist > 0) {
yVel = yVel + acc;
} else {
yVel = yVel - acc;
}
this._parent._x = this._parent._x - xVel;
this._parent._y = this._parent._y - yVel;
if ((this.hitTest(_root.cam.bot) || (_root.cam.explosions.hitTest(this._parent._x + _root.cam._x, this._parent._y + _root.cam._y, true))) || (_root.cam.walls.hitTest(this._parent._x + _root.cam._x, this._parent._y + _root.cam._y, true))) {
this._parent.unloadMovie();
}
}
onClipEvent (unload) {
m = _root.cam.boom.attachMovie("smallBoom", "boom" + _root.baddieShots(), _root.baddieShots());
m._x = this._parent._x;
m._y = this._parent._y;
m._rotation = (Math.random() * 180) - 360;
}
Symbol 12 Button
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
_root.mission++;
if (_root.mission == 8) {
_root.missionInfo = "You found a key.";
}
if (_root.mission == 9) {
_root.missionInfo = "You have two keys.";
}
if (_root.mission == 10) {
_root.missionInfo = "You have three keys.";
}
this.unloadMovie();
this.play();
}
Symbol 13 MovieClip [key] Frame 1
stop();
Symbol 13 MovieClip [key] Frame 2
stop();
Symbol 16 Button
on (release) {
_root.missionInfo = "Your life has been replenished.";
_root.botLife(100);
this.unloadMovie();
}
Symbol 22 Button
on (press) {
getURL ("http://gamesofgondor.com/", "_blank");
}
Symbol 36 MovieClip Frame 1
right.gotoAndPlay(40);
Symbol 47 MovieClip [guardBot] Frame 1
stopDist = _root.guardBotFollowDist;
moveSpeed = _root.guardBotMoveSpeed;
rotateSpeed = 20;
headSpeed = 15;
life = _root.guardBotLife;
leftCounter = _root.guardBotFireRate;
rightCounter = _root.guardBotFireRate;
headCounter = _root.guardBotFireRate;
headFireSpeed = 3;
sLoop = new Sound(this);
sLoop.attachSound("sonicBlast");
zap = new Sound(this);
zap.attachSound("zap");
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
xDist = _local1._x - _local2.cam.bot._x;
yDist = _local1._y - _local2.cam.bot._y;
gotoAngle = Math.atan2(yDist, xDist);
errorAngle = (gotoAngle * 57.2957795130823) - _local1._rotation;
if (Math.abs(errorAngle) > 1) {
if (((errorAngle > 0) && (errorAngle < 180)) || (errorAngle < -180)) {
_local1._rotation = _local1._rotation + (errorAngle / rotateSpeed);
_local1.legs._rotation = _local1.legs._rotation - (errorAngle / rotateSpeed);
} else {
_local1._rotation = _local1._rotation + (errorAngle / rotateSpeed);
_local1.legs._rotation = _local1.legs._rotation - (errorAngle / rotateSpeed);
}
}
headAngle = ((gotoAngle * 57.2957795130823) - _local1.head._rotation) - _local1._rotation;
if (Math.abs(headAngle) > 1) {
if (((headAngle > 0) && (headAngle < 180)) || (headAngle < -180)) {
_local1.head._rotation = _local1.head._rotation + (headAngle / headSpeed);
} else {
_local1.head._rotation = _local1.head._rotation + (headAngle / headSpeed);
}
}
if ((Math.abs(xDist) > stopDist) || (Math.abs(yDist) > stopDist)) {
xMove = moveSpeed * Math.cos(gotoAngle);
yMove = moveSpeed * Math.sin(gotoAngle);
if (!_local2.cam.walls.hitTest((_local1._x + _local2.cam._x) - xMove, (_local1._y + _local2.cam._y) - yMove, true)) {
_local1._x = _local1._x - xMove;
_local1._y = _local1._y - yMove;
}
_local1.legs.right.play();
_local1.legs.left.play();
_local1.legs._rotation = (gotoAngle * 57.2957795130823) - _local1._rotation;
} else {
_local1.legs.right.stop();
_local1.legs.left.stop();
}
if (leftCounter <= 0) {
w = _local2.cam.bullets.attachMovie("guardBotShot", "shot" + _local2.baddieShots(), _local2.baddieShots());
w._x = _local1._x;
w._y = _local1._y;
w._rotation = _local1._rotation - 90;
leftCounter = _local2.guardBotFireRate;
sLoop.start(0, 1);
sLoop.setVolume(_local2.soundFX);
}
if (headCounter <= 0) {
w = _local2.cam.bullets.attachMovie("guardBotlaser", "zap" + _local2.baddieShots(), _local2.baddieShots());
w._x = _local1._x;
w._y = _local1._y;
w._rotation = (_local1._rotation - 90) + _local1.head._rotation;
headCounter = _local2.guardBotFireRate;
zap.start(0, 1);
zap.setVolume(_local2.soundFX);
}
headCounter = headCounter - (Math.random() * headFireSpeed);
leftCounter = leftCounter - Math.random();
if (_local2.cam.explosions.hitTest(_local1)) {
life--;
if (life <= 0) {
_local1.gotoAndPlay("dead");
delete _local1.onEnterFrame;
} else {
_local1.gotoAndPlay("hurt");
}
}
};
Symbol 47 MovieClip [guardBot] Frame 2
stop();
Symbol 47 MovieClip [guardBot] Frame 7
gotoAndStop (2);
Symbol 47 MovieClip [guardBot] Frame 8
delete this.onEnterFrame;
splode = new Sound(this);
splode.attachSound("hugeBoom");
splode.start(0, 1);
splode.setVolume(_root.soundFX * 3);
this.onEnterFrame = function () {
var _local1 = _root;
m = _local1.cam.explosions.attachMovie("exploding", "explosion" + _local1.baddieShots(), _local1.baddieShots());
m._x = this._x;
m._y = this._y;
};
Symbol 47 MovieClip [guardBot] Frame 21
_root.mission++;
this.unloadMovie();
stop();
Symbol 51 MovieClip [guardBotLaser] Frame 1
counter = 30;
moveSpeed = (Math.random() * 5) + 30;
degrees = this._rotation;
radians = (degrees * Math.PI) / 180;
radians = radians + 4.71238898038469;
xSpeed = moveSpeed * Math.sin(radians);
ySpeed = moveSpeed * Math.cos(radians);
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
counter--;
_local1._y = _local1._y + xSpeed;
_local1._x = _local1._x + ySpeed;
if ((_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true) || (_local2.cam.bot.hitTest(_local1))) || (counter <= 0)) {
_local1.unloadMovie();
}
};
this.onUnload = function () {
var _local1 = this;
var _local2 = _root;
m = _local2.cam.boom.attachMovie("guardBotLaserExplosion", "zing" + _local2.baddieShots(), _local2.baddieShots());
m._x = _local1._x;
m._y = _local1._y;
m._rotation = _local1._rotation;
};
Symbol 51 MovieClip [guardBotLaser] Frame 8
stop();
Symbol 53 MovieClip [guardBotLaserExplosion] Frame 1
this.unloadMovie();
Symbol 56 MovieClip [guardBotShot] Frame 1
moveSpeed = (Math.random() * 5) + 10;
degrees = this._rotation;
radians = (degrees * Math.PI) / 180;
radians = radians + 4.71238898038469;
xSpeed = moveSpeed * Math.sin(radians);
ySpeed = moveSpeed * Math.cos(radians);
counter = 22;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
counter--;
_local1._y = _local1._y + xSpeed;
_local1._x = _local1._x + ySpeed;
if ((_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true) || (_local2.cam.bot.hitTest(_local1))) || (counter <= 0)) {
_local1.unloadMovie();
}
};
this.onUnload = function () {
var _local1 = this;
var _local2 = _root;
m = _local2.cam.boom.attachMovie("powerSurge", "surge" + _local2.baddieShots(), _local2.baddieShots());
m._x = _local1._x;
m._y = _local1._y;
m._rotation = _local1._rotation;
};
Symbol 56 MovieClip [guardBotShot] Frame 6
stop();
Symbol 59 MovieClip [powerSurge] Frame 11
this.unloadMovie();
Symbol 65 MovieClip [basher] Frame 1
acc = _root.basherSpeed;
life = _root.basherLife;
edge = _root.basherEdge;
maxSpeed = _root.basherMaxSpeed;
xVel = (Math.random() * 25) - 50;
yVel = (Math.random() * 25) - 50;
_root.basherCount++;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
xDist = _local1._x - _local2.cam.bot._x;
yDist = _local1._y - _local2.cam.bot._y;
if ((xDist > 0) && (xVel < maxSpeed)) {
xVel = xVel + acc;
} else if ((-xVel) < maxSpeed) {
xVel = xVel - acc;
}
if ((yDist > 0) && (yVel < maxSpeed)) {
yVel = yVel + acc;
} else if ((-yVel) < maxSpeed) {
yVel = yVel - acc;
}
if (!_local2.cam.walls.hitTest((_local1._x + _local2.cam._x) - xVel, _local1._y + _local2.cam._y, true)) {
_local1._x = _local1._x - xVel;
}
if (!_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, (_local1._y + _local2.cam._y) - yVel, true)) {
_local1._y = _local1._y - yVel;
}
if (_local1.hitTest(_local2.cam.explosions)) {
life--;
}
if (life <= 0) {
w = _local2.cam.boom.attachMovie("hugeBoom5", "boom" + _local2.baddieShots(), _local2.baddieShots());
w._x = _local1._x;
w._y = _local1._y;
w._rotation = (Math.random() * 180) - 360;
_local1.unloadMovie();
}
};
this.onUnload = function () {
_root.basherCount--;
};
Symbol 70 MovieClip [heatSeekExplosion] Frame 16
sLoop = new Sound(this);
sLoop.attachSound("explode2");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX * 2);
Symbol 70 MovieClip [heatSeekExplosion] Frame 32
stop();
this.unloadMovie();
Symbol 80 MovieClip [tankShellExplosion] Frame 1
sLoop = new Sound(this);
sLoop.attachSound("shellExplosion");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX);
Symbol 80 MovieClip [tankShellExplosion] Frame 12
this.unloadMovie();
Symbol 94 MovieClip Frame 1
rightArm.gotoAndPlay(14);
Symbol 100 MovieClip Frame 1
leftThigh.gotoAndPlay(14);
Symbol 100 MovieClip Frame 5
stop();
Symbol 103 MovieClip Frame 21
w = _root.cam.bullets.attachMovie("orcBlast", "orcBlast" + _root.baddieShots(), _root.baddieShots());
w._x = this._parent._x;
w._y = this._parent._y;
w._rotation = this._parent._rotation;
Symbol 103 MovieClip Frame 34
gotoAndPlay (16);
Symbol 107 MovieClip Frame 22
m = _root.cam.boom.attachMovie("hugeBoom5", "boom" + _root.baddieShots(), _root.baddieShots());
m._x = this._parent._x;
m._y = this._parent._y;
m._rotation = (Math.random() * 360) - 180;
this._parent.unloadMovie();
stop();
Symbol 108 MovieClip [orc] Frame 1
walkSpeed = _root.orcWalkSpeed;
rotateSpeed = _root.orcRotateSpeed;
fireDist = _root.orcFireDist;
life = _root.orcLife;
dead = 0;
counter = 0;
_root.orcCount++;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
counter--;
xDist = _local1._x - _local2.cam.bot._x;
yDist = _local1._y - _local2.cam.bot._y;
gotoAngle = Math.atan2(yDist, xDist);
errorAngle = (gotoAngle * 57.2957795130823) - _local1._rotation;
if (Math.abs(errorAngle) > 1) {
if (((errorAngle > 0) && (errorAngle < 180)) || (errorAngle < -180)) {
_local1._rotation = _local1._rotation + (errorAngle / rotateSpeed);
} else {
_local1._rotation = _local1._rotation + (errorAngle / rotateSpeed);
}
}
if (_local2.cam.explosions.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y)) {
life--;
}
if ((Math.abs(xDist) < fireDist) && (Math.abs(yDist) < fireDist)) {
_local1.gotoAndStop(2);
counter = 21;
} else if (counter <= 0) {
_local1.gotoAndStop(1);
radians = (_local1._rotation * Math.PI) / 180;
xSpeed = walkSpeed * Math.cos(radians);
ySpeed = walkSpeed * Math.sin(radians);
if (xSpeed > 0) {
if (_local2.cam.walls.hitTest((_local1._x + _local2.cam._x) - 40, _local1._y + _local2.cam._y, true)) {
xSpeed = 0;
}
}
if (xSpeed <= 0) {
if (_local2.cam.walls.hitTest((_local1._x + _local2.cam._x) + 40, _local1._y + _local2.cam._y, true)) {
xSpeed = 0;
}
}
if (ySpeed > 0) {
if (_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, (_local1._y + _local2.cam._y) - 40, true)) {
ySpeed = 0;
}
}
if (ySpeed <= 0) {
if (_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, (_local1._y + _local2.cam._y) + 40, true)) {
ySpeed = 0;
}
}
_local1._x = _local1._x - xSpeed;
_local1._y = _local1._y - ySpeed;
}
if (life <= 0) {
_local1.gotoAndStop(3);
delete _local1.onEnterFrame;
}
};
this.onUnload = function () {
_root.orcCount--;
};
stop();
Symbol 108 MovieClip [orc] Frame 2
stop();
Symbol 108 MovieClip [orc] Frame 3
stop();
Symbol 114 MovieClip [mine] Frame 1
moveSpeed = _root.mineMoveSpeed;
_root.mineCount++;
life = _root.mineLife;
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
xSpeed = (_local2._x - _local1.cam.bot._x) / moveSpeed;
ySpeed = (_local2._y - _local1.cam.bot._y) / moveSpeed;
if (xSpeed > 0) {
if (_local1.cam.walls.hitTest((_local2._x - 40) + _local1.cam._x, _local2._y + _local1.cam._y, true)) {
xSpeed = 0;
}
}
if (xSpeed <= 0) {
if (_local1.cam.walls.hitTest((_local2._x + 40) + _local1.cam._x, _local2._y + _local1.cam._y, true)) {
xSpeed = 0;
}
}
if (ySpeed > 0) {
if (_local1.cam.walls.hitTest(_local2._x + _local1.cam._x, (_local2._y - 40) + _local1.cam._y, true)) {
ySpeed = 0;
}
}
if (ySpeed <= 0) {
if (_local1.cam.walls.hitTest(_local2._x + _local1.cam._x, (_local2._y + 40) + _local1.cam._y, true)) {
ySpeed = 0;
}
}
_local2._x = _local2._x - xSpeed;
_local2._y = _local2._y - ySpeed;
if (_local2.hitTest(_local1.cam.explosions)) {
life--;
}
if (_local2.hitTest(_local1.cam.bot) || (life <= 0)) {
_local2.unloadMovie();
m = _local1.cam.boom.attachMovie("hugeBoom5", "boom" + _local1.baddieShots(), _local1.baddieShots());
m._x = _local2._x;
m._y = _local2._y;
m._rotation = (Math.random() * 180) - 360;
}
};
this.onUnload = function () {
_root.mineCount--;
};
Symbol 130 MovieClip [teleporter] Frame 1
warp = _root.teleporterWarpRate * Math.random();
_root.teleporterCount++;
life = _root.teleporterLife;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
warp--;
if (warp <= 0) {
_local1.gotoAndPlay("warp");
delete _local1.onEnterFrame;
}
if (_local2.cam.explosions.hitTest(_local1)) {
_local1.gotoAndPlay("hurt");
life--;
}
if (life <= 0) {
r = _local2.cam.boom.attachMovie("hugeBoom5", "boom" + _local2.baddieShots(), _local2.baddieShots());
r._x = _local1._x;
r._y = _local1._y;
r._rotation = (Math.random() * 360) - 180;
_local1.unloadMovie();
}
};
this.onUnload = function () {
var _local1 = _root;
if (_local1.mission <= 9) {
t = _local1.cam.clickable.attachMovie("key", "key" + (_local1.stuffLevel++), _local1.stuffLevel++);
t._x = this._x;
t._y = this._y;
}
_local1.teleporterCount--;
};
stop();
Symbol 130 MovieClip [teleporter] Frame 12
oldX = this._x;
oldY = this._y;
dist = _root.teleporterRange;
this._x = this._x + ((Math.random() * dist) - (dist / 2));
this._y = this._y + ((Math.random() * dist) - (dist / 2));
tryMore = 3;
while ((tryMore >= 0) && (_root.cam.walls.hitTest(this._x + _root.cam._x, this._y + _root.cam._y, true))) {
this._x = oldX;
this._y = oldY;
this._x = this._x + ((Math.random() * dist) - (dist / 2));
this._y = this._y + ((Math.random() * dist) - (dist / 2));
tryMore--;
}
if (tryMore <= 0) {
this._x = oldX;
this._y = oldY;
}
Symbol 130 MovieClip [teleporter] Frame 15
xtogo = this._x - _root.cam.bot._x;
ytogo = this._y - _root.cam.bot._y;
if ((xtogo <= _root.teleporterShootDist) && (ytogo <= _root.teleporterShootDist)) {
d = _root.cam.bullets.attachMovie("teleporterWeapon", "zap" + _root.baddieShots(), _root.baddieShots());
d._x = this._x;
d._y = this._y;
radians = Math.atan2(ytogo, xtogo);
degrees = (radians * 180) / Math.PI;
d._rotation = degrees - 90;
}
gotoAndStop (1);
Symbol 132 MovieClip [teleporterWeapon] Frame 1
sLoop = new Sound(this);
sLoop.attachSound("zap");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX * 2);
counter = 30;
moveSpeed = (Math.random() * 5) + 40;
degrees = this._rotation;
radians = (degrees * Math.PI) / 180;
radians = radians + 4.71238898038469;
xSpeed = moveSpeed * Math.sin(radians);
ySpeed = moveSpeed * Math.cos(radians);
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
counter--;
_local1._y = _local1._y + xSpeed;
_local1._x = _local1._x + ySpeed;
if (_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true) || (_local2.cam.bot.hitTest(_local1))) {
_local1.unloadMovie();
}
};
this.onUnload = function () {
var _local1 = this;
var _local2 = _root;
m = _local2.cam.boom.attachMovie("smallBoom", "zap" + _local2.baddieShots(), _local2.baddieShots());
m._x = _local1._x;
m._y = _local1._y;
m._rotation = _local1._rotation;
};
Symbol 132 MovieClip [teleporterWeapon] Frame 2
stop();
Symbol 134 MovieClip [exploding] Frame 2
rad = this._rotation;
xDist = (Math.random() * 40) * Math.cos(rad);
yDist = (Math.random() * 40) * Math.sin(rad);
callMore = Math.round(Math.random() * 3);
scaleChange = Math.random() * 200;
while ((callMore > 0) && (this._alpha >= 50)) {
callMore--;
m = _root.cam.explosions.attachMovie("exploding", "explosion" + _root.baddieShots(), _root.baddieShots());
m._x = this._x + xDist;
m._y = this._y + yDist;
m._rotation = (this._rotation + (Math.random() * 10)) - 5;
m._alpha = this._alpha - (Math.random() * 40);
m._xscale = this._xscale + scaleChange;
m._yscale = this._yscale + scaleChange;
}
this.unloadMovie();
Symbol 136 MovieClip [fireBall] Frame 2
moveTries = 0;
maxTries = 3;
rad = ((this._rotation - 90) * Math.PI) / 180;
xDist = ((Math.random() * 20) + (this._xscale / 50)) * Math.cos(rad);
yDist = ((Math.random() * 20) + (this._yscale / 50)) * Math.sin(rad);
callMore = Math.round(Math.random() * 3);
scaleChange = Math.random() * 150;
while ((callMore > 0) && (this._alpha >= 50)) {
callMore--;
m = _root.cam.explosions.attachMovie("fireBall", "fireBall" + _root.flameLevel(), _root.flameLevel());
m._x = this._x + xDist;
m._y = this._y + yDist;
m._rotation = (this._rotation + (Math.random() * 10)) - 5;
m._alpha = this._alpha - (Math.random() * 30);
m._xscale = this._xscale + scaleChange;
m._yscale = this._yscale + scaleChange;
while (_root.cam.walls.hitTest(m._x + _root.cam._x, m._y + _root.cam._y, true) && (moveTries < maxTries)) {
this._rotation = this._rotation + ((Math.random() * 180) - 90);
rad = ((this._rotation - 90) * Math.PI) / 180;
xDist = (Math.random() * 20) * Math.cos(rad);
yDist = (Math.random() * 20) * Math.sin(rad);
m._x = this._x + xDist;
m._y = this._y + yDist;
m._rotation = (this._rotation + (Math.random() * 10)) - 5;
moveTries++;
}
if (moveTries == maxTries) {
m.unloadMovie();
}
}
this.unloadMovie();
Symbol 137 MovieClip [heatSeek] Frame 1
followSpeed = 100;
life = 200;
t = 0;
startSpeed = 10;
stick = 3;
rad = ((this._rotation - 90) * Math.PI) / 180;
xVel = startSpeed * Math.cos(rad);
yVel = startSpeed * Math.sin(rad);
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local2.seekPathX[t] != undefined) {
_local1._x = _local1._x + ((_local2.seekPathX[t] - _local1._x) / stick);
_local1._y = _local1._y + ((_local2.seekPathY[t] - _local1._y) / stick);
xAccel = (_local2.seekPathX[t] - _local1._x) / followSpeed;
yAccel = (_local2.seekPathY[t] - _local1._y) / followSpeed;
xVel = xVel + xAccel;
yVel = yVel + yAccel;
t++;
_local1._x = _local1._x + xVel;
_local1._y = _local1._y + yVel;
if (_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true) || (life <= 0)) {
_local1.unloadMovie();
}
life--;
} else {
_local1.unloadMovie();
}
};
this.onUnload = function () {
var _local1 = _root;
s = _local1.cam.explosions.attachMovie("heatSeekExplosion", "boom" + _local1.flameLevel(), _local1.flameLevel());
s._x = this._x;
s._y = this._y;
};
Symbol 142 MovieClip [shield] Frame 1
this.onMouseDown = function () {
this.gotoAndPlay("leave");
};
Symbol 142 MovieClip [shield] Frame 11
stop();
Symbol 142 MovieClip [shield] Frame 12
delete this.onMouseDown;
Symbol 142 MovieClip [shield] Frame 17
this.unloadMovie();
Symbol 147 MovieClip [shieldShot] Frame 1
sLoop = new Sound(this);
sLoop.attachSound("shieldShotSound");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX / 2);
increment = 10;
xGoTo = _root._xmouse - _root.cam._x;
yGoTo = _root._ymouse - _root.cam._y;
xDist = xGoTo - this._x;
yDist = yGoTo - this._y;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (xDist / increment);
_local1._y = _local1._y + (yDist / increment);
if (_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true) || (_local2.cam.baddies.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true))) {
_local1.unloadMovie();
}
};
this.onUnload = function () {
var _local1 = this;
var _local2 = _root;
m = _local2.cam.walls.attachMovie("shield", "shield" + _local2.shieldLevel, _local2.shieldLevel);
m._x = _local1._x;
m._y = _local1._y;
m._rotation = _local1._rotation;
};
Symbol 147 MovieClip [shieldShot] Frame 11
this.unloadMovie();
Symbol 150 MovieClip [tankShell] Frame 1
sLoop = new Sound(this);
sLoop.attachSound("bigBoom");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX * 2);
counter = 20;
moveSpeed = (Math.random() * 5) + 20;
degrees = this._rotation;
radians = (degrees * Math.PI) / 180;
radians = radians + 4.71238898038469;
xSpeed = moveSpeed * Math.sin(radians);
ySpeed = moveSpeed * Math.cos(radians);
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
counter--;
_local1._y = _local1._y + xSpeed;
_local1._x = _local1._x + ySpeed;
if ((_local2.cam.walls.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true) || (_local2.cam.baddies.hitTest(_local1._x + _local2.cam._x, _local1._y + _local2.cam._y, true))) || (counter <= 0)) {
_local1.unloadMovie();
}
};
this.onUnload = function () {
var _local1 = this;
var _local2 = _root;
m = _local2.cam.explosions.attachMovie("tankShellExplosion", "shell" + _local2.flameLevel(), _local2.flameLevel());
m._x = _local1._x;
m._y = _local1._y;
m._rotation = _local1._rotation;
};
Symbol 150 MovieClip [tankShell] Frame 2
stop();
Symbol 152 MovieClip [smallBoom] Frame 1
sLoop = new Sound(this);
sLoop.attachSound("smallExplosionSound");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX);
Symbol 152 MovieClip [smallBoom] Frame 3
this.unloadMovie();
Symbol 168 Button
on (press) {
_root.gotoAndPlay("intro");
}
Symbol 172 MovieClip Frame 1
_root.sLoop.attachSound("introMusic");
_root.sLoop.start(3, 9999);
_root.sLoop.setVolume(_root.music);
Symbol 172 MovieClip Frame 32
stop();
Symbol 184 Button
on (release) {
_root.difficulty = 1;
gotoAndPlay ("game");
}
Symbol 187 Button
on (release) {
_root.difficulty = 2;
gotoAndPlay ("game");
}
Symbol 190 Button
on (release) {
_root.difficulty = 3;
gotoAndPlay ("game");
}
Symbol 202 MovieClip Frame 1
this.onEnterFrame = function () {
this._alpha = (Math.random() * 20) + 40;
};
Symbol 203 MovieClip Frame 1
sLoop = new Sound(this);
sLoop.attachSound("electricFenceSound");
sLoop.setVolume(_root.soundFX);
stop();
Symbol 203 MovieClip Frame 2
sLoop.start(0, 1);
stop();
Symbol 203 MovieClip Frame 3
this.unloadMovie();
stop();
Symbol 204 MovieClip Frame 1
sLoop = new Sound(this);
sLoop.attachSound("electricFenceSound");
sLoop.setVolume(_root.soundFX * 2);
stop();
Symbol 204 MovieClip Frame 2
sLoop.start(0, 1);
stop();
Symbol 204 MovieClip Frame 3
this.unloadMovie();
Symbol 205 MovieClip Frame 1
_root.cam.walls.invisible._visible = false;
Symbol 210 Button
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
_root.missionInfo = "This is offline";
}
Symbol 216 Button
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
_root.missionInfo = "Sabotaging system.";
_root.mission++;
this.play();
}
Symbol 219 Button
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
_root.missionInfo = "This device is no longer functioning.";
}
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
stop();
Symbol 220 MovieClip Frame 33
onEnterFrame = function () {
var _local1 = _root;
w = _local1.cam.boom.attachMovie("exploding", "fireBall" + _local1.baddieShots(), _local1.baddieShots());
w._x = this._x;
w._y = this._y;
};
Symbol 220 MovieClip Frame 56
_root.cam.clickable.circleExit.gotoAndStop(3);
_root.cam.walls.cirlceExit.gotoAndStop(3);
_root.cam.switches.gotoAndStop(2);
_root.cam.clickable.stomachEntrance.gotoAndStop(2);
_root.cam.walls.stomachEntrance.gotoAndStop(2);
delete this.onEnterFrame;
stop();
Symbol 222 Button
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
_root.missionInfo = "There must be something powering this force field.";
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 3
delete this.onEnterFrame;
this.unloadMovie();
stop();
Symbol 224 Button
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
_root.missionInfo = "This force field seems to be powered from four different devices.";
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 3
_root.cam.clickable.entestineEntrance.gotoAndStop(2);
_root.cam.walls.intestineEntrance.gotoAndStop(2);
_root.cam.clickable.keys.gotoAndStop(2);
this.unloadMovie();
stop();
Symbol 228 Button
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
_root.missionInfo = "*Bzzzzt*....";
n = _root.cam.clickable.attachMovie("lifePowerUp", "lifePowerUp2457", 2457);
n._x = this._x - 3;
n._y = this._y + 10;
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
stop();
Instance of Symbol 229 MovieClip in Symbol 230 MovieClip Frame 2
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
if (_root.mission == 7) {
_root.missionInfo = "The controls to this force field are locked with three keys.";
}
if (_root.mission == 8) {
_root.missionInfo = "You have found one of the three keys needed to get past this force field.";
}
if (_root.mission == 9) {
_root.missionInfo = "You have found two of the three keys needed to get past this force field.";
}
if (_root.mission == 10) {
_root.cam.walls.intestineEntrance.gotoAndStop(3);
_root.missionInfo = "Force field disabled.";
this._parent.gotoAndStop(3);
}
}
Symbol 230 MovieClip Frame 3
stop();
trace("went there");
_root.cam.finalTrigger.gotoAndStop(2);
this.unloadMovie();
Symbol 232 Button
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
m = _root.cam.baddies.attachMovie("teleporter", "teleporter" + _root.baddieLevel(), _root.baddieLevel());
m._x = this._x;
m._y = this._y;
s = _root.cam.baddies.attachMovie("teleporter", "teleporter" + _root.baddieLevel(), _root.baddieLevel());
s._x = this._x;
s._y = this._y + 100;
h = _root.cam.baddies.attachMovie("teleporter", "teleporter" + _root.baddieLevel(), _root.baddieLevel());
h._x = this._x;
h._y = this._y - 100;
this.play();
this.unloadMovie();
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
stop();
Symbol 233 MovieClip Frame 3
stop();
Instance of Symbol 208 MovieClip "ring" in Symbol 234 MovieClip Frame 1
on (rollOver) {
_root.cursor.gotoAndStop("click");
}
on (rollOut) {
_root.cursor.gotoAndStop("attack");
}
on (release) {
if (_root.mission >= 1) {
_root.missionInfo = "Great! You have the ring. Now get going!";
this._visible = false;
_root.cam.walls.circleEntrance.gotoAndStop(3);
_root.mission++;
this.unloadMovie();
} else {
_root.missionInfo = "At least kill that giant robot first\u2026";
}
}
Symbol 236 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.hitTest(_root.cam.explosions) && (_root.weapon == 3)) {
_local1.play();
delete _local1.onEnterFrame;
}
};
Symbol 236 MovieClip Frame 26
_root.mission++;
if (_root.mission >= 7) {
_root.cam.clickable.stomachEntrance.gotoAndStop(3);
_root.cam.walls.stomachEntrance.gotoAndStop(3);
}
stop();
Symbol 238 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.hitTest(_root.cam.explosions) && (_root.weapon == 4)) {
_local1.play();
delete _local1.onEnterFrame;
}
};
Symbol 238 MovieClip Frame 26
_root.mission++;
if (_root.mission >= 7) {
_root.cam.clickable.stomachEntrance.gotoAndStop(3);
_root.cam.walls.stomachEntrance.gotoAndStop(3);
}
stop();
Symbol 240 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.hitTest(_root.cam.explosions) && (_root.weapon == 1)) {
_local1.play();
delete _local1.onEnterFrame;
}
};
Symbol 240 MovieClip Frame 26
_root.mission++;
if (_root.mission >= 7) {
_root.cam.clickable.stomachEntrance.gotoAndStop(3);
_root.cam.walls.stomachEntrance.gotoAndStop(3);
}
stop();
Symbol 242 Button
on (press) {
play();
}
Symbol 245 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.hitTest(_root.cam.explosions) && (_root.weapon == 2)) {
_local1.play();
delete _local1.onEnterFrame;
}
};
Symbol 245 MovieClip Frame 26
_root.mission++;
if (_root.mission >= 7) {
_root.cam.clickable.stomachEntrance.gotoAndStop(3);
_root.cam.walls.stomachEntrance.gotoAndStop(3);
}
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 3
this.unloadMovie();
delete this.onEnterFrame;
stop();
Instance of Symbol 247 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.cam.bot.hitTest(this)) {
_root.cam.walls.circleEntrance.gotoAndStop(2);
_root.cam.walls.cirlceExit.gotoAndStop(2);
_root.cam.clickable.powerConverter.gotoAndStop(2);
_root.cam.clickable.circleExit.gotoAndStop(2);
this.unloadMovie();
s = _root.cam.baddies.attachMovie("guardBot", "guardBot" + _root.baddieLevel(), _root.baddieLevel());
s._x = 1500;
s._y = 2300;
delete this.onEnterFrame;
this.unloadMovie();
}
}
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.cam.bot.hitTest(this)) {
_local1.cam.finish.gotoAndStop(2);
v = _local1.cam.baddies.attachMovie("guardBot", "guard" + _local1.baddieLevel(), _local1.baddieLevel());
v._x = _local1.cam.bot._x;
v._y = _local1.cam.bot._y - 250;
this.unloadMovie();
}
};
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
this.onEnterFrame = function () {
if (_root.cam.bot.hitTest(this)) {
_root.gotoAndStop("won");
}
};
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
stop();
Instance of Symbol 255 MovieClip "head" in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
mouseXPos = (_root._xmouse - _root.cam._x) - this._parent._x;
mouseYPos = (_root._ymouse - _root.cam._y) - this._parent._y;
radians = Math.atan2(mouseYPos, mouseXPos);
degrees = (radians * 180) / Math.PI;
this._rotation = (degrees + 90) - this._parent._rotation;
}
Symbol 259 MovieClip Frame 1
orcTimer = _root.orcCallRate;
basherTimer = _root.basherCallRate;
mineTimer = _root.mineCallRate;
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.mission >= 3) {
orcTimer = orcTimer - Math.random();
mineTimer = mineTimer - Math.random();
basherTimer = basherTimer - Math.random();
if ((orcTimer <= 0) && (_local1.orcCount < _local1.maxOrcCount)) {
b = _local1.cam.baddies.attachMovie("orc", "orc" + _local1.baddieLevel(), _local1.baddieLevel());
randNum = Math.random() - 0.5;
if (randNum > 0) {
numMod = 1;
} else {
numMod = -1;
}
randNum = Math.random() - 0.5;
if (randNum > 0) {
b._x = (300 * numMod) + _local1.cam.bot._x;
b._y = (Math.random() * 550) + _local1.cam.bot._y;
} else {
b._x = (Math.random() * 400) + _local1.cam.bot._x;
b._y = (400 * numMod) + _local1.cam.bot._y;
}
if (_local1.cam.walls.hitTest(b._x + _local1.cam._x, b._y + _local1.cam._y, true)) {
b.unloadMovie();
} else {
orcTimer = _local1.orcCallRate;
}
}
if ((mineTimer <= 0) && (_local1.mineCount < _local1.maxMineCount)) {
b = _local1.cam.baddies.attachMovie("mine", "mine" + _local1.baddieLevel(), _local1.baddieLevel());
randNum = Math.random() - 0.5;
if (randNum > 0) {
numMod = 1;
} else {
numMod = -1;
}
randNum = Math.random() - 0.5;
if (randNum > 0) {
b._x = (300 * numMod) + _local1.cam.bot._x;
b._y = (Math.random() * 550) + _local1.cam.bot._y;
} else {
b._x = (Math.random() * 400) + _local1.cam.bot._x;
b._y = (400 * numMod) + _local1.cam.bot._y;
}
if (_local1.cam.walls.hitTest(b._x + _local1.cam._x, b._y + _local1.cam._y, true)) {
b.unloadMovie();
} else {
mineTimer = _local1.mineCallRate;
}
}
if ((basherTimer <= 0) && (_local1.basherCount < _local1.maxBasherCount)) {
b = _local1.cam.baddies.attachMovie("basher", "basher" + _local1.baddieLevel(), _local1.baddieLevel());
randNum = Math.random() - 0.5;
if (randNum > 0) {
numMod = 1;
} else {
numMod = -1;
}
randNum = Math.random() - 0.5;
if (randNum > 0) {
b._x = (300 * numMod) + _local1.cam.bot._x;
b._y = (Math.random() * 550) + _local1.cam.bot._y;
} else {
b._x = (Math.random() * 400) + _local1.cam.bot._x;
b._y = (400 * numMod) + _local1.cam.bot._y;
}
if (_local1.cam.walls.hitTest(b._x + _local1.cam._x, b._y + _local1.cam._y, true)) {
b.unloadMovie();
} else {
basherTimer = _local1.basherCallRate;
}
}
if (_local1.mission >= 11) {
if ((teleporterTimer <= 0) && (_local1.teleporterCount < _local1.maxTeleporterCount)) {
b = _local1.cam.baddies.attachMovie("teleporter", "teleporter" + _local1.baddieLevel(), _local1.baddieLevel());
randNum = Math.random() - 0.5;
if (randNum > 0) {
numMod = 1;
} else {
numMod = -1;
}
randNum = Math.random() - 0.5;
if (randNum > 0) {
b._x = (300 * numMod) + _local1.cam.bot._x;
b._y = (Math.random() * 550) + _local1.cam.bot._y;
} else {
b._x = (Math.random() * 400) + _local1.cam.bot._x;
b._y = (400 * numMod) + _local1.cam.bot._y;
}
if (_local1.cam.walls.hitTest(b._x + _local1.cam._x, b._y + _local1.cam._y, true)) {
b.unloadMovie();
} else {
teleporterTimer = _local1.teleporterCallRate;
}
}
}
}
};
Instance of Symbol 258 MovieClip "bot" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
moveSpeed = _root.botMoveSpeed;
turnSpeed = 10;
up = 0;
down = 0;
right = 0;
left = 0;
initialX = this._x;
initialY = this._y;
panicDist = 2;
}
onClipEvent (keyDown) {
if (Key.isDown(38) || (Key.isDown(87))) {
up = 1;
}
if (Key.isDown(40) || (Key.isDown(83))) {
down = 1;
}
if (Key.isDown(39) || (Key.isDown(68))) {
right = 1;
}
if (Key.isDown(37) || (Key.isDown(65))) {
left = 1;
}
}
onClipEvent (enterFrame) {
if (right == 1) {
this._rotation = this._rotation + 5;
_root.cam.bot.head._rotation = _root.cam.bot.head._rotation - 5;
}
if (left == 1) {
this._rotation = this._rotation - 5;
_root.cam.bot.head._rotation = _root.cam.bot.head._rotation + 5;
}
if (up == 1) {
radians = (this._rotation * Math.PI) / 180;
radians = radians + 4.71238898038469;
xSpeed = moveSpeed * Math.cos(radians);
ySpeed = moveSpeed * Math.sin(radians);
if (!_root.cam.walls.hitTest((this._x + _root.cam._x) + (xSpeed * 2), (this._y + _root.cam._y) + (ySpeed * 2), true)) {
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
}
}
if (down == 1) {
radians = (this._rotation * Math.PI) / 180;
radians = radians + 4.71238898038469;
xSpeed = moveSpeed * Math.cos(radians);
ySpeed = moveSpeed * Math.sin(radians);
if (!_root.cam.walls.hitTest((this._x + _root.cam._x) - (xSpeed * 2), (this._y + _root.cam._y) - (ySpeed * 2), true)) {
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
}
}
if (_root.cam.boom.hitTest(this)) {
_root.botLife(-1);
this.gotoAndPlay("hurt");
}
if (_root.cam.baddies.hitTest(this._x + _root.cam._x, this._y + _root.cam._y, true)) {
runDist = panicDist;
tempX = this._x;
tempY = this._y;
while (_root.cam.baddies.hitTest(this._x + _root.cam._x, this._y + _root.cam._y, true) || (_root.cam.walls.hitTest(this._x + _root.cam._x, this._y + _root.cam._y, true))) {
this._x = tempX;
this._y = tempY;
this._x = this._x + ((Math.random() * runDist) - (runDist / 2));
this._y = this._y + ((Math.random() * runDist) - (runDist / 2));
runDist++;
}
this.gotoAndPlay("hurt");
_root.botLife(-0.1);
}
_root.cam._x = -((_root.cam.bot._x - initialX) - (_root.gameMenu._x / 2));
_root.cam._y = -((_root.cam.bot._y - initialY) - (_root.gameMenu._y / 2));
}
onClipEvent (keyUp) {
if ((!Key.isDown(38)) && (!Key.isDown(87))) {
up = 0;
}
if ((!Key.isDown(40)) && (!Key.isDown(83))) {
down = 0;
}
if ((!Key.isDown(39)) && (!Key.isDown(68))) {
right = 0;
}
if ((!Key.isDown(37)) && (!Key.isDown(65))) {
left = 0;
}
}
Instance of Symbol 259 MovieClip "baddies" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
orcTimer = _root.orcCallRate;
basherTimer = _root.basherCallRate;
mineTimer = _root.mineCallRate;
}
Symbol 269 MovieClip Frame 1
bigWidth = _root.cam.walls._width;
bigHeight = _root.cam.walls._height;
moveDot = function () {
var _local1 = _root;
xPercent = (-_local1.cam._x) / bigWidth;
yPercent = (-_local1.cam._y) / bigHeight;
_local1.minieMap.dot._x = 100 * xPercent;
_local1.minieMap.dot._y = 80 * yPercent;
};
setInterval(moveDot, 1000);
Symbol 278 Button
on (release) {
_root.weapon = 1;
_root.buttons.highlight._y = -138.3;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 10 * Math.cos(rad);
yDist = 10 * Math.sin(rad);
p = _local1.cam.explosions.attachMovie("tankShell", "tankShell" + _local1.flameLevel(), _local1.flameLevel());
p._x = _local1.cam.bot._x + xDist;
p._y = _local1.cam.bot._y + yDist;
p._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
}
};
}
Symbol 281 Button
on (release) {
_root.weapon = 2;
this.highlight._y = -70;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 15 * Math.cos(rad);
yDist = 15 * Math.sin(rad);
m = _local1.cam.bullets.attachMovie("shieldShot", "shield" + _local1.shieldShotLevel, shieldShotLevel);
m._x = _local1.cam.bot._x + xDist;
m._y = _local1.cam.bot._y + yDist;
m._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
}
};
}
Symbol 284 Button
on (release) {
_root.weapon = 3;
this.highlight._y = -2;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
sLoop.start(0, 99999);
_local1.onEnterFrame = function () {
var _local1 = _root;
m = _local1.cam.explosions.attachMovie("fireBall", "fireBall" + _local1.flameLevel(), _local1.flameLevel());
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 15 * Math.cos(rad);
yDist = 15 * Math.sin(rad);
m._x = _local1.cam.bot._x + xDist;
m._y = _local1.cam.bot._y + yDist;
m._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
};
}
onMouseUp = function () {
sLoop.stop();
delete _root.onEnterFrame;
};
};
}
Symbol 288 Button
on (release) {
_root.weapon = 4;
this.highlight._y = 66.7;
delete _root.onMouseUp;
delete _root.onMouseDown;
delete _root.onEnterFrame;
_root.onMouseDown = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
w.unloadMovie();
u = _local1.seekPathX.length;
while (u >= 0) {
_local1.seekPathX[u] = undefined;
_local1.seekPathY[u] = undefined;
u--;
}
pathNum = 0;
k = _local1.cam.seekLine.createEmptyMovieClip("holder", _local1.shieldShotLevel);
_local1.cam.seekLine.holder.lineStyle(1, 16777215, 100);
_local1.cam.seekLine.holder.moveTo(_local1._xmouse - _local1.cam._x, _local1._ymouse - _local1.cam._y);
_local1.onEnterFrame = function () {
var _local1 = _root;
xPos = _local1._xmouse - _local1.cam._x;
yPos = _local1._ymouse - _local1.cam._y;
_local1.cam.seekLine.holder.lineTo(xPos, yPos);
_local1.seekPathX[pathNum] = xPos;
_local1.seekPathY[pathNum] = yPos;
pathNum++;
};
}
};
_root.onMouseUp = function () {
var _local1 = _root;
if ((!_local1.hitMenu.hitTest(_local1._xmouse, _local1._ymouse, true)) && (!_local1.cam.clickable.hitTest(_local1._xmouse, _local1._ymouse, true))) {
rad = (((_local1.cam.bot.head._rotation + _local1.cam.bot._rotation) - 90) * Math.PI) / 180;
xDist = 15 * Math.cos(rad);
yDist = 15 * Math.sin(rad);
w = _local1.cam.explosions.attachMovie("heatSeek", "heatSeek" + _local1.shieldLevel, _local1.shieldLevel);
w._x = _local1.cam.bot._x + xDist;
w._y = _local1.cam.bot._y + yDist;
w._rotation = _local1.cam.bot.head._rotation + _local1.cam.bot._rotation;
}
k.unloadMovie();
delete _local1.onEnterFrame;
};
}
Symbol 291 MovieClip Frame 1
sLoop = new Sound(this);
sLoop.attachSound("flameThrower");
sLoop.setVolume(_root.soundFX * 2);
Symbol 314 Button
on (press) {
this._quality = "LOW";
this.qualityPic._x = -42;
}
Symbol 318 Button
on (press) {
this._quality = "MEDIUM";
this.qualityPic._x = -21;
}
Symbol 322 Button
on (press) {
this._quality = "HIGH";
this.qualityPic._x = 2.5;
}
Symbol 326 Button
on (press) {
this._quality = "AUTOHIGH";
this.qualityPic._x = 23.5;
}
Symbol 330 Button
on (press) {
this.detailPick._x = -37;
_root.cam.bg._visible = false;
_root.cam.walls.invisible._visible = true;
}
Symbol 334 Button
on (press) {
this.detailPick._x = -1;
_root.cam.bg._visible = true;
_root.cam.walls.invisible._visible = false;
}
Symbol 340 Button
on (press) {
_root.gotoAndPlay("menuStart");
}
Symbol 345 Button
on (press) {
this.startDrag(false, -45, this._y, 34, this._y);
this.onEnterFrame = function () {
var _local1 = _root;
_local1.music = (this._x + 45) * 1.267;
_local1.sLoop.setVolume(_local1.music);
};
}
on (release, releaseOutside) {
delete this.onEnterFrame;
this.stopDrag();
}
Symbol 347 Button
on (press) {
this.startDrag(false, -45, this._y, 34, this._y);
this.onEnterFrame = function () {
_root.soundFX = (this._x + 45) * 1.267;
};
}
on (release, releaseOutside) {
delete this.onEnterFrame;
this.stopDrag();
}
Symbol 366 Button
on (press) {
_root.gotoAndPlay("menuLeave");
}
Symbol 367 Button
on (press) {
_root.gotoAndPlay("menuReturn");
}
Symbol 369 MovieClip Frame 51
stop();
Symbol 373 Button
on (press) {
_root.gotoAndPlay("game");
}
Symbol 376 Button
on (press) {
_root.gotoAndPlay("menuStart");
}
Symbol 377 MovieClip Frame 1
sLoop = new Sound(this);
sLoop.attachSound("hugeBoom");
sLoop.start(0, 1);
sLoop.setVolume(_root.soundFX);
Symbol 388 Button
on (release) {
_root.gotoAndPlay("menuStart");
}
Symbol 393 Button
on (press) {
getURL ("http://jacobgrahn.com/", "_blank");
}