Frame 1
function lose() {
car.removeMovieClip();
coin.removeMovieClip();
kill_up.removeMovieClip();
bubble.removeMovieClip();
for (i in _root) {
if (_root[i]._name.indexOf("enemy") != -1) {
_root[i].removeMovieClip();
}
}
_root.gotoAndStop("highscores");
}
function shoot(spd, num, spa, kill) {
num = num - 1;
var rot = ((-(spa * num)) / 2);
var spaB = rot;
var i = 0;
while (i <= num) {
s++;
if (s > 750) {
s = 700;
}
if (kill == false) {
sho = attachMovie("shot", "laser" + s, s);
}
if (kill == true) {
sho = attachMovie("shotB", "laser" + s, s);
}
(sho._x = _root.car._x);
(sho._y = _root.car._y);
sho._rotation = (_root.car._rotation + 180) + spaB;
spaB = spaB + spa;
if (kill == true) {
sho.killB = true;
} else if (kill == false) {
sho.killB = false;
}
sho.onEnterFrame = function () {
with (this) {
_y = _y + (spd * Math.cos((Math.PI/180) * _rotation));
_x = _x - (spd * Math.sin((Math.PI/180) * _rotation));
if ((((_x > 550) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
}
}
};
i++;
}
delete rot;
delete spaB;
}
function makeStage() {
attachMovie("Ship", "car", 9999);
car._y = 200;
car._x = 275;
attachMovie("coin", "coin", 9000);
coin._x = random(500) + 25;
coin._y = random(350) + 25;
if (coin.hitTest(nrg_bar) || (coin.hitTest(O2_bar))) {
coin._x = random(500) + 25;
coin._y = random(350) + 25;
}
}
function makeEnemy(x, y, spd) {
e++;
if (e > 1700) {
e = 1600;
}
place = random(4);
if (place == 0) {
x = random(548) + 1;
y = 1;
}
if (place == 1) {
x = random(548) + 1;
y = 339;
}
if (place == 2) {
x = 1;
y = random(398) + 1;
}
if (place == 3) {
x = 549;
y = random(398) + 1;
}
ene = attachMovie("enemy", "enemy" + e, e);
with (ene) {
_x = x;
_y = y;
ene.yspd = spd;
ene.xspd = spd;
ene.timer = 0;
ene.stunned = false;
}
ene.onEnterFrame = function () {
with (this) {
if ((xspd == spd) && (yspd == (-spd))) {
_rotation = 315;
} else if ((xspd == spd) && (yspd == spd)) {
_rotation = 45;
} else if ((xspd == (-spd)) && (yspd == (-spd))) {
_rotation = 225;
} else if ((xspd == (-spd)) && (yspd == spd)) {
_rotation = 135;
}
if (stunned == true) {
this.gotoAndStop(2);
if (timer < 75) {
timer++;
} else {
this.gotoAndStop(1);
stunned = false;
timer = 0;
}
if (timer > 65) {
this.gotoAndStop(3);
}
}
if (stunned == false) {
var i = 700;
while (i < 750) {
if (_root["laser" + i].hitTest(this)) {
if (_root["laser" + i].killB == false) {
stunned = true;
} else if (_root["laser" + i].killB == true) {
this.removeMovieClip();
}
_root["laser" + i].removeMovieClip();
}
i++;
}
if (this.hitTest(_root.car.inside)) {
_root.car.gotoAndStop(2);
_root.dead = true;
this.removeMovieClip();
}
_x = _x + xspd;
_y = _y + yspd;
if (_y < 0) {
yspd = yspd * -1;
}
if (_y > 399) {
yspd = yspd * -1;
}
if (_x < 0) {
xspd = xspd * -1;
}
if (_x > 549) {
xspd = xspd * -1;
}
}
}
};
}
function spark(x, y) {
q++;
if (q > 2025) {
q = 2000;
}
spa = attachMovie("sparkle", "sparkle" + q, q);
(spa._x = x);
(spa._y = y);
(spa._rotation = random(360));
spa.onEnterFrame = function () {
with (this) {
if (_currentframe == 22) {
this.removeMovieClip();
}
}
};
}
function pEffectB(xx, yy, spd, color) {
if (l >= 1250) {
l = 1200;
}
l++;
myPartB = createEmptyMovieClip("circle" + l, l);
with (myPartB) {
lineStyle(2, color, 100);
beginFill(color, 100);
moveTo(0, -20);
curveTo(19, -20, 20, 0);
curveTo(19, 20, 0, 20);
curveTo(-19, 20, -20, 0);
curveTo(-19, -20, 0, -20);
endFill();
_x = (xx + random(5)) - random(5);
_y = (yy + random(5)) - random(5);
_width = 20;
_height = 20;
myPartB.onEnterFrame = function () {
with (this) {
_xscale = _xscale - spd;
_yscale = _yscale - spd;
if ((_xscale < 0) || (_yscale < 0)) {
this.removeMovieClip();
}
}
};
}
}
function game() {
onEnterFrame = function () {
with (this) {
_y = 0;
_x = 0;
_rotation = 0;
}
if (dead == false) {
if (kTime < maxKTime) {
kTime++;
}
if (kTime == maxKTime) {
attachMovie("kill_up", "kill_up", 9997);
kill_up._x = random(500) + 25;
kill_up._y = random(350) + 25;
if (kill_up.hitTest(nrg_bar)) {
kill_up._x = random(500) + 25;
kill_up._y = random(350) + 25;
}
if (kill_up.hitTest(O2_bar)) {
kill_up._x = random(500) + 25;
kill_up._y = random(350) + 25;
}
kTime = 9999;
}
if (timeB < maxTime) {
timeB++;
}
if (timeB == maxTime) {
attachMovie("O2", "bubble", 9998);
bubble._x = random(500) + 25;
bubble._y = random(350) + 25;
if (bubble.hitTest(nrg_bar)) {
bubble._x = random(500) + 25;
bubble._y = random(350) + 25;
}
if (bubble.hitTest(O2_bar)) {
bubble._x = random(500) + 25;
bubble._y = random(350) + 25;
}
timeB = 101;
}
if (car.hitTest(kill_up)) {
vKill = true;
kill_up.removeMovieClip();
kTime = 0;
score = score + 150;
spark(car._x, car._y);
maxKTime = 200 + random(200);
}
if (car.hitTest(bubble)) {
time = time + 150;
timeB = 0;
score = score + 50;
spark(car._x, car._y);
bubble.removeMovieClip();
}
nrg_bar.bar._xscale = (_root.energy / 100) * 100;
O2_bar.barB._xscale = (_root.time / 500) * 100;
score_hold.text = "Score: " + score;
if (time > 500) {
time = 500;
}
car.gotoAndStop(1);
if (Key.isDown(65) && (energy >= 3)) {
if (vKill == false) {
shoot(15, 1, 0, false);
energy = energy - 3;
} else if (vKill == true) {
shoot(15, 1, 0, true);
vKill = false;
}
}
if ((Key.isDown(83) && (energy >= 35)) && (shooting == false)) {
shoot(15, 1, 0, false);
shoot(15, 10, 36, false);
energy = energy - 35;
shooting = true;
}
((!Key.isDown(83)) ? ((shooting = false)) : null);
time--;
if (time <= 0) {
_root.lose();
car.gotoAndStop(2);
dead = true;
}
with (car) {
if (car.hitTest(coin)) {
spark(car._x, car._y);
spark(car._x, car._y);
makeEnemy(random(550), random(400), 5);
numCollected++;
score = score + (numCollected * 25);
energy = energy + 25;
if (energy > 100) {
energy = 100;
}
coin._x = random(500) + 25;
coin._y = random(350) + 25;
if (coin.hitTest(O2_bar)) {
coin._x = random(500) + 25;
coin._y = random(350) + 25;
}
if (coin.hitTest(nrg_bar)) {
coin._x = random(500) + 25;
coin._y = random(350) + 25;
}
}
if (Key.isDown(38)) {
speed = speed + thrust;
pEffectB(_x, _y, 2, "0xBB0000");
} else {
speed = speed * 0.85;
}
if (speed > maxspeed) {
speed = maxspeed;
}
if (Key.isDown(37)) {
_rotation = _rotation - 10;
}
if (Key.isDown(39)) {
_rotation = _rotation + 10;
}
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = Math.cos(_rotation * (Math.PI/180)) * (-speed);
if (!_root.move.hitTest(_x + x, _y + y, true)) {
_x = _x + x;
_y = _y + y;
} else {
speed = speed * -0.6;
}
if (_y < 0) {
_y = 0;
speed = speed * 0.65;
}
if (_y > 399) {
_y = 399;
speed = speed * 0.65;
}
if (_x < 0) {
_x = 0;
speed = speed * 0.65;
}
if (_x > 549) {
_x = 549;
speed = speed * 0.65;
}
}
}
};
}
function reset() {
l = 1200;
e = 1600;
q = 900;
s = 700;
energy = 100;
speed = 0;
maxspeed = 10;
thrust = 0.3;
score = 0;
time = 500;
dead = false;
car._x = 275;
car._y = 200;
car._rotation = 0;
timeB = 0;
maxTime = 100;
kTime = 0;
vKill = false;
shooting = false;
numCollected = 0;
maxKTime = 200 + random(200);
coin._x = random(500) + 25;
coin._y = random(350) + 25;
}
var l = 1200;
var e = 1600;
var q = 2000;
var s = 700;
var energy = 100;
var speed = 0;
var maxspeed = 10;
var thrust = 0.3;
var score = 0;
var time = 500;
var numCollected = 0;
var place = random(4);
var dead = false;
var vKill = false;
var shooting = false;
var timeB = 0;
var maxTime = 100;
var kTime = 0;
var maxKTime = (200 + random(200));
var keyListener = new Object();
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 84 MovieClip "boot_logo" in Frame 3
on (release) {
getURL ("http://www.bootgamer.com/", "_blank");
}
Frame 4
stop();
_quality = "High";
Frame 5
_quality = "High";
Frame 6
_quality = "Medium";
Frame 7
_quality = "High";
name_hold.text = "Your Name Here!";
Symbol 7 MovieClip [shot] Frame 9
stop();
Symbol 41 MovieClip [enemy] Frame 1
stop();
Symbol 59 MovieClip Frame 75
_root.lose();
Symbol 81 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.play();
}
Symbol 81 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
on (release) {
getURL ("http://bootgamer.com/", "_BLANK");
}
Symbol 84 MovieClip Frame 80
_root.introA.play();
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 44
_root.introB.play();
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 42
_root.play();
Symbol 111 Button
on (release) {
_root.score_hold.text = "Score: " + score;
_root.makeStage();
_root.game();
_root.gotoAndStop("game");
}
Symbol 115 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 119 Button
on (release) {
getURL ("http://www.bootgamer.com/", "_blank");
}
Symbol 125 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=852", "_blank");
}
Symbol 154 Button
on (press) {
ab20_09 = new LoadVars();
ab20_09.z = _root.name_hold.text;
ab20_09.x = _root.score;
ab20_09.c = 852;
ab20_09.v = "NJIEGQ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=852", "_blank");
_root.reset();
_root.makeStage();
_root.game();
_root.gotoAndStop("game");
}
Symbol 160 Button
on (release) {
_root.reset();
_root.makeStage();
_root.game();
_root.gotoAndStop("game");
}