Frame 1 (1.31 KiB) ●
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((6 < fv) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("e1da5721", this, 10301);
_root.bytesTotal = _root.getBytesTotal();
_root.bytesLoaded = 0;
firsttime = 0;
matchone = 0;
matchtwo = 0;
matchnum = 0;
stop();
Frame 4 (1.1 KiB) ●
bytesLoaded = _root.getBytesLoaded();
percentload = Math.round((100 * bytesLoaded) / bytesTotal);
_root.text = percentload + "%";
if (firsttime == 0) {
music = new Sound();
music.attachSound("amb_space.wav");
zip_high = new Sound();
zip_high.attachSound("filter_3high.wav");
welcome = new Sound();
welcome.attachSound("_lwelcome_fl.wav");
begin_con = new Sound();
begin_con.attachSound("_lbegin_con.wav");
begin_ch = new Sound();
begin_ch.attachSound("_lbegin_ch.wav");
domin = new Sound();
domin.attachSound("_ldomin.wav");
lvl_complete = new Sound();
lvl_complete.attachSound("_lvl_complete.wav");
level7 = new Sound();
level7.attachSound("_level_om.wav");
welldone = new Sound();
welldone.attachSound("_xvwelldone.wav");
impressive = new Sound();
impressive.attachSound("_limpressive.wav");
congrats = new Sound();
congrats.attachSound("_lcongrats.wav");
holysht = new Sound();
holysht.attachSound("_lholysht.wav");
incredible = new Sound();
incredible.attachSound("_lincredible_echo.wav");
firsttime = 1;
}
if (99 < percentload) {
gotoAndPlay ("go");
}
Frame 6 (23 B)
gotoAndPlay ("begin");
Frame 64 (8 B)
stop();
Frame 71 (85 B)
if (level == 0) {
gotoAndPlay ("2player");
} else {
gotoAndPlay ("1player");
}
Frame 78 (85 B)
if (level == 0) {
gotoAndPlay ("2player");
} else {
gotoAndPlay ("1player");
}
Frame 90 (8 B)
stop();
Instance of Symbol 146 MovieClip "complevel" in Frame 91 (1.31 KiB) ●
onClipEvent (load) {
leveltxtq = new Array();
_root.levelmark._y = 188 + (20 * _root.level);
leveltxtq[1] = ".......<b>Driving</b>........<br> Sucky<br><br>.......<b>Turbos</b>.......<br> None";
leveltxtq[2] = ".......<b>Driving</b>........<br> Not Great<br><br>.......<b>Turbos</b>.......<br> None";
leveltxtq[3] = ".......<b>Driving</b>........<br> Pretty good<br><br>.......<b>Turbos</b>.......<br> None";
leveltxtq[4] = ".......<b>Driving</b>........<br> Solid baby<br><br>.......<b>Turbos</b>.......<br> 3 (like you)";
leveltxtq[5] = ".......<b>Driving</b>........<br> Fast on the <br> outside track<br><br>.......<b>Turbos</b>.......<br> Unlimited";
leveltxtq[6] = ".......<b>Driving</b>........<br> Smarter<br> than ever<br><br>.......<b>Turbos</b>.......<br> Unlimited";
leveltxtq[7] = ".......<b>Driving</b>........<br> Cuts you off<br> quick & clean<br><br>.......<b>Turbos</b>.......<br> Unlimited";
leveltxt = leveltxtq[_root.level];
}
Instance of Symbol 150 MovieClip in Frame 91 (50 B)
onClipEvent (load) {
levelnumtxt = _root.level;
}
Frame 102 (8 B)
stop();
Frame 116 (18.43 KiB) ● ● ●
function complevel0() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
leftrite();
if ((twodir == -1) && (dxtwo != 5)) {
dxtwo = -5;
Set("aso#54254", 0);
}
if ((twodir == 1) && (dxtwo != -5)) {
dxtwo = 5;
Set("aso#54254", 0);
}
if ((twodir == -2) && (aso#54254 != 5)) {
dxtwo = 0;
Set("aso#54254", -5);
}
if ((twodir == 2) && (aso#54254 != -5)) {
dxtwo = 0;
Set("aso#54254", 5);
}
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
checkcrash();
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function complevel1() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
if (trackcycles >= 120) {
randomcycles = 0;
trackcycles = 0;
}
if (50 >= randomcycles) {
virspotrandom();
randomcycles = randomcycles + 1;
virspotmove();
} else {
trackcycles = trackcycles + 1;
}
leftrite();
Set("aso#91580", 1);
while (3 >= aso#91580) {
if (aso#91580 == 2) {
twodir = tworite;
}
if (aso#91580 == 3) {
twodir = twoleft;
}
move();
xxtwo = xtwo + dxtwo;
yytwo = ytwo + aso#54254;
twozone = _root.carone.oneblock[(xxtwo + "q") + yytwo];
twoztwo = twoblock[(xxtwo + "q") + yytwo];
twowall = (((xxtwo < 42) || (yytwo < 72)) || (557 < xxtwo)) || (467 < yytwo);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
if (((aso#91580 == 1) && (aso#22917)) && (force)) {
tworite = twodirold;
twoleft = -1 * twodir;
}
walltrack();
force = false;
wallturn = false;
if (aso#22917 == false) {
break;
}
aso#91580++;
}
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function complevel2() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
if (trackcycles >= 120) {
randomcycles = 0;
trackcycles = 0;
}
if (40 >= randomcycles) {
virspotrandom();
randomcycles = randomcycles + 1;
} else {
virspotset();
trackcycles = trackcycles + 1;
}
virspotmove();
leftrite();
Set("aso#91580", 1);
while (3 >= aso#91580) {
if (aso#91580 == 2) {
twodir = tworite;
}
if (aso#91580 == 3) {
twodir = twoleft;
}
move();
xxtwo = xtwo + dxtwo;
yytwo = ytwo + aso#54254;
twozone = _root.carone.oneblock[(xxtwo + "q") + yytwo];
twoztwo = twoblock[(xxtwo + "q") + yytwo];
twowall = (((xxtwo < 42) || (yytwo < 72)) || (557 < xxtwo)) || (467 < yytwo);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
if (((aso#91580 == 1) && (aso#22917)) && (force)) {
tworite = twodirold;
twoleft = -1 * twodir;
}
walltrack();
force = false;
wallturn = false;
if (aso#22917 == false) {
break;
}
aso#91580++;
}
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function complevel3() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
virspotset();
virspotmove();
leftrite();
Set("aso#91580", 1);
while (3 >= aso#91580) {
if (aso#91580 == 2) {
twodir = tworite;
}
if (aso#91580 == 3) {
twodir = twoleft;
}
move();
xxtwo = xtwo + dxtwo;
yytwo = ytwo + aso#54254;
twozone = _root.carone.oneblock[(xxtwo + "q") + yytwo];
twoztwo = twoblock[(xxtwo + "q") + yytwo];
twowall = (((xxtwo < 42) || (yytwo < 72)) || (557 < xxtwo)) || (467 < yytwo);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
if (((aso#91580 == 1) && (aso#22917)) && (force)) {
tworite = twodirold;
twoleft = -1 * twodir;
}
walltrack();
force = false;
wallturn = false;
if (aso#22917 == false) {
break;
}
aso#91580++;
}
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function complevel4() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
virspotset();
virspotmove();
leftrite();
Set("aso#91580", 1);
while (3 >= aso#91580) {
if (aso#91580 == 2) {
twodir = tworite;
}
if (aso#91580 == 3) {
twodir = twoleft;
}
move();
xxtwo = xtwo + dxtwo;
yytwo = ytwo + aso#54254;
twozone = _root.carone.oneblock[(xxtwo + "q") + yytwo];
twoztwo = twoblock[(xxtwo + "q") + yytwo];
twowall = (((xxtwo < 42) || (yytwo < 72)) || (557 < xxtwo)) || (467 < yytwo);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
if (((aso#91580 == 1) && (aso#22917 || (cave))) && (force)) {
tworite = twodirold;
twoleft = -1 * twodir;
}
walltrack();
force = false;
wallturn = false;
if ((aso#22917 == false) && (cave == false)) {
break;
}
aso#91580++;
}
cavetake();
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function complevel5() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
if ((((57 >= xtwo) || (xtwo >= 542)) || (87 >= ytwo)) || (ytwo >= 452)) {
twoturbokey = 1;
}
virspotset();
virspotmove();
leftrite();
Set("aso#91580", 1);
while (3 >= aso#91580) {
if (aso#91580 == 2) {
twodir = tworite;
}
if (aso#91580 == 3) {
twodir = twoleft;
}
move();
xxtwo = xtwo + dxtwo;
yytwo = ytwo + aso#54254;
twozone = _root.carone.oneblock[(xxtwo + "q") + yytwo];
twoztwo = twoblock[(xxtwo + "q") + yytwo];
twowall = (((xxtwo < 42) || (yytwo < 72)) || (557 < xxtwo)) || (467 < yytwo);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
cavecheck();
if (((aso#91580 == 1) && (aso#22917 || (cave))) && (force)) {
tworite = twodirold;
twoleft = -1 * twodir;
}
walltrack();
force = false;
wallturn = false;
if ((aso#22917 == false) && (cave == false)) {
break;
}
aso#91580++;
}
cavetake();
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function complevel6() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
if ((((57 >= xtwo) || (xtwo >= 542)) || (87 >= ytwo)) || (ytwo >= 452)) {
twoturbokey = 1;
}
virspotset();
virspotmove();
leftrite();
Set("aso#91580", 1);
while (3 >= aso#91580) {
if (aso#91580 == 2) {
twodir = tworite;
}
if (aso#91580 == 3) {
twodir = twoleft;
}
move();
xxtwo = xtwo + dxtwo;
yytwo = ytwo + aso#54254;
twozone = _root.carone.oneblock[(xxtwo + "q") + yytwo];
twoztwo = twoblock[(xxtwo + "q") + yytwo];
twowall = (((xxtwo < 42) || (yytwo < 72)) || (557 < xxtwo)) || (467 < yytwo);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
cavecheck();
if (((aso#91580 == 1) && (aso#22917 || (cave))) && (force)) {
tworite = twodirold;
twoleft = -1 * twodir;
}
walltrack();
force = false;
wallturn = false;
if ((aso#22917 == false) && (cave == false)) {
break;
}
aso#91580++;
}
cavetake();
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function complevel7() {
turbocheck();
var turbocount = 1;
while (twoturbogap >= turbocount) {
xtwo = _root.cartwo._x;
ytwo = _root.cartwo._y;
drawblock();
if ((((57 >= xtwo) || (xtwo >= 542)) || (87 >= ytwo)) || (ytwo >= 452)) {
twoturbokey = 1;
}
if ((Math.abs(xtwo - vironex) + Math.abs(ytwo - vironey)) < 120) {
twoturbokey = 1;
}
if (30 >= randomcycles) {
if (randomcycles == 0) {
vironex = 42 + (5 * Math.round(36 * Math.random()));
if ((10 * Math.random()) < 5) {
vironey = 112;
} else {
vironey = 427;
}
}
randomcycles = randomcycles + 1;
} else {
virspotset();
}
virspotmove();
leftrite();
Set("aso#91580", 1);
while (3 >= aso#91580) {
if (aso#91580 == 2) {
twodir = tworite;
}
if (aso#91580 == 3) {
twodir = twoleft;
}
move();
xxtwo = xtwo + dxtwo;
yytwo = ytwo + aso#54254;
twozone = _root.carone.oneblock[(xxtwo + "q") + yytwo];
twoztwo = twoblock[(xxtwo + "q") + yytwo];
twowall = (((xxtwo < 42) || (yytwo < 72)) || (557 < xxtwo)) || (467 < yytwo);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
cavecheck();
if (((aso#91580 == 1) && (aso#22917 || (cave))) && (force)) {
tworite = twodirold;
twoleft = -1 * twodir;
}
walltrack();
force = false;
wallturn = false;
if ((aso#22917 == false) && (cave == false)) {
break;
}
aso#91580++;
}
cavetake();
_root.cartwo._x = _root.cartwo._x + dxtwo;
_root.cartwo._y = _root.cartwo._y + aso#54254;
if (aso#22917 == true) {
twocrash();
return;
}
bothcrash();
blockflow();
twodirold = twodir;
oldtwoturbokey = twoturbokey;
turbocount++;
}
}
function turbocheck() {
if ((twoturbokey == 1) && (twoturbonum < turbomax)) {
twoturbogap = 2;
twoturbodur = twoturbodur + 1;
if (4 >= _root.level) {
if (0 < (twoturbodur % 2)) {
_root.trbos2j._x = _root.trbos2j._x - 12;
}
if ((twoturbodur % 2) == 0) {
_root.trbos2j._x = _root.trbos2j._x + 12;
}
}
}
if (twoturbodur >= 11) {
twoturbogap = 1;
twoturbodur = 0;
twoturbokey = 0;
twoturbonum = twoturbonum + 1;
}
}
function drawblock() {
mook = [(xtwo + "q") + ytwo];
twoblock[mook] = 1;
if ((twodir == twodiroldie) && (twoturbokey == oldtwoturbokey)) {
twoblockchange = eval("False");
} else {
twoblockchange = eval("True");
}
twodiroldie = twodir;
if (twoblockchange == eval("True")) {
j = j + 1;
_root.prnt.cartrailtwo.duplicateMovieClip((("cartrailtwoq" + xtwo) + "q") + ytwo, (j * 2) + 1);
setProperty([(("_root.prnt.cartrailtwoq" + xtwo) + "q") + ytwo], _x , xtwo);
setProperty([(("_root.prnt.cartrailtwoq" + xtwo) + "q") + ytwo], _y , ytwo);
if ((twoturbokey == 1) && (twoturbonum < turbomax)) {
setProperty([(("_root.prnt.cartrailtwoq" + xtwo) + "q") + ytwo], _alpha , 70);
}
xoldtwo = xtwo;
yoldtwo = ytwo;
xpostwo = xtwo;
ypostwo = ytwo;
hghttwo = 5;
wdthtwo = 5;
} else if (twoblockchange == eval("False")) {
if (Math.abs(twodir) == 1) {
wdthtwo = wdthtwo + 5;
setProperty([(("_root.prnt.cartrailtwoq" + xoldtwo) + "q") + yoldtwo], _width , wdthtwo);
xpostwo = xpostwo + ((twodir * 2.5) + -0.5);
setProperty([(("_root.prnt.cartrailtwoq" + xoldtwo) + "q") + yoldtwo], _x , xpostwo);
} else if (Math.abs(twodir) == 2) {
hghttwo = hghttwo + 5;
setProperty([(("_root.prnt.cartrailtwoq" + xoldtwo) + "q") + yoldtwo], _height , hghttwo);
ypostwo = ypostwo + (((twodir / 2) * 2.5) + -0.5);
setProperty([(("_root.prnt.cartrailtwoq" + xoldtwo) + "q") + yoldtwo], _y , ypostwo);
}
}
}
function virspotrandom() {
if (((xtwo == vironex) && (ytwo == vironey)) || (aso#22917)) {
vironex = 42 + (5 * Math.round(103 * Math.random()));
vironey = 72 + (5 * Math.round(79 * Math.random()));
}
}
function virspotset() {
if (Math.abs(_root.carone.onedir) == 1) {
vironex = _root.carone.xone + (_root.carone.onedir * 15);
if (_root.level == 7) {
vironex = _root.carone.xone + (_root.carone.onedir * 15);
}
vironey = _root.carone.yone;
}
if (Math.abs(_root.carone.onedir) == 2) {
vironey = _root.carone.yone + ((_root.carone.onedir / 2) * 15);
if (_root.level == 7) {
vironey = _root.carone.yone + ((_root.carone.onedir / 2) * 20);
}
vironex = _root.carone.xone;
}
if (5 >= _root.level) {
if (((57 >= xtwo) || (xtwo >= 542)) && ((57 >= _root.carone.xone) || (_root.carone.xone >= 542))) {
if (_root.carone.yone < ytwo) {
vironex = 302;
vironey = 472;
}
if (ytwo < _root.carone.yone) {
vironex = 302;
vironey = 72;
}
wallturn = true;
}
if (((87 >= ytwo) || (ytwo >= 452)) && ((87 >= _root.carone.yone) || (_root.carone.yone >= 452))) {
if (_root.carone.xone < xtwo) {
vironex = 562;
vironey = 267;
}
if (xtwo < _root.carone.xone) {
vironex = 42;
vironey = 267;
}
wallturn = true;
}
}
}
function virspotmove() {
twodirold = twodir;
if (vironex < xtwo) {
twodirx = -1;
} else {
twodirx = 1;
}
if (vironey < ytwo) {
twodiry = -2;
} else {
twodiry = 2;
}
if (Math.abs(xtwo - vironex) >= Math.abs(ytwo - vironey)) {
twodir = twodirx;
} else {
twodir = twodiry;
}
if ((twodir == (-twodirold)) && (Math.abs(twodirold) == 1)) {
twodir = twodiry;
}
if ((twodir == (-twodirold)) && (Math.abs(twodirold) == 2)) {
twodir = twodirx;
}
if (twodir != twodirold) {
force = true;
}
}
function leftrite() {
if (twodir == -1) {
tworite = -2;
twoleft = 2;
}
if (twodir == 1) {
tworite = 2;
twoleft = -2;
}
if (twodir == -2) {
tworite = 1;
twoleft = -1;
}
if (twodir == 2) {
tworite = -1;
twoleft = 1;
}
}
function move() {
if (twodir == -1) {
dxtwo = -5;
Set("aso#54254", 0);
}
if (twodir == 1) {
dxtwo = 5;
Set("aso#54254", 0);
}
if (twodir == -2) {
dxtwo = 0;
Set("aso#54254", -5);
}
if (twodir == 2) {
dxtwo = 0;
Set("aso#54254", 5);
}
}
function cavecheck() {
if (aso#22917 == false) {
if (Math.abs(twodir) == 1) {
onecaveup = _root.carone.oneblock[(xxtwo + "q") + (yytwo - 5)];
onecavedn = _root.carone.oneblock[(xxtwo + "q") + (yytwo + 5)];
twocaveup = twoblock[(xxtwo + "q") + (yytwo - 5)];
twocavedn = twoblock[(xxtwo + "q") + (yytwo + 5)];
}
if (Math.abs(twodir) == 2) {
onecaveup = _root.carone.oneblock[((xxtwo - 5) + "q") + yytwo];
onecavedn = _root.carone.oneblock[((xxtwo + 5) + "q") + yytwo];
twocaveup = twoblock[((xxtwo - 5) + "q") + yytwo];
twocavedn = twoblock[((xxtwo + 5) + "q") + yytwo];
}
if (_root.level == 5) {
cave = (onecaveup && (onecavedn)) || (twocaveup && (twocavedn));
} else if (_root.level >= 6) {
edge = ((((xxtwo + 5) >= 560) || (40 >= (xxtwo - 5))) || ((yytwo + 5) >= 470)) || (70 >= (yytwo - 5));
cave = ((((onecaveup && (onecavedn)) || (twocaveup && (twocavedn))) || (onecaveup && (twocavedn))) || (twocaveup && (onecavedn))) || ((onecaveup || (onecavedn)) && (edge));
}
if (cave != true) {
cave = false;
}
if (cave == true) {
cavedxtwo = dxtwo;
cavedytwo = aso#54254;
cavedir = twodir;
caveturn = true;
}
}
}
function walltrack() {
if (((aso#91580 == 1) && (twozone)) && (!force)) {
tworite = _root.carone.oneblockdir[(xxtwo + "q") + yytwo];
twoleft = -1 * tworite;
}
if ((((aso#91580 == 1) && (twozone)) && (!force)) && (_root.carone.oneblockdir[(xxtwo + "q") + yytwo] == (-twodirold))) {
tworite = _root.carone.oneblockdirb[(xxtwo + "q") + yytwo];
twoleft = -1 * tworite;
}
if (((aso#91580 == 1) && (twoztwo)) && (!force)) {
tworite = -1 * twoblockdir[(xxtwo + "q") + yytwo];
twoleft = -1 * tworite;
}
if ((((aso#91580 == 1) && (twoztwo)) && (!force)) && (twoblockdir[(xxtwo + "q") + yytwo] == (-twodirold))) {
tworite = -1 * twoblockdirb[(xxtwo + "q") + yytwo];
twoleft = -1 * tworite;
}
}
function cavetake() {
if (caveturn && (aso#22917)) {
Set("aso#22917", false);
dxtwo = cavedxtwo;
Set("aso#54254", cavedytwo);
twodir = cavedir;
}
caveturn = false;
cave = false;
}
function checkcrash() {
twozone = _root.carone.oneblock[(_root.cartwo._x + "q") + _root.cartwo._y];
twoztwo = twoblock[(_root.cartwo._x + "q") + _root.cartwo._y];
twowall = (((_root.cartwo._x < 42) || (_root.cartwo._y < 72)) || (557 < _root.cartwo._x)) || (467 < _root.cartwo._y);
Set("aso#22917", (twozone || (twoztwo)) || (twowall));
}
function bothcrash() {
if ((_root.carone._x == _root.cartwo._x) && (_root.carone._y == _root.cartwo._y)) {
_root.music.stop();
_root.bamboth._x = _root.carone._x;
_root.bamboth._y = _root.carone._y;
_root.nextFrame();
}
}
function twocrash() {
_root.onewins = _root.onewins + 1;
_root.scorelt1._x = _root.scorelt1._x - 25;
_root.bamtwo._x = xtwo;
_root.bamtwo._y = ytwo;
_root.onecarend._x = _root.carone._x;
_root.onecarend._y = _root.carone._y;
_root.music.stop();
_root.nextFrame();
}
function blockflow() {
twoblockdir[(xtwo + "q") + ytwo] = twodirold;
if (twodirold != twodir) {
twoblockdirb[(xtwo + "q") + ytwo] = twodir;
}
}
onewins = 0;
twowins = 0;
Frame 117 (320 B)
if (_root.level == 0) {
_root.mcLevelmetal._x = -50;
}
if ((_root.level >= 1) && (3 >= _root.level)) {
trbos2j._y = 10;
}
if (level == 0) {
begin_con.start(0, 1);
} else if ((level >= 1) && (6 >= level)) {
begin_ch.start(0, 1);
} else if (level == 7) {
level7.start(0, 1);
}
Instance of Symbol 163 MovieClip in Frame 117 (66 B)
onClipEvent (load) {
if (_root.level == 7) {
this._x = 30;
}
}
Instance of Symbol 186 MovieClip in Frame 117 (132 B)
onClipEvent (load) {
if ((_root.onewins == 0) && (_root.twowins == 0)) {
this._y = 260;
levelnumtxt = _root.level;
}
}
Frame 126 (743 B)
mcFacejade.gotoAndPlay("off");
mcFaceviol.gotoAndPlay("off");
_root.onescore.onetext = onewins;
_root.twoscore.twotext = twowins;
_root.leveldts._y = 330 - (level * 20);
_root.levelblockflash._y = 331 - (level * 20);
j = 0;
twoturbogap = 1;
twoturbodur = 0;
twoturbonum = 0;
turbomax = 3;
if (level >= 3) {
turbomax = 99;
}
twoturbokey = 0;
oldtwoturbokey = 0;
Set("aso#22917", false);
force = false;
cave = false;
caveturn = false;
twodir = 1;
twodirold = 2;
twodiroldie = 2;
dxtwo = 5;
twoblock = new Array();
twoblockdir = new Array();
twoblockdirb = new Array();
randomcycles = 0;
trackcycles = 0;
vironex = 42 + (5 * Math.round(103 * Math.random()));
vironey = 72 + (5 * Math.round(79 * Math.random()));
Frame 138 (91 B)
music.start(0, 50);
mcFacejade.gotoAndPlay("on");
mcFaceviol.gotoAndPlay("on");
stop();
Instance of Symbol 216 MovieClip "cartwo" in Frame 138 (65 B)
onClipEvent (enterFrame) {
_root["complevel" + _root.level]();
}
Instance of Symbol 217 MovieClip "carone" in Frame 138 (3.55 KiB) ●
onClipEvent (load) {
var i = 0;
var oneturbogap = 1;
var oneturbodur = 0;
var oneturbonum = 0;
var oldoneturbokey = 0;
var oneturbokey = 0;
var onedir = -1;
var oldonedir = -2;
var oneblock = new Array();
var oneblockdir = new Array();
var oneblockdirb = new Array();
}
onClipEvent (enterFrame) {
function onecrash() {
_root.twowins = _root.twowins + 1;
_root.scorelt2._x = _root.scorelt2._x + 25;
_root.bamone._x = xone;
_root.bamone._y = yone;
_root.twocarend._x = _root.cartwo._x;
_root.twocarend._y = _root.cartwo._y;
_root.music.stop();
_root.nextFrame();
}
if ((oneturbokey == 1) && (oneturbonum < 3)) {
oneturbogap = 2;
oneturbodur = oneturbodur + 1;
if (0 < (oneturbodur % 2)) {
_root.trbos1v._x = _root.trbos1v._x + 12;
}
if ((oneturbodur % 2) == 0) {
_root.trbos1v._x = _root.trbos1v._x - 12;
}
}
if (oneturbodur >= 11) {
oneturbogap = 1;
oneturbodur = 0;
oneturbokey = 0;
oneturbonum = oneturbonum + 1;
}
var turbocount = 1;
while (oneturbogap >= turbocount) {
var xone = this._x;
var yone = this._y;
meek = (xone + "q") + yone;
oneblock[meek] = 1;
if ((onedir == oldonedir) && (oneturbokey == oldoneturbokey)) {
oneblockchange = eval("False");
} else {
oneblockchange = eval("True");
}
if (oneblockchange == eval("True")) {
i = i + 1;
_root.prnt.cartrailone.duplicateMovieClip((("cartrailoneq" + xone) + "q") + yone, i * 2);
setProperty([(("_root.prnt.cartrailoneq" + xone) + "q") + yone], _x , xone);
setProperty([(("_root.prnt.cartrailoneq" + xone) + "q") + yone], _y , yone);
if ((oneturbokey == 1) && (oneturbonum < 3)) {
setProperty([(("_root.prnt.cartrailoneq" + xone) + "q") + yone], _alpha , 70);
}
var xoldone = xone;
var yoldone = yone;
var onexpos = xone;
var oneypos = yone;
var onehght = 5;
var onewdth = 5;
} else if (oneblockchange == eval("False")) {
if (Math.abs(onedir) == 1) {
onewdth = onewdth + 5;
setProperty([(("_root.prnt.cartrailoneq" + xoldone) + "q") + yoldone], _width , onewdth);
onexpos = onexpos + ((onedir * 2.5) + -0.5);
setProperty([(("_root.prnt.cartrailoneq" + xoldone) + "q") + yoldone], _x , onexpos);
} else if (Math.abs(onedir) == 2) {
onehght = onehght + 5;
setProperty([(("_root.prnt.cartrailoneq" + xoldone) + "q") + yoldone], _height , onehght);
oneypos = oneypos + (((onedir / 2) * 2.5) + -0.5);
setProperty([(("_root.prnt.cartrailoneq" + xoldone) + "q") + yoldone], _y , oneypos);
}
}
if ((onedir == -1) && (dxone != 5)) {
var dxone = -5;
var dyone = 0;
}
if ((onedir == 1) && (dxone != -5)) {
var dxone = 5;
var dyone = 0;
}
if ((onedir == -2) && (dyone != 5)) {
var dxone = 0;
var dyone = -5;
}
if ((onedir == 2) && (dyone != -5)) {
var dxone = 0;
var dyone = 5;
}
this._x = this._x + dxone;
this._y = this._y + dyone;
if (_root.twoblock[(this._x + "q") + this._y]) {
onecrash();
}
if (oneblock[(this._x + "q") + this._y]) {
onecrash();
}
if ((((this._x < 42) || (557 < this._x)) || (this._y < 72)) || (467 < this._y)) {
onecrash();
}
if ((_root.carone._x == _root.cartwo._x) && (_root.carone._y == _root.cartwo._y)) {
_root.bamboth._x = _root.carone._x;
_root.bamboth._y = _root.carone._y;
_root.music.stop();
_root.nextFrame();
}
oneblockdir[(xone + "q") + yone] = oldonedir;
if (oldonedir != onedir) {
oneblockdirb[(xone + "q") + yone] = onedir;
}
oldonedir = onedir;
oldoneturbokey = oneturbokey;
turbocount++;
}
}
Frame 139 (78 B)
play();
_root.onescore.onetext = onewins;
_root.twoscore.twotext = twowins;
Frame 153 (8 B)
stop();
Frame 154 (63 B)
mcFacejade.gotoAndPlay("off");
mcFaceviol.gotoAndPlay("off");
Frame 160 (147 B)
if (_root.onewins >= 3) {
mcViol._x = 424;
mcJadedead._x = 45;
}
if (_root.twowins >= 3) {
mcJade._x = 69;
mcVioldead._x = 416;
}
Instance of Symbol 238 MovieClip "winwords" in Frame 160 (5.86 KiB) ● ●
onClipEvent (load) {
if (_root.level == 7) {
if (_root.onewins >= 3) {
_root.level = _root.level + 1;
winpercent = 2.5 + (Math.round(100 * Math.random()) / 100);
this.words = (" HOLY $#!% !!! <br> OUT OF ALL PLAYERS <br> ONLY " + winpercent) + "% BEAT LEVEL OMEGA. <br><br> PRESS THE SPACE BAR.";
} else {
this.words = " <br> C'MON, THIS IS IT. <br> FOCUS.";
}
}
if (_root.level == 6) {
if (_root.onewins >= 3) {
_root.level = _root.level + 1;
_root.levelblockflash._y = 100;
winpercent = 4.5 + (Math.round(100 * Math.random()) / 100);
this.words = (" YOU'VE DONE IT !!! <br> OUT OF ALL PLAYERS <br> ONLY " + winpercent) + "% BEAT LEVEL SIX. <br><br> PRESS THE SPACE BAR.";
}
if ((_root.twowins - _root.onewins) == 1) {
this.words = " 3 TO 2. <br> CLOSE TO WINNING IT ALL. <br> BUT YER STILL A LOSER. <br> NYAAAA HAH.";
}
if ((_root.twowins - _root.onewins) == 2) {
this.words = " 3 TO 1. <br> OH PLEEEASE... <br> ARE YOU EVEN TRYING? <br> FINAL LEVEL Y'KNOW...";
}
if ((_root.twowins - _root.onewins) == 3) {
this.words = " 3 TO 0. <br> HA HA PUNY HUMAN. <br> LEVEL 6 TOO MUCH FOR YOU? <br> GIVE IT UP JERK.";
}
}
if ((_root.level >= 4) && (5 >= _root.level)) {
if (_root.onewins >= 3) {
_root.level = _root.level + 1;
_root.levelblockflash._y = 100;
}
if ((_root.onewins - _root.twowins) == 1) {
this.words = " MATCH WON: 2 TO 3 <br><br> YOU ARE SO LUCKY. <br> TAKE IT TO THE NEXT LEVEL. <br> YOU'RE GOING DOWN PUTZ.";
}
if ((_root.onewins - _root.twowins) == 2) {
this.words = " MATCH WON: 1 TO 3 <br><br> THINK YOU'RE TOUGH? <br> LET'S SEE HOW YOU DO <br> WHEN I UPGRADE SUCKAH.";
}
if ((_root.onewins - _root.twowins) == 3) {
this.words = " MATCH WON: 0 TO 3 <br><br> YER NOTHING BUT A PUNK. <br> I'M UPGRADING MY LEVEL. <br> C'MON AND BRING IT.";
}
if ((_root.twowins - _root.onewins) == 1) {
this.words = " MATCH LOST: 3 TO 2 <br><br> OOOH, SO CLOSE. <br> BUT YER STILL A LOSERRR. <br> TRY AGAIN CHUMP.";
}
if ((_root.twowins - _root.onewins) == 2) {
this.words = " MATCH LOST: 3 TO 1 <br><br> OH PLEEEASE... <br> ARE YOU EVEN TRYING? <br> THINK IT THROUGH.";
}
if ((_root.twowins - _root.onewins) == 3) {
this.words = " MATCH LOST: 3 TO 0 <br><br> LOOKS LIKE YOU CAN'T <br> HANDLE MY NEW SKILLS. <br> GIVE IT UP REJECT.";
}
}
if (_root.level == 3) {
if (_root.onewins >= 3) {
_root.level = _root.level + 1;
_root.levelblockflash._y = 100;
winpercent = 45 + (Math.round(100 * Math.random()) / 50);
this.words = (" NOT BAD !!! <br> OUT OF ALL PLAYERS <br> ONLY " + winpercent) + "% BEAT LEVEL 3. <br><br> PRESS THE SPACE BAR.";
}
if ((_root.twowins - _root.onewins) == 1) {
this.words = " MATCH LOST: 3 TO 2 <br><br> OOOH, SO CLOSE. <br> BUT YER STILL A LOSERRR. <br> TRY AGAIN CHUMP.";
}
if ((_root.twowins - _root.onewins) == 2) {
this.words = " MATCH LOST: 3 TO 1 <br><br> OH PLEEEASE... <br> ARE YOU EVEN TRYING? <br> DON'T FORGET THE TURBOS.";
}
if ((_root.twowins - _root.onewins) == 3) {
this.words = " MATCH LOST: 3 TO 0 <br><br> THAT WAS PATHETIC. <br> YOU CAN'T BEAT ME. <br> RUN HOME TO YOUR MUM.";
}
}
if ((_root.level >= 1) && (2 >= _root.level)) {
if (_root.onewins >= 3) {
_root.level = _root.level + 1;
_root.levelblockflash._y = 100;
}
if ((_root.onewins - _root.twowins) == 1) {
this.words = " MATCH WON: 2 TO 3 <br><br> YOU ARE SO LUCKY. <br> TAKE IT TO THE NEXT LEVEL. <br> YOU'RE GOING DOWN PUTZ.";
}
if ((_root.onewins - _root.twowins) == 2) {
this.words = " MATCH WON: 1 TO 3 <br><br> THINK YOU'RE TOUGH? <br> LET'S SEE HOW YOU DO <br> WHEN I UPGRADE SUCKAH.";
}
if ((_root.onewins - _root.twowins) == 3) {
this.words = " MATCH WON: 0 TO 3 <br><br> YER NOTHING BUT A PUNK. <br> I'M UPGRADING MY LEVEL. <br> C'MON AND BRING IT.";
}
if ((_root.twowins - _root.onewins) == 1) {
this.words = " MATCH LOST: 3 TO 2 <br><br> OOOH, SO CLOSE. <br> BUT YER STILL A LOSERRR. <br> TRY AGAIN CHUMP.";
}
if ((_root.twowins - _root.onewins) == 2) {
this.words = " MATCH LOST: 3 TO 1 <br><br> OH PLEEEASE... <br> ARE YOU EVEN TRYING? <br> DON'T FORGET THE TURBOS.";
}
if ((_root.twowins - _root.onewins) == 3) {
this.words = " MATCH LOST: 3 TO 0 <br><br> THAT WAS PATHETIC. <br> YOU CAN'T BEAT ME. <br> RUN HOME TO YOUR MUM.";
}
}
if (_root.level == 0) {
if ((_root.onewins - _root.twowins) == 1) {
this.words = " 2 TO 3. <br> OOOH - CLOSE ONE !!! <br> BUT VIOLET GETS THE WIN. <br> REMATCH ANYBODY?";
}
if ((_root.onewins - _root.twowins) == 2) {
this.words = " 1 TO 3. <br> A DECISIVE VICTORY. <br> TURN TO THE LEFT AND <br> SCOFF AT YOUR OPPONENT.";
}
if ((_root.onewins - _root.twowins) == 3) {
this.words = " 0 TO 3. <br> TOTAL WIPE OUT !!! <br> YOU COULD SAY THE <br> COMPETITION IS LACKING.";
}
if ((_root.twowins - _root.onewins) == 1) {
this.words = " 3 TO 2. <br> DAAAMN THAT WAS CLOSE !!! <br> BUT JADE PULLS IT OUT. <br> PLAY IT AGAIN SAM.";
}
if ((_root.twowins - _root.onewins) == 2) {
this.words = " 3 TO 1. <br> A COMFORTABLE WIN. <br> NOW WOULD BE A GOOD TIME <br> TO MOCK YOUR OPPONENT.";
}
if ((_root.twowins - _root.onewins) == 3) {
this.words = " 3 TO 0. <br> NO COMPETITION !!! <br> COMPLETE SHUT OUT. <br> PLAYER ON RIGHT - SUCKS.";
}
}
}
Instance of Symbol 242 MovieClip in Frame 160 (107 B)
onClipEvent (load) {
if (_root.level >= 1) {
this._y = 362;
this.matchtwotxt = _root.matchtwo;
}
}
Instance of Symbol 246 MovieClip in Frame 160 (141 B)
onClipEvent (load) {
if (_root.level == 0) {
this._y = 362;
this.matchonetxt = _root.matchone;
this.matchtwotxt = _root.matchtwo;
}
}
Frame 164 (308 B)
if ((level == 0) && (Math.abs(onewins - twowins) == 3)) {
_root.domin.start(0, 1);
} else if (((level >= 1) && (7 >= level)) && (onewins == 3)) {
_root.lvl_complete.start(0, 1);
} else if ((level == 8) && (onewins == 3)) {
_root.holysht.start(0, 1);
}
stop();
Frame 169 (698 B)
if (level == 8) {
gotoAndPlay ("final");
} else if (((level == 7) && (onewins >= 3)) && (5 >= _root.matchtwo)) {
gotoAndPlay ("seven");
} else if ((level == 7) && (onewins >= 3)) {
gotoAndPlay ("almost");
} else if ((level == 4) && (onewins >= 3)) {
gotoAndPlay ("lthree");
} else if ((_root.level >= 1) && (onewins >= 3)) {
gotoAndPlay ("scrolla");
} else {
_root.trbos2j._x = 117;
_root.trbos1v._x = 449;
if ((onewins >= 3) || (twowins >= 3)) {
onewins = 0;
twowins = 0;
_root.scorelt1._x = 377;
_root.scorelt2._x = 144;
gotoAndPlay ("playshort");
} else {
gotoAndPlay ("playshort");
}
}
Frame 170 (37 B)
_root.welldone.start(0, 1);
stop();
Frame 171 (39 B)
_root.impressive.start(0, 1);
stop();
Instance of Symbol 254 MovieClip "matchtxt" in Frame 171 (50 B)
onClipEvent (load) {
matchtxt = _root.matchtwo;
}
Frame 172 (8 B)
stop();
Frame 173 (37 B)
_root.congrats.start(0, 1);
stop();
Instance of Symbol 271 MovieClip "matchtxt" in Frame 173 (50 B)
onClipEvent (load) {
matchtxt = _root.matchtwo;
}
Frame 174 (39 B)
_root.incredible.start(0, 1);
stop();
Symbol 34 Button (40 B)
on (release) {
gotoAndPlay ("boing");
}
Symbol 78 Button (53 B)
on (release) {
level = 0;
gotoAndPlay ("flipup");
}
Symbol 82 Button (53 B)
on (release) {
level = 1;
gotoAndPlay ("flipup");
}
Symbol 88 Button (65 B)
on (release) {
getURL ("http://www.dandotcom.com/", "_blank");
}
Symbol 103 Button (41 B)
on (release) {
gotoAndPlay ("flipup");
}
Symbol 107 Button (59 B)
on (keyPress "<Space>") {
gotoAndPlay ("scrollb");
}
Symbol 128 Button (57 B)
on (release) {
_root.mcinstmove.gotoAndPlay("engage");
}
Symbol 132 Button (60 B)
on (release) {
_root.mcinstmove.gotoAndPlay("disengage");
}
Symbol 137 MovieClip Frame 1 (8 B)
stop();
Symbol 137 MovieClip Frame 29 (8 B)
stop();
Symbol 137 MovieClip Frame 39 (22 B)
gotoAndPlay ("idle");
Symbol 150 MovieClip Frame 1 (68 B)
if (_root.level == 7) {
gotoAndPlay(next);
} else {
stop();
}
Symbol 150 MovieClip Frame 2 (8 B)
stop();
Symbol 186 MovieClip Frame 1 (117 B)
if (_root.level == 7) {
gotoAndPlay (3);
} else if (_root.level == 0) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 186 MovieClip Frame 2 (8 B)
stop();
Symbol 186 MovieClip Frame 3 (8 B)
stop();
Symbol 205 MovieClip Frame 1 (8 B)
stop();
Symbol 205 MovieClip Frame 7 (122 B)
if ((_root.bamtwo._x >= 0) || (_root.bamboth._x >= 0)) {
gotoAndPlay ("dead");
} else {
gotoAndPlay ("on");
}
Symbol 205 MovieClip Frame 34 (22 B)
gotoAndPlay ("dead");
Symbol 211 MovieClip Frame 1 (8 B)
stop();
Symbol 211 MovieClip Frame 7 (122 B)
if ((_root.bamone._x >= 0) || (_root.bamboth._x >= 0)) {
gotoAndPlay ("dead");
} else {
gotoAndPlay ("on");
}
Symbol 211 MovieClip Frame 34 (22 B)
gotoAndPlay ("dead");
Symbol 218 Button (554 B)
on (keyPress "<Left>") {
if (_root.carone.onedir != 1) {
_root.carone.onedir = -1;
}
}
on (keyPress "<Right>") {
if (_root.carone.onedir != -1) {
_root.carone.onedir = 1;
}
}
on (keyPress "<Up>") {
if (_root.carone.onedir != 2) {
_root.carone.onedir = -2;
}
}
on (keyPress "<Down>") {
if (_root.carone.onedir != -2) {
_root.carone.onedir = 2;
}
}
on (keyPress "<Enter>") {
_root.carone.oneturbokey = 1;
if ((_root.level >= 4) && (_root.carone.oneturbonum < 3)) {
_root.twoturbokey = 1;
}
}
Symbol 219 Button (343 B)
on (keyPress "a") {
if (_root.twodir != 1) {
_root.twodir = -1;
}
}
on (keyPress "d") {
if (_root.twodir != -1) {
_root.twodir = 1;
}
}
on (keyPress "w") {
if (_root.twodir != 2) {
_root.twodir = -2;
}
}
on (keyPress "s") {
if (_root.twodir != -2) {
_root.twodir = 2;
}
}
on (keyPress "<Tab>") {
_root.twoturbokey = 1;
}
Symbol 227 Button (283 B)
on (keyPress "<Space>") {
if ((onewins >= 3) || (twowins >= 3)) {
if (onewins >= 3) {
_root.matchone = _root.matchone + 1;
}
if (twowins >= 3) {
_root.matchtwo = _root.matchtwo + 1;
}
gotoAndPlay ("winner");
} else {
gotoAndPlay ("scroll");
}
}
Symbol 229 Button (58 B)
on (keyPress "<Space>") {
gotoAndPlay ("scroll");
}
Symbol 247 Button (59 B)
on (keyPress "<Space>") {
gotoAndPlay ("scrolla");
}
Symbol 258 Button (80 B)
on (release) {
_root.level = 3;
_root.matchtwo = 0;
gotoAndPlay ("accept");
}
Symbol 262 Button (73 B)
on (release) {
getURL ("http://www.instantinnerpower.com/", "_blank");
}
Symbol 284 Button (55 B)
on (release) {
getURL ("mailto:mail@dandotcom.com");
}