Frame 1
stop();
stage.scaleMode = "noScale";
sob.stop(0, 1);
playbut.onRelease = function () {
gotoAndStop ("game");
};
music = new Sound(_root);
music.attachSound("music");
music.setVolume(140);
music.start(0, 99);
var q = 3;
var sound = 1;
qualityBut.onRelease = function () {
if (q == 3) {
_quality = "Low";
q = 1;
} else if (q == 1) {
_quality = "Medium";
q = 2;
} else {
_quality = "High";
q = 3;
}
};
soundBut.onRelease = function () {
if (sound == 1) {
soundIcon.nextFrame();
music.stop();
sob.stop();
} else {
soundIcon.prevFrame();
music.start(0, 99);
}
sound = sound * -1;
};
Frame 2
var enemyNum = 0;
var bulletNum = 0;
var level = 1;
var columns = 1;
var scorevar = 0;
var go = true;
_root.createEmptyMovieClip("sperms", 1000);
_root.sperms._x = 0;
_root.sperms._y = 0;
_root.createEmptyMovieClip("bulletLayer", 1001);
_root.bulletLayer._x = 0;
_root.bulletLayer._y = 0;
onEnterFrame = function () {
if (go == true) {
columns = level + 1;
rows = 13;
i = 0;
while (i < columns) {
j = 0;
while (j < rows) {
sm = ("sprm" + i) + j;
sperms.attachMovie("sperm", sm, (i * 14) + j);
sperms[sm]._y = ((i * 45) + 100) - (columns * 30);
sperms[sm]._x = (j * 20) + 150;
enemyNum++;
j++;
}
i++;
}
go = false;
} else if (enemyNum == 0) {
level++;
go = true;
}
};
Frame 3
_root.createEmptyMovieClip("sperms", 1000);
_root.sperms._x = 0;
_root.sperms._y = 0;
_root.createEmptyMovieClip("bulletLayer", 1001);
_root.bulletLayer._x = 0;
_root.bulletLayer._y = 0;
playbut.onRelease = function () {
gotoAndStop ("title");
};
if (_root.sound > 0) {
var sob = new Sound(_root.cry);
sob.attachSound("sob");
sob.setVolume(30);
sob.start(0, 1);
}
Symbol 31 MovieClip [sperm] Frame 1
#initclip 6
Object.registerClass("sperm", sperm);
#endinitclip
Symbol 33 MovieClip [bullet] Frame 1
#initclip 4
Object.registerClass("bullet", bullet);
#endinitclip
Symbol 35 MovieClip [arrow] Frame 1
#initclip 5
Object.registerClass("arrow", arrow);
#endinitclip
Symbol 43 MovieClip Frame 1
stop();
Symbol 62 MovieClip [__Packages.bullet] Frame 0
class bullet extends MovieClip
{
var _x, dx, _y, dy, _rotation, removeMovieClip;
function bullet () {
super();
}
function onEnterFrame() {
moves();
_x = _x + dx;
_y = _y + dy;
}
function moves() {
dx = speed * Math.cos((Math.PI/180) * _rotation);
dy = speed * Math.sin((Math.PI/180) * _rotation);
if (_root.sperms.hitTest(_x, _y, true)) {
var _local5 = 0;
while (_local5 <= _root.columns) {
var _local4 = 0;
while (_local4 <= 13) {
var _local3 = ("sprm" + _local5) + _local4;
if (_root.sperms[_local3].hitTest(_x, _y)) {
_root.sperms[_local3].removeMovieClip();
removeMovieClip();
_root.scorevar = _root.scorevar + 10;
_root.enemyNum--;
}
if (_root.sperms[_local3].hitTest(_x, _y + 6)) {
_root.sperms[_local3].removeMovieClip();
removeMovieClip();
_root.scorevar = _root.scorevar + 10;
_root.enemyNum--;
}
_local4++;
}
_local5++;
}
}
if (((_y < -30) || (_x < -30)) || (_x > 580)) {
removeMovieClip();
}
}
var speed = 12;
var testRate = 3;
var testing = 0;
}
Symbol 63 MovieClip [__Packages.arrow] Frame 0
class arrow extends MovieClip
{
var _rotation, _x, _y;
function arrow () {
super();
}
function onEnterFrame() {
movement();
if (fireWait != 0) {
fireWait--;
}
}
function movement() {
if (rot > (-MaxRotate)) {
if (Key.isDown(37)) {
rot = rot - rotSpeed;
_rotation = _rotation - rotSpeed;
}
}
if (rot < MaxRotate) {
if (Key.isDown(39)) {
rot = rot + rotSpeed;
_rotation = _rotation + rotSpeed;
}
}
if (Key.isDown(32)) {
if (fireWait == 0) {
fire();
fireWait = fireRate;
}
}
}
function fire() {
var _local3 = "bullet" + _root.bulletNum;
_root.bulletLayer.attachMovie("bullet", _local3, _root.bulletNum);
_root.bulletLayer[_local3]._x = _x;
_root.bulletLayer[_local3]._y = _y;
_root.bulletLayer[_local3]._rotation = _rotation - 90;
_root.bulletLayer[_local3]._x = _root.bulletLayer[_local3]._x + (140 * Math.cos((Math.PI/180) * _root.bulletLayer[_local3]._rotation));
_root.bulletLayer[_local3]._y = _root.bulletLayer[_local3]._y + (140 * Math.sin((Math.PI/180) * _root.bulletLayer[_local3]._rotation));
_root.bulletNum++;
if (_root.sound > 0) {
var _local4 = new Sound(_root.bulletLayer[_local3]);
_local4.attachSound("shot");
_local4.setVolume(20);
_local4.start(0, 1);
}
}
var MaxRotate = 70;
var rot = 0;
var rotSpeed = 2;
var fireRate = 9;
var fireWait = arrow.prototype.fireRate;
}
Symbol 64 MovieClip [__Packages.sperm] Frame 0
class sperm extends MovieClip
{
var _rotation, _x, _y;
function sperm () {
super();
}
function onEnterFrame() {
if (xspeed > 0) {
_rotation = -25;
} else {
_rotation = 25;
}
if ((_x > 540) || (_x < 10)) {
xspeed = xspeed * -1;
}
_x = _x + xspeed;
_y = _y + 0.2;
if (_y > 280) {
_root.gotoAndStop("end");
}
}
var xspeed = 2.5;
}
Symbol 55 MovieClip Frame 28
stop();
Symbol 58 MovieClip Frame 1
if (Math.random() < 0.5) {
gotoAndStop (3);
}
Symbol 58 MovieClip Frame 2
stop();