Frame 1
stop();
Stage.showMenu = false;
Instance of Symbol 4 MovieClip in Frame 1
on (press) {
_root.gotoAndPlay(2);
}
Instance of Symbol 12 MovieClip in Frame 1
on (press) {
_root.gotoAndPlay(3);
}
Frame 2
stop();
Frame 3
numEnemy = 6;
i = 2;
while (i <= numEnemy) {
enemy1.duplicateMovieClip("enemy" + i, i + 100);
i++;
}
numEubank = 1;
i = 2;
while (i <= numEubank) {
eubank.duplicateMovieClip("eubank" + i, i + 100);
i++;
}
numNorman = 1;
i = 2;
while (i <= numNorman) {
norman.duplicateMovieClip("eubank" + i, i + 100);
i++;
}
score = 0;
health = 100;
Instance of Symbol 31 MovieClip "laser" in Frame 3
onClipEvent (load) {
laserMoveSpeed = 20;
this._y = _root.spaceship._y + 8;
this._x = _root.spaceship._x + 85;
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["enemy" + i])) {
_root.score = _root.score + 20;
_root["enemy" + i].gotoAndPlay(4);
this.removeMovieClip();
}
if (this.hitTest(_root.enemy)) {
this.removeMovieClip();
_root.score = _root.score + 20;
_root.enemy.gotoAndPlay(4);
this.removeMovieClip();
}
i++;
}
i = 1;
while (i <= _root.numEubank) {
if (this.hitTest(_root["eubank" + i])) {
_root.health = _root.health - 5;
_root["eubank" + i].gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
if (this.hitTest(_root.eubank)) {
_root.health = _root.health - 5;
_root.eubank.gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
i = 1;
while (i <= _root.numNorman) {
if (this.hitTest(_root["norman" + i])) {
_root.health = _root.health - 5;
_root["norman" + i].gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
if (this.hitTest(_root.norman)) {
_root.health = _root.health - 5;
_root.norman.gotoAndPlay(2);
if (_root.health <= 0) {
_root.gotoAndStop("gameOver");
}
}
i++;
}
i++;
}
}
}
Instance of Symbol 34 MovieClip "spaceship" in Frame 3
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter);
}
_root["laser" + lasercounter]._visible = true;
lasercounter++;
if (Key.isDown(39) and (this._x < 500)) {
this._x = this._x + moveSpeed;
} else if (Key.isDown(37) and (this._x > 0)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(40) and (this._y < 330)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(38) and (this._y > 0)) {
this._y = this._y - moveSpeed;
}
}
Instance of Symbol 36 MovieClip "enemy1" in Frame 3
onClipEvent (load) {
function reset() {
this._x = 520;
this._y = random(200) + 100;
enemySpeed = random(10) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
gotoAndPlay (2);
_root.health = _root.health - 10;
if (_root.health <= 0) {
_root.health = 0;
_root.gotoAndStop("gameOver");
}
}
}
Instance of Symbol 45 MovieClip "eubank" in Frame 3
onClipEvent (load) {
function reset() {
this._x = 520;
this._y = random(350) + 50;
eubankSpeed = random(10) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - eubankSpeed;
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.score = _root.score + 100;
reset();
}
}
Instance of Symbol 51 MovieClip "norman" in Frame 3
onClipEvent (load) {
function reset() {
this._x = 520;
this._y = random(200) + 100;
normanSpeed = random(10) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - normanSpeed;
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.score = _root.score + 100;
reset();
}
}
Instance of Symbol 68 MovieClip in Frame 3
on (release) {
getURL ("http://www.adamtwycross.co.uk", "_blank");
}
Frame 4
stop();
Frame 5
stop();
Symbol 23 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "bbountyhunter";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 3
stop();
Symbol 36 MovieClip Frame 8
stop();
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 6
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 6
stop();
Symbol 76 Button
on (release) {
gotoAndPlay (3);
}
Symbol 81 Button
on (release) {
_root.gameover = 1;
}
Symbol 84 Button
on (release) {
gotoAndPlay (3);
}
Symbol 85 Button
on (release) {
_root.gameover = 1;
}