Frame 5
Stage.showMenu = false;
Stage.scaleMode = "noScale";
stop();
_root.highscoreversion = false;
_root.border.swapDepths(500);
Instance of Symbol 34 MovieClip in Frame 5
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
per = int(percent);
percentage = per + "%";
loadBar._width = per;
if (percent > 99) {
_parent.gotoAndStop("intro");
}
}
Frame 6
_root.maindisplay.playbtn.enabled = false;
_root.maindisplay.optionsbtn.enabled = false;
_root.maindisplay.instructionsbtn.enabled = false;
_root.maindisplay.highscoresbtn.enabled = false;
Instance of Symbol 308 MovieClip in Frame 6
onClipEvent (keyDown) {
if (Key.isDown(79)) {
if (_root.globalsoundcontrol == "play") {
_root.globalsoundcontrol = "stop";
_root.fade = "out";
} else if (_root.globalsoundcontrol == "stop") {
_root.globalsoundcontrol = "play";
_root.fade = "in";
}
}
if (Key.isDown(80)) {
if (_root.gameplay == true) {
if (_root.pausetimer >= 40) {
if (_root.paused == false) {
_root.paused = true;
_root.gamedisplay.pause.play();
_root.fade = "out";
} else {
_root.paused = false;
_root.gamedisplay.pause.play();
if (_root.globalsoundcontrol == "play") {
_root.fade = "in";
}
}
_root.pausetimer = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.fade == "in") {
if (_root.loopvolume < 100) {
_root.loopvolume = _root.loopvolume + 5;
_root.loop.setVolume(_root.loopvolume);
} else if (_root.loopvolume > 100) {
_root.loopvolume = 100;
_root.loop.setVolume(_root.loopvolume);
}
} else if (_root.fade == "out") {
if (_root.loopvolume > 0) {
_root.loopvolume = _root.loopvolume - 5;
_root.loop.setVolume(_root.loopvolume);
} else if (_root.loopvolume < 0) {
_root.loopvolume = 0;
_root.loop.setVolume(_root.loopvolume);
}
}
_root.pausetimer++;
if (_root.paused == false) {
if (_root.gamebegin == true) {
if (_root.timer >= _root.interval) {
_root.circle.duplicateMovieClip("circle" + _root.depth, _root.depth);
_root["circle" + _root.depth].stop();
_root["circle" + _root.depth].sizetracker = _root.begintunnelsize;
_root["circle" + _root.depth]._xscale = _root.begintunnelsize;
_root["circle" + _root.depth]._yscale = _root.circlearray[i]._xscale;
_root["circle" + _root.depth].createx = _root.centerx + ((_root.createx - _root.centerx) * _root.prop);
_root["circle" + _root.depth].createy = _root.centerx + ((_root.createy - _root.centery) * _root.prop);
_root["circle" + _root.depth]._x = _root["circle" + _root.depth].createx;
_root["circle" + _root.depth]._y = _root["circle" + _root.depth].createy;
_root["circle" + _root.depth].endx = _root.createx;
_root["circle" + _root.depth].endy = _root.createy;
_root["circle" + _root.depth].beginspeed = _root.beginspeed;
_root["circle" + _root.depth]._alpha = _root.beginalpha;
_root["circle" + _root.depth].alphachange = _root.alphachange;
_root.circlearray.push(_root["circle" + _root.depth]);
if (_root.depth > 10) {
_root.depth--;
} else {
_root.depth = 300;
}
_root.timer = 0;
} else {
_root.timer++;
}
if (_root.circlefollow == true) {
_root.circle._x = _root.circle._x + ((_root.circlearray[0].endx - _root.circle._x) / 2);
_root.circle._y = _root.circle._y + ((_root.circlearray[0].endy - _root.circle._y) / 2);
_root.circle._xscale = (_root.circle._yscale = _root.tunnelsize);
}
}
if (_root.gameplay == true) {
if ((_root.circlexarrive == true) and (_root.circleyarrive == true)) {
_root.newcreateangle = random(360) + 1;
_root.newcreatex = _root.jaggyness * Math.cos(_root.newcreateangle * _root.radconv);
_root.newcreatey = _root.jaggyness * Math.sin(_root.newcreateangle * _root.radconv);
_root.circlexarrive = false;
_root.circleyarrive = false;
} else {
if (_root.createx < _root.newcreatex) {
if (_root.turnradius < Math.abs(_root.newcreatex - _root.createx)) {
_root.createx = _root.createx + _root.turnradius;
} else {
_root.createx = _root.newcreatex;
_root.circlexarrive = true;
}
} else if (_root.createx > _root.newcreatex) {
if (_root.turnradius < Math.abs(_root.newcreatex - _root.createx)) {
_root.createx = _root.createx - _root.turnradius;
} else {
_root.createx = _root.newcreatex;
_root.circlexarrive = true;
}
}
if (_root.createy < _root.newcreatey) {
if (_root.turnradius < Math.abs(_root.newcreatey - _root.createy)) {
_root.createy = _root.createy + _root.turnradius;
} else {
_root.createy = _root.newcreatey;
_root.circleyarrive = true;
}
} else if (_root.createy > _root.newcreatey) {
if (_root.turnradius < Math.abs(_root.newcreatey - _root.createy)) {
_root.createy = _root.createy - _root.turnradius;
} else {
_root.createy = _root.newcreatey;
_root.circleyarrive = true;
}
}
}
_root.shipframe = 20 - Math.round(20 * (_root.shipspeedy / _root.maxshipspeed));
_root.ship.anim.gotoAndStop(_root.shipframe);
if (Key.isDown(38)) {
_root.shipspeedy = _root.shipspeedy * _root.invert;
if (_root.shipspeedy < _root.maxshipspeed) {
if ((_root.maxshipspeed - _root.shipspeedy) > _root.shipacc) {
_root.shipspeedy = _root.shipspeedy + _root.shipacc;
} else {
_root.shipspeedy = _root.maxshipspeed;
}
}
_root.shipspeedy = _root.shipspeedy * _root.invert;
} else if (Key.isDown(40)) {
_root.shipspeedy = _root.shipspeedy * _root.invert;
if (_root.shipspeedy > (-_root.maxshipspeed)) {
if ((_root.shipspeedy + _root.maxshipspeed) > _root.shipacc) {
_root.shipspeedy = _root.shipspeedy - _root.shipacc;
} else {
_root.shipspeedy = -_root.maxshipspeed;
}
}
_root.shipspeedy = _root.shipspeedy * _root.invert;
} else {
_root.shipspeedy = _root.shipspeedy * _root.invert;
if (_root.shipspeedy > 0) {
if (_root.shipspeedy > _root.shipfriction) {
_root.shipspeedy = _root.shipspeedy - _root.shipfriction;
} else {
_root.shipspeedy = 0;
}
} else if (_root.shipspeedy < 0) {
if (_root.shipspeedy < (-_root.shipfriction)) {
_root.shipspeedy = _root.shipspeedy + _root.shipfriction;
} else {
_root.shipspeedy = 0;
}
}
_root.shipspeedy = _root.shipspeedy * _root.invert;
}
_root.createy = _root.createy + _root.shipspeedy;
_root.newcreatey = _root.newcreatey + _root.shipspeedy;
if (Key.isDown(37)) {
if (_root.ship._rotation > _root.minrotation) {
_root.ship._rotation = _root.ship._rotation - _root.rotationspeed;
}
if (_root.shipspeedx < _root.maxshipspeed) {
if ((_root.maxshipspeed - _root.shipspeedx) > _root.shipacc) {
_root.shipspeedx = _root.shipspeedx + _root.shipacc;
} else {
_root.shipspeedx = _root.maxshipspeed;
}
}
} else if (Key.isDown(39)) {
if (_root.ship._rotation < _root.maxrotation) {
_root.ship._rotation = _root.ship._rotation + _root.rotationspeed;
}
if (_root.shipspeedx > (-_root.maxshipspeed)) {
if ((_root.shipspeedx + _root.maxshipspeed) > _root.shipacc) {
_root.shipspeedx = _root.shipspeedx - _root.shipacc;
} else {
_root.shipspeedx = -_root.maxshipspeed;
}
}
} else {
if (_root.ship._rotation != 0) {
if (Math.abs(_root.ship._rotation) > _root.rotationspeed) {
_root.ship._rotation = _root.ship._rotation - ((_root.ship._rotation / Math.abs(_root.ship._rotation)) * _root.rotationspeed);
} else {
_root.ship._rotation = 0;
}
}
if (_root.shipspeedx > 0) {
if (_root.shipspeedx > _root.shipfriction) {
_root.shipspeedx = _root.shipspeedx - _root.shipfriction;
} else {
_root.shipspeedx = 0;
}
} else if (_root.shipspeedx < 0) {
if (_root.shipspeedx < (-_root.shipfriction)) {
_root.shipspeedx = _root.shipspeedx + _root.shipfriction;
} else {
_root.shipspeedx = 0;
}
}
}
_root.createx = _root.createx + _root.shipspeedx;
_root.newcreatex = _root.newcreatex + _root.shipspeedx;
_root.jaggyness = _root.jaggyness + _root.changediff;
if (_root.turningradius < 30) {
_root.turnradius = _root.turnradius + _root.changediff4;
}
if (_root.nofframes2 > 55) {
_root.nofframes2 = _root.nofframes2 - _root.changediff2;
_root.nofframes = Math.round(_root.nofframes2);
}
if (_root.tunnelsize > 35) {
_root.tunnelsize = _root.tunnelsize - _root.changediff;
}
if (_root.interval2 > 1) {
_root.interval2 = _root.interval2 - _root.changediff3;
_root.interval = Math.round(_root.interval2);
}
_root.speedchange = (_root.finalspeed - _root.beginspeed) / (_root.nofframes - 1);
_root.alphachange = 15 / (_root.nofframes - 1);
_root.score++;
_root.gamedisplay.scoredisplay = _root.score;
_root.gamedisplay.ship._x = _root.gamedisplay.line._x + (_root.gamedisplay.line._width * ((_root.score - _root.checkpointarray[_root.cp]) / (_root.checkpointarray[_root.nextcp] - _root.checkpointarray[_root.cp])));
if (_root.score == _root.checkpointarray[_root.nextcp]) {
_root.newcreatex = 100;
_root.newcreatey = 100;
_root.upgrades = _root.upgrades + 5;
_root.nextcp++;
_root.cp++;
_root.currenttunnelsize = _root.tunnelsize;
_root.currentjaggyness = _root.jaggyness;
_root.currentturnradius = _root.turnradius;
_root.currentnofframes = _root.nofframes;
_root.currentnofframes2 = _root.nofframes2;
_root.checkpointarrive = true;
_root.gameplay = false;
_root.transitioncp = true;
_root.transition.gotoAndPlay("close");
}
}
if (_root.dead == true) {
_root.deadcounter++;
if (_root.deadcounter == 50) {
if (_root.lives > 0) {
_root.lives--;
_root.score = _root.checkpointarray[_root.cp];
_root.transitionad = true;
_root.transition.gotoAndPlay("close");
} else {
_root.transitiongo = true;
_root.transition.gotoAndPlay("close");
}
}
}
_root.circlemove();
}
}
Frame 7
stop();
_root.ingameq = "high";
_root.maindisplay.playbtn.enabled = true;
_root.maindisplay.optionsbtn.enabled = true;
_root.maindisplay.instructionsbtn.enabled = true;
_root.maindisplay.highscoresbtn.enabled = true;
_root.explode = new Sound(explode);
_root.explode.attachSound("explode");
_root.rover = new Sound(rover);
_root.rover.attachSound("rover");
_root.ship.swapDepths(310);
_root.circle.swapDepths(315);
_root.gamedisplay.swapDepths(490);
_root.maindisplay.swapDepths(495);
_root.transition.swapDepths(497);
_root.depth = 300;
_root.particledepth = 350;
_root.tunnelsidewidth = 48;
_root.number = "3";
_root.circlearray = new Array();
_root.checkpointarray = new Array(0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500, 10000);
_root.nextcp = 1;
_root.cp = 0;
_root.checkpointarrive = false;
_root.radconv = (Math.PI/180);
_root.transitionsg = false;
_root.transitioncp = false;
_root.transitiongo = false;
_root.transitionad = false;
_root.transitionmm = false;
_root.gamebegin = false;
_root.gameplay = false;
_root.paused = false;
_root.dead = false;
_root.score = 0;
_root.lastscore = 0;
_root.deadcounter = 0;
_root.pausetimer = 0;
_root.lives = 3;
_root.changediff = 0.01;
_root.changediff2 = 0.02;
_root.changediff3 = 0.0009;
_root.changediff4 = 0.003;
_root.circle._x = _root.centerx;
_root.circle._y = _root.centery;
_root.ship._x = -100;
_root.ship._y = -100;
_root.shipspeedx = 0;
_root.shipspeedy = 0;
_root.minrotation = -40;
_root.maxrotation = 40;
_root.rotationspeed = 6;
_root.upgrades = 0;
_root.maxshipacc = 8;
_root.shipacc = 0.8;
_root.avashipacc = _root.shipacc;
_root.accdiff = 0.48;
_root.maxshipfriction = 6;
_root.shipfriction = 0.2;
_root.avashipfriction = _root.shipfriction;
_root.frictiondiff = 0.39;
_root.maxmaxshipspeed = 25;
_root.maxshipspeed = 4.5;
_root.avamaxshipspeed = _root.maxshipspeed;
_root.speeddiff = 1.24;
_root.invert = -1;
_root.begintunnelsize = 5;
_root.currenttunnelsize = 100;
_root.currentjaggyness = 250;
_root.currentturnradius = 5;
_root.currentnofframes = 200;
_root.currentnofframes2 = 200;
_root.beginspeed = 0.5;
_root.finalspeed = 10;
_root.beginalpha = 15;
_root.interval = 4;
_root.interval2 = 4;
_root.centerx = (_root.centery = 100);
_root.movedelay = 10;
_root.startgame = function () {
_quality = _root.ingameq;
_root.paused = false;
_root.gamebegin = true;
_root.dead = false;
_root.pausetimer = 0;
_root.gamedisplay.scoredisplay = _root.score;
_root.number = "3";
_root.checkpointarrive = false;
_root.ship._rotation = 0;
_root.ship.anim.gotoAndStop(20);
_root.ship._x = _root.centerx;
_root.ship._y = _root.centery;
_root.circle._x = _root.centerx;
_root.circle._y = _root.centery;
_root.circle._xscale = (_root.circle._yscale = 100);
_root.shipspeedx = 0;
_root.shipspeedy = 0;
_root.xturning = false;
_root.yturning = false;
_root.nofframes = _root.currentnofframes;
_root.nofframes2 = _root.currentnofframes2;
_root.tunnelsize = _root.currenttunnelsize;
_root.prop = _root.begintunnelsize / _root.tunnelsize;
_root.speedchange = (_root.finalspeed - _root.beginspeed) / (_root.nofframes - 1);
_root.alphachange = 15 / (_root.nofframes - 1);
_root.timer = 0;
_root.interval = 4;
_root.interval2 = 4;
_root.newcreatex = 0;
_root.newcreatey = 0;
_root.diffx = (_root.diffy = 0);
_root.circlexarrive = true;
_root.circleyarrive = true;
_root.turnradius = _root.currentturnradius;
_root.jaggyness = _root.currentjaggyness;
_root.newcreatex = (_root.newcreatey = 100);
_root.createx = (_root.createy = 100);
_root.gamedisplay.gotoAndStop("display");
_root.circlefollow = false;
};
_root.deadfunction = function () {
_root.dead = true;
_root.gameplay = false;
var i = 0;
while (i < 25) {
_root.whichparticle = random(4) + 1;
_root.attachMovie("particle" + _root.whichparticle, "particle" + _root.particledepth, _root.particledepth);
_root["particle" + _root.particledepth]._x = _root.centerx;
_root["particle" + _root.particledepth]._y = _root.centery;
_root["particle" + _root.particledepth]._rotation = random(360);
_root["particle" + _root.particledepth]._xscale = random(75) + 30;
_root["particle" + _root.particledepth]._yscale = _root["particle" + _root.particledepth]._xscale;
if (_root.particledepth < 450) {
_root.particledepth++;
} else {
_root.particledepth = 350;
}
i++;
}
var i = 0;
while (i < 5) {
_root.whichparticle = random(4) + 5;
_root.attachMovie("particle" + _root.whichparticle, "particle" + _root.particledepth, _root.particledepth);
_root["particle" + _root.particledepth]._x = _root.centerx + (random(40) - 20);
_root["particle" + _root.particledepth]._y = _root.centery + (random(40) - 20);
_root["particle" + _root.particledepth]._rotation = random(360);
_root["particle" + _root.particledepth]._xscale = random(50) + 30;
_root["particle" + _root.particledepth]._yscale = _root["particle" + _root.particledepth]._xscale;
if (_root.particledepth < 450) {
_root.particledepth++;
} else {
_root.particledepth = 350;
}
i++;
}
_root.explode.start(0, 0);
_root.ship._x = -100;
_root.ship._y = -100;
};
_root.cleargame = function () {
_quality = "high";
_root.deadcounter = 0;
_root.dead = false;
_root.gameplay = false;
_root.gamebegin = false;
_root.gamedisplay.gotoAndStop("blank");
_root.ship._x = -100;
_root.ship._y = -100;
var i = (_root.circlearray.length - 1);
while (i >= 0) {
_root.circlearray[i].removeMovieClip();
_root.circlearray.splice(i, 1);
i--;
}
};
_root.gameover = function () {
_root.currenttunnelsize = 100;
_root.currentjaggyness = 250;
_root.currentturnradius = 5;
_root.currentnofframes = 200;
_root.currentnofframes2 = 200;
_root.nextcp = 1;
_root.cp = 0;
_root.lives = 3;
_root.upgrades = 0;
_root.shipacc = 0.8;
_root.avashipacc = _root.shipacc;
_root.shipfriction = 0.2;
_root.avashipfriction = _root.shipfriction;
_root.maxshipspeed = 4;
_root.avamaxshipspeed = _root.maxshipspeed;
};
_root.setbars = function () {
_root.maindisplay.shipstuff.accbar2._xscale = 100 * (_root.avashipacc / _root.maxshipacc);
_root.maindisplay.shipstuff.accbar._xscale = 100 * (_root.shipacc / _root.maxshipacc);
_root.maindisplay.shipstuff.deccbar2._xscale = 100 * (_root.avashipfriction / _root.maxshipfriction);
_root.maindisplay.shipstuff.deccbar._xscale = 100 * (_root.shipfriction / _root.maxshipfriction);
_root.maindisplay.shipstuff.speedbar2._xscale = 100 * (_root.avamaxshipspeed / _root.maxmaxshipspeed);
_root.maindisplay.shipstuff.speedbar._xscale = 100 * (_root.maxshipspeed / _root.maxmaxshipspeed);
};
_root.togglebtns = function (what) {
_root.maindisplay.playbtn.enabled = what;
_root.maindisplay.optionsbtn.enabled = what;
_root.maindisplay.instructionsbtn.enabled = what;
_root.maindisplay.highscoresbtn.enabled = what;
_root.maindisplay.proceedbtn.enabled = what;
_root.maindisplay.shipstuff.s1.enabled = what;
_root.maindisplay.shipstuff.s2.enabled = what;
_root.maindisplay.shipstuff.s3.enabled = what;
_root.maindisplay.shipstuff.a1.enabled = what;
_root.maindisplay.shipstuff.a2.enabled = what;
_root.maindisplay.shipstuff.a3.enabled = what;
_root.maindisplay.submitbtn.enabled = what;
_root.maindisplay.playagainbtn.enabled = what;
_root.maindisplay.menubtn.enabled = what;
_root.gamedisplay.menubtn.enabled = what;
};
_root.circlemove = function () {
if (_root.circlearray.length > 0) {
var i = (_root.circlearray.length - 1);
while (i >= 0) {
_root.circlearray[i].sizetracker = _root.circlearray[i].sizetracker + _root.circlearray[i].beginspeed;
if (_root.circlearray[i]._xscale < _root.tunnelsize) {
_root.circlearray[i]._xscale = _root.circlearray[i]._xscale + _root.circlearray[i].beginspeed;
_root.circlearray[i]._yscale = _root.circlearray[i]._xscale;
}
_root.circlearray[i].beginspeed = _root.circlearray[i].beginspeed + _root.speedchange;
_root.circlearray[i].endx = _root.circlearray[i].endx + _root.shipspeedx;
_root.circlearray[i].endy = _root.circlearray[i].endy + _root.shipspeedy;
_root.circlearray[i]._x = ((_root.circlearray[i].sizetracker / _root.tunnelsize) * (_root.circlearray[i].endx - _root.centerx)) + _root.centerx;
_root.circlearray[i]._y = ((_root.circlearray[i].sizetracker / _root.tunnelsize) * (_root.circlearray[i].endy - _root.centery)) + _root.centery;
if (_root.circlearray[i]._alpha < 100) {
_root.circlearray[i]._alpha = _root.circlearray[i]._alpha + _root.circlearray[i].beginalpha;
_root.circlearray[i].beginalpha = _root.circlearray[i].beginalpha + _root.circlearray[i].alphachange;
}
if (_root.circlearray[i].sizetracker > _root.tunnelsize) {
if (_root.circlefollow == false) {
_root.gameplay = true;
_root.circlefollow = true;
}
if ((_root.dead == false) and (_root.checkpointarrive == false)) {
if (((Math.abs(_root.circle._x - _root.centerx) + _root.tunnelsidewidth) > ((_root.circle._width / 2) + (_root.ship._width / 2))) or ((Math.abs(_root.circle._y - _root.centery) + _root.tunnelsidewidth) > ((_root.circle._height / 2) + 25))) {
_root.deadfunction();
}
}
_root.circlearray[i].removeMovieClip();
_root.circlearray.splice(i, 1);
}
i--;
}
}
};
Symbol 5 MovieClip [FPSMeter] Frame 1
#initclip 1
FPSMeterClass = function () {
this.listenersList = [];
this.init();
};
Object.registerClass("FPSMeter", FPSMeterClass);
FPSMeterClass.prototype.init = function () {
if (this._targetInstanceName.length > 0) {
this.FPSMeterTarget = (this.targetInstance = this._parent[this._targetInstanceName]);
if (this.FPSMeterTarget instanceof TextField) {
this._visible = false;
this.past = 0;
this.now = 0;
this.fps = 0;
this.pass = 0;
this.delta = 0;
this.population = new Array(this.populationSize);
} else {
trace("FPSMeter Component: no target TextField found!");
}
}
};
FPSMeterClass.prototype.onEnterFrame = function () {
this.now = getTimer();
this.delta = this.now - this.past;
if (this.modus) {
this.population[this.pass] = this.delta;
this.pass++;
if (this.pass >= this.populationSize) {
var sum = 0;
for (var measurement in this.population) {
sum = sum + this.population[measurement];
}
this.fps = int((1000 * this.populationSize) / sum);
this.sendFPSMeterEvent(this.fps);
this.pass = 0;
}
} else {
this.fps = int(1000 / this.delta);
this.sendFPSMeterEvent(this.fps);
}
this.past = this.now;
};
FPSMeterClass.prototype.getFPS = function () {
return(this.fps);
};
FPSMeterClass.prototype.addListener = function (ref) {
this.listenersList[ref] = ref;
};
FPSMeterClass.prototype.removeListener = function (ref) {
delete this.listenersList[ref];
};
FPSMeterClass.prototype.sendFPSMeterEvent = function (value) {
this.FPSMeterTarget.text = (this.prefix + value) + this.suffix;
for (var i in this.listenersList) {
this.listenersList[i].getFPS(value);
}
};
#endinitclip
Symbol 7 MovieClip [particle4] Frame 14
this.removeMovieClip();
Symbol 8 MovieClip [particle2] Frame 14
this.removeMovieClip();
Symbol 10 MovieClip [particle3] Frame 18
this.removeMovieClip();
Symbol 11 MovieClip [particle1] Frame 18
this.removeMovieClip();
Symbol 22 MovieClip Frame 13
_parent.removeMovieClip();
Symbol 23 MovieClip [particle7] Frame 8
stop();
Symbol 24 MovieClip [particle5] Frame 1
stop();
Symbol 25 MovieClip [particle6] Frame 4
stop();
Symbol 27 MovieClip [circle] Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 38 Button
on (release) {
getURL ("http://dbarbarian.clawz.com/dtunnel3d.html", "_blank");
_root.highscoreversion = true;
}
Symbol 47 Button
on (release) {
_root.score = 0;
_root.transitioncp = true;
_root.transition.gotoAndPlay("close");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 52 Button
on (release) {
_root.maindisplay.gotoAndStop("options");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 57 Button
on (release) {
_root.maindisplay.gotoAndStop("instructions");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 62 Button
on (release) {
_root.globalsoundcontrol = "stop";
_root.fade = "out";
getURL ("http://dbarbarian.clawz.com/dtunnel3d.html", "_blank");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 156 Button
on (release) {
if (_root.shipacc != 0) {
_root.shipacc = _root.shipacc - _root.accdiff;
if (_root.shipacc < 0) {
_root.shipacc = 0;
}
_root.upgrades++;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
_root.setbars();
}
}
Symbol 157 Button
on (release) {
if (_root.shipfriction != 0) {
_root.shipfriction = _root.shipfriction - _root.frictiondiff;
if (_root.shipfriction < 0) {
_root.shipfriction = 0;
}
_root.upgrades++;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
_root.setbars();
}
}
Symbol 158 Button
on (release) {
if (_root.maxshipspeed != 0) {
_root.maxshipspeed = _root.maxshipspeed - _root.speeddiff;
if (_root.maxshipspeed < 0) {
_root.maxshipspeed = 0;
}
_root.upgrades++;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
_root.setbars();
}
}
Symbol 161 Button
on (release) {
if (_root.shipacc < _root.avashipacc) {
if (_root.upgrades > 0) {
_root.shipacc = _root.shipacc + _root.accdiff;
if (_root.shipacc > _root.avashipacc) {
_root.shipacc = _root.avashipacc;
}
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
} else if (_root.shipacc < _root.maxshipacc) {
if (_root.upgrades > 0) {
_root.shipacc = _root.shipacc + _root.accdiff;
if (_root.shipacc > _root.maxshipacc) {
_root.shipacc = _root.maxshipacc;
}
_root.avashipacc = _root.shipacc;
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
}
_root.setbars();
}
Symbol 162 Button
on (release) {
if (_root.shipfriction < _root.avashipfriction) {
if (_root.upgrades > 0) {
_root.shipfriction = _root.shipfriction + _root.frictiondiff;
if (_root.shipfriction > _root.avashipfriction) {
_root.shipfriction = _root.avashipfriction;
}
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
} else if (_root.shipfriction < _root.maxshipfriction) {
if (_root.upgrades > 0) {
_root.shipfriction = _root.shipfriction + _root.frictiondiff;
if (_root.shipfriction > _root.maxshipfriction) {
_root.shipfriction = _root.maxshipfriction;
}
_root.avashipfriction = _root.shipfriction;
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
}
trace(_root.maxshipfriction);
_root.setbars();
}
Symbol 163 Button
on (release) {
if (_root.maxshipspeed < _root.avamaxshipspeed) {
if (_root.upgrades > 0) {
_root.maxshipspeed = _root.maxshipspeed + _root.speeddiff;
if (_root.maxshipspeed > _root.avamaxshipspeed) {
_root.maxshipspeed = _root.avamaxshipspeed;
}
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
} else if (_root.maxshipspeed < _root.maxmaxshipspeed) {
if (_root.upgrades > 0) {
_root.maxshipspeed = _root.maxshipspeed + _root.speeddiff;
if (_root.maxshipspeed > _root.maxmaxshipspeed) {
_root.maxshipspeed = _root.maxmaxshipspeed;
}
_root.avamaxshipspeed = _root.maxshipspeed;
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
}
_root.setbars();
}
Symbol 164 MovieClip Frame 1
stop();
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
_root.setbars();
Symbol 167 Button
on (release) {
_root.transition.gotoAndPlay("close");
_root.transitionsg = true;
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 174 Button
on (release) {
_root.maindisplay.gotoAndStop("title");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 180 Button
on (release) {
_root.invert = -1;
_root.maindisplay.box._x = -23;
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 183 Button
on (release) {
_root.invert = 1;
_root.maindisplay.box._x = 23;
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 186 Button
on (release) {
_root.ingameq = "low";
_root.maindisplay.box2._x = -62;
_root.maindisplay.box2._xscale = 105;
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 191 Button
on (release) {
_root.ingameq = "medium";
_root.maindisplay.box2._x = -1;
_root.maindisplay.box2._xscale = 180;
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 194 Button
on (release) {
_root.ingameq = "high";
_root.maindisplay.box2._x = 61;
_root.maindisplay.box2._xscale = 110;
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 197 Button
on (release) {
_root.maindisplay.instructions.nextFrame();
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 201 Button
on (release) {
_root.maindisplay.instructions.prevFrame();
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 216 Button
on (release) {
_root.shipacc = _root.shipacc - _root.accdiff;
if (_root.shipacc < 0) {
_root.shipacc = 0;
}
_root.setbars();
}
Symbol 217 Button
on (release) {
_root.shipfriction = _root.shipfriction - _root.frictiondiff;
if (_root.shipfriction < 0) {
_root.shipfriction = 0;
}
_root.setbars();
}
Symbol 218 Button
on (release) {
_root.maxshipspeed = _root.maxshipspeed - _root.speeddiff;
if (_root.maxshipspeed < 0) {
_root.maxshipspeed = 0;
}
_root.setbars();
}
Symbol 219 Button
on (release) {
if (_root.shipacc < _root.avashipacc) {
_root.shipacc = _root.shipacc + _root.accdiff;
if (_root.shipacc > _root.avashipacc) {
_root.shipacc = _root.avashipacc;
}
} else if (_root.shipacc < _root.maxshipacc) {
if (_root.upgrades > 0) {
_root.shipacc = _root.shipacc + _root.accdiff;
if (_root.shipacc > _root.maxshipacc) {
_root.shipacc = _root.maxshipacc;
}
_root.avashipacc = _root.shipacc;
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
}
_root.setbars();
}
Symbol 220 Button
on (release) {
if (_root.shipfriction < _root.avashipfriction) {
_root.shipfriction = _root.shipfriction + _root.frictiondiff;
if (_root.shipfriction > _root.avashipfriction) {
_root.shipfriction = _root.avashipfriction;
}
} else if (_root.shipfriction < _root.maxshipfriction) {
if (_root.upgrades > 0) {
_root.shipfriction = _root.shipfriction + _root.frictiondiff;
if (_root.shipfriction > _root.maxshipfriction) {
_root.shipfriction = _root.maxshipfriction;
}
_root.avashipfriction = _root.shipfriction;
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
}
trace(_root.maxshipfriction);
_root.setbars();
}
Symbol 221 Button
on (release) {
if (_root.maxshipspeed < _root.avamaxshipspeed) {
_root.maxshipspeed = _root.maxshipspeed + _root.speeddiff;
if (_root.maxshipspeed > _root.avamaxshipspeed) {
_root.maxshipspeed = _root.avamaxshipspeed;
}
} else if (_root.maxshipspeed < _root.maxmaxshipspeed) {
if (_root.upgrades > 0) {
_root.maxshipspeed = _root.maxshipspeed + _root.speeddiff;
if (_root.maxshipspeed > _root.maxmaxshipspeed) {
_root.maxshipspeed = _root.maxmaxshipspeed;
}
_root.avamaxshipspeed = _root.maxshipspeed;
_root.upgrades--;
_root.maindisplay.shipstuff.upgrades = _root.upgrades;
}
}
_root.setbars();
}
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 3
stop();
Symbol 235 MovieClip Frame 4
stop();
Symbol 235 MovieClip Frame 5
stop();
Symbol 240 Button
on (release) {
_root.transitionmm = true;
_root.transition.gotoAndPlay("close");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 243 Button
on (release) {
_root.score = 0;
_root.transitioncp = true;
_root.transition.gotoAndPlay("close");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 247 MovieClip Frame 3
stop();
if (_root.invert == 1) {
_root.maindisplay.box._x = 23;
} else {
_root.maindisplay.box._x = -23;
}
if (_root.ingameq == "high") {
_root.maindisplay.box2._x = 61;
_root.maindisplay.box2._xscale = 110;
} else if (_root.ingameq == "medium") {
_root.maindisplay.box2._x = -1;
_root.maindisplay.box2._xscale = 180;
} else if (_root.ingameq == "low") {
_root.maindisplay.box2._x = -62;
_root.maindisplay.box2._xscale = 105;
}
Symbol 247 MovieClip Frame 4
stop();
Symbol 247 MovieClip Frame 5
stop();
_root.maindisplay.scoredisplay = _root.score;
_root.maindisplay.upgradesdisplay = _root.upgrades - _root.lastupgrades;
Symbol 247 MovieClip Frame 6
stop();
Symbol 252 Button
on (release) {
_root.loop = new Sound(loop);
_root.loop.attachSound("loop");
if (_root.highscoreversion == false) {
_root.loop.start();
_root.globalsoundcontrol = "play";
_root.fade = "in";
_root.loopvolume = 100;
} else {
_root.globalsoundcontrol = "stop";
_root.fade = "out";
_root.loopvolume = 0;
}
_root.loop.onSoundComplete = function () {
_root.loop.start();
};
_root.gotoAndStop("game");
}
Symbol 302 MovieClip Frame 24
stop();
Symbol 305 Button
on (release) {
getURL ("www.flashkit.com", "_blank");
}
Symbol 306 Button
on (release) {
getURL ("http://www.flashkit.com/loops/Easy_Listening/Instrumental/not_impo-poWer__-2956/index.php", "_blank");
}
Symbol 307 MovieClip Frame 213
_root.loop = new Sound(loop);
_root.loop.attachSound("loop");
if (_root.highscoreversion == false) {
_root.loop.start();
_root.globalsoundcontrol = "play";
_root.fade = "in";
_root.loopvolume = 100;
} else {
_root.globalsoundcontrol = "stop";
_root.fade = "out";
_root.loopvolume = 0;
}
_root.loop.onSoundComplete = function () {
_root.loop.start();
};
Symbol 307 MovieClip Frame 237
_root.gotoAndStop("game");
Symbol 349 MovieClip Frame 20
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 352 Button
on (release) {
_root.transitionmm = true;
_root.transition.gotoAndPlay("close");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start(0, 0);
}
Symbol 356 MovieClip Frame 2
_root.gamedisplay.cd.text.txtbox = _root.number;
trace("DFDFDBFBFGBNFH");
Symbol 356 MovieClip Frame 16
if (_root.number == "3") {
_root.number = "2";
_root.gamedisplay.cd.gotoAndPlay("cd");
} else if (_root.number == "2") {
_root.number = "1";
_root.gamedisplay.cd.gotoAndPlay("cd");
} else if (_root.number == "1") {
_root.number = "GO!";
_root.gamedisplay.cd.gotoAndPlay("cd");
} else if (_root.number == "GO!") {
_root.gamedisplay.cd.gotoAndPlay("blank");
_root.gameplay = true;
_root.number = "3";
}
Symbol 356 MovieClip Frame 17
stop();
Symbol 356 MovieClip Frame 18
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 10
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 2
stop();
_root.gamedisplay.scoredisplay = _root.score;
_root.gamedisplay.lifedisplay = _root.lives;
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
_root.togglebtns(false);
Symbol 373 MovieClip Frame 13
if (_root.transitionsg == true) {
_root.cleargame();
_root.startgame();
_root.maindisplay.gotoAndStop("blank");
_root.gamedisplay.gotoAndStop("display");
_root.transitionsg = false;
}
if (_root.transitionad == true) {
_root.cleargame();
_root.gamedisplay.gotoAndStop("blank");
_root.maindisplay.gotoAndStop("ship");
_root.transitionad = false;
}
if (_root.transitioncp == true) {
_root.cleargame();
_root.maindisplay.gotoAndStop("ship");
_root.transitioncp = false;
}
if (_root.transitiongo == true) {
_root.cleargame();
_root.gameover();
_root.maindisplay.gotoAndStop("gameover");
_root.transitiongo = false;
}
if (_root.transitionmm == true) {
_root.cleargame();
_root.gameover();
_root.maindisplay.gotoAndStop("title");
_root.transitionmm = false;
}
_root.togglebtns(false);
Symbol 373 MovieClip Frame 25
_root.togglebtns(true);