Frame 1
function zombieFlush() {
var _local1 = _root;
i = 0;
while (i < recent_num_zombies) {
_local1["Zombie" + i].removeMovieClip();
i++;
}
_local1.zombies = 0;
}
function SpawnZombie(Type, SpawnX, SpawnY) {
var _local1 = Type;
var _local2 = _root;
switch (_local1) {
case 0 :
_local1 = "A";
break;
case 1 :
_local1 = "B";
break;
case 2 :
_local1 = "C";
break;
case 3 :
_local1 = "D";
break;
case 4 :
_local1 = "E";
break;
case 5 :
_local1 = "F";
break;
case 6 :
_local1 = "G";
}
i = _local2.zombies;
_local2.attachMovie("Zombie " + _local1, "Zombie" + i, i);
_local2["Zombie" + i]._x = SpawnX;
_local2["Zombie" + i]._y = SpawnY;
tellTarget (_local2["Zombie" + i]) {
gotoAndPlay ("spawn");
};
_local2.zombies++;
_local2.recent_num_zombies = _local2.zombies;
}
function p_k_z_test(ZombieX) {
var _local1 = _root;
var _local2 = ZombieX;
if (_local1.PHI.alive == false) {
return(false);
}
var _local3 = false;
if (distance(_local1.PHI.LeftArm.sharpLeftEnd, _local2) <= radius(_local2._parent)) {
_local3 = true;
}
if (distance(_local1.PHI.RightArm.sharpRightEnd, _local2) <= radius(_local2._parent)) {
_local3 = true;
}
if (distance(_local1.PHI.LeftArm.bluntEdge, _local2) <= radius(_local2._parent)) {
_local3 = true;
}
if (distance(_local1.PHI.RightArm.bluntEdge, _local2) <= radius(_local2._parent)) {
_local3 = true;
}
if (_local3 == false) {
return(false);
}
tellTarget (_local2._parent) {
if (_local1.PHI._x > _x) {
_x = (_x + ((10 + Math.ceil(Math.random() * 15)) * ((Math.abs(_local1.PHI.speedX) + 1) + Math.abs(_local1.PHI.speedY))));
} else {
_x = (_x - ((10 + Math.ceil(Math.random() * 15)) * (Math.abs(_local1.PHI.speedX) + Math.abs(_local1.PHI.speedY))));
}
if (_local1.PHI._y > _y) {
_y = (_y - ((10 + Math.ceil(Math.random() * 15)) * ((Math.abs(_local1.PHI.speedX) + 1) + Math.abs(_local1.PHI.speedY))));
} else {
_y = (_y + ((10 + Math.ceil(Math.random() * 15)) * (Math.abs(_local1.PHI.speedX) + Math.abs(_local1.PHI.speedY))));
}
gotoAndPlay ("dying");
};
return(undefined);
}
function z_k_p_test(ZombieX) {
var _local1 = _root;
var _local2 = ZombieX;
if (!_local1.PHI.alive) {
return(false);
}
if (!_local2.hitTest(_local1.PHI)) {
return(false);
}
if (distance(_local2, _local1.PHI) > (radius(_local2._parent) + radius(_local1.PHI))) {
return(false);
}
tellTarget (_local1.PHI) {
_local1.wave_permission = false;
_local1.next_wave = _local1.wave;
alive = false;
gotoAndPlay ("dying");
};
return(true);
}
function point_k_p_test(PointX) {
var _local1 = _root;
var _local2 = PointX;
if (!_local1.PHI.alive) {
return(false);
}
var _local3 = {_x:_local2._x, _y:_local2._y};
var PHIPOINT = {_x:_local1.PHI._x, _y:_local1.PHI._y};
_local3._x = _local3._x + _local2._parent._parent._x;
_local3._y = _local3._y + _local2._parent._parent._y;
PHIPOINT._x = PHIPOINT._x + _local1.PHI._x;
PHIPOINT._y = PHIPOINT._y + _local1.PHI._y;
if (!_local2.hitTest(_local1.PHI)) {
return(false);
}
if (_local2.hitTest(_local1.PHI.LeftArm)) {
return(false);
}
if (_local2.hitTest(_local1.PHI.RightArm)) {
return(false);
}
if (distance(PHIPOINT, _local3) > radius(_local1.PHI)) {
return(false);
}
tellTarget (_local1.PHI) {
_local1.wave_permission = false;
_local1.next_wave = _local1.wave;
alive = false;
gotoAndPlay ("dying");
};
return(true);
}
function panbled_k_p_test(PointX) {
var _local1 = _root;
var _local2 = PointX;
if (!_local1.PHI.alive) {
return(false);
}
var _local3 = {_x:_local2._x, _y:_local2._y};
var PHIPOINT = {_x:_local1.PHI._x, _y:_local1.PHI._y};
_local3._x = _local3._x + _local2._parent._parent._parent._x;
_local3._y = _local3._y + _local2._parent._parent._parent._y;
PHIPOINT._x = PHIPOINT._x + _local1.PHI._x;
PHIPOINT._y = PHIPOINT._y + _local1.PHI._y;
if (!_local2.hitTest(_local1.PHI)) {
return(false);
}
if (_local2.hitTest(_local1.PHI.LeftArm)) {
return(false);
}
if (_local2.hitTest(_local1.PHI.RightArm)) {
return(false);
}
if (distance(PHIPOINT, _local3) > radius(_local1.PHI)) {
return(false);
}
tellTarget (_local1.PHI) {
_local1.wave_permission = false;
_local1.next_wave = _local1.wave;
alive = false;
gotoAndPlay ("dying");
};
return(true);
}
function orb_k_p_test(PointX) {
var _local1 = _root;
var _local2 = PointX;
if (!_local1.PHI.alive) {
return(false);
}
var _local3 = {_x:_local2._x, _y:_local2._y};
var PHIPOINT = {_x:_local1.PHI._x, _y:_local1.PHI._y};
_local3._x = _local3._x + _local2._parent._parent._parent._x;
_local3._y = _local3._y + _local2._parent._parent._parent._y;
PHIPOINT._x = PHIPOINT._x + _local1.PHI._x;
PHIPOINT._y = PHIPOINT._y + _local1.PHI._y;
if (!_local2.hitTest(_local1.PHI)) {
return(false);
}
if (_local2.hitTest(_local1.PHI.LeftArm)) {
return(false);
}
if (_local2.hitTest(_local1.PHI.RightArm)) {
return(false);
}
if (distance(PHIPOINT, _local3) > (radius(_local1.PHI) + 15)) {
return(false);
}
tellTarget (_local1.PHI) {
_local1.wave_permission = false;
_local1.next_wave = _local1.wave;
alive = false;
gotoAndPlay ("dying");
};
return(true);
}
fscommand ("showmenu", "false");
fscommand ("fullscreen", "true");
fscommand ("fas.win.clickToMove", "false");
fscommand ("fas.win.OnTop", "true");
Mouse.hide();
var recent_num_zombies = 0;
var next_wave = 1;
var wave_permission = false;
var newgame_permission = true;
evil_SND = new Sound(this);
incoming_SND = new Sound(this);
spacemusic_SND = new Sound(this);
spin_out_SND = new Sound(this);
stab_SND = new Sound(this);
evil_SND.attachSound("evil_au");
incoming_SND.attachSound("incoming_au");
spacemusic_SND.attachSound("spacemusic_au");
spin_out_SND.attachSound("spin_out_au");
stab_SND.attachSound("stab_au");
evil_SND.setVolume(100);
incoming_SND.setVolume(100);
spacemusic_SND.setVolume(25);
spin_out_SND.setVolume(100);
stab_SND.setVolume(150);
_global.coinflip = function () {
if (Math.round(Math.random()) == 0) {
return(false);
}
return(true);
};
_global.distance = function (A, B) {
var _local2 = A;
var _local1 = {x:_local2._x, y:_local2._y};
var _local3 = {x:_local2._x, y:_local2._y};
_local2.localToGlobal(_local1);
B.localToGlobal(_local3);
var dX = (_local1.x - _local3.x);
var dY = (_local1.y - _local3.y);
return(Math.sqrt((dX * dX) + (dY * dY)));
};
_global.radius = function (Circle) {
return(Circle.rad);
};
_global.wavedimanim = function () {
tellTarget (_root.wave_dim) {
gotoAndPlay ("active");
};
};
_global.SpawnType = function (captain) {
var _local2 = _root;
var _local1 = 0;
var _local3 = Math.round(Math.random() * 45);
if (_local3 < ((_local2.wave + 3) - 5)) {
_local1 = 1;
}
if (_local3 < ((_local2.wave + 3) - 10)) {
_local1 = 2;
}
if (_local3 < ((_local2.wave + 3) - 15)) {
_local1 = 3;
}
if (_local3 < ((_local2.wave + 3) - 20)) {
_local1 = 4;
}
if (_local3 < ((_local2.wave + 3) - 25)) {
_local1 = 5;
}
if (_local3 < ((_local2.wave + 3) - 30)) {
_local1 = 6;
}
if (captain == true) {
if ((_local2.wave + 3) < 35) {
_local1 = 6;
}
if ((_local2.wave + 3) < 30) {
_local1 = 5;
}
if ((_local2.wave + 3) < 25) {
_local1 = 4;
}
if ((_local2.wave + 3) < 20) {
_local1 = 3;
}
if ((_local2.wave + 3) < 15) {
_local1 = 2;
}
if ((_local2.wave + 3) < 10) {
_local1 = 1;
}
if ((_local2.wave + 3) < 5) {
_local1 = 0;
}
}
return(_local1);
};
Instance of Symbol 48 MovieClip "PHI" in Frame 1
onClipEvent (load) {
var rad = 13;
var thrust = 0.5;
var backthrust = 0.5;
var spacefloat = 0.5;
var maxSpeed = 6;
var maxBackSpeed = -3;
var man = 9;
var wrapdecay = 5;
alive = true;
}
onClipEvent (enterFrame) {
if (!alive) {
return(undefined);
}
if (Key.isDown(39)) {
_rotation = (_rotation + man);
}
if (Key.isDown(37)) {
_rotation = (_rotation - man);
}
var old_xSpeed = xSpeed;
var old_ySpeed = ySpeed;
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
}
if (Key.isDown(40)) {
xSpeed = xSpeed - (backthrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed - (backthrust * Math.cos(_rotation * (Math.PI/180)));
}
if (xSpeed > maxSpeed) {
xSpeed = old_xSpeed;
}
if (ySpeed > maxSpeed) {
ySpeed = old_ySpeed;
}
if (xSpeed < maxBackSpeed) {
xSpeed = old_xSpeed;
}
if (ySpeed < maxBackSpeed) {
ySpeed = old_ySpeed;
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 20) {
_y = 20;
ySpeed = ySpeed / 2;
}
if (_y > 300) {
_y = 300;
ySpeed = ySpeed / 2;
}
if (_y == 20) {
ySpeed = ySpeed - spacefloat;
}
if (_y == 300) {
ySpeed = ySpeed + spacefloat;
}
if (_x < -13) {
_x = 253;
ySpeed = ySpeed / wrapdecay;
}
if (_x > 253) {
_x = -13;
ySpeed = ySpeed / wrapdecay;
}
}
Frame 2
PROGRESS = _root.getBytesTotal() - _root.getBytesLoaded();
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay ("hit_any_key");
}
Frame 3
gotoAndPlay ("preloader");
Frame 4
spacemusic_SND.stop();
if (newgame_permission) {
if (((key.isDown(37) || (key.isDown(39))) || (key.isDown(38))) || (key.isDown(40))) {
gotoAndPlay ("game");
zombieFlush();
wave = 1;
wave_permission = false;
newgame_permission = false;
next_wave = 1;
lives = 9;
zombies = 0;
spacemusic_SND.start(0, 999);
}
}
Frame 5
wave = 1;
next_wave = 1;
if (!(((key.isDown(37) || (key.isDown(39))) || (key.isDown(38))) || (key.isDown(40)))) {
if (!(((key.isDown(37) || (key.isDown(39))) || (key.isDown(38))) || (key.isDown(40)))) {
newgame_permission = true;
}
}
gotoAndPlay ("hit_any_key");
Frame 15
incoming_SND.start(0, 1);
Frame 30
if (wave != next_wave) {
wavedimanim();
wave = next_wave;
}
Frame 40
wave_permission = true;
_root.zombieFlush();
var SpawningPool = (3 + ((_root.wave + 3) - 1));
SpawningPool = SpawningPool - (((_root.wave + 3) % 2) - 1);
var choosingX;
var SpawnLocY = -30;
while (SpawningPool >= 2) {
choosingX = Math.floor(Math.random() * 3);
if (choosingX != 0) {
_root.SpawnZombie(SpawnType(false), 45, SpawnLocY - 20);
}
if (choosingX != 1) {
_root.SpawnZombie(SpawnType(false), 195, SpawnLocY - 40);
}
if (choosingX != 2) {
_root.SpawnZombie(SpawnType(false), 120, SpawnLocY);
}
SpawnLocY = SpawnLocY - 60;
SpawningPool = SpawningPool - 2;
}
if (SpawningPool != 0) {
_root.SpawnZombie(SpawnType(true), 120, SpawnLocY - 60);
}
Instance of Symbol 71 MovieClip "zom_watcher" in Frame 40
onClipEvent (enterFrame) {
if (((_root.zombies == 0) && (_root.PHI.alive == true)) && (_root.wave_permission == true)) {
tellTarget (_root) {
gotoAndPlay ("wave_start");
if (wave_permission == true) {
next_wave = wave + 1;
wave_permission = false;
}
};
}
}
Frame 50
if ((zombies == 0) && (_root.PHI.alive == true)) {
wave_permission = true;
}
gotoAndPlay (41);
Symbol 13 MovieClip [Zombie E] Frame 1
stop();
Symbol 13 MovieClip [Zombie E] Frame 2
var alive = true;
var rad = 25;
body.deltaY = 2 + Math.random();
body.deltaX = 2 * (1 - (2 * coinflip()));
body.destY = 340;
_rotation = 180;
stop();
Instance of Symbol 8 MovieClip "body" in Symbol 13 MovieClip [Zombie E] Frame 2
onClipEvent (load) {
var deltaY;
var deltaX;
var destY;
}
onClipEvent (enterFrame) {
if (!_parent.alive) {
return(undefined);
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
_root.z_k_p_test(this);
_root.panbled_k_p_test(_parent.blade.arm.deathpoint1);
_root.panbled_k_p_test(_parent.blade.arm.deathpoint2);
if (((deltaY < 0) && (_parent._y > destY)) || ((deltaY > 0) && (_parent._y < destY))) {
_parent._y = _parent._y + deltaY;
} else {
deltaY = deltaY * -1;
_parent._rotation = 0;
if (destY == 340) {
destY = _root.PHI._y;
} else {
destY = 340;
}
if ((deltaX > 0) && ((_root.PHI._x - _parent._x) < 0)) {
deltaX = deltaX * -1;
} else if ((deltaX < 0) && ((_root.PHI._x - _parent._x) > 0)) {
deltaX = deltaX * -1;
}
}
if (Math.abs(_root.PHI._x - _parent._x) > 20) {
_parent._x = _parent._x + deltaX;
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
if (_parent._x < -13) {
_parent._x = 253;
}
if (_parent._x > 253) {
_parent._x = -13;
}
_root.p_k_z_test(this);
}
Symbol 13 MovieClip [Zombie E] Frame 3
_root.stab_SND.start(0, 1);
Symbol 13 MovieClip [Zombie E] Frame 15
_root.zombies--;
tellTarget (_root.zombies_dim) {
gotoAndPlay ("active");
};
tellTarget (_root) {
removeMovieClip(this);
};
stop();
Symbol 16 MovieClip [Zombie C] Frame 1
stop();
Symbol 16 MovieClip [Zombie C] Frame 2
var alive = true;
var rad = 25;
body.deltaY = 2;
body.deltaX = 2;
body.directionX = 1;
if (coinflip()) {
body.directionX = body.directionX * -1;
}
body._rotation = 180;
stop();
Instance of Symbol 15 MovieClip "body" in Symbol 16 MovieClip [Zombie C] Frame 2
onClipEvent (load) {
var deltaY;
var deltaX;
var directionX;
}
onClipEvent (enterFrame) {
if (!_parent.alive) {
return(undefined);
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
_root.z_k_p_test(this);
_root.point_k_p_test(deathpoint1);
_root.point_k_p_test(deathpoint2);
if (((_parent._x - _root.PHI._x) > 80) && (deltaY != 0)) {
_rotation = 270;
} else if (((_parent._x - _root.PHI._x) < -80) && (deltaY != 0)) {
_rotation = 90;
} else if ((deltaY > 0) || ((deltaY == 0) && (_parent._y < 100))) {
_rotation = 180;
} else {
_rotation = 0;
}
_parent._y = _parent._y + deltaY;
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
if (((_parent._y > 360) && (deltaY >= 0)) || ((_parent._y < -40) && (deltaY <= 0))) {
deltaY = 0;
_parent._x = _parent._x + (directionX * deltaX);
if (Math.abs(_root.PHI._x - _parent._x) < (deltaX + 2)) {
if (_parent._y < 100) {
deltaY = 2;
} else {
deltaY = -2;
}
}
}
if (_parent._x < -13) {
_parent._x = 253;
}
if (_parent._x > 253) {
_parent._x = -13;
}
_root.p_k_z_test(this);
}
Symbol 16 MovieClip [Zombie C] Frame 3
_root.stab_SND.start(0, 1);
Symbol 16 MovieClip [Zombie C] Frame 15
_root.zombies--;
tellTarget (_root.zombies_dim) {
gotoAndPlay ("active");
};
tellTarget (_root) {
removeMovieClip(this);
};
stop();
Symbol 19 MovieClip [Zombie D] Frame 1
stop();
Symbol 19 MovieClip [Zombie D] Frame 2
var alive = true;
var rad = 20;
body.deltaY = 1.25;
body.deltaX = 5;
body.decreaser = 0;
body._rotation = 90;
if (coinflip()) {
body.deltaX = body.deltaX * -1;
body._rotation = 270;
}
stop();
Instance of Symbol 18 MovieClip "body" in Symbol 19 MovieClip [Zombie D] Frame 2
onClipEvent (load) {
var deltaY;
var deltaX;
var decreaser;
}
onClipEvent (enterFrame) {
if (!_parent.alive) {
return(undefined);
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
_root.z_k_p_test(this);
_root.point_k_p_test(deathpoint1);
_root.point_k_p_test(deathpoint2);
_root.point_k_p_test(deathpoint3);
if (decreaser != 0) {
deltaX = deltaX * decreaser;
}
_parent._x = _parent._x + deltaX;
_parent._y = _parent._y + deltaY;
if ((Math.abs(_parent._x - 120) < (80 + (10 * coinflip()))) && (Math.abs(deltaX) == 5)) {
decreaser = 0.99;
}
if ((Math.abs(_parent._x - 120) < 20) && (Math.abs(deltaX) < 4.5)) {
decreaser = 0;
if (deltaX > 0) {
deltaX = -4.5;
} else {
deltaX = 4.5;
}
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
if (((_parent._y > 290) && (deltaY >= 0)) || ((_parent._y < 30) && (deltaY <= 0))) {
deltaY = deltaY * -1;
}
if (_parent._x < -13) {
_rotation = 270;
_parent._x = 253;
deltaX = -5;
decreaser = 0;
}
if (_parent._x > 253) {
_rotation = 90;
_parent._x = -13;
deltaX = 5;
decreaser = 0;
}
_root.p_k_z_test(this);
}
Symbol 19 MovieClip [Zombie D] Frame 3
_root.stab_SND.start(0, 1);
Symbol 19 MovieClip [Zombie D] Frame 15
_root.zombies--;
tellTarget (_root.zombies_dim) {
gotoAndPlay ("active");
};
tellTarget (_root) {
removeMovieClip(this);
};
stop();
Symbol 24 MovieClip [Zombie F] Frame 1
stop();
Symbol 24 MovieClip [Zombie F] Frame 2
var alive = true;
var rad = 15;
body.destX = _x;
body.destY = 40;
stop();
Instance of Symbol 21 MovieClip "body" in Symbol 24 MovieClip [Zombie F] Frame 2
onClipEvent (load) {
var destX;
var destY;
}
onClipEvent (enterFrame) {
if (!_parent.alive) {
return(undefined);
}
if (_parent.shield._visible == false) {
_root.p_k_z_test(this);
}
if (!_parent.alive) {
return(undefined);
}
if (_parent.shield._visible == true) {
_parent.rad = 30;
}
_root.z_k_p_test(this);
_parent.rad = 15;
var i = 0;
while (i < 4) {
if (_parent._x > destX) {
_parent._x--;
}
if (_parent._x < destX) {
_parent._x++;
}
if (_parent._y > destY) {
_parent._y--;
}
if (_parent._y < destY) {
_parent._y++;
}
i++;
}
if (_parent.shield._visible == false) {
_root.p_k_z_test(this);
}
if (!_parent.alive) {
return(undefined);
}
if ((_parent._x == destX) || (_parent._y == destY)) {
_parent.shield._visible = false;
} else {
_parent.shield._visible = true;
}
if ((_parent._x == destX) && (_parent._y == destY)) {
do {
destX = _parent._x + ((64 * ((2 * coinflip()) - 1)) * coinflip());
destY = _parent._y + ((64 * ((2 * coinflip()) - 1)) * coinflip());
} while ((((destX < 30) || (destX > 210)) || (destY < 30)) || (destY > 290));
}
if (_parent.shield._visible == false) {
_root.p_k_z_test(this);
}
}
Symbol 24 MovieClip [Zombie F] Frame 3
_root.stab_SND.start(0, 1);
Symbol 24 MovieClip [Zombie F] Frame 15
_root.zombies--;
tellTarget (_root.zombies_dim) {
gotoAndPlay ("active");
};
tellTarget (_root) {
removeMovieClip(this);
};
stop();
Symbol 27 MovieClip [Zombie B] Frame 1
stop();
Symbol 27 MovieClip [Zombie B] Frame 2
var alive = true;
var rad = 20;
body.deltaY = 5;
body.destX = 20;
if (coinflip()) {
body.destX = 220;
}
body.deltaX = 3;
if (body.destX < _x) {
body.deltaX = body.deltaX * -1;
}
body._rotation = 180;
stop();
Instance of Symbol 26 MovieClip "body" in Symbol 27 MovieClip [Zombie B] Frame 2
onClipEvent (load) {
var deltaY;
var deltaX;
var destX;
}
onClipEvent (enterFrame) {
if (!_parent.alive) {
return(undefined);
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
_root.z_k_p_test(this);
if (Math.abs(_parent._x - destX) < 30) {
deltaX = (deltaX * 10) / 11;
}
_parent._x = _parent._x + deltaX;
_parent._y = _parent._y + deltaY;
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
if (((_parent._y > 333) && (deltaY >= 0)) || ((_parent._y < -15) && (deltaY <= 0))) {
destX = _root.PHI._x - 10;
if (_root.PHI._x < 120) {
destX = _root.PHI._x + 10;
}
deltaX = 7.5;
if (_parent._x > destX) {
deltaX = deltaX * -1;
}
_rotation = (_rotation + 180);
if (_rotation == 360) {
rotation = 0;
}
deltaY = deltaY * -1;
}
if (_parent._x < -13) {
_parent._x = 253;
}
if (_parent._x > 253) {
_parent._x = -13;
}
_root.p_k_z_test(this);
}
Symbol 27 MovieClip [Zombie B] Frame 3
_root.stab_SND.start(0, 1);
Symbol 27 MovieClip [Zombie B] Frame 15
_root.zombies--;
tellTarget (_root.zombies_dim) {
gotoAndPlay ("active");
};
tellTarget (_root) {
removeMovieClip(this);
};
stop();
Symbol 34 MovieClip [Zombie G] Frame 1
stop();
Symbol 34 MovieClip [Zombie G] Frame 2
var alive = true;
var rad = 30;
body._visible = false;
stop();
Instance of Symbol 29 MovieClip "body" in Symbol 34 MovieClip [Zombie G] Frame 2
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (!_parent.alive) {
return(undefined);
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
_root.orb_k_p_test(_parent.DeathSat.LongOrb.Orb);
if (_visible == false) {
if (_parent._y > _root.PHI._y) {
_parent._y--;
}
if (_parent._y < _root.PHI._y) {
_parent._y++;
}
if (_parent._y < -50) {
_parent._y = _parent._y + 3;
}
}
if (_visible == true) {
if (_parent._x > _root.PHI._x) {
_root.PHI.Xspeed = _root.PHI.Xspeed + 0.1;
}
if (_parent._x < _root.PHI._x) {
_root.PHI.Xspeed = _root.PHI.Xspeed - 0.1;
}
if (_parent._y > _root.PHI._y) {
_root.PHI.Yspeed = _root.PHI.Yspeed - 0.1;
}
if (_parent._y < _root.PHI._y) {
_root.PHI.Yspeed = _root.PHI.Yspeed + 0.1;
}
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
if (((_visible == false) && (_parent._y > 50)) && (Math.abs(distance(this, _root.PHI)) < 200)) {
_visible = true;
}
if ((_visible == true) && (Math.abs(distance(this, _root.PHI)) > 200)) {
_visible = false;
}
_root.p_k_z_test(this);
}
Symbol 34 MovieClip [Zombie G] Frame 3
_root.stab_SND.start(0, 1);
Symbol 34 MovieClip [Zombie G] Frame 15
_root.zombies--;
tellTarget (_root.zombies_dim) {
gotoAndPlay ("active");
};
tellTarget (_root) {
removeMovieClip(this);
};
stop();
Symbol 37 MovieClip [Zombie A] Frame 1
stop();
Symbol 37 MovieClip [Zombie A] Frame 2
var alive = true;
var rad = 35;
body.deltaY = 1;
body.deltaX = 0;
body.destX = _x;
body._rotation = 180;
stop();
Instance of Symbol 36 MovieClip "body" in Symbol 37 MovieClip [Zombie A] Frame 2
onClipEvent (load) {
var deltaY;
var deltaX;
var destX;
}
onClipEvent (enterFrame) {
if (!_parent.alive) {
return(undefined);
}
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
_root.z_k_p_test(this);
if ((Math.abs(_root.PHI._y - _parent._y) < 200) && (_rotation == 180)) {
if (Math.abs(_root.PHI._x - _parent._x) < 50) {
deltaY = 3;
} else if (_root.PHI._x < _parent._x) {
_rotation = (_rotation + 45);
destX = _root.PHI._x;
} else {
_rotation = (_rotation - 45);
destX = _root.PHI._x;
}
}
if (deltaX == 0) {
if (_parent._x < destX) {
_parent._x++;
}
if (_parent._x > destX) {
_parent._x--;
}
} else {
_parent._x = _parent._x + deltaX;
}
_parent._y = _parent._y + deltaY;
_root.p_k_z_test(this);
if (!_parent.alive) {
return(undefined);
}
if (_parent._y > 333) {
_parent._y = 400;
tellTarget (_parent) {
gotoAndPlay ("dying");
};
}
_root.p_k_z_test(this);
}
Symbol 37 MovieClip [Zombie A] Frame 3
_root.stab_SND.start(0, 1);
Symbol 37 MovieClip [Zombie A] Frame 15
_root.zombies--;
tellTarget (_root.zombies_dim) {
gotoAndPlay ("active");
};
tellTarget (_root) {
removeMovieClip(this);
};
stop();
Symbol 48 MovieClip Frame 1
_this.alive = true;
_root.PHI.Xspeed = 3;
stop();
Symbol 48 MovieClip Frame 2
_root.PHI.alive = false;
_root.PHI.Xspeed = 0;
_root.PHI.Yspeed = 0;
_root.wave_permission = false;
_root.next_wave = _root.wave;
_root.spin_out_SND.start(0, 1);
Symbol 48 MovieClip Frame 50
_root.PHI._x = 120;
_root.PHI._y = 185;
_root.PHI._rotation = 0;
_root.PHI.Xspeed = 3;
_root.PHI.Yspeed = 0;
if (_root.lives != 0) {
_root.lives--;
tellTarget (_root.phi_dim) {
gotoAndPlay ("active");
};
gotoAndPlay (1);
tellTarget (_root) {
zombieFlush();
zombies = 0;
gotoAndPlay ("wave_start");
PHI.alive = true;
};
} else {
_root.next_wave = 1;
_root.evil_SND.start(0, 1);
}
Symbol 48 MovieClip Frame 95
tellTarget (_root) {
zombieFlush();
wave = 1;
next_wave = 1;
lives = 9;
zombies = 0;
gotoAndPlay (1);
PHI.alive = true;
PHI._x = 120;
PHI._y = 185;
PHI._rotation = 0;
PHI.Xspeed = 0;
PHI.Yspeed = 0;
};
_root.gotoAndPlay(1);
Symbol 48 MovieClip Frame 96
_root.gotoAndPlay(1);
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
if (_parent == _root.phi_dim) {
_root.next_wave = _root.wave;
}
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent == _root.phi_dim) {
_root.next_wave = _root.wave;
}
}
Symbol 70 MovieClip Frame 8
gotoAndPlay (3);