Frame 1
stop();
Frame 2
stopAllSounds();
Frame 3
stop();
Frame 4
stop();
Frame 5
var muson = true;
var music = new Sound();
stopAllSounds();
music.stop();
music.attachSound("music");
music.start(0, 99);
stop();
Instance of Symbol 100 MovieClip in Frame 5
on (release) {
if (!_root.muson) {
stopAllSounds();
_root.music.stop();
_root.music.attachSound("music");
_root.music.start(0, 99);
_root.muson = true;
} else {
stopAllSounds();
_root.muson = false;
}
}
Frame 6
stop();
_quality = "LOW";
var speed = 1;
var run = 1;
var dist = 3;
var fatigue = 100;
var canrun = true;
var i = 0;
var il = 0;
var im = 0;
var im2 = 0;
var ie = 0;
var is = 0;
var laser = 1;
var lasercoil = 100;
var laseruse = false;
var dir = "wl";
var leftwall = 100;
var rightwall = 100;
var level = 1;
var posleft = 0;
var posright = 0;
var toleft = true;
var score = 1;
var yourname = "none";
var finalscore = 1;
var frame = 0;
var nextlevel = 10;
var alive = true;
var cad = 60;
var l1 = new Sound();
l1.attachSound("las1");
var l2 = new Sound();
l2.attachSound("las1");
var l3 = new Sound();
l3.attachSound("las3");
var l4 = new Sound();
l4.attachSound("las4");
var l5 = new Sound();
l5.attachSound("las5");
var pp = new Sound();
pp.attachSound("specsound");
var xx = new Sound();
xx.attachSound("explo");
onLoad = function () {
ship.stop();
ship.wl.stop();
};
onEnterFrame = function () {
if (alive) {
swoosh();
frame++;
if ((frame % cad) == 0) {
if (level > (random(100) + 400)) {
mob(random(5) / 5, random(200), 6);
} else if (level > (random(100) + 300)) {
mob(random(5) / 5, random(200), 5);
} else if (level > (random(100) + 200)) {
mob(random(5) / 5, random(200), 4);
} else if (level > (random(100) + 200)) {
mob(random(5) / 5, random(200), 3);
} else if (level > (random(100) + 100)) {
mob(random(5) / 5, random(200), 2);
} else {
mob(random(5) / 5, random(200), 1);
}
}
if ((frame % 500) == 0) {
powerup();
}
if (frame > 3000) {
frame = 0;
}
var _local2 = 0;
while (_local2 < 101) {
if (ship.hitTest(_root["right" + _local2]) || (ship.hitTest(_root["left" + _local2]))) {
_root.attachMovie("ship", "explo", -5, {_x:ship._x, _y:ship._y});
_root.explo.gotoAndStop(2);
ship._y = 500;
_root.alive = false;
}
_local2++;
}
if (score > nextlevel) {
if (((level % 50) == 0) && (cad > 15)) {
cad = cad - 15;
}
level++;
nextlevel = score * (1 + ((400 / level) / 100));
}
if (random(100) > 90) {
toleft = !toleft;
}
if (toleft) {
posleft = ((posleft > 0) ? (posleft - 0.1) : (posleft));
posright = ((posright < 6.7) ? (posright + 0.1) : (posright));
leftwall = level * posleft;
rightwall = (level * posright) * -1;
} else {
posleft = ((posleft < 6.7) ? (posleft + 0.1) : (posleft));
posright = ((posright > 0) ? (posright - 0.1) : (posright));
leftwall = level * posleft;
rightwall = (level * posright) * -1;
}
makeleftwall();
makerightwall();
sweat();
if (Key.isDown(16) && (canrun)) {
run = 3;
if (Key.isDown(37)) {
fade = "rl";
dir = "wl";
movechar(1);
} else if (Key.isDown(40)) {
fade = "rd";
dir = "wd";
movechar(2);
} else if (Key.isDown(39)) {
fade = "rr";
dir = "wr";
movechar(3);
} else if (Key.isDown(38)) {
fade = "ru";
dir = "wu";
movechar(4);
}
if (fatigue > 20) {
ship.duplicateMovieClip("temp" + i, i + 300, {_x:ship._x, _y:ship._y, _alpha:70});
_root["temp" + i].onEnterFrame = sprintfade;
}
i++;
if (i > 10) {
i = 0;
}
} else {
run = 1;
if (Key.isDown(37)) {
dir = "wl";
movechar(1);
} else if (Key.isDown(40)) {
dir = "wd";
movechar(2);
} else if (Key.isDown(39)) {
dir = "wr";
movechar(3);
} else if (Key.isDown(38)) {
dir = "wu";
movechar(4);
} else {
run = 0;
}
}
lasersweat();
if (Key.isDown(32)) {
if ((frame % 5) == 0) {
fire();
}
}
} else {
_root.finalscore = _root.score;
gotoAndStop (7);
delete onEnterFrame;
}
};
movechar = function (what) {
switch (what) {
case 1 :
if (ship._x > (1 + (speed * dist))) {
ship._x = ship._x - (speed * dist);
}
break;
case 2 :
if (ship._y < (390 - (speed * dist))) {
ship._y = ship._y + (speed * dist);
}
break;
case 3 :
if (ship._x < (199 - (speed * dist))) {
ship._x = ship._x + (speed * dist);
}
break;
case 4 :
if (!((ship._y > (1 + (speed * dist))) && (ship._y < 499))) {
break;
}
ship._y = ship._y - (speed * dist);
}
};
sweat = function () {
if (run > 1) {
fatigue = fatigue - 2;
} else if ((run == 1) && (fatigue < 99)) {
fatigue = fatigue + 1;
} else if (fatigue < 99) {
fatigue = fatigue + 2;
} else if (fatigue < 100) {
fatigue = fatigue + 1;
}
fatiguebar._width = fatigue;
if (fatigue < 2) {
canrun = false;
} else if (fatigue > 20) {
canrun = true;
}
speed = ((fatigue / 100) * 1) * run;
};
sprintfade = function () {
this.gotoAndStop(fade);
this._alpha = this._alpha - 10;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
fire = function () {
if (laser == 1) {
laseruse = true;
if (lasersweat() && (lasercoil > 5)) {
_root.l1.start();
_root.createEmptyMovieClip("laser" + il, 2000 + il);
if (il % 2) {
_root["laser" + il].attachMovie("laser_1", "laser", 0, {_x:ship._x, _y:ship._y});
} else {
_root["laser" + il].attachMovie("laser_1", "laser", 0, {_x:ship._x, _y:ship._y});
}
_root["laser" + il].onLoad = function () {
var _local2 = _root.dir;
};
_root["laser" + il].laser.onEnterFrame = function () {
this._y = this._y - 5;
var _local3 = 0;
while (_local3 < 11) {
if (this.hitTest(_root["enemy" + _local3])) {
_root["enemy" + _local3].play();
this.removeMovieClip();
_root.score = _root.score + Math.ceil((level * 250) * (_root["enemy" + _local3]._yscale / 100));
}
_local3++;
}
if (this._y < 0) {
this.removeMovieClip();
}
};
_root["laser" + il].mydir = _root.dir;
il++;
if (il > 200) {
il = 0;
}
}
laseruse = false;
}
if (laser == 2) {
laseruse = true;
if (lasersweat() && (lasercoil > 5)) {
_root.l2.start();
_root.createEmptyMovieClip("laser" + il, 2000 + il);
if (il % 2) {
_root["laser" + il].attachMovie("laser_2", "laser", 0, {_x:ship._x, _y:ship._y});
} else {
_root["laser" + il].attachMovie("laser_2", "laser", 0, {_x:ship._x, _y:ship._y});
}
_root["laser" + il].onLoad = function () {
var _local2 = _root.dir;
};
_root["laser" + il].laser.onEnterFrame = function () {
this._y = this._y - 5;
var _local3 = 0;
while (_local3 < 11) {
if (this.hitTest(_root["enemy" + _local3])) {
_root["enemy" + _local3].play();
this.removeMovieClip();
_root.score = _root.score + Math.ceil((level * 250) * (_root["enemy" + _local3]._yscale / 100));
}
_local3++;
}
if (this._y < 0) {
this.removeMovieClip();
}
};
_root["laser" + il].mydir = _root.dir;
il++;
if (il > 200) {
il = 0;
}
}
laseruse = false;
}
if (laser == 3) {
laseruse = true;
if (lasersweat() && (lasercoil > 5)) {
_root.l3.start();
_root.createEmptyMovieClip("laser" + il, 2000 + il);
if (il % 2) {
_root["laser" + il].attachMovie("laser_3", "laser", 0, {_x:ship._x, _y:ship._y});
} else {
_root["laser" + il].attachMovie("laser_3", "laser", 0, {_x:ship._x, _y:ship._y});
}
_root["laser" + il].onLoad = function () {
var _local2 = _root.dir;
};
_root["laser" + il].laser.onEnterFrame = function () {
this._y = this._y - 5;
var _local3 = 0;
while (_local3 < 11) {
if (this.hitTest(_root["enemy" + _local3])) {
_root["enemy" + _local3].play();
this.removeMovieClip();
_root.score = _root.score + Math.ceil((level * 250) * (_root["enemy" + _local3]._yscale / 100));
}
_local3++;
}
if (this._y < 0) {
this.removeMovieClip();
}
};
_root["laser" + il].mydir = _root.dir;
il++;
if (il > 200) {
il = 0;
}
}
laseruse = false;
}
if (laser == 4) {
laseruse = true;
if (lasersweat() && (lasercoil > 5)) {
_root.l4.start();
_root.createEmptyMovieClip("laser" + il, 2000 + il);
_root["laser" + il].attachMovie("laser_4", "laser", 0, {_x:ship._x, _y:ship._y});
_root["laser" + il].onLoad = function () {
var _local2 = _root.dir;
};
_root["laser" + il].laser.onEnterFrame = function () {
this._y = this._y - 5;
var _local3 = 0;
while (_local3 < 11) {
if (this.hitTest(_root["enemy" + _local3])) {
_root["enemy" + _local3].play();
_root.score = _root.score + Math.ceil((level * 250) * (_root["enemy" + _local3]._yscale / 100));
}
_local3++;
}
if (this._y < 0) {
this.removeMovieClip();
}
};
_root["laser" + il].mydir = _root.dir;
il++;
if (il > 200) {
il = 0;
}
}
laseruse = false;
}
if (laser == 5) {
laseruse = true;
if (lasersweat() && (lasercoil > 5)) {
_root.l5.start();
_root.createEmptyMovieClip("laser" + il, 2000 + il);
if (il % 2) {
xer = -rand;
_root["laser" + il].attachMovie("laser_5", "laser", 0, {_x:ship._x, _y:ship._y});
} else {
_root["laser" + il].attachMovie("laser_5", "laser", 0, {_x:ship._x, _y:ship._y});
xer = rand;
}
_root["laser" + il].onLoad = function () {
var _local2 = _root.dir;
};
_root["laser" + il].laser.onEnterFrame = function () {
this._y = this._y - 5;
this._x = this._x + (random(10) - 5);
var _local3 = 0;
while (_local3 < 11) {
if (this.hitTest(_root["enemy" + _local3])) {
_root["enemy" + _local3].play();
_root.score = _root.score + Math.ceil((level * 250) * (_root["enemy" + _local3]._yscale / 100));
}
_local3++;
}
if (this._y < 0) {
this.removeMovieClip();
}
};
_root["laser" + il].mydir = _root.dir;
il++;
if (il > 200) {
il = 0;
}
}
laseruse = false;
}
};
lasersweat = function () {
if ((lasercoil > 5) && (laseruse)) {
lasercoil = lasercoil - 10;
return(true);
}
if (laseruse) {
return(false);
}
if (lasercoil < 98) {
lasercoil = lasercoil + 1;
}
laserbar._width = lasercoil;
};
makeleftwall = function () {
_root.createEmptyMovieClip("left" + im, -8000 + im);
_root["left" + im].attachMovie("pixel", "cube", 0, {_y:-50, _x:0, _xscale:leftwall});
_root["left" + im].onEnterFrame = function () {
this._y = this._y + 5;
if (this._y > 455) {
_root.score = _root.score + Math.ceil(this._width * _root.level);
this.removeMovieClip();
}
};
im++;
if (im > 100) {
im = 0;
}
};
makerightwall = function () {
_root.createEmptyMovieClip("right" + im2, -9000 + im2);
_root["right" + im2].attachMovie("pixel", "cube", 0, {_y:-50, _x:200, _xscale:rightwall});
_root["right" + im2].onEnterFrame = function () {
this._y = this._y + 5;
if (this._y > 455) {
_root.score = _root.score + Math.ceil(this._width * _root.level);
this.removeMovieClip();
}
};
im2++;
if (im2 > 100) {
im2 = 0;
}
};
mob = function (rn, rn2, size) {
_root.attachMovie("enemy", "enemy" + ie, -5000 + ie, {_x:random(150) + 24, _y:-50, _yscale:size * 100, _xscale:size * 100});
_root["enemy" + ie].onEnterFrame = function () {
this._y = this._y + 3;
this._x = ((Math.sin(frame / 10) * level) * rn) + rn2;
if (this.hit.hitTest(_root.ship)) {
_root.attachMovie("ship", "explo", -5, {_x:ship._x, _y:ship._y});
_root.explo.gotoAndStop(2);
_root.xx.start();
ship._y = 500;
_root.alive = false;
}
};
if (ie > 9) {
ie = 0;
} else {
ie++;
}
};
hiscore = function () {
pldm128948 = new LoadVars();
pldm128948.namevar = _root.yourname;
pldm128948.scorevar = _root.finalscore;
pldm128948.mid = 163;
pldm128948.pro = "e5e45ff9b0f02a7d196f751178d8fed7";
pldm128948.sendAndLoad("http://bot.armorstudios.com/hs.php", pldm128948, "POST");
getsc_lv = new LoadVars();
getsc_lv.bid = 163;
rec_lv = new LoadVars();
getsc_lv.sendAndLoad("http://bot.pldmstudios.com/g10.php", rec_lv, "POST");
i = 1;
while (i < 11) {
_root["pl" + i].text = "loading";
_root["sc" + i].text = "loading";
i++;
}
rec_lv.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root["pl" + i].text = rec_lv["name" + i];
_root["sc" + i].text = rec_lv["score" + i];
i++;
}
} else {
gotoAndStop (6);
}
};
gotoAndStop (8);
};
swoosh = function () {
if ((frame % 10) == 0) {
_root.attachMovie("bar", "swoosh" + is, -10000 + is, {_x:random(200) - 10, _y:-100, _alpha:random(10) + 10, _rotation:90});
_root["swoosh" + is].onEnterFrame = function () {
this._y = this._y + 10;
if (this._y > 500) {
this.removeMovieClip();
}
};
if (is > 50) {
is = 0;
} else {
is++;
}
}
};
powerup = function () {
var rand = (random(5) + 1);
_root.attachMovie("pup" + rand, "pup", 15, {_x:random(100) + 50, _y:-50});
_root.pup.onEnterFrame = function () {
this._y = this._y + 3;
if (this.hitTest(_root.ship)) {
_root.laser = rand;
this._y = 1000;
_root.pp.start();
}
};
};
Frame 8
stop();
Symbol 31 MovieClip [enemy] Frame 1
stop();
Symbol 31 MovieClip [enemy] Frame 15
_root.xx.start();
Symbol 31 MovieClip [enemy] Frame 19
_y = 500;
Symbol 50 MovieClip Frame 20
stop();
Symbol 51 MovieClip [ship] Frame 1
stop();
Symbol 51 MovieClip [ship] Frame 2
stop();
Symbol 59 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 60 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 60 MovieClip Frame 2
gotoAndPlay (1);
Symbol 60 MovieClip Frame 3
_root.play();
Symbol 70 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 71 MovieClip Frame 217
_root.play();
Symbol 71 MovieClip Frame 234
_root.play();
Instance of Symbol 76 MovieClip in Symbol 82 MovieClip Frame 41
on (release) {
getURL ("http://www.daretogame.com/dd");
}
Instance of Symbol 76 MovieClip in Symbol 82 MovieClip Frame 124
on (release) {
getURL ("http://www.daretogame.com/dd/index2.htm");
}
Symbol 82 MovieClip Frame 139
_root.play();
stop();
Symbol 89 Button
on (release) {
bot_id = 40;
getURL ("http://bot.armorstudios.com/armorgames.php?bid=" + bot_id, "_blank");
}
Symbol 92 Button
on (release) {
getURL ("http://www.daretogame.com", "_blank");
}
Symbol 96 Button
on (release) {
nextFrame();
}
Symbol 131 Button
on (release) {
_root.hiscore();
gotoAndPlay (8);
}
Symbol 133 Button
on (release) {
gotoAndStop (6);
}