Frame 1
function checkLoad(mcTarget) {
var _local1 = mcTarget;
nLBytes = _local1.getBytesLoaded();
nTBytes = _local1.getBytesTotal();
nPercent = (nLBytes / nTBytes) * 100;
mcLoader.mcBar._xscale = nPercent;
if ((nPercent > 20) && (mcLoader.mcEggAnime._currentframe <= 20)) {
mcLoader.mcEggAnime.gotoAndPlay(21);
}
if ((nPercent > 40) && (mcLoader.mcEggAnime._currentframe <= 40)) {
mcLoader.mcEggAnime.gotoAndPlay(41);
}
if ((nPercent > 60) && (mcLoader.mcEggAnime._currentframe <= 60)) {
mcLoader.mcEggAnime.gotoAndPlay(61);
}
if ((nPercent > 80) && (mcLoader.mcEggAnime._currentframe <= 80)) {
mcLoader.mcEggAnime.gotoAndPlay(81);
}
if ((nLBytes >= nTBytes) && (nTBytes > 0)) {
if (nCount >= 12) {
clearInterval(nProgress);
_local1.gotoAndStop("init");
} else {
nCount++;
}
}
updateAfterEvent();
}
Stage.showMenu = false;
mcCopy.onPress = function () {
getURL ("http://www.MoFunZone.com", "_blank");
};
mcNinja.onPress = function () {
getURL ("http://www.MoFunZone.com", "_blank");
};
nCount = 0;
mcLoader.mcBar._xscale = 1;
nProgress = setInterval(checkLoad, 50, this);
stop();
Frame 2
mcIntro.play();
stop();
Frame 5
function myVil() {
var _local1 = this;
_local1.isVillager = true;
_local1.ticks = 0;
_local1.init = 1;
_local1.isChased = false;
_local1.direction = 1;
_local1.id = undefined;
}
function myEgg() {
var _local1 = this;
_local1.timeStart = -1;
_local1.timeCritical = 4;
_local1.timeOut = undefined;
_local1._state = 0;
}
function myAlien() {
var _local1 = this;
_local1.targetManObj = undefined;
_local1._state = ALIEN_WALKING;
_local1.ticks = 0;
_local1.isAlien = true;
_local1.direction = 1;
}
function myMissle() {
var _local1 = this;
_local1.targetObj = undefined;
_local1._state = 0;
_local1.player = undefined;
}
function myBonus() {
this.id = undefined;
this.expire = undefined;
}
play();
scene = null;
vol = 50;
game = new Object();
game._state = 0;
game._type = 0;
game.playerNo = 2;
game.timeStart = -1000;
game.speed = 8;
game.isPaused = false;
game.level = 1;
game.levelTimeOut = new Array(80, 100, 120, 100, 80);
game.TimeOut = 600;
game.eggTimeOut = new Array(8, 7, 7, 6, 6);
game.alienSpeed = new Array(4, 6, 6, 7, 7);
game.queenEggTimeout = new Array(25, 20, 15, 10, 5);
game.forced_end = false;
game.over = false;
game.keyPressed = false;
game.endanime = true;
game.won = false;
GW = 550;
GH = 400;
EGG_SIZE = 91;
EGG_IN_QDROPPING_X = 0;
EGG_IN_QDROPPING_Y = 223;
ALIEN_IN_AHATCH_X = -30;
ALIEN_IN_AHATCH_Y = 100;
ALIEN_WALKING = 0;
ALIEN_EATING = 1;
ALIEN_CHASING = 2;
ALIEN_DEAD = 3;
ALIEN_DRAWNING = 4;
nextEggID = 0;
eggBaseDepth = 50;
eggs = new Array();
nextAlienID = 0;
alBaseDepth = 200;
aliens = new Array();
nextMissleID = 0;
mBaseDepth = 500;
missles = new Array();
nextBonusID = 0;
bBaseDepth = 0;
bonuses = new Array();
bonusTimes = new Array();
vilBaseDepth = 400;
myVil.prototype = new MovieClip();
myEgg.prototype = new MovieClip();
myAlien.prototype = new MovieClip();
myMissle.prototype = new MovieClip();
myBonus.prototype = new MovieClip();
Object.registerClass("myVil", myVil);
Object.registerClass("myEgg", myEgg);
Object.registerClass("myAlien", myAlien);
Object.registerClass("myMissle", myMissle);
Object.registerClass("myBonus", myBonus);
myVil.prototype.preMove = function () {
if (this == mcVil) {
return(undefined);
}
with (this) {
ticks = ticks + 1;
if (ticks == 40) {
ticks = 0;
}
}
};
myAlien.prototype.preMove = function () {
if (this == mcAlien) {
return(undefined);
}
with (this) {
ticks = ticks + 1;
targetManObj.isChased = false;
targetManObj = undefined;
if (ticks == 40) {
ticks = 0;
}
}
};
Frame 6
mcAlien.stop();
mcAlien._visible = false;
mcBonus.stop();
mcBonus._visible = false;
mcEgg.stop();
mcEgg._visible = false;
mcMissle.stop();
mcMissle._visible = false;
mcP1.stop();
mcP1._visible = false;
mcP2.stop();
mcP2._visible = false;
mcQueen.stop();
mcQueen._visible = false;
mcScoreP1.stop();
mcScoreP1._visible = false;
mcScoreP2.stop();
mcScoreP2._visible = false;
mc_Time.stop();
mc_Time._visible = false;
mcVil.stop();
mcVil._visible = false;
mcTank._visible = false;
_root.gotoAndStop("menu");
Frame 9
function butInit() {
instructions._visible = false;
symOptions._visible = false;
mcButtons._visible = true;
mcLogo_text._visible = true;
}
function refreshVolume() {
symOptions.mcVolume.anime.gotoAndStop((vol / 10) + 1);
snd_1.setVolume(vol);
snd_2.setVolume(vol);
snd_3.setVolume(vol);
snd_4.setVolume(vol);
snd_5.setVolume(vol);
snd_6.setVolume(vol);
snd_7.setVolume(vol);
snd_8.setVolume(vol);
snd_9.setVolume(vol);
}
function refreshQuality() {
if (_quality == "LOW") {
symOptions.mcQuality.gotoAndStop(1);
}
if (_quality == "MEDIUM") {
symOptions.mcQuality.gotoAndStop(2);
}
if (_quality == "HIGH") {
symOptions.mcQuality.gotoAndStop(3);
}
}
function refreshType() {
symOptions.mcGame.gotoAndStop(game._type + 1);
}
function hideFirst() {
mcButtons._visible = false;
mcLogo_text._visible = false;
}
mcCopy.onPress = function () {
getURL ("http://www.MoFunZone.com", "_blank");
};
butInit();
Mouse.show();
refreshVolume();
refreshQuality();
refreshType();
stop();
mcSoundLib = this.createEmptyMovieClip("mcSoundLib", 4000);
mcSnd_1 = mcSoundLib.createEmptyMovieClip("mcHolder_1", 1);
snd_1 = new Sound(mcSnd_1);
snd_1.attachSound("Sound_menu");
snd_1.setVolume(vol);
snd_1.start();
mcSnd_2 = mcSoundLib.createEmptyMovieClip("mcHolder_2", 2);
snd_2 = new Sound(mcSnd_2);
snd_2.attachSound("Sound_game");
snd_2.setVolume(vol);
mcSnd_3 = mcSoundLib.createEmptyMovieClip("mcHolder_3", 3);
snd_3 = new Sound(mcSnd_3);
snd_3.attachSound("crack");
snd_3.setVolume(vol);
mcSnd_4 = mcSoundLib.createEmptyMovieClip("mcHolder_4", 4);
snd_4 = new Sound(mcSnd_4);
snd_4.attachSound("pistol");
snd_4.setVolume(vol);
mcSnd_5 = mcSoundLib.createEmptyMovieClip("mcHolder_5", 5);
snd_5 = new Sound(mcSnd_5);
snd_5.attachSound("missle");
snd_5.setVolume(vol);
mcSnd_6 = mcSoundLib.createEmptyMovieClip("mcHolder_6", 6);
snd_6 = new Sound(mcSnd_6);
snd_6.attachSound("explosion");
snd_6.setVolume(vol);
mcSnd_7 = mcSoundLib.createEmptyMovieClip("mcHolder_7", 7);
snd_7 = new Sound(mcSnd_7);
snd_7.attachSound("scream");
snd_7.setVolume(vol);
mcSnd_8 = mcSoundLib.createEmptyMovieClip("mcHolder_8", 8);
snd_8 = new Sound(mcSnd_8);
snd_8.attachSound("alien");
snd_8.setVolume(vol);
mcSnd_9 = mcSoundLib.createEmptyMovieClip("mcHolder_9", 9);
snd_9 = new Sound(mcSnd_9);
snd_9.attachSound("tank");
snd_9.setVolume(vol);
snd_1.onSoundComplete = function () {
snd_1.start();
};
mcButtons.butPlayMore.onRelease = function () {
getURL ("http://www.MoFunZone.com", "_blank");
};
mcButtons.but1Player.onRelease = function () {
game.playerNo = 1;
gotoAndStop ("playGame");
};
mcButtons.but2PlayersCo.onRelease = function () {
game.playerNo = 2;
gotoAndStop ("playGame");
};
mcButtons.butInstructions.onRelease = function () {
hideFirst();
instructions.mcInst.gotoAndStop(1);
instructions._alpha = 80;
instructions._visible = true;
};
instructions.butInstOk.onRelease = function () {
if (instructions.mcInst._currentframe == 5) {
butInit();
instructions._visible = false;
} else {
instructions.mcInst.gotoAndStop(instructions.mcInst._currentframe + 1);
}
};
mcButtons.butSettings.onRelease = function () {
hideFirst();
symOptions._visible = true;
};
symOptions.butop.onRelease = function () {
butInit();
symOptions._visible = false;
};
symOptions.mcGame.onPress = function () {
var _local1 = this;
if (_local1._currentframe == 1) {
game._type = 1;
}
if (_local1._currentframe == 2) {
game._type = 2;
}
if (_local1._currentframe == 3) {
game._type = 0;
}
refreshType();
};
symOptions.mcQuality.onPress = function () {
var _local1 = this;
if (_local1._currentframe == 1) {
_quality = "MEDIUM";
}
if (_local1._currentframe == 2) {
_quality = "HIGH";
}
if (_local1._currentframe == 3) {
_quality = "LOW";
}
refreshQuality();
};
symOptions.mcVolume.dec.onRelease = function () {
if (vol >= 10) {
vol = vol - 10;
}
refreshVolume();
};
symOptions.mcVolume.inc.onRelease = function () {
if (vol <= 90) {
vol = vol + 10;
}
refreshVolume();
};
Frame 14
snd_1.stop();
_root.gotoAndStop("menu");
Frame 15
function pauseGame(pgSwitch) {
game.isPaused = pgSwitch;
}
function checkPress() {
if (Key.isDown(27)) {
game.forced_end = true;
game.over = true;
if (game.isPaused) {
game.isPaused = !game.isPaused;
pauseGame(game.isPaused);
}
}
if (P1Fire1 < 10) {
P1Fire1++;
}
if (P1Fire2 < 10) {
P1Fire2++;
}
if (P2Fire1 < 10) {
P2Fire1++;
}
if (P2Fire2 < 10) {
P2Fire2++;
}
if (Key.isDown(222) && (!game.isPaused)) {
goodPress = false;
if (((P1Fire1 >= 10) && (pl1s.bullets > 0)) && (pl1._visible == true)) {
P1Fire1 = 0;
goodPress = true;
}
if (goodPress) {
snd_4.start();
pl1s.bullets = pl1s.bullets - 1;
checkScores();
var idx = nextMissleID;
scene.attachMovie("myMissle", "missle" + idx, mBaseDepth + idx, {_visible:false});
missles.push(scene["missle" + idx]);
with (scene["missle" + idx]) {
pt2.x = ehtx2;
pt2.y = ehty;
pl1.localToGlobal(pt2);
_x = pt2.x + ((_width / 2) * Math.sin(d2r(pl1._rotation)));
_y = pt2.y - ((_width / 2) * Math.cos(d2r(pl1._rotation)));
_state = 0;
player = pl1s;
_xscale = (_yscale = 30);
_rotation = pl1._rotation;
gotoAndStop(_state + 1);
_visible = true;
}
nextMissleID++;
}
}
if (Key.isDown(186) && (!game.isPaused)) {
goodPress = false;
if (((P1Fire2 >= 10) && (pl1s.homing > 0)) && (pl1._visible == true)) {
P1Fire2 = 0;
goodPress = true;
}
if (goodPress) {
snd_5.start();
pl1s.homing = pl1s.homing - 1;
checkScores();
var idx = nextMissleID;
scene.attachMovie("myMissle", "missle" + idx, mBaseDepth + idx, {_visible:false});
missles.push(scene["missle" + idx]);
with (scene["missle" + idx]) {
pt2.x = ehtx2;
pt2.y = ehty;
pl1.localToGlobal(pt2);
_x = pt2.x + ((_width / 2) * Math.sin(d2r(pl1._rotation)));
_y = pt2.y - ((_width / 2) * Math.cos(d2r(pl1._rotation)));
_state = 1;
player = pl1s;
_xscale = (_yscale = 50);
_rotation = pl1._rotation;
gotoAndStop(_state + 1);
_visible = true;
}
nextMissleID++;
}
}
if (Key.isDown(49) && (!game.isPaused)) {
goodPress = false;
if (((P2Fire1 >= 10) && (pl2s.bullets > 0)) && (pl2._visible == true)) {
P2Fire1 = 0;
goodPress = true;
}
if (goodPress) {
snd_4.start();
pl2s.bullets = pl2s.bullets - 1;
checkScores();
var idx = nextMissleID;
scene.attachMovie("myMissle", "missle" + idx, mBaseDepth + idx, {_visible:false});
missles.push(scene["missle" + idx]);
with (scene["missle" + idx]) {
pt2.x = ehtx2;
pt2.y = ehty;
pl2.localToGlobal(pt2);
_x = pt2.x + ((_width / 2) * Math.sin(d2r(pl2._rotation)));
_y = pt2.y - ((_width / 2) * Math.cos(d2r(pl2._rotation)));
_state = 0;
player = pl2s;
_xscale = (_yscale = 30);
_rotation = pl2._rotation;
gotoAndStop(_state + 1);
_visible = true;
}
nextMissleID++;
}
}
if (Key.isDown(192) && (!game.isPaused)) {
goodPress = false;
if (((P2Fire2 >= 10) && (pl2s.homing > 0)) && (pl2._visible == true)) {
P2Fire2 = 0;
goodPress = true;
}
if (goodPress) {
snd_5.start();
pl2s.homing = pl2s.homing - 1;
checkScores();
var idx = nextMissleID;
scene.attachMovie("myMissle", "missle" + idx, mBaseDepth + idx, {_visible:false});
missles.push(scene["missle" + idx]);
with (scene["missle" + idx]) {
pt2.x = ehtx2;
pt2.y = ehty;
pl2.localToGlobal(pt2);
_x = pt2.x + ((_width / 2) * Math.sin(d2r(pl2._rotation)));
_y = pt2.y - ((_width / 2) * Math.cos(d2r(pl2._rotation)));
_state = 1;
player = pl2s;
_xscale = (_yscale = 50);
_rotation = pl2._rotation;
gotoAndStop(_state + 1);
_visible = true;
}
nextMissleID++;
}
}
}
function d2r(angle) {
return((angle * Math.PI) / 180);
}
function r2d(angleRadians) {
return((angleRadians * 180) / Math.PI);
}
function showMessage(msg, delay) {
msgCenterZoom.msgText = msg;
msgCenterZoom.gotoAndStop(0);
msgCenterZoom._visible = true;
msgCenterZoom.play();
msgCenterZoom.timeOut = delay;
}
function checkScores() {
if (pl1s.egg < 10) {
p1EggKill = "00" + pl1s.egg.toString();
} else if (pl1s.egg < 100) {
p1EggKill = "0" + pl1s.egg.toString();
} else {
p1EggKill = pl1s.egg.toString();
}
if (pl1s.alien < 10) {
p1AlienKill = "0" + pl1s.alien.toString();
} else {
p1AlienKill = pl1s.alien.toString();
}
if (pl2s.egg < 10) {
p2EggKill = "00" + pl2s.egg.toString();
} else if (pl2s.egg < 100) {
p2EggKill = "0" + pl2s.egg.toString();
} else {
p2EggKill = pl2s.egg.toString();
}
if (pl2s.alien < 10) {
p2AlienKill = "0" + pl2s.alien.toString();
} else {
p2AlienKill = pl2s.alien.toString();
}
if ((((pl1s.egg + pl1s.alien) % 17) == 0) && ((pl1s.egg + pl1s.alien) > 0)) {
pl1s.bullets++;
} else if ((((pl1s.egg + pl1s.alien) % 29) == 0) && ((pl1s.egg + pl1s.alien) > 0)) {
pl1s.homing++;
}
if ((((pl2s.egg + pl2s.alien) % 17) == 0) && ((pl2s.egg + pl2s.alien) > 0)) {
pl2s.bullets++;
} else if ((((pl2s.egg + pl2s.alien) % 29) == 0) && ((pl2s.egg + pl2s.alien) > 0)) {
pl2s.homing++;
}
if (pl1s.bullets < 10) {
p1Bullets = "0" + pl1s.bullets.toString();
} else {
p1Bullets = pl1s.bullets.toString();
}
if (pl2s.bullets < 10) {
p2Bullets = "0" + pl2s.bullets.toString();
} else {
p2Bullets = pl2s.bullets.toString();
}
if (pl1s.homing < 10) {
p1Homing = "0" + pl1s.homing.toString();
} else {
p1Homing = pl1s.homing.toString();
}
if (pl2s.homing < 10) {
p2Homing = "0" + pl2s.homing.toString();
} else {
p2Homing = pl2s.homing.toString();
}
}
function dispTime() {
if (game._type == 2) {
min = Math.floor(game.timeStart / 60);
sec = game.timeStart - (min * 60);
if (min < 10) {
if (sec < 10) {
screenTime = (("0" + min.toString()) + ":0") + sec.toString();
} else {
screenTime = (("0" + min.toString()) + ":") + sec.toString();
}
} else if (sec < 10) {
screenTime = (min.toString() + ":0") + sec.toString();
} else {
screenTime = (min.toString() + ":") + sec.toString();
}
} else {
min = Math.floor(gameTimeRemaining / 60);
sec = gameTimeRemaining - (min * 60);
if (min < 10) {
if (sec < 10) {
screenTime = (("0" + min.toString()) + ":0") + sec.toString();
} else {
screenTime = (("0" + min.toString()) + ":") + sec.toString();
}
} else if (sec < 10) {
screenTime = (min.toString() + ":0") + sec.toString();
} else {
screenTime = (min.toString() + ":") + sec.toString();
}
}
}
function moveEntityOnScene(obj, offset, speed, angleOffset) {
var changed;
var newx;
var newy;
changed = false;
if (scene[obj] != undefined) {
if (((obj.direction != undefined) && (obj.preMove != undefined)) && (obj.ticks != undefined)) {
with (obj) {
preMove();
if (ticks >= 39) {
_rotation = _rotation + (direction * 35);
direction = -direction;
}
if (_rotation < 0) {
_rotation = _rotation + 360;
}
}
}
with (obj) {
newx = _x + (speed * Math.sin(d2r(_rotation + angleOffset)));
newy = _y - (speed * Math.cos(d2r(_rotation + angleOffset)));
if (newx < 161) {
if (newy < 161) {
if (back2.hitTest(newx, newy, true)) {
_rotation = _rotation + (180 + direction);
changed = true;
}
}
} else if ((newx > 161) && (newx < 380)) {
if ((newy > 120) && (newy < 290)) {
if (!isAlien) {
if (pool.hitmedium.hitTest(newx, newy, true)) {
_rotation = _rotation + (180 + direction);
changed = true;
}
} else if (_state != ALIEN_DRAWNING) {
if (pool.hitsmall.hitTest(newx, newy, true)) {
targetManObj.isChased = false;
targetManObj = undefined;
gotoAndStop("drawn");
_state = ALIEN_DRAWNING;
}
}
}
} else if (newx > 380) {
if (newy < 215) {
if (back1.hitTest(newx, newy, true)) {
_rotation = _rotation + (180 + direction);
changed = true;
}
}
if (newy > 215) {
if (back3.hitTest(newx, newy, true)) {
_rotation = _rotation + (180 + direction);
changed = true;
}
}
}
if (!createTank) {
if (tank.hitTest(newx, newy, true)) {
_rotation = _rotation + (180 + direction);
changed = true;
}
}
if (newx <= offset) {
if (((_rotation + angleOffset) > -180) && ((_rotation + angleOffset) <= -90)) {
_rotation = (360 - _rotation) - angleOffset;
} else {
_rotation = (180 - _rotation) - angleOffset;
}
changed = true;
} else if (newx >= (GW - offset)) {
_rotation = 360 - _rotation;
changed = true;
} else if (newy <= offset) {
_rotation = 180 - _rotation;
changed = true;
} else if (newy >= (GH - offset)) {
if ((_rotation >= 90) && (_rotation <= 180)) {
_rotation = 180 - _rotation;
} else {
_rotation = 540 - _rotation;
}
changed = true;
}
if (changed) {
newx = _x + ((3 * speed) * Math.sin(d2r(_rotation + angleOffset)));
newy = _y - ((3 * speed) * Math.cos(d2r(_rotation + angleOffset)));
_x = newx;
_y = newy;
} else {
_x = newx;
_y = newy;
}
}
} else {
return(undefined);
}
return(changed);
}
function moveVillagers() {
var newx;
var newy;
var offset = 10;
var speed = (game.speed - 2);
var i = 0;
while (i < vMax) {
if (scene["vil" + i] == undefined) {
} else if (scene["vil" + i].init == 0) {
moveEntityOnScene(scene["vil" + i], offset, speed, 0);
} else if (scene["vil" + i].init == 1) {
with (scene["vil" + i]) {
if (_x < 20) {
_x = _x + speed;
}
if (_x > 530) {
_x = _x - speed;
}
if (_y < 10) {
_y = _y + speed;
}
if (_y > 390) {
_y = _y - speed;
}
if (((_y > 9) && (_y < 391)) && ((_x > 19) && (_x < 531))) {
init = 0;
isChased = false;
}
}
} else if (scene["vil" + i].init >= 2) {
scene["vil" + i].init--;
}
i++;
}
}
function getDestAngle(srcx, srcy, destx, desty) {
var _local3 = srcy;
var ip = Math.sqrt(((desty - _local3) * (desty - _local3)) + ((destx - srcx) * (destx - srcx)));
var sinValue = ((destx - srcx) / ip);
var cosValue = ((desty - _local3) / ip);
var _local1 = 0;
var _local2 = 0;
if (destx == srcx) {
if ((desty - _local3) > 0) {
_local1 = Math.PI;
} else {
_local1 = (Math.PI*2);
}
} else {
_local2 = Math.atan((desty - _local3) / (destx - srcx));
if ((sinValue >= 0) && (cosValue <= 0)) {
_local1 = (Math.PI/2) + _local2;
} else if ((sinValue <= 0) && (cosValue <= 0)) {
_local1 = -1.5707963267949 + _local2;
} else if ((sinValue <= 0) && (cosValue >= 0)) {
_local1 = -1.5707963267949 + _local2;
} else {
_local1 = (Math.PI/2) + _local2;
}
}
_local1 = _local1 - Math.PI;
return(_local1);
}
function pickAlienTarget(ax, ay) {
var dmin = 10000;
var idx = -1;
var ob;
var d;
var i = 0;
while (i < vMax) {
if ((scene["vil" + i] != undefined) && (scene["vil" + i].init == 0)) {
with (scene["vil" + i]) {
d = Math.sqrt(((_x - ax) * (_x - ax)) + ((_y - ay) * (_y - ay)));
if ((d < dmin) && (!isChased)) {
dmin = d;
ob = scene["vil" + i];
}
}
}
i++;
}
pl1.isChased = false;
pl2.isChased = false;
if (pl1._visible && (!pl1s.bshield)) {
d = Math.sqrt(((pl1._x - ax) * (pl1._x - ax)) + ((pl1._y - ay) * (pl1._y - ay)));
if ((d < dmin) && (!pl1.isChased)) {
dmin = d;
ob = pl1;
}
}
if (pl2._visible && (!pl2s.bshield)) {
d = Math.sqrt(((pl2._x - ax) * (pl2._x - ax)) + ((pl2._y - ay) * (pl2._y - ay)));
if ((d < dmin) && (!pl2.isChased)) {
dmin = d;
ob = pl2;
}
}
if (ob == undefined) {
return(undefined);
}
ob.isChased = true;
return(ob);
}
function TargetAlien(ax, ay) {
var dmin = 10000;
var idx = -1;
var ob;
var d;
var i = 0;
while (i < aliens.length) {
if (aliens[i] != undefined) {
with (aliens[i]) {
d = Math.sqrt(((_x - ax) * (_x - ax)) + ((_y - ay) * (_y - ay)));
if (d < dmin) {
dmin = d;
ob = aliens[i];
}
}
}
i++;
}
if (ob == undefined) {
return(undefined);
}
return(ob);
}
function checkDropEgg() {
if (((q.stepsElapsed >= q.timeOut) && (game._state == 0)) && (createTank)) {
game._state = 1;
}
}
function Bezier(obj, adjust) {
var _local1 = adjust;
var _local2 = obj;
_local1 = _local1 / 2;
if (P_0 == undefined) {
P_0 = new Object();
P_0.x = -_local1;
P_0.y = 200;
prevx = _local2._x;
prevy = _local2._y;
} else if (u >= 1) {
prevx = _local2._x;
prevy = _local2._y;
if (P_3.x < 0) {
P_0.x = -_local1;
P_0.y = Math.floor(((Math.random() * ((200 - (2 * _local1)) + 1)) + 100) + _local1);
} else if (P_3.x > 550) {
P_0.x = 550 + _local1;
P_0.y = Math.floor(((Math.random() * ((200 - (2 * _local1)) + 1)) + 100) + _local1);
} else if (P_3.y < 0) {
P_0.x = Math.floor(((Math.random() * ((250 - (2 * _local1)) + 1)) + 150) + _local1);
P_0.y = -_local1;
} else if (P_3.y > 400) {
P_0.x = Math.floor(((Math.random() * ((250 - (2 * _local1)) + 1)) + 150) + _local1);
P_0.y = 400 + _local1;
}
}
if (P_1 == undefined) {
P_1 = new Object();
P_1.x = 100;
P_1.y = 400;
} else if (u >= 1) {
rand = Math.floor((Math.random() * 2) + 0);
if (rand == 1) {
lesspoints = false;
} else {
lesspoints = true;
}
if (!lesspoints) {
rand = Math.floor((Math.random() * 2) + 0);
if (P_0.x < 0) {
P_1.x = Math.floor((Math.random() * 101) + 100);
if (rand == 0) {
P_1.y = -50;
} else {
P_1.y = 450;
}
} else if (P_0.x > 550) {
P_1.x = Math.floor((Math.random() * 101) + 350);
if (rand == 0) {
P_1.y = -50;
} else {
P_1.y = 450;
}
} else if (P_0.y < 0) {
if (rand == 0) {
P_1.x = -50;
} else {
P_1.x = 600;
}
P_1.y = Math.floor((Math.random() * 71) + 65);
} else if (P_0.y > 400) {
if (rand == 0) {
P_1.x = -50;
} else {
P_1.x = 600;
}
P_1.y = Math.floor((Math.random() * 71) + 265);
}
} else {
rand = Math.floor((Math.random() * 2) + 0);
if (P_0.x < 0) {
P_1.x = Math.floor((Math.random() * 76) + 200);
if (rand == 0) {
P_1.y = -1;
} else {
P_1.y = 401;
}
} else if (P_0.x > 550) {
P_1.x = Math.floor((Math.random() * 76) + 275);
if (rand == 0) {
P_1.y = -1;
} else {
P_1.y = 401;
}
} else if (P_0.y < 0) {
if (rand == 0) {
P_1.x = -1;
} else {
P_1.x = 551;
}
P_1.y = Math.floor((Math.random() * 61) + 140);
} else if (P_0.y > 400) {
if (rand == 0) {
P_1.x = -1;
} else {
P_1.x = 551;
}
P_1.y = Math.floor((Math.random() * 61) + 200);
}
}
}
if (P_2 == undefined) {
P_2 = new Object();
P_2.x = 250;
P_2.y = 0;
} else if (u >= 1) {
if (!lesspoints) {
if (P_0.x < 0) {
P_2.x = Math.floor((Math.random() * 101) + 350);
if (P_1.y == 450) {
P_2.y = -50;
} else {
P_2.y = 450;
}
} else if (P_0.x > 550) {
P_2.x = Math.floor((Math.random() * 101) + 100);
if (P_1.y == 450) {
P_2.y = -50;
} else {
P_2.y = 450;
}
} else if (P_0.y < 0) {
if (P_1.x == 600) {
P_2.x = -50;
} else {
P_2.x = 600;
}
P_2.y = Math.floor((Math.random() * 71) + 265);
} else if (P_0.y > 400) {
if (P_1.x == 600) {
P_2.x = -50;
} else {
P_2.x = 600;
}
P_2.y = Math.floor((Math.random() * 71) + 65);
}
}
}
if (P_3 == undefined) {
P_3 = new Object();
P_3.x = 550 + _local1;
P_3.y = 400;
u = 0;
} else if (u >= 1) {
if (!lesspoints) {
if (P_0.x < 0) {
P_3.x = 550 + _local1;
P_3.y = Math.floor(((Math.random() * (((300 - (2 * _local1)) - 100) + 1)) + 100) + _local1);
} else if (P_0.x > 550) {
P_3.x = -_local1;
P_3.y = Math.floor(((Math.random() * (((300 - (2 * _local1)) - 100) + 1)) + 100) + _local1);
} else if (P_0.y < 0) {
P_3.x = Math.floor(((Math.random() * (((400 - (2 * _local1)) - 150) + 1)) + 150) + _local1);
P_3.y = 400 + _local1;
} else if (P_0.y > 400) {
P_3.x = Math.floor(((Math.random() * (((400 - (2 * _local1)) - 150) + 1)) + 150) + _local1);
P_3.y = -_local1;
}
} else if (P_0.x < 0) {
P_3.x = Math.floor(((Math.random() * (((400 - (2 * _local1)) - 275) + 1)) + 275) + _local1);
if (P_1.y == -1) {
P_3.y = 400 + _local1;
} else {
P_3.y = -_local1;
}
} else if (P_0.x > 550) {
P_3.x = Math.floor(((Math.random() * (((275 - (2 * _local1)) - 150) + 1)) + 150) + _local1);
if (P_1.y == -1) {
P_3.y = 400 + _local1;
} else {
P_3.y = -_local1;
}
} else if (P_0.y < 0) {
if (P_1.x == -1) {
P_3.x = 550 + _local1;
} else {
P_3.x = -_local1;
}
P_3.y = Math.floor(((Math.random() * (((300 - (2 * _local1)) - 200) + 1)) + 200) + _local1);
} else if (P_0.y > 400) {
if (P_1.x == -1) {
P_3.x = 550 + _local1;
} else {
P_3.x = -_local1;
}
P_3.y = Math.floor(((Math.random() * (((200 - (2 * _local1)) - 100) + 1)) + 100) + _local1);
}
u = 0;
}
if (!lesspoints) {
newx = (((P_0.x * Math.pow(1 - u, 3)) + (((P_1.x * 3) * u) * Math.pow(1 - u, 2))) + (((P_2.x * 3) * Math.pow(u, 2)) * (1 - u))) + (P_3.x * Math.pow(u, 3));
newy = (((P_0.y * Math.pow(1 - u, 3)) + (((P_1.y * 3) * u) * Math.pow(1 - u, 2))) + (((P_2.y * 3) * Math.pow(u, 2)) * (1 - u))) + (P_3.y * Math.pow(u, 3));
} else {
newx = ((P_0.x * Math.pow(1 - u, 2)) + (((P_1.x * 2) * u) * (1 - u))) + (P_3.x * Math.pow(u, 2));
newy = ((P_0.y * Math.pow(1 - u, 2)) + (((P_1.y * 2) * u) * (1 - u))) + (P_3.y * Math.pow(u, 2));
}
angle = getDestAngle(prevx, prevy, newx, newy);
prevx = newx;
prevy = newy;
_local2._x = newx;
_local2._y = newy;
_local2._rotation = r2d(angle);
u = u + (0.001 * q.speed);
}
function moveQueen() {
q.stepsElapsed++;
Bezier(queen, 160);
checkDropEgg();
}
function moveAliens() {
var newx;
var newy;
var angle;
var _local1;
var _local2;
var _local3 = 0;
for ( ; _local3 < aliens.length ; _local3++) {
if (aliens[_local3] == undefined) {
} else {
_local1 = aliens[_local3];
if (((_local1._state == ALIEN_EATING) || (_local1._state == ALIEN_DEAD)) || (_local1._state == ALIEN_DRAWNING)) {
} else {
_local1.preMove();
if (_local1.targetManObj == undefined) {
_local1.targetManObj = pickAlienTarget(_local1._x, _local1._y);
if (_local1.targetManObj == undefined) {
moveEntityOnScene(_local1, _local1.height / 2, alSpeed, 180);
continue;
}
} else {
_local2 = _local1.targetManObj;
angle = getDestAngle(_local1._x, _local1._y, _local2._x, _local2._y);
_local1._rotation = r2d(angle);
angle = angle + Math.PI;
newx = _local1._x + (alSpeed * Math.sin(angle));
newy = _local1._y - (alSpeed * Math.cos(angle));
if (pool.hitsmall.hitTest(newx, newy, true)) {
_local2.isChased = undefined;
_local1.targetManObj = undefined;
_local1.gotoAndStop("drawn");
_local1._state = ALIEN_DRAWNING;
} else {
_local1._x = newx;
_local1._y = newy;
if (_local1.hitTest(_local2)) {
if (!_local2.isVillager) {
_local2._visible = false;
if (game.playerNo == 1) {
lastman = true;
} else if ((pl1._visible == false) && (pl2._visible == false)) {
lastman = true;
}
if (_local2 == pl1) {
id = 4;
pl1s._time = game.timeStart;
} else {
id = 5;
pl2s._time = game.timeStart;
}
_local1._state = ALIEN_EATING;
_local1.gotoAndStop("eat_" + id);
snd_7.start();
} else {
_local2.init = 180;
if (_local2.id == 0) {
_local2._x = -20;
_local2._y = Math.floor(Math.random() * 176) + 150;
_local2._rotation = 90;
} else if (_local2.id == 1) {
_local2._x = 570;
_local2._y = Math.floor(Math.random() * 26) + 200;
_local2._rotation = 270;
} else if (_local2.id == 2) {
_local2._x = Math.floor(Math.random() * 151) + 150;
_local2._y = -20;
_local2._rotation = 180;
} else if (_local2.id == 3) {
_local2._x = Math.floor(Math.random() * 301) + 0;
_local2._y = 420;
_local2._rotation = 0;
}
_local2.isChased = false;
_local1._state = ALIEN_EATING;
_local1.gotoAndStop("eat_" + _local2.id);
snd_7.start();
}
}
}
}
}
}
}
}
function moveMissles() {
mspeed = game.speed + 2;
var i = 0;
for ( ; i < missles.length ; i++) {
if (missles[i] == undefined) {
} else {
with (missles[i]) {
if ((((_x < 0) || (_x > 550)) || (_y < 0)) || (_y > 400)) {
missles[i].removeMovieClip();
missles.splice(i, 1);
continue;
}
if (_state == 0) {
if (_rotation == -45) {
_x = _x - (mspeed * 0.7073882691672);
_y = _y - (mspeed * 0.7073882691672);
} else if (_rotation == 45) {
_x = _x + (mspeed * 0.7073882691672);
_y = _y - (mspeed * 0.7073882691672);
} else if (_rotation == -135) {
_x = _x - (mspeed * 0.7073882691672);
_y = _y + (mspeed * 0.7073882691672);
} else if (_rotation == 135) {
_x = _x + (mspeed * 0.7073882691672);
_y = _y + (mspeed * 0.7073882691672);
} else if (_rotation == 0) {
_y = _y - mspeed;
} else if (_rotation == 180) {
_y = _y + mspeed;
} else if (_rotation == -90) {
_x = _x - mspeed;
} else if (_rotation == 90) {
_x = _x + mspeed;
}
var j = 0;
while (j < eggs.length) {
if (eggs[j] != undefined) {
if (missles[i].hitTest(eggs[j])) {
eggs[j]._state = 3;
missles[i].player.egg = missles[i].player.egg + 1;
missles[i]._state = 2;
snd_6.start();
missles[i].gotoAndStop(3);
checkScores();
}
}
j++;
}
}
}
if (missles[i]._state == 1) {
missles[i].targetObj = TargetAlien(missles[i]._x, missles[i]._y);
if (missles[i].targetObj != undefined) {
a = missles[i].targetObj;
angle = getDestAngle(missles[i]._x, missles[i]._y, a._x, a._y);
missles[i]._rotation = r2d(angle) + 180;
angle = angle + Math.PI;
missles[i]._x = missles[i]._x + (mspeed * Math.sin(angle));
missles[i]._y = missles[i]._y - (mspeed * Math.cos(angle));
if (missles[i].hitTest(a)) {
a._state = ALIEN_DEAD;
missles[i].player.alien = missles[i].player.alien + 1;
missles[i].player.alienCombo[0] = m.player.alienCombo[1];
missles[i].player.alienCombo[1] = game.timeStart;
missles[i].gotoAndStop(3);
missles[i]._state = 2;
snd_6.start();
checkScores();
rand = Math.floor((Math.random() * 3) + 0);
if (rand == 0) {
bForced = true;
}
}
} else if (missles[i]._rotation == -45) {
missles[i]._x = missles[i]._x - (mspeed * 0.7073882691672);
missles[i]._y = missles[i]._y - (mspeed * 0.7073882691672);
} else if (missles[i]._rotation == 45) {
missles[i]._x = missles[i]._x + (mspeed * 0.7073882691672);
missles[i]._y = missles[i]._y - (mspeed * 0.7073882691672);
} else if (missles[i]._rotation == -135) {
missles[i]._x = missles[i]._x - (mspeed * 0.7073882691672);
missles[i]._y = missles[i]._y + (mspeed * 0.7073882691672);
} else if (missles[i]._rotation == 135) {
missles[i]._x = missles[i]._x + (mspeed * 0.7073882691672);
missles[i]._y = missles[i]._y + (mspeed * 0.7073882691672);
} else if (missles[i]._rotation == 0) {
missles[i]._y = missles[i]._y - mspeed;
} else if (missles[i]._rotation == 180) {
missles[i]._y = missles[i]._y + mspeed;
} else if (missles[i]._rotation == -90) {
missles[i]._x = missles[i]._x - mspeed;
} else if (missles[i]._rotation == 90) {
missles[i]._x = missles[i]._x + mspeed;
}
} else if (missles[i]._state == 2) {
if (missles[i].bang._currentframe == missles[i].bang._totalframes) {
snd_6.stop();
missles[i].removeMovieClip();
missles.splice(i, 1);
}
}
}
}
}
function movePlayer(pl, pls) {
var _local2 = pl;
var _local3 = pls;
if (!_local2._visible) {
} else {
if (_local2.shieldBonus <= 0) {
_local3.bshield = false;
} else {
_local2.shieldBonus--;
}
if (_local2.speedBonus <= 0) {
_local3.bspeed = false;
} else {
_local2.speedBonus--;
}
if (_local3.bspeed) {
_local3.speed = game.speed + 2;
} else {
_local3.speed = game.speed;
}
var somethingPressed = true;
var gotEgg = false;
(newx = 0);
(newy = 0);
if (Key.isDown(_local3.kUp) && (Key.isDown(_local3.kLeft))) {
_local2._rotation = -45;
newx = _local2._x - (_local3.speed * 0.7073882691672);
newy = _local2._y - (_local3.speed * 0.7073882691672);
if (newx < (_local2._width / 2)) {
newx = _local2._width / 2;
}
if (newy < (_local2._height / 2)) {
newy = _local2._height / 2;
}
if (newx > (GW - (_local2._width / 2))) {
newx = GW - (_local2._width / 2);
}
if (newy > (GH - (_local2._height / 2))) {
newy = GH - (_local2._height / 2);
}
} else if (Key.isDown(_local3.kUp) && (Key.isDown(_local3.kRight))) {
_local2._rotation = 45;
newx = _local2._x + (_local3.speed * 0.7073882691672);
newy = _local2._y - (_local3.speed * 0.7073882691672);
if (newy < (_local2._height / 2)) {
newy = _local2._height / 2;
}
if (newx > (GW - (_local2._width / 2))) {
newx = GW - (_local2._width / 2);
}
} else if (Key.isDown(_local3.kDown) && (Key.isDown(_local3.kLeft))) {
_local2._rotation = -135;
newx = _local2._x - (_local3.speed * 0.7073882691672);
newy = _local2._y + (_local3.speed * 0.7073882691672);
if (newx < (_local2._width / 2)) {
newx = _local2._width / 2;
}
if (newy > (GH - (_local2._height / 2))) {
newy = GH - (_local2._height / 2);
}
} else if (Key.isDown(_local3.kDown) && (Key.isDown(_local3.kRight))) {
_local2._rotation = 135;
newx = _local2._x + (_local3.speed * 0.7073882691672);
newy = _local2._y + (_local3.speed * 0.7073882691672);
if (newx > (GW - (_local2._width / 2))) {
newx = GW - (_local2._width / 2);
}
if (newy > (GH - (_local2._height / 2))) {
newy = GH - (_local2._height / 2);
}
} else if (Key.isDown(_local3.kUp)) {
_local2._rotation = 0;
newx = _local2._x;
newy = _local2._y - _local3.speed;
if (newy < _local2._height) {
newy = _local2._height;
}
} else if (Key.isDown(_local3.kDown)) {
_local2._rotation = 180;
newx = _local2._x;
newy = _local2._y + _local3.speed;
if (newy > (GH - _local2._height)) {
newy = GH - _local2._height;
}
} else if (Key.isDown(_local3.kLeft)) {
_local2._rotation = -90;
newx = _local2._x - _local3.speed;
newy = _local2._y;
if (newx < _local2._width) {
newx = _local2._width;
}
} else if (Key.isDown(_local3.kRight)) {
_local2._rotation = 90;
newx = _local2._x + _local3.speed;
newy = _local2._y;
if (newx > (GW - _local2._width)) {
newx = GW - _local2._width;
}
} else {
somethingPressed = false;
}
if (somethingPressed) {
pl_move = true;
if (newx < 161) {
if (newy < 161) {
if (back2.hitTest(newx, newy, true)) {
pl_move = false;
}
}
} else if ((newx > 161) && (newx < 380)) {
if ((newy > 120) && (newy < 290)) {
if (pool.hitmedium.hitTest(newx, newy, true)) {
pl_move = false;
}
}
} else if (newx > 380) {
if (newy < 215) {
if (back1.hitTest(newx, newy, true)) {
pl_move = false;
}
}
if (newy > 215) {
if (back3.hitTest(newx, newy, true)) {
pl_move = false;
}
}
}
if (pl_move) {
pt2.x = ehtx2;
pt2.y = ehty;
_local2.localToGlobal(pt2);
var _local1 = 0;
while (_local1 < eggs.length) {
if (eggs[_local1] == undefined) {
} else if ((eggs[_local1]._currentframe < 10) && (eggs[_local1].hitTest(_local2.hit))) {
neweggx = pt2.x + ((eggs[_local1]._width / 2) * Math.sin(d2r(_local2._rotation)));
neweggy = pt2.y - ((eggs[_local1]._width / 2) * Math.cos(d2r(_local2._rotation)));
gotEgg = true;
egg_move = true;
if (neweggx < 161) {
if (neweggy < 161) {
if (back5.hitTest(neweggx, neweggy, true)) {
egg_move = false;
}
}
} else if (neweggx > 380) {
if (neweggy < 215) {
if (back4.hitTest(neweggx, neweggy, true)) {
egg_move = false;
}
}
if (neweggy > 215) {
if (back6.hitTest(neweggx, neweggy, true)) {
egg_move = false;
}
}
}
if ((((neweggx < 10) || (neweggx > 540)) || (neweggy < 10)) || (neweggy > 390)) {
egg_move = false;
}
if (egg_move) {
eggs[_local1]._x = neweggx;
eggs[_local1]._y = neweggy;
if (pool.hitmedium.hitTest(eggs[_local1]._x, eggs[_local1]._y, true)) {
eggs[_local1]._x = 270;
eggs[_local1]._y = 190;
eggs[_local1]._state = 1;
_local3.egg = _local3.egg + 1;
_local3.eggCombo[0] = _local3.eggCombo[1];
_local3.eggCombo[1] = _local3.eggCombo[2];
_local3.eggCombo[2] = game.timeStart;
checkScores();
}
break;
}
}
_local1++;
}
_local2._x = newx;
_local2._y = newy;
}
if (gotEgg) {
_local2.gotoAndStop("push");
} else {
_local2.gotoAndStop("move");
}
} else {
_local2.gotoAndStop("stop");
}
}
}
function Bonus() {
putonscreen = false;
if (local == undefined) {
local = 0;
}
if ((game.timeStart != local) && (game.timeStart == bonusTimes[bTime])) {
putonscreen = true;
local = game.timeStart;
if (bTime < bTimes) {
bTime++;
}
}
if ((((putonscreen || (bForced)) && (gameTimeRemaining >= 4)) && (!game.won)) && (!game.over)) {
if (bForced) {
bForced = false;
}
i = nextBonusID;
scene.attachMovie("myBonus", "bonus" + i, bBaseDepth + i, {});
bonuses.push(scene["bonus" + i]);
with (scene["bonus" + i]) {
_xscale = (_yscale = 13);
_visible = true;
id = Math.floor(Math.random() * 3) + 1;
expire = 90;
_x = Math.floor(Math.random() * 361) + 100;
_y = Math.floor(Math.random() * 286) + 70;
if (pool.hitmedium.hitTest(scene["bonus" + i])) {
_x = _x - 115;
}
gotoAndStop(id);
}
nextBonusID++;
}
var i = 0;
while (i < bonuses.length) {
if (bonuses[i] != undefined) {
with (bonuses[i]) {
if (expire <= 0) {
removeMovieClip();
bonuses.splice(i, 1);
return(undefined);
}
expire--;
if (pl1.hitTest(bonuses[i])) {
if (id == 1) {
pl1s.homing = pl1s.homing + 2;
showMessage("+2 missles!", 2);
checkScores();
} else if (id == 2) {
pl1s.bshield = true;
showMessage("Shield on!", 2);
pl1.shieldBonus = 600;
} else if (id == 3) {
pl1s.bspeed = true;
showMessage("Extra speed!", 2);
pl1.speedBonus = 600;
}
removeMovieClip();
bonuses.splice(i, 1);
} else if (pl2.hitTest(bonuses[i])) {
if (id == 1) {
pl2s.homing = pl2s.homing + 2;
showMessage("+2 missles!", 2);
checkScores();
} else if (id == 2) {
pl2s.bshield = true;
showMessage("Shield on!", 2);
pl2.shieldBonus = 600;
} else if (id == 3) {
pl2s.bspeed = true;
showMessage("Extra speed!", 2);
pl2.speedBonus = 600;
}
removeMovieClip();
bonuses.splice(i, 1);
}
}
}
i++;
}
}
function combos() {
if (((pl1s.eggCombo[2] - pl1s.eggCombo[0]) <= 4) && (pl1s.eggCombo[1] != 0)) {
pl1s.eggCombo[0] = 0;
pl1s.eggCombo[1] = 0;
pl1s.eggCombo[2] = 0;
pl1s.combos++;
showMessage("Combo!", 2);
}
if (((pl2s.eggCombo[2] - pl2s.eggCombo[0]) <= 4) && (pl2s.eggCombo[0] != 0)) {
pl2s.eggCombo[0] = 0;
pl2s.eggCombo[1] = 0;
pl2s.eggCombo[2] = 0;
pl2s.combos++;
showMessage("Combo!", 2);
}
if (((pl1s.alienCombo[1] - pl1s.alienCombo[0]) <= 3) && (pl1s.alienCombo[0] != 0)) {
pl1s.alienCombo[0] = 0;
pl1s.alienCombo[1] = 0;
pl1s.combos++;
showMessage("Combo!", 2);
}
if (((pl2s.alienCombo[1] - pl2s.alienCombo[0]) <= 3) && (pl2s.alienCombo[0] != 0)) {
pl2s.alienCombo[0] = 0;
pl2s.alienCombo[1] = 0;
pl2s.combos++;
showMessage("Combo!", 2);
}
}
function tick() {
if (game.isPaused) {
return(undefined);
}
timeElapsed = Math.floor(varTime);
if (game._type == 0) {
gameTimeRemaining = Math.Max(0, game.levelTimeOut[game.level - 1] - timeElapsed);
if (gameTimeRemaining <= 0) {
game.level++;
if (game.level >= 6) {
game.won = true;
} else {
initLevel();
}
}
} else if (game._type == 1) {
gameTimeRemaining = Math.Max(0, game.TimeOut - timeElapsed);
if (game.playerNo == 2) {
if ((schangeRateTime - timeElapsed) <= 0) {
q.speed++;
if (alSpeed <= 6) {
alSpeed++;
}
if (q.timeOut >= 2) {
q.timeOut--;
}
if (eggTimeOut > 6) {
eggTimeOut = eggTimeOut - 1;
}
schangeRateTime = schangeRateTime + 120;
}
} else {
if ((schangeRateTime - timeElapsed) <= 0) {
q.speed++;
if (alSpeed <= 6) {
alSpeed++;
}
if (q.timeOut >= 2) {
q.timeOut--;
}
if (eggTimeOut > 6) {
eggTimeOut = eggTimeOut - 1;
}
schangeRateTime = schangeRateTime + 120;
}
if ((changeRateTime - timeElapsed) <= 0) {
changeRateTime = changeRateTime + 61;
if (q.timeOut >= 20) {
q.timeOut = q.timeOut - 4;
} else if (q.timeOut >= 15) {
q.timeOut = q.timeOut - 3;
} else if (q.timeOut >= 8) {
q.timeOut = q.timeOut - 2;
}
if (eggTimeOut > 6) {
eggTimeOut = eggTimeOut - 1;
}
}
}
if (gameTimeRemaining <= 0) {
game.won = true;
}
} else if (game._type == 2) {
gameTimeRemaining = 5;
if (game.playerNo == 2) {
if ((schangeRateTime - timeElapsed) <= 0) {
q.speed++;
if (alSpeed <= 6) {
alSpeed++;
}
if (q.timeOut >= 2) {
q.timeOut--;
}
if (eggTimeOut > 6) {
eggTimeOut = eggTimeOut - 1;
}
schangeRateTime = schangeRateTime + 120;
}
} else {
if ((schangeRateTime - timeElapsed) <= 0) {
q.speed++;
if (alSpeed <= 6) {
alSpeed++;
}
schangeRateTime = schangeRateTime + 120;
}
if ((changeRateTime - timeElapsed) <= 0) {
changeRateTime = changeRateTime + 80;
if (q.timeOut >= 20) {
q.timeOut = q.timeOut - 4;
} else if (q.timeOut >= 15) {
q.timeOut = q.timeOut - 3;
} else if (q.timeOut >= 8) {
q.timeOut = q.timeOut - 2;
}
if (eggTimeOut > 6) {
eggTimeOut = eggTimeOut - 1;
}
}
}
}
if (game.won) {
if (game.endanime) {
if (createTank) {
var i = 0;
while (i < eggs.length) {
if (eggs[i] != undefined) {
eggs[i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < aliens.length) {
if (aliens[i] != undefined) {
aliens[i].removeMovieClip();
}
i++;
}
this.attachMovie("myTank", "tank", 4993);
tank._xscale = (tank._yscale = 40);
tank._x = -60;
tank._y = 400;
tank._rotation = 60;
tank._visible = true;
createTank = false;
snd_9.start();
createMissle = true;
q.speed = 6;
} else {
if (eggs.length > 0) {
var i = 0;
while (i < eggs.length) {
if (eggs[i] != undefined) {
eggs[i].removeMovieClip();
}
i++;
}
}
if (tank._x < 80) {
snd_9.onSoundComplete = function () {
snd_9.start();
};
tank._x = tank._x + 2;
tank._y--;
} else {
snd_9.stop();
if (createMissle) {
this.attachMovie("myMissle", "qKiller", 4997);
with (qKiller) {
pt2.x = ehtx2;
pt2.y = ehty;
tank.localToGlobal(pt2);
_x = pt2.x + ((_width / 2) * Math.sin(d2r(tank._rotation)));
_y = pt2.y - ((_width / 2) * Math.cos(d2r(tank._rotation)));
_xscale = (_yscale = 50);
_rotation = tank._rotation;
gotoAndStop(2);
_visible = true;
createMissle = false;
chaseQueen = true;
}
} else if (chaseQueen) {
angle = getDestAngle(qKiller._x, qKiller._y, queen._x, queen._y);
qKiller._rotation = r2d(angle) + 180;
angle = angle + Math.PI;
qKiller._x = qKiller._x + (mspeed * Math.sin(angle));
qKiller._y = qKiller._y - (mspeed * Math.cos(angle));
if (qKiller.hitTest(queen)) {
queen._visible = false;
qKiller.gotoAndStop(3);
snd_6.start();
chaseQueen = false;
}
} else if (qKiller.bang._currentframe == qKiller.bang._totalframes) {
snd_6.stop();
qKiller.removeMovieClip();
game.endanime = false;
}
}
}
} else {
pauseGame(true);
clearInterval(PressInterval);
if (queen != undefined) {
queen.removeMovieClip();
}
tank.removeMovieClip();
var i = 0;
while (i < aliens.length) {
if (aliens[i] != undefined) {
aliens[i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < vMax) {
if (scene["vil" + i] != undefined) {
scene["vil" + i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < eggs.length) {
if (eggs[i] != undefined) {
eggs[i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < missles.length) {
if (missles[i] != undefined) {
missles[i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < bonuses.length) {
if (bonuses[i] != undefined) {
bonuses[i].removeMovieClip();
}
i++;
}
if (pl1 != undefined) {
pl1.removeMovieClip();
}
if (game.playerNo == 2) {
if (pl2 != undefined) {
pl2.removeMovieClip();
}
game_scoreP2.removeMovieClip();
}
game_scoreP1.removeMovieClip();
mcTime.removeMovieClip();
showMessage("Congratulations!!!", 1000);
gotoAndStop (16);
}
}
snd_2.onSoundComplete = function () {
snd_2.start();
};
if (pl1._visible != false) {
movePlayer(pl1, pl1s);
}
if (pl2._visible != false) {
movePlayer(pl2, pl2s);
}
moveVillagers();
moveQueen();
moveAliens();
moveMissles();
dispTime();
combos();
Bonus();
if (game.over) {
pauseGame(true);
clearInterval(PressInterval);
if (queen != undefined) {
queen.removeMovieClip();
}
if (qKiller != undefined) {
qKiller.removeMovieClip();
}
if (tank != undefined) {
tank.removeMovieClip();
}
var i = 0;
while (i < vMax) {
if (scene["vil" + i] != undefined) {
scene["vil" + i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < aliens.length) {
if (aliens[i] != undefined) {
aliens[i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < eggs.length) {
if (eggs[i] != undefined) {
eggs[i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < missles.length) {
if (missles[i] != undefined) {
missles[i].removeMovieClip();
}
i++;
}
var i = 0;
while (i < bonuses.length) {
if (bonuses[i] != undefined) {
bonuses[i].removeMovieClip();
}
i++;
}
if (pl1 != undefined) {
pl1.removeMovieClip();
}
if (game.playerNo == 2) {
if (pl2 != undefined) {
pl2.removeMovieClip();
}
game_scoreP2.removeMovieClip();
}
game_scoreP1.removeMovieClip();
mcTime.removeMovieClip();
showMessage("Game Over", 1000);
gotoAndStop (16);
}
}
function InitPlayer(pl, pls) {
with (pl) {
gotoAndStop("stop");
_visible = false;
_xscale = (_yscale = vScale);
shieldBonus = 0;
speedBonus = 0;
isChased = false;
_x = Math.floor(Math.random() * 301) + 100;
_y = Math.floor(Math.random() * 186) + 100;
_rotation = Math.floor(Math.random() * 9) * 45;
if (pool.hitmedium.hitTest(pl)) {
pl._x = pl._x - 115;
}
}
pls.bullets = 3;
pls.homing = 3;
pls.egg = 0;
pls.alien = 0;
pls.combos = 0;
pls._time = 0;
pls.eggCombo[0] = 0;
pls.eggCombo[1] = 0;
pls.eggCombo[2] = 0;
pls.alienCombo[0] = 0;
pls.alienCombo[1] = 0;
}
function initLevel() {
alSpeed = game.alienSpeed[game.level - 1];
if (game.playerNo == 1) {
q.timeOut = game.queenEggTimeout[game.level - 1];
} else {
q.timeOut = game.queenEggTimeout[game.level - 1] / 5;
}
eggTimeOut = game.eggTimeOut[game.level - 1];
q.stepsElapsed = 0;
q.speed++;
snd_3.stop();
snd_4.stop();
snd_5.stop();
snd_6.stop();
snd_7.stop();
snd_8.stop();
snd_9.stop();
if ((((eggs.length > 0) || (aliens.length > 0)) || (missles.length > 0)) || (bonuses.length > 0)) {
pauseGame(true);
var _local1 = 0;
while (_local1 < aliens.length) {
if (aliens[_local1] != undefined) {
aliens[_local1].targetManObj.isChased = false;
aliens[_local1].removeMovieClip();
}
_local1++;
}
_local1 = 0;
while (_local1 < eggs.length) {
if (eggs[_local1] != undefined) {
eggs[_local1].removeMovieClip();
}
_local1++;
}
_local1 = 0;
while (_local1 < missles.length) {
if (missles[_local1] != undefined) {
missles[_local1].removeMovieClip();
}
_local1++;
}
_local1 = 0;
while (_local1 < bonuses.length) {
if (bonuses[_local1] != undefined) {
bonuses[_local1].removeMovieClip();
}
_local1++;
}
if (lastman) {
game.over = true;
}
pauseGame(false);
}
aliens = [];
eggs = [];
missles = [];
bonuses = [];
if (game._type == 0) {
showMessage("Level " + game.level, 5);
} else {
showMessage("Start!", 5);
}
gameLevel = game.level;
if (pl1._visible) {
pl1.isChased = false;
}
if (pl2._visible) {
pl2.isChased = false;
}
nextAlienID = 0;
nextEggID = 0;
nextMissleID = 0;
nextBonusID = 0;
varTime = 0;
}
function Init() {
PressInterval = setInterval(checkPress, 50);
lastman = false;
q.speed = 8;
eggs = [];
aliens = [];
missles = [];
bonuses = [];
setGameState(NORMAL);
changeRateTime = 120;
schangeRateTime = 120;
snd_1.stop();
scene = _root.createEmptyMovieClip("sceneMovieClip", 0);
snd_2.start();
game.level = 1;
vMax = 4;
if (vScale == undefined) {
vScale = 15;
}
if (qScale == undefined) {
qScale = 35;
}
nextAlienID = 0;
nextEggID = 0;
nextMissleID = 0;
createTank = true;
game.level = 1;
game.timeStart = 0;
gameLevel = game.level;
game.isPaused = false;
game.over = false;
game.forced_end = false;
game.won = false;
game.endanime = true;
P1Fire1 = 0;
P1Fire2 = 0;
P2Fire1 = 0;
P2Fire2 = 0;
bForced = false;
if (game._type == 0) {
bmaxTime = 480;
bTimes = Math.floor(Math.random() * 30) + 16;
} else {
bmaxTime = 600;
bTimes = Math.floor(Math.random() * 36) + 20;
}
bTime = 0;
bonusTimes = [];
i = 0;
while (i < bTimes) {
bonusTimes[i] = Math.floor(Math.random() * ((bmaxTime - 20) + 1)) + 10;
i++;
}
bonusTimes.sort(16);
i = 0;
while (i < (bTimes - 1)) {
count = 0;
if (bonusTimes[i] == bonusTimes[i + 1]) {
count++;
while (bonusTimes[i] == bonusTimes[(i + count) + 1]) {
count++;
}
}
if (count >= 1) {
bonusTimes.splice(i + 1, count);
bTimes = bTimes - count;
}
i++;
}
this.attachMovie("myScoreP1", "game_scoreP1", 5000);
game_scoreP1._x = 7;
game_scoreP1._y = 3;
game_scoreP1._xscale = (game_scoreP1._yscale = 70);
if (game.playerNo == 2) {
this.attachMovie("myScoreP2", "game_scoreP2", 4999);
game_scoreP2._x = 425;
game_scoreP2._y = 3;
game_scoreP2._xscale = (game_scoreP2._yscale = 70);
}
this.attachMovie("myTime", "mcTime", 4998);
mcTime._x = 250;
mcTime._y = 3;
this.attachMovie("myQueen", "queen", 4996);
queen._visible = false;
this.attachMovie("myP1", "pl1", 4995);
pl1._visible = false;
if (game.playerNo == 2) {
this.attachMovie("myP2", "pl2", 4994);
pl2._visible = false;
}
var i = 0;
while (i < vMax) {
if (scene["vil" + i] == undefined) {
scene.attachMovie("myVil", "vil" + i, vilBaseDepth + i, {});
with (scene["vil" + i]) {
id = i % 4;
_xscale = (_yscale = vScale);
if (i == 0) {
_x = -20;
_y = Math.floor(Math.random() * 176) + 150;
_rotation = 90;
} else if (i == 1) {
_x = 570;
_y = Math.floor(Math.random() * 26) + 200;
_rotation = 270;
} else if (i == 2) {
_x = Math.floor(Math.random() * 151) + 150;
_y = -20;
_rotation = 180;
} else if (i == 3) {
_x = Math.floor(Math.random() * 301) + 0;
_y = 420;
_rotation = 0;
}
_visible = true;
init = 1;
gotoAndStop("move_" + id);
}
}
i++;
}
queen._x = (queen._y = -80);
queen._rotation = -90;
queen._xscale = (queen._yscale = qScale);
queen._visible = true;
var max;
InitPlayer(pl1, pl1s);
pl1._visible = true;
if (game.playerNo == 2) {
InitPlayer(pl2, pl2s);
pl2._visible = true;
}
checkScores();
initLevel();
}
stop();
play_more.onPress = function () {
getURL ("http://www.MoFunZone.com", "_blank");
};
pr = new Object();
pr.x = (GW / 2) - 43;
pr.y = (GH / 2) - 43;
pr.h = 87;
pr.w = 87;
msgCenterZoom._visible = false;
q = new Object();
q.speed = 8;
q.stepsElapsed = 0;
q.timeOut = -1;
ehtx1 = -112;
ehtx2 = 0;
ehtx3 = 112;
ehty = -120;
pt1 = new Object();
pt1.x = ehtx1;
pt1.y = ehty;
pt2 = new Object();
pt2.x = ehtx2;
pt2.y = ehty;
pt3 = new Object();
pt3.x = ehtx3;
pt3.y = ehty;
pl1s = new Object();
pl1s.egg = 0;
pl1s.alien = 0;
pl1s.bullets = 0;
pl1s.homing = 0;
pl1s.combos = 0;
pl1s._time = 0;
pl1s.eggCombo = new Array(0, 0, 0);
pl1s.alienCombo = new Array(0, 0);
pl1s.bshield = false;
pl1s.bspeed = false;
pl1s.kLeft = 37;
pl1s.kRight = 39;
pl1s.kUp = 38;
pl1s.kDown = 40;
pl1s.speed = 10;
pl2s = new Object();
pl2s.egg = 0;
pl2s.alien = 0;
pl2s.bullets = 0;
pl2s.homing = 0;
pl2s.combos = 0;
pl2s._time = 0;
pl2s.eggCombo = new Array(0, 0, 0);
pl2s.alienCombo = new Array(0, 0);
pl2s.bshield = false;
pl2s.bspeed = false;
pl2s.kLeft = 65;
pl2s.kRight = 68;
pl2s.kUp = 87;
pl2s.kDown = 83;
pl2s.speed = 10;
Init();
_root.onEnterFrame = function () {
if (!game.isPaused) {
tick();
}
};
oKeyListener = new Object();
oKeyListener.onKeyDown = function () {
if (Key.isDown(80)) {
game.isPaused = !game.isPaused;
if (game.isPaused) {
snd_3.stop();
snd_4.stop();
snd_5.stop();
snd_6.stop();
snd_7.stop();
snd_8.stop();
snd_9.stop();
queen.stop();
} else {
queen.play();
}
}
};
Key.addListener(oKeyListener);
myEgg.prototype.onEnterFrame = function () {
if (this == mcEgg) {
return(undefined);
}
if (!game.isPaused) {
var removeThis = false;
if (this.timeStart == -1) {
this.timeStart = varTime;
}
if (this._state == 0) {
if (((this.timeStart + this.timeOut) <= varTime) && (this._currentframe < 45)) {
this.gotoAndPlay("alienHatch");
snd_3.start();
var myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
myColor.setTransform(myColorTransform);
this._state = 2;
}
var x = (varTime - this.timeStart);
if ((x > (this.timeOut - this.timeCritical)) && (x < this.timeOut)) {
var y = (x - (this.timeOut - this.timeCritical));
myColor = new Color(this);
myColorTransform = new Object();
var raval = ((100 * y) / this.timeCritical);
var rbval = ((255 * y) / this.timeCritical);
myColorTransform = {ra:100, rb:rbval, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
myColor.setTransform(myColorTransform);
}
} else if (this._state == 2) {
if (this._currentframe == 64) {
snd_3.stop();
snd_8.start();
}
if (this._currentframe == 84) {
snd_8.stop();
var idx = nextAlienID;
scene.attachMovie("myAlien", "al" + idx, alBaseDepth + idx);
aliens.push(scene["al" + idx]);
with (scene["al" + idx]) {
_visible = false;
pt = new Object();
pt.x = ALIEN_IN_AHATCH_X;
pt.y = ALIEN_IN_AHATCH_Y;
this.localToGlobal(pt);
_x = pt.x;
_y = pt.y;
_xscale = (_yscale = this._xscale);
_rotation = 45 + this._rotation;
_visible = true;
gotoAndStop("chase");
targetManObj = pickAlienTarget(_x, _y);
}
nextAlienID++;
removeThis = true;
}
} else if (this._state == 1) {
if (this._currentframe < 10) {
this.gotoAndPlay("eggHatch");
snd_3.start();
}
if (this._currentframe == 44) {
removeThis = true;
snd_3.stop();
}
} else if (this._state == 3) {
removeThis = true;
}
if (removeThis) {
var i = 0;
while (i < eggs.length) {
if (eggs[i] == this) {
eggs.splice(i, 1);
this.removeMovieClip();
return;
}
i++;
}
}
}
};
queen.onEnterFrame = function () {
if (this == mcQueen) {
return(undefined);
}
if ((game._state == 0) && (queen._currentframe >= 20)) {
queen.gotoAndPlay(1);
}
if ((game._state == 1) && ((queen._totalframes - queen._currentframe) <= 17)) {
pt = new Object();
pt.x = EGG_IN_QDROPPING_X;
pt.y = EGG_IN_QDROPPING_Y;
queen.localToGlobal(pt);
if (((((!pool.hitbig.hitTest(pt.x, pt.y, true)) && (pt.x > 50)) && (pt.x < 500)) && (pt.y > 50)) && (pt.y < 350)) {
scene.attachMovie("myEgg", "egg" + nextEggID, eggBaseDepth + nextEggID, {_visible:false});
eggs.push(scene["egg" + nextEggID]);
with (scene["egg" + nextEggID]) {
_x = pt.x;
_y = pt.y;
_xscale = (_yscale = qScale / 2);
_rotation = 360 * Math.random();
timeOut = eggTimeOut;
_visible = true;
gotoAndStop(1);
}
q.stepsElapsed = 0;
game._state = 0;
queen.gotoAndPlay(1);
nextEggID++;
}
}
};
myAlien.prototype.onEnterFrame = function () {
var _local2 = this;
if (_local2 == mcAlien) {
} else {
if (_local2._state == ALIEN_EATING) {
_local2._xscale = (_local2._yscale = 25);
if (_local2.alienEating._currentframe == _local2.alienEating._totalframes) {
snd_7.stop();
if (!lastman) {
_local2._state = ALIEN_CHASING;
_local2.gotoAndStop("chase");
_local2.targetManObj = undefined;
_local2._xscale = (_local2._yscale = qScale / 2);
} else {
game.over = true;
}
}
}
if (_local2._state == ALIEN_DEAD) {
var _local1 = 0;
while (_local1 < aliens.length) {
if (aliens[_local1] == _local2) {
aliens.splice(_local1, 1);
_local1 = 0;
while (_local1 < missles.length) {
if (missles[_local1].targetObj == _local2) {
missles[_local1].targetObj = undefined;
}
_local1++;
}
_local2.targetManObj.isChased = false;
_local2.targetManObj = undefined;
_local2.removeMovieClip();
if (lastman) {
game.over = true;
}
}
_local1++;
}
}
if (_local2._state == ALIEN_DRAWNING) {
if (_local2.alienDrawning._currentframe == _local2.alienDrawning._totalframes) {
_local2._state = ALIEN_DEAD;
}
}
}
};
Frame 16
Key.removeListener(oKeyListener);
snd_3.stop();
snd_4.stop();
snd_5.stop();
snd_6.stop();
snd_7.stop();
snd_8.stop();
snd_9.stop();
stop();
mcEndButtons.butPlay.onRelease = function () {
snd_2.stop();
gotoAndStop ("menu");
};
mcEndButtons.butMore.onRelease = function () {
getURL ("http://www.MoFunZone.com", "_blank");
};
mcNinjaClick.onPress = function () {
getURL ("http://www.MoFunZone.com", "_blank");
};
Frame 17
Symbol 34 MovieClip Frame 1
play();
Symbol 34 MovieClip Frame 20
stop();
Symbol 34 MovieClip Frame 21
play();
Symbol 34 MovieClip Frame 40
stop();
Symbol 34 MovieClip Frame 41
play();
Symbol 34 MovieClip Frame 60
stop();
Symbol 34 MovieClip Frame 61
play();
Symbol 34 MovieClip Frame 80
stop();
Symbol 34 MovieClip Frame 81
play();
Symbol 34 MovieClip Frame 100
stop();
Symbol 41 MovieClip [click_back] Frame 1
clip2._alpha = 0;
Symbol 64 MovieClip Frame 1
play();
Symbol 64 MovieClip Frame 33
_root.gotoAndStop(5);
stop();
Symbol 69 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 86 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 104 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 122 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 140 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 158 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 176 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 201 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 202 MovieClip [myAlien] Frame 9
stop();
Symbol 202 MovieClip [myAlien] Frame 20
stop();
Symbol 202 MovieClip [myAlien] Frame 31
stop();
Symbol 202 MovieClip [myAlien] Frame 42
stop();
Symbol 202 MovieClip [myAlien] Frame 53
stop();
Symbol 202 MovieClip [myAlien] Frame 64
stop();
Symbol 202 MovieClip [myAlien] Frame 75
stop();
Symbol 202 MovieClip [myAlien] Frame 86
stop();
Symbol 207 MovieClip [myBonus] Frame 1
stop();
Symbol 207 MovieClip [myBonus] Frame 2
stop();
Symbol 207 MovieClip [myBonus] Frame 3
stop();
Symbol 223 MovieClip [myEgg] Frame 1
this.stop();
stop();
Symbol 223 MovieClip [myEgg] Frame 10
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
Symbol 223 MovieClip [myEgg] Frame 44
this.stop();
Symbol 223 MovieClip [myEgg] Frame 45
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
Symbol 223 MovieClip [myEgg] Frame 84
this.stop();
Symbol 227 MovieClip [Flame] Frame 1
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
Symbol 233 MovieClip [myBang] Frame 1
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
Symbol 233 MovieClip [myBang] Frame 20
stop();
Symbol 234 MovieClip [myMissle] Frame 1
stop();
Symbol 234 MovieClip [myMissle] Frame 2
stop();
Symbol 234 MovieClip [myMissle] Frame 3
stop();
Symbol 248 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 257 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 267 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 268 MovieClip [myP1] Frame 1
this.hit._visible = false;
Symbol 280 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 289 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 299 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 300 MovieClip [myP2] Frame 1
this.hit._visible = false;
Symbol 313 MovieClip [myScoreP1] Frame 1
this.scoreb._alpha = 70;
this.onEnterFrame = function () {
if (_root.pl1s.bshield) {
bsh1._visible = true;
} else {
bsh1._visible = false;
}
if (_root.pl1s.bspeed) {
bsp1._visible = true;
} else {
bsp1._visible = false;
}
};
Symbol 320 MovieClip [myScoreP2] Frame 1
this.scoreb._alpha = 70;
this.onEnterFrame = function () {
if (_root.pl2s.bshield) {
bsh2._visible = true;
} else {
bsh2._visible = false;
}
if (_root.pl2s.bspeed) {
bsp2._visible = true;
} else {
bsp2._visible = false;
}
};
Symbol 339 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 354 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 369 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 384 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.game.isPaused) {
this.stop();
} else {
this.play();
}
};
Symbol 385 MovieClip [myVil] Frame 1
stop();
Symbol 385 MovieClip [myVil] Frame 2
stop();
Symbol 385 MovieClip [myVil] Frame 3
stop();
Symbol 385 MovieClip [myVil] Frame 4
stop();
Symbol 385 MovieClip [myVil] Frame 10
play();
Symbol 385 MovieClip [myVil] Frame 20
stop();
Symbol 385 MovieClip [myVil] Frame 21
play();
Symbol 385 MovieClip [myVil] Frame 31
stop();
Symbol 385 MovieClip [myVil] Frame 32
play();
Symbol 385 MovieClip [myVil] Frame 42
stop();
Symbol 385 MovieClip [myVil] Frame 43
play();
Symbol 385 MovieClip [myVil] Frame 53
stop();
Symbol 428 MovieClip [myQueen] Frame 1
mcBack._visible = false;
play();
Symbol 428 MovieClip [myQueen] Frame 19
mcBack._visible = false;
if (_root.game._state == 0) {
this.gotoAndPlay(1);
} else {
play();
}
Symbol 428 MovieClip [myQueen] Frame 20
mcBack._visible = false;
play();
Symbol 428 MovieClip [myQueen] Frame 56
mcBack._visible = false;
this.gotoAndPlay(40);
Symbol 450 MovieClip Frame 1
onEnterFrame = function () {
this._alpha = this._alpha - 2;
};
Symbol 450 MovieClip Frame 10
onEnterFrame = function () {
this._alpha = this._alpha - 16;
};
Symbol 450 MovieClip Frame 15
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 3
stop();
Symbol 524 MovieClip Frame 4
stop();
Symbol 524 MovieClip Frame 5
stop();
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 3
stop();
Symbol 552 MovieClip Frame 4
stop();
Symbol 552 MovieClip Frame 5
stop();
Symbol 552 MovieClip Frame 6
stop();
Symbol 552 MovieClip Frame 7
stop();
Symbol 552 MovieClip Frame 8
stop();
Symbol 552 MovieClip Frame 9
stop();
Symbol 552 MovieClip Frame 10
stop();
Symbol 552 MovieClip Frame 11
stop();
Symbol 559 MovieClip [mcOuality] Frame 1
stop();
Symbol 559 MovieClip [mcOuality] Frame 2
stop();
Symbol 559 MovieClip [mcOuality] Frame 3
stop();
Symbol 564 MovieClip [mcGame] Frame 1
stop();
Symbol 564 MovieClip [mcGame] Frame 2
stop();
Symbol 564 MovieClip [mcGame] Frame 3
stop();
Symbol 565 MovieClip [symOptions] Frame 1
menback._alpha = 85;
Symbol 566 MovieClip [timer] Frame 1
if (((!_parent.game.isPaused) && (!_parent.game.over)) && (!_parent.game.won)) {
_parent.varTime = _parent.varTime + 1;
_parent.game.timeStart = _parent.game.timeStart + 1;
}
Symbol 566 MovieClip [timer] Frame 20
gotoAndPlay (1);
Symbol 619 MovieClip Frame 1
this.hitbig._visible = false;
this.hitmedium._visible = false;
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
if ((_local1.game.isPaused || (_local1.game.over)) || (_local1.game.forced_end)) {
if (_local1.game.over || (_local1.game.forced_end)) {
_local2.gotoAndStop(1);
}
_local2.stop();
} else {
_local2.play();
}
};
Symbol 619 MovieClip Frame 89
this.hit._visible = false;
gotoAndPlay (1);
Symbol 621 MovieClip [myMessage] Frame 1
count = 0;
Symbol 621 MovieClip [myMessage] Frame 10
count++;
if ((timeOut != undefined) && (count >= timeOut)) {
gotoAndStop (1);
_visible = false;
}
Symbol 621 MovieClip [myMessage] Frame 20
gotoAndPlay (10);
Symbol 709 MovieClip Frame 1
this._xscale = (this._yscale = 118);
this.backgr._alpha = 85;
stop();
Symbol 709 MovieClip Frame 2
this._xscale = (this._yscale = 118);
this.backgr._alpha = 85;
stop();
Symbol 709 MovieClip Frame 3
this._xscale = (this._yscale = 118);
this.backgr._alpha = 85;
stop();
Symbol 709 MovieClip Frame 4
this._xscale = (this._yscale = 118);
this.backgr._alpha = 85;
stop();